configure revision 862bcd1a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libX11 1.6.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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.5'
655PACKAGE_STRING='libX11 1.6.5'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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
890localstatedir
891sharedstatedir
892sysconfdir
893datadir
894datarootdir
895libexecdir
896sbindir
897bindir
898program_transform_name
899prefix
900exec_prefix
901PACKAGE_URL
902PACKAGE_BUGREPORT
903PACKAGE_STRING
904PACKAGE_VERSION
905PACKAGE_TARNAME
906PACKAGE_NAME
907PATH_SEPARATOR
908SHELL'
909ac_subst_files=''
910ac_user_opts='
911enable_option_checking
912enable_dependency_tracking
913enable_silent_rules
914enable_shared
915enable_static
916with_pic
917enable_fast_install
918with_aix_soname
919with_gnu_ld
920with_sysroot
921enable_libtool_lock
922enable_selective_werror
923enable_strict_compilation
924enable_specs
925with_xmlto
926with_fop
927with_xsltproc
928with_perl
929enable_unix_transport
930enable_tcp_transport
931enable_ipv6
932enable_local_transport
933enable_loadable_i18n
934enable_loadable_xcursor
935with_launchd
936enable_xthreads
937with_keysymdefdir
938enable_xcms
939enable_xlocale
940enable_xlocaledir
941enable_xf86bigfont
942enable_xkb
943enable_composecache
944with_lint
945enable_lint_library
946with_locale_lib_dir
947enable_malloc0returnsnull
948'
949      ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955LIBS
956CPPFLAGS
957CPP
958LT_SYS_LIBRARY_PATH
959PKG_CONFIG
960PKG_CONFIG_PATH
961PKG_CONFIG_LIBDIR
962XMLTO
963FOP
964XSLTPROC
965PERL
966BIGFONT_CFLAGS
967BIGFONT_LIBS
968LINT
969LINT_FLAGS
970X11_CFLAGS
971X11_LIBS'
972
973
974# Initialize some variables set by options.
975ac_init_help=
976ac_init_version=false
977ac_unrecognized_opts=
978ac_unrecognized_sep=
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026  # If the previous option needs an argument, assign it.
1027  if test -n "$ac_prev"; then
1028    eval $ac_prev=\$ac_option
1029    ac_prev=
1030    continue
1031  fi
1032
1033  case $ac_option in
1034  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035  *=)   ac_optarg= ;;
1036  *)    ac_optarg=yes ;;
1037  esac
1038
1039  # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041  case $ac_dashdash$ac_option in
1042  --)
1043    ac_dashdash=yes ;;
1044
1045  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046    ac_prev=bindir ;;
1047  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048    bindir=$ac_optarg ;;
1049
1050  -build | --build | --buil | --bui | --bu)
1051    ac_prev=build_alias ;;
1052  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053    build_alias=$ac_optarg ;;
1054
1055  -cache-file | --cache-file | --cache-fil | --cache-fi \
1056  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057    ac_prev=cache_file ;;
1058  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060    cache_file=$ac_optarg ;;
1061
1062  --config-cache | -C)
1063    cache_file=config.cache ;;
1064
1065  -datadir | --datadir | --datadi | --datad)
1066    ac_prev=datadir ;;
1067  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068    datadir=$ac_optarg ;;
1069
1070  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071  | --dataroo | --dataro | --datar)
1072    ac_prev=datarootdir ;;
1073  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075    datarootdir=$ac_optarg ;;
1076
1077  -disable-* | --disable-*)
1078    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079    # Reject names that are not valid shell variable names.
1080    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081      as_fn_error $? "invalid feature name: $ac_useropt"
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"enable_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval enable_$ac_useropt=no ;;
1092
1093  -docdir | --docdir | --docdi | --doc | --do)
1094    ac_prev=docdir ;;
1095  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096    docdir=$ac_optarg ;;
1097
1098  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099    ac_prev=dvidir ;;
1100  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101    dvidir=$ac_optarg ;;
1102
1103  -enable-* | --enable-*)
1104    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107      as_fn_error $? "invalid feature name: $ac_useropt"
1108    ac_useropt_orig=$ac_useropt
1109    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110    case $ac_user_opts in
1111      *"
1112"enable_$ac_useropt"
1113"*) ;;
1114      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115	 ac_unrecognized_sep=', ';;
1116    esac
1117    eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121  | --exec | --exe | --ex)
1122    ac_prev=exec_prefix ;;
1123  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125  | --exec=* | --exe=* | --ex=*)
1126    exec_prefix=$ac_optarg ;;
1127
1128  -gas | --gas | --ga | --g)
1129    # Obsolete; use --with-gas.
1130    with_gas=yes ;;
1131
1132  -help | --help | --hel | --he | -h)
1133    ac_init_help=long ;;
1134  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135    ac_init_help=recursive ;;
1136  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137    ac_init_help=short ;;
1138
1139  -host | --host | --hos | --ho)
1140    ac_prev=host_alias ;;
1141  -host=* | --host=* | --hos=* | --ho=*)
1142    host_alias=$ac_optarg ;;
1143
1144  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145    ac_prev=htmldir ;;
1146  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147  | --ht=*)
1148    htmldir=$ac_optarg ;;
1149
1150  -includedir | --includedir | --includedi | --included | --include \
1151  | --includ | --inclu | --incl | --inc)
1152    ac_prev=includedir ;;
1153  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154  | --includ=* | --inclu=* | --incl=* | --inc=*)
1155    includedir=$ac_optarg ;;
1156
1157  -infodir | --infodir | --infodi | --infod | --info | --inf)
1158    ac_prev=infodir ;;
1159  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160    infodir=$ac_optarg ;;
1161
1162  -libdir | --libdir | --libdi | --libd)
1163    ac_prev=libdir ;;
1164  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165    libdir=$ac_optarg ;;
1166
1167  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168  | --libexe | --libex | --libe)
1169    ac_prev=libexecdir ;;
1170  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171  | --libexe=* | --libex=* | --libe=*)
1172    libexecdir=$ac_optarg ;;
1173
1174  -localedir | --localedir | --localedi | --localed | --locale)
1175    ac_prev=localedir ;;
1176  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177    localedir=$ac_optarg ;;
1178
1179  -localstatedir | --localstatedir | --localstatedi | --localstated \
1180  | --localstate | --localstat | --localsta | --localst | --locals)
1181    ac_prev=localstatedir ;;
1182  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184    localstatedir=$ac_optarg ;;
1185
1186  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187    ac_prev=mandir ;;
1188  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189    mandir=$ac_optarg ;;
1190
1191  -nfp | --nfp | --nf)
1192    # Obsolete; use --without-fp.
1193    with_fp=no ;;
1194
1195  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196  | --no-cr | --no-c | -n)
1197    no_create=yes ;;
1198
1199  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201    no_recursion=yes ;;
1202
1203  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205  | --oldin | --oldi | --old | --ol | --o)
1206    ac_prev=oldincludedir ;;
1207  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210    oldincludedir=$ac_optarg ;;
1211
1212  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213    ac_prev=prefix ;;
1214  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215    prefix=$ac_optarg ;;
1216
1217  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218  | --program-pre | --program-pr | --program-p)
1219    ac_prev=program_prefix ;;
1220  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222    program_prefix=$ac_optarg ;;
1223
1224  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225  | --program-suf | --program-su | --program-s)
1226    ac_prev=program_suffix ;;
1227  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229    program_suffix=$ac_optarg ;;
1230
1231  -program-transform-name | --program-transform-name \
1232  | --program-transform-nam | --program-transform-na \
1233  | --program-transform-n | --program-transform- \
1234  | --program-transform | --program-transfor \
1235  | --program-transfo | --program-transf \
1236  | --program-trans | --program-tran \
1237  | --progr-tra | --program-tr | --program-t)
1238    ac_prev=program_transform_name ;;
1239  -program-transform-name=* | --program-transform-name=* \
1240  | --program-transform-nam=* | --program-transform-na=* \
1241  | --program-transform-n=* | --program-transform-=* \
1242  | --program-transform=* | --program-transfor=* \
1243  | --program-transfo=* | --program-transf=* \
1244  | --program-trans=* | --program-tran=* \
1245  | --progr-tra=* | --program-tr=* | --program-t=*)
1246    program_transform_name=$ac_optarg ;;
1247
1248  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249    ac_prev=pdfdir ;;
1250  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251    pdfdir=$ac_optarg ;;
1252
1253  -psdir | --psdir | --psdi | --psd | --ps)
1254    ac_prev=psdir ;;
1255  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256    psdir=$ac_optarg ;;
1257
1258  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259  | -silent | --silent | --silen | --sile | --sil)
1260    silent=yes ;;
1261
1262  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263    ac_prev=sbindir ;;
1264  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265  | --sbi=* | --sb=*)
1266    sbindir=$ac_optarg ;;
1267
1268  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270  | --sharedst | --shareds | --shared | --share | --shar \
1271  | --sha | --sh)
1272    ac_prev=sharedstatedir ;;
1273  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276  | --sha=* | --sh=*)
1277    sharedstatedir=$ac_optarg ;;
1278
1279  -site | --site | --sit)
1280    ac_prev=site ;;
1281  -site=* | --site=* | --sit=*)
1282    site=$ac_optarg ;;
1283
1284  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285    ac_prev=srcdir ;;
1286  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287    srcdir=$ac_optarg ;;
1288
1289  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290  | --syscon | --sysco | --sysc | --sys | --sy)
1291    ac_prev=sysconfdir ;;
1292  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294    sysconfdir=$ac_optarg ;;
1295
1296  -target | --target | --targe | --targ | --tar | --ta | --t)
1297    ac_prev=target_alias ;;
1298  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299    target_alias=$ac_optarg ;;
1300
1301  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302    verbose=yes ;;
1303
1304  -version | --version | --versio | --versi | --vers | -V)
1305    ac_init_version=: ;;
1306
1307  -with-* | --with-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      as_fn_error $? "invalid package name: $ac_useropt"
1312    ac_useropt_orig=$ac_useropt
1313    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314    case $ac_user_opts in
1315      *"
1316"with_$ac_useropt"
1317"*) ;;
1318      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319	 ac_unrecognized_sep=', ';;
1320    esac
1321    eval with_$ac_useropt=\$ac_optarg ;;
1322
1323  -without-* | --without-*)
1324    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327      as_fn_error $? "invalid package name: $ac_useropt"
1328    ac_useropt_orig=$ac_useropt
1329    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330    case $ac_user_opts in
1331      *"
1332"with_$ac_useropt"
1333"*) ;;
1334      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335	 ac_unrecognized_sep=', ';;
1336    esac
1337    eval with_$ac_useropt=no ;;
1338
1339  --x)
1340    # Obsolete; use --with-x.
1341    with_x=yes ;;
1342
1343  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344  | --x-incl | --x-inc | --x-in | --x-i)
1345    ac_prev=x_includes ;;
1346  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348    x_includes=$ac_optarg ;;
1349
1350  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352    ac_prev=x_libraries ;;
1353  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355    x_libraries=$ac_optarg ;;
1356
1357  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358Try \`$0 --help' for more information"
1359    ;;
1360
1361  *=*)
1362    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363    # Reject names that are not valid shell variable names.
1364    case $ac_envvar in #(
1365      '' | [0-9]* | *[!_$as_cr_alnum]* )
1366      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367    esac
1368    eval $ac_envvar=\$ac_optarg
1369    export $ac_envvar ;;
1370
1371  *)
1372    # FIXME: should be removed in autoconf 3.0.
1373    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1377    ;;
1378
1379  esac
1380done
1381
1382if test -n "$ac_prev"; then
1383  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384  as_fn_error $? "missing argument to $ac_option"
1385fi
1386
1387if test -n "$ac_unrecognized_opts"; then
1388  case $enable_option_checking in
1389    no) ;;
1390    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392  esac
1393fi
1394
1395# Check all directory arguments for consistency.
1396for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397		datadir sysconfdir sharedstatedir localstatedir includedir \
1398		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399		libdir localedir mandir
1400do
1401  eval ac_val=\$$ac_var
1402  # Remove trailing slashes.
1403  case $ac_val in
1404    */ )
1405      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406      eval $ac_var=\$ac_val;;
1407  esac
1408  # Be sure to have absolute directory names.
1409  case $ac_val in
1410    [\\/$]* | ?:[\\/]* )  continue;;
1411    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412  esac
1413  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414done
1415
1416# There might be people who depend on the old broken behavior: `$host'
1417# used to hold the argument of --host etc.
1418# FIXME: To remove some day.
1419build=$build_alias
1420host=$host_alias
1421target=$target_alias
1422
1423# FIXME: To remove some day.
1424if test "x$host_alias" != x; then
1425  if test "x$build_alias" = x; then
1426    cross_compiling=maybe
1427  elif test "x$build_alias" != "x$host_alias"; then
1428    cross_compiling=yes
1429  fi
1430fi
1431
1432ac_tool_prefix=
1433test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435test "$silent" = yes && exec 6>/dev/null
1436
1437
1438ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439ac_ls_di=`ls -di .` &&
1440ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441  as_fn_error $? "working directory cannot be determined"
1442test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443  as_fn_error $? "pwd does not report name of working directory"
1444
1445
1446# Find the source files, if location was not specified.
1447if test -z "$srcdir"; then
1448  ac_srcdir_defaulted=yes
1449  # Try the directory containing this script, then the parent directory.
1450  ac_confdir=`$as_dirname -- "$as_myself" ||
1451$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452	 X"$as_myself" : 'X\(//\)[^/]' \| \
1453	 X"$as_myself" : 'X\(//\)$' \| \
1454	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455$as_echo X"$as_myself" |
1456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\/\)[^/].*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  /^X\(\/\/\)$/{
1465	    s//\1/
1466	    q
1467	  }
1468	  /^X\(\/\).*/{
1469	    s//\1/
1470	    q
1471	  }
1472	  s/.*/./; q'`
1473  srcdir=$ac_confdir
1474  if test ! -r "$srcdir/$ac_unique_file"; then
1475    srcdir=..
1476  fi
1477else
1478  ac_srcdir_defaulted=no
1479fi
1480if test ! -r "$srcdir/$ac_unique_file"; then
1481  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483fi
1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485ac_abs_confdir=`(
1486	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487	pwd)`
1488# When building in place, set srcdir=.
1489if test "$ac_abs_confdir" = "$ac_pwd"; then
1490  srcdir=.
1491fi
1492# Remove unnecessary trailing slashes from srcdir.
1493# Double slashes in file names in object file debugging info
1494# mess up M-x gdb in Emacs.
1495case $srcdir in
1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497esac
1498for ac_var in $ac_precious_vars; do
1499  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500  eval ac_env_${ac_var}_value=\$${ac_var}
1501  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503done
1504
1505#
1506# Report the --help message.
1507#
1508if test "$ac_init_help" = "long"; then
1509  # Omit some internal or obsolete options to make the list less imposing.
1510  # This message is too long to be a string in the A/UX 3.1 sh.
1511  cat <<_ACEOF
1512\`configure' configures libX11 1.6.5 to adapt to many kinds of systems.
1513
1514Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519Defaults for the options are specified in brackets.
1520
1521Configuration:
1522  -h, --help              display this help and exit
1523      --help=short        display options specific to this package
1524      --help=recursive    display the short help of all the included packages
1525  -V, --version           display version information and exit
1526  -q, --quiet, --silent   do not print \`checking ...' messages
1527      --cache-file=FILE   cache test results in FILE [disabled]
1528  -C, --config-cache      alias for \`--cache-file=config.cache'
1529  -n, --no-create         do not create output files
1530      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532Installation directories:
1533  --prefix=PREFIX         install architecture-independent files in PREFIX
1534                          [$ac_default_prefix]
1535  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                          [PREFIX]
1537
1538By default, \`make install' will install all the files in
1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541for instance \`--prefix=\$HOME'.
1542
1543For better control, use the options below.
1544
1545Fine tuning of the installation directories:
1546  --bindir=DIR            user executables [EPREFIX/bin]
1547  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548  --libexecdir=DIR        program executables [EPREFIX/libexec]
1549  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552  --libdir=DIR            object code libraries [EPREFIX/lib]
1553  --includedir=DIR        C header files [PREFIX/include]
1554  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557  --infodir=DIR           info documentation [DATAROOTDIR/info]
1558  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559  --mandir=DIR            man documentation [DATAROOTDIR/man]
1560  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1561  --htmldir=DIR           html documentation [DOCDIR]
1562  --dvidir=DIR            dvi documentation [DOCDIR]
1563  --pdfdir=DIR            pdf documentation [DOCDIR]
1564  --psdir=DIR             ps documentation [DOCDIR]
1565_ACEOF
1566
1567  cat <<\_ACEOF
1568
1569Program names:
1570  --program-prefix=PREFIX            prepend PREFIX to installed program names
1571  --program-suffix=SUFFIX            append SUFFIX to installed program names
1572  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574System types:
1575  --build=BUILD     configure for building on BUILD [guessed]
1576  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577_ACEOF
1578fi
1579
1580if test -n "$ac_init_help"; then
1581  case $ac_init_help in
1582     short | recursive ) echo "Configuration of libX11 1.6.5:";;
1583   esac
1584  cat <<\_ACEOF
1585
1586Optional Features:
1587  --disable-option-checking  ignore unrecognized --enable/--with options
1588  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590  --enable-dependency-tracking
1591                          do not reject slow dependency extractors
1592  --disable-dependency-tracking
1593                          speeds up one-time build
1594  --enable-silent-rules   less verbose build output (undo: "make V=1")
1595  --disable-silent-rules  verbose build output (undo: "make V=0")
1596  --enable-shared[=PKGS]  build shared libraries [default=yes]
1597  --enable-static[=PKGS]  build static libraries [default=yes]
1598  --enable-fast-install[=PKGS]
1599                          optimize for fast installation [default=yes]
1600  --disable-libtool-lock  avoid locking (might break parallel builds)
1601  --disable-selective-werror
1602                          Turn off selective compiler errors. (default:
1603                          enabled)
1604  --enable-strict-compilation
1605                          Enable all warnings from compiler and make them
1606                          errors (default: disabled)
1607  --enable-specs          Enable building the specs (default: yes)
1608  --enable-unix-transport Enable UNIX domain socket transport
1609  --enable-tcp-transport  Enable TCP socket transport
1610  --enable-ipv6           Enable IPv6 support
1611  --enable-local-transport
1612                          Enable os-specific local transport
1613  --enable-loadable-i18n  Controls loadable i18n module support
1614  --disable-loadable-xcursor
1615                          Controls loadable xcursor library support
1616  --disable-xthreads      Disable Xlib support for Multithreading
1617  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1618  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1619  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1620  --disable-xf86bigfont   Disable XF86BigFont extension support
1621  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1622  --disable-composecache  Disable compose table cache support
1623  --enable-lint-library   Create lint library (default: disabled)
1624  --enable-malloc0returnsnull
1625                          malloc(0) returns NULL (default: auto)
1626
1627Optional Packages:
1628  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1631                          both]
1632  --with-aix-soname=aix|svr4|both
1633                          shared library versioning (aka "SONAME") variant to
1634                          provide on AIX, [default=aix].
1635  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1636  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1637                          compiler's sysroot if not specified).
1638  --with-xmlto            Use xmlto to regenerate documentation (default:
1639                          auto)
1640  --with-fop              Use fop to regenerate documentation (default: no)
1641  --with-xsltproc         Use xsltproc for the transformation of XML documents
1642                          (default: auto)
1643  --with-perl             Use perl for extracting information from files
1644                          (default: auto)
1645  --with-launchd          Build with support for Apple's launchd (default:
1646                          auto)
1647  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1648                          include dir)
1649  --with-lint             Use a lint-style source code checker (default:
1650                          disabled)
1651  --with-locale-lib-dir=DIR
1652                          Directory where locale libraries files are installed
1653                          (default: $libdir/X11/locale)
1654
1655Some influential environment variables:
1656  CC          C compiler command
1657  CFLAGS      C compiler flags
1658  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1659              nonstandard directory <lib dir>
1660  LIBS        libraries to pass to the linker, e.g. -l<library>
1661  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1662              you have headers in a nonstandard directory <include dir>
1663  CPP         C preprocessor
1664  LT_SYS_LIBRARY_PATH
1665              User-defined run-time library search path.
1666  PKG_CONFIG  path to pkg-config utility
1667  PKG_CONFIG_PATH
1668              directories to add to pkg-config's search path
1669  PKG_CONFIG_LIBDIR
1670              path overriding pkg-config's built-in search path
1671  XMLTO       Path to xmlto command
1672  FOP         Path to fop command
1673  XSLTPROC    Path to xsltproc command
1674  PERL        Path to perl command
1675  BIGFONT_CFLAGS
1676              C compiler flags for BIGFONT, overriding pkg-config
1677  BIGFONT_LIBS
1678              linker flags for BIGFONT, overriding pkg-config
1679  LINT        Path to a lint-style command
1680  LINT_FLAGS  Flags for the lint-style command
1681  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1682  X11_LIBS    linker flags for X11, overriding pkg-config
1683
1684Use these variables to override the choices made by `configure' or to help
1685it to find libraries and programs with nonstandard names/locations.
1686
1687Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1688_ACEOF
1689ac_status=$?
1690fi
1691
1692if test "$ac_init_help" = "recursive"; then
1693  # If there are subdirs, report their specific --help.
1694  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695    test -d "$ac_dir" ||
1696      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697      continue
1698    ac_builddir=.
1699
1700case "$ac_dir" in
1701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702*)
1703  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704  # A ".." for each directory in $ac_dir_suffix.
1705  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706  case $ac_top_builddir_sub in
1707  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709  esac ;;
1710esac
1711ac_abs_top_builddir=$ac_pwd
1712ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713# for backward compatibility:
1714ac_top_builddir=$ac_top_build_prefix
1715
1716case $srcdir in
1717  .)  # We are building in place.
1718    ac_srcdir=.
1719    ac_top_srcdir=$ac_top_builddir_sub
1720    ac_abs_top_srcdir=$ac_pwd ;;
1721  [\\/]* | ?:[\\/]* )  # Absolute name.
1722    ac_srcdir=$srcdir$ac_dir_suffix;
1723    ac_top_srcdir=$srcdir
1724    ac_abs_top_srcdir=$srcdir ;;
1725  *) # Relative name.
1726    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727    ac_top_srcdir=$ac_top_build_prefix$srcdir
1728    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729esac
1730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732    cd "$ac_dir" || { ac_status=$?; continue; }
1733    # Check for guested configure.
1734    if test -f "$ac_srcdir/configure.gnu"; then
1735      echo &&
1736      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737    elif test -f "$ac_srcdir/configure"; then
1738      echo &&
1739      $SHELL "$ac_srcdir/configure" --help=recursive
1740    else
1741      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742    fi || ac_status=$?
1743    cd "$ac_pwd" || { ac_status=$?; break; }
1744  done
1745fi
1746
1747test -n "$ac_init_help" && exit $ac_status
1748if $ac_init_version; then
1749  cat <<\_ACEOF
1750libX11 configure 1.6.5
1751generated by GNU Autoconf 2.69
1752
1753Copyright (C) 2012 Free Software Foundation, Inc.
1754This configure script is free software; the Free Software Foundation
1755gives unlimited permission to copy, distribute and modify it.
1756_ACEOF
1757  exit
1758fi
1759
1760## ------------------------ ##
1761## Autoconf initialization. ##
1762## ------------------------ ##
1763
1764# ac_fn_c_try_compile LINENO
1765# --------------------------
1766# Try to compile conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_compile ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  rm -f conftest.$ac_objext
1771  if { { ac_try="$ac_compile"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_compile") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } && {
1787	 test -z "$ac_c_werror_flag" ||
1788	 test ! -s conftest.err
1789       } && test -s conftest.$ac_objext; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795	ac_retval=1
1796fi
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_compile
1801
1802# ac_fn_c_try_cpp LINENO
1803# ----------------------
1804# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_cpp ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if { { ac_try="$ac_cpp conftest.$ac_ext"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816  ac_status=$?
1817  if test -s conftest.err; then
1818    grep -v '^ *+' conftest.err >conftest.er1
1819    cat conftest.er1 >&5
1820    mv -f conftest.er1 conftest.err
1821  fi
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; } > conftest.i && {
1824	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825	 test ! -s conftest.err
1826       }; then :
1827  ac_retval=0
1828else
1829  $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832    ac_retval=1
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_cpp
1838
1839# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840# -------------------------------------------------------
1841# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842# the include files in INCLUDES and setting the cache variable VAR
1843# accordingly.
1844ac_fn_c_check_header_mongrel ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  if eval \${$3+:} false; then :
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851  $as_echo_n "(cached) " >&6
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856else
1857  # Is the header compilable?
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859$as_echo_n "checking $2 usability... " >&6; }
1860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h.  */
1862$4
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  ac_header_compiler=yes
1867else
1868  ac_header_compiler=no
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1872$as_echo "$ac_header_compiler" >&6; }
1873
1874# Is the header present?
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876$as_echo_n "checking $2 presence... " >&6; }
1877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h.  */
1879#include <$2>
1880_ACEOF
1881if ac_fn_c_try_cpp "$LINENO"; then :
1882  ac_header_preproc=yes
1883else
1884  ac_header_preproc=no
1885fi
1886rm -f conftest.err conftest.i conftest.$ac_ext
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1888$as_echo "$ac_header_preproc" >&6; }
1889
1890# So?  What about this header?
1891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1892  yes:no: )
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897    ;;
1898  no:yes:* )
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1902$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1906$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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( $as_echo "## ---------------------------------------------------------------------- ##
1910## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1911## ---------------------------------------------------------------------- ##"
1912     ) | sed "s/^/$as_me: WARNING:     /" >&2
1913    ;;
1914esac
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if eval \${$3+:} false; then :
1918  $as_echo_n "(cached) " >&6
1919else
1920  eval "$3=\$ac_header_compiler"
1921fi
1922eval ac_res=\$$3
1923	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
1925fi
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_header_mongrel
1929
1930# ac_fn_c_try_run LINENO
1931# ----------------------
1932# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933# that executables *can* be run.
1934ac_fn_c_try_run ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  if { { ac_try="$ac_link"
1938case "(($ac_try" in
1939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940  *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
1944  (eval "$ac_link") 2>&5
1945  ac_status=$?
1946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948  { { case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_try") 2>&5
1955  ac_status=$?
1956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957  test $ac_status = 0; }; }; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: program exited with status $ac_status" >&5
1961       $as_echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964       ac_retval=$ac_status
1965fi
1966  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968  as_fn_set_status $ac_retval
1969
1970} # ac_fn_c_try_run
1971
1972# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973# -------------------------------------------------------
1974# Tests whether HEADER exists and can be compiled using the include files in
1975# INCLUDES, setting the cache variable VAR accordingly.
1976ac_fn_c_check_header_compile ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval \${$3+:} false; then :
1982  $as_echo_n "(cached) " >&6
1983else
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987#include <$2>
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996eval ac_res=\$$3
1997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001} # ac_fn_c_check_header_compile
2002
2003# ac_fn_c_try_link LINENO
2004# -----------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_c_try_link ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  rm -f conftest.$ac_objext conftest$ac_exeext
2010  if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013  *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017  (eval "$ac_link") 2>conftest.err
2018  ac_status=$?
2019  if test -s conftest.err; then
2020    grep -v '^ *+' conftest.err >conftest.er1
2021    cat conftest.er1 >&5
2022    mv -f conftest.er1 conftest.err
2023  fi
2024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025  test $ac_status = 0; } && {
2026	 test -z "$ac_c_werror_flag" ||
2027	 test ! -s conftest.err
2028       } && test -s conftest$ac_exeext && {
2029	 test "$cross_compiling" = yes ||
2030	 test -x conftest$ac_exeext
2031       }; then :
2032  ac_retval=0
2033else
2034  $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037	ac_retval=1
2038fi
2039  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041  # interfere with the next link command; also delete a directory that is
2042  # left behind by Apple's compiler.  We do this before executing the actions.
2043  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_c_try_link
2048
2049# ac_fn_c_check_func LINENO FUNC VAR
2050# ----------------------------------
2051# Tests whether FUNC exists, setting the cache variable VAR accordingly
2052ac_fn_c_check_func ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
2057if eval \${$3+:} false; then :
2058  $as_echo_n "(cached) " >&6
2059else
2060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2064#define $2 innocuous_$2
2065
2066/* System header to define __stub macros and hopefully few prototypes,
2067    which can conflict with char $2 (); below.
2068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069    <limits.h> exists even on freestanding compilers.  */
2070
2071#ifdef __STDC__
2072# include <limits.h>
2073#else
2074# include <assert.h>
2075#endif
2076
2077#undef $2
2078
2079/* Override any GCC internal prototype to avoid an error.
2080   Use char because int might match the return type of a GCC
2081   builtin and then its argument prototype would still apply.  */
2082#ifdef __cplusplus
2083extern "C"
2084#endif
2085char $2 ();
2086/* The GNU C library defines this for functions which it implements
2087    to always fail with ENOSYS.  Some functions are actually named
2088    something starting with __ and the normal name is an alias.  */
2089#if defined __stub_$2 || defined __stub___$2
2090choke me
2091#endif
2092
2093int
2094main ()
2095{
2096return $2 ();
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_link "$LINENO"; then :
2102  eval "$3=yes"
2103else
2104  eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext \
2107    conftest$ac_exeext conftest.$ac_ext
2108fi
2109eval ac_res=\$$3
2110	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
2112  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114} # ac_fn_c_check_func
2115
2116# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2117# ---------------------------------------------
2118# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2119# accordingly.
2120ac_fn_c_check_decl ()
2121{
2122  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123  as_decl_name=`echo $2|sed 's/ *(.*//'`
2124  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2126$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2127if eval \${$3+:} false; then :
2128  $as_echo_n "(cached) " >&6
2129else
2130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136#ifndef $as_decl_name
2137#ifdef __cplusplus
2138  (void) $as_decl_use;
2139#else
2140  (void) $as_decl_name;
2141#endif
2142#endif
2143
2144  ;
2145  return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149  eval "$3=yes"
2150else
2151  eval "$3=no"
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159
2160} # ac_fn_c_check_decl
2161
2162# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163# ----------------------------------------------------
2164# Tries to find if the field MEMBER exists in type AGGR, after including
2165# INCLUDES, setting cache variable VAR accordingly.
2166ac_fn_c_check_member ()
2167{
2168  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170$as_echo_n "checking for $2.$3... " >&6; }
2171if eval \${$4+:} false; then :
2172  $as_echo_n "(cached) " >&6
2173else
2174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$5
2177int
2178main ()
2179{
2180static $2 ac_aggr;
2181if (ac_aggr.$3)
2182return 0;
2183  ;
2184  return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188  eval "$4=yes"
2189else
2190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$5
2193int
2194main ()
2195{
2196static $2 ac_aggr;
2197if (sizeof ac_aggr.$3)
2198return 0;
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204  eval "$4=yes"
2205else
2206  eval "$4=no"
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212eval ac_res=\$$4
2213	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217} # ac_fn_c_check_member
2218
2219# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220# -------------------------------------------
2221# Tests whether TYPE exists after having included INCLUDES, setting cache
2222# variable VAR accordingly.
2223ac_fn_c_check_type ()
2224{
2225  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
2228if eval \${$3+:} false; then :
2229  $as_echo_n "(cached) " >&6
2230else
2231  eval "$3=no"
2232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235int
2236main ()
2237{
2238if (sizeof ($2))
2239	 return 0;
2240  ;
2241  return 0;
2242}
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h.  */
2247$4
2248int
2249main ()
2250{
2251if (sizeof (($2)))
2252	    return 0;
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258
2259else
2260  eval "$3=yes"
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266eval ac_res=\$$3
2267	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268$as_echo "$ac_res" >&6; }
2269  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271} # ac_fn_c_check_type
2272cat >config.log <<_ACEOF
2273This file contains any messages produced by compilers while
2274running configure, to aid debugging if configure makes a mistake.
2275
2276It was created by libX11 $as_me 1.6.5, which was
2277generated by GNU Autoconf 2.69.  Invocation command line was
2278
2279  $ $0 $@
2280
2281_ACEOF
2282exec 5>>config.log
2283{
2284cat <<_ASUNAME
2285## --------- ##
2286## Platform. ##
2287## --------- ##
2288
2289hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2297
2298/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2299/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2300/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2302/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2303/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2304/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2305
2306_ASUNAME
2307
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311  IFS=$as_save_IFS
2312  test -z "$as_dir" && as_dir=.
2313    $as_echo "PATH: $as_dir"
2314  done
2315IFS=$as_save_IFS
2316
2317} >&5
2318
2319cat >&5 <<_ACEOF
2320
2321
2322## ----------- ##
2323## Core tests. ##
2324## ----------- ##
2325
2326_ACEOF
2327
2328
2329# Keep a trace of the command line.
2330# Strip out --no-create and --no-recursion so they do not pile up.
2331# Strip out --silent because we don't want to record it for future runs.
2332# Also quote any args containing shell meta-characters.
2333# Make two passes to allow for proper duplicate-argument suppression.
2334ac_configure_args=
2335ac_configure_args0=
2336ac_configure_args1=
2337ac_must_keep_next=false
2338for ac_pass in 1 2
2339do
2340  for ac_arg
2341  do
2342    case $ac_arg in
2343    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345    | -silent | --silent | --silen | --sile | --sil)
2346      continue ;;
2347    *\'*)
2348      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349    esac
2350    case $ac_pass in
2351    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352    2)
2353      as_fn_append ac_configure_args1 " '$ac_arg'"
2354      if test $ac_must_keep_next = true; then
2355	ac_must_keep_next=false # Got value, back to normal.
2356      else
2357	case $ac_arg in
2358	  *=* | --config-cache | -C | -disable-* | --disable-* \
2359	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361	  | -with-* | --with-* | -without-* | --without-* | --x)
2362	    case "$ac_configure_args0 " in
2363	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364	    esac
2365	    ;;
2366	  -* ) ac_must_keep_next=true ;;
2367	esac
2368      fi
2369      as_fn_append ac_configure_args " '$ac_arg'"
2370      ;;
2371    esac
2372  done
2373done
2374{ ac_configure_args0=; unset ac_configure_args0;}
2375{ ac_configure_args1=; unset ac_configure_args1;}
2376
2377# When interrupted or exit'd, cleanup temporary files, and complete
2378# config.log.  We remove comments because anyway the quotes in there
2379# would cause problems or look ugly.
2380# WARNING: Use '\'' to represent an apostrophe within the trap.
2381# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382trap 'exit_status=$?
2383  # Save into config.log some information that might help in debugging.
2384  {
2385    echo
2386
2387    $as_echo "## ---------------- ##
2388## Cache variables. ##
2389## ---------------- ##"
2390    echo
2391    # The following way of writing the cache mishandles newlines in values,
2392(
2393  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394    eval ac_val=\$$ac_var
2395    case $ac_val in #(
2396    *${as_nl}*)
2397      case $ac_var in #(
2398      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400      esac
2401      case $ac_var in #(
2402      _ | IFS | as_nl) ;; #(
2403      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404      *) { eval $ac_var=; unset $ac_var;} ;;
2405      esac ;;
2406    esac
2407  done
2408  (set) 2>&1 |
2409    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410    *${as_nl}ac_space=\ *)
2411      sed -n \
2412	"s/'\''/'\''\\\\'\'''\''/g;
2413	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414      ;; #(
2415    *)
2416      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417      ;;
2418    esac |
2419    sort
2420)
2421    echo
2422
2423    $as_echo "## ----------------- ##
2424## Output variables. ##
2425## ----------------- ##"
2426    echo
2427    for ac_var in $ac_subst_vars
2428    do
2429      eval ac_val=\$$ac_var
2430      case $ac_val in
2431      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432      esac
2433      $as_echo "$ac_var='\''$ac_val'\''"
2434    done | sort
2435    echo
2436
2437    if test -n "$ac_subst_files"; then
2438      $as_echo "## ------------------- ##
2439## File substitutions. ##
2440## ------------------- ##"
2441      echo
2442      for ac_var in $ac_subst_files
2443      do
2444	eval ac_val=\$$ac_var
2445	case $ac_val in
2446	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447	esac
2448	$as_echo "$ac_var='\''$ac_val'\''"
2449      done | sort
2450      echo
2451    fi
2452
2453    if test -s confdefs.h; then
2454      $as_echo "## ----------- ##
2455## confdefs.h. ##
2456## ----------- ##"
2457      echo
2458      cat confdefs.h
2459      echo
2460    fi
2461    test "$ac_signal" != 0 &&
2462      $as_echo "$as_me: caught signal $ac_signal"
2463    $as_echo "$as_me: exit $exit_status"
2464  } >&5
2465  rm -f core *.core core.conftest.* &&
2466    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467    exit $exit_status
2468' 0
2469for ac_signal in 1 2 13 15; do
2470  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471done
2472ac_signal=0
2473
2474# confdefs.h avoids OS command line length limits that DEFS can exceed.
2475rm -f -r conftest* confdefs.h
2476
2477$as_echo "/* confdefs.h */" > confdefs.h
2478
2479# Predefined preprocessor variables.
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_NAME "$PACKAGE_NAME"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_VERSION "$PACKAGE_VERSION"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_STRING "$PACKAGE_STRING"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_URL "$PACKAGE_URL"
2503_ACEOF
2504
2505
2506# Let the site file select an alternate cache file if it wants to.
2507# Prefer an explicitly selected file to automatically selected ones.
2508ac_site_file1=NONE
2509ac_site_file2=NONE
2510if test -n "$CONFIG_SITE"; then
2511  # We do not want a PATH search for config.site.
2512  case $CONFIG_SITE in #((
2513    -*)  ac_site_file1=./$CONFIG_SITE;;
2514    */*) ac_site_file1=$CONFIG_SITE;;
2515    *)   ac_site_file1=./$CONFIG_SITE;;
2516  esac
2517elif test "x$prefix" != xNONE; then
2518  ac_site_file1=$prefix/share/config.site
2519  ac_site_file2=$prefix/etc/config.site
2520else
2521  ac_site_file1=$ac_default_prefix/share/config.site
2522  ac_site_file2=$ac_default_prefix/etc/config.site
2523fi
2524for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525do
2526  test "x$ac_site_file" = xNONE && continue
2527  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530    sed 's/^/| /' "$ac_site_file" >&5
2531    . "$ac_site_file" \
2532      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534as_fn_error $? "failed to load site script $ac_site_file
2535See \`config.log' for more details" "$LINENO" 5; }
2536  fi
2537done
2538
2539if test -r "$cache_file"; then
2540  # Some versions of bash will fail to source /dev/null (special files
2541  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2542  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544$as_echo "$as_me: loading cache $cache_file" >&6;}
2545    case $cache_file in
2546      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547      *)                      . "./$cache_file";;
2548    esac
2549  fi
2550else
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552$as_echo "$as_me: creating cache $cache_file" >&6;}
2553  >$cache_file
2554fi
2555
2556as_fn_append ac_header_list " stdlib.h"
2557as_fn_append ac_header_list " unistd.h"
2558as_fn_append ac_header_list " sys/param.h"
2559# Check that the precious variables saved in the cache have kept the same
2560# value.
2561ac_cache_corrupted=false
2562for ac_var in $ac_precious_vars; do
2563  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564  eval ac_new_set=\$ac_env_${ac_var}_set
2565  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566  eval ac_new_val=\$ac_env_${ac_var}_value
2567  case $ac_old_set,$ac_new_set in
2568    set,)
2569      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571      ac_cache_corrupted=: ;;
2572    ,set)
2573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575      ac_cache_corrupted=: ;;
2576    ,);;
2577    *)
2578      if test "x$ac_old_val" != "x$ac_new_val"; then
2579	# differences in whitespace do not lead to failure.
2580	ac_old_val_w=`echo x $ac_old_val`
2581	ac_new_val_w=`echo x $ac_new_val`
2582	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585	  ac_cache_corrupted=:
2586	else
2587	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589	  eval $ac_var=\$ac_old_val
2590	fi
2591	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2592$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2594$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2595      fi;;
2596  esac
2597  # Pass precious variables to config.status.
2598  if test "$ac_new_set" = set; then
2599    case $ac_new_val in
2600    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601    *) ac_arg=$ac_var=$ac_new_val ;;
2602    esac
2603    case " $ac_configure_args " in
2604      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2605      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606    esac
2607  fi
2608done
2609if $ac_cache_corrupted; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615fi
2616## -------------------- ##
2617## Main body of script. ##
2618## -------------------- ##
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2629
2630
2631ac_aux_dir=
2632for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2633  if test -f "$ac_dir/install-sh"; then
2634    ac_aux_dir=$ac_dir
2635    ac_install_sh="$ac_aux_dir/install-sh -c"
2636    break
2637  elif test -f "$ac_dir/install.sh"; then
2638    ac_aux_dir=$ac_dir
2639    ac_install_sh="$ac_aux_dir/install.sh -c"
2640    break
2641  elif test -f "$ac_dir/shtool"; then
2642    ac_aux_dir=$ac_dir
2643    ac_install_sh="$ac_aux_dir/shtool install -c"
2644    break
2645  fi
2646done
2647if test -z "$ac_aux_dir"; then
2648  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2649fi
2650
2651# These three variables are undocumented and unsupported,
2652# and are intended to be withdrawn in a future Autoconf release.
2653# They can cause serious problems if a builder's source tree is in a directory
2654# whose full name contains unusual characters.
2655ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2656ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2657ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2658
2659
2660# Make sure we can run config.sub.
2661$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2662  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2663
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2665$as_echo_n "checking build system type... " >&6; }
2666if ${ac_cv_build+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  ac_build_alias=$build_alias
2670test "x$ac_build_alias" = x &&
2671  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2672test "x$ac_build_alias" = x &&
2673  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2674ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2675  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2676
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2679$as_echo "$ac_cv_build" >&6; }
2680case $ac_cv_build in
2681*-*-*) ;;
2682*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2683esac
2684build=$ac_cv_build
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_build
2687shift
2688build_cpu=$1
2689build_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693build_os=$*
2694IFS=$ac_save_IFS
2695case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2696
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2699$as_echo_n "checking host system type... " >&6; }
2700if ${ac_cv_host+:} false; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test "x$host_alias" = x; then
2704  ac_cv_host=$ac_cv_build
2705else
2706  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2707    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2708fi
2709
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2712$as_echo "$ac_cv_host" >&6; }
2713case $ac_cv_host in
2714*-*-*) ;;
2715*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2716esac
2717host=$ac_cv_host
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_host
2720shift
2721host_cpu=$1
2722host_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726host_os=$*
2727IFS=$ac_save_IFS
2728case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2729
2730
2731# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2732# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2733# to avoid autoconf errors.
2734# Expand $ac_aux_dir to an absolute path.
2735am_aux_dir=`cd "$ac_aux_dir" && pwd`
2736
2737ac_ext=c
2738ac_cpp='$CPP $CPPFLAGS'
2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742if test -n "$ac_tool_prefix"; then
2743  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744set dummy ${ac_tool_prefix}gcc; ac_word=$2
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746$as_echo_n "checking for $ac_word... " >&6; }
2747if ${ac_cv_prog_CC+:} false; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  if test -n "$CC"; then
2751  ac_cv_prog_CC="$CC" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758    for ac_exec_ext in '' $ac_executable_extensions; do
2759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770CC=$ac_cv_prog_CC
2771if test -n "$CC"; then
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773$as_echo "$CC" >&6; }
2774else
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
2777fi
2778
2779
2780fi
2781if test -z "$ac_cv_prog_CC"; then
2782  ac_ct_CC=$CC
2783  # Extract the first word of "gcc", so it can be a program name with args.
2784set dummy gcc; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_ac_ct_CC+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$ac_ct_CC"; then
2791  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_ac_ct_CC="gcc"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813$as_echo "$ac_ct_CC" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819  if test "x$ac_ct_CC" = x; then
2820    CC=""
2821  else
2822    case $cross_compiling:$ac_tool_warned in
2823yes:)
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826ac_tool_warned=yes ;;
2827esac
2828    CC=$ac_ct_CC
2829  fi
2830else
2831  CC="$ac_cv_prog_CC"
2832fi
2833
2834if test -z "$CC"; then
2835          if test -n "$ac_tool_prefix"; then
2836    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837set dummy ${ac_tool_prefix}cc; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if ${ac_cv_prog_CC+:} false; then :
2841  $as_echo_n "(cached) " >&6
2842else
2843  if test -n "$CC"; then
2844  ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851    for ac_exec_ext in '' $ac_executable_extensions; do
2852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853    ac_cv_prog_CC="${ac_tool_prefix}cc"
2854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866$as_echo "$CC" >&6; }
2867else
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873  fi
2874fi
2875if test -z "$CC"; then
2876  # Extract the first word of "cc", so it can be a program name with args.
2877set dummy cc; ac_word=$2
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879$as_echo_n "checking for $ac_word... " >&6; }
2880if ${ac_cv_prog_CC+:} false; then :
2881  $as_echo_n "(cached) " >&6
2882else
2883  if test -n "$CC"; then
2884  ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886  ac_prog_rejected=no
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895       ac_prog_rejected=yes
2896       continue
2897     fi
2898    ac_cv_prog_CC="cc"
2899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903  done
2904IFS=$as_save_IFS
2905
2906if test $ac_prog_rejected = yes; then
2907  # We found a bogon in the path, so make sure we never use it.
2908  set dummy $ac_cv_prog_CC
2909  shift
2910  if test $# != 0; then
2911    # We chose a different compiler from the bogus one.
2912    # However, it has the same basename, so the bogon will be chosen
2913    # first if we set CC to just the basename; use the full file name.
2914    shift
2915    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916  fi
2917fi
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923$as_echo "$CC" >&6; }
2924else
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927fi
2928
2929
2930fi
2931if test -z "$CC"; then
2932  if test -n "$ac_tool_prefix"; then
2933  for ac_prog in cl.exe
2934  do
2935    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972    test -n "$CC" && break
2973  done
2974fi
2975if test -z "$CC"; then
2976  ac_ct_CC=$CC
2977  for ac_prog in cl.exe
2978do
2979  # Extract the first word of "$ac_prog", so it can be a program name with args.
2980set dummy $ac_prog; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$ac_ct_CC"; then
2987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_ac_ct_CC="$ac_prog"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015
3016  test -n "$ac_ct_CC" && break
3017done
3018
3019  if test "x$ac_ct_CC" = x; then
3020    CC=""
3021  else
3022    case $cross_compiling:$ac_tool_warned in
3023yes:)
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026ac_tool_warned=yes ;;
3027esac
3028    CC=$ac_ct_CC
3029  fi
3030fi
3031
3032fi
3033
3034
3035test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037as_fn_error $? "no acceptable C compiler found in \$PATH
3038See \`config.log' for more details" "$LINENO" 5; }
3039
3040# Provide some information about the compiler.
3041$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3042set X $ac_compile
3043ac_compiler=$2
3044for ac_option in --version -v -V -qversion; do
3045  { { ac_try="$ac_compiler $ac_option >&5"
3046case "(($ac_try" in
3047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048  *) ac_try_echo=$ac_try;;
3049esac
3050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051$as_echo "$ac_try_echo"; } >&5
3052  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3053  ac_status=$?
3054  if test -s conftest.err; then
3055    sed '10a\
3056... rest of stderr output deleted ...
3057         10q' conftest.err >conftest.er1
3058    cat conftest.er1 >&5
3059  fi
3060  rm -f conftest.er1 conftest.err
3061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062  test $ac_status = 0; }
3063done
3064
3065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076ac_clean_files_save=$ac_clean_files
3077ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3078# Try to create an executable without -o first, disregard a.out.
3079# It will help us diagnose broken compilers, and finding out an intuition
3080# of exeext.
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3082$as_echo_n "checking whether the C compiler works... " >&6; }
3083ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3084
3085# The possible output files:
3086ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3087
3088ac_rmfiles=
3089for ac_file in $ac_files
3090do
3091  case $ac_file in
3092    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3093    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3094  esac
3095done
3096rm -f $ac_rmfiles
3097
3098if { { ac_try="$ac_link_default"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104$as_echo "$ac_try_echo"; } >&5
3105  (eval "$ac_link_default") 2>&5
3106  ac_status=$?
3107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108  test $ac_status = 0; }; then :
3109  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3110# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3111# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3112# so that the user can short-circuit this test for compilers unknown to
3113# Autoconf.
3114for ac_file in $ac_files ''
3115do
3116  test -f "$ac_file" || continue
3117  case $ac_file in
3118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3119	;;
3120    [ab].out )
3121	# We found the default executable, but exeext='' is most
3122	# certainly right.
3123	break;;
3124    *.* )
3125	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3126	then :; else
3127	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128	fi
3129	# We set ac_cv_exeext here because the later test for it is not
3130	# safe: cross compilers may not add the suffix if given an `-o'
3131	# argument, so we may need to know it at that point already.
3132	# Even if this section looks crufty: it has the advantage of
3133	# actually working.
3134	break;;
3135    * )
3136	break;;
3137  esac
3138done
3139test "$ac_cv_exeext" = no && ac_cv_exeext=
3140
3141else
3142  ac_file=''
3143fi
3144if test -z "$ac_file"; then :
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147$as_echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152as_fn_error 77 "C compiler cannot create executables
3153See \`config.log' for more details" "$LINENO" 5; }
3154else
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156$as_echo "yes" >&6; }
3157fi
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3159$as_echo_n "checking for C compiler default output file name... " >&6; }
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3161$as_echo "$ac_file" >&6; }
3162ac_exeext=$ac_cv_exeext
3163
3164rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3165ac_clean_files=$ac_clean_files_save
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3167$as_echo_n "checking for suffix of executables... " >&6; }
3168if { { ac_try="$ac_link"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175  (eval "$ac_link") 2>&5
3176  ac_status=$?
3177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178  test $ac_status = 0; }; then :
3179  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3181# work properly (i.e., refer to `conftest.exe'), while it won't with
3182# `rm'.
3183for ac_file in conftest.exe conftest conftest.*; do
3184  test -f "$ac_file" || continue
3185  case $ac_file in
3186    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188	  break;;
3189    * ) break;;
3190  esac
3191done
3192else
3193  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3196See \`config.log' for more details" "$LINENO" 5; }
3197fi
3198rm -f conftest conftest$ac_cv_exeext
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3200$as_echo "$ac_cv_exeext" >&6; }
3201
3202rm -f conftest.$ac_ext
3203EXEEXT=$ac_cv_exeext
3204ac_exeext=$EXEEXT
3205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207#include <stdio.h>
3208int
3209main ()
3210{
3211FILE *f = fopen ("conftest.out", "w");
3212 return ferror (f) || fclose (f) != 0;
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218ac_clean_files="$ac_clean_files conftest.out"
3219# Check that the compiler produces executables we can run.  If not, either
3220# the compiler is broken, or we cross compile.
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3222$as_echo_n "checking whether we are cross compiling... " >&6; }
3223if test "$cross_compiling" != yes; then
3224  { { ac_try="$ac_link"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }
3235  if { ac_try='./conftest$ac_cv_exeext'
3236  { { case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_try") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }; }; then
3246    cross_compiling=no
3247  else
3248    if test "$cross_compiling" = maybe; then
3249	cross_compiling=yes
3250    else
3251	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253as_fn_error $? "cannot run C compiled programs.
3254If you meant to cross compile, use \`--host'.
3255See \`config.log' for more details" "$LINENO" 5; }
3256    fi
3257  fi
3258fi
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3260$as_echo "$cross_compiling" >&6; }
3261
3262rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3263ac_clean_files=$ac_clean_files_save
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3265$as_echo_n "checking for suffix of object files... " >&6; }
3266if ${ac_cv_objext+:} false; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280rm -f conftest.o conftest.obj
3281if { { ac_try="$ac_compile"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
3288  (eval "$ac_compile") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291  test $ac_status = 0; }; then :
3292  for ac_file in conftest.o conftest.obj conftest.*; do
3293  test -f "$ac_file" || continue;
3294  case $ac_file in
3295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3296    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3297       break;;
3298  esac
3299done
3300else
3301  $as_echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "cannot compute suffix of object files: cannot compile
3307See \`config.log' for more details" "$LINENO" 5; }
3308fi
3309rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3312$as_echo "$ac_cv_objext" >&6; }
3313OBJEXT=$ac_cv_objext
3314ac_objext=$OBJEXT
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3316$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3317if ${ac_cv_c_compiler_gnu+:} false; then :
3318  $as_echo_n "(cached) " >&6
3319else
3320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326#ifndef __GNUC__
3327       choke me
3328#endif
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335  ac_compiler_gnu=yes
3336else
3337  ac_compiler_gnu=no
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340ac_cv_c_compiler_gnu=$ac_compiler_gnu
3341
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3344$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3345if test $ac_compiler_gnu = yes; then
3346  GCC=yes
3347else
3348  GCC=
3349fi
3350ac_test_CFLAGS=${CFLAGS+set}
3351ac_save_CFLAGS=$CFLAGS
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3353$as_echo_n "checking whether $CC accepts -g... " >&6; }
3354if ${ac_cv_prog_cc_g+:} false; then :
3355  $as_echo_n "(cached) " >&6
3356else
3357  ac_save_c_werror_flag=$ac_c_werror_flag
3358   ac_c_werror_flag=yes
3359   ac_cv_prog_cc_g=no
3360   CFLAGS="-g"
3361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372if ac_fn_c_try_compile "$LINENO"; then :
3373  ac_cv_prog_cc_g=yes
3374else
3375  CFLAGS=""
3376      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387if ac_fn_c_try_compile "$LINENO"; then :
3388
3389else
3390  ac_c_werror_flag=$ac_save_c_werror_flag
3391	 CFLAGS="-g"
3392	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393/* end confdefs.h.  */
3394
3395int
3396main ()
3397{
3398
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403if ac_fn_c_try_compile "$LINENO"; then :
3404  ac_cv_prog_cc_g=yes
3405fi
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409fi
3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411   ac_c_werror_flag=$ac_save_c_werror_flag
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3414$as_echo "$ac_cv_prog_cc_g" >&6; }
3415if test "$ac_test_CFLAGS" = set; then
3416  CFLAGS=$ac_save_CFLAGS
3417elif test $ac_cv_prog_cc_g = yes; then
3418  if test "$GCC" = yes; then
3419    CFLAGS="-g -O2"
3420  else
3421    CFLAGS="-g"
3422  fi
3423else
3424  if test "$GCC" = yes; then
3425    CFLAGS="-O2"
3426  else
3427    CFLAGS=
3428  fi
3429fi
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3431$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3432if ${ac_cv_prog_cc_c89+:} false; then :
3433  $as_echo_n "(cached) " >&6
3434else
3435  ac_cv_prog_cc_c89=no
3436ac_save_CC=$CC
3437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h.  */
3439#include <stdarg.h>
3440#include <stdio.h>
3441struct stat;
3442/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3443struct buf { int x; };
3444FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445static char *e (p, i)
3446     char **p;
3447     int i;
3448{
3449  return p[i];
3450}
3451static char *f (char * (*g) (char **, int), char **p, ...)
3452{
3453  char *s;
3454  va_list v;
3455  va_start (v,p);
3456  s = g (p, va_arg (v,int));
3457  va_end (v);
3458  return s;
3459}
3460
3461/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3462   function prototypes and stuff, but not '\xHH' hex character constants.
3463   These don't provoke an error unfortunately, instead are silently treated
3464   as 'x'.  The following induces an error, until -std is added to get
3465   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3466   array size at least.  It's necessary to write '\x00'==0 to get something
3467   that's true only with -std.  */
3468int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469
3470/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3471   inside strings and character constants.  */
3472#define FOO(x) 'x'
3473int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474
3475int test (int i, double x);
3476struct s1 {int (*f) (int a);};
3477struct s2 {int (*f) (double a);};
3478int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479int argc;
3480char **argv;
3481int
3482main ()
3483{
3484return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3490	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491do
3492  CC="$ac_save_CC $ac_arg"
3493  if ac_fn_c_try_compile "$LINENO"; then :
3494  ac_cv_prog_cc_c89=$ac_arg
3495fi
3496rm -f core conftest.err conftest.$ac_objext
3497  test "x$ac_cv_prog_cc_c89" != "xno" && break
3498done
3499rm -f conftest.$ac_ext
3500CC=$ac_save_CC
3501
3502fi
3503# AC_CACHE_VAL
3504case "x$ac_cv_prog_cc_c89" in
3505  x)
3506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3507$as_echo "none needed" >&6; } ;;
3508  xno)
3509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3510$as_echo "unsupported" >&6; } ;;
3511  *)
3512    CC="$CC $ac_cv_prog_cc_c89"
3513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3514$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3515esac
3516if test "x$ac_cv_prog_cc_c89" != xno; then :
3517
3518fi
3519
3520ac_ext=c
3521ac_cpp='$CPP $CPPFLAGS'
3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
3526ac_ext=c
3527ac_cpp='$CPP $CPPFLAGS'
3528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3532$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3533if ${am_cv_prog_cc_c_o+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547  # Make sure it works both with $CC and with simple cc.
3548  # Following AC_PROG_CC_C_O, we do the test twice because some
3549  # compilers refuse to overwrite an existing .o file with -o,
3550  # though they will create one.
3551  am_cv_prog_cc_c_o=yes
3552  for am_i in 1 2; do
3553    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3554   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } \
3558         && test -f conftest2.$ac_objext; then
3559      : OK
3560    else
3561      am_cv_prog_cc_c_o=no
3562      break
3563    fi
3564  done
3565  rm -f core conftest*
3566  unset am_i
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3569$as_echo "$am_cv_prog_cc_c_o" >&6; }
3570if test "$am_cv_prog_cc_c_o" != yes; then
3571   # Losing compiler, so override with the script.
3572   # FIXME: It is wrong to rewrite CC.
3573   # But if we don't then we get into trouble of one sort or another.
3574   # A longer-term fix would be to have automake use am__CC in this case,
3575   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3576   CC="$am_aux_dir/compile $CC"
3577fi
3578ac_ext=c
3579ac_cpp='$CPP $CPPFLAGS'
3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584
3585
3586ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3592$as_echo_n "checking how to run the C preprocessor... " >&6; }
3593# On Suns, sometimes $CPP names a directory.
3594if test -n "$CPP" && test -d "$CPP"; then
3595  CPP=
3596fi
3597if test -z "$CPP"; then
3598  if ${ac_cv_prog_CPP+:} false; then :
3599  $as_echo_n "(cached) " >&6
3600else
3601      # Double quotes because CPP needs to be expanded
3602    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603    do
3604      ac_preproc_ok=false
3605for ac_c_preproc_warn_flag in '' yes
3606do
3607  # Use a header file that comes with gcc, so configuring glibc
3608  # with a fresh cross-compiler works.
3609  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610  # <limits.h> exists even on freestanding compilers.
3611  # On the NeXT, cc -E runs the code through the compiler's parser,
3612  # not just through cpp. "Syntax error" is here to catch this case.
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615#ifdef __STDC__
3616# include <limits.h>
3617#else
3618# include <assert.h>
3619#endif
3620		     Syntax error
3621_ACEOF
3622if ac_fn_c_try_cpp "$LINENO"; then :
3623
3624else
3625  # Broken: fails on valid input.
3626continue
3627fi
3628rm -f conftest.err conftest.i conftest.$ac_ext
3629
3630  # OK, works on sane cases.  Now check whether nonexistent headers
3631  # can be detected and how.
3632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634#include <ac_nonexistent.h>
3635_ACEOF
3636if ac_fn_c_try_cpp "$LINENO"; then :
3637  # Broken: success on invalid input.
3638continue
3639else
3640  # Passes both tests.
3641ac_preproc_ok=:
3642break
3643fi
3644rm -f conftest.err conftest.i conftest.$ac_ext
3645
3646done
3647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648rm -f conftest.i conftest.err conftest.$ac_ext
3649if $ac_preproc_ok; then :
3650  break
3651fi
3652
3653    done
3654    ac_cv_prog_CPP=$CPP
3655
3656fi
3657  CPP=$ac_cv_prog_CPP
3658else
3659  ac_cv_prog_CPP=$CPP
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3662$as_echo "$CPP" >&6; }
3663ac_preproc_ok=false
3664for ac_c_preproc_warn_flag in '' yes
3665do
3666  # Use a header file that comes with gcc, so configuring glibc
3667  # with a fresh cross-compiler works.
3668  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669  # <limits.h> exists even on freestanding compilers.
3670  # On the NeXT, cc -E runs the code through the compiler's parser,
3671  # not just through cpp. "Syntax error" is here to catch this case.
3672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674#ifdef __STDC__
3675# include <limits.h>
3676#else
3677# include <assert.h>
3678#endif
3679		     Syntax error
3680_ACEOF
3681if ac_fn_c_try_cpp "$LINENO"; then :
3682
3683else
3684  # Broken: fails on valid input.
3685continue
3686fi
3687rm -f conftest.err conftest.i conftest.$ac_ext
3688
3689  # OK, works on sane cases.  Now check whether nonexistent headers
3690  # can be detected and how.
3691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h.  */
3693#include <ac_nonexistent.h>
3694_ACEOF
3695if ac_fn_c_try_cpp "$LINENO"; then :
3696  # Broken: success on invalid input.
3697continue
3698else
3699  # Passes both tests.
3700ac_preproc_ok=:
3701break
3702fi
3703rm -f conftest.err conftest.i conftest.$ac_ext
3704
3705done
3706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707rm -f conftest.i conftest.err conftest.$ac_ext
3708if $ac_preproc_ok; then :
3709
3710else
3711  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3714See \`config.log' for more details" "$LINENO" 5; }
3715fi
3716
3717ac_ext=c
3718ac_cpp='$CPP $CPPFLAGS'
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3725$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3726if ${ac_cv_path_GREP+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -z "$GREP"; then
3730  ac_path_GREP_found=false
3731  # Loop through the user's path and test for each of PROGNAME-LIST
3732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_prog in grep ggrep; do
3738    for ac_exec_ext in '' $ac_executable_extensions; do
3739      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3740      as_fn_executable_p "$ac_path_GREP" || continue
3741# Check for GNU ac_path_GREP and select it if it is found.
3742  # Check for GNU $ac_path_GREP
3743case `"$ac_path_GREP" --version 2>&1` in
3744*GNU*)
3745  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746*)
3747  ac_count=0
3748  $as_echo_n 0123456789 >"conftest.in"
3749  while :
3750  do
3751    cat "conftest.in" "conftest.in" >"conftest.tmp"
3752    mv "conftest.tmp" "conftest.in"
3753    cp "conftest.in" "conftest.nl"
3754    $as_echo 'GREP' >> "conftest.nl"
3755    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757    as_fn_arith $ac_count + 1 && ac_count=$as_val
3758    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3759      # Best one so far, save it but keep looking for a better one
3760      ac_cv_path_GREP="$ac_path_GREP"
3761      ac_path_GREP_max=$ac_count
3762    fi
3763    # 10*(2^10) chars as input seems more than enough
3764    test $ac_count -gt 10 && break
3765  done
3766  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767esac
3768
3769      $ac_path_GREP_found && break 3
3770    done
3771  done
3772  done
3773IFS=$as_save_IFS
3774  if test -z "$ac_cv_path_GREP"; then
3775    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3776  fi
3777else
3778  ac_cv_path_GREP=$GREP
3779fi
3780
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3783$as_echo "$ac_cv_path_GREP" >&6; }
3784 GREP="$ac_cv_path_GREP"
3785
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3788$as_echo_n "checking for egrep... " >&6; }
3789if ${ac_cv_path_EGREP+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3793   then ac_cv_path_EGREP="$GREP -E"
3794   else
3795     if test -z "$EGREP"; then
3796  ac_path_EGREP_found=false
3797  # Loop through the user's path and test for each of PROGNAME-LIST
3798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800do
3801  IFS=$as_save_IFS
3802  test -z "$as_dir" && as_dir=.
3803    for ac_prog in egrep; do
3804    for ac_exec_ext in '' $ac_executable_extensions; do
3805      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3806      as_fn_executable_p "$ac_path_EGREP" || continue
3807# Check for GNU ac_path_EGREP and select it if it is found.
3808  # Check for GNU $ac_path_EGREP
3809case `"$ac_path_EGREP" --version 2>&1` in
3810*GNU*)
3811  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3812*)
3813  ac_count=0
3814  $as_echo_n 0123456789 >"conftest.in"
3815  while :
3816  do
3817    cat "conftest.in" "conftest.in" >"conftest.tmp"
3818    mv "conftest.tmp" "conftest.in"
3819    cp "conftest.in" "conftest.nl"
3820    $as_echo 'EGREP' >> "conftest.nl"
3821    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823    as_fn_arith $ac_count + 1 && ac_count=$as_val
3824    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3825      # Best one so far, save it but keep looking for a better one
3826      ac_cv_path_EGREP="$ac_path_EGREP"
3827      ac_path_EGREP_max=$ac_count
3828    fi
3829    # 10*(2^10) chars as input seems more than enough
3830    test $ac_count -gt 10 && break
3831  done
3832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833esac
3834
3835      $ac_path_EGREP_found && break 3
3836    done
3837  done
3838  done
3839IFS=$as_save_IFS
3840  if test -z "$ac_cv_path_EGREP"; then
3841    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3842  fi
3843else
3844  ac_cv_path_EGREP=$EGREP
3845fi
3846
3847   fi
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3850$as_echo "$ac_cv_path_EGREP" >&6; }
3851 EGREP="$ac_cv_path_EGREP"
3852
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3855$as_echo_n "checking for ANSI C header files... " >&6; }
3856if ${ac_cv_header_stdc+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <stdlib.h>
3862#include <stdarg.h>
3863#include <string.h>
3864#include <float.h>
3865
3866int
3867main ()
3868{
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875  ac_cv_header_stdc=yes
3876else
3877  ac_cv_header_stdc=no
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881if test $ac_cv_header_stdc = yes; then
3882  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884/* end confdefs.h.  */
3885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889  $EGREP "memchr" >/dev/null 2>&1; then :
3890
3891else
3892  ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902#include <stdlib.h>
3903
3904_ACEOF
3905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906  $EGREP "free" >/dev/null 2>&1; then :
3907
3908else
3909  ac_cv_header_stdc=no
3910fi
3911rm -f conftest*
3912
3913fi
3914
3915if test $ac_cv_header_stdc = yes; then
3916  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3917  if test "$cross_compiling" = yes; then :
3918  :
3919else
3920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922#include <ctype.h>
3923#include <stdlib.h>
3924#if ((' ' & 0x0FF) == 0x020)
3925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927#else
3928# define ISLOWER(c) \
3929		   (('a' <= (c) && (c) <= 'i') \
3930		     || ('j' <= (c) && (c) <= 'r') \
3931		     || ('s' <= (c) && (c) <= 'z'))
3932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933#endif
3934
3935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936int
3937main ()
3938{
3939  int i;
3940  for (i = 0; i < 256; i++)
3941    if (XOR (islower (i), ISLOWER (i))
3942	|| toupper (i) != TOUPPER (i))
3943      return 2;
3944  return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_run "$LINENO"; then :
3948
3949else
3950  ac_cv_header_stdc=no
3951fi
3952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3953  conftest.$ac_objext conftest.beam conftest.$ac_ext
3954fi
3955
3956fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3959$as_echo "$ac_cv_header_stdc" >&6; }
3960if test $ac_cv_header_stdc = yes; then
3961
3962$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3963
3964fi
3965
3966# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3967for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3968		  inttypes.h stdint.h unistd.h
3969do :
3970  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3971ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3972"
3973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3974  cat >>confdefs.h <<_ACEOF
3975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3976_ACEOF
3977
3978fi
3979
3980done
3981
3982
3983
3984  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3985if test "x$ac_cv_header_minix_config_h" = xyes; then :
3986  MINIX=yes
3987else
3988  MINIX=
3989fi
3990
3991
3992  if test "$MINIX" = yes; then
3993
3994$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3995
3996
3997$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3998
3999
4000$as_echo "#define _MINIX 1" >>confdefs.h
4001
4002  fi
4003
4004
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4006$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4007if ${ac_cv_safe_to_define___extensions__+:} false; then :
4008  $as_echo_n "(cached) " >&6
4009else
4010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h.  */
4012
4013#         define __EXTENSIONS__ 1
4014          $ac_includes_default
4015int
4016main ()
4017{
4018
4019  ;
4020  return 0;
4021}
4022_ACEOF
4023if ac_fn_c_try_compile "$LINENO"; then :
4024  ac_cv_safe_to_define___extensions__=yes
4025else
4026  ac_cv_safe_to_define___extensions__=no
4027fi
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4031$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4032  test $ac_cv_safe_to_define___extensions__ = yes &&
4033    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4034
4035  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4036
4037  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4038
4039  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4040
4041  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4042
4043
4044
4045# Initialize Automake
4046am__api_version='1.15'
4047
4048# Find a good install program.  We prefer a C program (faster),
4049# so one script is as good as another.  But avoid the broken or
4050# incompatible versions:
4051# SysV /etc/install, /usr/sbin/install
4052# SunOS /usr/etc/install
4053# IRIX /sbin/install
4054# AIX /bin/install
4055# AmigaOS /C/install, which installs bootblocks on floppy discs
4056# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4057# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4058# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4059# OS/2's system install, which has a completely different semantic
4060# ./install, which can be erroneously created by make from ./install.sh.
4061# Reject install programs that cannot install multiple files.
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4063$as_echo_n "checking for a BSD-compatible install... " >&6; }
4064if test -z "$INSTALL"; then
4065if ${ac_cv_path_install+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071  IFS=$as_save_IFS
4072  test -z "$as_dir" && as_dir=.
4073    # Account for people who put trailing slashes in PATH elements.
4074case $as_dir/ in #((
4075  ./ | .// | /[cC]/* | \
4076  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4077  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4078  /usr/ucb/* ) ;;
4079  *)
4080    # OSF1 and SCO ODT 3.0 have their own names for install.
4081    # Don't use installbsd from OSF since it installs stuff as root
4082    # by default.
4083    for ac_prog in ginstall scoinst install; do
4084      for ac_exec_ext in '' $ac_executable_extensions; do
4085	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4086	  if test $ac_prog = install &&
4087	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4088	    # AIX install.  It has an incompatible calling convention.
4089	    :
4090	  elif test $ac_prog = install &&
4091	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4092	    # program-specific install script used by HP pwplus--don't use.
4093	    :
4094	  else
4095	    rm -rf conftest.one conftest.two conftest.dir
4096	    echo one > conftest.one
4097	    echo two > conftest.two
4098	    mkdir conftest.dir
4099	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4100	      test -s conftest.one && test -s conftest.two &&
4101	      test -s conftest.dir/conftest.one &&
4102	      test -s conftest.dir/conftest.two
4103	    then
4104	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4105	      break 3
4106	    fi
4107	  fi
4108	fi
4109      done
4110    done
4111    ;;
4112esac
4113
4114  done
4115IFS=$as_save_IFS
4116
4117rm -rf conftest.one conftest.two conftest.dir
4118
4119fi
4120  if test "${ac_cv_path_install+set}" = set; then
4121    INSTALL=$ac_cv_path_install
4122  else
4123    # As a last resort, use the slow shell script.  Don't cache a
4124    # value for INSTALL within a source directory, because that will
4125    # break other packages using the cache if that directory is
4126    # removed, or if the value is a relative name.
4127    INSTALL=$ac_install_sh
4128  fi
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4131$as_echo "$INSTALL" >&6; }
4132
4133# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4134# It thinks the first close brace ends the variable substitution.
4135test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4136
4137test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4138
4139test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4142$as_echo_n "checking whether build environment is sane... " >&6; }
4143# Reject unsafe characters in $srcdir or the absolute working directory
4144# name.  Accept space and tab only in the latter.
4145am_lf='
4146'
4147case `pwd` in
4148  *[\\\"\#\$\&\'\`$am_lf]*)
4149    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4150esac
4151case $srcdir in
4152  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4153    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4154esac
4155
4156# Do 'set' in a subshell so we don't clobber the current shell's
4157# arguments.  Must try -L first in case configure is actually a
4158# symlink; some systems play weird games with the mod time of symlinks
4159# (eg FreeBSD returns the mod time of the symlink's containing
4160# directory).
4161if (
4162   am_has_slept=no
4163   for am_try in 1 2; do
4164     echo "timestamp, slept: $am_has_slept" > conftest.file
4165     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4166     if test "$*" = "X"; then
4167	# -L didn't work.
4168	set X `ls -t "$srcdir/configure" conftest.file`
4169     fi
4170     if test "$*" != "X $srcdir/configure conftest.file" \
4171	&& test "$*" != "X conftest.file $srcdir/configure"; then
4172
4173	# If neither matched, then we have a broken ls.  This can happen
4174	# if, for instance, CONFIG_SHELL is bash and it inherits a
4175	# broken ls alias from the environment.  This has actually
4176	# happened.  Such a system could not be considered "sane".
4177	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4178  alias in your environment" "$LINENO" 5
4179     fi
4180     if test "$2" = conftest.file || test $am_try -eq 2; then
4181       break
4182     fi
4183     # Just in case.
4184     sleep 1
4185     am_has_slept=yes
4186   done
4187   test "$2" = conftest.file
4188   )
4189then
4190   # Ok.
4191   :
4192else
4193   as_fn_error $? "newly created file is older than distributed files!
4194Check your system clock" "$LINENO" 5
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197$as_echo "yes" >&6; }
4198# If we didn't sleep, we still need to ensure time stamps of config.status and
4199# generated files are strictly newer.
4200am_sleep_pid=
4201if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4202  ( sleep 1 ) &
4203  am_sleep_pid=$!
4204fi
4205
4206rm -f conftest.file
4207
4208test "$program_prefix" != NONE &&
4209  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4210# Use a double $ so make ignores it.
4211test "$program_suffix" != NONE &&
4212  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4213# Double any \ or $.
4214# By default was `s,x,x', remove it if useless.
4215ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4216program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4217
4218if test x"${MISSING+set}" != xset; then
4219  case $am_aux_dir in
4220  *\ * | *\	*)
4221    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4222  *)
4223    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4224  esac
4225fi
4226# Use eval to expand $SHELL
4227if eval "$MISSING --is-lightweight"; then
4228  am_missing_run="$MISSING "
4229else
4230  am_missing_run=
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4232$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4233fi
4234
4235if test x"${install_sh+set}" != xset; then
4236  case $am_aux_dir in
4237  *\ * | *\	*)
4238    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4239  *)
4240    install_sh="\${SHELL} $am_aux_dir/install-sh"
4241  esac
4242fi
4243
4244# Installed binaries are usually stripped using 'strip' when the user
4245# run "make install-strip".  However 'strip' might not be the right
4246# tool to use in cross-compilation environments, therefore Automake
4247# will honor the 'STRIP' environment variable to overrule this program.
4248if test "$cross_compiling" != no; then
4249  if test -n "$ac_tool_prefix"; then
4250  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4251set dummy ${ac_tool_prefix}strip; ac_word=$2
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253$as_echo_n "checking for $ac_word... " >&6; }
4254if ${ac_cv_prog_STRIP+:} false; then :
4255  $as_echo_n "(cached) " >&6
4256else
4257  if test -n "$STRIP"; then
4258  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4259else
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265    for ac_exec_ext in '' $ac_executable_extensions; do
4266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269    break 2
4270  fi
4271done
4272  done
4273IFS=$as_save_IFS
4274
4275fi
4276fi
4277STRIP=$ac_cv_prog_STRIP
4278if test -n "$STRIP"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4280$as_echo "$STRIP" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286
4287fi
4288if test -z "$ac_cv_prog_STRIP"; then
4289  ac_ct_STRIP=$STRIP
4290  # Extract the first word of "strip", so it can be a program name with args.
4291set dummy strip; ac_word=$2
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293$as_echo_n "checking for $ac_word... " >&6; }
4294if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  if test -n "$ac_ct_STRIP"; then
4298  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  test -z "$as_dir" && as_dir=.
4305    for ac_exec_ext in '' $ac_executable_extensions; do
4306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307    ac_cv_prog_ac_ct_STRIP="strip"
4308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309    break 2
4310  fi
4311done
4312  done
4313IFS=$as_save_IFS
4314
4315fi
4316fi
4317ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4318if test -n "$ac_ct_STRIP"; then
4319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4320$as_echo "$ac_ct_STRIP" >&6; }
4321else
4322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
4324fi
4325
4326  if test "x$ac_ct_STRIP" = x; then
4327    STRIP=":"
4328  else
4329    case $cross_compiling:$ac_tool_warned in
4330yes:)
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333ac_tool_warned=yes ;;
4334esac
4335    STRIP=$ac_ct_STRIP
4336  fi
4337else
4338  STRIP="$ac_cv_prog_STRIP"
4339fi
4340
4341fi
4342INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4345$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4346if test -z "$MKDIR_P"; then
4347  if ${ac_cv_path_mkdir+:} false; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_prog in mkdir gmkdir; do
4356	 for ac_exec_ext in '' $ac_executable_extensions; do
4357	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4358	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4359	     'mkdir (GNU coreutils) '* | \
4360	     'mkdir (coreutils) '* | \
4361	     'mkdir (fileutils) '4.1*)
4362	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4363	       break 3;;
4364	   esac
4365	 done
4366       done
4367  done
4368IFS=$as_save_IFS
4369
4370fi
4371
4372  test -d ./--version && rmdir ./--version
4373  if test "${ac_cv_path_mkdir+set}" = set; then
4374    MKDIR_P="$ac_cv_path_mkdir -p"
4375  else
4376    # As a last resort, use the slow shell script.  Don't cache a
4377    # value for MKDIR_P within a source directory, because that will
4378    # break other packages using the cache if that directory is
4379    # removed, or if the value is a relative name.
4380    MKDIR_P="$ac_install_sh -d"
4381  fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4384$as_echo "$MKDIR_P" >&6; }
4385
4386for ac_prog in gawk mawk nawk awk
4387do
4388  # Extract the first word of "$ac_prog", so it can be a program name with args.
4389set dummy $ac_prog; ac_word=$2
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391$as_echo_n "checking for $ac_word... " >&6; }
4392if ${ac_cv_prog_AWK+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  if test -n "$AWK"; then
4396  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401  IFS=$as_save_IFS
4402  test -z "$as_dir" && as_dir=.
4403    for ac_exec_ext in '' $ac_executable_extensions; do
4404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405    ac_cv_prog_AWK="$ac_prog"
4406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407    break 2
4408  fi
4409done
4410  done
4411IFS=$as_save_IFS
4412
4413fi
4414fi
4415AWK=$ac_cv_prog_AWK
4416if test -n "$AWK"; then
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4418$as_echo "$AWK" >&6; }
4419else
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421$as_echo "no" >&6; }
4422fi
4423
4424
4425  test -n "$AWK" && break
4426done
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4429$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4430set x ${MAKE-make}
4431ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4432if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435  cat >conftest.make <<\_ACEOF
4436SHELL = /bin/sh
4437all:
4438	@echo '@@@%%%=$(MAKE)=@@@%%%'
4439_ACEOF
4440# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4441case `${MAKE-make} -f conftest.make 2>/dev/null` in
4442  *@@@%%%=?*=@@@%%%*)
4443    eval ac_cv_prog_make_${ac_make}_set=yes;;
4444  *)
4445    eval ac_cv_prog_make_${ac_make}_set=no;;
4446esac
4447rm -f conftest.make
4448fi
4449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451$as_echo "yes" >&6; }
4452  SET_MAKE=
4453else
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
4456  SET_MAKE="MAKE=${MAKE-make}"
4457fi
4458
4459rm -rf .tst 2>/dev/null
4460mkdir .tst 2>/dev/null
4461if test -d .tst; then
4462  am__leading_dot=.
4463else
4464  am__leading_dot=_
4465fi
4466rmdir .tst 2>/dev/null
4467
4468DEPDIR="${am__leading_dot}deps"
4469
4470ac_config_commands="$ac_config_commands depfiles"
4471
4472
4473am_make=${MAKE-make}
4474cat > confinc << 'END'
4475am__doit:
4476	@echo this is the am__doit target
4477.PHONY: am__doit
4478END
4479# If we don't find an include directive, just comment out the code.
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4481$as_echo_n "checking for style of include used by $am_make... " >&6; }
4482am__include="#"
4483am__quote=
4484_am_result=none
4485# First try GNU make style include.
4486echo "include confinc" > confmf
4487# Ignore all kinds of additional output from 'make'.
4488case `$am_make -s -f confmf 2> /dev/null` in #(
4489*the\ am__doit\ target*)
4490  am__include=include
4491  am__quote=
4492  _am_result=GNU
4493  ;;
4494esac
4495# Now try BSD make style include.
4496if test "$am__include" = "#"; then
4497   echo '.include "confinc"' > confmf
4498   case `$am_make -s -f confmf 2> /dev/null` in #(
4499   *the\ am__doit\ target*)
4500     am__include=.include
4501     am__quote="\""
4502     _am_result=BSD
4503     ;;
4504   esac
4505fi
4506
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4509$as_echo "$_am_result" >&6; }
4510rm -f confinc confmf
4511
4512# Check whether --enable-dependency-tracking was given.
4513if test "${enable_dependency_tracking+set}" = set; then :
4514  enableval=$enable_dependency_tracking;
4515fi
4516
4517if test "x$enable_dependency_tracking" != xno; then
4518  am_depcomp="$ac_aux_dir/depcomp"
4519  AMDEPBACKSLASH='\'
4520  am__nodep='_no'
4521fi
4522 if test "x$enable_dependency_tracking" != xno; then
4523  AMDEP_TRUE=
4524  AMDEP_FALSE='#'
4525else
4526  AMDEP_TRUE='#'
4527  AMDEP_FALSE=
4528fi
4529
4530
4531# Check whether --enable-silent-rules was given.
4532if test "${enable_silent_rules+set}" = set; then :
4533  enableval=$enable_silent_rules;
4534fi
4535
4536case $enable_silent_rules in # (((
4537  yes) AM_DEFAULT_VERBOSITY=0;;
4538   no) AM_DEFAULT_VERBOSITY=1;;
4539    *) AM_DEFAULT_VERBOSITY=1;;
4540esac
4541am_make=${MAKE-make}
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4543$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4544if ${am_cv_make_support_nested_variables+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  if $as_echo 'TRUE=$(BAR$(V))
4548BAR0=false
4549BAR1=true
4550V=1
4551am__doit:
4552	@$(TRUE)
4553.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4554  am_cv_make_support_nested_variables=yes
4555else
4556  am_cv_make_support_nested_variables=no
4557fi
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4560$as_echo "$am_cv_make_support_nested_variables" >&6; }
4561if test $am_cv_make_support_nested_variables = yes; then
4562    AM_V='$(V)'
4563  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4564else
4565  AM_V=$AM_DEFAULT_VERBOSITY
4566  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4567fi
4568AM_BACKSLASH='\'
4569
4570if test "`cd $srcdir && pwd`" != "`pwd`"; then
4571  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4572  # is not polluted with repeated "-I."
4573  am__isrc=' -I$(srcdir)'
4574  # test to see if srcdir already configured
4575  if test -f $srcdir/config.status; then
4576    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4577  fi
4578fi
4579
4580# test whether we have cygpath
4581if test -z "$CYGPATH_W"; then
4582  if (cygpath --version) >/dev/null 2>/dev/null; then
4583    CYGPATH_W='cygpath -w'
4584  else
4585    CYGPATH_W=echo
4586  fi
4587fi
4588
4589
4590# Define the identity of the package.
4591 PACKAGE='libX11'
4592 VERSION='1.6.5'
4593
4594
4595cat >>confdefs.h <<_ACEOF
4596#define PACKAGE "$PACKAGE"
4597_ACEOF
4598
4599
4600cat >>confdefs.h <<_ACEOF
4601#define VERSION "$VERSION"
4602_ACEOF
4603
4604# Some tools Automake needs.
4605
4606ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4607
4608
4609AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4610
4611
4612AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4613
4614
4615AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4616
4617
4618MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4619
4620# For better backward compatibility.  To be removed once Automake 1.9.x
4621# dies out for good.  For more background, see:
4622# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4623# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4624mkdir_p='$(MKDIR_P)'
4625
4626# We need awk for the "check" target (and possibly the TAP driver).  The
4627# system "awk" is bad on some platforms.
4628# Always define AMTAR for backward compatibility.  Yes, it's still used
4629# in the wild :-(  We should find a proper way to deprecate it ...
4630AMTAR='$${TAR-tar}'
4631
4632
4633# We'll loop over all known methods to create a tar archive until one works.
4634_am_tools='gnutar  pax cpio none'
4635
4636am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4637
4638
4639
4640
4641
4642depcc="$CC"   am_compiler_list=
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4645$as_echo_n "checking dependency style of $depcc... " >&6; }
4646if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650  # We make a subdir and do the tests there.  Otherwise we can end up
4651  # making bogus files that we don't know about and never remove.  For
4652  # instance it was reported that on HP-UX the gcc test will end up
4653  # making a dummy file named 'D' -- because '-MD' means "put the output
4654  # in D".
4655  rm -rf conftest.dir
4656  mkdir conftest.dir
4657  # Copy depcomp to subdir because otherwise we won't find it if we're
4658  # using a relative directory.
4659  cp "$am_depcomp" conftest.dir
4660  cd conftest.dir
4661  # We will build objects and dependencies in a subdirectory because
4662  # it helps to detect inapplicable dependency modes.  For instance
4663  # both Tru64's cc and ICC support -MD to output dependencies as a
4664  # side effect of compilation, but ICC will put the dependencies in
4665  # the current directory while Tru64 will put them in the object
4666  # directory.
4667  mkdir sub
4668
4669  am_cv_CC_dependencies_compiler_type=none
4670  if test "$am_compiler_list" = ""; then
4671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4672  fi
4673  am__universal=false
4674  case " $depcc " in #(
4675     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4676     esac
4677
4678  for depmode in $am_compiler_list; do
4679    # Setup a source with many dependencies, because some compilers
4680    # like to wrap large dependency lists on column 80 (with \), and
4681    # we should not choose a depcomp mode which is confused by this.
4682    #
4683    # We need to recreate these files for each test, as the compiler may
4684    # overwrite some of them when testing with obscure command lines.
4685    # This happens at least with the AIX C compiler.
4686    : > sub/conftest.c
4687    for i in 1 2 3 4 5 6; do
4688      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4689      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4690      # Solaris 10 /bin/sh.
4691      echo '/* dummy */' > sub/conftst$i.h
4692    done
4693    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4694
4695    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4696    # mode.  It turns out that the SunPro C++ compiler does not properly
4697    # handle '-M -o', and we need to detect this.  Also, some Intel
4698    # versions had trouble with output in subdirs.
4699    am__obj=sub/conftest.${OBJEXT-o}
4700    am__minus_obj="-o $am__obj"
4701    case $depmode in
4702    gcc)
4703      # This depmode causes a compiler race in universal mode.
4704      test "$am__universal" = false || continue
4705      ;;
4706    nosideeffect)
4707      # After this tag, mechanisms are not by side-effect, so they'll
4708      # only be used when explicitly requested.
4709      if test "x$enable_dependency_tracking" = xyes; then
4710	continue
4711      else
4712	break
4713      fi
4714      ;;
4715    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4716      # This compiler won't grok '-c -o', but also, the minuso test has
4717      # not run yet.  These depmodes are late enough in the game, and
4718      # so weak that their functioning should not be impacted.
4719      am__obj=conftest.${OBJEXT-o}
4720      am__minus_obj=
4721      ;;
4722    none) break ;;
4723    esac
4724    if depmode=$depmode \
4725       source=sub/conftest.c object=$am__obj \
4726       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4727       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4728         >/dev/null 2>conftest.err &&
4729       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4730       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4731       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4732       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4733      # icc doesn't choke on unknown options, it will just issue warnings
4734      # or remarks (even with -Werror).  So we grep stderr for any message
4735      # that says an option was ignored or not supported.
4736      # When given -MP, icc 7.0 and 7.1 complain thusly:
4737      #   icc: Command line warning: ignoring option '-M'; no argument required
4738      # The diagnosis changed in icc 8.0:
4739      #   icc: Command line remark: option '-MP' not supported
4740      if (grep 'ignoring option' conftest.err ||
4741          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4742        am_cv_CC_dependencies_compiler_type=$depmode
4743        break
4744      fi
4745    fi
4746  done
4747
4748  cd ..
4749  rm -rf conftest.dir
4750else
4751  am_cv_CC_dependencies_compiler_type=none
4752fi
4753
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4756$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4757CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4758
4759 if
4760  test "x$enable_dependency_tracking" != xno \
4761  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4762  am__fastdepCC_TRUE=
4763  am__fastdepCC_FALSE='#'
4764else
4765  am__fastdepCC_TRUE='#'
4766  am__fastdepCC_FALSE=
4767fi
4768
4769
4770
4771# POSIX will say in a future version that running "rm -f" with no argument
4772# is OK; and we want to be able to make that assumption in our Makefile
4773# recipes.  So use an aggressive probe to check that the usage we want is
4774# actually supported "in the wild" to an acceptable degree.
4775# See automake bug#10828.
4776# To make any issue more visible, cause the running configure to be aborted
4777# by default if the 'rm' program in use doesn't match our expectations; the
4778# user can still override this though.
4779if rm -f && rm -fr && rm -rf; then : OK; else
4780  cat >&2 <<'END'
4781Oops!
4782
4783Your 'rm' program seems unable to run without file operands specified
4784on the command line, even when the '-f' option is present.  This is contrary
4785to the behaviour of most rm programs out there, and not conforming with
4786the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4787
4788Please tell bug-automake@gnu.org about your system, including the value
4789of your $PATH and any error possibly output before this message.  This
4790can help us improve future automake versions.
4791
4792END
4793  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4794    echo 'Configuration will proceed anyway, since you have set the' >&2
4795    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4796    echo >&2
4797  else
4798    cat >&2 <<'END'
4799Aborting the configuration process, to ensure you take notice of the issue.
4800
4801You can download and install GNU coreutils to get an 'rm' implementation
4802that behaves properly: <http://www.gnu.org/software/coreutils/>.
4803
4804If you want to complete the configuration process using your problematic
4805'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4806to "yes", and re-run configure.
4807
4808END
4809    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4810  fi
4811fi
4812
4813
4814# Initialize libtool
4815case `pwd` in
4816  *\ * | *\	*)
4817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4818$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4819esac
4820
4821
4822
4823macro_version='2.4.6'
4824macro_revision='2.4.6'
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838ltmain=$ac_aux_dir/ltmain.sh
4839
4840# Backslashify metacharacters that are still active within
4841# double-quoted strings.
4842sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4843
4844# Same as above, but do not quote variable references.
4845double_quote_subst='s/\(["`\\]\)/\\\1/g'
4846
4847# Sed substitution to delay expansion of an escaped shell variable in a
4848# double_quote_subst'ed string.
4849delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4850
4851# Sed substitution to delay expansion of an escaped single quote.
4852delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4853
4854# Sed substitution to avoid accidental globbing in evaled expressions
4855no_glob_subst='s/\*/\\\*/g'
4856
4857ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4858ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4859ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4862$as_echo_n "checking how to print strings... " >&6; }
4863# Test print first, because it will be a builtin if present.
4864if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4865   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4866  ECHO='print -r --'
4867elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4868  ECHO='printf %s\n'
4869else
4870  # Use this function as a fallback that always works.
4871  func_fallback_echo ()
4872  {
4873    eval 'cat <<_LTECHO_EOF
4874$1
4875_LTECHO_EOF'
4876  }
4877  ECHO='func_fallback_echo'
4878fi
4879
4880# func_echo_all arg...
4881# Invoke $ECHO with all args, space-separated.
4882func_echo_all ()
4883{
4884    $ECHO ""
4885}
4886
4887case $ECHO in
4888  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4889$as_echo "printf" >&6; } ;;
4890  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4891$as_echo "print -r" >&6; } ;;
4892  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4893$as_echo "cat" >&6; } ;;
4894esac
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4910$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4911if ${ac_cv_path_SED+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4915     for ac_i in 1 2 3 4 5 6 7; do
4916       ac_script="$ac_script$as_nl$ac_script"
4917     done
4918     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4919     { ac_script=; unset ac_script;}
4920     if test -z "$SED"; then
4921  ac_path_SED_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in sed gsed; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4931      as_fn_executable_p "$ac_path_SED" || continue
4932# Check for GNU ac_path_SED and select it if it is found.
4933  # Check for GNU $ac_path_SED
4934case `"$ac_path_SED" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo '' >> "conftest.nl"
4946    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_SED_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_SED="$ac_path_SED"
4952      ac_path_SED_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_SED_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_SED"; then
4966    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_SED=$SED
4970fi
4971
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4974$as_echo "$ac_cv_path_SED" >&6; }
4975 SED="$ac_cv_path_SED"
4976  rm -f conftest.sed
4977
4978test -z "$SED" && SED=sed
4979Xsed="$SED -e 1s/^X//"
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4992$as_echo_n "checking for fgrep... " >&6; }
4993if ${ac_cv_path_FGREP+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4997   then ac_cv_path_FGREP="$GREP -F"
4998   else
4999     if test -z "$FGREP"; then
5000  ac_path_FGREP_found=false
5001  # Loop through the user's path and test for each of PROGNAME-LIST
5002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007    for ac_prog in fgrep; do
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5010      as_fn_executable_p "$ac_path_FGREP" || continue
5011# Check for GNU ac_path_FGREP and select it if it is found.
5012  # Check for GNU $ac_path_FGREP
5013case `"$ac_path_FGREP" --version 2>&1` in
5014*GNU*)
5015  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5016*)
5017  ac_count=0
5018  $as_echo_n 0123456789 >"conftest.in"
5019  while :
5020  do
5021    cat "conftest.in" "conftest.in" >"conftest.tmp"
5022    mv "conftest.tmp" "conftest.in"
5023    cp "conftest.in" "conftest.nl"
5024    $as_echo 'FGREP' >> "conftest.nl"
5025    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027    as_fn_arith $ac_count + 1 && ac_count=$as_val
5028    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5029      # Best one so far, save it but keep looking for a better one
5030      ac_cv_path_FGREP="$ac_path_FGREP"
5031      ac_path_FGREP_max=$ac_count
5032    fi
5033    # 10*(2^10) chars as input seems more than enough
5034    test $ac_count -gt 10 && break
5035  done
5036  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037esac
5038
5039      $ac_path_FGREP_found && break 3
5040    done
5041  done
5042  done
5043IFS=$as_save_IFS
5044  if test -z "$ac_cv_path_FGREP"; then
5045    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5046  fi
5047else
5048  ac_cv_path_FGREP=$FGREP
5049fi
5050
5051   fi
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5054$as_echo "$ac_cv_path_FGREP" >&6; }
5055 FGREP="$ac_cv_path_FGREP"
5056
5057
5058test -z "$GREP" && GREP=grep
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078# Check whether --with-gnu-ld was given.
5079if test "${with_gnu_ld+set}" = set; then :
5080  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5081else
5082  with_gnu_ld=no
5083fi
5084
5085ac_prog=ld
5086if test yes = "$GCC"; then
5087  # Check if gcc -print-prog-name=ld gives a path.
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5089$as_echo_n "checking for ld used by $CC... " >&6; }
5090  case $host in
5091  *-*-mingw*)
5092    # gcc leaves a trailing carriage return, which upsets mingw
5093    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5094  *)
5095    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5096  esac
5097  case $ac_prog in
5098    # Accept absolute paths.
5099    [\\/]* | ?:[\\/]*)
5100      re_direlt='/[^/][^/]*/\.\./'
5101      # Canonicalize the pathname of ld
5102      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5103      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5104	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5105      done
5106      test -z "$LD" && LD=$ac_prog
5107      ;;
5108  "")
5109    # If it fails, then pretend we aren't using GCC.
5110    ac_prog=ld
5111    ;;
5112  *)
5113    # If it is relative, then search for the first ld in PATH.
5114    with_gnu_ld=unknown
5115    ;;
5116  esac
5117elif test yes = "$with_gnu_ld"; then
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5119$as_echo_n "checking for GNU ld... " >&6; }
5120else
5121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5122$as_echo_n "checking for non-GNU ld... " >&6; }
5123fi
5124if ${lt_cv_path_LD+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  if test -z "$LD"; then
5128  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5129  for ac_dir in $PATH; do
5130    IFS=$lt_save_ifs
5131    test -z "$ac_dir" && ac_dir=.
5132    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5133      lt_cv_path_LD=$ac_dir/$ac_prog
5134      # Check to see if the program is GNU ld.  I'd rather use --version,
5135      # but apparently some variants of GNU ld only accept -v.
5136      # Break only if it was the GNU/non-GNU ld that we prefer.
5137      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5138      *GNU* | *'with BFD'*)
5139	test no != "$with_gnu_ld" && break
5140	;;
5141      *)
5142	test yes != "$with_gnu_ld" && break
5143	;;
5144      esac
5145    fi
5146  done
5147  IFS=$lt_save_ifs
5148else
5149  lt_cv_path_LD=$LD # Let the user override the test with a path.
5150fi
5151fi
5152
5153LD=$lt_cv_path_LD
5154if test -n "$LD"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5156$as_echo "$LD" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5163$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5164if ${lt_cv_prog_gnu_ld+:} false; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5168case `$LD -v 2>&1 </dev/null` in
5169*GNU* | *'with BFD'*)
5170  lt_cv_prog_gnu_ld=yes
5171  ;;
5172*)
5173  lt_cv_prog_gnu_ld=no
5174  ;;
5175esac
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5178$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5179with_gnu_ld=$lt_cv_prog_gnu_ld
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5190$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5191if ${lt_cv_path_NM+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$NM"; then
5195  # Let the user override the test.
5196  lt_cv_path_NM=$NM
5197else
5198  lt_nm_to_check=${ac_tool_prefix}nm
5199  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5200    lt_nm_to_check="$lt_nm_to_check nm"
5201  fi
5202  for lt_tmp_nm in $lt_nm_to_check; do
5203    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5204    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5205      IFS=$lt_save_ifs
5206      test -z "$ac_dir" && ac_dir=.
5207      tmp_nm=$ac_dir/$lt_tmp_nm
5208      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5209	# Check to see if the nm accepts a BSD-compat flag.
5210	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5211	#   nm: unknown option "B" ignored
5212	# Tru64's nm complains that /dev/null is an invalid object file
5213	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5214	case $build_os in
5215	mingw*) lt_bad_file=conftest.nm/nofile ;;
5216	*) lt_bad_file=/dev/null ;;
5217	esac
5218	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5219	*$lt_bad_file* | *'Invalid file or object type'*)
5220	  lt_cv_path_NM="$tmp_nm -B"
5221	  break 2
5222	  ;;
5223	*)
5224	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5225	  */dev/null*)
5226	    lt_cv_path_NM="$tmp_nm -p"
5227	    break 2
5228	    ;;
5229	  *)
5230	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5231	    continue # so that we can try to find one that supports BSD flags
5232	    ;;
5233	  esac
5234	  ;;
5235	esac
5236      fi
5237    done
5238    IFS=$lt_save_ifs
5239  done
5240  : ${lt_cv_path_NM=no}
5241fi
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5244$as_echo "$lt_cv_path_NM" >&6; }
5245if test no != "$lt_cv_path_NM"; then
5246  NM=$lt_cv_path_NM
5247else
5248  # Didn't find any BSD compatible name lister, look for dumpbin.
5249  if test -n "$DUMPBIN"; then :
5250    # Let the user override the test.
5251  else
5252    if test -n "$ac_tool_prefix"; then
5253  for ac_prog in dumpbin "link -dump"
5254  do
5255    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; }
5259if ${ac_cv_prog_DUMPBIN+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  if test -n "$DUMPBIN"; then
5263  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270    for ac_exec_ext in '' $ac_executable_extensions; do
5271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277  done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282DUMPBIN=$ac_cv_prog_DUMPBIN
5283if test -n "$DUMPBIN"; then
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5285$as_echo "$DUMPBIN" >&6; }
5286else
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290
5291
5292    test -n "$DUMPBIN" && break
5293  done
5294fi
5295if test -z "$DUMPBIN"; then
5296  ac_ct_DUMPBIN=$DUMPBIN
5297  for ac_prog in dumpbin "link -dump"
5298do
5299  # Extract the first word of "$ac_prog", so it can be a program name with args.
5300set dummy $ac_prog; ac_word=$2
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -n "$ac_ct_DUMPBIN"; then
5307  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314    for ac_exec_ext in '' $ac_executable_extensions; do
5315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321  done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5327if test -n "$ac_ct_DUMPBIN"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5329$as_echo "$ac_ct_DUMPBIN" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334
5335
5336  test -n "$ac_ct_DUMPBIN" && break
5337done
5338
5339  if test "x$ac_ct_DUMPBIN" = x; then
5340    DUMPBIN=":"
5341  else
5342    case $cross_compiling:$ac_tool_warned in
5343yes:)
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346ac_tool_warned=yes ;;
5347esac
5348    DUMPBIN=$ac_ct_DUMPBIN
5349  fi
5350fi
5351
5352    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5353    *COFF*)
5354      DUMPBIN="$DUMPBIN -symbols -headers"
5355      ;;
5356    *)
5357      DUMPBIN=:
5358      ;;
5359    esac
5360  fi
5361
5362  if test : != "$DUMPBIN"; then
5363    NM=$DUMPBIN
5364  fi
5365fi
5366test -z "$NM" && NM=nm
5367
5368
5369
5370
5371
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5374$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5375if ${lt_cv_nm_interface+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  lt_cv_nm_interface="BSD nm"
5379  echo "int some_variable = 0;" > conftest.$ac_ext
5380  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5381  (eval "$ac_compile" 2>conftest.err)
5382  cat conftest.err >&5
5383  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5384  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5385  cat conftest.err >&5
5386  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5387  cat conftest.out >&5
5388  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5389    lt_cv_nm_interface="MS dumpbin"
5390  fi
5391  rm -f conftest*
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5394$as_echo "$lt_cv_nm_interface" >&6; }
5395
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5397$as_echo_n "checking whether ln -s works... " >&6; }
5398LN_S=$as_ln_s
5399if test "$LN_S" = "ln -s"; then
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401$as_echo "yes" >&6; }
5402else
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5404$as_echo "no, using $LN_S" >&6; }
5405fi
5406
5407# find the maximum length of command line arguments
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5409$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5410if ${lt_cv_sys_max_cmd_len+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413    i=0
5414  teststring=ABCD
5415
5416  case $build_os in
5417  msdosdjgpp*)
5418    # On DJGPP, this test can blow up pretty badly due to problems in libc
5419    # (any single argument exceeding 2000 bytes causes a buffer overrun
5420    # during glob expansion).  Even if it were fixed, the result of this
5421    # check would be larger than it should be.
5422    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5423    ;;
5424
5425  gnu*)
5426    # Under GNU Hurd, this test is not required because there is
5427    # no limit to the length of command line arguments.
5428    # Libtool will interpret -1 as no limit whatsoever
5429    lt_cv_sys_max_cmd_len=-1;
5430    ;;
5431
5432  cygwin* | mingw* | cegcc*)
5433    # On Win9x/ME, this test blows up -- it succeeds, but takes
5434    # about 5 minutes as the teststring grows exponentially.
5435    # Worse, since 9x/ME are not pre-emptively multitasking,
5436    # you end up with a "frozen" computer, even though with patience
5437    # the test eventually succeeds (with a max line length of 256k).
5438    # Instead, let's just punt: use the minimum linelength reported by
5439    # all of the supported platforms: 8192 (on NT/2K/XP).
5440    lt_cv_sys_max_cmd_len=8192;
5441    ;;
5442
5443  mint*)
5444    # On MiNT this can take a long time and run out of memory.
5445    lt_cv_sys_max_cmd_len=8192;
5446    ;;
5447
5448  amigaos*)
5449    # On AmigaOS with pdksh, this test takes hours, literally.
5450    # So we just punt and use a minimum line length of 8192.
5451    lt_cv_sys_max_cmd_len=8192;
5452    ;;
5453
5454  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5455    # This has been around since 386BSD, at least.  Likely further.
5456    if test -x /sbin/sysctl; then
5457      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5458    elif test -x /usr/sbin/sysctl; then
5459      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5460    else
5461      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5462    fi
5463    # And add a safety zone
5464    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5465    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466    ;;
5467
5468  interix*)
5469    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5470    lt_cv_sys_max_cmd_len=196608
5471    ;;
5472
5473  os2*)
5474    # The test takes a long time on OS/2.
5475    lt_cv_sys_max_cmd_len=8192
5476    ;;
5477
5478  osf*)
5479    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5480    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5481    # nice to cause kernel panics so lets avoid the loop below.
5482    # First set a reasonable default.
5483    lt_cv_sys_max_cmd_len=16384
5484    #
5485    if test -x /sbin/sysconfig; then
5486      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5487        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5488      esac
5489    fi
5490    ;;
5491  sco3.2v5*)
5492    lt_cv_sys_max_cmd_len=102400
5493    ;;
5494  sysv5* | sco5v6* | sysv4.2uw2*)
5495    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5496    if test -n "$kargmax"; then
5497      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5498    else
5499      lt_cv_sys_max_cmd_len=32768
5500    fi
5501    ;;
5502  *)
5503    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5504    if test -n "$lt_cv_sys_max_cmd_len" && \
5505       test undefined != "$lt_cv_sys_max_cmd_len"; then
5506      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5507      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5508    else
5509      # Make teststring a little bigger before we do anything with it.
5510      # a 1K string should be a reasonable start.
5511      for i in 1 2 3 4 5 6 7 8; do
5512        teststring=$teststring$teststring
5513      done
5514      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5515      # If test is not a shell built-in, we'll probably end up computing a
5516      # maximum length that is only half of the actual maximum length, but
5517      # we can't tell.
5518      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5519	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5520	      test 17 != "$i" # 1/2 MB should be enough
5521      do
5522        i=`expr $i + 1`
5523        teststring=$teststring$teststring
5524      done
5525      # Only check the string length outside the loop.
5526      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5527      teststring=
5528      # Add a significant safety factor because C++ compilers can tack on
5529      # massive amounts of additional arguments before passing them to the
5530      # linker.  It appears as though 1/2 is a usable value.
5531      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5532    fi
5533    ;;
5534  esac
5535
5536fi
5537
5538if test -n "$lt_cv_sys_max_cmd_len"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5540$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5543$as_echo "none" >&6; }
5544fi
5545max_cmd_len=$lt_cv_sys_max_cmd_len
5546
5547
5548
5549
5550
5551
5552: ${CP="cp -f"}
5553: ${MV="mv -f"}
5554: ${RM="rm -f"}
5555
5556if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5557  lt_unset=unset
5558else
5559  lt_unset=false
5560fi
5561
5562
5563
5564
5565
5566# test EBCDIC or ASCII
5567case `echo X|tr X '\101'` in
5568 A) # ASCII based system
5569    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5570  lt_SP2NL='tr \040 \012'
5571  lt_NL2SP='tr \015\012 \040\040'
5572  ;;
5573 *) # EBCDIC based system
5574  lt_SP2NL='tr \100 \n'
5575  lt_NL2SP='tr \r\n \100\100'
5576  ;;
5577esac
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5588$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5589if ${lt_cv_to_host_file_cmd+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  case $host in
5593  *-*-mingw* )
5594    case $build in
5595      *-*-mingw* ) # actually msys
5596        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5597        ;;
5598      *-*-cygwin* )
5599        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5600        ;;
5601      * ) # otherwise, assume *nix
5602        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5603        ;;
5604    esac
5605    ;;
5606  *-*-cygwin* )
5607    case $build in
5608      *-*-mingw* ) # actually msys
5609        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5610        ;;
5611      *-*-cygwin* )
5612        lt_cv_to_host_file_cmd=func_convert_file_noop
5613        ;;
5614      * ) # otherwise, assume *nix
5615        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5616        ;;
5617    esac
5618    ;;
5619  * ) # unhandled hosts (and "normal" native builds)
5620    lt_cv_to_host_file_cmd=func_convert_file_noop
5621    ;;
5622esac
5623
5624fi
5625
5626to_host_file_cmd=$lt_cv_to_host_file_cmd
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5628$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5629
5630
5631
5632
5633
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5635$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5636if ${lt_cv_to_tool_file_cmd+:} false; then :
5637  $as_echo_n "(cached) " >&6
5638else
5639  #assume ordinary cross tools, or native build.
5640lt_cv_to_tool_file_cmd=func_convert_file_noop
5641case $host in
5642  *-*-mingw* )
5643    case $build in
5644      *-*-mingw* ) # actually msys
5645        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5646        ;;
5647    esac
5648    ;;
5649esac
5650
5651fi
5652
5653to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5655$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5656
5657
5658
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5662$as_echo_n "checking for $LD option to reload object files... " >&6; }
5663if ${lt_cv_ld_reload_flag+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  lt_cv_ld_reload_flag='-r'
5667fi
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5669$as_echo "$lt_cv_ld_reload_flag" >&6; }
5670reload_flag=$lt_cv_ld_reload_flag
5671case $reload_flag in
5672"" | " "*) ;;
5673*) reload_flag=" $reload_flag" ;;
5674esac
5675reload_cmds='$LD$reload_flag -o $output$reload_objs'
5676case $host_os in
5677  cygwin* | mingw* | pw32* | cegcc*)
5678    if test yes != "$GCC"; then
5679      reload_cmds=false
5680    fi
5681    ;;
5682  darwin*)
5683    if test yes = "$GCC"; then
5684      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5685    else
5686      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687    fi
5688    ;;
5689esac
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699if test -n "$ac_tool_prefix"; then
5700  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}objdump; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_OBJDUMP+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$OBJDUMP"; then
5708  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727OBJDUMP=$ac_cv_prog_OBJDUMP
5728if test -n "$OBJDUMP"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5730$as_echo "$OBJDUMP" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737fi
5738if test -z "$ac_cv_prog_OBJDUMP"; then
5739  ac_ct_OBJDUMP=$OBJDUMP
5740  # Extract the first word of "objdump", so it can be a program name with args.
5741set dummy objdump; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
5744if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  if test -n "$ac_ct_OBJDUMP"; then
5748  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5768if test -n "$ac_ct_OBJDUMP"; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5770$as_echo "$ac_ct_OBJDUMP" >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
5775
5776  if test "x$ac_ct_OBJDUMP" = x; then
5777    OBJDUMP="false"
5778  else
5779    case $cross_compiling:$ac_tool_warned in
5780yes:)
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783ac_tool_warned=yes ;;
5784esac
5785    OBJDUMP=$ac_ct_OBJDUMP
5786  fi
5787else
5788  OBJDUMP="$ac_cv_prog_OBJDUMP"
5789fi
5790
5791test -z "$OBJDUMP" && OBJDUMP=objdump
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5802$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5803if ${lt_cv_deplibs_check_method+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  lt_cv_file_magic_cmd='$MAGIC_CMD'
5807lt_cv_file_magic_test_file=
5808lt_cv_deplibs_check_method='unknown'
5809# Need to set the preceding variable on all platforms that support
5810# interlibrary dependencies.
5811# 'none' -- dependencies not supported.
5812# 'unknown' -- same as none, but documents that we really don't know.
5813# 'pass_all' -- all dependencies passed with no checks.
5814# 'test_compile' -- check by making test program.
5815# 'file_magic [[regex]]' -- check by looking for files in library path
5816# that responds to the $file_magic_cmd with a given extended regex.
5817# If you have 'file' or equivalent on your system and you're not sure
5818# whether 'pass_all' will *always* work, you probably want this one.
5819
5820case $host_os in
5821aix[4-9]*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825beos*)
5826  lt_cv_deplibs_check_method=pass_all
5827  ;;
5828
5829bsdi[45]*)
5830  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5831  lt_cv_file_magic_cmd='/usr/bin/file -L'
5832  lt_cv_file_magic_test_file=/shlib/libc.so
5833  ;;
5834
5835cygwin*)
5836  # func_win32_libid is a shell function defined in ltmain.sh
5837  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5838  lt_cv_file_magic_cmd='func_win32_libid'
5839  ;;
5840
5841mingw* | pw32*)
5842  # Base MSYS/MinGW do not provide the 'file' command needed by
5843  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5844  # unless we find 'file', for example because we are cross-compiling.
5845  if ( file / ) >/dev/null 2>&1; then
5846    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5847    lt_cv_file_magic_cmd='func_win32_libid'
5848  else
5849    # Keep this pattern in sync with the one in func_win32_libid.
5850    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5851    lt_cv_file_magic_cmd='$OBJDUMP -f'
5852  fi
5853  ;;
5854
5855cegcc*)
5856  # use the weaker test based on 'objdump'. See mingw*.
5857  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5858  lt_cv_file_magic_cmd='$OBJDUMP -f'
5859  ;;
5860
5861darwin* | rhapsody*)
5862  lt_cv_deplibs_check_method=pass_all
5863  ;;
5864
5865freebsd* | dragonfly*)
5866  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5867    case $host_cpu in
5868    i*86 )
5869      # Not sure whether the presence of OpenBSD here was a mistake.
5870      # Let's accept both of them until this is cleared up.
5871      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5872      lt_cv_file_magic_cmd=/usr/bin/file
5873      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5874      ;;
5875    esac
5876  else
5877    lt_cv_deplibs_check_method=pass_all
5878  fi
5879  ;;
5880
5881haiku*)
5882  lt_cv_deplibs_check_method=pass_all
5883  ;;
5884
5885hpux10.20* | hpux11*)
5886  lt_cv_file_magic_cmd=/usr/bin/file
5887  case $host_cpu in
5888  ia64*)
5889    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5890    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5891    ;;
5892  hppa*64*)
5893    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]'
5894    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5895    ;;
5896  *)
5897    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5898    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5899    ;;
5900  esac
5901  ;;
5902
5903interix[3-9]*)
5904  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5905  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5906  ;;
5907
5908irix5* | irix6* | nonstopux*)
5909  case $LD in
5910  *-32|*"-32 ") libmagic=32-bit;;
5911  *-n32|*"-n32 ") libmagic=N32;;
5912  *-64|*"-64 ") libmagic=64-bit;;
5913  *) libmagic=never-match;;
5914  esac
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918# This must be glibc/ELF.
5919linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5920  lt_cv_deplibs_check_method=pass_all
5921  ;;
5922
5923netbsd*)
5924  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5925    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5926  else
5927    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5928  fi
5929  ;;
5930
5931newos6*)
5932  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5933  lt_cv_file_magic_cmd=/usr/bin/file
5934  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5935  ;;
5936
5937*nto* | *qnx*)
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941openbsd* | bitrig*)
5942  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5943    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5944  else
5945    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5946  fi
5947  ;;
5948
5949osf3* | osf4* | osf5*)
5950  lt_cv_deplibs_check_method=pass_all
5951  ;;
5952
5953rdos*)
5954  lt_cv_deplibs_check_method=pass_all
5955  ;;
5956
5957solaris*)
5958  lt_cv_deplibs_check_method=pass_all
5959  ;;
5960
5961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5962  lt_cv_deplibs_check_method=pass_all
5963  ;;
5964
5965sysv4 | sysv4.3*)
5966  case $host_vendor in
5967  motorola)
5968    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]'
5969    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5970    ;;
5971  ncr)
5972    lt_cv_deplibs_check_method=pass_all
5973    ;;
5974  sequent)
5975    lt_cv_file_magic_cmd='/bin/file'
5976    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5977    ;;
5978  sni)
5979    lt_cv_file_magic_cmd='/bin/file'
5980    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5981    lt_cv_file_magic_test_file=/lib/libc.so
5982    ;;
5983  siemens)
5984    lt_cv_deplibs_check_method=pass_all
5985    ;;
5986  pc)
5987    lt_cv_deplibs_check_method=pass_all
5988    ;;
5989  esac
5990  ;;
5991
5992tpf*)
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995os2*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998esac
5999
6000fi
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6002$as_echo "$lt_cv_deplibs_check_method" >&6; }
6003
6004file_magic_glob=
6005want_nocaseglob=no
6006if test "$build" = "$host"; then
6007  case $host_os in
6008  mingw* | pw32*)
6009    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6010      want_nocaseglob=yes
6011    else
6012      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6013    fi
6014    ;;
6015  esac
6016fi
6017
6018file_magic_cmd=$lt_cv_file_magic_cmd
6019deplibs_check_method=$lt_cv_deplibs_check_method
6020test -z "$deplibs_check_method" && deplibs_check_method=unknown
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_DLLTOOL+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$DLLTOOL"; then
6052  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071DLLTOOL=$ac_cv_prog_DLLTOOL
6072if test -n "$DLLTOOL"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6074$as_echo "$DLLTOOL" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_DLLTOOL"; then
6083  ac_ct_DLLTOOL=$DLLTOOL
6084  # Extract the first word of "dlltool", so it can be a program name with args.
6085set dummy dlltool; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$ac_ct_DLLTOOL"; then
6092  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6112if test -n "$ac_ct_DLLTOOL"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6114$as_echo "$ac_ct_DLLTOOL" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_DLLTOOL" = x; then
6121    DLLTOOL="false"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    DLLTOOL=$ac_ct_DLLTOOL
6130  fi
6131else
6132  DLLTOOL="$ac_cv_prog_DLLTOOL"
6133fi
6134
6135test -z "$DLLTOOL" && DLLTOOL=dlltool
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6147$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6148if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  lt_cv_sharedlib_from_linklib_cmd='unknown'
6152
6153case $host_os in
6154cygwin* | mingw* | pw32* | cegcc*)
6155  # two different shell functions defined in ltmain.sh;
6156  # decide which one to use based on capabilities of $DLLTOOL
6157  case `$DLLTOOL --help 2>&1` in
6158  *--identify-strict*)
6159    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6160    ;;
6161  *)
6162    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6163    ;;
6164  esac
6165  ;;
6166*)
6167  # fallback: assume linklib IS sharedlib
6168  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6169  ;;
6170esac
6171
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6174$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6175sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6176test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6177
6178
6179
6180
6181
6182
6183
6184if test -n "$ac_tool_prefix"; then
6185  for ac_prog in ar
6186  do
6187    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if ${ac_cv_prog_AR+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if test -n "$AR"; then
6195  ac_cv_prog_AR="$AR" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214AR=$ac_cv_prog_AR
6215if test -n "$AR"; then
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6217$as_echo "$AR" >&6; }
6218else
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224    test -n "$AR" && break
6225  done
6226fi
6227if test -z "$AR"; then
6228  ac_ct_AR=$AR
6229  for ac_prog in ar
6230do
6231  # Extract the first word of "$ac_prog", so it can be a program name with args.
6232set dummy $ac_prog; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_ac_ct_AR+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$ac_ct_AR"; then
6239  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248    ac_cv_prog_ac_ct_AR="$ac_prog"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_AR=$ac_cv_prog_ac_ct_AR
6259if test -n "$ac_ct_AR"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6261$as_echo "$ac_ct_AR" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268  test -n "$ac_ct_AR" && break
6269done
6270
6271  if test "x$ac_ct_AR" = x; then
6272    AR="false"
6273  else
6274    case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278ac_tool_warned=yes ;;
6279esac
6280    AR=$ac_ct_AR
6281  fi
6282fi
6283
6284: ${AR=ar}
6285: ${AR_FLAGS=cru}
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6298$as_echo_n "checking for archiver @FILE support... " >&6; }
6299if ${lt_cv_ar_at_file+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  lt_cv_ar_at_file=no
6303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_compile "$LINENO"; then :
6315  echo conftest.$ac_objext > conftest.lst
6316      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6317      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6318  (eval $lt_ar_try) 2>&5
6319  ac_status=$?
6320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321  test $ac_status = 0; }
6322      if test 0 -eq "$ac_status"; then
6323	# Ensure the archiver fails upon bogus file names.
6324	rm -f conftest.$ac_objext libconftest.a
6325	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6326  (eval $lt_ar_try) 2>&5
6327  ac_status=$?
6328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329  test $ac_status = 0; }
6330	if test 0 -ne "$ac_status"; then
6331          lt_cv_ar_at_file=@
6332        fi
6333      fi
6334      rm -f conftest.* libconftest.a
6335
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6341$as_echo "$lt_cv_ar_at_file" >&6; }
6342
6343if test no = "$lt_cv_ar_at_file"; then
6344  archiver_list_spec=
6345else
6346  archiver_list_spec=$lt_cv_ar_at_file
6347fi
6348
6349
6350
6351
6352
6353
6354
6355if test -n "$ac_tool_prefix"; then
6356  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6357set dummy ${ac_tool_prefix}strip; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
6360if ${ac_cv_prog_STRIP+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -n "$STRIP"; then
6364  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369  IFS=$as_save_IFS
6370  test -z "$as_dir" && as_dir=.
6371    for ac_exec_ext in '' $ac_executable_extensions; do
6372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375    break 2
6376  fi
6377done
6378  done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383STRIP=$ac_cv_prog_STRIP
6384if test -n "$STRIP"; then
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6386$as_echo "$STRIP" >&6; }
6387else
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393fi
6394if test -z "$ac_cv_prog_STRIP"; then
6395  ac_ct_STRIP=$STRIP
6396  # Extract the first word of "strip", so it can be a program name with args.
6397set dummy strip; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
6400if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  if test -n "$ac_ct_STRIP"; then
6404  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411    for ac_exec_ext in '' $ac_executable_extensions; do
6412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413    ac_cv_prog_ac_ct_STRIP="strip"
6414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415    break 2
6416  fi
6417done
6418  done
6419IFS=$as_save_IFS
6420
6421fi
6422fi
6423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6424if test -n "$ac_ct_STRIP"; then
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6426$as_echo "$ac_ct_STRIP" >&6; }
6427else
6428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432  if test "x$ac_ct_STRIP" = x; then
6433    STRIP=":"
6434  else
6435    case $cross_compiling:$ac_tool_warned in
6436yes:)
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439ac_tool_warned=yes ;;
6440esac
6441    STRIP=$ac_ct_STRIP
6442  fi
6443else
6444  STRIP="$ac_cv_prog_STRIP"
6445fi
6446
6447test -z "$STRIP" && STRIP=:
6448
6449
6450
6451
6452
6453
6454if test -n "$ac_tool_prefix"; then
6455  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6456set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458$as_echo_n "checking for $ac_word... " >&6; }
6459if ${ac_cv_prog_RANLIB+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  if test -n "$RANLIB"; then
6463  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468  IFS=$as_save_IFS
6469  test -z "$as_dir" && as_dir=.
6470    for ac_exec_ext in '' $ac_executable_extensions; do
6471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474    break 2
6475  fi
6476done
6477  done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482RANLIB=$ac_cv_prog_RANLIB
6483if test -n "$RANLIB"; then
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6485$as_echo "$RANLIB" >&6; }
6486else
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; }
6489fi
6490
6491
6492fi
6493if test -z "$ac_cv_prog_RANLIB"; then
6494  ac_ct_RANLIB=$RANLIB
6495  # Extract the first word of "ranlib", so it can be a program name with args.
6496set dummy ranlib; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  if test -n "$ac_ct_RANLIB"; then
6503  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508  IFS=$as_save_IFS
6509  test -z "$as_dir" && as_dir=.
6510    for ac_exec_ext in '' $ac_executable_extensions; do
6511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512    ac_cv_prog_ac_ct_RANLIB="ranlib"
6513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517  done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6523if test -n "$ac_ct_RANLIB"; then
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6525$as_echo "$ac_ct_RANLIB" >&6; }
6526else
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531  if test "x$ac_ct_RANLIB" = x; then
6532    RANLIB=":"
6533  else
6534    case $cross_compiling:$ac_tool_warned in
6535yes:)
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538ac_tool_warned=yes ;;
6539esac
6540    RANLIB=$ac_ct_RANLIB
6541  fi
6542else
6543  RANLIB="$ac_cv_prog_RANLIB"
6544fi
6545
6546test -z "$RANLIB" && RANLIB=:
6547
6548
6549
6550
6551
6552
6553# Determine commands to create old-style static archives.
6554old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6555old_postinstall_cmds='chmod 644 $oldlib'
6556old_postuninstall_cmds=
6557
6558if test -n "$RANLIB"; then
6559  case $host_os in
6560  bitrig* | openbsd*)
6561    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6562    ;;
6563  *)
6564    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6565    ;;
6566  esac
6567  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6568fi
6569
6570case $host_os in
6571  darwin*)
6572    lock_old_archive_extraction=yes ;;
6573  *)
6574    lock_old_archive_extraction=no ;;
6575esac
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
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# If no C compiler was specified, use CC.
6616LTCC=${LTCC-"$CC"}
6617
6618# If no C compiler flags were specified, use CFLAGS.
6619LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6620
6621# Allow CC to be a program name with arguments.
6622compiler=$CC
6623
6624
6625# Check for command to grab the raw symbol name followed by C symbol from nm.
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6627$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6628if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631
6632# These are sane defaults that work on at least a few old systems.
6633# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6634
6635# Character class describing NM global symbol codes.
6636symcode='[BCDEGRST]'
6637
6638# Regexp to match symbols that can be accessed directly from C.
6639sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6640
6641# Define system-specific variables.
6642case $host_os in
6643aix*)
6644  symcode='[BCDT]'
6645  ;;
6646cygwin* | mingw* | pw32* | cegcc*)
6647  symcode='[ABCDGISTW]'
6648  ;;
6649hpux*)
6650  if test ia64 = "$host_cpu"; then
6651    symcode='[ABCDEGRST]'
6652  fi
6653  ;;
6654irix* | nonstopux*)
6655  symcode='[BCDEGRST]'
6656  ;;
6657osf*)
6658  symcode='[BCDEGQRST]'
6659  ;;
6660solaris*)
6661  symcode='[BDRT]'
6662  ;;
6663sco3.2v5*)
6664  symcode='[DT]'
6665  ;;
6666sysv4.2uw2*)
6667  symcode='[DT]'
6668  ;;
6669sysv5* | sco5v6* | unixware* | OpenUNIX*)
6670  symcode='[ABDT]'
6671  ;;
6672sysv4)
6673  symcode='[DFNSTU]'
6674  ;;
6675esac
6676
6677# If we're using GNU nm, then use its standard symbol codes.
6678case `$NM -V 2>&1` in
6679*GNU* | *'with BFD'*)
6680  symcode='[ABCDGIRSTW]' ;;
6681esac
6682
6683if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684  # Gets list of data symbols to import.
6685  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6686  # Adjust the below global symbol transforms to fixup imported variables.
6687  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6688  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6689  lt_c_name_lib_hook="\
6690  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6691  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6692else
6693  # Disable hooks by default.
6694  lt_cv_sys_global_symbol_to_import=
6695  lt_cdecl_hook=
6696  lt_c_name_hook=
6697  lt_c_name_lib_hook=
6698fi
6699
6700# Transform an extracted symbol line into a proper C declaration.
6701# Some systems (esp. on ia64) link data and code symbols differently,
6702# so use this general approach.
6703lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6704$lt_cdecl_hook\
6705" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6706" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6707
6708# Transform an extracted symbol line into symbol name and symbol address
6709lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6710$lt_c_name_hook\
6711" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6712" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6713
6714# Transform an extracted symbol line into symbol name with lib prefix and
6715# symbol address.
6716lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6717$lt_c_name_lib_hook\
6718" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6719" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6720" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6721
6722# Handle CRLF in mingw tool chain
6723opt_cr=
6724case $build_os in
6725mingw*)
6726  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727  ;;
6728esac
6729
6730# Try without a prefix underscore, then with it.
6731for ac_symprfx in "" "_"; do
6732
6733  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734  symxfrm="\\1 $ac_symprfx\\2 \\2"
6735
6736  # Write the raw and C identifiers.
6737  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738    # Fake it for dumpbin and say T for any non-static function,
6739    # D for any global variable and I for any imported variable.
6740    # Also find C++ and __fastcall symbols from MSVC++,
6741    # which start with @ or ?.
6742    lt_cv_sys_global_symbol_pipe="$AWK '"\
6743"     {last_section=section; section=\$ 3};"\
6744"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6745"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6746"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6747"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6748"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6749"     \$ 0!~/External *\|/{next};"\
6750"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6751"     {if(hide[section]) next};"\
6752"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6753"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6754"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6755"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6756"     ' prfx=^$ac_symprfx"
6757  else
6758    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6759  fi
6760  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6761
6762  # Check to see that the pipe works correctly.
6763  pipe_works=no
6764
6765  rm -f conftest*
6766  cat > conftest.$ac_ext <<_LT_EOF
6767#ifdef __cplusplus
6768extern "C" {
6769#endif
6770char nm_test_var;
6771void nm_test_func(void);
6772void nm_test_func(void){}
6773#ifdef __cplusplus
6774}
6775#endif
6776int main(){nm_test_var='a';nm_test_func();return(0);}
6777_LT_EOF
6778
6779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6780  (eval $ac_compile) 2>&5
6781  ac_status=$?
6782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783  test $ac_status = 0; }; then
6784    # Now try to grab the symbols.
6785    nlist=conftest.nm
6786    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6787  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6788  ac_status=$?
6789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790  test $ac_status = 0; } && test -s "$nlist"; then
6791      # Try sorting and uniquifying the output.
6792      if sort "$nlist" | uniq > "$nlist"T; then
6793	mv -f "$nlist"T "$nlist"
6794      else
6795	rm -f "$nlist"T
6796      fi
6797
6798      # Make sure that we snagged all the symbols we need.
6799      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6800	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6801	  cat <<_LT_EOF > conftest.$ac_ext
6802/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6803#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6804/* DATA imports from DLLs on WIN32 can't be const, because runtime
6805   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6806# define LT_DLSYM_CONST
6807#elif defined __osf__
6808/* This system does not cope well with relocations in const data.  */
6809# define LT_DLSYM_CONST
6810#else
6811# define LT_DLSYM_CONST const
6812#endif
6813
6814#ifdef __cplusplus
6815extern "C" {
6816#endif
6817
6818_LT_EOF
6819	  # Now generate the symbol file.
6820	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6821
6822	  cat <<_LT_EOF >> conftest.$ac_ext
6823
6824/* The mapping between symbol names and symbols.  */
6825LT_DLSYM_CONST struct {
6826  const char *name;
6827  void       *address;
6828}
6829lt__PROGRAM__LTX_preloaded_symbols[] =
6830{
6831  { "@PROGRAM@", (void *) 0 },
6832_LT_EOF
6833	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6834	  cat <<\_LT_EOF >> conftest.$ac_ext
6835  {0, (void *) 0}
6836};
6837
6838/* This works around a problem in FreeBSD linker */
6839#ifdef FREEBSD_WORKAROUND
6840static const void *lt_preloaded_setup() {
6841  return lt__PROGRAM__LTX_preloaded_symbols;
6842}
6843#endif
6844
6845#ifdef __cplusplus
6846}
6847#endif
6848_LT_EOF
6849	  # Now try linking the two files.
6850	  mv conftest.$ac_objext conftstm.$ac_objext
6851	  lt_globsym_save_LIBS=$LIBS
6852	  lt_globsym_save_CFLAGS=$CFLAGS
6853	  LIBS=conftstm.$ac_objext
6854	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6855	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6856  (eval $ac_link) 2>&5
6857  ac_status=$?
6858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6860	    pipe_works=yes
6861	  fi
6862	  LIBS=$lt_globsym_save_LIBS
6863	  CFLAGS=$lt_globsym_save_CFLAGS
6864	else
6865	  echo "cannot find nm_test_func in $nlist" >&5
6866	fi
6867      else
6868	echo "cannot find nm_test_var in $nlist" >&5
6869      fi
6870    else
6871      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6872    fi
6873  else
6874    echo "$progname: failed program was:" >&5
6875    cat conftest.$ac_ext >&5
6876  fi
6877  rm -rf conftest* conftst*
6878
6879  # Do not use the global_symbol_pipe unless it works.
6880  if test yes = "$pipe_works"; then
6881    break
6882  else
6883    lt_cv_sys_global_symbol_pipe=
6884  fi
6885done
6886
6887fi
6888
6889if test -z "$lt_cv_sys_global_symbol_pipe"; then
6890  lt_cv_sys_global_symbol_to_cdecl=
6891fi
6892if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6894$as_echo "failed" >&6; }
6895else
6896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6897$as_echo "ok" >&6; }
6898fi
6899
6900# Response file support.
6901if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6902  nm_file_list_spec='@'
6903elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6904  nm_file_list_spec='@'
6905fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6944$as_echo_n "checking for sysroot... " >&6; }
6945
6946# Check whether --with-sysroot was given.
6947if test "${with_sysroot+set}" = set; then :
6948  withval=$with_sysroot;
6949else
6950  with_sysroot=no
6951fi
6952
6953
6954lt_sysroot=
6955case $with_sysroot in #(
6956 yes)
6957   if test yes = "$GCC"; then
6958     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6959   fi
6960   ;; #(
6961 /*)
6962   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6963   ;; #(
6964 no|'')
6965   ;; #(
6966 *)
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6968$as_echo "$with_sysroot" >&6; }
6969   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6970   ;;
6971esac
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6974$as_echo "${lt_sysroot:-no}" >&6; }
6975
6976
6977
6978
6979
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6981$as_echo_n "checking for a working dd... " >&6; }
6982if ${ac_cv_path_lt_DD+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  printf 0123456789abcdef0123456789abcdef >conftest.i
6986cat conftest.i conftest.i >conftest2.i
6987: ${lt_DD:=$DD}
6988if test -z "$lt_DD"; then
6989  ac_path_lt_DD_found=false
6990  # Loop through the user's path and test for each of PROGNAME-LIST
6991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996    for ac_prog in dd; do
6997    for ac_exec_ext in '' $ac_executable_extensions; do
6998      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6999      as_fn_executable_p "$ac_path_lt_DD" || continue
7000if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7001  cmp -s conftest.i conftest.out \
7002  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7003fi
7004      $ac_path_lt_DD_found && break 3
7005    done
7006  done
7007  done
7008IFS=$as_save_IFS
7009  if test -z "$ac_cv_path_lt_DD"; then
7010    :
7011  fi
7012else
7013  ac_cv_path_lt_DD=$lt_DD
7014fi
7015
7016rm -f conftest.i conftest2.i conftest.out
7017fi
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7019$as_echo "$ac_cv_path_lt_DD" >&6; }
7020
7021
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7023$as_echo_n "checking how to truncate binary pipes... " >&6; }
7024if ${lt_cv_truncate_bin+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  printf 0123456789abcdef0123456789abcdef >conftest.i
7028cat conftest.i conftest.i >conftest2.i
7029lt_cv_truncate_bin=
7030if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7031  cmp -s conftest.i conftest.out \
7032  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7033fi
7034rm -f conftest.i conftest2.i conftest.out
7035test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7038$as_echo "$lt_cv_truncate_bin" >&6; }
7039
7040
7041
7042
7043
7044
7045
7046# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7047func_cc_basename ()
7048{
7049    for cc_temp in $*""; do
7050      case $cc_temp in
7051        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7052        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7053        \-*) ;;
7054        *) break;;
7055      esac
7056    done
7057    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7058}
7059
7060# Check whether --enable-libtool-lock was given.
7061if test "${enable_libtool_lock+set}" = set; then :
7062  enableval=$enable_libtool_lock;
7063fi
7064
7065test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7066
7067# Some flags need to be propagated to the compiler or linker for good
7068# libtool support.
7069case $host in
7070ia64-*-hpux*)
7071  # Find out what ABI is being produced by ac_compile, and set mode
7072  # options accordingly.
7073  echo 'int i;' > conftest.$ac_ext
7074  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075  (eval $ac_compile) 2>&5
7076  ac_status=$?
7077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078  test $ac_status = 0; }; then
7079    case `/usr/bin/file conftest.$ac_objext` in
7080      *ELF-32*)
7081	HPUX_IA64_MODE=32
7082	;;
7083      *ELF-64*)
7084	HPUX_IA64_MODE=64
7085	;;
7086    esac
7087  fi
7088  rm -rf conftest*
7089  ;;
7090*-*-irix6*)
7091  # Find out what ABI is being produced by ac_compile, and set linker
7092  # options accordingly.
7093  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095  (eval $ac_compile) 2>&5
7096  ac_status=$?
7097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098  test $ac_status = 0; }; then
7099    if test yes = "$lt_cv_prog_gnu_ld"; then
7100      case `/usr/bin/file conftest.$ac_objext` in
7101	*32-bit*)
7102	  LD="${LD-ld} -melf32bsmip"
7103	  ;;
7104	*N32*)
7105	  LD="${LD-ld} -melf32bmipn32"
7106	  ;;
7107	*64-bit*)
7108	  LD="${LD-ld} -melf64bmip"
7109	;;
7110      esac
7111    else
7112      case `/usr/bin/file conftest.$ac_objext` in
7113	*32-bit*)
7114	  LD="${LD-ld} -32"
7115	  ;;
7116	*N32*)
7117	  LD="${LD-ld} -n32"
7118	  ;;
7119	*64-bit*)
7120	  LD="${LD-ld} -64"
7121	  ;;
7122      esac
7123    fi
7124  fi
7125  rm -rf conftest*
7126  ;;
7127
7128mips64*-*linux*)
7129  # Find out what ABI is being produced by ac_compile, and set linker
7130  # options accordingly.
7131  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7132  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7133  (eval $ac_compile) 2>&5
7134  ac_status=$?
7135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136  test $ac_status = 0; }; then
7137    emul=elf
7138    case `/usr/bin/file conftest.$ac_objext` in
7139      *32-bit*)
7140	emul="${emul}32"
7141	;;
7142      *64-bit*)
7143	emul="${emul}64"
7144	;;
7145    esac
7146    case `/usr/bin/file conftest.$ac_objext` in
7147      *MSB*)
7148	emul="${emul}btsmip"
7149	;;
7150      *LSB*)
7151	emul="${emul}ltsmip"
7152	;;
7153    esac
7154    case `/usr/bin/file conftest.$ac_objext` in
7155      *N32*)
7156	emul="${emul}n32"
7157	;;
7158    esac
7159    LD="${LD-ld} -m $emul"
7160  fi
7161  rm -rf conftest*
7162  ;;
7163
7164x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7165s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7166  # Find out what ABI is being produced by ac_compile, and set linker
7167  # options accordingly.  Note that the listed cases only cover the
7168  # situations where additional linker options are needed (such as when
7169  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7170  # vice versa); the common cases where no linker options are needed do
7171  # not appear in the list.
7172  echo 'int i;' > conftest.$ac_ext
7173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174  (eval $ac_compile) 2>&5
7175  ac_status=$?
7176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177  test $ac_status = 0; }; then
7178    case `/usr/bin/file conftest.o` in
7179      *32-bit*)
7180	case $host in
7181	  x86_64-*kfreebsd*-gnu)
7182	    LD="${LD-ld} -m elf_i386_fbsd"
7183	    ;;
7184	  x86_64-*linux*)
7185	    case `/usr/bin/file conftest.o` in
7186	      *x86-64*)
7187		LD="${LD-ld} -m elf32_x86_64"
7188		;;
7189	      *)
7190		LD="${LD-ld} -m elf_i386"
7191		;;
7192	    esac
7193	    ;;
7194	  powerpc64le-*linux*)
7195	    LD="${LD-ld} -m elf32lppclinux"
7196	    ;;
7197	  powerpc64-*linux*)
7198	    LD="${LD-ld} -m elf32ppclinux"
7199	    ;;
7200	  s390x-*linux*)
7201	    LD="${LD-ld} -m elf_s390"
7202	    ;;
7203	  sparc64-*linux*)
7204	    LD="${LD-ld} -m elf32_sparc"
7205	    ;;
7206	esac
7207	;;
7208      *64-bit*)
7209	case $host in
7210	  x86_64-*kfreebsd*-gnu)
7211	    LD="${LD-ld} -m elf_x86_64_fbsd"
7212	    ;;
7213	  x86_64-*linux*)
7214	    LD="${LD-ld} -m elf_x86_64"
7215	    ;;
7216	  powerpcle-*linux*)
7217	    LD="${LD-ld} -m elf64lppc"
7218	    ;;
7219	  powerpc-*linux*)
7220	    LD="${LD-ld} -m elf64ppc"
7221	    ;;
7222	  s390*-*linux*|s390*-*tpf*)
7223	    LD="${LD-ld} -m elf64_s390"
7224	    ;;
7225	  sparc*-*linux*)
7226	    LD="${LD-ld} -m elf64_sparc"
7227	    ;;
7228	esac
7229	;;
7230    esac
7231  fi
7232  rm -rf conftest*
7233  ;;
7234
7235*-*-sco3.2v5*)
7236  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7237  SAVE_CFLAGS=$CFLAGS
7238  CFLAGS="$CFLAGS -belf"
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7240$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7241if ${lt_cv_cc_needs_belf+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  ac_ext=c
7245ac_cpp='$CPP $CPPFLAGS'
7246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249
7250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_link "$LINENO"; then :
7262  lt_cv_cc_needs_belf=yes
7263else
7264  lt_cv_cc_needs_belf=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext \
7267    conftest$ac_exeext conftest.$ac_ext
7268     ac_ext=c
7269ac_cpp='$CPP $CPPFLAGS'
7270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274fi
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7276$as_echo "$lt_cv_cc_needs_belf" >&6; }
7277  if test yes != "$lt_cv_cc_needs_belf"; then
7278    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7279    CFLAGS=$SAVE_CFLAGS
7280  fi
7281  ;;
7282*-*solaris*)
7283  # Find out what ABI is being produced by ac_compile, and set linker
7284  # options accordingly.
7285  echo 'int i;' > conftest.$ac_ext
7286  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287  (eval $ac_compile) 2>&5
7288  ac_status=$?
7289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290  test $ac_status = 0; }; then
7291    case `/usr/bin/file conftest.o` in
7292    *64-bit*)
7293      case $lt_cv_prog_gnu_ld in
7294      yes*)
7295        case $host in
7296        i?86-*-solaris*|x86_64-*-solaris*)
7297          LD="${LD-ld} -m elf_x86_64"
7298          ;;
7299        sparc*-*-solaris*)
7300          LD="${LD-ld} -m elf64_sparc"
7301          ;;
7302        esac
7303        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7304        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7305          LD=${LD-ld}_sol2
7306        fi
7307        ;;
7308      *)
7309	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310	  LD="${LD-ld} -64"
7311	fi
7312	;;
7313      esac
7314      ;;
7315    esac
7316  fi
7317  rm -rf conftest*
7318  ;;
7319esac
7320
7321need_locks=$enable_libtool_lock
7322
7323if test -n "$ac_tool_prefix"; then
7324  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7325set dummy ${ac_tool_prefix}mt; ac_word=$2
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327$as_echo_n "checking for $ac_word... " >&6; }
7328if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  if test -n "$MANIFEST_TOOL"; then
7332  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337  IFS=$as_save_IFS
7338  test -z "$as_dir" && as_dir=.
7339    for ac_exec_ext in '' $ac_executable_extensions; do
7340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343    break 2
7344  fi
7345done
7346  done
7347IFS=$as_save_IFS
7348
7349fi
7350fi
7351MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7352if test -n "$MANIFEST_TOOL"; then
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7354$as_echo "$MANIFEST_TOOL" >&6; }
7355else
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357$as_echo "no" >&6; }
7358fi
7359
7360
7361fi
7362if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7363  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7364  # Extract the first word of "mt", so it can be a program name with args.
7365set dummy mt; ac_word=$2
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  if test -n "$ac_ct_MANIFEST_TOOL"; then
7372  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  test -z "$as_dir" && as_dir=.
7379    for ac_exec_ext in '' $ac_executable_extensions; do
7380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383    break 2
7384  fi
7385done
7386  done
7387IFS=$as_save_IFS
7388
7389fi
7390fi
7391ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7392if test -n "$ac_ct_MANIFEST_TOOL"; then
7393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7394$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7395else
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7398fi
7399
7400  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7401    MANIFEST_TOOL=":"
7402  else
7403    case $cross_compiling:$ac_tool_warned in
7404yes:)
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407ac_tool_warned=yes ;;
7408esac
7409    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7410  fi
7411else
7412  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7413fi
7414
7415test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7417$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7418if ${lt_cv_path_mainfest_tool+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  lt_cv_path_mainfest_tool=no
7422  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7423  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7424  cat conftest.err >&5
7425  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7426    lt_cv_path_mainfest_tool=yes
7427  fi
7428  rm -f conftest*
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7431$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7432if test yes != "$lt_cv_path_mainfest_tool"; then
7433  MANIFEST_TOOL=:
7434fi
7435
7436
7437
7438
7439
7440
7441  case $host_os in
7442    rhapsody* | darwin*)
7443    if test -n "$ac_tool_prefix"; then
7444  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7445set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_DSYMUTIL+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$DSYMUTIL"; then
7452  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471DSYMUTIL=$ac_cv_prog_DSYMUTIL
7472if test -n "$DSYMUTIL"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7474$as_echo "$DSYMUTIL" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_DSYMUTIL"; then
7483  ac_ct_DSYMUTIL=$DSYMUTIL
7484  # Extract the first word of "dsymutil", so it can be a program name with args.
7485set dummy dsymutil; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  if test -n "$ac_ct_DSYMUTIL"; then
7492  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506  done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7512if test -n "$ac_ct_DSYMUTIL"; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7514$as_echo "$ac_ct_DSYMUTIL" >&6; }
7515else
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520  if test "x$ac_ct_DSYMUTIL" = x; then
7521    DSYMUTIL=":"
7522  else
7523    case $cross_compiling:$ac_tool_warned in
7524yes:)
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527ac_tool_warned=yes ;;
7528esac
7529    DSYMUTIL=$ac_ct_DSYMUTIL
7530  fi
7531else
7532  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7533fi
7534
7535    if test -n "$ac_tool_prefix"; then
7536  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7537set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_NMEDIT+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$NMEDIT"; then
7544  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563NMEDIT=$ac_cv_prog_NMEDIT
7564if test -n "$NMEDIT"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7566$as_echo "$NMEDIT" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573fi
7574if test -z "$ac_cv_prog_NMEDIT"; then
7575  ac_ct_NMEDIT=$NMEDIT
7576  # Extract the first word of "nmedit", so it can be a program name with args.
7577set dummy nmedit; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  if test -n "$ac_ct_NMEDIT"; then
7584  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7604if test -n "$ac_ct_NMEDIT"; then
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7606$as_echo "$ac_ct_NMEDIT" >&6; }
7607else
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612  if test "x$ac_ct_NMEDIT" = x; then
7613    NMEDIT=":"
7614  else
7615    case $cross_compiling:$ac_tool_warned in
7616yes:)
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619ac_tool_warned=yes ;;
7620esac
7621    NMEDIT=$ac_ct_NMEDIT
7622  fi
7623else
7624  NMEDIT="$ac_cv_prog_NMEDIT"
7625fi
7626
7627    if test -n "$ac_tool_prefix"; then
7628  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7629set dummy ${ac_tool_prefix}lipo; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if ${ac_cv_prog_LIPO+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  if test -n "$LIPO"; then
7636  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655LIPO=$ac_cv_prog_LIPO
7656if test -n "$LIPO"; then
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7658$as_echo "$LIPO" >&6; }
7659else
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664
7665fi
7666if test -z "$ac_cv_prog_LIPO"; then
7667  ac_ct_LIPO=$LIPO
7668  # Extract the first word of "lipo", so it can be a program name with args.
7669set dummy lipo; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  if test -n "$ac_ct_LIPO"; then
7676  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681  IFS=$as_save_IFS
7682  test -z "$as_dir" && as_dir=.
7683    for ac_exec_ext in '' $ac_executable_extensions; do
7684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685    ac_cv_prog_ac_ct_LIPO="lipo"
7686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687    break 2
7688  fi
7689done
7690  done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7696if test -n "$ac_ct_LIPO"; then
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7698$as_echo "$ac_ct_LIPO" >&6; }
7699else
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704  if test "x$ac_ct_LIPO" = x; then
7705    LIPO=":"
7706  else
7707    case $cross_compiling:$ac_tool_warned in
7708yes:)
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711ac_tool_warned=yes ;;
7712esac
7713    LIPO=$ac_ct_LIPO
7714  fi
7715else
7716  LIPO="$ac_cv_prog_LIPO"
7717fi
7718
7719    if test -n "$ac_tool_prefix"; then
7720  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7721set dummy ${ac_tool_prefix}otool; ac_word=$2
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723$as_echo_n "checking for $ac_word... " >&6; }
7724if ${ac_cv_prog_OTOOL+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  if test -n "$OTOOL"; then
7728  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7729else
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733  IFS=$as_save_IFS
7734  test -z "$as_dir" && as_dir=.
7735    for ac_exec_ext in '' $ac_executable_extensions; do
7736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739    break 2
7740  fi
7741done
7742  done
7743IFS=$as_save_IFS
7744
7745fi
7746fi
7747OTOOL=$ac_cv_prog_OTOOL
7748if test -n "$OTOOL"; then
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7750$as_echo "$OTOOL" >&6; }
7751else
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754fi
7755
7756
7757fi
7758if test -z "$ac_cv_prog_OTOOL"; then
7759  ac_ct_OTOOL=$OTOOL
7760  # Extract the first word of "otool", so it can be a program name with args.
7761set dummy otool; ac_word=$2
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7765  $as_echo_n "(cached) " >&6
7766else
7767  if test -n "$ac_ct_OTOOL"; then
7768  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775    for ac_exec_ext in '' $ac_executable_extensions; do
7776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_ac_ct_OTOOL="otool"
7778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782  done
7783IFS=$as_save_IFS
7784
7785fi
7786fi
7787ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7788if test -n "$ac_ct_OTOOL"; then
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7790$as_echo "$ac_ct_OTOOL" >&6; }
7791else
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796  if test "x$ac_ct_OTOOL" = x; then
7797    OTOOL=":"
7798  else
7799    case $cross_compiling:$ac_tool_warned in
7800yes:)
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803ac_tool_warned=yes ;;
7804esac
7805    OTOOL=$ac_ct_OTOOL
7806  fi
7807else
7808  OTOOL="$ac_cv_prog_OTOOL"
7809fi
7810
7811    if test -n "$ac_tool_prefix"; then
7812  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7813set dummy ${ac_tool_prefix}otool64; ac_word=$2
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815$as_echo_n "checking for $ac_word... " >&6; }
7816if ${ac_cv_prog_OTOOL64+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  if test -n "$OTOOL64"; then
7820  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  test -z "$as_dir" && as_dir=.
7827    for ac_exec_ext in '' $ac_executable_extensions; do
7828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831    break 2
7832  fi
7833done
7834  done
7835IFS=$as_save_IFS
7836
7837fi
7838fi
7839OTOOL64=$ac_cv_prog_OTOOL64
7840if test -n "$OTOOL64"; then
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7842$as_echo "$OTOOL64" >&6; }
7843else
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846fi
7847
7848
7849fi
7850if test -z "$ac_cv_prog_OTOOL64"; then
7851  ac_ct_OTOOL64=$OTOOL64
7852  # Extract the first word of "otool64", so it can be a program name with args.
7853set dummy otool64; ac_word=$2
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  if test -n "$ac_ct_OTOOL64"; then
7860  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  test -z "$as_dir" && as_dir=.
7867    for ac_exec_ext in '' $ac_executable_extensions; do
7868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869    ac_cv_prog_ac_ct_OTOOL64="otool64"
7870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871    break 2
7872  fi
7873done
7874  done
7875IFS=$as_save_IFS
7876
7877fi
7878fi
7879ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7880if test -n "$ac_ct_OTOOL64"; then
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7882$as_echo "$ac_ct_OTOOL64" >&6; }
7883else
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888  if test "x$ac_ct_OTOOL64" = x; then
7889    OTOOL64=":"
7890  else
7891    case $cross_compiling:$ac_tool_warned in
7892yes:)
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895ac_tool_warned=yes ;;
7896esac
7897    OTOOL64=$ac_ct_OTOOL64
7898  fi
7899else
7900  OTOOL64="$ac_cv_prog_OTOOL64"
7901fi
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7930$as_echo_n "checking for -single_module linker flag... " >&6; }
7931if ${lt_cv_apple_cc_single_mod+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  lt_cv_apple_cc_single_mod=no
7935      if test -z "$LT_MULTI_MODULE"; then
7936	# By default we will add the -single_module flag. You can override
7937	# by either setting the environment variable LT_MULTI_MODULE
7938	# non-empty at configure time, or by adding -multi_module to the
7939	# link flags.
7940	rm -rf libconftest.dylib*
7941	echo "int foo(void){return 1;}" > conftest.c
7942	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7943-dynamiclib -Wl,-single_module conftest.c" >&5
7944	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7945	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7946        _lt_result=$?
7947	# If there is a non-empty error log, and "single_module"
7948	# appears in it, assume the flag caused a linker warning
7949        if test -s conftest.err && $GREP single_module conftest.err; then
7950	  cat conftest.err >&5
7951	# Otherwise, if the output was created with a 0 exit code from
7952	# the compiler, it worked.
7953	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7954	  lt_cv_apple_cc_single_mod=yes
7955	else
7956	  cat conftest.err >&5
7957	fi
7958	rm -rf libconftest.dylib*
7959	rm -f conftest.*
7960      fi
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7963$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7964
7965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7966$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7967if ${lt_cv_ld_exported_symbols_list+:} false; then :
7968  $as_echo_n "(cached) " >&6
7969else
7970  lt_cv_ld_exported_symbols_list=no
7971      save_LDFLAGS=$LDFLAGS
7972      echo "_main" > conftest.sym
7973      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h.  */
7976
7977int
7978main ()
7979{
7980
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985if ac_fn_c_try_link "$LINENO"; then :
7986  lt_cv_ld_exported_symbols_list=yes
7987else
7988  lt_cv_ld_exported_symbols_list=no
7989fi
7990rm -f core conftest.err conftest.$ac_objext \
7991    conftest$ac_exeext conftest.$ac_ext
7992	LDFLAGS=$save_LDFLAGS
7993
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7996$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7997
7998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7999$as_echo_n "checking for -force_load linker flag... " >&6; }
8000if ${lt_cv_ld_force_load+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  lt_cv_ld_force_load=no
8004      cat > conftest.c << _LT_EOF
8005int forced_loaded() { return 2;}
8006_LT_EOF
8007      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8008      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8009      echo "$AR cru libconftest.a conftest.o" >&5
8010      $AR cru libconftest.a conftest.o 2>&5
8011      echo "$RANLIB libconftest.a" >&5
8012      $RANLIB libconftest.a 2>&5
8013      cat > conftest.c << _LT_EOF
8014int main() { return 0;}
8015_LT_EOF
8016      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8017      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8018      _lt_result=$?
8019      if test -s conftest.err && $GREP force_load conftest.err; then
8020	cat conftest.err >&5
8021      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8022	lt_cv_ld_force_load=yes
8023      else
8024	cat conftest.err >&5
8025      fi
8026        rm -f conftest.err libconftest.a conftest conftest.c
8027        rm -rf conftest.dSYM
8028
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8031$as_echo "$lt_cv_ld_force_load" >&6; }
8032    case $host_os in
8033    rhapsody* | darwin1.[012])
8034      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8035    darwin1.*)
8036      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8037    darwin*) # darwin 5.x on
8038      # if running on 10.5 or later, the deployment target defaults
8039      # to the OS version, if on x86, and 10.4, the deployment
8040      # target defaults to 10.4. Don't you love it?
8041      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8042	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8043	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8044	10.[012][,.]*)
8045	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8046	10.*)
8047	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8048      esac
8049    ;;
8050  esac
8051    if test yes = "$lt_cv_apple_cc_single_mod"; then
8052      _lt_dar_single_mod='$single_module'
8053    fi
8054    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8055      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8056    else
8057      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8058    fi
8059    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8060      _lt_dsymutil='~$DSYMUTIL $lib || :'
8061    else
8062      _lt_dsymutil=
8063    fi
8064    ;;
8065  esac
8066
8067# func_munge_path_list VARIABLE PATH
8068# -----------------------------------
8069# VARIABLE is name of variable containing _space_ separated list of
8070# directories to be munged by the contents of PATH, which is string
8071# having a format:
8072# "DIR[:DIR]:"
8073#       string "DIR[ DIR]" will be prepended to VARIABLE
8074# ":DIR[:DIR]"
8075#       string "DIR[ DIR]" will be appended to VARIABLE
8076# "DIRP[:DIRP]::[DIRA:]DIRA"
8077#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8078#       "DIRA[ DIRA]" will be appended to VARIABLE
8079# "DIR[:DIR]"
8080#       VARIABLE will be replaced by "DIR[ DIR]"
8081func_munge_path_list ()
8082{
8083    case x$2 in
8084    x)
8085        ;;
8086    *:)
8087        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8088        ;;
8089    x:*)
8090        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8091        ;;
8092    *::*)
8093        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8094        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8095        ;;
8096    *)
8097        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8098        ;;
8099    esac
8100}
8101
8102for ac_header in dlfcn.h
8103do :
8104  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8105"
8106if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8107  cat >>confdefs.h <<_ACEOF
8108#define HAVE_DLFCN_H 1
8109_ACEOF
8110
8111fi
8112
8113done
8114
8115
8116
8117
8118
8119# Set options
8120
8121
8122
8123        enable_dlopen=no
8124
8125
8126  enable_win32_dll=no
8127
8128
8129            # Check whether --enable-shared was given.
8130if test "${enable_shared+set}" = set; then :
8131  enableval=$enable_shared; p=${PACKAGE-default}
8132    case $enableval in
8133    yes) enable_shared=yes ;;
8134    no) enable_shared=no ;;
8135    *)
8136      enable_shared=no
8137      # Look at the argument we got.  We use all the common list separators.
8138      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8139      for pkg in $enableval; do
8140	IFS=$lt_save_ifs
8141	if test "X$pkg" = "X$p"; then
8142	  enable_shared=yes
8143	fi
8144      done
8145      IFS=$lt_save_ifs
8146      ;;
8147    esac
8148else
8149  enable_shared=yes
8150fi
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160  # Check whether --enable-static was given.
8161if test "${enable_static+set}" = set; then :
8162  enableval=$enable_static; p=${PACKAGE-default}
8163    case $enableval in
8164    yes) enable_static=yes ;;
8165    no) enable_static=no ;;
8166    *)
8167     enable_static=no
8168      # Look at the argument we got.  We use all the common list separators.
8169      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8170      for pkg in $enableval; do
8171	IFS=$lt_save_ifs
8172	if test "X$pkg" = "X$p"; then
8173	  enable_static=yes
8174	fi
8175      done
8176      IFS=$lt_save_ifs
8177      ;;
8178    esac
8179else
8180  enable_static=yes
8181fi
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192# Check whether --with-pic was given.
8193if test "${with_pic+set}" = set; then :
8194  withval=$with_pic; lt_p=${PACKAGE-default}
8195    case $withval in
8196    yes|no) pic_mode=$withval ;;
8197    *)
8198      pic_mode=default
8199      # Look at the argument we got.  We use all the common list separators.
8200      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8201      for lt_pkg in $withval; do
8202	IFS=$lt_save_ifs
8203	if test "X$lt_pkg" = "X$lt_p"; then
8204	  pic_mode=yes
8205	fi
8206      done
8207      IFS=$lt_save_ifs
8208      ;;
8209    esac
8210else
8211  pic_mode=default
8212fi
8213
8214
8215
8216
8217
8218
8219
8220
8221  # Check whether --enable-fast-install was given.
8222if test "${enable_fast_install+set}" = set; then :
8223  enableval=$enable_fast_install; p=${PACKAGE-default}
8224    case $enableval in
8225    yes) enable_fast_install=yes ;;
8226    no) enable_fast_install=no ;;
8227    *)
8228      enable_fast_install=no
8229      # Look at the argument we got.  We use all the common list separators.
8230      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8231      for pkg in $enableval; do
8232	IFS=$lt_save_ifs
8233	if test "X$pkg" = "X$p"; then
8234	  enable_fast_install=yes
8235	fi
8236      done
8237      IFS=$lt_save_ifs
8238      ;;
8239    esac
8240else
8241  enable_fast_install=yes
8242fi
8243
8244
8245
8246
8247
8248
8249
8250
8251  shared_archive_member_spec=
8252case $host,$enable_shared in
8253power*-*-aix[5-9]*,yes)
8254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8255$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8256
8257# Check whether --with-aix-soname was given.
8258if test "${with_aix_soname+set}" = set; then :
8259  withval=$with_aix_soname; case $withval in
8260    aix|svr4|both)
8261      ;;
8262    *)
8263      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8264      ;;
8265    esac
8266    lt_cv_with_aix_soname=$with_aix_soname
8267else
8268  if ${lt_cv_with_aix_soname+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  lt_cv_with_aix_soname=aix
8272fi
8273
8274    with_aix_soname=$lt_cv_with_aix_soname
8275fi
8276
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8278$as_echo "$with_aix_soname" >&6; }
8279  if test aix != "$with_aix_soname"; then
8280    # For the AIX way of multilib, we name the shared archive member
8281    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8282    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8283    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8284    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8285    if test 64 = "${OBJECT_MODE-32}"; then
8286      shared_archive_member_spec=shr_64
8287    else
8288      shared_archive_member_spec=shr
8289    fi
8290  fi
8291  ;;
8292*)
8293  with_aix_soname=aix
8294  ;;
8295esac
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306# This can be used to rebuild libtool when needed
8307LIBTOOL_DEPS=$ltmain
8308
8309# Always use our own libtool.
8310LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341test -z "$LN_S" && LN_S="ln -s"
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356if test -n "${ZSH_VERSION+set}"; then
8357   setopt NO_GLOB_SUBST
8358fi
8359
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8361$as_echo_n "checking for objdir... " >&6; }
8362if ${lt_cv_objdir+:} false; then :
8363  $as_echo_n "(cached) " >&6
8364else
8365  rm -f .libs 2>/dev/null
8366mkdir .libs 2>/dev/null
8367if test -d .libs; then
8368  lt_cv_objdir=.libs
8369else
8370  # MS-DOS does not allow filenames that begin with a dot.
8371  lt_cv_objdir=_libs
8372fi
8373rmdir .libs 2>/dev/null
8374fi
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8376$as_echo "$lt_cv_objdir" >&6; }
8377objdir=$lt_cv_objdir
8378
8379
8380
8381
8382
8383cat >>confdefs.h <<_ACEOF
8384#define LT_OBJDIR "$lt_cv_objdir/"
8385_ACEOF
8386
8387
8388
8389
8390case $host_os in
8391aix3*)
8392  # AIX sometimes has problems with the GCC collect2 program.  For some
8393  # reason, if we set the COLLECT_NAMES environment variable, the problems
8394  # vanish in a puff of smoke.
8395  if test set != "${COLLECT_NAMES+set}"; then
8396    COLLECT_NAMES=
8397    export COLLECT_NAMES
8398  fi
8399  ;;
8400esac
8401
8402# Global variables:
8403ofile=libtool
8404can_build_shared=yes
8405
8406# All known linkers require a '.a' archive for static linking (except MSVC,
8407# which needs '.lib').
8408libext=a
8409
8410with_gnu_ld=$lt_cv_prog_gnu_ld
8411
8412old_CC=$CC
8413old_CFLAGS=$CFLAGS
8414
8415# Set sane defaults for various variables
8416test -z "$CC" && CC=cc
8417test -z "$LTCC" && LTCC=$CC
8418test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419test -z "$LD" && LD=ld
8420test -z "$ac_objext" && ac_objext=o
8421
8422func_cc_basename $compiler
8423cc_basename=$func_cc_basename_result
8424
8425
8426# Only perform the check for file, if the check method requires it
8427test -z "$MAGIC_CMD" && MAGIC_CMD=file
8428case $deplibs_check_method in
8429file_magic*)
8430  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8432$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8433if ${lt_cv_path_MAGIC_CMD+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  case $MAGIC_CMD in
8437[\\/*] |  ?:[\\/]*)
8438  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8439  ;;
8440*)
8441  lt_save_MAGIC_CMD=$MAGIC_CMD
8442  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8443  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444  for ac_dir in $ac_dummy; do
8445    IFS=$lt_save_ifs
8446    test -z "$ac_dir" && ac_dir=.
8447    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8448      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8449      if test -n "$file_magic_test_file"; then
8450	case $deplibs_check_method in
8451	"file_magic "*)
8452	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8454	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455	    $EGREP "$file_magic_regex" > /dev/null; then
8456	    :
8457	  else
8458	    cat <<_LT_EOF 1>&2
8459
8460*** Warning: the command libtool uses to detect shared libraries,
8461*** $file_magic_cmd, produces output that libtool cannot recognize.
8462*** The result is that libtool may fail to recognize shared libraries
8463*** as such.  This will affect the creation of libtool libraries that
8464*** depend on shared libraries, but programs linked with such libtool
8465*** libraries will work regardless of this problem.  Nevertheless, you
8466*** may want to report the problem to your system manager and/or to
8467*** bug-libtool@gnu.org
8468
8469_LT_EOF
8470	  fi ;;
8471	esac
8472      fi
8473      break
8474    fi
8475  done
8476  IFS=$lt_save_ifs
8477  MAGIC_CMD=$lt_save_MAGIC_CMD
8478  ;;
8479esac
8480fi
8481
8482MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8483if test -n "$MAGIC_CMD"; then
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8485$as_echo "$MAGIC_CMD" >&6; }
8486else
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492
8493
8494
8495if test -z "$lt_cv_path_MAGIC_CMD"; then
8496  if test -n "$ac_tool_prefix"; then
8497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8498$as_echo_n "checking for file... " >&6; }
8499if ${lt_cv_path_MAGIC_CMD+:} false; then :
8500  $as_echo_n "(cached) " >&6
8501else
8502  case $MAGIC_CMD in
8503[\\/*] |  ?:[\\/]*)
8504  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8505  ;;
8506*)
8507  lt_save_MAGIC_CMD=$MAGIC_CMD
8508  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8509  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8510  for ac_dir in $ac_dummy; do
8511    IFS=$lt_save_ifs
8512    test -z "$ac_dir" && ac_dir=.
8513    if test -f "$ac_dir/file"; then
8514      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8515      if test -n "$file_magic_test_file"; then
8516	case $deplibs_check_method in
8517	"file_magic "*)
8518	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8519	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8520	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8521	    $EGREP "$file_magic_regex" > /dev/null; then
8522	    :
8523	  else
8524	    cat <<_LT_EOF 1>&2
8525
8526*** Warning: the command libtool uses to detect shared libraries,
8527*** $file_magic_cmd, produces output that libtool cannot recognize.
8528*** The result is that libtool may fail to recognize shared libraries
8529*** as such.  This will affect the creation of libtool libraries that
8530*** depend on shared libraries, but programs linked with such libtool
8531*** libraries will work regardless of this problem.  Nevertheless, you
8532*** may want to report the problem to your system manager and/or to
8533*** bug-libtool@gnu.org
8534
8535_LT_EOF
8536	  fi ;;
8537	esac
8538      fi
8539      break
8540    fi
8541  done
8542  IFS=$lt_save_ifs
8543  MAGIC_CMD=$lt_save_MAGIC_CMD
8544  ;;
8545esac
8546fi
8547
8548MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8549if test -n "$MAGIC_CMD"; then
8550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8551$as_echo "$MAGIC_CMD" >&6; }
8552else
8553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
8555fi
8556
8557
8558  else
8559    MAGIC_CMD=:
8560  fi
8561fi
8562
8563  fi
8564  ;;
8565esac
8566
8567# Use C for the default configuration in the libtool script
8568
8569lt_save_CC=$CC
8570ac_ext=c
8571ac_cpp='$CPP $CPPFLAGS'
8572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8574ac_compiler_gnu=$ac_cv_c_compiler_gnu
8575
8576
8577# Source file extension for C test sources.
8578ac_ext=c
8579
8580# Object file extension for compiled C test sources.
8581objext=o
8582objext=$objext
8583
8584# Code to be used in simple compile tests
8585lt_simple_compile_test_code="int some_variable = 0;"
8586
8587# Code to be used in simple link tests
8588lt_simple_link_test_code='int main(){return(0);}'
8589
8590
8591
8592
8593
8594
8595
8596# If no C compiler was specified, use CC.
8597LTCC=${LTCC-"$CC"}
8598
8599# If no C compiler flags were specified, use CFLAGS.
8600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8601
8602# Allow CC to be a program name with arguments.
8603compiler=$CC
8604
8605# Save the default compiler, since it gets overwritten when the other
8606# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8607compiler_DEFAULT=$CC
8608
8609# save warnings/boilerplate of simple test code
8610ac_outfile=conftest.$ac_objext
8611echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8613_lt_compiler_boilerplate=`cat conftest.err`
8614$RM conftest*
8615
8616ac_outfile=conftest.$ac_objext
8617echo "$lt_simple_link_test_code" >conftest.$ac_ext
8618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8619_lt_linker_boilerplate=`cat conftest.err`
8620$RM -r conftest*
8621
8622
8623## CAVEAT EMPTOR:
8624## There is no encapsulation within the following macros, do not change
8625## the running order or otherwise move them around unless you know exactly
8626## what you are doing...
8627if test -n "$compiler"; then
8628
8629lt_prog_compiler_no_builtin_flag=
8630
8631if test yes = "$GCC"; then
8632  case $cc_basename in
8633  nvcc*)
8634    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8635  *)
8636    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8637  esac
8638
8639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8640$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8641if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  lt_cv_prog_compiler_rtti_exceptions=no
8645   ac_outfile=conftest.$ac_objext
8646   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8648   # Insert the option either (1) after the last *FLAGS variable, or
8649   # (2) before a word containing "conftest.", or (3) at the end.
8650   # Note that $ac_compile itself does not contain backslashes and begins
8651   # with a dollar sign (not a hyphen), so the echo should work correctly.
8652   # The option is referenced via a variable to avoid confusing sed.
8653   lt_compile=`echo "$ac_compile" | $SED \
8654   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8655   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656   -e 's:$: $lt_compiler_flag:'`
8657   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8658   (eval "$lt_compile" 2>conftest.err)
8659   ac_status=$?
8660   cat conftest.err >&5
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   if (exit $ac_status) && test -s "$ac_outfile"; then
8663     # The compiler can only warn and ignore the option if not recognized
8664     # So say no if there are warnings other than the usual output.
8665     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8666     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8668       lt_cv_prog_compiler_rtti_exceptions=yes
8669     fi
8670   fi
8671   $RM conftest*
8672
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8675$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8676
8677if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8678    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8679else
8680    :
8681fi
8682
8683fi
8684
8685
8686
8687
8688
8689
8690  lt_prog_compiler_wl=
8691lt_prog_compiler_pic=
8692lt_prog_compiler_static=
8693
8694
8695  if test yes = "$GCC"; then
8696    lt_prog_compiler_wl='-Wl,'
8697    lt_prog_compiler_static='-static'
8698
8699    case $host_os in
8700      aix*)
8701      # All AIX code is PIC.
8702      if test ia64 = "$host_cpu"; then
8703	# AIX 5 now supports IA64 processor
8704	lt_prog_compiler_static='-Bstatic'
8705      fi
8706      lt_prog_compiler_pic='-fPIC'
8707      ;;
8708
8709    amigaos*)
8710      case $host_cpu in
8711      powerpc)
8712            # see comment about AmigaOS4 .so support
8713            lt_prog_compiler_pic='-fPIC'
8714        ;;
8715      m68k)
8716            # FIXME: we need at least 68020 code to build shared libraries, but
8717            # adding the '-m68020' flag to GCC prevents building anything better,
8718            # like '-m68040'.
8719            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8720        ;;
8721      esac
8722      ;;
8723
8724    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8725      # PIC is the default for these OSes.
8726      ;;
8727
8728    mingw* | cygwin* | pw32* | os2* | cegcc*)
8729      # This hack is so that the source file can tell whether it is being
8730      # built for inclusion in a dll (and should export symbols for example).
8731      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8732      # (--disable-auto-import) libraries
8733      lt_prog_compiler_pic='-DDLL_EXPORT'
8734      case $host_os in
8735      os2*)
8736	lt_prog_compiler_static='$wl-static'
8737	;;
8738      esac
8739      ;;
8740
8741    darwin* | rhapsody*)
8742      # PIC is the default on this platform
8743      # Common symbols not allowed in MH_DYLIB files
8744      lt_prog_compiler_pic='-fno-common'
8745      ;;
8746
8747    haiku*)
8748      # PIC is the default for Haiku.
8749      # The "-static" flag exists, but is broken.
8750      lt_prog_compiler_static=
8751      ;;
8752
8753    hpux*)
8754      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8755      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8756      # sets the default TLS model and affects inlining.
8757      case $host_cpu in
8758      hppa*64*)
8759	# +Z the default
8760	;;
8761      *)
8762	lt_prog_compiler_pic='-fPIC'
8763	;;
8764      esac
8765      ;;
8766
8767    interix[3-9]*)
8768      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8769      # Instead, we relocate shared libraries at runtime.
8770      ;;
8771
8772    msdosdjgpp*)
8773      # Just because we use GCC doesn't mean we suddenly get shared libraries
8774      # on systems that don't support them.
8775      lt_prog_compiler_can_build_shared=no
8776      enable_shared=no
8777      ;;
8778
8779    *nto* | *qnx*)
8780      # QNX uses GNU C++, but need to define -shared option too, otherwise
8781      # it will coredump.
8782      lt_prog_compiler_pic='-fPIC -shared'
8783      ;;
8784
8785    sysv4*MP*)
8786      if test -d /usr/nec; then
8787	lt_prog_compiler_pic=-Kconform_pic
8788      fi
8789      ;;
8790
8791    *)
8792      lt_prog_compiler_pic='-fPIC'
8793      ;;
8794    esac
8795
8796    case $cc_basename in
8797    nvcc*) # Cuda Compiler Driver 2.2
8798      lt_prog_compiler_wl='-Xlinker '
8799      if test -n "$lt_prog_compiler_pic"; then
8800        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8801      fi
8802      ;;
8803    esac
8804  else
8805    # PORTME Check for flag to pass linker flags through the system compiler.
8806    case $host_os in
8807    aix*)
8808      lt_prog_compiler_wl='-Wl,'
8809      if test ia64 = "$host_cpu"; then
8810	# AIX 5 now supports IA64 processor
8811	lt_prog_compiler_static='-Bstatic'
8812      else
8813	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8814      fi
8815      ;;
8816
8817    darwin* | rhapsody*)
8818      # PIC is the default on this platform
8819      # Common symbols not allowed in MH_DYLIB files
8820      lt_prog_compiler_pic='-fno-common'
8821      case $cc_basename in
8822      nagfor*)
8823        # NAG Fortran compiler
8824        lt_prog_compiler_wl='-Wl,-Wl,,'
8825        lt_prog_compiler_pic='-PIC'
8826        lt_prog_compiler_static='-Bstatic'
8827        ;;
8828      esac
8829      ;;
8830
8831    mingw* | cygwin* | pw32* | os2* | cegcc*)
8832      # This hack is so that the source file can tell whether it is being
8833      # built for inclusion in a dll (and should export symbols for example).
8834      lt_prog_compiler_pic='-DDLL_EXPORT'
8835      case $host_os in
8836      os2*)
8837	lt_prog_compiler_static='$wl-static'
8838	;;
8839      esac
8840      ;;
8841
8842    hpux9* | hpux10* | hpux11*)
8843      lt_prog_compiler_wl='-Wl,'
8844      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8845      # not for PA HP-UX.
8846      case $host_cpu in
8847      hppa*64*|ia64*)
8848	# +Z the default
8849	;;
8850      *)
8851	lt_prog_compiler_pic='+Z'
8852	;;
8853      esac
8854      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8855      lt_prog_compiler_static='$wl-a ${wl}archive'
8856      ;;
8857
8858    irix5* | irix6* | nonstopux*)
8859      lt_prog_compiler_wl='-Wl,'
8860      # PIC (with -KPIC) is the default.
8861      lt_prog_compiler_static='-non_shared'
8862      ;;
8863
8864    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8865      case $cc_basename in
8866      # old Intel for x86_64, which still supported -KPIC.
8867      ecc*)
8868	lt_prog_compiler_wl='-Wl,'
8869	lt_prog_compiler_pic='-KPIC'
8870	lt_prog_compiler_static='-static'
8871        ;;
8872      # icc used to be incompatible with GCC.
8873      # ICC 10 doesn't accept -KPIC any more.
8874      icc* | ifort*)
8875	lt_prog_compiler_wl='-Wl,'
8876	lt_prog_compiler_pic='-fPIC'
8877	lt_prog_compiler_static='-static'
8878        ;;
8879      # Lahey Fortran 8.1.
8880      lf95*)
8881	lt_prog_compiler_wl='-Wl,'
8882	lt_prog_compiler_pic='--shared'
8883	lt_prog_compiler_static='--static'
8884	;;
8885      nagfor*)
8886	# NAG Fortran compiler
8887	lt_prog_compiler_wl='-Wl,-Wl,,'
8888	lt_prog_compiler_pic='-PIC'
8889	lt_prog_compiler_static='-Bstatic'
8890	;;
8891      tcc*)
8892	# Fabrice Bellard et al's Tiny C Compiler
8893	lt_prog_compiler_wl='-Wl,'
8894	lt_prog_compiler_pic='-fPIC'
8895	lt_prog_compiler_static='-static'
8896	;;
8897      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898        # Portland Group compilers (*not* the Pentium gcc compiler,
8899	# which looks to be a dead project)
8900	lt_prog_compiler_wl='-Wl,'
8901	lt_prog_compiler_pic='-fpic'
8902	lt_prog_compiler_static='-Bstatic'
8903        ;;
8904      ccc*)
8905        lt_prog_compiler_wl='-Wl,'
8906        # All Alpha code is PIC.
8907        lt_prog_compiler_static='-non_shared'
8908        ;;
8909      xl* | bgxl* | bgf* | mpixl*)
8910	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911	lt_prog_compiler_wl='-Wl,'
8912	lt_prog_compiler_pic='-qpic'
8913	lt_prog_compiler_static='-qstaticlink'
8914	;;
8915      *)
8916	case `$CC -V 2>&1 | sed 5q` in
8917	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919	  lt_prog_compiler_pic='-KPIC'
8920	  lt_prog_compiler_static='-Bstatic'
8921	  lt_prog_compiler_wl=''
8922	  ;;
8923	*Sun\ F* | *Sun*Fortran*)
8924	  lt_prog_compiler_pic='-KPIC'
8925	  lt_prog_compiler_static='-Bstatic'
8926	  lt_prog_compiler_wl='-Qoption ld '
8927	  ;;
8928	*Sun\ C*)
8929	  # Sun C 5.9
8930	  lt_prog_compiler_pic='-KPIC'
8931	  lt_prog_compiler_static='-Bstatic'
8932	  lt_prog_compiler_wl='-Wl,'
8933	  ;;
8934        *Intel*\ [CF]*Compiler*)
8935	  lt_prog_compiler_wl='-Wl,'
8936	  lt_prog_compiler_pic='-fPIC'
8937	  lt_prog_compiler_static='-static'
8938	  ;;
8939	*Portland\ Group*)
8940	  lt_prog_compiler_wl='-Wl,'
8941	  lt_prog_compiler_pic='-fpic'
8942	  lt_prog_compiler_static='-Bstatic'
8943	  ;;
8944	esac
8945	;;
8946      esac
8947      ;;
8948
8949    newsos6)
8950      lt_prog_compiler_pic='-KPIC'
8951      lt_prog_compiler_static='-Bstatic'
8952      ;;
8953
8954    *nto* | *qnx*)
8955      # QNX uses GNU C++, but need to define -shared option too, otherwise
8956      # it will coredump.
8957      lt_prog_compiler_pic='-fPIC -shared'
8958      ;;
8959
8960    osf3* | osf4* | osf5*)
8961      lt_prog_compiler_wl='-Wl,'
8962      # All OSF/1 code is PIC.
8963      lt_prog_compiler_static='-non_shared'
8964      ;;
8965
8966    rdos*)
8967      lt_prog_compiler_static='-non_shared'
8968      ;;
8969
8970    solaris*)
8971      lt_prog_compiler_pic='-KPIC'
8972      lt_prog_compiler_static='-Bstatic'
8973      case $cc_basename in
8974      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975	lt_prog_compiler_wl='-Qoption ld ';;
8976      *)
8977	lt_prog_compiler_wl='-Wl,';;
8978      esac
8979      ;;
8980
8981    sunos4*)
8982      lt_prog_compiler_wl='-Qoption ld '
8983      lt_prog_compiler_pic='-PIC'
8984      lt_prog_compiler_static='-Bstatic'
8985      ;;
8986
8987    sysv4 | sysv4.2uw2* | sysv4.3*)
8988      lt_prog_compiler_wl='-Wl,'
8989      lt_prog_compiler_pic='-KPIC'
8990      lt_prog_compiler_static='-Bstatic'
8991      ;;
8992
8993    sysv4*MP*)
8994      if test -d /usr/nec; then
8995	lt_prog_compiler_pic='-Kconform_pic'
8996	lt_prog_compiler_static='-Bstatic'
8997      fi
8998      ;;
8999
9000    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001      lt_prog_compiler_wl='-Wl,'
9002      lt_prog_compiler_pic='-KPIC'
9003      lt_prog_compiler_static='-Bstatic'
9004      ;;
9005
9006    unicos*)
9007      lt_prog_compiler_wl='-Wl,'
9008      lt_prog_compiler_can_build_shared=no
9009      ;;
9010
9011    uts4*)
9012      lt_prog_compiler_pic='-pic'
9013      lt_prog_compiler_static='-Bstatic'
9014      ;;
9015
9016    *)
9017      lt_prog_compiler_can_build_shared=no
9018      ;;
9019    esac
9020  fi
9021
9022case $host_os in
9023  # For platforms that do not support PIC, -DPIC is meaningless:
9024  *djgpp*)
9025    lt_prog_compiler_pic=
9026    ;;
9027  *)
9028    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029    ;;
9030esac
9031
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034if ${lt_cv_prog_compiler_pic+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9042
9043#
9044# Check to make sure the PIC flag actually works.
9045#
9046if test -n "$lt_prog_compiler_pic"; then
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050  $as_echo_n "(cached) " >&6
9051else
9052  lt_cv_prog_compiler_pic_works=no
9053   ac_outfile=conftest.$ac_objext
9054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9056   # Insert the option either (1) after the last *FLAGS variable, or
9057   # (2) before a word containing "conftest.", or (3) at the end.
9058   # Note that $ac_compile itself does not contain backslashes and begins
9059   # with a dollar sign (not a hyphen), so the echo should work correctly.
9060   # The option is referenced via a variable to avoid confusing sed.
9061   lt_compile=`echo "$ac_compile" | $SED \
9062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064   -e 's:$: $lt_compiler_flag:'`
9065   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066   (eval "$lt_compile" 2>conftest.err)
9067   ac_status=$?
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   if (exit $ac_status) && test -s "$ac_outfile"; then
9071     # The compiler can only warn and ignore the option if not recognized
9072     # So say no if there are warnings other than the usual output.
9073     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076       lt_cv_prog_compiler_pic_works=yes
9077     fi
9078   fi
9079   $RM conftest*
9080
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9084
9085if test yes = "$lt_cv_prog_compiler_pic_works"; then
9086    case $lt_prog_compiler_pic in
9087     "" | " "*) ;;
9088     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9089     esac
9090else
9091    lt_prog_compiler_pic=
9092     lt_prog_compiler_can_build_shared=no
9093fi
9094
9095fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107#
9108# Check to make sure the static flag actually works.
9109#
9110wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113if ${lt_cv_prog_compiler_static_works+:} false; then :
9114  $as_echo_n "(cached) " >&6
9115else
9116  lt_cv_prog_compiler_static_works=no
9117   save_LDFLAGS=$LDFLAGS
9118   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121     # The linker can only warn and ignore the option if not recognized
9122     # So say no if there are warnings
9123     if test -s conftest.err; then
9124       # Append any errors to the config.log.
9125       cat conftest.err 1>&5
9126       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128       if diff conftest.exp conftest.er2 >/dev/null; then
9129         lt_cv_prog_compiler_static_works=yes
9130       fi
9131     else
9132       lt_cv_prog_compiler_static_works=yes
9133     fi
9134   fi
9135   $RM -r conftest*
9136   LDFLAGS=$save_LDFLAGS
9137
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141
9142if test yes = "$lt_cv_prog_compiler_static_works"; then
9143    :
9144else
9145    lt_prog_compiler_static=
9146fi
9147
9148
9149
9150
9151
9152
9153
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156if ${lt_cv_prog_compiler_c_o+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  lt_cv_prog_compiler_c_o=no
9160   $RM -r conftest 2>/dev/null
9161   mkdir conftest
9162   cd conftest
9163   mkdir out
9164   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166   lt_compiler_flag="-o out/conftest2.$ac_objext"
9167   # Insert the option either (1) after the last *FLAGS variable, or
9168   # (2) before a word containing "conftest.", or (3) at the end.
9169   # Note that $ac_compile itself does not contain backslashes and begins
9170   # with a dollar sign (not a hyphen), so the echo should work correctly.
9171   lt_compile=`echo "$ac_compile" | $SED \
9172   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174   -e 's:$: $lt_compiler_flag:'`
9175   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176   (eval "$lt_compile" 2>out/conftest.err)
9177   ac_status=$?
9178   cat out/conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181   then
9182     # The compiler can only warn and ignore the option if not recognized
9183     # So say no if there are warnings
9184     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187       lt_cv_prog_compiler_c_o=yes
9188     fi
9189   fi
9190   chmod u+w . 2>&5
9191   $RM conftest*
9192   # SGI C++ compiler will create directory out/ii_files/ for
9193   # template instantiation
9194   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195   $RM out/* && rmdir out
9196   cd ..
9197   $RM -r conftest
9198   $RM conftest*
9199
9200fi
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9203
9204
9205
9206
9207
9208
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211if ${lt_cv_prog_compiler_c_o+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  lt_cv_prog_compiler_c_o=no
9215   $RM -r conftest 2>/dev/null
9216   mkdir conftest
9217   cd conftest
9218   mkdir out
9219   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221   lt_compiler_flag="-o out/conftest2.$ac_objext"
9222   # Insert the option either (1) after the last *FLAGS variable, or
9223   # (2) before a word containing "conftest.", or (3) at the end.
9224   # Note that $ac_compile itself does not contain backslashes and begins
9225   # with a dollar sign (not a hyphen), so the echo should work correctly.
9226   lt_compile=`echo "$ac_compile" | $SED \
9227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229   -e 's:$: $lt_compiler_flag:'`
9230   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231   (eval "$lt_compile" 2>out/conftest.err)
9232   ac_status=$?
9233   cat out/conftest.err >&5
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236   then
9237     # The compiler can only warn and ignore the option if not recognized
9238     # So say no if there are warnings
9239     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242       lt_cv_prog_compiler_c_o=yes
9243     fi
9244   fi
9245   chmod u+w . 2>&5
9246   $RM conftest*
9247   # SGI C++ compiler will create directory out/ii_files/ for
9248   # template instantiation
9249   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250   $RM out/* && rmdir out
9251   cd ..
9252   $RM -r conftest
9253   $RM conftest*
9254
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258
9259
9260
9261
9262hard_links=nottested
9263if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9264  # do not overwrite the value of need_locks provided by the user
9265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266$as_echo_n "checking if we can lock with hard links... " >&6; }
9267  hard_links=yes
9268  $RM conftest*
9269  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270  touch conftest.a
9271  ln conftest.a conftest.b 2>&5 || hard_links=no
9272  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274$as_echo "$hard_links" >&6; }
9275  if test no = "$hard_links"; then
9276    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9277$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9278    need_locks=warn
9279  fi
9280else
9281  need_locks=no
9282fi
9283
9284
9285
9286
9287
9288
9289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291
9292  runpath_var=
9293  allow_undefined_flag=
9294  always_export_symbols=no
9295  archive_cmds=
9296  archive_expsym_cmds=
9297  compiler_needs_object=no
9298  enable_shared_with_static_runtimes=no
9299  export_dynamic_flag_spec=
9300  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301  hardcode_automatic=no
9302  hardcode_direct=no
9303  hardcode_direct_absolute=no
9304  hardcode_libdir_flag_spec=
9305  hardcode_libdir_separator=
9306  hardcode_minus_L=no
9307  hardcode_shlibpath_var=unsupported
9308  inherit_rpath=no
9309  link_all_deplibs=unknown
9310  module_cmds=
9311  module_expsym_cmds=
9312  old_archive_from_new_cmds=
9313  old_archive_from_expsyms_cmds=
9314  thread_safe_flag_spec=
9315  whole_archive_flag_spec=
9316  # include_expsyms should be a list of space-separated symbols to be *always*
9317  # included in the symbol list
9318  include_expsyms=
9319  # exclude_expsyms can be an extended regexp of symbols to exclude
9320  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9321  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9322  # as well as any symbol that contains 'd'.
9323  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325  # platforms (ab)use it in PIC code, but their linkers get confused if
9326  # the symbol is explicitly referenced.  Since portable code cannot
9327  # rely on this symbol name, it's probably fine to never include it in
9328  # preloaded symbol tables.
9329  # Exclude shared library initialization/finalization symbols.
9330  extract_expsyms_cmds=
9331
9332  case $host_os in
9333  cygwin* | mingw* | pw32* | cegcc*)
9334    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335    # When not using gcc, we currently assume that we are using
9336    # Microsoft Visual C++.
9337    if test yes != "$GCC"; then
9338      with_gnu_ld=no
9339    fi
9340    ;;
9341  interix*)
9342    # we just hope/assume this is gcc and not c89 (= MSVC++)
9343    with_gnu_ld=yes
9344    ;;
9345  openbsd* | bitrig*)
9346    with_gnu_ld=no
9347    ;;
9348  esac
9349
9350  ld_shlibs=yes
9351
9352  # On some targets, GNU ld is compatible enough with the native linker
9353  # that we're better off using the native interface for both.
9354  lt_use_gnu_ld_interface=no
9355  if test yes = "$with_gnu_ld"; then
9356    case $host_os in
9357      aix*)
9358	# The AIX port of GNU ld has always aspired to compatibility
9359	# with the native linker.  However, as the warning in the GNU ld
9360	# block says, versions before 2.19.5* couldn't really create working
9361	# shared libraries, regardless of the interface used.
9362	case `$LD -v 2>&1` in
9363	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9364	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9365	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9366	  *)
9367	    lt_use_gnu_ld_interface=yes
9368	    ;;
9369	esac
9370	;;
9371      *)
9372	lt_use_gnu_ld_interface=yes
9373	;;
9374    esac
9375  fi
9376
9377  if test yes = "$lt_use_gnu_ld_interface"; then
9378    # If archive_cmds runs LD, not CC, wlarc should be empty
9379    wlarc='$wl'
9380
9381    # Set some defaults for GNU ld with shared library support. These
9382    # are reset later if shared libraries are not supported. Putting them
9383    # here allows them to be overridden if necessary.
9384    runpath_var=LD_RUN_PATH
9385    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9386    export_dynamic_flag_spec='$wl--export-dynamic'
9387    # ancient GNU ld didn't support --whole-archive et. al.
9388    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9389      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9390    else
9391      whole_archive_flag_spec=
9392    fi
9393    supports_anon_versioning=no
9394    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9395      *GNU\ gold*) supports_anon_versioning=yes ;;
9396      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9397      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9398      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9399      *\ 2.11.*) ;; # other 2.11 versions
9400      *) supports_anon_versioning=yes ;;
9401    esac
9402
9403    # See if GNU ld supports shared libraries.
9404    case $host_os in
9405    aix[3-9]*)
9406      # On AIX/PPC, the GNU linker is very broken
9407      if test ia64 != "$host_cpu"; then
9408	ld_shlibs=no
9409	cat <<_LT_EOF 1>&2
9410
9411*** Warning: the GNU linker, at least up to release 2.19, is reported
9412*** to be unable to reliably create shared libraries on AIX.
9413*** Therefore, libtool is disabling shared libraries support.  If you
9414*** really care for shared libraries, you may want to install binutils
9415*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9416*** You will then need to restart the configuration process.
9417
9418_LT_EOF
9419      fi
9420      ;;
9421
9422    amigaos*)
9423      case $host_cpu in
9424      powerpc)
9425            # see comment about AmigaOS4 .so support
9426            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9427            archive_expsym_cmds=''
9428        ;;
9429      m68k)
9430            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)'
9431            hardcode_libdir_flag_spec='-L$libdir'
9432            hardcode_minus_L=yes
9433        ;;
9434      esac
9435      ;;
9436
9437    beos*)
9438      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439	allow_undefined_flag=unsupported
9440	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9441	# support --undefined.  This deserves some investigation.  FIXME
9442	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9443      else
9444	ld_shlibs=no
9445      fi
9446      ;;
9447
9448    cygwin* | mingw* | pw32* | cegcc*)
9449      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9450      # as there is no search path for DLLs.
9451      hardcode_libdir_flag_spec='-L$libdir'
9452      export_dynamic_flag_spec='$wl--export-all-symbols'
9453      allow_undefined_flag=unsupported
9454      always_export_symbols=no
9455      enable_shared_with_static_runtimes=yes
9456      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'
9457      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9458
9459      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9460        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9461	# If the export-symbols file already is a .def file, use it as
9462	# is; otherwise, prepend EXPORTS...
9463	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9464          cp $export_symbols $output_objdir/$soname.def;
9465        else
9466          echo EXPORTS > $output_objdir/$soname.def;
9467          cat $export_symbols >> $output_objdir/$soname.def;
9468        fi~
9469        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470      else
9471	ld_shlibs=no
9472      fi
9473      ;;
9474
9475    haiku*)
9476      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9477      link_all_deplibs=yes
9478      ;;
9479
9480    os2*)
9481      hardcode_libdir_flag_spec='-L$libdir'
9482      hardcode_minus_L=yes
9483      allow_undefined_flag=unsupported
9484      shrext_cmds=.dll
9485      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9486	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9487	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9488	$ECHO EXPORTS >> $output_objdir/$libname.def~
9489	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9490	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9491	emximp -o $lib $output_objdir/$libname.def'
9492      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9493	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9494	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9495	$ECHO EXPORTS >> $output_objdir/$libname.def~
9496	prefix_cmds="$SED"~
9497	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9498	  prefix_cmds="$prefix_cmds -e 1d";
9499	fi~
9500	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9501	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9502	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9503	emximp -o $lib $output_objdir/$libname.def'
9504      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9505      enable_shared_with_static_runtimes=yes
9506      ;;
9507
9508    interix[3-9]*)
9509      hardcode_direct=no
9510      hardcode_shlibpath_var=no
9511      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9512      export_dynamic_flag_spec='$wl-E'
9513      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9514      # Instead, shared libraries are loaded at an image base (0x10000000 by
9515      # default) and relocated if they conflict, which is a slow very memory
9516      # consuming and fragmenting process.  To avoid this, we pick a random,
9517      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9518      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9519      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9520      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'
9521      ;;
9522
9523    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9524      tmp_diet=no
9525      if test linux-dietlibc = "$host_os"; then
9526	case $cc_basename in
9527	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9528	esac
9529      fi
9530      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9531	 && test no = "$tmp_diet"
9532      then
9533	tmp_addflag=' $pic_flag'
9534	tmp_sharedflag='-shared'
9535	case $cc_basename,$host_cpu in
9536        pgcc*)				# Portland Group C compiler
9537	  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'
9538	  tmp_addflag=' $pic_flag'
9539	  ;;
9540	pgf77* | pgf90* | pgf95* | pgfortran*)
9541					# Portland Group f77 and f90 compilers
9542	  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'
9543	  tmp_addflag=' $pic_flag -Mnomain' ;;
9544	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9545	  tmp_addflag=' -i_dynamic' ;;
9546	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9547	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9548	ifc* | ifort*)			# Intel Fortran compiler
9549	  tmp_addflag=' -nofor_main' ;;
9550	lf95*)				# Lahey Fortran 8.1
9551	  whole_archive_flag_spec=
9552	  tmp_sharedflag='--shared' ;;
9553        nagfor*)                        # NAGFOR 5.3
9554          tmp_sharedflag='-Wl,-shared' ;;
9555	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9556	  tmp_sharedflag='-qmkshrobj'
9557	  tmp_addflag= ;;
9558	nvcc*)	# Cuda Compiler Driver 2.2
9559	  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'
9560	  compiler_needs_object=yes
9561	  ;;
9562	esac
9563	case `$CC -V 2>&1 | sed 5q` in
9564	*Sun\ C*)			# Sun C 5.9
9565	  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'
9566	  compiler_needs_object=yes
9567	  tmp_sharedflag='-G' ;;
9568	*Sun\ F*)			# Sun Fortran 8.3
9569	  tmp_sharedflag='-G' ;;
9570	esac
9571	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9572
9573        if test yes = "$supports_anon_versioning"; then
9574          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9575            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9576            echo "local: *; };" >> $output_objdir/$libname.ver~
9577            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9578        fi
9579
9580	case $cc_basename in
9581	tcc*)
9582	  export_dynamic_flag_spec='-rdynamic'
9583	  ;;
9584	xlf* | bgf* | bgxlf* | mpixlf*)
9585	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9586	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9587	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9588	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9589	  if test yes = "$supports_anon_versioning"; then
9590	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9591              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9592              echo "local: *; };" >> $output_objdir/$libname.ver~
9593              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9594	  fi
9595	  ;;
9596	esac
9597      else
9598        ld_shlibs=no
9599      fi
9600      ;;
9601
9602    netbsd*)
9603      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9604	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9605	wlarc=
9606      else
9607	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9608	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9609      fi
9610      ;;
9611
9612    solaris*)
9613      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9614	ld_shlibs=no
9615	cat <<_LT_EOF 1>&2
9616
9617*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9618*** create shared libraries on Solaris systems.  Therefore, libtool
9619*** is disabling shared libraries support.  We urge you to upgrade GNU
9620*** binutils to release 2.9.1 or newer.  Another option is to modify
9621*** your PATH or compiler configuration so that the native linker is
9622*** used, and then restart.
9623
9624_LT_EOF
9625      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9626	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9627	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9628      else
9629	ld_shlibs=no
9630      fi
9631      ;;
9632
9633    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9634      case `$LD -v 2>&1` in
9635        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9636	ld_shlibs=no
9637	cat <<_LT_EOF 1>&2
9638
9639*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9640*** reliably create shared libraries on SCO systems.  Therefore, libtool
9641*** is disabling shared libraries support.  We urge you to upgrade GNU
9642*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9643*** your PATH or compiler configuration so that the native linker is
9644*** used, and then restart.
9645
9646_LT_EOF
9647	;;
9648	*)
9649	  # For security reasons, it is highly recommended that you always
9650	  # use absolute paths for naming shared libraries, and exclude the
9651	  # DT_RUNPATH tag from executables and libraries.  But doing so
9652	  # requires that you compile everything twice, which is a pain.
9653	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9655	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9657	  else
9658	    ld_shlibs=no
9659	  fi
9660	;;
9661      esac
9662      ;;
9663
9664    sunos4*)
9665      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666      wlarc=
9667      hardcode_direct=yes
9668      hardcode_shlibpath_var=no
9669      ;;
9670
9671    *)
9672      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9673	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9674	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9675      else
9676	ld_shlibs=no
9677      fi
9678      ;;
9679    esac
9680
9681    if test no = "$ld_shlibs"; then
9682      runpath_var=
9683      hardcode_libdir_flag_spec=
9684      export_dynamic_flag_spec=
9685      whole_archive_flag_spec=
9686    fi
9687  else
9688    # PORTME fill in a description of your system's linker (not GNU ld)
9689    case $host_os in
9690    aix3*)
9691      allow_undefined_flag=unsupported
9692      always_export_symbols=yes
9693      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'
9694      # Note: this linker hardcodes the directories in LIBPATH if there
9695      # are no directories specified by -L.
9696      hardcode_minus_L=yes
9697      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9698	# Neither direct hardcoding nor static linking is supported with a
9699	# broken collect2.
9700	hardcode_direct=unsupported
9701      fi
9702      ;;
9703
9704    aix[4-9]*)
9705      if test ia64 = "$host_cpu"; then
9706	# On IA64, the linker does run time linking by default, so we don't
9707	# have to do anything special.
9708	aix_use_runtimelinking=no
9709	exp_sym_flag='-Bexport'
9710	no_entry_flag=
9711      else
9712	# If we're using GNU nm, then we don't want the "-C" option.
9713	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9714	# Without the "-l" option, or with the "-B" option, AIX nm treats
9715	# weak defined symbols like other global defined symbols, whereas
9716	# GNU nm marks them as "W".
9717	# While the 'weak' keyword is ignored in the Export File, we need
9718	# it in the Import File for the 'aix-soname' feature, so we have
9719	# to replace the "-B" option with "-P" for AIX nm.
9720	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9721	  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'
9722	else
9723	  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'
9724	fi
9725	aix_use_runtimelinking=no
9726
9727	# Test if we are trying to use run time linking or normal
9728	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9729	# have runtime linking enabled, and use it for executables.
9730	# For shared libraries, we enable/disable runtime linking
9731	# depending on the kind of the shared library created -
9732	# when "with_aix_soname,aix_use_runtimelinking" is:
9733	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9734	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9735	#            lib.a           static archive
9736	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9737	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9738	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9739	#            lib.a(lib.so.V) shared, rtl:no
9740	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9741	#            lib.a           static archive
9742	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9743	  for ld_flag in $LDFLAGS; do
9744	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9745	    aix_use_runtimelinking=yes
9746	    break
9747	  fi
9748	  done
9749	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9750	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9751	    # so we don't have lib.a shared libs to link our executables.
9752	    # We have to force runtime linking in this case.
9753	    aix_use_runtimelinking=yes
9754	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9755	  fi
9756	  ;;
9757	esac
9758
9759	exp_sym_flag='-bexport'
9760	no_entry_flag='-bnoentry'
9761      fi
9762
9763      # When large executables or shared objects are built, AIX ld can
9764      # have problems creating the table of contents.  If linking a library
9765      # or program results in "error TOC overflow" add -mminimal-toc to
9766      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9767      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9768
9769      archive_cmds=''
9770      hardcode_direct=yes
9771      hardcode_direct_absolute=yes
9772      hardcode_libdir_separator=':'
9773      link_all_deplibs=yes
9774      file_list_spec='$wl-f,'
9775      case $with_aix_soname,$aix_use_runtimelinking in
9776      aix,*) ;; # traditional, no import file
9777      svr4,* | *,yes) # use import file
9778	# The Import File defines what to hardcode.
9779	hardcode_direct=no
9780	hardcode_direct_absolute=no
9781	;;
9782      esac
9783
9784      if test yes = "$GCC"; then
9785	case $host_os in aix4.[012]|aix4.[012].*)
9786	# We only want to do this on AIX 4.2 and lower, the check
9787	# below for broken collect2 doesn't work under 4.3+
9788	  collect2name=`$CC -print-prog-name=collect2`
9789	  if test -f "$collect2name" &&
9790	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9791	  then
9792	  # We have reworked collect2
9793	  :
9794	  else
9795	  # We have old collect2
9796	  hardcode_direct=unsupported
9797	  # It fails to find uninstalled libraries when the uninstalled
9798	  # path is not listed in the libpath.  Setting hardcode_minus_L
9799	  # to unsupported forces relinking
9800	  hardcode_minus_L=yes
9801	  hardcode_libdir_flag_spec='-L$libdir'
9802	  hardcode_libdir_separator=
9803	  fi
9804	  ;;
9805	esac
9806	shared_flag='-shared'
9807	if test yes = "$aix_use_runtimelinking"; then
9808	  shared_flag="$shared_flag "'$wl-G'
9809	fi
9810	# Need to ensure runtime linking is disabled for the traditional
9811	# shared library, or the linker may eventually find shared libraries
9812	# /with/ Import File - we do not want to mix them.
9813	shared_flag_aix='-shared'
9814	shared_flag_svr4='-shared $wl-G'
9815      else
9816	# not using gcc
9817	if test ia64 = "$host_cpu"; then
9818	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9819	# chokes on -Wl,-G. The following line is correct:
9820	  shared_flag='-G'
9821	else
9822	  if test yes = "$aix_use_runtimelinking"; then
9823	    shared_flag='$wl-G'
9824	  else
9825	    shared_flag='$wl-bM:SRE'
9826	  fi
9827	  shared_flag_aix='$wl-bM:SRE'
9828	  shared_flag_svr4='$wl-G'
9829	fi
9830      fi
9831
9832      export_dynamic_flag_spec='$wl-bexpall'
9833      # It seems that -bexpall does not export symbols beginning with
9834      # underscore (_), so it is better to generate a list of symbols to export.
9835      always_export_symbols=yes
9836      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9837	# Warning - without using the other runtime loading flags (-brtl),
9838	# -berok will link without error, but may produce a broken library.
9839	allow_undefined_flag='-berok'
9840        # Determine the default libpath from the value encoded in an
9841        # empty executable.
9842        if test set = "${lt_cv_aix_libpath+set}"; then
9843  aix_libpath=$lt_cv_aix_libpath
9844else
9845  if ${lt_cv_aix_libpath_+:} false; then :
9846  $as_echo_n "(cached) " >&6
9847else
9848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850
9851int
9852main ()
9853{
9854
9855  ;
9856  return 0;
9857}
9858_ACEOF
9859if ac_fn_c_try_link "$LINENO"; then :
9860
9861  lt_aix_libpath_sed='
9862      /Import File Strings/,/^$/ {
9863	  /^0/ {
9864	      s/^0  *\([^ ]*\) *$/\1/
9865	      p
9866	  }
9867      }'
9868  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869  # Check for a 64-bit object if we didn't find anything.
9870  if test -z "$lt_cv_aix_libpath_"; then
9871    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872  fi
9873fi
9874rm -f core conftest.err conftest.$ac_objext \
9875    conftest$ac_exeext conftest.$ac_ext
9876  if test -z "$lt_cv_aix_libpath_"; then
9877    lt_cv_aix_libpath_=/usr/lib:/lib
9878  fi
9879
9880fi
9881
9882  aix_libpath=$lt_cv_aix_libpath_
9883fi
9884
9885        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9886        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
9887      else
9888	if test ia64 = "$host_cpu"; then
9889	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9890	  allow_undefined_flag="-z nodefs"
9891	  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"
9892	else
9893	 # Determine the default libpath from the value encoded in an
9894	 # empty executable.
9895	 if test set = "${lt_cv_aix_libpath+set}"; then
9896  aix_libpath=$lt_cv_aix_libpath
9897else
9898  if ${lt_cv_aix_libpath_+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903
9904int
9905main ()
9906{
9907
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913
9914  lt_aix_libpath_sed='
9915      /Import File Strings/,/^$/ {
9916	  /^0/ {
9917	      s/^0  *\([^ ]*\) *$/\1/
9918	      p
9919	  }
9920      }'
9921  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922  # Check for a 64-bit object if we didn't find anything.
9923  if test -z "$lt_cv_aix_libpath_"; then
9924    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925  fi
9926fi
9927rm -f core conftest.err conftest.$ac_objext \
9928    conftest$ac_exeext conftest.$ac_ext
9929  if test -z "$lt_cv_aix_libpath_"; then
9930    lt_cv_aix_libpath_=/usr/lib:/lib
9931  fi
9932
9933fi
9934
9935  aix_libpath=$lt_cv_aix_libpath_
9936fi
9937
9938	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9939	  # Warning - without using the other run time loading flags,
9940	  # -berok will link without error, but may produce a broken library.
9941	  no_undefined_flag=' $wl-bernotok'
9942	  allow_undefined_flag=' $wl-berok'
9943	  if test yes = "$with_gnu_ld"; then
9944	    # We only use this code for GNU lds that support --whole-archive.
9945	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9946	  else
9947	    # Exported symbols can be pulled into shared objects from archives
9948	    whole_archive_flag_spec='$convenience'
9949	  fi
9950	  archive_cmds_need_lc=yes
9951	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9952	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9953	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9954	  if test svr4 != "$with_aix_soname"; then
9955	    # This is similar to how AIX traditionally builds its shared libraries.
9956	    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'
9957	  fi
9958	  if test aix != "$with_aix_soname"; then
9959	    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'
9960	  else
9961	    # used by -dlpreopen to get the symbols
9962	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9963	  fi
9964	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9965	fi
9966      fi
9967      ;;
9968
9969    amigaos*)
9970      case $host_cpu in
9971      powerpc)
9972            # see comment about AmigaOS4 .so support
9973            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9974            archive_expsym_cmds=''
9975        ;;
9976      m68k)
9977            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)'
9978            hardcode_libdir_flag_spec='-L$libdir'
9979            hardcode_minus_L=yes
9980        ;;
9981      esac
9982      ;;
9983
9984    bsdi[45]*)
9985      export_dynamic_flag_spec=-rdynamic
9986      ;;
9987
9988    cygwin* | mingw* | pw32* | cegcc*)
9989      # When not using gcc, we currently assume that we are using
9990      # Microsoft Visual C++.
9991      # hardcode_libdir_flag_spec is actually meaningless, as there is
9992      # no search path for DLLs.
9993      case $cc_basename in
9994      cl*)
9995	# Native MSVC
9996	hardcode_libdir_flag_spec=' '
9997	allow_undefined_flag=unsupported
9998	always_export_symbols=yes
9999	file_list_spec='@'
10000	# Tell ltmain to make .lib files, not .a files.
10001	libext=lib
10002	# Tell ltmain to make .dll files, not .so files.
10003	shrext_cmds=.dll
10004	# FIXME: Setting linknames here is a bad hack.
10005	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10006	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10007            cp "$export_symbols" "$output_objdir/$soname.def";
10008            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10009          else
10010            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10011          fi~
10012          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10013          linknames='
10014	# The linker will not automatically build a static lib if we build a DLL.
10015	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10016	enable_shared_with_static_runtimes=yes
10017	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10018	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10019	# Don't use ranlib
10020	old_postinstall_cmds='chmod 644 $oldlib'
10021	postlink_cmds='lt_outputfile="@OUTPUT@"~
10022          lt_tool_outputfile="@TOOL_OUTPUT@"~
10023          case $lt_outputfile in
10024            *.exe|*.EXE) ;;
10025            *)
10026              lt_outputfile=$lt_outputfile.exe
10027              lt_tool_outputfile=$lt_tool_outputfile.exe
10028              ;;
10029          esac~
10030          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10031            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10032            $RM "$lt_outputfile.manifest";
10033          fi'
10034	;;
10035      *)
10036	# Assume MSVC wrapper
10037	hardcode_libdir_flag_spec=' '
10038	allow_undefined_flag=unsupported
10039	# Tell ltmain to make .lib files, not .a files.
10040	libext=lib
10041	# Tell ltmain to make .dll files, not .so files.
10042	shrext_cmds=.dll
10043	# FIXME: Setting linknames here is a bad hack.
10044	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10045	# The linker will automatically build a .lib file if we build a DLL.
10046	old_archive_from_new_cmds='true'
10047	# FIXME: Should let the user specify the lib program.
10048	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10049	enable_shared_with_static_runtimes=yes
10050	;;
10051      esac
10052      ;;
10053
10054    darwin* | rhapsody*)
10055
10056
10057  archive_cmds_need_lc=no
10058  hardcode_direct=no
10059  hardcode_automatic=yes
10060  hardcode_shlibpath_var=unsupported
10061  if test yes = "$lt_cv_ld_force_load"; then
10062    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\"`'
10063
10064  else
10065    whole_archive_flag_spec=''
10066  fi
10067  link_all_deplibs=yes
10068  allow_undefined_flag=$_lt_dar_allow_undefined
10069  case $cc_basename in
10070     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10071     *) _lt_dar_can_shared=$GCC ;;
10072  esac
10073  if test yes = "$_lt_dar_can_shared"; then
10074    output_verbose_link_cmd=func_echo_all
10075    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10076    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10077    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"
10078    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"
10079
10080  else
10081  ld_shlibs=no
10082  fi
10083
10084      ;;
10085
10086    dgux*)
10087      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088      hardcode_libdir_flag_spec='-L$libdir'
10089      hardcode_shlibpath_var=no
10090      ;;
10091
10092    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10093    # support.  Future versions do this automatically, but an explicit c++rt0.o
10094    # does not break anything, and helps significantly (at the cost of a little
10095    # extra space).
10096    freebsd2.2*)
10097      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10098      hardcode_libdir_flag_spec='-R$libdir'
10099      hardcode_direct=yes
10100      hardcode_shlibpath_var=no
10101      ;;
10102
10103    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10104    freebsd2.*)
10105      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10106      hardcode_direct=yes
10107      hardcode_minus_L=yes
10108      hardcode_shlibpath_var=no
10109      ;;
10110
10111    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10112    freebsd* | dragonfly*)
10113      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10114      hardcode_libdir_flag_spec='-R$libdir'
10115      hardcode_direct=yes
10116      hardcode_shlibpath_var=no
10117      ;;
10118
10119    hpux9*)
10120      if test yes = "$GCC"; then
10121	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'
10122      else
10123	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'
10124      fi
10125      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10126      hardcode_libdir_separator=:
10127      hardcode_direct=yes
10128
10129      # hardcode_minus_L: Not really in the search PATH,
10130      # but as the default location of the library.
10131      hardcode_minus_L=yes
10132      export_dynamic_flag_spec='$wl-E'
10133      ;;
10134
10135    hpux10*)
10136      if test yes,no = "$GCC,$with_gnu_ld"; then
10137	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10138      else
10139	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10140      fi
10141      if test no = "$with_gnu_ld"; then
10142	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10143	hardcode_libdir_separator=:
10144	hardcode_direct=yes
10145	hardcode_direct_absolute=yes
10146	export_dynamic_flag_spec='$wl-E'
10147	# hardcode_minus_L: Not really in the search PATH,
10148	# but as the default location of the library.
10149	hardcode_minus_L=yes
10150      fi
10151      ;;
10152
10153    hpux11*)
10154      if test yes,no = "$GCC,$with_gnu_ld"; then
10155	case $host_cpu in
10156	hppa*64*)
10157	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10158	  ;;
10159	ia64*)
10160	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10161	  ;;
10162	*)
10163	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10164	  ;;
10165	esac
10166      else
10167	case $host_cpu in
10168	hppa*64*)
10169	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10170	  ;;
10171	ia64*)
10172	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10173	  ;;
10174	*)
10175
10176	  # Older versions of the 11.00 compiler do not understand -b yet
10177	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10178	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10179$as_echo_n "checking if $CC understands -b... " >&6; }
10180if ${lt_cv_prog_compiler__b+:} false; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  lt_cv_prog_compiler__b=no
10184   save_LDFLAGS=$LDFLAGS
10185   LDFLAGS="$LDFLAGS -b"
10186   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10187   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10188     # The linker can only warn and ignore the option if not recognized
10189     # So say no if there are warnings
10190     if test -s conftest.err; then
10191       # Append any errors to the config.log.
10192       cat conftest.err 1>&5
10193       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10194       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10195       if diff conftest.exp conftest.er2 >/dev/null; then
10196         lt_cv_prog_compiler__b=yes
10197       fi
10198     else
10199       lt_cv_prog_compiler__b=yes
10200     fi
10201   fi
10202   $RM -r conftest*
10203   LDFLAGS=$save_LDFLAGS
10204
10205fi
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10207$as_echo "$lt_cv_prog_compiler__b" >&6; }
10208
10209if test yes = "$lt_cv_prog_compiler__b"; then
10210    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10211else
10212    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10213fi
10214
10215	  ;;
10216	esac
10217      fi
10218      if test no = "$with_gnu_ld"; then
10219	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10220	hardcode_libdir_separator=:
10221
10222	case $host_cpu in
10223	hppa*64*|ia64*)
10224	  hardcode_direct=no
10225	  hardcode_shlibpath_var=no
10226	  ;;
10227	*)
10228	  hardcode_direct=yes
10229	  hardcode_direct_absolute=yes
10230	  export_dynamic_flag_spec='$wl-E'
10231
10232	  # hardcode_minus_L: Not really in the search PATH,
10233	  # but as the default location of the library.
10234	  hardcode_minus_L=yes
10235	  ;;
10236	esac
10237      fi
10238      ;;
10239
10240    irix5* | irix6* | nonstopux*)
10241      if test yes = "$GCC"; then
10242	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'
10243	# Try to use the -exported_symbol ld option, if it does not
10244	# work, assume that -exports_file does not work either and
10245	# implicitly export all symbols.
10246	# This should be the same for all languages, so no per-tag cache variable.
10247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10248$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10249if ${lt_cv_irix_exported_symbol+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  save_LDFLAGS=$LDFLAGS
10253	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10254	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h.  */
10256int foo (void) { return 0; }
10257_ACEOF
10258if ac_fn_c_try_link "$LINENO"; then :
10259  lt_cv_irix_exported_symbol=yes
10260else
10261  lt_cv_irix_exported_symbol=no
10262fi
10263rm -f core conftest.err conftest.$ac_objext \
10264    conftest$ac_exeext conftest.$ac_ext
10265           LDFLAGS=$save_LDFLAGS
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10268$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10269	if test yes = "$lt_cv_irix_exported_symbol"; then
10270          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'
10271	fi
10272      else
10273	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'
10274	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'
10275      fi
10276      archive_cmds_need_lc='no'
10277      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10278      hardcode_libdir_separator=:
10279      inherit_rpath=yes
10280      link_all_deplibs=yes
10281      ;;
10282
10283    linux*)
10284      case $cc_basename in
10285      tcc*)
10286	# Fabrice Bellard et al's Tiny C Compiler
10287	ld_shlibs=yes
10288	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10289	;;
10290      esac
10291      ;;
10292
10293    netbsd*)
10294      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10295	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10296      else
10297	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10298      fi
10299      hardcode_libdir_flag_spec='-R$libdir'
10300      hardcode_direct=yes
10301      hardcode_shlibpath_var=no
10302      ;;
10303
10304    newsos6)
10305      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306      hardcode_direct=yes
10307      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10308      hardcode_libdir_separator=:
10309      hardcode_shlibpath_var=no
10310      ;;
10311
10312    *nto* | *qnx*)
10313      ;;
10314
10315    openbsd* | bitrig*)
10316      if test -f /usr/libexec/ld.so; then
10317	hardcode_direct=yes
10318	hardcode_shlibpath_var=no
10319	hardcode_direct_absolute=yes
10320	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10321	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10322	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10323	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10324	  export_dynamic_flag_spec='$wl-E'
10325	else
10326	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10327	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10328	fi
10329      else
10330	ld_shlibs=no
10331      fi
10332      ;;
10333
10334    os2*)
10335      hardcode_libdir_flag_spec='-L$libdir'
10336      hardcode_minus_L=yes
10337      allow_undefined_flag=unsupported
10338      shrext_cmds=.dll
10339      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10340	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10341	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10342	$ECHO EXPORTS >> $output_objdir/$libname.def~
10343	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10344	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10345	emximp -o $lib $output_objdir/$libname.def'
10346      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10347	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10348	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10349	$ECHO EXPORTS >> $output_objdir/$libname.def~
10350	prefix_cmds="$SED"~
10351	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10352	  prefix_cmds="$prefix_cmds -e 1d";
10353	fi~
10354	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10355	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10356	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10357	emximp -o $lib $output_objdir/$libname.def'
10358      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10359      enable_shared_with_static_runtimes=yes
10360      ;;
10361
10362    osf3*)
10363      if test yes = "$GCC"; then
10364	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10365	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'
10366      else
10367	allow_undefined_flag=' -expect_unresolved \*'
10368	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'
10369      fi
10370      archive_cmds_need_lc='no'
10371      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10372      hardcode_libdir_separator=:
10373      ;;
10374
10375    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10376      if test yes = "$GCC"; then
10377	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10378	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'
10379	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10380      else
10381	allow_undefined_flag=' -expect_unresolved \*'
10382	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'
10383	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~
10384          $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'
10385
10386	# Both c and cxx compiler support -rpath directly
10387	hardcode_libdir_flag_spec='-rpath $libdir'
10388      fi
10389      archive_cmds_need_lc='no'
10390      hardcode_libdir_separator=:
10391      ;;
10392
10393    solaris*)
10394      no_undefined_flag=' -z defs'
10395      if test yes = "$GCC"; then
10396	wlarc='$wl'
10397	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10398	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10399          $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'
10400      else
10401	case `$CC -V 2>&1` in
10402	*"Compilers 5.0"*)
10403	  wlarc=''
10404	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10406            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10407	  ;;
10408	*)
10409	  wlarc='$wl'
10410	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10411	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10412            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10413	  ;;
10414	esac
10415      fi
10416      hardcode_libdir_flag_spec='-R$libdir'
10417      hardcode_shlibpath_var=no
10418      case $host_os in
10419      solaris2.[0-5] | solaris2.[0-5].*) ;;
10420      *)
10421	# The compiler driver will combine and reorder linker options,
10422	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10423	# but is careful enough not to reorder.
10424	# Supported since Solaris 2.6 (maybe 2.5.1?)
10425	if test yes = "$GCC"; then
10426	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10427	else
10428	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10429	fi
10430	;;
10431      esac
10432      link_all_deplibs=yes
10433      ;;
10434
10435    sunos4*)
10436      if test sequent = "$host_vendor"; then
10437	# Use $CC to link under sequent, because it throws in some extra .o
10438	# files that make .init and .fini sections work.
10439	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10440      else
10441	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10442      fi
10443      hardcode_libdir_flag_spec='-L$libdir'
10444      hardcode_direct=yes
10445      hardcode_minus_L=yes
10446      hardcode_shlibpath_var=no
10447      ;;
10448
10449    sysv4)
10450      case $host_vendor in
10451	sni)
10452	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453	  hardcode_direct=yes # is this really true???
10454	;;
10455	siemens)
10456	  ## LD is ld it makes a PLAMLIB
10457	  ## CC just makes a GrossModule.
10458	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10459	  reload_cmds='$CC -r -o $output$reload_objs'
10460	  hardcode_direct=no
10461        ;;
10462	motorola)
10463	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10465	;;
10466      esac
10467      runpath_var='LD_RUN_PATH'
10468      hardcode_shlibpath_var=no
10469      ;;
10470
10471    sysv4.3*)
10472      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473      hardcode_shlibpath_var=no
10474      export_dynamic_flag_spec='-Bexport'
10475      ;;
10476
10477    sysv4*MP*)
10478      if test -d /usr/nec; then
10479	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480	hardcode_shlibpath_var=no
10481	runpath_var=LD_RUN_PATH
10482	hardcode_runpath_var=yes
10483	ld_shlibs=yes
10484      fi
10485      ;;
10486
10487    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10488      no_undefined_flag='$wl-z,text'
10489      archive_cmds_need_lc=no
10490      hardcode_shlibpath_var=no
10491      runpath_var='LD_RUN_PATH'
10492
10493      if test yes = "$GCC"; then
10494	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10495	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496      else
10497	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499      fi
10500      ;;
10501
10502    sysv5* | sco3.2v5* | sco5v6*)
10503      # Note: We CANNOT use -z defs as we might desire, because we do not
10504      # link with -lc, and that would cause any symbols used from libc to
10505      # always be unresolved, which means just about no library would
10506      # ever link correctly.  If we're not using GNU ld we use -z text
10507      # though, which does catch some bad symbols but isn't as heavy-handed
10508      # as -z defs.
10509      no_undefined_flag='$wl-z,text'
10510      allow_undefined_flag='$wl-z,nodefs'
10511      archive_cmds_need_lc=no
10512      hardcode_shlibpath_var=no
10513      hardcode_libdir_flag_spec='$wl-R,$libdir'
10514      hardcode_libdir_separator=':'
10515      link_all_deplibs=yes
10516      export_dynamic_flag_spec='$wl-Bexport'
10517      runpath_var='LD_RUN_PATH'
10518
10519      if test yes = "$GCC"; then
10520	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522      else
10523	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10524	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525      fi
10526      ;;
10527
10528    uts4*)
10529      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530      hardcode_libdir_flag_spec='-L$libdir'
10531      hardcode_shlibpath_var=no
10532      ;;
10533
10534    *)
10535      ld_shlibs=no
10536      ;;
10537    esac
10538
10539    if test sni = "$host_vendor"; then
10540      case $host in
10541      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10542	export_dynamic_flag_spec='$wl-Blargedynsym'
10543	;;
10544      esac
10545    fi
10546  fi
10547
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10549$as_echo "$ld_shlibs" >&6; }
10550test no = "$ld_shlibs" && can_build_shared=no
10551
10552with_gnu_ld=$with_gnu_ld
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568#
10569# Do we need to explicitly link libc?
10570#
10571case "x$archive_cmds_need_lc" in
10572x|xyes)
10573  # Assume -lc should be added
10574  archive_cmds_need_lc=yes
10575
10576  if test yes,yes = "$GCC,$enable_shared"; then
10577    case $archive_cmds in
10578    *'~'*)
10579      # FIXME: we may have to deal with multi-command sequences.
10580      ;;
10581    '$CC '*)
10582      # Test whether the compiler implicitly links with -lc since on some
10583      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10584      # to ld, don't add -lc before -lgcc.
10585      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10586$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10587if ${lt_cv_archive_cmds_need_lc+:} false; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  $RM conftest*
10591	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10592
10593	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10594  (eval $ac_compile) 2>&5
10595  ac_status=$?
10596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597  test $ac_status = 0; } 2>conftest.err; then
10598	  soname=conftest
10599	  lib=conftest
10600	  libobjs=conftest.$ac_objext
10601	  deplibs=
10602	  wl=$lt_prog_compiler_wl
10603	  pic_flag=$lt_prog_compiler_pic
10604	  compiler_flags=-v
10605	  linker_flags=-v
10606	  verstring=
10607	  output_objdir=.
10608	  libname=conftest
10609	  lt_save_allow_undefined_flag=$allow_undefined_flag
10610	  allow_undefined_flag=
10611	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10612  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10613  ac_status=$?
10614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10615  test $ac_status = 0; }
10616	  then
10617	    lt_cv_archive_cmds_need_lc=no
10618	  else
10619	    lt_cv_archive_cmds_need_lc=yes
10620	  fi
10621	  allow_undefined_flag=$lt_save_allow_undefined_flag
10622	else
10623	  cat conftest.err 1>&5
10624	fi
10625	$RM conftest*
10626
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10629$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10630      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10631      ;;
10632    esac
10633  fi
10634  ;;
10635esac
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10789$as_echo_n "checking dynamic linker characteristics... " >&6; }
10790
10791if test yes = "$GCC"; then
10792  case $host_os in
10793    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10794    *) lt_awk_arg='/^libraries:/' ;;
10795  esac
10796  case $host_os in
10797    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10798    *) lt_sed_strip_eq='s|=/|/|g' ;;
10799  esac
10800  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10801  case $lt_search_path_spec in
10802  *\;*)
10803    # if the path contains ";" then we assume it to be the separator
10804    # otherwise default to the standard path separator (i.e. ":") - it is
10805    # assumed that no part of a normal pathname contains ";" but that should
10806    # okay in the real world where ";" in dirpaths is itself problematic.
10807    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10808    ;;
10809  *)
10810    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10811    ;;
10812  esac
10813  # Ok, now we have the path, separated by spaces, we can step through it
10814  # and add multilib dir if necessary...
10815  lt_tmp_lt_search_path_spec=
10816  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10817  # ...but if some path component already ends with the multilib dir we assume
10818  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10819  case "$lt_multi_os_dir; $lt_search_path_spec " in
10820  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10821    lt_multi_os_dir=
10822    ;;
10823  esac
10824  for lt_sys_path in $lt_search_path_spec; do
10825    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10826      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10827    elif test -n "$lt_multi_os_dir"; then
10828      test -d "$lt_sys_path" && \
10829	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10830    fi
10831  done
10832  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10833BEGIN {RS = " "; FS = "/|\n";} {
10834  lt_foo = "";
10835  lt_count = 0;
10836  for (lt_i = NF; lt_i > 0; lt_i--) {
10837    if ($lt_i != "" && $lt_i != ".") {
10838      if ($lt_i == "..") {
10839        lt_count++;
10840      } else {
10841        if (lt_count == 0) {
10842          lt_foo = "/" $lt_i lt_foo;
10843        } else {
10844          lt_count--;
10845        }
10846      }
10847    }
10848  }
10849  if (lt_foo != "") { lt_freq[lt_foo]++; }
10850  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10851}'`
10852  # AWK program above erroneously prepends '/' to C:/dos/paths
10853  # for these hosts.
10854  case $host_os in
10855    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10856      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10857  esac
10858  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10859else
10860  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10861fi
10862library_names_spec=
10863libname_spec='lib$name'
10864soname_spec=
10865shrext_cmds=.so
10866postinstall_cmds=
10867postuninstall_cmds=
10868finish_cmds=
10869finish_eval=
10870shlibpath_var=
10871shlibpath_overrides_runpath=unknown
10872version_type=none
10873dynamic_linker="$host_os ld.so"
10874sys_lib_dlsearch_path_spec="/lib /usr/lib"
10875need_lib_prefix=unknown
10876hardcode_into_libs=no
10877
10878# when you set need_version to no, make sure it does not cause -set_version
10879# flags to be left without arguments
10880need_version=unknown
10881
10882
10883
10884case $host_os in
10885aix3*)
10886  version_type=linux # correct to gnu/linux during the next big refactor
10887  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10888  shlibpath_var=LIBPATH
10889
10890  # AIX 3 has no versioning support, so we append a major version to the name.
10891  soname_spec='$libname$release$shared_ext$major'
10892  ;;
10893
10894aix[4-9]*)
10895  version_type=linux # correct to gnu/linux during the next big refactor
10896  need_lib_prefix=no
10897  need_version=no
10898  hardcode_into_libs=yes
10899  if test ia64 = "$host_cpu"; then
10900    # AIX 5 supports IA64
10901    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10902    shlibpath_var=LD_LIBRARY_PATH
10903  else
10904    # With GCC up to 2.95.x, collect2 would create an import file
10905    # for dependence libraries.  The import file would start with
10906    # the line '#! .'.  This would cause the generated library to
10907    # depend on '.', always an invalid library.  This was fixed in
10908    # development snapshots of GCC prior to 3.0.
10909    case $host_os in
10910      aix4 | aix4.[01] | aix4.[01].*)
10911      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10912	   echo ' yes '
10913	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10914	:
10915      else
10916	can_build_shared=no
10917      fi
10918      ;;
10919    esac
10920    # Using Import Files as archive members, it is possible to support
10921    # filename-based versioning of shared library archives on AIX. While
10922    # this would work for both with and without runtime linking, it will
10923    # prevent static linking of such archives. So we do filename-based
10924    # shared library versioning with .so extension only, which is used
10925    # when both runtime linking and shared linking is enabled.
10926    # Unfortunately, runtime linking may impact performance, so we do
10927    # not want this to be the default eventually. Also, we use the
10928    # versioned .so libs for executables only if there is the -brtl
10929    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10930    # To allow for filename-based versioning support, we need to create
10931    # libNAME.so.V as an archive file, containing:
10932    # *) an Import File, referring to the versioned filename of the
10933    #    archive as well as the shared archive member, telling the
10934    #    bitwidth (32 or 64) of that shared object, and providing the
10935    #    list of exported symbols of that shared object, eventually
10936    #    decorated with the 'weak' keyword
10937    # *) the shared object with the F_LOADONLY flag set, to really avoid
10938    #    it being seen by the linker.
10939    # At run time we better use the real file rather than another symlink,
10940    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10941
10942    case $with_aix_soname,$aix_use_runtimelinking in
10943    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10944    # soname into executable. Probably we can add versioning support to
10945    # collect2, so additional links can be useful in future.
10946    aix,yes) # traditional libtool
10947      dynamic_linker='AIX unversionable lib.so'
10948      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10949      # instead of lib<name>.a to let people know that these are not
10950      # typical AIX shared libraries.
10951      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952      ;;
10953    aix,no) # traditional AIX only
10954      dynamic_linker='AIX lib.a(lib.so.V)'
10955      # We preserve .a as extension for shared libraries through AIX4.2
10956      # and later when we are not doing run time linking.
10957      library_names_spec='$libname$release.a $libname.a'
10958      soname_spec='$libname$release$shared_ext$major'
10959      ;;
10960    svr4,*) # full svr4 only
10961      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10962      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10963      # We do not specify a path in Import Files, so LIBPATH fires.
10964      shlibpath_overrides_runpath=yes
10965      ;;
10966    *,yes) # both, prefer svr4
10967      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10968      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10969      # unpreferred sharedlib libNAME.a needs extra handling
10970      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"'
10971      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"'
10972      # We do not specify a path in Import Files, so LIBPATH fires.
10973      shlibpath_overrides_runpath=yes
10974      ;;
10975    *,no) # both, prefer aix
10976      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10977      library_names_spec='$libname$release.a $libname.a'
10978      soname_spec='$libname$release$shared_ext$major'
10979      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10980      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)'
10981      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"'
10982      ;;
10983    esac
10984    shlibpath_var=LIBPATH
10985  fi
10986  ;;
10987
10988amigaos*)
10989  case $host_cpu in
10990  powerpc)
10991    # Since July 2007 AmigaOS4 officially supports .so libraries.
10992    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10993    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10994    ;;
10995  m68k)
10996    library_names_spec='$libname.ixlibrary $libname.a'
10997    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10998    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'
10999    ;;
11000  esac
11001  ;;
11002
11003beos*)
11004  library_names_spec='$libname$shared_ext'
11005  dynamic_linker="$host_os ld.so"
11006  shlibpath_var=LIBRARY_PATH
11007  ;;
11008
11009bsdi[45]*)
11010  version_type=linux # correct to gnu/linux during the next big refactor
11011  need_version=no
11012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11013  soname_spec='$libname$release$shared_ext$major'
11014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11015  shlibpath_var=LD_LIBRARY_PATH
11016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11018  # the default ld.so.conf also contains /usr/contrib/lib and
11019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11020  # libtool to hard-code these into programs
11021  ;;
11022
11023cygwin* | mingw* | pw32* | cegcc*)
11024  version_type=windows
11025  shrext_cmds=.dll
11026  need_version=no
11027  need_lib_prefix=no
11028
11029  case $GCC,$cc_basename in
11030  yes,*)
11031    # gcc
11032    library_names_spec='$libname.dll.a'
11033    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11034    postinstall_cmds='base_file=`basename \$file`~
11035      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11036      dldir=$destdir/`dirname \$dlpath`~
11037      test -d \$dldir || mkdir -p \$dldir~
11038      $install_prog $dir/$dlname \$dldir/$dlname~
11039      chmod a+x \$dldir/$dlname~
11040      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11041        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11042      fi'
11043    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11044      dlpath=$dir/\$dldll~
11045       $RM \$dlpath'
11046    shlibpath_overrides_runpath=yes
11047
11048    case $host_os in
11049    cygwin*)
11050      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11051      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11052
11053      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11054      ;;
11055    mingw* | cegcc*)
11056      # MinGW DLLs use traditional 'lib' prefix
11057      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11058      ;;
11059    pw32*)
11060      # pw32 DLLs use 'pw' prefix rather than 'lib'
11061      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11062      ;;
11063    esac
11064    dynamic_linker='Win32 ld.exe'
11065    ;;
11066
11067  *,cl*)
11068    # Native MSVC
11069    libname_spec='$name'
11070    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11071    library_names_spec='$libname.dll.lib'
11072
11073    case $build_os in
11074    mingw*)
11075      sys_lib_search_path_spec=
11076      lt_save_ifs=$IFS
11077      IFS=';'
11078      for lt_path in $LIB
11079      do
11080        IFS=$lt_save_ifs
11081        # Let DOS variable expansion print the short 8.3 style file name.
11082        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11083        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11084      done
11085      IFS=$lt_save_ifs
11086      # Convert to MSYS style.
11087      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11088      ;;
11089    cygwin*)
11090      # Convert to unix form, then to dos form, then back to unix form
11091      # but this time dos style (no spaces!) so that the unix form looks
11092      # like /cygdrive/c/PROGRA~1:/cygdr...
11093      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11094      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11095      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11096      ;;
11097    *)
11098      sys_lib_search_path_spec=$LIB
11099      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11100        # It is most probably a Windows format PATH.
11101        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11102      else
11103        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11104      fi
11105      # FIXME: find the short name or the path components, as spaces are
11106      # common. (e.g. "Program Files" -> "PROGRA~1")
11107      ;;
11108    esac
11109
11110    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11111    postinstall_cmds='base_file=`basename \$file`~
11112      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11113      dldir=$destdir/`dirname \$dlpath`~
11114      test -d \$dldir || mkdir -p \$dldir~
11115      $install_prog $dir/$dlname \$dldir/$dlname'
11116    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11117      dlpath=$dir/\$dldll~
11118       $RM \$dlpath'
11119    shlibpath_overrides_runpath=yes
11120    dynamic_linker='Win32 link.exe'
11121    ;;
11122
11123  *)
11124    # Assume MSVC wrapper
11125    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11126    dynamic_linker='Win32 ld.exe'
11127    ;;
11128  esac
11129  # FIXME: first we should search . and the directory the executable is in
11130  shlibpath_var=PATH
11131  ;;
11132
11133darwin* | rhapsody*)
11134  dynamic_linker="$host_os dyld"
11135  version_type=darwin
11136  need_lib_prefix=no
11137  need_version=no
11138  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11139  soname_spec='$libname$release$major$shared_ext'
11140  shlibpath_overrides_runpath=yes
11141  shlibpath_var=DYLD_LIBRARY_PATH
11142  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11143
11144  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11145  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11146  ;;
11147
11148dgux*)
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153  soname_spec='$libname$release$shared_ext$major'
11154  shlibpath_var=LD_LIBRARY_PATH
11155  ;;
11156
11157freebsd* | dragonfly*)
11158  # DragonFly does not have aout.  When/if they implement a new
11159  # versioning mechanism, adjust this.
11160  if test -x /usr/bin/objformat; then
11161    objformat=`/usr/bin/objformat`
11162  else
11163    case $host_os in
11164    freebsd[23].*) objformat=aout ;;
11165    *) objformat=elf ;;
11166    esac
11167  fi
11168  # Handle Gentoo/FreeBSD as it was Linux
11169  case $host_vendor in
11170    gentoo)
11171      version_type=linux ;;
11172    *)
11173      version_type=freebsd-$objformat ;;
11174  esac
11175
11176  case $version_type in
11177    freebsd-elf*)
11178      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179      soname_spec='$libname$release$shared_ext$major'
11180      need_version=no
11181      need_lib_prefix=no
11182      ;;
11183    freebsd-*)
11184      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11185      need_version=yes
11186      ;;
11187    linux)
11188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11189      soname_spec='${libname}${release}${shared_ext}$major'
11190      need_lib_prefix=no
11191      need_version=no
11192      ;;
11193  esac
11194  shlibpath_var=LD_LIBRARY_PATH
11195  case $host_os in
11196  freebsd2.*)
11197    shlibpath_overrides_runpath=yes
11198    ;;
11199  freebsd3.[01]* | freebsdelf3.[01]*)
11200    shlibpath_overrides_runpath=yes
11201    hardcode_into_libs=yes
11202    ;;
11203  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11204  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11205    shlibpath_overrides_runpath=no
11206    hardcode_into_libs=yes
11207    ;;
11208  *) # from 4.6 on, and DragonFly
11209    shlibpath_overrides_runpath=yes
11210    hardcode_into_libs=yes
11211    ;;
11212  esac
11213  ;;
11214
11215haiku*)
11216  version_type=linux # correct to gnu/linux during the next big refactor
11217  need_lib_prefix=no
11218  need_version=no
11219  dynamic_linker="$host_os runtime_loader"
11220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221  soname_spec='$libname$release$shared_ext$major'
11222  shlibpath_var=LIBRARY_PATH
11223  shlibpath_overrides_runpath=no
11224  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11225  hardcode_into_libs=yes
11226  ;;
11227
11228hpux9* | hpux10* | hpux11*)
11229  # Give a soname corresponding to the major version so that dld.sl refuses to
11230  # link against other versions.
11231  version_type=sunos
11232  need_lib_prefix=no
11233  need_version=no
11234  case $host_cpu in
11235  ia64*)
11236    shrext_cmds='.so'
11237    hardcode_into_libs=yes
11238    dynamic_linker="$host_os dld.so"
11239    shlibpath_var=LD_LIBRARY_PATH
11240    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11241    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242    soname_spec='$libname$release$shared_ext$major'
11243    if test 32 = "$HPUX_IA64_MODE"; then
11244      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11246    else
11247      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11248      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11249    fi
11250    ;;
11251  hppa*64*)
11252    shrext_cmds='.sl'
11253    hardcode_into_libs=yes
11254    dynamic_linker="$host_os dld.sl"
11255    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11256    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11257    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11258    soname_spec='$libname$release$shared_ext$major'
11259    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11260    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11261    ;;
11262  *)
11263    shrext_cmds='.sl'
11264    dynamic_linker="$host_os dld.sl"
11265    shlibpath_var=SHLIB_PATH
11266    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11267    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268    soname_spec='$libname$release$shared_ext$major'
11269    ;;
11270  esac
11271  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11272  postinstall_cmds='chmod 555 $lib'
11273  # or fails outright, so override atomically:
11274  install_override_mode=555
11275  ;;
11276
11277interix[3-9]*)
11278  version_type=linux # correct to gnu/linux during the next big refactor
11279  need_lib_prefix=no
11280  need_version=no
11281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282  soname_spec='$libname$release$shared_ext$major'
11283  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11284  shlibpath_var=LD_LIBRARY_PATH
11285  shlibpath_overrides_runpath=no
11286  hardcode_into_libs=yes
11287  ;;
11288
11289irix5* | irix6* | nonstopux*)
11290  case $host_os in
11291    nonstopux*) version_type=nonstopux ;;
11292    *)
11293	if test yes = "$lt_cv_prog_gnu_ld"; then
11294		version_type=linux # correct to gnu/linux during the next big refactor
11295	else
11296		version_type=irix
11297	fi ;;
11298  esac
11299  need_lib_prefix=no
11300  need_version=no
11301  soname_spec='$libname$release$shared_ext$major'
11302  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11303  case $host_os in
11304  irix5* | nonstopux*)
11305    libsuff= shlibsuff=
11306    ;;
11307  *)
11308    case $LD in # libtool.m4 will add one of these switches to LD
11309    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11310      libsuff= shlibsuff= libmagic=32-bit;;
11311    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11312      libsuff=32 shlibsuff=N32 libmagic=N32;;
11313    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11314      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11315    *) libsuff= shlibsuff= libmagic=never-match;;
11316    esac
11317    ;;
11318  esac
11319  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11320  shlibpath_overrides_runpath=no
11321  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11322  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11323  hardcode_into_libs=yes
11324  ;;
11325
11326# No shared lib support for Linux oldld, aout, or coff.
11327linux*oldld* | linux*aout* | linux*coff*)
11328  dynamic_linker=no
11329  ;;
11330
11331linux*android*)
11332  version_type=none # Android doesn't support versioned libraries.
11333  need_lib_prefix=no
11334  need_version=no
11335  library_names_spec='$libname$release$shared_ext'
11336  soname_spec='$libname$release$shared_ext'
11337  finish_cmds=
11338  shlibpath_var=LD_LIBRARY_PATH
11339  shlibpath_overrides_runpath=yes
11340
11341  # This implies no fast_install, which is unacceptable.
11342  # Some rework will be needed to allow for fast_install
11343  # before this can be enabled.
11344  hardcode_into_libs=yes
11345
11346  dynamic_linker='Android linker'
11347  # Don't embed -rpath directories since the linker doesn't support them.
11348  hardcode_libdir_flag_spec='-L$libdir'
11349  ;;
11350
11351# This must be glibc/ELF.
11352linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11353  version_type=linux # correct to gnu/linux during the next big refactor
11354  need_lib_prefix=no
11355  need_version=no
11356  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357  soname_spec='$libname$release$shared_ext$major'
11358  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11359  shlibpath_var=LD_LIBRARY_PATH
11360  shlibpath_overrides_runpath=no
11361
11362  # Some binutils ld are patched to set DT_RUNPATH
11363  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11364  $as_echo_n "(cached) " >&6
11365else
11366  lt_cv_shlibpath_overrides_runpath=no
11367    save_LDFLAGS=$LDFLAGS
11368    save_libdir=$libdir
11369    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11370	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h.  */
11373
11374int
11375main ()
11376{
11377
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382if ac_fn_c_try_link "$LINENO"; then :
11383  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11384  lt_cv_shlibpath_overrides_runpath=yes
11385fi
11386fi
11387rm -f core conftest.err conftest.$ac_objext \
11388    conftest$ac_exeext conftest.$ac_ext
11389    LDFLAGS=$save_LDFLAGS
11390    libdir=$save_libdir
11391
11392fi
11393
11394  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11395
11396  # This implies no fast_install, which is unacceptable.
11397  # Some rework will be needed to allow for fast_install
11398  # before this can be enabled.
11399  hardcode_into_libs=yes
11400
11401  # Ideally, we could use ldconfig to report *all* directores which are
11402  # searched for libraries, however this is still not possible.  Aside from not
11403  # being certain /sbin/ldconfig is available, command
11404  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11405  # even though it is searched at run-time.  Try to do the best guess by
11406  # appending ld.so.conf contents (and includes) to the search path.
11407  if test -f /etc/ld.so.conf; then
11408    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' ' '`
11409    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11410  fi
11411
11412  # We used to test for /lib/ld.so.1 and disable shared libraries on
11413  # powerpc, because MkLinux only supported shared libraries with the
11414  # GNU dynamic linker.  Since this was broken with cross compilers,
11415  # most powerpc-linux boxes support dynamic linking these days and
11416  # people can always --disable-shared, the test was removed, and we
11417  # assume the GNU/Linux dynamic linker is in use.
11418  dynamic_linker='GNU/Linux ld.so'
11419  ;;
11420
11421netbsd*)
11422  version_type=sunos
11423  need_lib_prefix=no
11424  need_version=no
11425  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11426    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11427    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11428    dynamic_linker='NetBSD (a.out) ld.so'
11429  else
11430    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11431    soname_spec='$libname$release$shared_ext$major'
11432    dynamic_linker='NetBSD ld.elf_so'
11433  fi
11434  shlibpath_var=LD_LIBRARY_PATH
11435  shlibpath_overrides_runpath=yes
11436  hardcode_into_libs=yes
11437  ;;
11438
11439newsos6)
11440  version_type=linux # correct to gnu/linux during the next big refactor
11441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442  shlibpath_var=LD_LIBRARY_PATH
11443  shlibpath_overrides_runpath=yes
11444  ;;
11445
11446*nto* | *qnx*)
11447  version_type=qnx
11448  need_lib_prefix=no
11449  need_version=no
11450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451  soname_spec='$libname$release$shared_ext$major'
11452  shlibpath_var=LD_LIBRARY_PATH
11453  shlibpath_overrides_runpath=no
11454  hardcode_into_libs=yes
11455  dynamic_linker='ldqnx.so'
11456  ;;
11457
11458openbsd* | bitrig*)
11459  version_type=sunos
11460  sys_lib_dlsearch_path_spec=/usr/lib
11461  need_lib_prefix=no
11462  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11463    need_version=no
11464  else
11465    need_version=yes
11466  fi
11467  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11468  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469  shlibpath_var=LD_LIBRARY_PATH
11470  shlibpath_overrides_runpath=yes
11471  ;;
11472
11473os2*)
11474  libname_spec='$name'
11475  version_type=windows
11476  shrext_cmds=.dll
11477  need_version=no
11478  need_lib_prefix=no
11479  # OS/2 can only load a DLL with a base name of 8 characters or less.
11480  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11481    v=$($ECHO $release$versuffix | tr -d .-);
11482    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11483    $ECHO $n$v`$shared_ext'
11484  library_names_spec='${libname}_dll.$libext'
11485  dynamic_linker='OS/2 ld.exe'
11486  shlibpath_var=BEGINLIBPATH
11487  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11488  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11489  postinstall_cmds='base_file=`basename \$file`~
11490    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11491    dldir=$destdir/`dirname \$dlpath`~
11492    test -d \$dldir || mkdir -p \$dldir~
11493    $install_prog $dir/$dlname \$dldir/$dlname~
11494    chmod a+x \$dldir/$dlname~
11495    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11496      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11497    fi'
11498  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11499    dlpath=$dir/\$dldll~
11500    $RM \$dlpath'
11501  ;;
11502
11503osf3* | osf4* | osf5*)
11504  version_type=osf
11505  need_lib_prefix=no
11506  need_version=no
11507  soname_spec='$libname$release$shared_ext$major'
11508  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11509  shlibpath_var=LD_LIBRARY_PATH
11510  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11511  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11512  ;;
11513
11514rdos*)
11515  dynamic_linker=no
11516  ;;
11517
11518solaris*)
11519  version_type=linux # correct to gnu/linux during the next big refactor
11520  need_lib_prefix=no
11521  need_version=no
11522  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523  soname_spec='$libname$release$shared_ext$major'
11524  shlibpath_var=LD_LIBRARY_PATH
11525  shlibpath_overrides_runpath=yes
11526  hardcode_into_libs=yes
11527  # ldd complains unless libraries are executable
11528  postinstall_cmds='chmod +x $lib'
11529  ;;
11530
11531sunos4*)
11532  version_type=sunos
11533  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11534  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11535  shlibpath_var=LD_LIBRARY_PATH
11536  shlibpath_overrides_runpath=yes
11537  if test yes = "$with_gnu_ld"; then
11538    need_lib_prefix=no
11539  fi
11540  need_version=yes
11541  ;;
11542
11543sysv4 | sysv4.3*)
11544  version_type=linux # correct to gnu/linux during the next big refactor
11545  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11546  soname_spec='$libname$release$shared_ext$major'
11547  shlibpath_var=LD_LIBRARY_PATH
11548  case $host_vendor in
11549    sni)
11550      shlibpath_overrides_runpath=no
11551      need_lib_prefix=no
11552      runpath_var=LD_RUN_PATH
11553      ;;
11554    siemens)
11555      need_lib_prefix=no
11556      ;;
11557    motorola)
11558      need_lib_prefix=no
11559      need_version=no
11560      shlibpath_overrides_runpath=no
11561      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11562      ;;
11563  esac
11564  ;;
11565
11566sysv4*MP*)
11567  if test -d /usr/nec; then
11568    version_type=linux # correct to gnu/linux during the next big refactor
11569    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11570    soname_spec='$libname$shared_ext.$major'
11571    shlibpath_var=LD_LIBRARY_PATH
11572  fi
11573  ;;
11574
11575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11576  version_type=sco
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11580  soname_spec='$libname$release$shared_ext$major'
11581  shlibpath_var=LD_LIBRARY_PATH
11582  shlibpath_overrides_runpath=yes
11583  hardcode_into_libs=yes
11584  if test yes = "$with_gnu_ld"; then
11585    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11586  else
11587    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11588    case $host_os in
11589      sco3.2v5*)
11590        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11591	;;
11592    esac
11593  fi
11594  sys_lib_dlsearch_path_spec='/usr/lib'
11595  ;;
11596
11597tpf*)
11598  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11599  version_type=linux # correct to gnu/linux during the next big refactor
11600  need_lib_prefix=no
11601  need_version=no
11602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603  shlibpath_var=LD_LIBRARY_PATH
11604  shlibpath_overrides_runpath=no
11605  hardcode_into_libs=yes
11606  ;;
11607
11608uts4*)
11609  version_type=linux # correct to gnu/linux during the next big refactor
11610  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11611  soname_spec='$libname$release$shared_ext$major'
11612  shlibpath_var=LD_LIBRARY_PATH
11613  ;;
11614
11615*)
11616  dynamic_linker=no
11617  ;;
11618esac
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11620$as_echo "$dynamic_linker" >&6; }
11621test no = "$dynamic_linker" && can_build_shared=no
11622
11623variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11624if test yes = "$GCC"; then
11625  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11626fi
11627
11628if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11629  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11630fi
11631
11632if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11633  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11634fi
11635
11636# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11637configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11638
11639# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11640func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11641
11642# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11643configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11742$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11743hardcode_action=
11744if test -n "$hardcode_libdir_flag_spec" ||
11745   test -n "$runpath_var" ||
11746   test yes = "$hardcode_automatic"; then
11747
11748  # We can hardcode non-existent directories.
11749  if test no != "$hardcode_direct" &&
11750     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11751     # have to relink, otherwise we might link with an installed library
11752     # when we should be linking with a yet-to-be-installed one
11753     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11754     test no != "$hardcode_minus_L"; then
11755    # Linking always hardcodes the temporary library directory.
11756    hardcode_action=relink
11757  else
11758    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11759    hardcode_action=immediate
11760  fi
11761else
11762  # We cannot hardcode anything, or else we can only hardcode existing
11763  # directories.
11764  hardcode_action=unsupported
11765fi
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11767$as_echo "$hardcode_action" >&6; }
11768
11769if test relink = "$hardcode_action" ||
11770   test yes = "$inherit_rpath"; then
11771  # Fast installation is not supported
11772  enable_fast_install=no
11773elif test yes = "$shlibpath_overrides_runpath" ||
11774     test no = "$enable_shared"; then
11775  # Fast installation is not necessary
11776  enable_fast_install=needless
11777fi
11778
11779
11780
11781
11782
11783
11784  if test yes != "$enable_dlopen"; then
11785  enable_dlopen=unknown
11786  enable_dlopen_self=unknown
11787  enable_dlopen_self_static=unknown
11788else
11789  lt_cv_dlopen=no
11790  lt_cv_dlopen_libs=
11791
11792  case $host_os in
11793  beos*)
11794    lt_cv_dlopen=load_add_on
11795    lt_cv_dlopen_libs=
11796    lt_cv_dlopen_self=yes
11797    ;;
11798
11799  mingw* | pw32* | cegcc*)
11800    lt_cv_dlopen=LoadLibrary
11801    lt_cv_dlopen_libs=
11802    ;;
11803
11804  cygwin*)
11805    lt_cv_dlopen=dlopen
11806    lt_cv_dlopen_libs=
11807    ;;
11808
11809  darwin*)
11810    # if libdl is installed we need to link against it
11811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812$as_echo_n "checking for dlopen in -ldl... " >&6; }
11813if ${ac_cv_lib_dl_dlopen+:} false; then :
11814  $as_echo_n "(cached) " >&6
11815else
11816  ac_check_lib_save_LIBS=$LIBS
11817LIBS="-ldl  $LIBS"
11818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819/* end confdefs.h.  */
11820
11821/* Override any GCC internal prototype to avoid an error.
11822   Use char because int might match the return type of a GCC
11823   builtin and then its argument prototype would still apply.  */
11824#ifdef __cplusplus
11825extern "C"
11826#endif
11827char dlopen ();
11828int
11829main ()
11830{
11831return dlopen ();
11832  ;
11833  return 0;
11834}
11835_ACEOF
11836if ac_fn_c_try_link "$LINENO"; then :
11837  ac_cv_lib_dl_dlopen=yes
11838else
11839  ac_cv_lib_dl_dlopen=no
11840fi
11841rm -f core conftest.err conftest.$ac_objext \
11842    conftest$ac_exeext conftest.$ac_ext
11843LIBS=$ac_check_lib_save_LIBS
11844fi
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11849else
11850
11851    lt_cv_dlopen=dyld
11852    lt_cv_dlopen_libs=
11853    lt_cv_dlopen_self=yes
11854
11855fi
11856
11857    ;;
11858
11859  tpf*)
11860    # Don't try to run any link tests for TPF.  We know it's impossible
11861    # because TPF is a cross-compiler, and we know how we open DSOs.
11862    lt_cv_dlopen=dlopen
11863    lt_cv_dlopen_libs=
11864    lt_cv_dlopen_self=no
11865    ;;
11866
11867  *)
11868    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11869if test "x$ac_cv_func_shl_load" = xyes; then :
11870  lt_cv_dlopen=shl_load
11871else
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11873$as_echo_n "checking for shl_load in -ldld... " >&6; }
11874if ${ac_cv_lib_dld_shl_load+:} false; then :
11875  $as_echo_n "(cached) " >&6
11876else
11877  ac_check_lib_save_LIBS=$LIBS
11878LIBS="-ldld  $LIBS"
11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880/* end confdefs.h.  */
11881
11882/* Override any GCC internal prototype to avoid an error.
11883   Use char because int might match the return type of a GCC
11884   builtin and then its argument prototype would still apply.  */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char shl_load ();
11889int
11890main ()
11891{
11892return shl_load ();
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"; then :
11898  ac_cv_lib_dld_shl_load=yes
11899else
11900  ac_cv_lib_dld_shl_load=no
11901fi
11902rm -f core conftest.err conftest.$ac_objext \
11903    conftest$ac_exeext conftest.$ac_ext
11904LIBS=$ac_check_lib_save_LIBS
11905fi
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11907$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11908if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11909  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11910else
11911  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11912if test "x$ac_cv_func_dlopen" = xyes; then :
11913  lt_cv_dlopen=dlopen
11914else
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11916$as_echo_n "checking for dlopen in -ldl... " >&6; }
11917if ${ac_cv_lib_dl_dlopen+:} false; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  ac_check_lib_save_LIBS=$LIBS
11921LIBS="-ldl  $LIBS"
11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924
11925/* Override any GCC internal prototype to avoid an error.
11926   Use char because int might match the return type of a GCC
11927   builtin and then its argument prototype would still apply.  */
11928#ifdef __cplusplus
11929extern "C"
11930#endif
11931char dlopen ();
11932int
11933main ()
11934{
11935return dlopen ();
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_link "$LINENO"; then :
11941  ac_cv_lib_dl_dlopen=yes
11942else
11943  ac_cv_lib_dl_dlopen=no
11944fi
11945rm -f core conftest.err conftest.$ac_objext \
11946    conftest$ac_exeext conftest.$ac_ext
11947LIBS=$ac_check_lib_save_LIBS
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11950$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11951if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11952  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11953else
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11955$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11956if ${ac_cv_lib_svld_dlopen+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  ac_check_lib_save_LIBS=$LIBS
11960LIBS="-lsvld  $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h.  */
11963
11964/* Override any GCC internal prototype to avoid an error.
11965   Use char because int might match the return type of a GCC
11966   builtin and then its argument prototype would still apply.  */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char dlopen ();
11971int
11972main ()
11973{
11974return dlopen ();
11975  ;
11976  return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980  ac_cv_lib_svld_dlopen=yes
11981else
11982  ac_cv_lib_svld_dlopen=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985    conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11989$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11990if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11991  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11992else
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11994$as_echo_n "checking for dld_link in -ldld... " >&6; }
11995if ${ac_cv_lib_dld_dld_link+:} false; then :
11996  $as_echo_n "(cached) " >&6
11997else
11998  ac_check_lib_save_LIBS=$LIBS
11999LIBS="-ldld  $LIBS"
12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001/* end confdefs.h.  */
12002
12003/* Override any GCC internal prototype to avoid an error.
12004   Use char because int might match the return type of a GCC
12005   builtin and then its argument prototype would still apply.  */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char dld_link ();
12010int
12011main ()
12012{
12013return dld_link ();
12014  ;
12015  return 0;
12016}
12017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019  ac_cv_lib_dld_dld_link=yes
12020else
12021  ac_cv_lib_dld_dld_link=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024    conftest$ac_exeext conftest.$ac_ext
12025LIBS=$ac_check_lib_save_LIBS
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12028$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12029if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12030  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12031fi
12032
12033
12034fi
12035
12036
12037fi
12038
12039
12040fi
12041
12042
12043fi
12044
12045
12046fi
12047
12048    ;;
12049  esac
12050
12051  if test no = "$lt_cv_dlopen"; then
12052    enable_dlopen=no
12053  else
12054    enable_dlopen=yes
12055  fi
12056
12057  case $lt_cv_dlopen in
12058  dlopen)
12059    save_CPPFLAGS=$CPPFLAGS
12060    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12061
12062    save_LDFLAGS=$LDFLAGS
12063    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12064
12065    save_LIBS=$LIBS
12066    LIBS="$lt_cv_dlopen_libs $LIBS"
12067
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12069$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12070if ${lt_cv_dlopen_self+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  	  if test yes = "$cross_compiling"; then :
12074  lt_cv_dlopen_self=cross
12075else
12076  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12077  lt_status=$lt_dlunknown
12078  cat > conftest.$ac_ext <<_LT_EOF
12079#line $LINENO "configure"
12080#include "confdefs.h"
12081
12082#if HAVE_DLFCN_H
12083#include <dlfcn.h>
12084#endif
12085
12086#include <stdio.h>
12087
12088#ifdef RTLD_GLOBAL
12089#  define LT_DLGLOBAL		RTLD_GLOBAL
12090#else
12091#  ifdef DL_GLOBAL
12092#    define LT_DLGLOBAL		DL_GLOBAL
12093#  else
12094#    define LT_DLGLOBAL		0
12095#  endif
12096#endif
12097
12098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12099   find out it does not work in some platform. */
12100#ifndef LT_DLLAZY_OR_NOW
12101#  ifdef RTLD_LAZY
12102#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12103#  else
12104#    ifdef DL_LAZY
12105#      define LT_DLLAZY_OR_NOW		DL_LAZY
12106#    else
12107#      ifdef RTLD_NOW
12108#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12109#      else
12110#        ifdef DL_NOW
12111#          define LT_DLLAZY_OR_NOW	DL_NOW
12112#        else
12113#          define LT_DLLAZY_OR_NOW	0
12114#        endif
12115#      endif
12116#    endif
12117#  endif
12118#endif
12119
12120/* When -fvisibility=hidden is used, assume the code has been annotated
12121   correspondingly for the symbols needed.  */
12122#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12123int fnord () __attribute__((visibility("default")));
12124#endif
12125
12126int fnord () { return 42; }
12127int main ()
12128{
12129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12130  int status = $lt_dlunknown;
12131
12132  if (self)
12133    {
12134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12135      else
12136        {
12137	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12138          else puts (dlerror ());
12139	}
12140      /* dlclose (self); */
12141    }
12142  else
12143    puts (dlerror ());
12144
12145  return status;
12146}
12147_LT_EOF
12148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12149  (eval $ac_link) 2>&5
12150  ac_status=$?
12151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12153    (./conftest; exit; ) >&5 2>/dev/null
12154    lt_status=$?
12155    case x$lt_status in
12156      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12157      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12158      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12159    esac
12160  else :
12161    # compilation failed
12162    lt_cv_dlopen_self=no
12163  fi
12164fi
12165rm -fr conftest*
12166
12167
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12170$as_echo "$lt_cv_dlopen_self" >&6; }
12171
12172    if test yes = "$lt_cv_dlopen_self"; then
12173      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12174      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12175$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12176if ${lt_cv_dlopen_self_static+:} false; then :
12177  $as_echo_n "(cached) " >&6
12178else
12179  	  if test yes = "$cross_compiling"; then :
12180  lt_cv_dlopen_self_static=cross
12181else
12182  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183  lt_status=$lt_dlunknown
12184  cat > conftest.$ac_ext <<_LT_EOF
12185#line $LINENO "configure"
12186#include "confdefs.h"
12187
12188#if HAVE_DLFCN_H
12189#include <dlfcn.h>
12190#endif
12191
12192#include <stdio.h>
12193
12194#ifdef RTLD_GLOBAL
12195#  define LT_DLGLOBAL		RTLD_GLOBAL
12196#else
12197#  ifdef DL_GLOBAL
12198#    define LT_DLGLOBAL		DL_GLOBAL
12199#  else
12200#    define LT_DLGLOBAL		0
12201#  endif
12202#endif
12203
12204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205   find out it does not work in some platform. */
12206#ifndef LT_DLLAZY_OR_NOW
12207#  ifdef RTLD_LAZY
12208#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12209#  else
12210#    ifdef DL_LAZY
12211#      define LT_DLLAZY_OR_NOW		DL_LAZY
12212#    else
12213#      ifdef RTLD_NOW
12214#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12215#      else
12216#        ifdef DL_NOW
12217#          define LT_DLLAZY_OR_NOW	DL_NOW
12218#        else
12219#          define LT_DLLAZY_OR_NOW	0
12220#        endif
12221#      endif
12222#    endif
12223#  endif
12224#endif
12225
12226/* When -fvisibility=hidden is used, assume the code has been annotated
12227   correspondingly for the symbols needed.  */
12228#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12229int fnord () __attribute__((visibility("default")));
12230#endif
12231
12232int fnord () { return 42; }
12233int main ()
12234{
12235  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12236  int status = $lt_dlunknown;
12237
12238  if (self)
12239    {
12240      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12241      else
12242        {
12243	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12244          else puts (dlerror ());
12245	}
12246      /* dlclose (self); */
12247    }
12248  else
12249    puts (dlerror ());
12250
12251  return status;
12252}
12253_LT_EOF
12254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12255  (eval $ac_link) 2>&5
12256  ac_status=$?
12257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12259    (./conftest; exit; ) >&5 2>/dev/null
12260    lt_status=$?
12261    case x$lt_status in
12262      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12265    esac
12266  else :
12267    # compilation failed
12268    lt_cv_dlopen_self_static=no
12269  fi
12270fi
12271rm -fr conftest*
12272
12273
12274fi
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12276$as_echo "$lt_cv_dlopen_self_static" >&6; }
12277    fi
12278
12279    CPPFLAGS=$save_CPPFLAGS
12280    LDFLAGS=$save_LDFLAGS
12281    LIBS=$save_LIBS
12282    ;;
12283  esac
12284
12285  case $lt_cv_dlopen_self in
12286  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287  *) enable_dlopen_self=unknown ;;
12288  esac
12289
12290  case $lt_cv_dlopen_self_static in
12291  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292  *) enable_dlopen_self_static=unknown ;;
12293  esac
12294fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312striplib=
12313old_striplib=
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12315$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12316if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12320$as_echo "yes" >&6; }
12321else
12322# FIXME - insert some real tests, host_os isn't really good enough
12323  case $host_os in
12324  darwin*)
12325    if test -n "$STRIP"; then
12326      striplib="$STRIP -x"
12327      old_striplib="$STRIP -S"
12328      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329$as_echo "yes" >&6; }
12330    else
12331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332$as_echo "no" >&6; }
12333    fi
12334    ;;
12335  *)
12336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338    ;;
12339  esac
12340fi
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353  # Report what library types will actually be built
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12355$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12357$as_echo "$can_build_shared" >&6; }
12358
12359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12360$as_echo_n "checking whether to build shared libraries... " >&6; }
12361  test no = "$can_build_shared" && enable_shared=no
12362
12363  # On AIX, shared libraries and static libraries use the same namespace, and
12364  # are all built from PIC.
12365  case $host_os in
12366  aix3*)
12367    test yes = "$enable_shared" && enable_static=no
12368    if test -n "$RANLIB"; then
12369      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370      postinstall_cmds='$RANLIB $lib'
12371    fi
12372    ;;
12373
12374  aix[4-9]*)
12375    if test ia64 != "$host_cpu"; then
12376      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12377      yes,aix,yes) ;;			# shared object as lib.so file only
12378      yes,svr4,*) ;;			# shared object as lib.so archive member only
12379      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12380      esac
12381    fi
12382    ;;
12383  esac
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12385$as_echo "$enable_shared" >&6; }
12386
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12388$as_echo_n "checking whether to build static libraries... " >&6; }
12389  # Make sure either enable_shared or enable_static is yes.
12390  test yes = "$enable_shared" || enable_static=yes
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12392$as_echo "$enable_static" >&6; }
12393
12394
12395
12396
12397fi
12398ac_ext=c
12399ac_cpp='$CPP $CPPFLAGS'
12400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12402ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403
12404CC=$lt_save_CC
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420        ac_config_commands="$ac_config_commands libtool"
12421
12422
12423
12424
12425# Only expand once:
12426
12427
12428
12429# Require xorg-macros minimum of 1.15 for fop minimum version
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12442$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12443if ${ac_cv_prog_cc_c99+:} false; then :
12444  $as_echo_n "(cached) " >&6
12445else
12446  ac_cv_prog_cc_c99=no
12447ac_save_CC=$CC
12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h.  */
12450#include <stdarg.h>
12451#include <stdbool.h>
12452#include <stdlib.h>
12453#include <wchar.h>
12454#include <stdio.h>
12455
12456// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12457#define debug(...) fprintf (stderr, __VA_ARGS__)
12458#define showlist(...) puts (#__VA_ARGS__)
12459#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12460static void
12461test_varargs_macros (void)
12462{
12463  int x = 1234;
12464  int y = 5678;
12465  debug ("Flag");
12466  debug ("X = %d\n", x);
12467  showlist (The first, second, and third items.);
12468  report (x>y, "x is %d but y is %d", x, y);
12469}
12470
12471// Check long long types.
12472#define BIG64 18446744073709551615ull
12473#define BIG32 4294967295ul
12474#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12475#if !BIG_OK
12476  your preprocessor is broken;
12477#endif
12478#if BIG_OK
12479#else
12480  your preprocessor is broken;
12481#endif
12482static long long int bignum = -9223372036854775807LL;
12483static unsigned long long int ubignum = BIG64;
12484
12485struct incomplete_array
12486{
12487  int datasize;
12488  double data[];
12489};
12490
12491struct named_init {
12492  int number;
12493  const wchar_t *name;
12494  double average;
12495};
12496
12497typedef const char *ccp;
12498
12499static inline int
12500test_restrict (ccp restrict text)
12501{
12502  // See if C++-style comments work.
12503  // Iterate through items via the restricted pointer.
12504  // Also check for declarations in for loops.
12505  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12506    continue;
12507  return 0;
12508}
12509
12510// Check varargs and va_copy.
12511static void
12512test_varargs (const char *format, ...)
12513{
12514  va_list args;
12515  va_start (args, format);
12516  va_list args_copy;
12517  va_copy (args_copy, args);
12518
12519  const char *str;
12520  int number;
12521  float fnumber;
12522
12523  while (*format)
12524    {
12525      switch (*format++)
12526	{
12527	case 's': // string
12528	  str = va_arg (args_copy, const char *);
12529	  break;
12530	case 'd': // int
12531	  number = va_arg (args_copy, int);
12532	  break;
12533	case 'f': // float
12534	  fnumber = va_arg (args_copy, double);
12535	  break;
12536	default:
12537	  break;
12538	}
12539    }
12540  va_end (args_copy);
12541  va_end (args);
12542}
12543
12544int
12545main ()
12546{
12547
12548  // Check bool.
12549  _Bool success = false;
12550
12551  // Check restrict.
12552  if (test_restrict ("String literal") == 0)
12553    success = true;
12554  char *restrict newvar = "Another string";
12555
12556  // Check varargs.
12557  test_varargs ("s, d' f .", "string", 65, 34.234);
12558  test_varargs_macros ();
12559
12560  // Check flexible array members.
12561  struct incomplete_array *ia =
12562    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12563  ia->datasize = 10;
12564  for (int i = 0; i < ia->datasize; ++i)
12565    ia->data[i] = i * 1.234;
12566
12567  // Check named initializers.
12568  struct named_init ni = {
12569    .number = 34,
12570    .name = L"Test wide string",
12571    .average = 543.34343,
12572  };
12573
12574  ni.number = 58;
12575
12576  int dynamic_array[ni.number];
12577  dynamic_array[ni.number - 1] = 543;
12578
12579  // work around unused variable warnings
12580  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12581	  || dynamic_array[ni.number - 1] != 543);
12582
12583  ;
12584  return 0;
12585}
12586_ACEOF
12587for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12588do
12589  CC="$ac_save_CC $ac_arg"
12590  if ac_fn_c_try_compile "$LINENO"; then :
12591  ac_cv_prog_cc_c99=$ac_arg
12592fi
12593rm -f core conftest.err conftest.$ac_objext
12594  test "x$ac_cv_prog_cc_c99" != "xno" && break
12595done
12596rm -f conftest.$ac_ext
12597CC=$ac_save_CC
12598
12599fi
12600# AC_CACHE_VAL
12601case "x$ac_cv_prog_cc_c99" in
12602  x)
12603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12604$as_echo "none needed" >&6; } ;;
12605  xno)
12606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12607$as_echo "unsupported" >&6; } ;;
12608  *)
12609    CC="$CC $ac_cv_prog_cc_c99"
12610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12611$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12612esac
12613if test "x$ac_cv_prog_cc_c99" != xno; then :
12614
12615fi
12616
12617
12618
12619
12620
12621
12622ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12623if test "x$ac_cv_have_decl___clang__" = xyes; then :
12624  CLANGCC="yes"
12625else
12626  CLANGCC="no"
12627fi
12628
12629ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12630if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12631  INTELCC="yes"
12632else
12633  INTELCC="no"
12634fi
12635
12636ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12637if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12638  SUNCC="yes"
12639else
12640  SUNCC="no"
12641fi
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12652	if test -n "$ac_tool_prefix"; then
12653  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12654set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656$as_echo_n "checking for $ac_word... " >&6; }
12657if ${ac_cv_path_PKG_CONFIG+:} false; then :
12658  $as_echo_n "(cached) " >&6
12659else
12660  case $PKG_CONFIG in
12661  [\\/]* | ?:[\\/]*)
12662  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12663  ;;
12664  *)
12665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666for as_dir in $PATH
12667do
12668  IFS=$as_save_IFS
12669  test -z "$as_dir" && as_dir=.
12670    for ac_exec_ext in '' $ac_executable_extensions; do
12671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674    break 2
12675  fi
12676done
12677  done
12678IFS=$as_save_IFS
12679
12680  ;;
12681esac
12682fi
12683PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12684if test -n "$PKG_CONFIG"; then
12685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12686$as_echo "$PKG_CONFIG" >&6; }
12687else
12688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693fi
12694if test -z "$ac_cv_path_PKG_CONFIG"; then
12695  ac_pt_PKG_CONFIG=$PKG_CONFIG
12696  # Extract the first word of "pkg-config", so it can be a program name with args.
12697set dummy pkg-config; ac_word=$2
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
12700if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12701  $as_echo_n "(cached) " >&6
12702else
12703  case $ac_pt_PKG_CONFIG in
12704  [\\/]* | ?:[\\/]*)
12705  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12706  ;;
12707  *)
12708  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709for as_dir in $PATH
12710do
12711  IFS=$as_save_IFS
12712  test -z "$as_dir" && as_dir=.
12713    for ac_exec_ext in '' $ac_executable_extensions; do
12714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717    break 2
12718  fi
12719done
12720  done
12721IFS=$as_save_IFS
12722
12723  ;;
12724esac
12725fi
12726ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12727if test -n "$ac_pt_PKG_CONFIG"; then
12728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12729$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12730else
12731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
12733fi
12734
12735  if test "x$ac_pt_PKG_CONFIG" = x; then
12736    PKG_CONFIG=""
12737  else
12738    case $cross_compiling:$ac_tool_warned in
12739yes:)
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12742ac_tool_warned=yes ;;
12743esac
12744    PKG_CONFIG=$ac_pt_PKG_CONFIG
12745  fi
12746else
12747  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12748fi
12749
12750fi
12751if test -n "$PKG_CONFIG"; then
12752	_pkg_min_version=0.9.0
12753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12754$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12755	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757$as_echo "yes" >&6; }
12758	else
12759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761		PKG_CONFIG=""
12762	fi
12763fi
12764
12765
12766
12767
12768
12769# Check whether --enable-selective-werror was given.
12770if test "${enable_selective_werror+set}" = set; then :
12771  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12772else
12773  SELECTIVE_WERROR=yes
12774fi
12775
12776
12777
12778
12779
12780# -v is too short to test reliably with XORG_TESTSET_CFLAG
12781if test "x$SUNCC" = "xyes"; then
12782    BASE_CFLAGS="-v"
12783else
12784    BASE_CFLAGS=""
12785fi
12786
12787# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801xorg_testset_save_CFLAGS="$CFLAGS"
12802
12803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812int i;
12813_ACEOF
12814if ac_fn_c_try_compile "$LINENO"; then :
12815  xorg_cv_cc_flag_unknown_warning_option=yes
12816else
12817  xorg_cv_cc_flag_unknown_warning_option=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12824	CFLAGS="$xorg_testset_save_CFLAGS"
12825fi
12826
12827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12830	fi
12831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12835  $as_echo_n "(cached) " >&6
12836else
12837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838/* end confdefs.h.  */
12839int i;
12840_ACEOF
12841if ac_fn_c_try_compile "$LINENO"; then :
12842  xorg_cv_cc_flag_unused_command_line_argument=yes
12843else
12844  xorg_cv_cc_flag_unused_command_line_argument=no
12845fi
12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847fi
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12851	CFLAGS="$xorg_testset_save_CFLAGS"
12852fi
12853
12854found="no"
12855
12856	if test $found = "no" ; then
12857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12859		fi
12860
12861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12863		fi
12864
12865		CFLAGS="$CFLAGS -Wall"
12866
12867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12868$as_echo_n "checking if $CC supports -Wall... " >&6; }
12869		cacheid=xorg_cv_cc_flag__Wall
12870		if eval \${$cacheid+:} false; then :
12871  $as_echo_n "(cached) " >&6
12872else
12873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874/* end confdefs.h.  */
12875int i;
12876int
12877main ()
12878{
12879
12880  ;
12881  return 0;
12882}
12883_ACEOF
12884if ac_fn_c_try_link "$LINENO"; then :
12885  eval $cacheid=yes
12886else
12887  eval $cacheid=no
12888fi
12889rm -f core conftest.err conftest.$ac_objext \
12890    conftest$ac_exeext conftest.$ac_ext
12891fi
12892
12893
12894		CFLAGS="$xorg_testset_save_CFLAGS"
12895
12896		eval supported=\$$cacheid
12897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12898$as_echo "$supported" >&6; }
12899		if test "$supported" = "yes" ; then
12900			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12901			found="yes"
12902		fi
12903	fi
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919xorg_testset_save_CFLAGS="$CFLAGS"
12920
12921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930int i;
12931_ACEOF
12932if ac_fn_c_try_compile "$LINENO"; then :
12933  xorg_cv_cc_flag_unknown_warning_option=yes
12934else
12935  xorg_cv_cc_flag_unknown_warning_option=no
12936fi
12937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12942	CFLAGS="$xorg_testset_save_CFLAGS"
12943fi
12944
12945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12948	fi
12949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12953  $as_echo_n "(cached) " >&6
12954else
12955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956/* end confdefs.h.  */
12957int i;
12958_ACEOF
12959if ac_fn_c_try_compile "$LINENO"; then :
12960  xorg_cv_cc_flag_unused_command_line_argument=yes
12961else
12962  xorg_cv_cc_flag_unused_command_line_argument=no
12963fi
12964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12965fi
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12969	CFLAGS="$xorg_testset_save_CFLAGS"
12970fi
12971
12972found="no"
12973
12974	if test $found = "no" ; then
12975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12977		fi
12978
12979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12981		fi
12982
12983		CFLAGS="$CFLAGS -Wpointer-arith"
12984
12985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12986$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12987		cacheid=xorg_cv_cc_flag__Wpointer_arith
12988		if eval \${$cacheid+:} false; then :
12989  $as_echo_n "(cached) " >&6
12990else
12991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992/* end confdefs.h.  */
12993int i;
12994int
12995main ()
12996{
12997
12998  ;
12999  return 0;
13000}
13001_ACEOF
13002if ac_fn_c_try_link "$LINENO"; then :
13003  eval $cacheid=yes
13004else
13005  eval $cacheid=no
13006fi
13007rm -f core conftest.err conftest.$ac_objext \
13008    conftest$ac_exeext conftest.$ac_ext
13009fi
13010
13011
13012		CFLAGS="$xorg_testset_save_CFLAGS"
13013
13014		eval supported=\$$cacheid
13015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13016$as_echo "$supported" >&6; }
13017		if test "$supported" = "yes" ; then
13018			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13019			found="yes"
13020		fi
13021	fi
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037xorg_testset_save_CFLAGS="$CFLAGS"
13038
13039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047/* end confdefs.h.  */
13048int i;
13049_ACEOF
13050if ac_fn_c_try_compile "$LINENO"; then :
13051  xorg_cv_cc_flag_unknown_warning_option=yes
13052else
13053  xorg_cv_cc_flag_unknown_warning_option=no
13054fi
13055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056fi
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13060	CFLAGS="$xorg_testset_save_CFLAGS"
13061fi
13062
13063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13066	fi
13067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13071  $as_echo_n "(cached) " >&6
13072else
13073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h.  */
13075int i;
13076_ACEOF
13077if ac_fn_c_try_compile "$LINENO"; then :
13078  xorg_cv_cc_flag_unused_command_line_argument=yes
13079else
13080  xorg_cv_cc_flag_unused_command_line_argument=no
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13087	CFLAGS="$xorg_testset_save_CFLAGS"
13088fi
13089
13090found="no"
13091
13092	if test $found = "no" ; then
13093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13095		fi
13096
13097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13099		fi
13100
13101		CFLAGS="$CFLAGS -Wmissing-declarations"
13102
13103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13104$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13105		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13106		if eval \${$cacheid+:} false; then :
13107  $as_echo_n "(cached) " >&6
13108else
13109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110/* end confdefs.h.  */
13111int i;
13112int
13113main ()
13114{
13115
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120if ac_fn_c_try_link "$LINENO"; then :
13121  eval $cacheid=yes
13122else
13123  eval $cacheid=no
13124fi
13125rm -f core conftest.err conftest.$ac_objext \
13126    conftest$ac_exeext conftest.$ac_ext
13127fi
13128
13129
13130		CFLAGS="$xorg_testset_save_CFLAGS"
13131
13132		eval supported=\$$cacheid
13133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13134$as_echo "$supported" >&6; }
13135		if test "$supported" = "yes" ; then
13136			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13137			found="yes"
13138		fi
13139	fi
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155xorg_testset_save_CFLAGS="$CFLAGS"
13156
13157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13162  $as_echo_n "(cached) " >&6
13163else
13164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166int i;
13167_ACEOF
13168if ac_fn_c_try_compile "$LINENO"; then :
13169  xorg_cv_cc_flag_unknown_warning_option=yes
13170else
13171  xorg_cv_cc_flag_unknown_warning_option=no
13172fi
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13178	CFLAGS="$xorg_testset_save_CFLAGS"
13179fi
13180
13181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13184	fi
13185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193int i;
13194_ACEOF
13195if ac_fn_c_try_compile "$LINENO"; then :
13196  xorg_cv_cc_flag_unused_command_line_argument=yes
13197else
13198  xorg_cv_cc_flag_unused_command_line_argument=no
13199fi
13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201fi
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13205	CFLAGS="$xorg_testset_save_CFLAGS"
13206fi
13207
13208found="no"
13209
13210	if test $found = "no" ; then
13211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213		fi
13214
13215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13217		fi
13218
13219		CFLAGS="$CFLAGS -Wformat=2"
13220
13221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13222$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13223		cacheid=xorg_cv_cc_flag__Wformat_2
13224		if eval \${$cacheid+:} false; then :
13225  $as_echo_n "(cached) " >&6
13226else
13227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228/* end confdefs.h.  */
13229int i;
13230int
13231main ()
13232{
13233
13234  ;
13235  return 0;
13236}
13237_ACEOF
13238if ac_fn_c_try_link "$LINENO"; then :
13239  eval $cacheid=yes
13240else
13241  eval $cacheid=no
13242fi
13243rm -f core conftest.err conftest.$ac_objext \
13244    conftest$ac_exeext conftest.$ac_ext
13245fi
13246
13247
13248		CFLAGS="$xorg_testset_save_CFLAGS"
13249
13250		eval supported=\$$cacheid
13251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13252$as_echo "$supported" >&6; }
13253		if test "$supported" = "yes" ; then
13254			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13255			found="yes"
13256		fi
13257	fi
13258
13259	if test $found = "no" ; then
13260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13262		fi
13263
13264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13266		fi
13267
13268		CFLAGS="$CFLAGS -Wformat"
13269
13270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13271$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13272		cacheid=xorg_cv_cc_flag__Wformat
13273		if eval \${$cacheid+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278int i;
13279int
13280main ()
13281{
13282
13283  ;
13284  return 0;
13285}
13286_ACEOF
13287if ac_fn_c_try_link "$LINENO"; then :
13288  eval $cacheid=yes
13289else
13290  eval $cacheid=no
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
13293    conftest$ac_exeext conftest.$ac_ext
13294fi
13295
13296
13297		CFLAGS="$xorg_testset_save_CFLAGS"
13298
13299		eval supported=\$$cacheid
13300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13301$as_echo "$supported" >&6; }
13302		if test "$supported" = "yes" ; then
13303			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13304			found="yes"
13305		fi
13306	fi
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324xorg_testset_save_CFLAGS="$CFLAGS"
13325
13326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13331  $as_echo_n "(cached) " >&6
13332else
13333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335int i;
13336_ACEOF
13337if ac_fn_c_try_compile "$LINENO"; then :
13338  xorg_cv_cc_flag_unknown_warning_option=yes
13339else
13340  xorg_cv_cc_flag_unknown_warning_option=no
13341fi
13342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343fi
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13347	CFLAGS="$xorg_testset_save_CFLAGS"
13348fi
13349
13350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353	fi
13354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13358  $as_echo_n "(cached) " >&6
13359else
13360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362int i;
13363_ACEOF
13364if ac_fn_c_try_compile "$LINENO"; then :
13365  xorg_cv_cc_flag_unused_command_line_argument=yes
13366else
13367  xorg_cv_cc_flag_unused_command_line_argument=no
13368fi
13369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370fi
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13374	CFLAGS="$xorg_testset_save_CFLAGS"
13375fi
13376
13377found="no"
13378
13379	if test $found = "no" ; then
13380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13382		fi
13383
13384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13386		fi
13387
13388		CFLAGS="$CFLAGS -Wstrict-prototypes"
13389
13390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13391$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13392		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13393		if eval \${$cacheid+:} false; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397/* end confdefs.h.  */
13398int i;
13399int
13400main ()
13401{
13402
13403  ;
13404  return 0;
13405}
13406_ACEOF
13407if ac_fn_c_try_link "$LINENO"; then :
13408  eval $cacheid=yes
13409else
13410  eval $cacheid=no
13411fi
13412rm -f core conftest.err conftest.$ac_objext \
13413    conftest$ac_exeext conftest.$ac_ext
13414fi
13415
13416
13417		CFLAGS="$xorg_testset_save_CFLAGS"
13418
13419		eval supported=\$$cacheid
13420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13421$as_echo "$supported" >&6; }
13422		if test "$supported" = "yes" ; then
13423			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13424			found="yes"
13425		fi
13426	fi
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442xorg_testset_save_CFLAGS="$CFLAGS"
13443
13444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13449  $as_echo_n "(cached) " >&6
13450else
13451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452/* end confdefs.h.  */
13453int i;
13454_ACEOF
13455if ac_fn_c_try_compile "$LINENO"; then :
13456  xorg_cv_cc_flag_unknown_warning_option=yes
13457else
13458  xorg_cv_cc_flag_unknown_warning_option=no
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13465	CFLAGS="$xorg_testset_save_CFLAGS"
13466fi
13467
13468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13471	fi
13472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480int i;
13481_ACEOF
13482if ac_fn_c_try_compile "$LINENO"; then :
13483  xorg_cv_cc_flag_unused_command_line_argument=yes
13484else
13485  xorg_cv_cc_flag_unused_command_line_argument=no
13486fi
13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488fi
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13492	CFLAGS="$xorg_testset_save_CFLAGS"
13493fi
13494
13495found="no"
13496
13497	if test $found = "no" ; then
13498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13500		fi
13501
13502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13504		fi
13505
13506		CFLAGS="$CFLAGS -Wmissing-prototypes"
13507
13508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13509$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13510		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13511		if eval \${$cacheid+:} false; then :
13512  $as_echo_n "(cached) " >&6
13513else
13514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515/* end confdefs.h.  */
13516int i;
13517int
13518main ()
13519{
13520
13521  ;
13522  return 0;
13523}
13524_ACEOF
13525if ac_fn_c_try_link "$LINENO"; then :
13526  eval $cacheid=yes
13527else
13528  eval $cacheid=no
13529fi
13530rm -f core conftest.err conftest.$ac_objext \
13531    conftest$ac_exeext conftest.$ac_ext
13532fi
13533
13534
13535		CFLAGS="$xorg_testset_save_CFLAGS"
13536
13537		eval supported=\$$cacheid
13538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13539$as_echo "$supported" >&6; }
13540		if test "$supported" = "yes" ; then
13541			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13542			found="yes"
13543		fi
13544	fi
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560xorg_testset_save_CFLAGS="$CFLAGS"
13561
13562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571int i;
13572_ACEOF
13573if ac_fn_c_try_compile "$LINENO"; then :
13574  xorg_cv_cc_flag_unknown_warning_option=yes
13575else
13576  xorg_cv_cc_flag_unknown_warning_option=no
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579fi
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13583	CFLAGS="$xorg_testset_save_CFLAGS"
13584fi
13585
13586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589	fi
13590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13594  $as_echo_n "(cached) " >&6
13595else
13596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597/* end confdefs.h.  */
13598int i;
13599_ACEOF
13600if ac_fn_c_try_compile "$LINENO"; then :
13601  xorg_cv_cc_flag_unused_command_line_argument=yes
13602else
13603  xorg_cv_cc_flag_unused_command_line_argument=no
13604fi
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606fi
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13610	CFLAGS="$xorg_testset_save_CFLAGS"
13611fi
13612
13613found="no"
13614
13615	if test $found = "no" ; then
13616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13618		fi
13619
13620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13622		fi
13623
13624		CFLAGS="$CFLAGS -Wnested-externs"
13625
13626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13627$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13628		cacheid=xorg_cv_cc_flag__Wnested_externs
13629		if eval \${$cacheid+:} false; then :
13630  $as_echo_n "(cached) " >&6
13631else
13632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633/* end confdefs.h.  */
13634int i;
13635int
13636main ()
13637{
13638
13639  ;
13640  return 0;
13641}
13642_ACEOF
13643if ac_fn_c_try_link "$LINENO"; then :
13644  eval $cacheid=yes
13645else
13646  eval $cacheid=no
13647fi
13648rm -f core conftest.err conftest.$ac_objext \
13649    conftest$ac_exeext conftest.$ac_ext
13650fi
13651
13652
13653		CFLAGS="$xorg_testset_save_CFLAGS"
13654
13655		eval supported=\$$cacheid
13656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13657$as_echo "$supported" >&6; }
13658		if test "$supported" = "yes" ; then
13659			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13660			found="yes"
13661		fi
13662	fi
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678xorg_testset_save_CFLAGS="$CFLAGS"
13679
13680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13685  $as_echo_n "(cached) " >&6
13686else
13687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688/* end confdefs.h.  */
13689int i;
13690_ACEOF
13691if ac_fn_c_try_compile "$LINENO"; then :
13692  xorg_cv_cc_flag_unknown_warning_option=yes
13693else
13694  xorg_cv_cc_flag_unknown_warning_option=no
13695fi
13696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697fi
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13701	CFLAGS="$xorg_testset_save_CFLAGS"
13702fi
13703
13704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13707	fi
13708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13712  $as_echo_n "(cached) " >&6
13713else
13714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715/* end confdefs.h.  */
13716int i;
13717_ACEOF
13718if ac_fn_c_try_compile "$LINENO"; then :
13719  xorg_cv_cc_flag_unused_command_line_argument=yes
13720else
13721  xorg_cv_cc_flag_unused_command_line_argument=no
13722fi
13723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724fi
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13728	CFLAGS="$xorg_testset_save_CFLAGS"
13729fi
13730
13731found="no"
13732
13733	if test $found = "no" ; then
13734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13736		fi
13737
13738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13740		fi
13741
13742		CFLAGS="$CFLAGS -Wbad-function-cast"
13743
13744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13745$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13746		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13747		if eval \${$cacheid+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751/* end confdefs.h.  */
13752int i;
13753int
13754main ()
13755{
13756
13757  ;
13758  return 0;
13759}
13760_ACEOF
13761if ac_fn_c_try_link "$LINENO"; then :
13762  eval $cacheid=yes
13763else
13764  eval $cacheid=no
13765fi
13766rm -f core conftest.err conftest.$ac_objext \
13767    conftest$ac_exeext conftest.$ac_ext
13768fi
13769
13770
13771		CFLAGS="$xorg_testset_save_CFLAGS"
13772
13773		eval supported=\$$cacheid
13774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13775$as_echo "$supported" >&6; }
13776		if test "$supported" = "yes" ; then
13777			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13778			found="yes"
13779		fi
13780	fi
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796xorg_testset_save_CFLAGS="$CFLAGS"
13797
13798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13803  $as_echo_n "(cached) " >&6
13804else
13805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806/* end confdefs.h.  */
13807int i;
13808_ACEOF
13809if ac_fn_c_try_compile "$LINENO"; then :
13810  xorg_cv_cc_flag_unknown_warning_option=yes
13811else
13812  xorg_cv_cc_flag_unknown_warning_option=no
13813fi
13814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815fi
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13819	CFLAGS="$xorg_testset_save_CFLAGS"
13820fi
13821
13822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825	fi
13826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833/* end confdefs.h.  */
13834int i;
13835_ACEOF
13836if ac_fn_c_try_compile "$LINENO"; then :
13837  xorg_cv_cc_flag_unused_command_line_argument=yes
13838else
13839  xorg_cv_cc_flag_unused_command_line_argument=no
13840fi
13841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13846	CFLAGS="$xorg_testset_save_CFLAGS"
13847fi
13848
13849found="no"
13850
13851	if test $found = "no" ; then
13852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13854		fi
13855
13856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13858		fi
13859
13860		CFLAGS="$CFLAGS -Wold-style-definition"
13861
13862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13863$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13864		cacheid=xorg_cv_cc_flag__Wold_style_definition
13865		if eval \${$cacheid+:} false; then :
13866  $as_echo_n "(cached) " >&6
13867else
13868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h.  */
13870int i;
13871int
13872main ()
13873{
13874
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_link "$LINENO"; then :
13880  eval $cacheid=yes
13881else
13882  eval $cacheid=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext \
13885    conftest$ac_exeext conftest.$ac_ext
13886fi
13887
13888
13889		CFLAGS="$xorg_testset_save_CFLAGS"
13890
13891		eval supported=\$$cacheid
13892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13893$as_echo "$supported" >&6; }
13894		if test "$supported" = "yes" ; then
13895			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13896			found="yes"
13897		fi
13898	fi
13899
13900	if test $found = "no" ; then
13901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903		fi
13904
13905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13907		fi
13908
13909		CFLAGS="$CFLAGS -fd"
13910
13911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13912$as_echo_n "checking if $CC supports -fd... " >&6; }
13913		cacheid=xorg_cv_cc_flag__fd
13914		if eval \${$cacheid+:} false; then :
13915  $as_echo_n "(cached) " >&6
13916else
13917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918/* end confdefs.h.  */
13919int i;
13920int
13921main ()
13922{
13923
13924  ;
13925  return 0;
13926}
13927_ACEOF
13928if ac_fn_c_try_link "$LINENO"; then :
13929  eval $cacheid=yes
13930else
13931  eval $cacheid=no
13932fi
13933rm -f core conftest.err conftest.$ac_objext \
13934    conftest$ac_exeext conftest.$ac_ext
13935fi
13936
13937
13938		CFLAGS="$xorg_testset_save_CFLAGS"
13939
13940		eval supported=\$$cacheid
13941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13942$as_echo "$supported" >&6; }
13943		if test "$supported" = "yes" ; then
13944			BASE_CFLAGS="$BASE_CFLAGS -fd"
13945			found="yes"
13946		fi
13947	fi
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963xorg_testset_save_CFLAGS="$CFLAGS"
13964
13965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13970  $as_echo_n "(cached) " >&6
13971else
13972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973/* end confdefs.h.  */
13974int i;
13975_ACEOF
13976if ac_fn_c_try_compile "$LINENO"; then :
13977  xorg_cv_cc_flag_unknown_warning_option=yes
13978else
13979  xorg_cv_cc_flag_unknown_warning_option=no
13980fi
13981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982fi
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13986	CFLAGS="$xorg_testset_save_CFLAGS"
13987fi
13988
13989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992	fi
13993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000/* end confdefs.h.  */
14001int i;
14002_ACEOF
14003if ac_fn_c_try_compile "$LINENO"; then :
14004  xorg_cv_cc_flag_unused_command_line_argument=yes
14005else
14006  xorg_cv_cc_flag_unused_command_line_argument=no
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14013	CFLAGS="$xorg_testset_save_CFLAGS"
14014fi
14015
14016found="no"
14017
14018	if test $found = "no" ; then
14019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14021		fi
14022
14023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14025		fi
14026
14027		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14028
14029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14030$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14031		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14032		if eval \${$cacheid+:} false; then :
14033  $as_echo_n "(cached) " >&6
14034else
14035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h.  */
14037int i;
14038int
14039main ()
14040{
14041
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"; then :
14047  eval $cacheid=yes
14048else
14049  eval $cacheid=no
14050fi
14051rm -f core conftest.err conftest.$ac_objext \
14052    conftest$ac_exeext conftest.$ac_ext
14053fi
14054
14055
14056		CFLAGS="$xorg_testset_save_CFLAGS"
14057
14058		eval supported=\$$cacheid
14059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14060$as_echo "$supported" >&6; }
14061		if test "$supported" = "yes" ; then
14062			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14063			found="yes"
14064		fi
14065	fi
14066
14067
14068
14069
14070
14071# This chunk adds additional warnings that could catch undesired effects.
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085xorg_testset_save_CFLAGS="$CFLAGS"
14086
14087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097_ACEOF
14098if ac_fn_c_try_compile "$LINENO"; then :
14099  xorg_cv_cc_flag_unknown_warning_option=yes
14100else
14101  xorg_cv_cc_flag_unknown_warning_option=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14108	CFLAGS="$xorg_testset_save_CFLAGS"
14109fi
14110
14111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14114	fi
14115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14119  $as_echo_n "(cached) " >&6
14120else
14121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123int i;
14124_ACEOF
14125if ac_fn_c_try_compile "$LINENO"; then :
14126  xorg_cv_cc_flag_unused_command_line_argument=yes
14127else
14128  xorg_cv_cc_flag_unused_command_line_argument=no
14129fi
14130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131fi
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14135	CFLAGS="$xorg_testset_save_CFLAGS"
14136fi
14137
14138found="no"
14139
14140	if test $found = "no" ; then
14141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143		fi
14144
14145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14147		fi
14148
14149		CFLAGS="$CFLAGS -Wunused"
14150
14151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14152$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14153		cacheid=xorg_cv_cc_flag__Wunused
14154		if eval \${$cacheid+:} false; then :
14155  $as_echo_n "(cached) " >&6
14156else
14157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158/* end confdefs.h.  */
14159int i;
14160int
14161main ()
14162{
14163
14164  ;
14165  return 0;
14166}
14167_ACEOF
14168if ac_fn_c_try_link "$LINENO"; then :
14169  eval $cacheid=yes
14170else
14171  eval $cacheid=no
14172fi
14173rm -f core conftest.err conftest.$ac_objext \
14174    conftest$ac_exeext conftest.$ac_ext
14175fi
14176
14177
14178		CFLAGS="$xorg_testset_save_CFLAGS"
14179
14180		eval supported=\$$cacheid
14181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14182$as_echo "$supported" >&6; }
14183		if test "$supported" = "yes" ; then
14184			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14185			found="yes"
14186		fi
14187	fi
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203xorg_testset_save_CFLAGS="$CFLAGS"
14204
14205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"; then :
14217  xorg_cv_cc_flag_unknown_warning_option=yes
14218else
14219  xorg_cv_cc_flag_unknown_warning_option=no
14220fi
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14226	CFLAGS="$xorg_testset_save_CFLAGS"
14227fi
14228
14229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14232	fi
14233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14237  $as_echo_n "(cached) " >&6
14238else
14239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241int i;
14242_ACEOF
14243if ac_fn_c_try_compile "$LINENO"; then :
14244  xorg_cv_cc_flag_unused_command_line_argument=yes
14245else
14246  xorg_cv_cc_flag_unused_command_line_argument=no
14247fi
14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14253	CFLAGS="$xorg_testset_save_CFLAGS"
14254fi
14255
14256found="no"
14257
14258	if test $found = "no" ; then
14259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14261		fi
14262
14263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14265		fi
14266
14267		CFLAGS="$CFLAGS -Wuninitialized"
14268
14269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14270$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14271		cacheid=xorg_cv_cc_flag__Wuninitialized
14272		if eval \${$cacheid+:} false; then :
14273  $as_echo_n "(cached) " >&6
14274else
14275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h.  */
14277int i;
14278int
14279main ()
14280{
14281
14282  ;
14283  return 0;
14284}
14285_ACEOF
14286if ac_fn_c_try_link "$LINENO"; then :
14287  eval $cacheid=yes
14288else
14289  eval $cacheid=no
14290fi
14291rm -f core conftest.err conftest.$ac_objext \
14292    conftest$ac_exeext conftest.$ac_ext
14293fi
14294
14295
14296		CFLAGS="$xorg_testset_save_CFLAGS"
14297
14298		eval supported=\$$cacheid
14299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14300$as_echo "$supported" >&6; }
14301		if test "$supported" = "yes" ; then
14302			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14303			found="yes"
14304		fi
14305	fi
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321xorg_testset_save_CFLAGS="$CFLAGS"
14322
14323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h.  */
14332int i;
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"; then :
14335  xorg_cv_cc_flag_unknown_warning_option=yes
14336else
14337  xorg_cv_cc_flag_unknown_warning_option=no
14338fi
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340fi
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14344	CFLAGS="$xorg_testset_save_CFLAGS"
14345fi
14346
14347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14350	fi
14351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14355  $as_echo_n "(cached) " >&6
14356else
14357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h.  */
14359int i;
14360_ACEOF
14361if ac_fn_c_try_compile "$LINENO"; then :
14362  xorg_cv_cc_flag_unused_command_line_argument=yes
14363else
14364  xorg_cv_cc_flag_unused_command_line_argument=no
14365fi
14366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367fi
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371	CFLAGS="$xorg_testset_save_CFLAGS"
14372fi
14373
14374found="no"
14375
14376	if test $found = "no" ; then
14377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379		fi
14380
14381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383		fi
14384
14385		CFLAGS="$CFLAGS -Wshadow"
14386
14387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14388$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14389		cacheid=xorg_cv_cc_flag__Wshadow
14390		if eval \${$cacheid+:} false; then :
14391  $as_echo_n "(cached) " >&6
14392else
14393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394/* end confdefs.h.  */
14395int i;
14396int
14397main ()
14398{
14399
14400  ;
14401  return 0;
14402}
14403_ACEOF
14404if ac_fn_c_try_link "$LINENO"; then :
14405  eval $cacheid=yes
14406else
14407  eval $cacheid=no
14408fi
14409rm -f core conftest.err conftest.$ac_objext \
14410    conftest$ac_exeext conftest.$ac_ext
14411fi
14412
14413
14414		CFLAGS="$xorg_testset_save_CFLAGS"
14415
14416		eval supported=\$$cacheid
14417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418$as_echo "$supported" >&6; }
14419		if test "$supported" = "yes" ; then
14420			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14421			found="yes"
14422		fi
14423	fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439xorg_testset_save_CFLAGS="$CFLAGS"
14440
14441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14446  $as_echo_n "(cached) " >&6
14447else
14448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450int i;
14451_ACEOF
14452if ac_fn_c_try_compile "$LINENO"; then :
14453  xorg_cv_cc_flag_unknown_warning_option=yes
14454else
14455  xorg_cv_cc_flag_unknown_warning_option=no
14456fi
14457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458fi
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14462	CFLAGS="$xorg_testset_save_CFLAGS"
14463fi
14464
14465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468	fi
14469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14473  $as_echo_n "(cached) " >&6
14474else
14475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h.  */
14477int i;
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
14480  xorg_cv_cc_flag_unused_command_line_argument=yes
14481else
14482  xorg_cv_cc_flag_unused_command_line_argument=no
14483fi
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485fi
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14489	CFLAGS="$xorg_testset_save_CFLAGS"
14490fi
14491
14492found="no"
14493
14494	if test $found = "no" ; then
14495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497		fi
14498
14499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14501		fi
14502
14503		CFLAGS="$CFLAGS -Wmissing-noreturn"
14504
14505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14506$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14507		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14508		if eval \${$cacheid+:} false; then :
14509  $as_echo_n "(cached) " >&6
14510else
14511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h.  */
14513int i;
14514int
14515main ()
14516{
14517
14518  ;
14519  return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523  eval $cacheid=yes
14524else
14525  eval $cacheid=no
14526fi
14527rm -f core conftest.err conftest.$ac_objext \
14528    conftest$ac_exeext conftest.$ac_ext
14529fi
14530
14531
14532		CFLAGS="$xorg_testset_save_CFLAGS"
14533
14534		eval supported=\$$cacheid
14535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536$as_echo "$supported" >&6; }
14537		if test "$supported" = "yes" ; then
14538			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14539			found="yes"
14540		fi
14541	fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557xorg_testset_save_CFLAGS="$CFLAGS"
14558
14559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h.  */
14568int i;
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571  xorg_cv_cc_flag_unknown_warning_option=yes
14572else
14573  xorg_cv_cc_flag_unknown_warning_option=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14580	CFLAGS="$xorg_testset_save_CFLAGS"
14581fi
14582
14583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14586	fi
14587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14591  $as_echo_n "(cached) " >&6
14592else
14593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h.  */
14595int i;
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"; then :
14598  xorg_cv_cc_flag_unused_command_line_argument=yes
14599else
14600  xorg_cv_cc_flag_unused_command_line_argument=no
14601fi
14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14607	CFLAGS="$xorg_testset_save_CFLAGS"
14608fi
14609
14610found="no"
14611
14612	if test $found = "no" ; then
14613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14615		fi
14616
14617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14619		fi
14620
14621		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14622
14623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14624$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14625		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14626		if eval \${$cacheid+:} false; then :
14627  $as_echo_n "(cached) " >&6
14628else
14629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630/* end confdefs.h.  */
14631int i;
14632int
14633main ()
14634{
14635
14636  ;
14637  return 0;
14638}
14639_ACEOF
14640if ac_fn_c_try_link "$LINENO"; then :
14641  eval $cacheid=yes
14642else
14643  eval $cacheid=no
14644fi
14645rm -f core conftest.err conftest.$ac_objext \
14646    conftest$ac_exeext conftest.$ac_ext
14647fi
14648
14649
14650		CFLAGS="$xorg_testset_save_CFLAGS"
14651
14652		eval supported=\$$cacheid
14653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14654$as_echo "$supported" >&6; }
14655		if test "$supported" = "yes" ; then
14656			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14657			found="yes"
14658		fi
14659	fi
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675xorg_testset_save_CFLAGS="$CFLAGS"
14676
14677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14682  $as_echo_n "(cached) " >&6
14683else
14684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685/* end confdefs.h.  */
14686int i;
14687_ACEOF
14688if ac_fn_c_try_compile "$LINENO"; then :
14689  xorg_cv_cc_flag_unknown_warning_option=yes
14690else
14691  xorg_cv_cc_flag_unknown_warning_option=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694fi
14695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14698	CFLAGS="$xorg_testset_save_CFLAGS"
14699fi
14700
14701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704	fi
14705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14709  $as_echo_n "(cached) " >&6
14710else
14711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713int i;
14714_ACEOF
14715if ac_fn_c_try_compile "$LINENO"; then :
14716  xorg_cv_cc_flag_unused_command_line_argument=yes
14717else
14718  xorg_cv_cc_flag_unused_command_line_argument=no
14719fi
14720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721fi
14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14725	CFLAGS="$xorg_testset_save_CFLAGS"
14726fi
14727
14728found="no"
14729
14730	if test $found = "no" ; then
14731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14733		fi
14734
14735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14737		fi
14738
14739		CFLAGS="$CFLAGS -Wredundant-decls"
14740
14741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14742$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14743		cacheid=xorg_cv_cc_flag__Wredundant_decls
14744		if eval \${$cacheid+:} false; then :
14745  $as_echo_n "(cached) " >&6
14746else
14747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748/* end confdefs.h.  */
14749int i;
14750int
14751main ()
14752{
14753
14754  ;
14755  return 0;
14756}
14757_ACEOF
14758if ac_fn_c_try_link "$LINENO"; then :
14759  eval $cacheid=yes
14760else
14761  eval $cacheid=no
14762fi
14763rm -f core conftest.err conftest.$ac_objext \
14764    conftest$ac_exeext conftest.$ac_ext
14765fi
14766
14767
14768		CFLAGS="$xorg_testset_save_CFLAGS"
14769
14770		eval supported=\$$cacheid
14771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14772$as_echo "$supported" >&6; }
14773		if test "$supported" = "yes" ; then
14774			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14775			found="yes"
14776		fi
14777	fi
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793xorg_testset_save_CFLAGS="$CFLAGS"
14794
14795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14800  $as_echo_n "(cached) " >&6
14801else
14802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803/* end confdefs.h.  */
14804int i;
14805_ACEOF
14806if ac_fn_c_try_compile "$LINENO"; then :
14807  xorg_cv_cc_flag_unknown_warning_option=yes
14808else
14809  xorg_cv_cc_flag_unknown_warning_option=no
14810fi
14811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812fi
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14816	CFLAGS="$xorg_testset_save_CFLAGS"
14817fi
14818
14819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822	fi
14823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14827  $as_echo_n "(cached) " >&6
14828else
14829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831int i;
14832_ACEOF
14833if ac_fn_c_try_compile "$LINENO"; then :
14834  xorg_cv_cc_flag_unused_command_line_argument=yes
14835else
14836  xorg_cv_cc_flag_unused_command_line_argument=no
14837fi
14838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839fi
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14843	CFLAGS="$xorg_testset_save_CFLAGS"
14844fi
14845
14846found="no"
14847
14848	if test $found = "no" ; then
14849		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851		fi
14852
14853		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14855		fi
14856
14857		CFLAGS="$CFLAGS -Wlogical-op"
14858
14859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14860$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14861		cacheid=xorg_cv_cc_flag__Wlogical_op
14862		if eval \${$cacheid+:} false; then :
14863  $as_echo_n "(cached) " >&6
14864else
14865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h.  */
14867int i;
14868int
14869main ()
14870{
14871
14872  ;
14873  return 0;
14874}
14875_ACEOF
14876if ac_fn_c_try_link "$LINENO"; then :
14877  eval $cacheid=yes
14878else
14879  eval $cacheid=no
14880fi
14881rm -f core conftest.err conftest.$ac_objext \
14882    conftest$ac_exeext conftest.$ac_ext
14883fi
14884
14885
14886		CFLAGS="$xorg_testset_save_CFLAGS"
14887
14888		eval supported=\$$cacheid
14889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14890$as_echo "$supported" >&6; }
14891		if test "$supported" = "yes" ; then
14892			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14893			found="yes"
14894		fi
14895	fi
14896
14897
14898
14899# These are currently disabled because they are noisy.  They will be enabled
14900# in the future once the codebase is sufficiently modernized to silence
14901# them.  For now, I don't want them to drown out the other warnings.
14902# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14903# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14904# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14905
14906# Turn some warnings into errors, so we don't accidently get successful builds
14907# when there are problems that should be fixed.
14908
14909if test "x$SELECTIVE_WERROR" = "xyes" ; then
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923xorg_testset_save_CFLAGS="$CFLAGS"
14924
14925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14930  $as_echo_n "(cached) " >&6
14931else
14932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933/* end confdefs.h.  */
14934int i;
14935_ACEOF
14936if ac_fn_c_try_compile "$LINENO"; then :
14937  xorg_cv_cc_flag_unknown_warning_option=yes
14938else
14939  xorg_cv_cc_flag_unknown_warning_option=no
14940fi
14941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942fi
14943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14946	CFLAGS="$xorg_testset_save_CFLAGS"
14947fi
14948
14949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952	fi
14953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14957  $as_echo_n "(cached) " >&6
14958else
14959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961int i;
14962_ACEOF
14963if ac_fn_c_try_compile "$LINENO"; then :
14964  xorg_cv_cc_flag_unused_command_line_argument=yes
14965else
14966  xorg_cv_cc_flag_unused_command_line_argument=no
14967fi
14968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969fi
14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14973	CFLAGS="$xorg_testset_save_CFLAGS"
14974fi
14975
14976found="no"
14977
14978	if test $found = "no" ; then
14979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14981		fi
14982
14983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14985		fi
14986
14987		CFLAGS="$CFLAGS -Werror=implicit"
14988
14989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14990$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14991		cacheid=xorg_cv_cc_flag__Werror_implicit
14992		if eval \${$cacheid+:} false; then :
14993  $as_echo_n "(cached) " >&6
14994else
14995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996/* end confdefs.h.  */
14997int i;
14998int
14999main ()
15000{
15001
15002  ;
15003  return 0;
15004}
15005_ACEOF
15006if ac_fn_c_try_link "$LINENO"; then :
15007  eval $cacheid=yes
15008else
15009  eval $cacheid=no
15010fi
15011rm -f core conftest.err conftest.$ac_objext \
15012    conftest$ac_exeext conftest.$ac_ext
15013fi
15014
15015
15016		CFLAGS="$xorg_testset_save_CFLAGS"
15017
15018		eval supported=\$$cacheid
15019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15020$as_echo "$supported" >&6; }
15021		if test "$supported" = "yes" ; then
15022			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15023			found="yes"
15024		fi
15025	fi
15026
15027	if test $found = "no" ; then
15028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030		fi
15031
15032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15034		fi
15035
15036		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15037
15038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15039$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15040		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15041		if eval \${$cacheid+:} false; then :
15042  $as_echo_n "(cached) " >&6
15043else
15044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h.  */
15046int i;
15047int
15048main ()
15049{
15050
15051  ;
15052  return 0;
15053}
15054_ACEOF
15055if ac_fn_c_try_link "$LINENO"; then :
15056  eval $cacheid=yes
15057else
15058  eval $cacheid=no
15059fi
15060rm -f core conftest.err conftest.$ac_objext \
15061    conftest$ac_exeext conftest.$ac_ext
15062fi
15063
15064
15065		CFLAGS="$xorg_testset_save_CFLAGS"
15066
15067		eval supported=\$$cacheid
15068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15069$as_echo "$supported" >&6; }
15070		if test "$supported" = "yes" ; then
15071			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15072			found="yes"
15073		fi
15074	fi
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090xorg_testset_save_CFLAGS="$CFLAGS"
15091
15092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15097  $as_echo_n "(cached) " >&6
15098else
15099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h.  */
15101int i;
15102_ACEOF
15103if ac_fn_c_try_compile "$LINENO"; then :
15104  xorg_cv_cc_flag_unknown_warning_option=yes
15105else
15106  xorg_cv_cc_flag_unknown_warning_option=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15113	CFLAGS="$xorg_testset_save_CFLAGS"
15114fi
15115
15116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15119	fi
15120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15124  $as_echo_n "(cached) " >&6
15125else
15126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127/* end confdefs.h.  */
15128int i;
15129_ACEOF
15130if ac_fn_c_try_compile "$LINENO"; then :
15131  xorg_cv_cc_flag_unused_command_line_argument=yes
15132else
15133  xorg_cv_cc_flag_unused_command_line_argument=no
15134fi
15135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136fi
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15140	CFLAGS="$xorg_testset_save_CFLAGS"
15141fi
15142
15143found="no"
15144
15145	if test $found = "no" ; then
15146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15148		fi
15149
15150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15152		fi
15153
15154		CFLAGS="$CFLAGS -Werror=nonnull"
15155
15156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15157$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15158		cacheid=xorg_cv_cc_flag__Werror_nonnull
15159		if eval \${$cacheid+:} false; then :
15160  $as_echo_n "(cached) " >&6
15161else
15162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h.  */
15164int i;
15165int
15166main ()
15167{
15168
15169  ;
15170  return 0;
15171}
15172_ACEOF
15173if ac_fn_c_try_link "$LINENO"; then :
15174  eval $cacheid=yes
15175else
15176  eval $cacheid=no
15177fi
15178rm -f core conftest.err conftest.$ac_objext \
15179    conftest$ac_exeext conftest.$ac_ext
15180fi
15181
15182
15183		CFLAGS="$xorg_testset_save_CFLAGS"
15184
15185		eval supported=\$$cacheid
15186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15187$as_echo "$supported" >&6; }
15188		if test "$supported" = "yes" ; then
15189			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15190			found="yes"
15191		fi
15192	fi
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208xorg_testset_save_CFLAGS="$CFLAGS"
15209
15210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15215  $as_echo_n "(cached) " >&6
15216else
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219int i;
15220_ACEOF
15221if ac_fn_c_try_compile "$LINENO"; then :
15222  xorg_cv_cc_flag_unknown_warning_option=yes
15223else
15224  xorg_cv_cc_flag_unknown_warning_option=no
15225fi
15226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15231	CFLAGS="$xorg_testset_save_CFLAGS"
15232fi
15233
15234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237	fi
15238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15242  $as_echo_n "(cached) " >&6
15243else
15244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h.  */
15246int i;
15247_ACEOF
15248if ac_fn_c_try_compile "$LINENO"; then :
15249  xorg_cv_cc_flag_unused_command_line_argument=yes
15250else
15251  xorg_cv_cc_flag_unused_command_line_argument=no
15252fi
15253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15254fi
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15258	CFLAGS="$xorg_testset_save_CFLAGS"
15259fi
15260
15261found="no"
15262
15263	if test $found = "no" ; then
15264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15266		fi
15267
15268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270		fi
15271
15272		CFLAGS="$CFLAGS -Werror=init-self"
15273
15274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15275$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15276		cacheid=xorg_cv_cc_flag__Werror_init_self
15277		if eval \${$cacheid+:} false; then :
15278  $as_echo_n "(cached) " >&6
15279else
15280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281/* end confdefs.h.  */
15282int i;
15283int
15284main ()
15285{
15286
15287  ;
15288  return 0;
15289}
15290_ACEOF
15291if ac_fn_c_try_link "$LINENO"; then :
15292  eval $cacheid=yes
15293else
15294  eval $cacheid=no
15295fi
15296rm -f core conftest.err conftest.$ac_objext \
15297    conftest$ac_exeext conftest.$ac_ext
15298fi
15299
15300
15301		CFLAGS="$xorg_testset_save_CFLAGS"
15302
15303		eval supported=\$$cacheid
15304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15305$as_echo "$supported" >&6; }
15306		if test "$supported" = "yes" ; then
15307			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15308			found="yes"
15309		fi
15310	fi
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326xorg_testset_save_CFLAGS="$CFLAGS"
15327
15328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15333  $as_echo_n "(cached) " >&6
15334else
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337int i;
15338_ACEOF
15339if ac_fn_c_try_compile "$LINENO"; then :
15340  xorg_cv_cc_flag_unknown_warning_option=yes
15341else
15342  xorg_cv_cc_flag_unknown_warning_option=no
15343fi
15344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345fi
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15349	CFLAGS="$xorg_testset_save_CFLAGS"
15350fi
15351
15352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15355	fi
15356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15360  $as_echo_n "(cached) " >&6
15361else
15362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h.  */
15364int i;
15365_ACEOF
15366if ac_fn_c_try_compile "$LINENO"; then :
15367  xorg_cv_cc_flag_unused_command_line_argument=yes
15368else
15369  xorg_cv_cc_flag_unused_command_line_argument=no
15370fi
15371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372fi
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15376	CFLAGS="$xorg_testset_save_CFLAGS"
15377fi
15378
15379found="no"
15380
15381	if test $found = "no" ; then
15382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15384		fi
15385
15386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15388		fi
15389
15390		CFLAGS="$CFLAGS -Werror=main"
15391
15392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15393$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15394		cacheid=xorg_cv_cc_flag__Werror_main
15395		if eval \${$cacheid+:} false; then :
15396  $as_echo_n "(cached) " >&6
15397else
15398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h.  */
15400int i;
15401int
15402main ()
15403{
15404
15405  ;
15406  return 0;
15407}
15408_ACEOF
15409if ac_fn_c_try_link "$LINENO"; then :
15410  eval $cacheid=yes
15411else
15412  eval $cacheid=no
15413fi
15414rm -f core conftest.err conftest.$ac_objext \
15415    conftest$ac_exeext conftest.$ac_ext
15416fi
15417
15418
15419		CFLAGS="$xorg_testset_save_CFLAGS"
15420
15421		eval supported=\$$cacheid
15422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15423$as_echo "$supported" >&6; }
15424		if test "$supported" = "yes" ; then
15425			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15426			found="yes"
15427		fi
15428	fi
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444xorg_testset_save_CFLAGS="$CFLAGS"
15445
15446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15451  $as_echo_n "(cached) " >&6
15452else
15453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455int i;
15456_ACEOF
15457if ac_fn_c_try_compile "$LINENO"; then :
15458  xorg_cv_cc_flag_unknown_warning_option=yes
15459else
15460  xorg_cv_cc_flag_unknown_warning_option=no
15461fi
15462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15467	CFLAGS="$xorg_testset_save_CFLAGS"
15468fi
15469
15470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15473	fi
15474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15478  $as_echo_n "(cached) " >&6
15479else
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482int i;
15483_ACEOF
15484if ac_fn_c_try_compile "$LINENO"; then :
15485  xorg_cv_cc_flag_unused_command_line_argument=yes
15486else
15487  xorg_cv_cc_flag_unused_command_line_argument=no
15488fi
15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490fi
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15494	CFLAGS="$xorg_testset_save_CFLAGS"
15495fi
15496
15497found="no"
15498
15499	if test $found = "no" ; then
15500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15502		fi
15503
15504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15506		fi
15507
15508		CFLAGS="$CFLAGS -Werror=missing-braces"
15509
15510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15511$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15512		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15513		if eval \${$cacheid+:} false; then :
15514  $as_echo_n "(cached) " >&6
15515else
15516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517/* end confdefs.h.  */
15518int i;
15519int
15520main ()
15521{
15522
15523  ;
15524  return 0;
15525}
15526_ACEOF
15527if ac_fn_c_try_link "$LINENO"; then :
15528  eval $cacheid=yes
15529else
15530  eval $cacheid=no
15531fi
15532rm -f core conftest.err conftest.$ac_objext \
15533    conftest$ac_exeext conftest.$ac_ext
15534fi
15535
15536
15537		CFLAGS="$xorg_testset_save_CFLAGS"
15538
15539		eval supported=\$$cacheid
15540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15541$as_echo "$supported" >&6; }
15542		if test "$supported" = "yes" ; then
15543			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15544			found="yes"
15545		fi
15546	fi
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562xorg_testset_save_CFLAGS="$CFLAGS"
15563
15564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15569  $as_echo_n "(cached) " >&6
15570else
15571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572/* end confdefs.h.  */
15573int i;
15574_ACEOF
15575if ac_fn_c_try_compile "$LINENO"; then :
15576  xorg_cv_cc_flag_unknown_warning_option=yes
15577else
15578  xorg_cv_cc_flag_unknown_warning_option=no
15579fi
15580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581fi
15582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15585	CFLAGS="$xorg_testset_save_CFLAGS"
15586fi
15587
15588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15591	fi
15592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15596  $as_echo_n "(cached) " >&6
15597else
15598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599/* end confdefs.h.  */
15600int i;
15601_ACEOF
15602if ac_fn_c_try_compile "$LINENO"; then :
15603  xorg_cv_cc_flag_unused_command_line_argument=yes
15604else
15605  xorg_cv_cc_flag_unused_command_line_argument=no
15606fi
15607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608fi
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15612	CFLAGS="$xorg_testset_save_CFLAGS"
15613fi
15614
15615found="no"
15616
15617	if test $found = "no" ; then
15618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15620		fi
15621
15622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15624		fi
15625
15626		CFLAGS="$CFLAGS -Werror=sequence-point"
15627
15628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15629$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15630		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15631		if eval \${$cacheid+:} false; then :
15632  $as_echo_n "(cached) " >&6
15633else
15634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635/* end confdefs.h.  */
15636int i;
15637int
15638main ()
15639{
15640
15641  ;
15642  return 0;
15643}
15644_ACEOF
15645if ac_fn_c_try_link "$LINENO"; then :
15646  eval $cacheid=yes
15647else
15648  eval $cacheid=no
15649fi
15650rm -f core conftest.err conftest.$ac_objext \
15651    conftest$ac_exeext conftest.$ac_ext
15652fi
15653
15654
15655		CFLAGS="$xorg_testset_save_CFLAGS"
15656
15657		eval supported=\$$cacheid
15658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15659$as_echo "$supported" >&6; }
15660		if test "$supported" = "yes" ; then
15661			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15662			found="yes"
15663		fi
15664	fi
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680xorg_testset_save_CFLAGS="$CFLAGS"
15681
15682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15687  $as_echo_n "(cached) " >&6
15688else
15689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690/* end confdefs.h.  */
15691int i;
15692_ACEOF
15693if ac_fn_c_try_compile "$LINENO"; then :
15694  xorg_cv_cc_flag_unknown_warning_option=yes
15695else
15696  xorg_cv_cc_flag_unknown_warning_option=no
15697fi
15698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699fi
15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15703	CFLAGS="$xorg_testset_save_CFLAGS"
15704fi
15705
15706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15709	fi
15710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15714  $as_echo_n "(cached) " >&6
15715else
15716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717/* end confdefs.h.  */
15718int i;
15719_ACEOF
15720if ac_fn_c_try_compile "$LINENO"; then :
15721  xorg_cv_cc_flag_unused_command_line_argument=yes
15722else
15723  xorg_cv_cc_flag_unused_command_line_argument=no
15724fi
15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726fi
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15730	CFLAGS="$xorg_testset_save_CFLAGS"
15731fi
15732
15733found="no"
15734
15735	if test $found = "no" ; then
15736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15738		fi
15739
15740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15742		fi
15743
15744		CFLAGS="$CFLAGS -Werror=return-type"
15745
15746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15747$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15748		cacheid=xorg_cv_cc_flag__Werror_return_type
15749		if eval \${$cacheid+:} false; then :
15750  $as_echo_n "(cached) " >&6
15751else
15752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753/* end confdefs.h.  */
15754int i;
15755int
15756main ()
15757{
15758
15759  ;
15760  return 0;
15761}
15762_ACEOF
15763if ac_fn_c_try_link "$LINENO"; then :
15764  eval $cacheid=yes
15765else
15766  eval $cacheid=no
15767fi
15768rm -f core conftest.err conftest.$ac_objext \
15769    conftest$ac_exeext conftest.$ac_ext
15770fi
15771
15772
15773		CFLAGS="$xorg_testset_save_CFLAGS"
15774
15775		eval supported=\$$cacheid
15776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15777$as_echo "$supported" >&6; }
15778		if test "$supported" = "yes" ; then
15779			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15780			found="yes"
15781		fi
15782	fi
15783
15784	if test $found = "no" ; then
15785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15787		fi
15788
15789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791		fi
15792
15793		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15794
15795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15796$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15797		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15798		if eval \${$cacheid+:} false; then :
15799  $as_echo_n "(cached) " >&6
15800else
15801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802/* end confdefs.h.  */
15803int i;
15804int
15805main ()
15806{
15807
15808  ;
15809  return 0;
15810}
15811_ACEOF
15812if ac_fn_c_try_link "$LINENO"; then :
15813  eval $cacheid=yes
15814else
15815  eval $cacheid=no
15816fi
15817rm -f core conftest.err conftest.$ac_objext \
15818    conftest$ac_exeext conftest.$ac_ext
15819fi
15820
15821
15822		CFLAGS="$xorg_testset_save_CFLAGS"
15823
15824		eval supported=\$$cacheid
15825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15826$as_echo "$supported" >&6; }
15827		if test "$supported" = "yes" ; then
15828			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15829			found="yes"
15830		fi
15831	fi
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847xorg_testset_save_CFLAGS="$CFLAGS"
15848
15849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15854  $as_echo_n "(cached) " >&6
15855else
15856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858int i;
15859_ACEOF
15860if ac_fn_c_try_compile "$LINENO"; then :
15861  xorg_cv_cc_flag_unknown_warning_option=yes
15862else
15863  xorg_cv_cc_flag_unknown_warning_option=no
15864fi
15865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15870	CFLAGS="$xorg_testset_save_CFLAGS"
15871fi
15872
15873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15876	fi
15877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15881  $as_echo_n "(cached) " >&6
15882else
15883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885int i;
15886_ACEOF
15887if ac_fn_c_try_compile "$LINENO"; then :
15888  xorg_cv_cc_flag_unused_command_line_argument=yes
15889else
15890  xorg_cv_cc_flag_unused_command_line_argument=no
15891fi
15892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893fi
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15897	CFLAGS="$xorg_testset_save_CFLAGS"
15898fi
15899
15900found="no"
15901
15902	if test $found = "no" ; then
15903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15905		fi
15906
15907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909		fi
15910
15911		CFLAGS="$CFLAGS -Werror=trigraphs"
15912
15913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15914$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15915		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15916		if eval \${$cacheid+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921int i;
15922int
15923main ()
15924{
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"; then :
15931  eval $cacheid=yes
15932else
15933  eval $cacheid=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext \
15936    conftest$ac_exeext conftest.$ac_ext
15937fi
15938
15939
15940		CFLAGS="$xorg_testset_save_CFLAGS"
15941
15942		eval supported=\$$cacheid
15943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15944$as_echo "$supported" >&6; }
15945		if test "$supported" = "yes" ; then
15946			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15947			found="yes"
15948		fi
15949	fi
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965xorg_testset_save_CFLAGS="$CFLAGS"
15966
15967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976int i;
15977_ACEOF
15978if ac_fn_c_try_compile "$LINENO"; then :
15979  xorg_cv_cc_flag_unknown_warning_option=yes
15980else
15981  xorg_cv_cc_flag_unknown_warning_option=no
15982fi
15983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984fi
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15988	CFLAGS="$xorg_testset_save_CFLAGS"
15989fi
15990
15991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15994	fi
15995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15999  $as_echo_n "(cached) " >&6
16000else
16001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002/* end confdefs.h.  */
16003int i;
16004_ACEOF
16005if ac_fn_c_try_compile "$LINENO"; then :
16006  xorg_cv_cc_flag_unused_command_line_argument=yes
16007else
16008  xorg_cv_cc_flag_unused_command_line_argument=no
16009fi
16010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011fi
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16015	CFLAGS="$xorg_testset_save_CFLAGS"
16016fi
16017
16018found="no"
16019
16020	if test $found = "no" ; then
16021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16023		fi
16024
16025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16027		fi
16028
16029		CFLAGS="$CFLAGS -Werror=array-bounds"
16030
16031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16032$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16033		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16034		if eval \${$cacheid+:} false; then :
16035  $as_echo_n "(cached) " >&6
16036else
16037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038/* end confdefs.h.  */
16039int i;
16040int
16041main ()
16042{
16043
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_c_try_link "$LINENO"; then :
16049  eval $cacheid=yes
16050else
16051  eval $cacheid=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054    conftest$ac_exeext conftest.$ac_ext
16055fi
16056
16057
16058		CFLAGS="$xorg_testset_save_CFLAGS"
16059
16060		eval supported=\$$cacheid
16061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16062$as_echo "$supported" >&6; }
16063		if test "$supported" = "yes" ; then
16064			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16065			found="yes"
16066		fi
16067	fi
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083xorg_testset_save_CFLAGS="$CFLAGS"
16084
16085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16090  $as_echo_n "(cached) " >&6
16091else
16092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094int i;
16095_ACEOF
16096if ac_fn_c_try_compile "$LINENO"; then :
16097  xorg_cv_cc_flag_unknown_warning_option=yes
16098else
16099  xorg_cv_cc_flag_unknown_warning_option=no
16100fi
16101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16102fi
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16106	CFLAGS="$xorg_testset_save_CFLAGS"
16107fi
16108
16109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112	fi
16113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16117  $as_echo_n "(cached) " >&6
16118else
16119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120/* end confdefs.h.  */
16121int i;
16122_ACEOF
16123if ac_fn_c_try_compile "$LINENO"; then :
16124  xorg_cv_cc_flag_unused_command_line_argument=yes
16125else
16126  xorg_cv_cc_flag_unused_command_line_argument=no
16127fi
16128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129fi
16130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16133	CFLAGS="$xorg_testset_save_CFLAGS"
16134fi
16135
16136found="no"
16137
16138	if test $found = "no" ; then
16139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16141		fi
16142
16143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16145		fi
16146
16147		CFLAGS="$CFLAGS -Werror=write-strings"
16148
16149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16150$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16151		cacheid=xorg_cv_cc_flag__Werror_write_strings
16152		if eval \${$cacheid+:} false; then :
16153  $as_echo_n "(cached) " >&6
16154else
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158int
16159main ()
16160{
16161
16162  ;
16163  return 0;
16164}
16165_ACEOF
16166if ac_fn_c_try_link "$LINENO"; then :
16167  eval $cacheid=yes
16168else
16169  eval $cacheid=no
16170fi
16171rm -f core conftest.err conftest.$ac_objext \
16172    conftest$ac_exeext conftest.$ac_ext
16173fi
16174
16175
16176		CFLAGS="$xorg_testset_save_CFLAGS"
16177
16178		eval supported=\$$cacheid
16179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16180$as_echo "$supported" >&6; }
16181		if test "$supported" = "yes" ; then
16182			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16183			found="yes"
16184		fi
16185	fi
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201xorg_testset_save_CFLAGS="$CFLAGS"
16202
16203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16208  $as_echo_n "(cached) " >&6
16209else
16210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211/* end confdefs.h.  */
16212int i;
16213_ACEOF
16214if ac_fn_c_try_compile "$LINENO"; then :
16215  xorg_cv_cc_flag_unknown_warning_option=yes
16216else
16217  xorg_cv_cc_flag_unknown_warning_option=no
16218fi
16219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16224	CFLAGS="$xorg_testset_save_CFLAGS"
16225fi
16226
16227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16230	fi
16231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16235  $as_echo_n "(cached) " >&6
16236else
16237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238/* end confdefs.h.  */
16239int i;
16240_ACEOF
16241if ac_fn_c_try_compile "$LINENO"; then :
16242  xorg_cv_cc_flag_unused_command_line_argument=yes
16243else
16244  xorg_cv_cc_flag_unused_command_line_argument=no
16245fi
16246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247fi
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16251	CFLAGS="$xorg_testset_save_CFLAGS"
16252fi
16253
16254found="no"
16255
16256	if test $found = "no" ; then
16257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259		fi
16260
16261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16263		fi
16264
16265		CFLAGS="$CFLAGS -Werror=address"
16266
16267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16268$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16269		cacheid=xorg_cv_cc_flag__Werror_address
16270		if eval \${$cacheid+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275int i;
16276int
16277main ()
16278{
16279
16280  ;
16281  return 0;
16282}
16283_ACEOF
16284if ac_fn_c_try_link "$LINENO"; then :
16285  eval $cacheid=yes
16286else
16287  eval $cacheid=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext \
16290    conftest$ac_exeext conftest.$ac_ext
16291fi
16292
16293
16294		CFLAGS="$xorg_testset_save_CFLAGS"
16295
16296		eval supported=\$$cacheid
16297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16298$as_echo "$supported" >&6; }
16299		if test "$supported" = "yes" ; then
16300			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16301			found="yes"
16302		fi
16303	fi
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319xorg_testset_save_CFLAGS="$CFLAGS"
16320
16321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16326  $as_echo_n "(cached) " >&6
16327else
16328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h.  */
16330int i;
16331_ACEOF
16332if ac_fn_c_try_compile "$LINENO"; then :
16333  xorg_cv_cc_flag_unknown_warning_option=yes
16334else
16335  xorg_cv_cc_flag_unknown_warning_option=no
16336fi
16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338fi
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16342	CFLAGS="$xorg_testset_save_CFLAGS"
16343fi
16344
16345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16348	fi
16349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16353  $as_echo_n "(cached) " >&6
16354else
16355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h.  */
16357int i;
16358_ACEOF
16359if ac_fn_c_try_compile "$LINENO"; then :
16360  xorg_cv_cc_flag_unused_command_line_argument=yes
16361else
16362  xorg_cv_cc_flag_unused_command_line_argument=no
16363fi
16364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365fi
16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16369	CFLAGS="$xorg_testset_save_CFLAGS"
16370fi
16371
16372found="no"
16373
16374	if test $found = "no" ; then
16375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16377		fi
16378
16379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16381		fi
16382
16383		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16384
16385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16386$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16387		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16388		if eval \${$cacheid+:} false; then :
16389  $as_echo_n "(cached) " >&6
16390else
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393int i;
16394int
16395main ()
16396{
16397
16398  ;
16399  return 0;
16400}
16401_ACEOF
16402if ac_fn_c_try_link "$LINENO"; then :
16403  eval $cacheid=yes
16404else
16405  eval $cacheid=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext \
16408    conftest$ac_exeext conftest.$ac_ext
16409fi
16410
16411
16412		CFLAGS="$xorg_testset_save_CFLAGS"
16413
16414		eval supported=\$$cacheid
16415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16416$as_echo "$supported" >&6; }
16417		if test "$supported" = "yes" ; then
16418			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16419			found="yes"
16420		fi
16421	fi
16422
16423	if test $found = "no" ; then
16424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16426		fi
16427
16428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16430		fi
16431
16432		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16433
16434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16435$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16436		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16437		if eval \${$cacheid+:} false; then :
16438  $as_echo_n "(cached) " >&6
16439else
16440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441/* end confdefs.h.  */
16442int i;
16443int
16444main ()
16445{
16446
16447  ;
16448  return 0;
16449}
16450_ACEOF
16451if ac_fn_c_try_link "$LINENO"; then :
16452  eval $cacheid=yes
16453else
16454  eval $cacheid=no
16455fi
16456rm -f core conftest.err conftest.$ac_objext \
16457    conftest$ac_exeext conftest.$ac_ext
16458fi
16459
16460
16461		CFLAGS="$xorg_testset_save_CFLAGS"
16462
16463		eval supported=\$$cacheid
16464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16465$as_echo "$supported" >&6; }
16466		if test "$supported" = "yes" ; then
16467			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16468			found="yes"
16469		fi
16470	fi
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486xorg_testset_save_CFLAGS="$CFLAGS"
16487
16488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16493  $as_echo_n "(cached) " >&6
16494else
16495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h.  */
16497int i;
16498_ACEOF
16499if ac_fn_c_try_compile "$LINENO"; then :
16500  xorg_cv_cc_flag_unknown_warning_option=yes
16501else
16502  xorg_cv_cc_flag_unknown_warning_option=no
16503fi
16504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505fi
16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16509	CFLAGS="$xorg_testset_save_CFLAGS"
16510fi
16511
16512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515	fi
16516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16520  $as_echo_n "(cached) " >&6
16521else
16522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h.  */
16524int i;
16525_ACEOF
16526if ac_fn_c_try_compile "$LINENO"; then :
16527  xorg_cv_cc_flag_unused_command_line_argument=yes
16528else
16529  xorg_cv_cc_flag_unused_command_line_argument=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532fi
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16536	CFLAGS="$xorg_testset_save_CFLAGS"
16537fi
16538
16539found="no"
16540
16541	if test $found = "no" ; then
16542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544		fi
16545
16546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16548		fi
16549
16550		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16551
16552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16553$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16554		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16555		if eval \${$cacheid+:} false; then :
16556  $as_echo_n "(cached) " >&6
16557else
16558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h.  */
16560int i;
16561int
16562main ()
16563{
16564
16565  ;
16566  return 0;
16567}
16568_ACEOF
16569if ac_fn_c_try_link "$LINENO"; then :
16570  eval $cacheid=yes
16571else
16572  eval $cacheid=no
16573fi
16574rm -f core conftest.err conftest.$ac_objext \
16575    conftest$ac_exeext conftest.$ac_ext
16576fi
16577
16578
16579		CFLAGS="$xorg_testset_save_CFLAGS"
16580
16581		eval supported=\$$cacheid
16582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16583$as_echo "$supported" >&6; }
16584		if test "$supported" = "yes" ; then
16585			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16586			found="yes"
16587		fi
16588	fi
16589
16590 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16591else
16592{ $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
16593$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;}
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607xorg_testset_save_CFLAGS="$CFLAGS"
16608
16609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617/* end confdefs.h.  */
16618int i;
16619_ACEOF
16620if ac_fn_c_try_compile "$LINENO"; then :
16621  xorg_cv_cc_flag_unknown_warning_option=yes
16622else
16623  xorg_cv_cc_flag_unknown_warning_option=no
16624fi
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626fi
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16630	CFLAGS="$xorg_testset_save_CFLAGS"
16631fi
16632
16633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16636	fi
16637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16641  $as_echo_n "(cached) " >&6
16642else
16643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644/* end confdefs.h.  */
16645int i;
16646_ACEOF
16647if ac_fn_c_try_compile "$LINENO"; then :
16648  xorg_cv_cc_flag_unused_command_line_argument=yes
16649else
16650  xorg_cv_cc_flag_unused_command_line_argument=no
16651fi
16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653fi
16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16657	CFLAGS="$xorg_testset_save_CFLAGS"
16658fi
16659
16660found="no"
16661
16662	if test $found = "no" ; then
16663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16665		fi
16666
16667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16669		fi
16670
16671		CFLAGS="$CFLAGS -Wimplicit"
16672
16673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16674$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16675		cacheid=xorg_cv_cc_flag__Wimplicit
16676		if eval \${$cacheid+:} false; then :
16677  $as_echo_n "(cached) " >&6
16678else
16679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h.  */
16681int i;
16682int
16683main ()
16684{
16685
16686  ;
16687  return 0;
16688}
16689_ACEOF
16690if ac_fn_c_try_link "$LINENO"; then :
16691  eval $cacheid=yes
16692else
16693  eval $cacheid=no
16694fi
16695rm -f core conftest.err conftest.$ac_objext \
16696    conftest$ac_exeext conftest.$ac_ext
16697fi
16698
16699
16700		CFLAGS="$xorg_testset_save_CFLAGS"
16701
16702		eval supported=\$$cacheid
16703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16704$as_echo "$supported" >&6; }
16705		if test "$supported" = "yes" ; then
16706			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16707			found="yes"
16708		fi
16709	fi
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725xorg_testset_save_CFLAGS="$CFLAGS"
16726
16727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16732  $as_echo_n "(cached) " >&6
16733else
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736int i;
16737_ACEOF
16738if ac_fn_c_try_compile "$LINENO"; then :
16739  xorg_cv_cc_flag_unknown_warning_option=yes
16740else
16741  xorg_cv_cc_flag_unknown_warning_option=no
16742fi
16743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744fi
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16748	CFLAGS="$xorg_testset_save_CFLAGS"
16749fi
16750
16751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754	fi
16755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16759  $as_echo_n "(cached) " >&6
16760else
16761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762/* end confdefs.h.  */
16763int i;
16764_ACEOF
16765if ac_fn_c_try_compile "$LINENO"; then :
16766  xorg_cv_cc_flag_unused_command_line_argument=yes
16767else
16768  xorg_cv_cc_flag_unused_command_line_argument=no
16769fi
16770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771fi
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16775	CFLAGS="$xorg_testset_save_CFLAGS"
16776fi
16777
16778found="no"
16779
16780	if test $found = "no" ; then
16781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16783		fi
16784
16785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16787		fi
16788
16789		CFLAGS="$CFLAGS -Wnonnull"
16790
16791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16792$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16793		cacheid=xorg_cv_cc_flag__Wnonnull
16794		if eval \${$cacheid+:} false; then :
16795  $as_echo_n "(cached) " >&6
16796else
16797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800int
16801main ()
16802{
16803
16804  ;
16805  return 0;
16806}
16807_ACEOF
16808if ac_fn_c_try_link "$LINENO"; then :
16809  eval $cacheid=yes
16810else
16811  eval $cacheid=no
16812fi
16813rm -f core conftest.err conftest.$ac_objext \
16814    conftest$ac_exeext conftest.$ac_ext
16815fi
16816
16817
16818		CFLAGS="$xorg_testset_save_CFLAGS"
16819
16820		eval supported=\$$cacheid
16821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16822$as_echo "$supported" >&6; }
16823		if test "$supported" = "yes" ; then
16824			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16825			found="yes"
16826		fi
16827	fi
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843xorg_testset_save_CFLAGS="$CFLAGS"
16844
16845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16850  $as_echo_n "(cached) " >&6
16851else
16852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h.  */
16854int i;
16855_ACEOF
16856if ac_fn_c_try_compile "$LINENO"; then :
16857  xorg_cv_cc_flag_unknown_warning_option=yes
16858else
16859  xorg_cv_cc_flag_unknown_warning_option=no
16860fi
16861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862fi
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16866	CFLAGS="$xorg_testset_save_CFLAGS"
16867fi
16868
16869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16872	fi
16873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16877  $as_echo_n "(cached) " >&6
16878else
16879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880/* end confdefs.h.  */
16881int i;
16882_ACEOF
16883if ac_fn_c_try_compile "$LINENO"; then :
16884  xorg_cv_cc_flag_unused_command_line_argument=yes
16885else
16886  xorg_cv_cc_flag_unused_command_line_argument=no
16887fi
16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889fi
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16893	CFLAGS="$xorg_testset_save_CFLAGS"
16894fi
16895
16896found="no"
16897
16898	if test $found = "no" ; then
16899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16901		fi
16902
16903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16905		fi
16906
16907		CFLAGS="$CFLAGS -Winit-self"
16908
16909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16910$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16911		cacheid=xorg_cv_cc_flag__Winit_self
16912		if eval \${$cacheid+:} false; then :
16913  $as_echo_n "(cached) " >&6
16914else
16915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h.  */
16917int i;
16918int
16919main ()
16920{
16921
16922  ;
16923  return 0;
16924}
16925_ACEOF
16926if ac_fn_c_try_link "$LINENO"; then :
16927  eval $cacheid=yes
16928else
16929  eval $cacheid=no
16930fi
16931rm -f core conftest.err conftest.$ac_objext \
16932    conftest$ac_exeext conftest.$ac_ext
16933fi
16934
16935
16936		CFLAGS="$xorg_testset_save_CFLAGS"
16937
16938		eval supported=\$$cacheid
16939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16940$as_echo "$supported" >&6; }
16941		if test "$supported" = "yes" ; then
16942			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16943			found="yes"
16944		fi
16945	fi
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961xorg_testset_save_CFLAGS="$CFLAGS"
16962
16963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16968  $as_echo_n "(cached) " >&6
16969else
16970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h.  */
16972int i;
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"; then :
16975  xorg_cv_cc_flag_unknown_warning_option=yes
16976else
16977  xorg_cv_cc_flag_unknown_warning_option=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980fi
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16984	CFLAGS="$xorg_testset_save_CFLAGS"
16985fi
16986
16987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16990	fi
16991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16995  $as_echo_n "(cached) " >&6
16996else
16997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998/* end confdefs.h.  */
16999int i;
17000_ACEOF
17001if ac_fn_c_try_compile "$LINENO"; then :
17002  xorg_cv_cc_flag_unused_command_line_argument=yes
17003else
17004  xorg_cv_cc_flag_unused_command_line_argument=no
17005fi
17006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007fi
17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17011	CFLAGS="$xorg_testset_save_CFLAGS"
17012fi
17013
17014found="no"
17015
17016	if test $found = "no" ; then
17017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17019		fi
17020
17021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17023		fi
17024
17025		CFLAGS="$CFLAGS -Wmain"
17026
17027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17028$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17029		cacheid=xorg_cv_cc_flag__Wmain
17030		if eval \${$cacheid+:} false; then :
17031  $as_echo_n "(cached) " >&6
17032else
17033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h.  */
17035int i;
17036int
17037main ()
17038{
17039
17040  ;
17041  return 0;
17042}
17043_ACEOF
17044if ac_fn_c_try_link "$LINENO"; then :
17045  eval $cacheid=yes
17046else
17047  eval $cacheid=no
17048fi
17049rm -f core conftest.err conftest.$ac_objext \
17050    conftest$ac_exeext conftest.$ac_ext
17051fi
17052
17053
17054		CFLAGS="$xorg_testset_save_CFLAGS"
17055
17056		eval supported=\$$cacheid
17057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17058$as_echo "$supported" >&6; }
17059		if test "$supported" = "yes" ; then
17060			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17061			found="yes"
17062		fi
17063	fi
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079xorg_testset_save_CFLAGS="$CFLAGS"
17080
17081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17086  $as_echo_n "(cached) " >&6
17087else
17088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089/* end confdefs.h.  */
17090int i;
17091_ACEOF
17092if ac_fn_c_try_compile "$LINENO"; then :
17093  xorg_cv_cc_flag_unknown_warning_option=yes
17094else
17095  xorg_cv_cc_flag_unknown_warning_option=no
17096fi
17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098fi
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17102	CFLAGS="$xorg_testset_save_CFLAGS"
17103fi
17104
17105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17108	fi
17109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17113  $as_echo_n "(cached) " >&6
17114else
17115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116/* end confdefs.h.  */
17117int i;
17118_ACEOF
17119if ac_fn_c_try_compile "$LINENO"; then :
17120  xorg_cv_cc_flag_unused_command_line_argument=yes
17121else
17122  xorg_cv_cc_flag_unused_command_line_argument=no
17123fi
17124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125fi
17126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17129	CFLAGS="$xorg_testset_save_CFLAGS"
17130fi
17131
17132found="no"
17133
17134	if test $found = "no" ; then
17135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17137		fi
17138
17139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17141		fi
17142
17143		CFLAGS="$CFLAGS -Wmissing-braces"
17144
17145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17146$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17147		cacheid=xorg_cv_cc_flag__Wmissing_braces
17148		if eval \${$cacheid+:} false; then :
17149  $as_echo_n "(cached) " >&6
17150else
17151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153int i;
17154int
17155main ()
17156{
17157
17158  ;
17159  return 0;
17160}
17161_ACEOF
17162if ac_fn_c_try_link "$LINENO"; then :
17163  eval $cacheid=yes
17164else
17165  eval $cacheid=no
17166fi
17167rm -f core conftest.err conftest.$ac_objext \
17168    conftest$ac_exeext conftest.$ac_ext
17169fi
17170
17171
17172		CFLAGS="$xorg_testset_save_CFLAGS"
17173
17174		eval supported=\$$cacheid
17175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17176$as_echo "$supported" >&6; }
17177		if test "$supported" = "yes" ; then
17178			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17179			found="yes"
17180		fi
17181	fi
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197xorg_testset_save_CFLAGS="$CFLAGS"
17198
17199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17204  $as_echo_n "(cached) " >&6
17205else
17206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208int i;
17209_ACEOF
17210if ac_fn_c_try_compile "$LINENO"; then :
17211  xorg_cv_cc_flag_unknown_warning_option=yes
17212else
17213  xorg_cv_cc_flag_unknown_warning_option=no
17214fi
17215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216fi
17217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17220	CFLAGS="$xorg_testset_save_CFLAGS"
17221fi
17222
17223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17226	fi
17227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17231  $as_echo_n "(cached) " >&6
17232else
17233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234/* end confdefs.h.  */
17235int i;
17236_ACEOF
17237if ac_fn_c_try_compile "$LINENO"; then :
17238  xorg_cv_cc_flag_unused_command_line_argument=yes
17239else
17240  xorg_cv_cc_flag_unused_command_line_argument=no
17241fi
17242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243fi
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17247	CFLAGS="$xorg_testset_save_CFLAGS"
17248fi
17249
17250found="no"
17251
17252	if test $found = "no" ; then
17253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17255		fi
17256
17257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17259		fi
17260
17261		CFLAGS="$CFLAGS -Wsequence-point"
17262
17263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17264$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17265		cacheid=xorg_cv_cc_flag__Wsequence_point
17266		if eval \${$cacheid+:} false; then :
17267  $as_echo_n "(cached) " >&6
17268else
17269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271int i;
17272int
17273main ()
17274{
17275
17276  ;
17277  return 0;
17278}
17279_ACEOF
17280if ac_fn_c_try_link "$LINENO"; then :
17281  eval $cacheid=yes
17282else
17283  eval $cacheid=no
17284fi
17285rm -f core conftest.err conftest.$ac_objext \
17286    conftest$ac_exeext conftest.$ac_ext
17287fi
17288
17289
17290		CFLAGS="$xorg_testset_save_CFLAGS"
17291
17292		eval supported=\$$cacheid
17293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17294$as_echo "$supported" >&6; }
17295		if test "$supported" = "yes" ; then
17296			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17297			found="yes"
17298		fi
17299	fi
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315xorg_testset_save_CFLAGS="$CFLAGS"
17316
17317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17322  $as_echo_n "(cached) " >&6
17323else
17324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325/* end confdefs.h.  */
17326int i;
17327_ACEOF
17328if ac_fn_c_try_compile "$LINENO"; then :
17329  xorg_cv_cc_flag_unknown_warning_option=yes
17330else
17331  xorg_cv_cc_flag_unknown_warning_option=no
17332fi
17333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334fi
17335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17338	CFLAGS="$xorg_testset_save_CFLAGS"
17339fi
17340
17341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17344	fi
17345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17349  $as_echo_n "(cached) " >&6
17350else
17351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353int i;
17354_ACEOF
17355if ac_fn_c_try_compile "$LINENO"; then :
17356  xorg_cv_cc_flag_unused_command_line_argument=yes
17357else
17358  xorg_cv_cc_flag_unused_command_line_argument=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361fi
17362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365	CFLAGS="$xorg_testset_save_CFLAGS"
17366fi
17367
17368found="no"
17369
17370	if test $found = "no" ; then
17371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373		fi
17374
17375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377		fi
17378
17379		CFLAGS="$CFLAGS -Wreturn-type"
17380
17381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17382$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17383		cacheid=xorg_cv_cc_flag__Wreturn_type
17384		if eval \${$cacheid+:} false; then :
17385  $as_echo_n "(cached) " >&6
17386else
17387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h.  */
17389int i;
17390int
17391main ()
17392{
17393
17394  ;
17395  return 0;
17396}
17397_ACEOF
17398if ac_fn_c_try_link "$LINENO"; then :
17399  eval $cacheid=yes
17400else
17401  eval $cacheid=no
17402fi
17403rm -f core conftest.err conftest.$ac_objext \
17404    conftest$ac_exeext conftest.$ac_ext
17405fi
17406
17407
17408		CFLAGS="$xorg_testset_save_CFLAGS"
17409
17410		eval supported=\$$cacheid
17411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17412$as_echo "$supported" >&6; }
17413		if test "$supported" = "yes" ; then
17414			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17415			found="yes"
17416		fi
17417	fi
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433xorg_testset_save_CFLAGS="$CFLAGS"
17434
17435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17440  $as_echo_n "(cached) " >&6
17441else
17442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444int i;
17445_ACEOF
17446if ac_fn_c_try_compile "$LINENO"; then :
17447  xorg_cv_cc_flag_unknown_warning_option=yes
17448else
17449  xorg_cv_cc_flag_unknown_warning_option=no
17450fi
17451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452fi
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17455	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17456	CFLAGS="$xorg_testset_save_CFLAGS"
17457fi
17458
17459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17460	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17461		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17462	fi
17463	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17467  $as_echo_n "(cached) " >&6
17468else
17469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470/* end confdefs.h.  */
17471int i;
17472_ACEOF
17473if ac_fn_c_try_compile "$LINENO"; then :
17474  xorg_cv_cc_flag_unused_command_line_argument=yes
17475else
17476  xorg_cv_cc_flag_unused_command_line_argument=no
17477fi
17478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479fi
17480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17483	CFLAGS="$xorg_testset_save_CFLAGS"
17484fi
17485
17486found="no"
17487
17488	if test $found = "no" ; then
17489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17491		fi
17492
17493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17495		fi
17496
17497		CFLAGS="$CFLAGS -Wtrigraphs"
17498
17499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17500$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17501		cacheid=xorg_cv_cc_flag__Wtrigraphs
17502		if eval \${$cacheid+:} false; then :
17503  $as_echo_n "(cached) " >&6
17504else
17505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506/* end confdefs.h.  */
17507int i;
17508int
17509main ()
17510{
17511
17512  ;
17513  return 0;
17514}
17515_ACEOF
17516if ac_fn_c_try_link "$LINENO"; then :
17517  eval $cacheid=yes
17518else
17519  eval $cacheid=no
17520fi
17521rm -f core conftest.err conftest.$ac_objext \
17522    conftest$ac_exeext conftest.$ac_ext
17523fi
17524
17525
17526		CFLAGS="$xorg_testset_save_CFLAGS"
17527
17528		eval supported=\$$cacheid
17529		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17530$as_echo "$supported" >&6; }
17531		if test "$supported" = "yes" ; then
17532			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17533			found="yes"
17534		fi
17535	fi
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551xorg_testset_save_CFLAGS="$CFLAGS"
17552
17553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17558  $as_echo_n "(cached) " >&6
17559else
17560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561/* end confdefs.h.  */
17562int i;
17563_ACEOF
17564if ac_fn_c_try_compile "$LINENO"; then :
17565  xorg_cv_cc_flag_unknown_warning_option=yes
17566else
17567  xorg_cv_cc_flag_unknown_warning_option=no
17568fi
17569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570fi
17571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17574	CFLAGS="$xorg_testset_save_CFLAGS"
17575fi
17576
17577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17580	fi
17581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17585  $as_echo_n "(cached) " >&6
17586else
17587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588/* end confdefs.h.  */
17589int i;
17590_ACEOF
17591if ac_fn_c_try_compile "$LINENO"; then :
17592  xorg_cv_cc_flag_unused_command_line_argument=yes
17593else
17594  xorg_cv_cc_flag_unused_command_line_argument=no
17595fi
17596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597fi
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17601	CFLAGS="$xorg_testset_save_CFLAGS"
17602fi
17603
17604found="no"
17605
17606	if test $found = "no" ; then
17607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17609		fi
17610
17611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17613		fi
17614
17615		CFLAGS="$CFLAGS -Warray-bounds"
17616
17617		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17618$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17619		cacheid=xorg_cv_cc_flag__Warray_bounds
17620		if eval \${$cacheid+:} false; then :
17621  $as_echo_n "(cached) " >&6
17622else
17623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624/* end confdefs.h.  */
17625int i;
17626int
17627main ()
17628{
17629
17630  ;
17631  return 0;
17632}
17633_ACEOF
17634if ac_fn_c_try_link "$LINENO"; then :
17635  eval $cacheid=yes
17636else
17637  eval $cacheid=no
17638fi
17639rm -f core conftest.err conftest.$ac_objext \
17640    conftest$ac_exeext conftest.$ac_ext
17641fi
17642
17643
17644		CFLAGS="$xorg_testset_save_CFLAGS"
17645
17646		eval supported=\$$cacheid
17647		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17648$as_echo "$supported" >&6; }
17649		if test "$supported" = "yes" ; then
17650			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17651			found="yes"
17652		fi
17653	fi
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669xorg_testset_save_CFLAGS="$CFLAGS"
17670
17671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17676  $as_echo_n "(cached) " >&6
17677else
17678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679/* end confdefs.h.  */
17680int i;
17681_ACEOF
17682if ac_fn_c_try_compile "$LINENO"; then :
17683  xorg_cv_cc_flag_unknown_warning_option=yes
17684else
17685  xorg_cv_cc_flag_unknown_warning_option=no
17686fi
17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688fi
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17692	CFLAGS="$xorg_testset_save_CFLAGS"
17693fi
17694
17695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17698	fi
17699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17703  $as_echo_n "(cached) " >&6
17704else
17705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706/* end confdefs.h.  */
17707int i;
17708_ACEOF
17709if ac_fn_c_try_compile "$LINENO"; then :
17710  xorg_cv_cc_flag_unused_command_line_argument=yes
17711else
17712  xorg_cv_cc_flag_unused_command_line_argument=no
17713fi
17714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715fi
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17719	CFLAGS="$xorg_testset_save_CFLAGS"
17720fi
17721
17722found="no"
17723
17724	if test $found = "no" ; then
17725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727		fi
17728
17729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17731		fi
17732
17733		CFLAGS="$CFLAGS -Wwrite-strings"
17734
17735		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17736$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17737		cacheid=xorg_cv_cc_flag__Wwrite_strings
17738		if eval \${$cacheid+:} false; then :
17739  $as_echo_n "(cached) " >&6
17740else
17741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743int i;
17744int
17745main ()
17746{
17747
17748  ;
17749  return 0;
17750}
17751_ACEOF
17752if ac_fn_c_try_link "$LINENO"; then :
17753  eval $cacheid=yes
17754else
17755  eval $cacheid=no
17756fi
17757rm -f core conftest.err conftest.$ac_objext \
17758    conftest$ac_exeext conftest.$ac_ext
17759fi
17760
17761
17762		CFLAGS="$xorg_testset_save_CFLAGS"
17763
17764		eval supported=\$$cacheid
17765		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17766$as_echo "$supported" >&6; }
17767		if test "$supported" = "yes" ; then
17768			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17769			found="yes"
17770		fi
17771	fi
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787xorg_testset_save_CFLAGS="$CFLAGS"
17788
17789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17794  $as_echo_n "(cached) " >&6
17795else
17796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h.  */
17798int i;
17799_ACEOF
17800if ac_fn_c_try_compile "$LINENO"; then :
17801  xorg_cv_cc_flag_unknown_warning_option=yes
17802else
17803  xorg_cv_cc_flag_unknown_warning_option=no
17804fi
17805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806fi
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17810	CFLAGS="$xorg_testset_save_CFLAGS"
17811fi
17812
17813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17816	fi
17817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17821  $as_echo_n "(cached) " >&6
17822else
17823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824/* end confdefs.h.  */
17825int i;
17826_ACEOF
17827if ac_fn_c_try_compile "$LINENO"; then :
17828  xorg_cv_cc_flag_unused_command_line_argument=yes
17829else
17830  xorg_cv_cc_flag_unused_command_line_argument=no
17831fi
17832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833fi
17834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17837	CFLAGS="$xorg_testset_save_CFLAGS"
17838fi
17839
17840found="no"
17841
17842	if test $found = "no" ; then
17843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17845		fi
17846
17847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17849		fi
17850
17851		CFLAGS="$CFLAGS -Waddress"
17852
17853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17854$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17855		cacheid=xorg_cv_cc_flag__Waddress
17856		if eval \${$cacheid+:} false; then :
17857  $as_echo_n "(cached) " >&6
17858else
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861int i;
17862int
17863main ()
17864{
17865
17866  ;
17867  return 0;
17868}
17869_ACEOF
17870if ac_fn_c_try_link "$LINENO"; then :
17871  eval $cacheid=yes
17872else
17873  eval $cacheid=no
17874fi
17875rm -f core conftest.err conftest.$ac_objext \
17876    conftest$ac_exeext conftest.$ac_ext
17877fi
17878
17879
17880		CFLAGS="$xorg_testset_save_CFLAGS"
17881
17882		eval supported=\$$cacheid
17883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17884$as_echo "$supported" >&6; }
17885		if test "$supported" = "yes" ; then
17886			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17887			found="yes"
17888		fi
17889	fi
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905xorg_testset_save_CFLAGS="$CFLAGS"
17906
17907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17912  $as_echo_n "(cached) " >&6
17913else
17914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915/* end confdefs.h.  */
17916int i;
17917_ACEOF
17918if ac_fn_c_try_compile "$LINENO"; then :
17919  xorg_cv_cc_flag_unknown_warning_option=yes
17920else
17921  xorg_cv_cc_flag_unknown_warning_option=no
17922fi
17923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924fi
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17928	CFLAGS="$xorg_testset_save_CFLAGS"
17929fi
17930
17931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17934	fi
17935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17939  $as_echo_n "(cached) " >&6
17940else
17941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943int i;
17944_ACEOF
17945if ac_fn_c_try_compile "$LINENO"; then :
17946  xorg_cv_cc_flag_unused_command_line_argument=yes
17947else
17948  xorg_cv_cc_flag_unused_command_line_argument=no
17949fi
17950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951fi
17952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17955	CFLAGS="$xorg_testset_save_CFLAGS"
17956fi
17957
17958found="no"
17959
17960	if test $found = "no" ; then
17961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17963		fi
17964
17965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17967		fi
17968
17969		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17970
17971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17972$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17973		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17974		if eval \${$cacheid+:} false; then :
17975  $as_echo_n "(cached) " >&6
17976else
17977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979int i;
17980int
17981main ()
17982{
17983
17984  ;
17985  return 0;
17986}
17987_ACEOF
17988if ac_fn_c_try_link "$LINENO"; then :
17989  eval $cacheid=yes
17990else
17991  eval $cacheid=no
17992fi
17993rm -f core conftest.err conftest.$ac_objext \
17994    conftest$ac_exeext conftest.$ac_ext
17995fi
17996
17997
17998		CFLAGS="$xorg_testset_save_CFLAGS"
17999
18000		eval supported=\$$cacheid
18001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18002$as_echo "$supported" >&6; }
18003		if test "$supported" = "yes" ; then
18004			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18005			found="yes"
18006		fi
18007	fi
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023xorg_testset_save_CFLAGS="$CFLAGS"
18024
18025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18030  $as_echo_n "(cached) " >&6
18031else
18032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h.  */
18034int i;
18035_ACEOF
18036if ac_fn_c_try_compile "$LINENO"; then :
18037  xorg_cv_cc_flag_unknown_warning_option=yes
18038else
18039  xorg_cv_cc_flag_unknown_warning_option=no
18040fi
18041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042fi
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18046	CFLAGS="$xorg_testset_save_CFLAGS"
18047fi
18048
18049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18052	fi
18053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18057  $as_echo_n "(cached) " >&6
18058else
18059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060/* end confdefs.h.  */
18061int i;
18062_ACEOF
18063if ac_fn_c_try_compile "$LINENO"; then :
18064  xorg_cv_cc_flag_unused_command_line_argument=yes
18065else
18066  xorg_cv_cc_flag_unused_command_line_argument=no
18067fi
18068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069fi
18070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18073	CFLAGS="$xorg_testset_save_CFLAGS"
18074fi
18075
18076found="no"
18077
18078	if test $found = "no" ; then
18079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18081		fi
18082
18083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18085		fi
18086
18087		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18088
18089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18090$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18091		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18092		if eval \${$cacheid+:} false; then :
18093  $as_echo_n "(cached) " >&6
18094else
18095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096/* end confdefs.h.  */
18097int i;
18098int
18099main ()
18100{
18101
18102  ;
18103  return 0;
18104}
18105_ACEOF
18106if ac_fn_c_try_link "$LINENO"; then :
18107  eval $cacheid=yes
18108else
18109  eval $cacheid=no
18110fi
18111rm -f core conftest.err conftest.$ac_objext \
18112    conftest$ac_exeext conftest.$ac_ext
18113fi
18114
18115
18116		CFLAGS="$xorg_testset_save_CFLAGS"
18117
18118		eval supported=\$$cacheid
18119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18120$as_echo "$supported" >&6; }
18121		if test "$supported" = "yes" ; then
18122			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18123			found="yes"
18124		fi
18125	fi
18126
18127
18128fi
18129
18130
18131
18132
18133
18134
18135
18136		CWARNFLAGS="$BASE_CFLAGS"
18137		if  test "x$GCC" = xyes ; then
18138		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18139		fi
18140
18141
18142
18143
18144
18145
18146
18147
18148# Check whether --enable-strict-compilation was given.
18149if test "${enable_strict_compilation+set}" = set; then :
18150  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18151else
18152  STRICT_COMPILE=no
18153fi
18154
18155
18156
18157
18158
18159
18160STRICT_CFLAGS=""
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174xorg_testset_save_CFLAGS="$CFLAGS"
18175
18176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18181  $as_echo_n "(cached) " >&6
18182else
18183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184/* end confdefs.h.  */
18185int i;
18186_ACEOF
18187if ac_fn_c_try_compile "$LINENO"; then :
18188  xorg_cv_cc_flag_unknown_warning_option=yes
18189else
18190  xorg_cv_cc_flag_unknown_warning_option=no
18191fi
18192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193fi
18194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18197	CFLAGS="$xorg_testset_save_CFLAGS"
18198fi
18199
18200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203	fi
18204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18208  $as_echo_n "(cached) " >&6
18209else
18210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211/* end confdefs.h.  */
18212int i;
18213_ACEOF
18214if ac_fn_c_try_compile "$LINENO"; then :
18215  xorg_cv_cc_flag_unused_command_line_argument=yes
18216else
18217  xorg_cv_cc_flag_unused_command_line_argument=no
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220fi
18221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18224	CFLAGS="$xorg_testset_save_CFLAGS"
18225fi
18226
18227found="no"
18228
18229	if test $found = "no" ; then
18230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232		fi
18233
18234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236		fi
18237
18238		CFLAGS="$CFLAGS -pedantic"
18239
18240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18241$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18242		cacheid=xorg_cv_cc_flag__pedantic
18243		if eval \${$cacheid+:} false; then :
18244  $as_echo_n "(cached) " >&6
18245else
18246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247/* end confdefs.h.  */
18248int i;
18249int
18250main ()
18251{
18252
18253  ;
18254  return 0;
18255}
18256_ACEOF
18257if ac_fn_c_try_link "$LINENO"; then :
18258  eval $cacheid=yes
18259else
18260  eval $cacheid=no
18261fi
18262rm -f core conftest.err conftest.$ac_objext \
18263    conftest$ac_exeext conftest.$ac_ext
18264fi
18265
18266
18267		CFLAGS="$xorg_testset_save_CFLAGS"
18268
18269		eval supported=\$$cacheid
18270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18271$as_echo "$supported" >&6; }
18272		if test "$supported" = "yes" ; then
18273			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18274			found="yes"
18275		fi
18276	fi
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292xorg_testset_save_CFLAGS="$CFLAGS"
18293
18294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18299  $as_echo_n "(cached) " >&6
18300else
18301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302/* end confdefs.h.  */
18303int i;
18304_ACEOF
18305if ac_fn_c_try_compile "$LINENO"; then :
18306  xorg_cv_cc_flag_unknown_warning_option=yes
18307else
18308  xorg_cv_cc_flag_unknown_warning_option=no
18309fi
18310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311fi
18312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18315	CFLAGS="$xorg_testset_save_CFLAGS"
18316fi
18317
18318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18321	fi
18322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18326  $as_echo_n "(cached) " >&6
18327else
18328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329/* end confdefs.h.  */
18330int i;
18331_ACEOF
18332if ac_fn_c_try_compile "$LINENO"; then :
18333  xorg_cv_cc_flag_unused_command_line_argument=yes
18334else
18335  xorg_cv_cc_flag_unused_command_line_argument=no
18336fi
18337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338fi
18339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18342	CFLAGS="$xorg_testset_save_CFLAGS"
18343fi
18344
18345found="no"
18346
18347	if test $found = "no" ; then
18348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18350		fi
18351
18352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18354		fi
18355
18356		CFLAGS="$CFLAGS -Werror"
18357
18358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18359$as_echo_n "checking if $CC supports -Werror... " >&6; }
18360		cacheid=xorg_cv_cc_flag__Werror
18361		if eval \${$cacheid+:} false; then :
18362  $as_echo_n "(cached) " >&6
18363else
18364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365/* end confdefs.h.  */
18366int i;
18367int
18368main ()
18369{
18370
18371  ;
18372  return 0;
18373}
18374_ACEOF
18375if ac_fn_c_try_link "$LINENO"; then :
18376  eval $cacheid=yes
18377else
18378  eval $cacheid=no
18379fi
18380rm -f core conftest.err conftest.$ac_objext \
18381    conftest$ac_exeext conftest.$ac_ext
18382fi
18383
18384
18385		CFLAGS="$xorg_testset_save_CFLAGS"
18386
18387		eval supported=\$$cacheid
18388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18389$as_echo "$supported" >&6; }
18390		if test "$supported" = "yes" ; then
18391			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18392			found="yes"
18393		fi
18394	fi
18395
18396	if test $found = "no" ; then
18397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18399		fi
18400
18401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18403		fi
18404
18405		CFLAGS="$CFLAGS -errwarn"
18406
18407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18408$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18409		cacheid=xorg_cv_cc_flag__errwarn
18410		if eval \${$cacheid+:} false; then :
18411  $as_echo_n "(cached) " >&6
18412else
18413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415int i;
18416int
18417main ()
18418{
18419
18420  ;
18421  return 0;
18422}
18423_ACEOF
18424if ac_fn_c_try_link "$LINENO"; then :
18425  eval $cacheid=yes
18426else
18427  eval $cacheid=no
18428fi
18429rm -f core conftest.err conftest.$ac_objext \
18430    conftest$ac_exeext conftest.$ac_ext
18431fi
18432
18433
18434		CFLAGS="$xorg_testset_save_CFLAGS"
18435
18436		eval supported=\$$cacheid
18437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18438$as_echo "$supported" >&6; }
18439		if test "$supported" = "yes" ; then
18440			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18441			found="yes"
18442		fi
18443	fi
18444
18445
18446
18447# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18448# activate it with -Werror, so we add it here explicitly.
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462xorg_testset_save_CFLAGS="$CFLAGS"
18463
18464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18469  $as_echo_n "(cached) " >&6
18470else
18471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472/* end confdefs.h.  */
18473int i;
18474_ACEOF
18475if ac_fn_c_try_compile "$LINENO"; then :
18476  xorg_cv_cc_flag_unknown_warning_option=yes
18477else
18478  xorg_cv_cc_flag_unknown_warning_option=no
18479fi
18480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481fi
18482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18485	CFLAGS="$xorg_testset_save_CFLAGS"
18486fi
18487
18488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18491	fi
18492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18496  $as_echo_n "(cached) " >&6
18497else
18498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499/* end confdefs.h.  */
18500int i;
18501_ACEOF
18502if ac_fn_c_try_compile "$LINENO"; then :
18503  xorg_cv_cc_flag_unused_command_line_argument=yes
18504else
18505  xorg_cv_cc_flag_unused_command_line_argument=no
18506fi
18507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508fi
18509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18512	CFLAGS="$xorg_testset_save_CFLAGS"
18513fi
18514
18515found="no"
18516
18517	if test $found = "no" ; then
18518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18520		fi
18521
18522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18524		fi
18525
18526		CFLAGS="$CFLAGS -Werror=attributes"
18527
18528		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18529$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18530		cacheid=xorg_cv_cc_flag__Werror_attributes
18531		if eval \${$cacheid+:} false; then :
18532  $as_echo_n "(cached) " >&6
18533else
18534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535/* end confdefs.h.  */
18536int i;
18537int
18538main ()
18539{
18540
18541  ;
18542  return 0;
18543}
18544_ACEOF
18545if ac_fn_c_try_link "$LINENO"; then :
18546  eval $cacheid=yes
18547else
18548  eval $cacheid=no
18549fi
18550rm -f core conftest.err conftest.$ac_objext \
18551    conftest$ac_exeext conftest.$ac_ext
18552fi
18553
18554
18555		CFLAGS="$xorg_testset_save_CFLAGS"
18556
18557		eval supported=\$$cacheid
18558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18559$as_echo "$supported" >&6; }
18560		if test "$supported" = "yes" ; then
18561			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18562			found="yes"
18563		fi
18564	fi
18565
18566
18567
18568if test "x$STRICT_COMPILE" = "xyes"; then
18569    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18570    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18571fi
18572
18573
18574
18575
18576
18577
18578cat >>confdefs.h <<_ACEOF
18579#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18580_ACEOF
18581
18582	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18583	if test "x$PVM" = "x"; then
18584		PVM="0"
18585	fi
18586
18587cat >>confdefs.h <<_ACEOF
18588#define PACKAGE_VERSION_MINOR $PVM
18589_ACEOF
18590
18591	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18592	if test "x$PVP" = "x"; then
18593		PVP="0"
18594	fi
18595
18596cat >>confdefs.h <<_ACEOF
18597#define PACKAGE_VERSION_PATCHLEVEL $PVP
18598_ACEOF
18599
18600
18601
18602CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18603mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18604|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18605echo 'git directory not found: installing possibly empty changelog.' >&2)"
18606
18607
18608
18609
18610macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18611INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18612mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18613|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18614echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18615
18616
18617
18618
18619
18620
18621if test x$APP_MAN_SUFFIX = x    ; then
18622    APP_MAN_SUFFIX=1
18623fi
18624if test x$APP_MAN_DIR = x    ; then
18625    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18626fi
18627
18628if test x$LIB_MAN_SUFFIX = x    ; then
18629    LIB_MAN_SUFFIX=3
18630fi
18631if test x$LIB_MAN_DIR = x    ; then
18632    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18633fi
18634
18635if test x$FILE_MAN_SUFFIX = x    ; then
18636    case $host_os in
18637	solaris*)	FILE_MAN_SUFFIX=4  ;;
18638	*)		FILE_MAN_SUFFIX=5  ;;
18639    esac
18640fi
18641if test x$FILE_MAN_DIR = x    ; then
18642    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18643fi
18644
18645if test x$MISC_MAN_SUFFIX = x    ; then
18646    case $host_os in
18647	solaris*)	MISC_MAN_SUFFIX=5  ;;
18648	*)		MISC_MAN_SUFFIX=7  ;;
18649    esac
18650fi
18651if test x$MISC_MAN_DIR = x    ; then
18652    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18653fi
18654
18655if test x$DRIVER_MAN_SUFFIX = x    ; then
18656    case $host_os in
18657	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18658	*)		DRIVER_MAN_SUFFIX=4  ;;
18659    esac
18660fi
18661if test x$DRIVER_MAN_DIR = x    ; then
18662    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18663fi
18664
18665if test x$ADMIN_MAN_SUFFIX = x    ; then
18666    case $host_os in
18667	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18668	*)		ADMIN_MAN_SUFFIX=8  ;;
18669    esac
18670fi
18671if test x$ADMIN_MAN_DIR = x    ; then
18672    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18673fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689XORG_MAN_PAGE="X Version 11"
18690
18691MAN_SUBSTS="\
18692	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18693	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18694	-e 's|__xservername__|Xorg|g' \
18695	-e 's|__xconfigfile__|xorg.conf|g' \
18696	-e 's|__projectroot__|\$(prefix)|g' \
18697	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18698	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18699	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18700	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18701	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18702	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18703	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18704
18705
18706
18707# Check whether --enable-silent-rules was given.
18708if test "${enable_silent_rules+set}" = set; then :
18709  enableval=$enable_silent_rules;
18710fi
18711
18712case $enable_silent_rules in # (((
18713  yes) AM_DEFAULT_VERBOSITY=0;;
18714   no) AM_DEFAULT_VERBOSITY=1;;
18715    *) AM_DEFAULT_VERBOSITY=0;;
18716esac
18717am_make=${MAKE-make}
18718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18719$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18720if ${am_cv_make_support_nested_variables+:} false; then :
18721  $as_echo_n "(cached) " >&6
18722else
18723  if $as_echo 'TRUE=$(BAR$(V))
18724BAR0=false
18725BAR1=true
18726V=1
18727am__doit:
18728	@$(TRUE)
18729.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18730  am_cv_make_support_nested_variables=yes
18731else
18732  am_cv_make_support_nested_variables=no
18733fi
18734fi
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18736$as_echo "$am_cv_make_support_nested_variables" >&6; }
18737if test $am_cv_make_support_nested_variables = yes; then
18738    AM_V='$(V)'
18739  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18740else
18741  AM_V=$AM_DEFAULT_VERBOSITY
18742  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18743fi
18744AM_BACKSLASH='\'
18745
18746
18747
18748
18749# Check whether --enable-specs was given.
18750if test "${enable_specs+set}" = set; then :
18751  enableval=$enable_specs; build_specs=$enableval
18752else
18753  build_specs=yes
18754fi
18755
18756
18757 if test x$build_specs = xyes; then
18758  ENABLE_SPECS_TRUE=
18759  ENABLE_SPECS_FALSE='#'
18760else
18761  ENABLE_SPECS_TRUE='#'
18762  ENABLE_SPECS_FALSE=
18763fi
18764
18765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18766$as_echo_n "checking whether to build functional specifications... " >&6; }
18767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18768$as_echo "$build_specs" >&6; }
18769
18770
18771
18772
18773
18774# Check whether --with-xmlto was given.
18775if test "${with_xmlto+set}" = set; then :
18776  withval=$with_xmlto; use_xmlto=$withval
18777else
18778  use_xmlto=auto
18779fi
18780
18781
18782
18783if test "x$use_xmlto" = x"auto"; then
18784   # Extract the first word of "xmlto", so it can be a program name with args.
18785set dummy xmlto; ac_word=$2
18786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18787$as_echo_n "checking for $ac_word... " >&6; }
18788if ${ac_cv_path_XMLTO+:} false; then :
18789  $as_echo_n "(cached) " >&6
18790else
18791  case $XMLTO in
18792  [\\/]* | ?:[\\/]*)
18793  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18794  ;;
18795  *)
18796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18797for as_dir in $PATH
18798do
18799  IFS=$as_save_IFS
18800  test -z "$as_dir" && as_dir=.
18801    for ac_exec_ext in '' $ac_executable_extensions; do
18802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18803    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18805    break 2
18806  fi
18807done
18808  done
18809IFS=$as_save_IFS
18810
18811  ;;
18812esac
18813fi
18814XMLTO=$ac_cv_path_XMLTO
18815if test -n "$XMLTO"; then
18816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18817$as_echo "$XMLTO" >&6; }
18818else
18819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820$as_echo "no" >&6; }
18821fi
18822
18823
18824   if test "x$XMLTO" = "x"; then
18825        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18826$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18827	have_xmlto=no
18828   else
18829        have_xmlto=yes
18830   fi
18831elif test "x$use_xmlto" = x"yes" ; then
18832   # Extract the first word of "xmlto", so it can be a program name with args.
18833set dummy xmlto; ac_word=$2
18834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18835$as_echo_n "checking for $ac_word... " >&6; }
18836if ${ac_cv_path_XMLTO+:} false; then :
18837  $as_echo_n "(cached) " >&6
18838else
18839  case $XMLTO in
18840  [\\/]* | ?:[\\/]*)
18841  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18842  ;;
18843  *)
18844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845for as_dir in $PATH
18846do
18847  IFS=$as_save_IFS
18848  test -z "$as_dir" && as_dir=.
18849    for ac_exec_ext in '' $ac_executable_extensions; do
18850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18853    break 2
18854  fi
18855done
18856  done
18857IFS=$as_save_IFS
18858
18859  ;;
18860esac
18861fi
18862XMLTO=$ac_cv_path_XMLTO
18863if test -n "$XMLTO"; then
18864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18865$as_echo "$XMLTO" >&6; }
18866else
18867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868$as_echo "no" >&6; }
18869fi
18870
18871
18872   if test "x$XMLTO" = "x"; then
18873        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18874   fi
18875   have_xmlto=yes
18876elif test "x$use_xmlto" = x"no" ; then
18877   if test "x$XMLTO" != "x"; then
18878      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18879$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18880   fi
18881   have_xmlto=no
18882else
18883   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18884fi
18885
18886# Test for a minimum version of xmlto, if provided.
18887if test "$have_xmlto" = yes; then
18888    # scrape the xmlto version
18889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18890$as_echo_n "checking the xmlto version... " >&6; }
18891    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18892    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18893$as_echo "$xmlto_version" >&6; }
18894    as_arg_v1=$xmlto_version
18895as_arg_v2=0.0.22
18896awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18897case $? in #(
18898  1) :
18899    if test "x$use_xmlto" = xauto; then
18900            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18901$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18902            have_xmlto=no
18903        else
18904            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18905        fi ;; #(
18906  0) :
18907     ;; #(
18908  2) :
18909     ;; #(
18910  *) :
18911     ;;
18912esac
18913fi
18914
18915# Test for the ability of xmlto to generate a text target
18916have_xmlto_text=no
18917cat > conftest.xml << "EOF"
18918EOF
18919if test "$have_xmlto" = yes; then :
18920  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18921  have_xmlto_text=yes
18922else
18923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18924$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18925fi
18926fi
18927rm -f conftest.xml
18928 if test $have_xmlto_text = yes; then
18929  HAVE_XMLTO_TEXT_TRUE=
18930  HAVE_XMLTO_TEXT_FALSE='#'
18931else
18932  HAVE_XMLTO_TEXT_TRUE='#'
18933  HAVE_XMLTO_TEXT_FALSE=
18934fi
18935
18936 if test "$have_xmlto" = yes; then
18937  HAVE_XMLTO_TRUE=
18938  HAVE_XMLTO_FALSE='#'
18939else
18940  HAVE_XMLTO_TRUE='#'
18941  HAVE_XMLTO_FALSE=
18942fi
18943
18944
18945
18946
18947
18948
18949# Check whether --with-fop was given.
18950if test "${with_fop+set}" = set; then :
18951  withval=$with_fop; use_fop=$withval
18952else
18953  use_fop=no
18954fi
18955
18956
18957
18958if test "x$use_fop" = x"auto"; then
18959   # Extract the first word of "fop", so it can be a program name with args.
18960set dummy fop; ac_word=$2
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962$as_echo_n "checking for $ac_word... " >&6; }
18963if ${ac_cv_path_FOP+:} false; then :
18964  $as_echo_n "(cached) " >&6
18965else
18966  case $FOP in
18967  [\\/]* | ?:[\\/]*)
18968  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18969  ;;
18970  *)
18971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972for as_dir in $PATH
18973do
18974  IFS=$as_save_IFS
18975  test -z "$as_dir" && as_dir=.
18976    for ac_exec_ext in '' $ac_executable_extensions; do
18977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18980    break 2
18981  fi
18982done
18983  done
18984IFS=$as_save_IFS
18985
18986  ;;
18987esac
18988fi
18989FOP=$ac_cv_path_FOP
18990if test -n "$FOP"; then
18991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18992$as_echo "$FOP" >&6; }
18993else
18994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18995$as_echo "no" >&6; }
18996fi
18997
18998
18999   if test "x$FOP" = "x"; then
19000        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19001$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19002	have_fop=no
19003   else
19004        have_fop=yes
19005   fi
19006elif test "x$use_fop" = x"yes" ; then
19007   # Extract the first word of "fop", so it can be a program name with args.
19008set dummy fop; ac_word=$2
19009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19010$as_echo_n "checking for $ac_word... " >&6; }
19011if ${ac_cv_path_FOP+:} false; then :
19012  $as_echo_n "(cached) " >&6
19013else
19014  case $FOP in
19015  [\\/]* | ?:[\\/]*)
19016  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19017  ;;
19018  *)
19019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020for as_dir in $PATH
19021do
19022  IFS=$as_save_IFS
19023  test -z "$as_dir" && as_dir=.
19024    for ac_exec_ext in '' $ac_executable_extensions; do
19025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19026    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19028    break 2
19029  fi
19030done
19031  done
19032IFS=$as_save_IFS
19033
19034  ;;
19035esac
19036fi
19037FOP=$ac_cv_path_FOP
19038if test -n "$FOP"; then
19039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19040$as_echo "$FOP" >&6; }
19041else
19042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043$as_echo "no" >&6; }
19044fi
19045
19046
19047   if test "x$FOP" = "x"; then
19048        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19049   fi
19050   have_fop=yes
19051elif test "x$use_fop" = x"no" ; then
19052   if test "x$FOP" != "x"; then
19053      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19054$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19055   fi
19056   have_fop=no
19057else
19058   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19059fi
19060
19061# Test for a minimum version of fop, if provided.
19062
19063 if test "$have_fop" = yes; then
19064  HAVE_FOP_TRUE=
19065  HAVE_FOP_FALSE='#'
19066else
19067  HAVE_FOP_TRUE='#'
19068  HAVE_FOP_FALSE=
19069fi
19070
19071
19072
19073
19074# Preserves the interface, should it be implemented later
19075
19076
19077
19078# Check whether --with-xsltproc was given.
19079if test "${with_xsltproc+set}" = set; then :
19080  withval=$with_xsltproc; use_xsltproc=$withval
19081else
19082  use_xsltproc=auto
19083fi
19084
19085
19086
19087if test "x$use_xsltproc" = x"auto"; then
19088   # Extract the first word of "xsltproc", so it can be a program name with args.
19089set dummy xsltproc; ac_word=$2
19090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19091$as_echo_n "checking for $ac_word... " >&6; }
19092if ${ac_cv_path_XSLTPROC+:} false; then :
19093  $as_echo_n "(cached) " >&6
19094else
19095  case $XSLTPROC in
19096  [\\/]* | ?:[\\/]*)
19097  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19098  ;;
19099  *)
19100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19101for as_dir in $PATH
19102do
19103  IFS=$as_save_IFS
19104  test -z "$as_dir" && as_dir=.
19105    for ac_exec_ext in '' $ac_executable_extensions; do
19106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19107    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19109    break 2
19110  fi
19111done
19112  done
19113IFS=$as_save_IFS
19114
19115  ;;
19116esac
19117fi
19118XSLTPROC=$ac_cv_path_XSLTPROC
19119if test -n "$XSLTPROC"; then
19120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19121$as_echo "$XSLTPROC" >&6; }
19122else
19123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124$as_echo "no" >&6; }
19125fi
19126
19127
19128   if test "x$XSLTPROC" = "x"; then
19129        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19130$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19131	have_xsltproc=no
19132   else
19133        have_xsltproc=yes
19134   fi
19135elif test "x$use_xsltproc" = x"yes" ; then
19136   # Extract the first word of "xsltproc", so it can be a program name with args.
19137set dummy xsltproc; ac_word=$2
19138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19139$as_echo_n "checking for $ac_word... " >&6; }
19140if ${ac_cv_path_XSLTPROC+:} false; then :
19141  $as_echo_n "(cached) " >&6
19142else
19143  case $XSLTPROC in
19144  [\\/]* | ?:[\\/]*)
19145  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19146  ;;
19147  *)
19148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19149for as_dir in $PATH
19150do
19151  IFS=$as_save_IFS
19152  test -z "$as_dir" && as_dir=.
19153    for ac_exec_ext in '' $ac_executable_extensions; do
19154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19155    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19157    break 2
19158  fi
19159done
19160  done
19161IFS=$as_save_IFS
19162
19163  ;;
19164esac
19165fi
19166XSLTPROC=$ac_cv_path_XSLTPROC
19167if test -n "$XSLTPROC"; then
19168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19169$as_echo "$XSLTPROC" >&6; }
19170else
19171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172$as_echo "no" >&6; }
19173fi
19174
19175
19176   if test "x$XSLTPROC" = "x"; then
19177        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19178   fi
19179   have_xsltproc=yes
19180elif test "x$use_xsltproc" = x"no" ; then
19181   if test "x$XSLTPROC" != "x"; then
19182      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19183$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19184   fi
19185   have_xsltproc=no
19186else
19187   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19188fi
19189
19190 if test "$have_xsltproc" = yes; then
19191  HAVE_XSLTPROC_TRUE=
19192  HAVE_XSLTPROC_FALSE='#'
19193else
19194  HAVE_XSLTPROC_TRUE='#'
19195  HAVE_XSLTPROC_FALSE=
19196fi
19197
19198
19199
19200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
19201$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; }
19202XORG_SGML_PATH=
19203if test -n "$PKG_CONFIG" && \
19204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
19205  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
19206  ac_status=$?
19207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19208  test $ac_status = 0; }; then
19209  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19210else
19211  :
19212
19213fi
19214
19215# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19216# the path and the name of the doc stylesheet
19217if test "x$XORG_SGML_PATH" != "x" ; then
19218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19219$as_echo "$XORG_SGML_PATH" >&6; }
19220   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19221   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19222else
19223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19224$as_echo "no" >&6; }
19225fi
19226
19227
19228
19229
19230 if test "x$XSL_STYLESHEET" != "x"; then
19231  HAVE_STYLESHEETS_TRUE=
19232  HAVE_STYLESHEETS_FALSE='#'
19233else
19234  HAVE_STYLESHEETS_TRUE='#'
19235  HAVE_STYLESHEETS_FALSE=
19236fi
19237
19238
19239
19240
19241for ac_prog in cpp
19242do
19243  # Extract the first word of "$ac_prog", so it can be a program name with args.
19244set dummy $ac_prog; ac_word=$2
19245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19246$as_echo_n "checking for $ac_word... " >&6; }
19247if ${ac_cv_path_RAWCPP+:} false; then :
19248  $as_echo_n "(cached) " >&6
19249else
19250  case $RAWCPP in
19251  [\\/]* | ?:[\\/]*)
19252  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19253  ;;
19254  *)
19255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19256as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19257for as_dir in $as_dummy
19258do
19259  IFS=$as_save_IFS
19260  test -z "$as_dir" && as_dir=.
19261    for ac_exec_ext in '' $ac_executable_extensions; do
19262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19263    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19265    break 2
19266  fi
19267done
19268  done
19269IFS=$as_save_IFS
19270
19271  ;;
19272esac
19273fi
19274RAWCPP=$ac_cv_path_RAWCPP
19275if test -n "$RAWCPP"; then
19276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19277$as_echo "$RAWCPP" >&6; }
19278else
19279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19280$as_echo "no" >&6; }
19281fi
19282
19283
19284  test -n "$RAWCPP" && break
19285done
19286test -n "$RAWCPP" || RAWCPP="${CPP}"
19287
19288
19289# Check for flag to avoid builtin definitions - assumes unix is predefined,
19290# which is not the best choice for supporting other OS'es, but covers most
19291# of the ones we need for now.
19292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
19293$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
19294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295/* end confdefs.h.  */
19296Does cpp redefine unix ?
19297_ACEOF
19298if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300$as_echo "no" >&6; }
19301else
19302	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19303		RAWCPPFLAGS=-undef
19304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305$as_echo "yes" >&6; }
19306	# under Cygwin unix is still defined even with -undef
19307	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19308		RAWCPPFLAGS="-undef -ansi"
19309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
19310$as_echo "yes, with -ansi" >&6; }
19311	else
19312		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
19313	fi
19314fi
19315rm -f conftest.$ac_ext
19316
19317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
19318$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
19319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320/* end confdefs.h.  */
19321Does cpp preserve   "whitespace"?
19322_ACEOF
19323if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19325$as_echo "no" >&6; }
19326else
19327	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19328		TRADITIONALCPPFLAGS="-traditional"
19329		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
19330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19331$as_echo "yes" >&6; }
19332	else
19333		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
19334	fi
19335fi
19336rm -f conftest.$ac_ext
19337
19338
19339
19340
19341
19342# Preserves the interface, should it be implemented later
19343
19344
19345
19346# Check whether --with-perl was given.
19347if test "${with_perl+set}" = set; then :
19348  withval=$with_perl; use_perl=$withval
19349else
19350  use_perl=auto
19351fi
19352
19353
19354
19355if test "x$use_perl" = x"auto"; then
19356   # Extract the first word of "perl", so it can be a program name with args.
19357set dummy perl; ac_word=$2
19358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19359$as_echo_n "checking for $ac_word... " >&6; }
19360if ${ac_cv_path_PERL+:} false; then :
19361  $as_echo_n "(cached) " >&6
19362else
19363  case $PERL in
19364  [\\/]* | ?:[\\/]*)
19365  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19366  ;;
19367  *)
19368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369for as_dir in $PATH
19370do
19371  IFS=$as_save_IFS
19372  test -z "$as_dir" && as_dir=.
19373    for ac_exec_ext in '' $ac_executable_extensions; do
19374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19375    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19377    break 2
19378  fi
19379done
19380  done
19381IFS=$as_save_IFS
19382
19383  ;;
19384esac
19385fi
19386PERL=$ac_cv_path_PERL
19387if test -n "$PERL"; then
19388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19389$as_echo "$PERL" >&6; }
19390else
19391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392$as_echo "no" >&6; }
19393fi
19394
19395
19396   if test "x$PERL" = "x"; then
19397        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
19398$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
19399	have_perl=no
19400   else
19401        have_perl=yes
19402   fi
19403elif test "x$use_perl" = x"yes" ; then
19404   # Extract the first word of "perl", so it can be a program name with args.
19405set dummy perl; ac_word=$2
19406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19407$as_echo_n "checking for $ac_word... " >&6; }
19408if ${ac_cv_path_PERL+:} false; then :
19409  $as_echo_n "(cached) " >&6
19410else
19411  case $PERL in
19412  [\\/]* | ?:[\\/]*)
19413  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19414  ;;
19415  *)
19416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19417for as_dir in $PATH
19418do
19419  IFS=$as_save_IFS
19420  test -z "$as_dir" && as_dir=.
19421    for ac_exec_ext in '' $ac_executable_extensions; do
19422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19423    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19425    break 2
19426  fi
19427done
19428  done
19429IFS=$as_save_IFS
19430
19431  ;;
19432esac
19433fi
19434PERL=$ac_cv_path_PERL
19435if test -n "$PERL"; then
19436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19437$as_echo "$PERL" >&6; }
19438else
19439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19440$as_echo "no" >&6; }
19441fi
19442
19443
19444   if test "x$PERL" = "x"; then
19445        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
19446   fi
19447   have_perl=yes
19448elif test "x$use_perl" = x"no" ; then
19449   if test "x$PERL" != "x"; then
19450      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
19451$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
19452   fi
19453   have_perl=no
19454else
19455   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
19456fi
19457
19458 if test "$have_perl" = yes; then
19459  HAVE_PERL_TRUE=
19460  HAVE_PERL_FALSE='#'
19461else
19462  HAVE_PERL_TRUE='#'
19463  HAVE_PERL_FALSE=
19464fi
19465
19466
19467
19468# Required when PKG_CHECK_MODULES called within an if statement
19469
19470
19471
19472
19473
19474
19475
19476if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19477	if test -n "$ac_tool_prefix"; then
19478  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19479set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19481$as_echo_n "checking for $ac_word... " >&6; }
19482if ${ac_cv_path_PKG_CONFIG+:} false; then :
19483  $as_echo_n "(cached) " >&6
19484else
19485  case $PKG_CONFIG in
19486  [\\/]* | ?:[\\/]*)
19487  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19488  ;;
19489  *)
19490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19491for as_dir in $PATH
19492do
19493  IFS=$as_save_IFS
19494  test -z "$as_dir" && as_dir=.
19495    for ac_exec_ext in '' $ac_executable_extensions; do
19496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19497    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19499    break 2
19500  fi
19501done
19502  done
19503IFS=$as_save_IFS
19504
19505  ;;
19506esac
19507fi
19508PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19509if test -n "$PKG_CONFIG"; then
19510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19511$as_echo "$PKG_CONFIG" >&6; }
19512else
19513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19514$as_echo "no" >&6; }
19515fi
19516
19517
19518fi
19519if test -z "$ac_cv_path_PKG_CONFIG"; then
19520  ac_pt_PKG_CONFIG=$PKG_CONFIG
19521  # Extract the first word of "pkg-config", so it can be a program name with args.
19522set dummy pkg-config; ac_word=$2
19523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19524$as_echo_n "checking for $ac_word... " >&6; }
19525if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19526  $as_echo_n "(cached) " >&6
19527else
19528  case $ac_pt_PKG_CONFIG in
19529  [\\/]* | ?:[\\/]*)
19530  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19531  ;;
19532  *)
19533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19534for as_dir in $PATH
19535do
19536  IFS=$as_save_IFS
19537  test -z "$as_dir" && as_dir=.
19538    for ac_exec_ext in '' $ac_executable_extensions; do
19539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19540    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19542    break 2
19543  fi
19544done
19545  done
19546IFS=$as_save_IFS
19547
19548  ;;
19549esac
19550fi
19551ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19552if test -n "$ac_pt_PKG_CONFIG"; then
19553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19554$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19555else
19556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557$as_echo "no" >&6; }
19558fi
19559
19560  if test "x$ac_pt_PKG_CONFIG" = x; then
19561    PKG_CONFIG=""
19562  else
19563    case $cross_compiling:$ac_tool_warned in
19564yes:)
19565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19567ac_tool_warned=yes ;;
19568esac
19569    PKG_CONFIG=$ac_pt_PKG_CONFIG
19570  fi
19571else
19572  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19573fi
19574
19575fi
19576if test -n "$PKG_CONFIG"; then
19577	_pkg_min_version=0.9.0
19578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19579$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19580	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582$as_echo "yes" >&6; }
19583	else
19584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585$as_echo "no" >&6; }
19586		PKG_CONFIG=""
19587	fi
19588fi
19589
19590if test x"$CC_FOR_BUILD" = x; then
19591	if test x"$cross_compiling" = xyes; then
19592	       for ac_prog in gcc cc
19593do
19594  # Extract the first word of "$ac_prog", so it can be a program name with args.
19595set dummy $ac_prog; ac_word=$2
19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19597$as_echo_n "checking for $ac_word... " >&6; }
19598if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
19599  $as_echo_n "(cached) " >&6
19600else
19601  if test -n "$CC_FOR_BUILD"; then
19602  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19603else
19604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605for as_dir in $PATH
19606do
19607  IFS=$as_save_IFS
19608  test -z "$as_dir" && as_dir=.
19609    for ac_exec_ext in '' $ac_executable_extensions; do
19610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19611    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
19612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19613    break 2
19614  fi
19615done
19616  done
19617IFS=$as_save_IFS
19618
19619fi
19620fi
19621CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19622if test -n "$CC_FOR_BUILD"; then
19623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19624$as_echo "$CC_FOR_BUILD" >&6; }
19625else
19626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627$as_echo "no" >&6; }
19628fi
19629
19630
19631  test -n "$CC_FOR_BUILD" && break
19632done
19633
19634	else
19635	       CC_FOR_BUILD="$CC"
19636	fi
19637fi
19638
19639
19640if test x"$CPPFLAGS_FOR_BUILD" = x; then
19641	if test ! x"$cross_compiling" = xyes; then
19642		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
19643	fi
19644fi
19645
19646
19647if test x"$CFLAGS_FOR_BUILD" = x; then
19648	if test ! x"$cross_compiling" = xyes; then
19649		CFLAGS_FOR_BUILD=${CFLAGS}
19650	fi
19651fi
19652
19653
19654if test x"$LDFLAGS_FOR_BUILD" = x; then
19655	if test ! x"$cross_compiling" = xyes; then
19656		LDFLAGS_FOR_BUILD=${LDFLAGS}
19657	fi
19658fi
19659
19660
19661# Checks for pkg-config packages
19662
19663# Always required
19664X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.11.1'
19665X11_EXTRA_DEPS="xcb >= 1.11.1"
19666
19667
19668
19669
19670
19671
19672
19673
19674if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19675	if test -n "$ac_tool_prefix"; then
19676  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19677set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19679$as_echo_n "checking for $ac_word... " >&6; }
19680if ${ac_cv_path_PKG_CONFIG+:} false; then :
19681  $as_echo_n "(cached) " >&6
19682else
19683  case $PKG_CONFIG in
19684  [\\/]* | ?:[\\/]*)
19685  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19686  ;;
19687  *)
19688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19689for as_dir in $PATH
19690do
19691  IFS=$as_save_IFS
19692  test -z "$as_dir" && as_dir=.
19693    for ac_exec_ext in '' $ac_executable_extensions; do
19694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19695    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19697    break 2
19698  fi
19699done
19700  done
19701IFS=$as_save_IFS
19702
19703  ;;
19704esac
19705fi
19706PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19707if test -n "$PKG_CONFIG"; then
19708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19709$as_echo "$PKG_CONFIG" >&6; }
19710else
19711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19712$as_echo "no" >&6; }
19713fi
19714
19715
19716fi
19717if test -z "$ac_cv_path_PKG_CONFIG"; then
19718  ac_pt_PKG_CONFIG=$PKG_CONFIG
19719  # Extract the first word of "pkg-config", so it can be a program name with args.
19720set dummy pkg-config; ac_word=$2
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19722$as_echo_n "checking for $ac_word... " >&6; }
19723if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19724  $as_echo_n "(cached) " >&6
19725else
19726  case $ac_pt_PKG_CONFIG in
19727  [\\/]* | ?:[\\/]*)
19728  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19729  ;;
19730  *)
19731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732for as_dir in $PATH
19733do
19734  IFS=$as_save_IFS
19735  test -z "$as_dir" && as_dir=.
19736    for ac_exec_ext in '' $ac_executable_extensions; do
19737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19738    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19740    break 2
19741  fi
19742done
19743  done
19744IFS=$as_save_IFS
19745
19746  ;;
19747esac
19748fi
19749ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19750if test -n "$ac_pt_PKG_CONFIG"; then
19751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19752$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19753else
19754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755$as_echo "no" >&6; }
19756fi
19757
19758  if test "x$ac_pt_PKG_CONFIG" = x; then
19759    PKG_CONFIG=""
19760  else
19761    case $cross_compiling:$ac_tool_warned in
19762yes:)
19763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19765ac_tool_warned=yes ;;
19766esac
19767    PKG_CONFIG=$ac_pt_PKG_CONFIG
19768  fi
19769else
19770  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19771fi
19772
19773fi
19774if test -n "$PKG_CONFIG"; then
19775	_pkg_min_version=0.9.0
19776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19777$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19778	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19780$as_echo "yes" >&6; }
19781	else
19782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783$as_echo "no" >&6; }
19784		PKG_CONFIG=""
19785	fi
19786fi
19787
19788
19789
19790# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
19791# was not expanded, since libX11 with no transport types is rather useless.
19792#
19793# If you're seeing an error here, be sure you installed the lib/xtrans module
19794# first and if it's not in the default location, that you set the ACLOCAL
19795# environment variable to find it, such as:
19796#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
19797
19798
19799# Transport selection macro from xtrans.m4
19800
19801
19802 case $host_os in
19803	mingw*)	unixdef="no"   ;;
19804	*)	unixdef="yes"  ;;
19805 esac
19806 # Check whether --enable-unix-transport was given.
19807if test "${enable_unix_transport+set}" = set; then :
19808  enableval=$enable_unix_transport; UNIXCONN=$enableval
19809else
19810  UNIXCONN=$unixdef
19811fi
19812
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19814$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19815 if test "$UNIXCONN" = "yes"; then
19816
19817$as_echo "#define UNIXCONN 1" >>confdefs.h
19818
19819 fi
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19821$as_echo "$UNIXCONN" >&6; }
19822 # Check whether --enable-tcp-transport was given.
19823if test "${enable_tcp_transport+set}" = set; then :
19824  enableval=$enable_tcp_transport; TCPCONN=$enableval
19825else
19826  TCPCONN=yes
19827fi
19828
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19830$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19832$as_echo "$TCPCONN" >&6; }
19833 if test "$TCPCONN" = "yes"; then
19834
19835$as_echo "#define TCPCONN 1" >>confdefs.h
19836
19837
19838 # SVR4 hides these in libraries other than libc
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19840$as_echo_n "checking for library containing socket... " >&6; }
19841if ${ac_cv_search_socket+:} false; then :
19842  $as_echo_n "(cached) " >&6
19843else
19844  ac_func_search_save_LIBS=$LIBS
19845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846/* end confdefs.h.  */
19847
19848/* Override any GCC internal prototype to avoid an error.
19849   Use char because int might match the return type of a GCC
19850   builtin and then its argument prototype would still apply.  */
19851#ifdef __cplusplus
19852extern "C"
19853#endif
19854char socket ();
19855int
19856main ()
19857{
19858return socket ();
19859  ;
19860  return 0;
19861}
19862_ACEOF
19863for ac_lib in '' socket; do
19864  if test -z "$ac_lib"; then
19865    ac_res="none required"
19866  else
19867    ac_res=-l$ac_lib
19868    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19869  fi
19870  if ac_fn_c_try_link "$LINENO"; then :
19871  ac_cv_search_socket=$ac_res
19872fi
19873rm -f core conftest.err conftest.$ac_objext \
19874    conftest$ac_exeext
19875  if ${ac_cv_search_socket+:} false; then :
19876  break
19877fi
19878done
19879if ${ac_cv_search_socket+:} false; then :
19880
19881else
19882  ac_cv_search_socket=no
19883fi
19884rm conftest.$ac_ext
19885LIBS=$ac_func_search_save_LIBS
19886fi
19887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19888$as_echo "$ac_cv_search_socket" >&6; }
19889ac_res=$ac_cv_search_socket
19890if test "$ac_res" != no; then :
19891  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19892
19893fi
19894
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19896$as_echo_n "checking for library containing gethostbyname... " >&6; }
19897if ${ac_cv_search_gethostbyname+:} false; then :
19898  $as_echo_n "(cached) " >&6
19899else
19900  ac_func_search_save_LIBS=$LIBS
19901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902/* end confdefs.h.  */
19903
19904/* Override any GCC internal prototype to avoid an error.
19905   Use char because int might match the return type of a GCC
19906   builtin and then its argument prototype would still apply.  */
19907#ifdef __cplusplus
19908extern "C"
19909#endif
19910char gethostbyname ();
19911int
19912main ()
19913{
19914return gethostbyname ();
19915  ;
19916  return 0;
19917}
19918_ACEOF
19919for ac_lib in '' nsl; do
19920  if test -z "$ac_lib"; then
19921    ac_res="none required"
19922  else
19923    ac_res=-l$ac_lib
19924    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19925  fi
19926  if ac_fn_c_try_link "$LINENO"; then :
19927  ac_cv_search_gethostbyname=$ac_res
19928fi
19929rm -f core conftest.err conftest.$ac_objext \
19930    conftest$ac_exeext
19931  if ${ac_cv_search_gethostbyname+:} false; then :
19932  break
19933fi
19934done
19935if ${ac_cv_search_gethostbyname+:} false; then :
19936
19937else
19938  ac_cv_search_gethostbyname=no
19939fi
19940rm conftest.$ac_ext
19941LIBS=$ac_func_search_save_LIBS
19942fi
19943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19944$as_echo "$ac_cv_search_gethostbyname" >&6; }
19945ac_res=$ac_cv_search_gethostbyname
19946if test "$ac_res" != no; then :
19947  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19948
19949fi
19950
19951 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19953$as_echo_n "checking for main in -lws2_32... " >&6; }
19954if ${ac_cv_lib_ws2_32_main+:} false; then :
19955  $as_echo_n "(cached) " >&6
19956else
19957  ac_check_lib_save_LIBS=$LIBS
19958LIBS="-lws2_32  $LIBS"
19959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960/* end confdefs.h.  */
19961
19962
19963int
19964main ()
19965{
19966return main ();
19967  ;
19968  return 0;
19969}
19970_ACEOF
19971if ac_fn_c_try_link "$LINENO"; then :
19972  ac_cv_lib_ws2_32_main=yes
19973else
19974  ac_cv_lib_ws2_32_main=no
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977    conftest$ac_exeext conftest.$ac_ext
19978LIBS=$ac_check_lib_save_LIBS
19979fi
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19981$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19982if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19983  cat >>confdefs.h <<_ACEOF
19984#define HAVE_LIBWS2_32 1
19985_ACEOF
19986
19987  LIBS="-lws2_32 $LIBS"
19988
19989fi
19990
19991 fi
19992
19993 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19994 # Check whether --enable-ipv6 was given.
19995if test "${enable_ipv6+set}" = set; then :
19996  enableval=$enable_ipv6; IPV6CONN=$enableval
19997else
19998  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19999if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20000  IPV6CONN=yes
20001else
20002  IPV6CONN=no
20003fi
20004
20005fi
20006
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20008$as_echo_n "checking if IPv6 support should be built... " >&6; }
20009 if test "$IPV6CONN" = "yes"; then
20010
20011$as_echo "#define IPv6 1" >>confdefs.h
20012
20013 fi
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20015$as_echo "$IPV6CONN" >&6; }
20016
20017 # 4.3BSD-Reno added a new member to struct sockaddr_in
20018 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20019#include <sys/types.h>
20020#include <sys/socket.h>
20021#include <netinet/in.h>
20022
20023"
20024if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20025
20026$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20027
20028fi
20029
20030
20031 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20032 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20033$ac_includes_default
20034#include <sys/socket.h>
20035"
20036if test "x$ac_cv_type_socklen_t" = xyes; then :
20037
20038cat >>confdefs.h <<_ACEOF
20039#define HAVE_SOCKLEN_T 1
20040_ACEOF
20041
20042
20043fi
20044
20045
20046 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20047 # _XOPEN_SOURCE to get it (such as on Solaris)
20048 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20049$ac_includes_default
20050#include <sys/socket.h>
20051
20052"
20053if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20054
20055fi
20056
20057 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20058 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20059     unset ac_cv_member_struct_msghdr_msg_control
20060     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20061$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20062     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20063#define _XOPEN_SOURCE 600
20064$ac_includes_default
20065#include <sys/socket.h>
20066
20067"
20068if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20069
20070$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20071
20072
20073fi
20074
20075 fi
20076 # If that didn't work, fall back to XPG5/UNIX98 with C89
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=500" >&5
20080$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20081     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20082#define _XOPEN_SOURCE 500
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 500" >>confdefs.h
20090
20091
20092fi
20093
20094 fi
20095
20096
20097
20098 fi
20099 case $host_os in
20100	solaris*|sco*|sysv4*)	localdef="yes" ;;
20101	*)			localdef="no"  ;;
20102 esac
20103 # Check whether --enable-local-transport was given.
20104if test "${enable_local_transport+set}" = set; then :
20105  enableval=$enable_local_transport; LOCALCONN=$enableval
20106else
20107  LOCALCONN=$localdef
20108fi
20109
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20111$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20113$as_echo "$LOCALCONN" >&6; }
20114 if test "$LOCALCONN" = "yes"; then
20115
20116$as_echo "#define LOCALCONN 1" >>confdefs.h
20117
20118 fi
20119
20120
20121
20122# Check for dlopen
20123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
20124$as_echo_n "checking if run-time linking is supported... " >&6; }
20125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20126$as_echo_n "checking for library containing dlopen... " >&6; }
20127if ${ac_cv_search_dlopen+:} false; then :
20128  $as_echo_n "(cached) " >&6
20129else
20130  ac_func_search_save_LIBS=$LIBS
20131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132/* end confdefs.h.  */
20133
20134/* Override any GCC internal prototype to avoid an error.
20135   Use char because int might match the return type of a GCC
20136   builtin and then its argument prototype would still apply.  */
20137#ifdef __cplusplus
20138extern "C"
20139#endif
20140char dlopen ();
20141int
20142main ()
20143{
20144return dlopen ();
20145  ;
20146  return 0;
20147}
20148_ACEOF
20149for ac_lib in '' dl svld; do
20150  if test -z "$ac_lib"; then
20151    ac_res="none required"
20152  else
20153    ac_res=-l$ac_lib
20154    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20155  fi
20156  if ac_fn_c_try_link "$LINENO"; then :
20157  ac_cv_search_dlopen=$ac_res
20158fi
20159rm -f core conftest.err conftest.$ac_objext \
20160    conftest$ac_exeext
20161  if ${ac_cv_search_dlopen+:} false; then :
20162  break
20163fi
20164done
20165if ${ac_cv_search_dlopen+:} false; then :
20166
20167else
20168  ac_cv_search_dlopen=no
20169fi
20170rm conftest.$ac_ext
20171LIBS=$ac_func_search_save_LIBS
20172fi
20173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20174$as_echo "$ac_cv_search_dlopen" >&6; }
20175ac_res=$ac_cv_search_dlopen
20176if test "$ac_res" != no; then :
20177  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20178
20179fi
20180
20181if test "x$ac_cv_search_dlopen" = xno; then
20182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
20183$as_echo_n "checking for library containing shl_load... " >&6; }
20184if ${ac_cv_search_shl_load+:} false; then :
20185  $as_echo_n "(cached) " >&6
20186else
20187  ac_func_search_save_LIBS=$LIBS
20188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h.  */
20190
20191/* Override any GCC internal prototype to avoid an error.
20192   Use char because int might match the return type of a GCC
20193   builtin and then its argument prototype would still apply.  */
20194#ifdef __cplusplus
20195extern "C"
20196#endif
20197char shl_load ();
20198int
20199main ()
20200{
20201return shl_load ();
20202  ;
20203  return 0;
20204}
20205_ACEOF
20206for ac_lib in '' dld; do
20207  if test -z "$ac_lib"; then
20208    ac_res="none required"
20209  else
20210    ac_res=-l$ac_lib
20211    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20212  fi
20213  if ac_fn_c_try_link "$LINENO"; then :
20214  ac_cv_search_shl_load=$ac_res
20215fi
20216rm -f core conftest.err conftest.$ac_objext \
20217    conftest$ac_exeext
20218  if ${ac_cv_search_shl_load+:} false; then :
20219  break
20220fi
20221done
20222if ${ac_cv_search_shl_load+:} false; then :
20223
20224else
20225  ac_cv_search_shl_load=no
20226fi
20227rm conftest.$ac_ext
20228LIBS=$ac_func_search_save_LIBS
20229fi
20230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
20231$as_echo "$ac_cv_search_shl_load" >&6; }
20232ac_res=$ac_cv_search_shl_load
20233if test "$ac_res" != no; then :
20234  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20235
20236fi
20237
20238	if test "x$ac_cv_search_shl_load" != xno; then
20239
20240$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20241
20242		for ac_header in dl.h
20243do :
20244  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
20245if test "x$ac_cv_header_dl_h" = xyes; then :
20246  cat >>confdefs.h <<_ACEOF
20247#define HAVE_DL_H 1
20248_ACEOF
20249
20250fi
20251
20252done
20253
20254	fi
20255else
20256
20257$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20258
20259	for ac_header in dlfcn.h
20260do :
20261  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20262if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20263  cat >>confdefs.h <<_ACEOF
20264#define HAVE_DLFCN_H 1
20265_ACEOF
20266
20267fi
20268
20269done
20270
20271fi
20272if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
20273	HAVE_LOADABLE_MODULES=yes
20274else
20275	HAVE_LOADABLE_MODULES=no
20276fi
20277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
20278$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
20279
20280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
20281$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
20282# Check whether --enable-loadable-i18n was given.
20283if test "${enable_loadable_i18n+set}" = set; then :
20284  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
20285else
20286  XLIB_LOADABLE_I18N="no"
20287fi
20288
20289if test x$XLIB_LOADABLE_I18N = xyes; then
20290	if test x$HAVE_LOADABLE_MODULES = xno; then
20291		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
20292	fi
20293
20294$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
20295
20296	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
20297
20298fi
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
20300$as_echo "$XLIB_LOADABLE_I18N" >&6; }
20301
20302 if test x$XLIB_LOADABLE_I18N = xyes; then
20303  XLIB_LOADABLE_I18N_TRUE=
20304  XLIB_LOADABLE_I18N_FALSE='#'
20305else
20306  XLIB_LOADABLE_I18N_TRUE='#'
20307  XLIB_LOADABLE_I18N_FALSE=
20308fi
20309
20310
20311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
20312$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
20313# Check whether --enable-loadable-xcursor was given.
20314if test "${enable_loadable_xcursor+set}" = set; then :
20315  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
20316else
20317  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
20318fi
20319
20320if test x$XLIB_LOADABLE_XCURSOR = xyes; then
20321
20322$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
20323
20324fi
20325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
20326$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
20327
20328# Checks for header files.
20329for ac_header in sys/select.h
20330do :
20331  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
20332if test "x$ac_cv_header_sys_select_h" = xyes; then :
20333  cat >>confdefs.h <<_ACEOF
20334#define HAVE_SYS_SELECT_H 1
20335_ACEOF
20336
20337fi
20338
20339done
20340
20341
20342# Checks for typedefs, structures, and compiler characteristics.
20343
20344# Checks for library functions.
20345for ac_func in strtol seteuid
20346do :
20347  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20348ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20349if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20350  cat >>confdefs.h <<_ACEOF
20351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20352_ACEOF
20353
20354fi
20355done
20356
20357# Used in lcFile.c (see also --enable-xlocaledir settings below)
20358XLOCALEDIR_IS_SAFE="no"
20359ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default"
20360if test "x$ac_cv_have_decl_issetugid" = xyes; then :
20361
20362fi
20363
20364ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20365if test "x$ac_cv_func_issetugid" = xyes; then :
20366
20367fi
20368
20369if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
20370    XLOCALEDIR_IS_SAFE="yes"
20371
20372$as_echo "#define HASSETUGID 1" >>confdefs.h
20373
20374fi
20375ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
20376if test "x$ac_cv_func_getresuid" = xyes; then :
20377  XLOCALEDIR_IS_SAFE="yes"
20378
20379$as_echo "#define HASGETRESUID 1" >>confdefs.h
20380
20381fi
20382
20383# Used in Font.c
20384ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20385if test "x$ac_cv_func_shmat" = xyes; then :
20386
20387$as_echo "#define HAS_SHM 1" >>confdefs.h
20388
20389fi
20390
20391
20392# Checks for system services
20393# AC_PATH_XTRA
20394
20395# arch specific things
20396WCHAR32="1"
20397case $host_os in
20398  os2*) os2="true" ; WCHAR32="0" ;;
20399  *) ;;
20400esac
20401
20402
20403 if test x$os2 = xtrue; then
20404  OS2_TRUE=
20405  OS2_FALSE='#'
20406else
20407  OS2_TRUE='#'
20408  OS2_FALSE=
20409fi
20410
20411
20412
20413# Check whether --with-launchd was given.
20414if test "${with_launchd+set}" = set; then :
20415  withval=$with_launchd; LAUNCHD=$withval
20416else
20417  LAUNCHD=auto
20418fi
20419
20420if test "x$LAUNCHD" = xauto; then
20421	unset LAUNCHD
20422	# Extract the first word of "launchd", so it can be a program name with args.
20423set dummy launchd; ac_word=$2
20424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20425$as_echo_n "checking for $ac_word... " >&6; }
20426if ${ac_cv_prog_LAUNCHD+:} false; then :
20427  $as_echo_n "(cached) " >&6
20428else
20429  if test -n "$LAUNCHD"; then
20430  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20431else
20432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433for as_dir in $PATH$PATH_SEPARATOR/sbin
20434do
20435  IFS=$as_save_IFS
20436  test -z "$as_dir" && as_dir=.
20437    for ac_exec_ext in '' $ac_executable_extensions; do
20438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20439    ac_cv_prog_LAUNCHD="yes"
20440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20441    break 2
20442  fi
20443done
20444  done
20445IFS=$as_save_IFS
20446
20447  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20448fi
20449fi
20450LAUNCHD=$ac_cv_prog_LAUNCHD
20451if test -n "$LAUNCHD"; then
20452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20453$as_echo "$LAUNCHD" >&6; }
20454else
20455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456$as_echo "no" >&6; }
20457fi
20458
20459
20460fi
20461
20462if test "x$LAUNCHD" = xyes ; then
20463
20464$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20465
20466
20467$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
20468
20469fi
20470
20471# Check whether --enable-xthreads was given.
20472if test "${enable_xthreads+set}" = set; then :
20473  enableval=$enable_xthreads; xthreads=$enableval
20474else
20475  xthreads=yes
20476fi
20477
20478
20479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20480$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20481if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20482  $as_echo_n "(cached) " >&6
20483else
20484  ac_check_lib_save_LIBS=$LIBS
20485LIBS="-lc  $LIBS"
20486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487/* end confdefs.h.  */
20488
20489/* Override any GCC internal prototype to avoid an error.
20490   Use char because int might match the return type of a GCC
20491   builtin and then its argument prototype would still apply.  */
20492#ifdef __cplusplus
20493extern "C"
20494#endif
20495char getpwuid_r ();
20496int
20497main ()
20498{
20499return getpwuid_r ();
20500  ;
20501  return 0;
20502}
20503_ACEOF
20504if ac_fn_c_try_link "$LINENO"; then :
20505  ac_cv_lib_c_getpwuid_r=yes
20506else
20507  ac_cv_lib_c_getpwuid_r=no
20508fi
20509rm -f core conftest.err conftest.$ac_objext \
20510    conftest$ac_exeext conftest.$ac_ext
20511LIBS=$ac_check_lib_save_LIBS
20512fi
20513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20514$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20515if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20516  mtsafeapi="yes"
20517else
20518  mtsafeapi="no"
20519fi
20520
20521
20522case x$xthreads in
20523xyes)
20524
20525$as_echo "#define XTHREADS 1" >>confdefs.h
20526
20527	if test x$mtsafeapi = xyes
20528	then
20529
20530$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
20531
20532	fi
20533	;;
20534*)
20535	;;
20536esac
20537
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
20539$as_echo_n "checking for pthread_self in -lc... " >&6; }
20540if ${ac_cv_lib_c_pthread_self+:} false; then :
20541  $as_echo_n "(cached) " >&6
20542else
20543  ac_check_lib_save_LIBS=$LIBS
20544LIBS="-lc  $LIBS"
20545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546/* end confdefs.h.  */
20547
20548/* Override any GCC internal prototype to avoid an error.
20549   Use char because int might match the return type of a GCC
20550   builtin and then its argument prototype would still apply.  */
20551#ifdef __cplusplus
20552extern "C"
20553#endif
20554char pthread_self ();
20555int
20556main ()
20557{
20558return pthread_self ();
20559  ;
20560  return 0;
20561}
20562_ACEOF
20563if ac_fn_c_try_link "$LINENO"; then :
20564  ac_cv_lib_c_pthread_self=yes
20565else
20566  ac_cv_lib_c_pthread_self=no
20567fi
20568rm -f core conftest.err conftest.$ac_objext \
20569    conftest$ac_exeext conftest.$ac_ext
20570LIBS=$ac_check_lib_save_LIBS
20571fi
20572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
20573$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
20574if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
20575  thrstubs="no"
20576else
20577  thrstubs="yes"
20578fi
20579
20580 if test x$thrstubs = xyes; then
20581  THRSTUBS_TRUE=
20582  THRSTUBS_FALSE='#'
20583else
20584  THRSTUBS_TRUE='#'
20585  THRSTUBS_FALSE=
20586fi
20587
20588
20589# XXX incomplete, please fill this in
20590if test x$xthreads = xyes ; then
20591    case $host_os in
20592    linux*|gnu*|k*bsd*-gnu)
20593        XTHREADLIB=-lpthread ;;
20594    netbsd*)
20595	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
20596	XTHREADLIB="-lpthread" ;;
20597    freebsd*)
20598        XTHREAD_CFLAGS="-D_THREAD_SAFE"
20599        XTHREADLIB="-pthread" ;;
20600    dragonfly*|openbsd*)
20601        XTHREADLIB="-pthread" ;;
20602    solaris*)
20603	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
20604    esac
20605fi
20606
20607
20608
20609ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20610if test "x$ac_cv_func_poll" = xyes; then :
20611
20612$as_echo "#define USE_POLL 1" >>confdefs.h
20613
20614fi
20615
20616
20617#
20618# Find keysymdef.h
20619#
20620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
20621$as_echo_n "checking keysym definitions... " >&6; }
20622
20623# Check whether --with-keysymdefdir was given.
20624if test "${with_keysymdefdir+set}" = set; then :
20625  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
20626else
20627  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
20628fi
20629
20630
20631if test ! -d "$KEYSYMDEFDIR"; then
20632	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
20633fi
20634
20635FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
20636for i in $FILES; do
20637    if test -f "$KEYSYMDEFDIR/$i"; then
20638            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
20639    elif test "x$i" = "xkeysymdef.h"; then
20640	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
20641    fi
20642done
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
20644$as_echo "$KEYSYMDEFS" >&6; }
20645
20646
20647# Check whether --enable-xcms was given.
20648if test "${enable_xcms+set}" = set; then :
20649  enableval=$enable_xcms; XCMS=$enableval
20650else
20651  XCMS=yes
20652fi
20653
20654 if test x$XCMS = xyes ; then
20655  XCMS_TRUE=
20656  XCMS_FALSE='#'
20657else
20658  XCMS_TRUE='#'
20659  XCMS_FALSE=
20660fi
20661
20662if test x"$XCMS" = "xyes"; then
20663
20664$as_echo "#define XCMS 1" >>confdefs.h
20665
20666fi
20667
20668# Check whether --enable-xlocale was given.
20669if test "${enable_xlocale+set}" = set; then :
20670  enableval=$enable_xlocale; XLOCALE=$enableval
20671else
20672  XLOCALE=yes
20673fi
20674
20675
20676 if  test x$XLOCALE = xyes ; then
20677  XLOCALE_TRUE=
20678  XLOCALE_FALSE='#'
20679else
20680  XLOCALE_TRUE='#'
20681  XLOCALE_FALSE=
20682fi
20683
20684if test x"$XLOCALE" = "xyes"; then
20685
20686$as_echo "#define XLOCALE 1" >>confdefs.h
20687
20688fi
20689
20690# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
20691# don't have either issetugid() or getresuid(), and you need to protect
20692# clients that are setgid or setuid to an id other than 0.
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
20694$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
20695# Check whether --enable-xlocaledir was given.
20696if test "${enable_xlocaledir+set}" = set; then :
20697  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
20698else
20699  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
20700fi
20701
20702if test "x$ENABLE_XLOCALEDIR" = "xno"; then
20703
20704$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
20705
20706fi
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
20708$as_echo "$ENABLE_XLOCALEDIR" >&6; }
20709
20710# Check whether --enable-xf86bigfont was given.
20711if test "${enable_xf86bigfont+set}" = set; then :
20712  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
20713else
20714  XF86BIGFONT="yes"
20715fi
20716
20717if test "x$XF86BIGFONT" = "xyes"; then
20718
20719pkg_failed=no
20720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
20721$as_echo_n "checking for BIGFONT... " >&6; }
20722
20723if test -n "$BIGFONT_CFLAGS"; then
20724    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
20725 elif test -n "$PKG_CONFIG"; then
20726    if test -n "$PKG_CONFIG" && \
20727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20728  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20729  ac_status=$?
20730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20731  test $ac_status = 0; }; then
20732  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
20733		      test "x$?" != "x0" && pkg_failed=yes
20734else
20735  pkg_failed=yes
20736fi
20737 else
20738    pkg_failed=untried
20739fi
20740if test -n "$BIGFONT_LIBS"; then
20741    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
20742 elif test -n "$PKG_CONFIG"; then
20743    if test -n "$PKG_CONFIG" && \
20744    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20745  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20746  ac_status=$?
20747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20748  test $ac_status = 0; }; then
20749  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
20750		      test "x$?" != "x0" && pkg_failed=yes
20751else
20752  pkg_failed=yes
20753fi
20754 else
20755    pkg_failed=untried
20756fi
20757
20758
20759
20760if test $pkg_failed = yes; then
20761   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20762$as_echo "no" >&6; }
20763
20764if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20765        _pkg_short_errors_supported=yes
20766else
20767        _pkg_short_errors_supported=no
20768fi
20769        if test $_pkg_short_errors_supported = yes; then
20770	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
20771        else
20772	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
20773        fi
20774	# Put the nasty error message in config.log where it belongs
20775	echo "$BIGFONT_PKG_ERRORS" >&5
20776
20777	XF86BIGFONT="no"
20778elif test $pkg_failed = untried; then
20779     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20780$as_echo "no" >&6; }
20781	XF86BIGFONT="no"
20782else
20783	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
20784	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
20785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20786$as_echo "yes" >&6; }
20787
20788$as_echo "#define XF86BIGFONT 1" >>confdefs.h
20789
20790fi
20791fi
20792
20793# Check whether --enable-xkb was given.
20794if test "${enable_xkb+set}" = set; then :
20795  enableval=$enable_xkb; XKB=$enableval
20796else
20797  XKB=yes
20798fi
20799
20800
20801 if  test x$XKB = xyes ; then
20802  XKB_TRUE=
20803  XKB_FALSE='#'
20804else
20805  XKB_TRUE='#'
20806  XKB_FALSE=
20807fi
20808
20809if test x"$XKB" = "xyes"; then
20810   XKBPROTO_REQUIRES="kbproto"
20811   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
20812
20813$as_echo "#define XKB 1" >>confdefs.h
20814
20815else
20816   XKBPROTO_REQUIRES=""
20817fi
20818
20819
20820
20821
20822
20823  for ac_header in $ac_header_list
20824do :
20825  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20826ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20827"
20828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20829  cat >>confdefs.h <<_ACEOF
20830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20831_ACEOF
20832
20833fi
20834
20835done
20836
20837
20838
20839
20840
20841
20842
20843
20844for ac_func in getpagesize
20845do :
20846  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20847if test "x$ac_cv_func_getpagesize" = xyes; then :
20848  cat >>confdefs.h <<_ACEOF
20849#define HAVE_GETPAGESIZE 1
20850_ACEOF
20851
20852fi
20853done
20854
20855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
20856$as_echo_n "checking for working mmap... " >&6; }
20857if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
20858  $as_echo_n "(cached) " >&6
20859else
20860  if test "$cross_compiling" = yes; then :
20861  ac_cv_func_mmap_fixed_mapped=no
20862else
20863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864/* end confdefs.h.  */
20865$ac_includes_default
20866/* malloc might have been renamed as rpl_malloc. */
20867#undef malloc
20868
20869/* Thanks to Mike Haertel and Jim Avera for this test.
20870   Here is a matrix of mmap possibilities:
20871	mmap private not fixed
20872	mmap private fixed at somewhere currently unmapped
20873	mmap private fixed at somewhere already mapped
20874	mmap shared not fixed
20875	mmap shared fixed at somewhere currently unmapped
20876	mmap shared fixed at somewhere already mapped
20877   For private mappings, we should verify that changes cannot be read()
20878   back from the file, nor mmap's back from the file at a different
20879   address.  (There have been systems where private was not correctly
20880   implemented like the infamous i386 svr4.0, and systems where the
20881   VM page cache was not coherent with the file system buffer cache
20882   like early versions of FreeBSD and possibly contemporary NetBSD.)
20883   For shared mappings, we should conversely verify that changes get
20884   propagated back to all the places they're supposed to be.
20885
20886   Grep wants private fixed already mapped.
20887   The main things grep needs to know about mmap are:
20888   * does it exist and is it safe to write into the mmap'd area
20889   * how to use it (BSD variants)  */
20890
20891#include <fcntl.h>
20892#include <sys/mman.h>
20893
20894#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20895char *malloc ();
20896#endif
20897
20898/* This mess was copied from the GNU getpagesize.h.  */
20899#ifndef HAVE_GETPAGESIZE
20900# ifdef _SC_PAGESIZE
20901#  define getpagesize() sysconf(_SC_PAGESIZE)
20902# else /* no _SC_PAGESIZE */
20903#  ifdef HAVE_SYS_PARAM_H
20904#   include <sys/param.h>
20905#   ifdef EXEC_PAGESIZE
20906#    define getpagesize() EXEC_PAGESIZE
20907#   else /* no EXEC_PAGESIZE */
20908#    ifdef NBPG
20909#     define getpagesize() NBPG * CLSIZE
20910#     ifndef CLSIZE
20911#      define CLSIZE 1
20912#     endif /* no CLSIZE */
20913#    else /* no NBPG */
20914#     ifdef NBPC
20915#      define getpagesize() NBPC
20916#     else /* no NBPC */
20917#      ifdef PAGESIZE
20918#       define getpagesize() PAGESIZE
20919#      endif /* PAGESIZE */
20920#     endif /* no NBPC */
20921#    endif /* no NBPG */
20922#   endif /* no EXEC_PAGESIZE */
20923#  else /* no HAVE_SYS_PARAM_H */
20924#   define getpagesize() 8192	/* punt totally */
20925#  endif /* no HAVE_SYS_PARAM_H */
20926# endif /* no _SC_PAGESIZE */
20927
20928#endif /* no HAVE_GETPAGESIZE */
20929
20930int
20931main ()
20932{
20933  char *data, *data2, *data3;
20934  const char *cdata2;
20935  int i, pagesize;
20936  int fd, fd2;
20937
20938  pagesize = getpagesize ();
20939
20940  /* First, make a file with some known garbage in it. */
20941  data = (char *) malloc (pagesize);
20942  if (!data)
20943    return 1;
20944  for (i = 0; i < pagesize; ++i)
20945    *(data + i) = rand ();
20946  umask (0);
20947  fd = creat ("conftest.mmap", 0600);
20948  if (fd < 0)
20949    return 2;
20950  if (write (fd, data, pagesize) != pagesize)
20951    return 3;
20952  close (fd);
20953
20954  /* Next, check that the tail of a page is zero-filled.  File must have
20955     non-zero length, otherwise we risk SIGBUS for entire page.  */
20956  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20957  if (fd2 < 0)
20958    return 4;
20959  cdata2 = "";
20960  if (write (fd2, cdata2, 1) != 1)
20961    return 5;
20962  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20963  if (data2 == MAP_FAILED)
20964    return 6;
20965  for (i = 0; i < pagesize; ++i)
20966    if (*(data2 + i))
20967      return 7;
20968  close (fd2);
20969  if (munmap (data2, pagesize))
20970    return 8;
20971
20972  /* Next, try to mmap the file at a fixed address which already has
20973     something else allocated at it.  If we can, also make sure that
20974     we see the same garbage.  */
20975  fd = open ("conftest.mmap", O_RDWR);
20976  if (fd < 0)
20977    return 9;
20978  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20979		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20980    return 10;
20981  for (i = 0; i < pagesize; ++i)
20982    if (*(data + i) != *(data2 + i))
20983      return 11;
20984
20985  /* Finally, make sure that changes to the mapped area do not
20986     percolate back to the file as seen by read().  (This is a bug on
20987     some variants of i386 svr4.0.)  */
20988  for (i = 0; i < pagesize; ++i)
20989    *(data2 + i) = *(data2 + i) + 1;
20990  data3 = (char *) malloc (pagesize);
20991  if (!data3)
20992    return 12;
20993  if (read (fd, data3, pagesize) != pagesize)
20994    return 13;
20995  for (i = 0; i < pagesize; ++i)
20996    if (*(data + i) != *(data3 + i))
20997      return 14;
20998  close (fd);
20999  return 0;
21000}
21001_ACEOF
21002if ac_fn_c_try_run "$LINENO"; then :
21003  ac_cv_func_mmap_fixed_mapped=yes
21004else
21005  ac_cv_func_mmap_fixed_mapped=no
21006fi
21007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21008  conftest.$ac_objext conftest.beam conftest.$ac_ext
21009fi
21010
21011fi
21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21013$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21014if test $ac_cv_func_mmap_fixed_mapped = yes; then
21015
21016$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21017
21018fi
21019rm -f conftest.mmap conftest.txt
21020
21021composecache_default=$ac_cv_func_mmap_fixed_mapped
21022ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21023if test "x$ac_cv_func_nl_langinfo" = xyes; then :
21024
21025else
21026  composecache_default=no
21027fi
21028
21029# Check whether --enable-composecache was given.
21030if test "${enable_composecache+set}" = set; then :
21031  enableval=$enable_composecache; COMPOSECACHE=$enableval
21032else
21033  COMPOSECACHE=$composecache_default
21034fi
21035
21036if test x"$COMPOSECACHE" = "xyes"; then
21037
21038$as_echo "#define COMPOSECACHE 1" >>confdefs.h
21039
21040fi
21041
21042# Allow checking code with lint, sparse, etc.
21043
21044
21045
21046
21047
21048# Check whether --with-lint was given.
21049if test "${with_lint+set}" = set; then :
21050  withval=$with_lint; use_lint=$withval
21051else
21052  use_lint=no
21053fi
21054
21055
21056# Obtain platform specific info like program name and options
21057# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21058case $host_os in
21059  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21060	lint_name=splint
21061	lint_options="-badflag"
21062	;;
21063  *freebsd* | *netbsd*)
21064	lint_name=lint
21065	lint_options="-u -b"
21066	;;
21067  *solaris*)
21068	lint_name=lint
21069	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21070	;;
21071esac
21072
21073# Test for the presence of the program (either guessed by the code or spelled out by the user)
21074if test "x$use_lint" = x"yes" ; then
21075   # Extract the first word of "$lint_name", so it can be a program name with args.
21076set dummy $lint_name; ac_word=$2
21077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21078$as_echo_n "checking for $ac_word... " >&6; }
21079if ${ac_cv_path_LINT+:} false; then :
21080  $as_echo_n "(cached) " >&6
21081else
21082  case $LINT in
21083  [\\/]* | ?:[\\/]*)
21084  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21085  ;;
21086  *)
21087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21088for as_dir in $PATH
21089do
21090  IFS=$as_save_IFS
21091  test -z "$as_dir" && as_dir=.
21092    for ac_exec_ext in '' $ac_executable_extensions; do
21093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21094    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
21095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21096    break 2
21097  fi
21098done
21099  done
21100IFS=$as_save_IFS
21101
21102  ;;
21103esac
21104fi
21105LINT=$ac_cv_path_LINT
21106if test -n "$LINT"; then
21107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21108$as_echo "$LINT" >&6; }
21109else
21110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111$as_echo "no" >&6; }
21112fi
21113
21114
21115   if test "x$LINT" = "x"; then
21116        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21117   fi
21118elif test "x$use_lint" = x"no" ; then
21119   if test "x$LINT" != "x"; then
21120      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21121$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21122   fi
21123else
21124   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21125fi
21126
21127# User supplied flags override default flags
21128if test "x$LINT_FLAGS" != "x"; then
21129   lint_options=$LINT_FLAGS
21130fi
21131
21132LINT_FLAGS=$lint_options
21133
21134 if test "x$LINT" != x; then
21135  LINT_TRUE=
21136  LINT_FALSE='#'
21137else
21138  LINT_TRUE='#'
21139  LINT_FALSE=
21140fi
21141
21142
21143
21144
21145
21146# Check whether --enable-lint-library was given.
21147if test "${enable_lint_library+set}" = set; then :
21148  enableval=$enable_lint_library; make_lint_lib=$enableval
21149else
21150  make_lint_lib=no
21151fi
21152
21153
21154if test "x$make_lint_lib" = x"yes" ; then
21155   LINTLIB=llib-lX11.ln
21156   if test "x$LINT" = "x"; then
21157        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21158   fi
21159elif test "x$make_lint_lib" != x"no" ; then
21160   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21161fi
21162
21163
21164 if test x$make_lint_lib != xno; then
21165  MAKE_LINT_LIB_TRUE=
21166  MAKE_LINT_LIB_FALSE='#'
21167else
21168  MAKE_LINT_LIB_TRUE='#'
21169  MAKE_LINT_LIB_FALSE=
21170fi
21171
21172
21173
21174
21175X11_DATADIR="${datadir}/X11"
21176
21177  prefix_NONE=
21178  exec_prefix_NONE=
21179  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21180  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21181  eval ax_define_dir="\"$X11_DATADIR\""
21182  eval ax_define_dir="\"$ax_define_dir\""
21183  X11_DATADIR="$ax_define_dir"
21184
21185
21186cat >>confdefs.h <<_ACEOF
21187#define X11_DATADIR "$ax_define_dir"
21188_ACEOF
21189
21190  test "$prefix_NONE" && prefix=NONE
21191  test "$exec_prefix_NONE" && exec_prefix=NONE
21192
21193
21194
21195X11_LIBDIR="${libdir}/X11"
21196
21197  prefix_NONE=
21198  exec_prefix_NONE=
21199  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21200  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21201  eval ax_define_dir="\"$X11_LIBDIR\""
21202  eval ax_define_dir="\"$ax_define_dir\""
21203  X11_LIBDIR="$ax_define_dir"
21204
21205
21206cat >>confdefs.h <<_ACEOF
21207#define X11_LIBDIR "$ax_define_dir"
21208_ACEOF
21209
21210  test "$prefix_NONE" && prefix=NONE
21211  test "$exec_prefix_NONE" && exec_prefix=NONE
21212
21213
21214
21215
21216pkg_failed=no
21217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
21218$as_echo_n "checking for X11... " >&6; }
21219
21220if test -n "$X11_CFLAGS"; then
21221    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21222 elif test -n "$PKG_CONFIG"; then
21223    if test -n "$PKG_CONFIG" && \
21224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21225  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21226  ac_status=$?
21227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21228  test $ac_status = 0; }; then
21229  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
21230		      test "x$?" != "x0" && pkg_failed=yes
21231else
21232  pkg_failed=yes
21233fi
21234 else
21235    pkg_failed=untried
21236fi
21237if test -n "$X11_LIBS"; then
21238    pkg_cv_X11_LIBS="$X11_LIBS"
21239 elif test -n "$PKG_CONFIG"; then
21240    if test -n "$PKG_CONFIG" && \
21241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21242  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21243  ac_status=$?
21244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21245  test $ac_status = 0; }; then
21246  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
21247		      test "x$?" != "x0" && pkg_failed=yes
21248else
21249  pkg_failed=yes
21250fi
21251 else
21252    pkg_failed=untried
21253fi
21254
21255
21256
21257if test $pkg_failed = yes; then
21258   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21259$as_echo "no" >&6; }
21260
21261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21262        _pkg_short_errors_supported=yes
21263else
21264        _pkg_short_errors_supported=no
21265fi
21266        if test $_pkg_short_errors_supported = yes; then
21267	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21268        else
21269	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21270        fi
21271	# Put the nasty error message in config.log where it belongs
21272	echo "$X11_PKG_ERRORS" >&5
21273
21274	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
21275
21276$X11_PKG_ERRORS
21277
21278Consider adjusting the PKG_CONFIG_PATH environment variable if you
21279installed software in a non-standard prefix.
21280
21281Alternatively, you may set the environment variables X11_CFLAGS
21282and X11_LIBS to avoid the need to call pkg-config.
21283See the pkg-config man page for more details." "$LINENO" 5
21284elif test $pkg_failed = untried; then
21285     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286$as_echo "no" >&6; }
21287	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21289as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21290is in your PATH or set the PKG_CONFIG environment variable to the full
21291path to pkg-config.
21292
21293Alternatively, you may set the environment variables X11_CFLAGS
21294and X11_LIBS to avoid the need to call pkg-config.
21295See the pkg-config man page for more details.
21296
21297To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21298See \`config.log' for more details" "$LINENO" 5; }
21299else
21300	X11_CFLAGS=$pkg_cv_X11_CFLAGS
21301	X11_LIBS=$pkg_cv_X11_LIBS
21302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21303$as_echo "yes" >&6; }
21304
21305fi
21306X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
21307
21308#
21309# Yes, it would be nice to put the locale data in
21310# /usr/share, but the locale stuff includes loadable
21311# libraries which must be located in the same directory
21312# as the other locale data, so for now, everything lives
21313# in ${libdir}
21314#
21315
21316X11_LOCALEDATADIR="${X11_DATADIR}/locale"
21317
21318  prefix_NONE=
21319  exec_prefix_NONE=
21320  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21321  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21322  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
21323  eval ax_define_dir="\"$ax_define_dir\""
21324  XLOCALEDATADIR="$ax_define_dir"
21325
21326
21327cat >>confdefs.h <<_ACEOF
21328#define XLOCALEDATADIR "$ax_define_dir"
21329_ACEOF
21330
21331  test "$prefix_NONE" && prefix=NONE
21332  test "$exec_prefix_NONE" && exec_prefix=NONE
21333
21334
21335
21336
21337# Check whether --with-locale-lib-dir was given.
21338if test "${with_locale_lib_dir+set}" = set; then :
21339  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
21340else
21341   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
21342fi
21343
21344
21345  prefix_NONE=
21346  exec_prefix_NONE=
21347  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21348  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21349  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
21350  eval ax_define_dir="\"$ax_define_dir\""
21351  XLOCALELIBDIR="$ax_define_dir"
21352
21353
21354cat >>confdefs.h <<_ACEOF
21355#define XLOCALELIBDIR "$ax_define_dir"
21356_ACEOF
21357
21358  test "$prefix_NONE" && prefix=NONE
21359  test "$exec_prefix_NONE" && exec_prefix=NONE
21360
21361
21362
21363X11_LOCALEDIR="${X11_LOCALEDATADIR}"
21364
21365  prefix_NONE=
21366  exec_prefix_NONE=
21367  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21368  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21369  eval ax_define_dir="\"$X11_LOCALEDIR\""
21370  eval ax_define_dir="\"$ax_define_dir\""
21371  XLOCALEDIR="$ax_define_dir"
21372
21373
21374cat >>confdefs.h <<_ACEOF
21375#define XLOCALEDIR "$ax_define_dir"
21376_ACEOF
21377
21378  test "$prefix_NONE" && prefix=NONE
21379  test "$exec_prefix_NONE" && exec_prefix=NONE
21380
21381
21382
21383locales="\
21384 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
21385 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
21386 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
21387 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
21388 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
21389 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
21390 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
21391 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
21392 ru_RU.UTF-8  sr_CS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
21393 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
21394 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
21395 zh_TW        zh_TW.big5  zh_TW.UTF-8"
21396
21397
21398XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
21399
21400  prefix_NONE=
21401  exec_prefix_NONE=
21402  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21403  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21404  eval ax_define_dir="\"$XKEYSYMDB\""
21405  eval ax_define_dir="\"$ax_define_dir\""
21406  XKEYSYMDB="$ax_define_dir"
21407
21408
21409cat >>confdefs.h <<_ACEOF
21410#define XKEYSYMDB "$ax_define_dir"
21411_ACEOF
21412
21413  test "$prefix_NONE" && prefix=NONE
21414  test "$exec_prefix_NONE" && exec_prefix=NONE
21415
21416
21417XERRORDB="${X11_DATADIR}/XErrorDB"
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="\"$XERRORDB\""
21424  eval ax_define_dir="\"$ax_define_dir\""
21425  XERRORDB="$ax_define_dir"
21426
21427
21428cat >>confdefs.h <<_ACEOF
21429#define XERRORDB "$ax_define_dir"
21430_ACEOF
21431
21432  test "$prefix_NONE" && prefix=NONE
21433  test "$exec_prefix_NONE" && exec_prefix=NONE
21434
21435
21436
21437# Check whether --enable-malloc0returnsnull was given.
21438if test "${enable_malloc0returnsnull+set}" = set; then :
21439  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21440else
21441  MALLOC_ZERO_RETURNS_NULL=auto
21442fi
21443
21444
21445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
21446$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21447if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21448if ${xorg_cv_malloc0_returns_null+:} false; then :
21449  $as_echo_n "(cached) " >&6
21450else
21451  if test "$cross_compiling" = yes; then :
21452  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21454as_fn_error $? "cannot run test program while cross compiling
21455See \`config.log' for more details" "$LINENO" 5; }
21456else
21457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458/* end confdefs.h.  */
21459
21460#include <stdlib.h>
21461
21462int
21463main ()
21464{
21465
21466    char *m0, *r0, *c0, *p;
21467    m0 = malloc(0);
21468    p = malloc(10);
21469    r0 = realloc(p,0);
21470    c0 = calloc(0,10);
21471    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
21472
21473  ;
21474  return 0;
21475}
21476_ACEOF
21477if ac_fn_c_try_run "$LINENO"; then :
21478  xorg_cv_malloc0_returns_null=yes
21479else
21480  xorg_cv_malloc0_returns_null=no
21481fi
21482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21483  conftest.$ac_objext conftest.beam conftest.$ac_ext
21484fi
21485
21486fi
21487
21488MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
21489fi
21490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21491$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21492
21493if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21494	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21495	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21496	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21497else
21498	MALLOC_ZERO_CFLAGS=""
21499	XMALLOC_ZERO_CFLAGS=""
21500	XTMALLOC_ZERO_CFLAGS=""
21501fi
21502
21503
21504
21505
21506
21507
21508ac_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"
21509
21510cat >confcache <<\_ACEOF
21511# This file is a shell script that caches the results of configure
21512# tests run on this system so they can be shared between configure
21513# scripts and configure runs, see configure's option --config-cache.
21514# It is not useful on other systems.  If it contains results you don't
21515# want to keep, you may remove or edit it.
21516#
21517# config.status only pays attention to the cache file if you give it
21518# the --recheck option to rerun configure.
21519#
21520# `ac_cv_env_foo' variables (set or unset) will be overridden when
21521# loading this file, other *unset* `ac_cv_foo' will be assigned the
21522# following values.
21523
21524_ACEOF
21525
21526# The following way of writing the cache mishandles newlines in values,
21527# but we know of no workaround that is simple, portable, and efficient.
21528# So, we kill variables containing newlines.
21529# Ultrix sh set writes to stderr and can't be redirected directly,
21530# and sets the high bit in the cache file unless we assign to the vars.
21531(
21532  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21533    eval ac_val=\$$ac_var
21534    case $ac_val in #(
21535    *${as_nl}*)
21536      case $ac_var in #(
21537      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21539      esac
21540      case $ac_var in #(
21541      _ | IFS | as_nl) ;; #(
21542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21543      *) { eval $ac_var=; unset $ac_var;} ;;
21544      esac ;;
21545    esac
21546  done
21547
21548  (set) 2>&1 |
21549    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21550    *${as_nl}ac_space=\ *)
21551      # `set' does not quote correctly, so add quotes: double-quote
21552      # substitution turns \\\\ into \\, and sed turns \\ into \.
21553      sed -n \
21554	"s/'/'\\\\''/g;
21555	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21556      ;; #(
21557    *)
21558      # `set' quotes correctly as required by POSIX, so do not add quotes.
21559      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21560      ;;
21561    esac |
21562    sort
21563) |
21564  sed '
21565     /^ac_cv_env_/b end
21566     t clear
21567     :clear
21568     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21569     t end
21570     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21571     :end' >>confcache
21572if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21573  if test -w "$cache_file"; then
21574    if test "x$cache_file" != "x/dev/null"; then
21575      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21576$as_echo "$as_me: updating cache $cache_file" >&6;}
21577      if test ! -f "$cache_file" || test -h "$cache_file"; then
21578	cat confcache >"$cache_file"
21579      else
21580        case $cache_file in #(
21581        */* | ?:*)
21582	  mv -f confcache "$cache_file"$$ &&
21583	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21584        *)
21585	  mv -f confcache "$cache_file" ;;
21586	esac
21587      fi
21588    fi
21589  else
21590    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21591$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21592  fi
21593fi
21594rm -f confcache
21595
21596test "x$prefix" = xNONE && prefix=$ac_default_prefix
21597# Let make expand exec_prefix.
21598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21599
21600DEFS=-DHAVE_CONFIG_H
21601
21602ac_libobjs=
21603ac_ltlibobjs=
21604U=
21605for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21606  # 1. Remove the extension, and $U if already installed.
21607  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21608  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21609  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21610  #    will be set to the directory where LIBOBJS objects are built.
21611  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21612  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21613done
21614LIBOBJS=$ac_libobjs
21615
21616LTLIBOBJS=$ac_ltlibobjs
21617
21618
21619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21620$as_echo_n "checking that generated files are newer than configure... " >&6; }
21621   if test -n "$am_sleep_pid"; then
21622     # Hide warnings about reused PIDs.
21623     wait $am_sleep_pid 2>/dev/null
21624   fi
21625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21626$as_echo "done" >&6; }
21627if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21628  as_fn_error $? "conditional \"AMDEP\" was never defined.
21629Usually this means the macro was only invoked conditionally." "$LINENO" 5
21630fi
21631if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21632  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21633Usually this means the macro was only invoked conditionally." "$LINENO" 5
21634fi
21635 if test -n "$EXEEXT"; then
21636  am__EXEEXT_TRUE=
21637  am__EXEEXT_FALSE='#'
21638else
21639  am__EXEEXT_TRUE='#'
21640  am__EXEEXT_FALSE=
21641fi
21642
21643if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21644  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21645Usually this means the macro was only invoked conditionally." "$LINENO" 5
21646fi
21647if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21648  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21649Usually this means the macro was only invoked conditionally." "$LINENO" 5
21650fi
21651if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21652  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21653Usually this means the macro was only invoked conditionally." "$LINENO" 5
21654fi
21655if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21656  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21657Usually this means the macro was only invoked conditionally." "$LINENO" 5
21658fi
21659if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21660  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21661Usually this means the macro was only invoked conditionally." "$LINENO" 5
21662fi
21663if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21664  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21665Usually this means the macro was only invoked conditionally." "$LINENO" 5
21666fi
21667if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
21668  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
21669Usually this means the macro was only invoked conditionally." "$LINENO" 5
21670fi
21671if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
21672  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
21673Usually this means the macro was only invoked conditionally." "$LINENO" 5
21674fi
21675if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
21676  as_fn_error $? "conditional \"OS2\" was never defined.
21677Usually this means the macro was only invoked conditionally." "$LINENO" 5
21678fi
21679if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
21680  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
21681Usually this means the macro was only invoked conditionally." "$LINENO" 5
21682fi
21683if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
21684  as_fn_error $? "conditional \"XCMS\" was never defined.
21685Usually this means the macro was only invoked conditionally." "$LINENO" 5
21686fi
21687if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
21688  as_fn_error $? "conditional \"XLOCALE\" was never defined.
21689Usually this means the macro was only invoked conditionally." "$LINENO" 5
21690fi
21691if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
21692  as_fn_error $? "conditional \"XKB\" was never defined.
21693Usually this means the macro was only invoked conditionally." "$LINENO" 5
21694fi
21695if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21696  as_fn_error $? "conditional \"LINT\" was never defined.
21697Usually this means the macro was only invoked conditionally." "$LINENO" 5
21698fi
21699if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21700  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21701Usually this means the macro was only invoked conditionally." "$LINENO" 5
21702fi
21703
21704: "${CONFIG_STATUS=./config.status}"
21705ac_write_fail=0
21706ac_clean_files_save=$ac_clean_files
21707ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21708{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21709$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21710as_write_fail=0
21711cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21712#! $SHELL
21713# Generated by $as_me.
21714# Run this file to recreate the current configuration.
21715# Compiler output produced by configure, useful for debugging
21716# configure, is in config.log if it exists.
21717
21718debug=false
21719ac_cs_recheck=false
21720ac_cs_silent=false
21721
21722SHELL=\${CONFIG_SHELL-$SHELL}
21723export SHELL
21724_ASEOF
21725cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21726## -------------------- ##
21727## M4sh Initialization. ##
21728## -------------------- ##
21729
21730# Be more Bourne compatible
21731DUALCASE=1; export DUALCASE # for MKS sh
21732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21733  emulate sh
21734  NULLCMD=:
21735  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21736  # is contrary to our usage.  Disable this feature.
21737  alias -g '${1+"$@"}'='"$@"'
21738  setopt NO_GLOB_SUBST
21739else
21740  case `(set -o) 2>/dev/null` in #(
21741  *posix*) :
21742    set -o posix ;; #(
21743  *) :
21744     ;;
21745esac
21746fi
21747
21748
21749as_nl='
21750'
21751export as_nl
21752# Printing a long string crashes Solaris 7 /usr/bin/printf.
21753as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21755as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21756# Prefer a ksh shell builtin over an external printf program on Solaris,
21757# but without wasting forks for bash or zsh.
21758if test -z "$BASH_VERSION$ZSH_VERSION" \
21759    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21760  as_echo='print -r --'
21761  as_echo_n='print -rn --'
21762elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21763  as_echo='printf %s\n'
21764  as_echo_n='printf %s'
21765else
21766  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21767    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21768    as_echo_n='/usr/ucb/echo -n'
21769  else
21770    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21771    as_echo_n_body='eval
21772      arg=$1;
21773      case $arg in #(
21774      *"$as_nl"*)
21775	expr "X$arg" : "X\\(.*\\)$as_nl";
21776	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21777      esac;
21778      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21779    '
21780    export as_echo_n_body
21781    as_echo_n='sh -c $as_echo_n_body as_echo'
21782  fi
21783  export as_echo_body
21784  as_echo='sh -c $as_echo_body as_echo'
21785fi
21786
21787# The user is always right.
21788if test "${PATH_SEPARATOR+set}" != set; then
21789  PATH_SEPARATOR=:
21790  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21791    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21792      PATH_SEPARATOR=';'
21793  }
21794fi
21795
21796
21797# IFS
21798# We need space, tab and new line, in precisely that order.  Quoting is
21799# there to prevent editors from complaining about space-tab.
21800# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21801# splitting by setting IFS to empty value.)
21802IFS=" ""	$as_nl"
21803
21804# Find who we are.  Look in the path if we contain no directory separator.
21805as_myself=
21806case $0 in #((
21807  *[\\/]* ) as_myself=$0 ;;
21808  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21809for as_dir in $PATH
21810do
21811  IFS=$as_save_IFS
21812  test -z "$as_dir" && as_dir=.
21813    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21814  done
21815IFS=$as_save_IFS
21816
21817     ;;
21818esac
21819# We did not find ourselves, most probably we were run as `sh COMMAND'
21820# in which case we are not to be found in the path.
21821if test "x$as_myself" = x; then
21822  as_myself=$0
21823fi
21824if test ! -f "$as_myself"; then
21825  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21826  exit 1
21827fi
21828
21829# Unset variables that we do not need and which cause bugs (e.g. in
21830# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21831# suppresses any "Segmentation fault" message there.  '((' could
21832# trigger a bug in pdksh 5.2.14.
21833for as_var in BASH_ENV ENV MAIL MAILPATH
21834do eval test x\${$as_var+set} = xset \
21835  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21836done
21837PS1='$ '
21838PS2='> '
21839PS4='+ '
21840
21841# NLS nuisances.
21842LC_ALL=C
21843export LC_ALL
21844LANGUAGE=C
21845export LANGUAGE
21846
21847# CDPATH.
21848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21849
21850
21851# as_fn_error STATUS ERROR [LINENO LOG_FD]
21852# ----------------------------------------
21853# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21854# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21855# script with STATUS, using 1 if that was 0.
21856as_fn_error ()
21857{
21858  as_status=$1; test $as_status -eq 0 && as_status=1
21859  if test "$4"; then
21860    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21861    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21862  fi
21863  $as_echo "$as_me: error: $2" >&2
21864  as_fn_exit $as_status
21865} # as_fn_error
21866
21867
21868# as_fn_set_status STATUS
21869# -----------------------
21870# Set $? to STATUS, without forking.
21871as_fn_set_status ()
21872{
21873  return $1
21874} # as_fn_set_status
21875
21876# as_fn_exit STATUS
21877# -----------------
21878# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21879as_fn_exit ()
21880{
21881  set +e
21882  as_fn_set_status $1
21883  exit $1
21884} # as_fn_exit
21885
21886# as_fn_unset VAR
21887# ---------------
21888# Portably unset VAR.
21889as_fn_unset ()
21890{
21891  { eval $1=; unset $1;}
21892}
21893as_unset=as_fn_unset
21894# as_fn_append VAR VALUE
21895# ----------------------
21896# Append the text in VALUE to the end of the definition contained in VAR. Take
21897# advantage of any shell optimizations that allow amortized linear growth over
21898# repeated appends, instead of the typical quadratic growth present in naive
21899# implementations.
21900if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21901  eval 'as_fn_append ()
21902  {
21903    eval $1+=\$2
21904  }'
21905else
21906  as_fn_append ()
21907  {
21908    eval $1=\$$1\$2
21909  }
21910fi # as_fn_append
21911
21912# as_fn_arith ARG...
21913# ------------------
21914# Perform arithmetic evaluation on the ARGs, and store the result in the
21915# global $as_val. Take advantage of shells that can avoid forks. The arguments
21916# must be portable across $(()) and expr.
21917if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21918  eval 'as_fn_arith ()
21919  {
21920    as_val=$(( $* ))
21921  }'
21922else
21923  as_fn_arith ()
21924  {
21925    as_val=`expr "$@" || test $? -eq 1`
21926  }
21927fi # as_fn_arith
21928
21929
21930if expr a : '\(a\)' >/dev/null 2>&1 &&
21931   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21932  as_expr=expr
21933else
21934  as_expr=false
21935fi
21936
21937if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21938  as_basename=basename
21939else
21940  as_basename=false
21941fi
21942
21943if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21944  as_dirname=dirname
21945else
21946  as_dirname=false
21947fi
21948
21949as_me=`$as_basename -- "$0" ||
21950$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21951	 X"$0" : 'X\(//\)$' \| \
21952	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21953$as_echo X/"$0" |
21954    sed '/^.*\/\([^/][^/]*\)\/*$/{
21955	    s//\1/
21956	    q
21957	  }
21958	  /^X\/\(\/\/\)$/{
21959	    s//\1/
21960	    q
21961	  }
21962	  /^X\/\(\/\).*/{
21963	    s//\1/
21964	    q
21965	  }
21966	  s/.*/./; q'`
21967
21968# Avoid depending upon Character Ranges.
21969as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21971as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21972as_cr_digits='0123456789'
21973as_cr_alnum=$as_cr_Letters$as_cr_digits
21974
21975ECHO_C= ECHO_N= ECHO_T=
21976case `echo -n x` in #(((((
21977-n*)
21978  case `echo 'xy\c'` in
21979  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21980  xy)  ECHO_C='\c';;
21981  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21982       ECHO_T='	';;
21983  esac;;
21984*)
21985  ECHO_N='-n';;
21986esac
21987
21988rm -f conf$$ conf$$.exe conf$$.file
21989if test -d conf$$.dir; then
21990  rm -f conf$$.dir/conf$$.file
21991else
21992  rm -f conf$$.dir
21993  mkdir conf$$.dir 2>/dev/null
21994fi
21995if (echo >conf$$.file) 2>/dev/null; then
21996  if ln -s conf$$.file conf$$ 2>/dev/null; then
21997    as_ln_s='ln -s'
21998    # ... but there are two gotchas:
21999    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22000    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22001    # In both cases, we have to default to `cp -pR'.
22002    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22003      as_ln_s='cp -pR'
22004  elif ln conf$$.file conf$$ 2>/dev/null; then
22005    as_ln_s=ln
22006  else
22007    as_ln_s='cp -pR'
22008  fi
22009else
22010  as_ln_s='cp -pR'
22011fi
22012rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22013rmdir conf$$.dir 2>/dev/null
22014
22015
22016# as_fn_mkdir_p
22017# -------------
22018# Create "$as_dir" as a directory, including parents if necessary.
22019as_fn_mkdir_p ()
22020{
22021
22022  case $as_dir in #(
22023  -*) as_dir=./$as_dir;;
22024  esac
22025  test -d "$as_dir" || eval $as_mkdir_p || {
22026    as_dirs=
22027    while :; do
22028      case $as_dir in #(
22029      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22030      *) as_qdir=$as_dir;;
22031      esac
22032      as_dirs="'$as_qdir' $as_dirs"
22033      as_dir=`$as_dirname -- "$as_dir" ||
22034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22035	 X"$as_dir" : 'X\(//\)[^/]' \| \
22036	 X"$as_dir" : 'X\(//\)$' \| \
22037	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22038$as_echo X"$as_dir" |
22039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22040	    s//\1/
22041	    q
22042	  }
22043	  /^X\(\/\/\)[^/].*/{
22044	    s//\1/
22045	    q
22046	  }
22047	  /^X\(\/\/\)$/{
22048	    s//\1/
22049	    q
22050	  }
22051	  /^X\(\/\).*/{
22052	    s//\1/
22053	    q
22054	  }
22055	  s/.*/./; q'`
22056      test -d "$as_dir" && break
22057    done
22058    test -z "$as_dirs" || eval "mkdir $as_dirs"
22059  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22060
22061
22062} # as_fn_mkdir_p
22063if mkdir -p . 2>/dev/null; then
22064  as_mkdir_p='mkdir -p "$as_dir"'
22065else
22066  test -d ./-p && rmdir ./-p
22067  as_mkdir_p=false
22068fi
22069
22070
22071# as_fn_executable_p FILE
22072# -----------------------
22073# Test if FILE is an executable regular file.
22074as_fn_executable_p ()
22075{
22076  test -f "$1" && test -x "$1"
22077} # as_fn_executable_p
22078as_test_x='test -x'
22079as_executable_p=as_fn_executable_p
22080
22081# Sed expression to map a string onto a valid CPP name.
22082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22083
22084# Sed expression to map a string onto a valid variable name.
22085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22086
22087
22088exec 6>&1
22089## ----------------------------------- ##
22090## Main body of $CONFIG_STATUS script. ##
22091## ----------------------------------- ##
22092_ASEOF
22093test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22094
22095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22096# Save the log message, to keep $0 and so on meaningful, and to
22097# report actual input values of CONFIG_FILES etc. instead of their
22098# values after options handling.
22099ac_log="
22100This file was extended by libX11 $as_me 1.6.5, which was
22101generated by GNU Autoconf 2.69.  Invocation command line was
22102
22103  CONFIG_FILES    = $CONFIG_FILES
22104  CONFIG_HEADERS  = $CONFIG_HEADERS
22105  CONFIG_LINKS    = $CONFIG_LINKS
22106  CONFIG_COMMANDS = $CONFIG_COMMANDS
22107  $ $0 $@
22108
22109on `(hostname || uname -n) 2>/dev/null | sed 1q`
22110"
22111
22112_ACEOF
22113
22114case $ac_config_files in *"
22115"*) set x $ac_config_files; shift; ac_config_files=$*;;
22116esac
22117
22118case $ac_config_headers in *"
22119"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22120esac
22121
22122
22123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22124# Files that config.status was made for.
22125config_files="$ac_config_files"
22126config_headers="$ac_config_headers"
22127config_commands="$ac_config_commands"
22128
22129_ACEOF
22130
22131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22132ac_cs_usage="\
22133\`$as_me' instantiates files and other configuration actions
22134from templates according to the current configuration.  Unless the files
22135and actions are specified as TAGs, all are instantiated by default.
22136
22137Usage: $0 [OPTION]... [TAG]...
22138
22139  -h, --help       print this help, then exit
22140  -V, --version    print version number and configuration settings, then exit
22141      --config     print configuration, then exit
22142  -q, --quiet, --silent
22143                   do not print progress messages
22144  -d, --debug      don't remove temporary files
22145      --recheck    update $as_me by reconfiguring in the same conditions
22146      --file=FILE[:TEMPLATE]
22147                   instantiate the configuration file FILE
22148      --header=FILE[:TEMPLATE]
22149                   instantiate the configuration header FILE
22150
22151Configuration files:
22152$config_files
22153
22154Configuration headers:
22155$config_headers
22156
22157Configuration commands:
22158$config_commands
22159
22160Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
22161
22162_ACEOF
22163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22164ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22165ac_cs_version="\\
22166libX11 config.status 1.6.5
22167configured by $0, generated by GNU Autoconf 2.69,
22168  with options \\"\$ac_cs_config\\"
22169
22170Copyright (C) 2012 Free Software Foundation, Inc.
22171This config.status script is free software; the Free Software Foundation
22172gives unlimited permission to copy, distribute and modify it."
22173
22174ac_pwd='$ac_pwd'
22175srcdir='$srcdir'
22176INSTALL='$INSTALL'
22177MKDIR_P='$MKDIR_P'
22178AWK='$AWK'
22179test -n "\$AWK" || AWK=awk
22180_ACEOF
22181
22182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22183# The default lists apply if the user does not specify any file.
22184ac_need_defaults=:
22185while test $# != 0
22186do
22187  case $1 in
22188  --*=?*)
22189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22190    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22191    ac_shift=:
22192    ;;
22193  --*=)
22194    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22195    ac_optarg=
22196    ac_shift=:
22197    ;;
22198  *)
22199    ac_option=$1
22200    ac_optarg=$2
22201    ac_shift=shift
22202    ;;
22203  esac
22204
22205  case $ac_option in
22206  # Handling of the options.
22207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22208    ac_cs_recheck=: ;;
22209  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22210    $as_echo "$ac_cs_version"; exit ;;
22211  --config | --confi | --conf | --con | --co | --c )
22212    $as_echo "$ac_cs_config"; exit ;;
22213  --debug | --debu | --deb | --de | --d | -d )
22214    debug=: ;;
22215  --file | --fil | --fi | --f )
22216    $ac_shift
22217    case $ac_optarg in
22218    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22219    '') as_fn_error $? "missing file argument" ;;
22220    esac
22221    as_fn_append CONFIG_FILES " '$ac_optarg'"
22222    ac_need_defaults=false;;
22223  --header | --heade | --head | --hea )
22224    $ac_shift
22225    case $ac_optarg in
22226    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22227    esac
22228    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22229    ac_need_defaults=false;;
22230  --he | --h)
22231    # Conflict between --help and --header
22232    as_fn_error $? "ambiguous option: \`$1'
22233Try \`$0 --help' for more information.";;
22234  --help | --hel | -h )
22235    $as_echo "$ac_cs_usage"; exit ;;
22236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22237  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22238    ac_cs_silent=: ;;
22239
22240  # This is an error.
22241  -*) as_fn_error $? "unrecognized option: \`$1'
22242Try \`$0 --help' for more information." ;;
22243
22244  *) as_fn_append ac_config_targets " $1"
22245     ac_need_defaults=false ;;
22246
22247  esac
22248  shift
22249done
22250
22251ac_configure_extra_args=
22252
22253if $ac_cs_silent; then
22254  exec 6>/dev/null
22255  ac_configure_extra_args="$ac_configure_extra_args --silent"
22256fi
22257
22258_ACEOF
22259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22260if \$ac_cs_recheck; then
22261  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22262  shift
22263  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22264  CONFIG_SHELL='$SHELL'
22265  export CONFIG_SHELL
22266  exec "\$@"
22267fi
22268
22269_ACEOF
22270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22271exec 5>>config.log
22272{
22273  echo
22274  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22275## Running $as_me. ##
22276_ASBOX
22277  $as_echo "$ac_log"
22278} >&5
22279
22280_ACEOF
22281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22282#
22283# INIT-COMMANDS
22284#
22285AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22286
22287
22288# The HP-UX ksh and POSIX shell print the target directory to stdout
22289# if CDPATH is set.
22290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22291
22292sed_quote_subst='$sed_quote_subst'
22293double_quote_subst='$double_quote_subst'
22294delay_variable_subst='$delay_variable_subst'
22295macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22296macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22297enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22298enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22300enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22301shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22302SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22303ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22304PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22305host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22306host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22307host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22308build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22309build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22310build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22311SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22312Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22313GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22314EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22315FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22316LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22317NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22318LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22319max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22320ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22321exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22322lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22323lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22324lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22325lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22326lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22327reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22328reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22329OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22330deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22331file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22332file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22333want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22334DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22335sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22336AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22337AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22338archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22339STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22340RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22341old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22342old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22343old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22344lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22345CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22346CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22347compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22348GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22349lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22350lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22351lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22352lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22353lt_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"`'
22354lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22355nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22356lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22357lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22358objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22359MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22360lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22361lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22362lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22363lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22364lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22365need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22366MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22367DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22368NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22369LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22370OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22371OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22372libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22373shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22374extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22375archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22376enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22377export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22378whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22379compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22380old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22381old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22382archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22383archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22384module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22385module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22386with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22387allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22388no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22389hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22390hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22391hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22392hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22393hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22394hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22395hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22396inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22397link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22398always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22399export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22400exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22401include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22402prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22403postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22404file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22405variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22406need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22407need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22408version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22409runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22410shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22411shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22412libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22413library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22414soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22415install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22416postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22417postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22418finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22419finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22420hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22421sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22422configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22423configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22424hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22425enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22426enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22427enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22428old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22429striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22430
22431LTCC='$LTCC'
22432LTCFLAGS='$LTCFLAGS'
22433compiler='$compiler_DEFAULT'
22434
22435# A function that is used when there is no print builtin or printf.
22436func_fallback_echo ()
22437{
22438  eval 'cat <<_LTECHO_EOF
22439\$1
22440_LTECHO_EOF'
22441}
22442
22443# Quote evaled strings.
22444for var in SHELL \
22445ECHO \
22446PATH_SEPARATOR \
22447SED \
22448GREP \
22449EGREP \
22450FGREP \
22451LD \
22452NM \
22453LN_S \
22454lt_SP2NL \
22455lt_NL2SP \
22456reload_flag \
22457OBJDUMP \
22458deplibs_check_method \
22459file_magic_cmd \
22460file_magic_glob \
22461want_nocaseglob \
22462DLLTOOL \
22463sharedlib_from_linklib_cmd \
22464AR \
22465AR_FLAGS \
22466archiver_list_spec \
22467STRIP \
22468RANLIB \
22469CC \
22470CFLAGS \
22471compiler \
22472lt_cv_sys_global_symbol_pipe \
22473lt_cv_sys_global_symbol_to_cdecl \
22474lt_cv_sys_global_symbol_to_import \
22475lt_cv_sys_global_symbol_to_c_name_address \
22476lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22477lt_cv_nm_interface \
22478nm_file_list_spec \
22479lt_cv_truncate_bin \
22480lt_prog_compiler_no_builtin_flag \
22481lt_prog_compiler_pic \
22482lt_prog_compiler_wl \
22483lt_prog_compiler_static \
22484lt_cv_prog_compiler_c_o \
22485need_locks \
22486MANIFEST_TOOL \
22487DSYMUTIL \
22488NMEDIT \
22489LIPO \
22490OTOOL \
22491OTOOL64 \
22492shrext_cmds \
22493export_dynamic_flag_spec \
22494whole_archive_flag_spec \
22495compiler_needs_object \
22496with_gnu_ld \
22497allow_undefined_flag \
22498no_undefined_flag \
22499hardcode_libdir_flag_spec \
22500hardcode_libdir_separator \
22501exclude_expsyms \
22502include_expsyms \
22503file_list_spec \
22504variables_saved_for_relink \
22505libname_spec \
22506library_names_spec \
22507soname_spec \
22508install_override_mode \
22509finish_eval \
22510old_striplib \
22511striplib; do
22512    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22513    *[\\\\\\\`\\"\\\$]*)
22514      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22515      ;;
22516    *)
22517      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22518      ;;
22519    esac
22520done
22521
22522# Double-quote double-evaled strings.
22523for var in reload_cmds \
22524old_postinstall_cmds \
22525old_postuninstall_cmds \
22526old_archive_cmds \
22527extract_expsyms_cmds \
22528old_archive_from_new_cmds \
22529old_archive_from_expsyms_cmds \
22530archive_cmds \
22531archive_expsym_cmds \
22532module_cmds \
22533module_expsym_cmds \
22534export_symbols_cmds \
22535prelink_cmds \
22536postlink_cmds \
22537postinstall_cmds \
22538postuninstall_cmds \
22539finish_cmds \
22540sys_lib_search_path_spec \
22541configure_time_dlsearch_path \
22542configure_time_lt_sys_library_path; do
22543    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22544    *[\\\\\\\`\\"\\\$]*)
22545      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22546      ;;
22547    *)
22548      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22549      ;;
22550    esac
22551done
22552
22553ac_aux_dir='$ac_aux_dir'
22554
22555# See if we are running on zsh, and set the options that allow our
22556# commands through without removal of \ escapes INIT.
22557if test -n "\${ZSH_VERSION+set}"; then
22558   setopt NO_GLOB_SUBST
22559fi
22560
22561
22562    PACKAGE='$PACKAGE'
22563    VERSION='$VERSION'
22564    RM='$RM'
22565    ofile='$ofile'
22566
22567
22568
22569
22570_ACEOF
22571
22572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22573
22574# Handling of arguments.
22575for ac_config_target in $ac_config_targets
22576do
22577  case $ac_config_target in
22578    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22579    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
22580    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22581    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22582    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22583    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22584    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22585    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
22586    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22587    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
22588    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
22589    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
22590    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
22591    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
22592    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
22593    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
22594    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
22595    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
22596    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
22597    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
22598    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
22599    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
22600    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
22601    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22602    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
22603    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
22604    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
22605    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
22606    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
22607    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
22608    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
22609    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
22610    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
22611    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
22612
22613  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22614  esac
22615done
22616
22617
22618# If the user did not use the arguments to specify the items to instantiate,
22619# then the envvar interface is used.  Set only those that are not.
22620# We use the long form for the default assignment because of an extremely
22621# bizarre bug on SunOS 4.1.3.
22622if $ac_need_defaults; then
22623  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22624  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22625  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22626fi
22627
22628# Have a temporary directory for convenience.  Make it in the build tree
22629# simply because there is no reason against having it here, and in addition,
22630# creating and moving files from /tmp can sometimes cause problems.
22631# Hook for its removal unless debugging.
22632# Note that there is a small window in which the directory will not be cleaned:
22633# after its creation but before its name has been assigned to `$tmp'.
22634$debug ||
22635{
22636  tmp= ac_tmp=
22637  trap 'exit_status=$?
22638  : "${ac_tmp:=$tmp}"
22639  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22640' 0
22641  trap 'as_fn_exit 1' 1 2 13 15
22642}
22643# Create a (secure) tmp directory for tmp files.
22644
22645{
22646  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22647  test -d "$tmp"
22648}  ||
22649{
22650  tmp=./conf$$-$RANDOM
22651  (umask 077 && mkdir "$tmp")
22652} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22653ac_tmp=$tmp
22654
22655# Set up the scripts for CONFIG_FILES section.
22656# No need to generate them if there are no CONFIG_FILES.
22657# This happens for instance with `./config.status config.h'.
22658if test -n "$CONFIG_FILES"; then
22659
22660
22661ac_cr=`echo X | tr X '\015'`
22662# On cygwin, bash can eat \r inside `` if the user requested igncr.
22663# But we know of no other shell where ac_cr would be empty at this
22664# point, so we can use a bashism as a fallback.
22665if test "x$ac_cr" = x; then
22666  eval ac_cr=\$\'\\r\'
22667fi
22668ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22669if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22670  ac_cs_awk_cr='\\r'
22671else
22672  ac_cs_awk_cr=$ac_cr
22673fi
22674
22675echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22676_ACEOF
22677
22678
22679{
22680  echo "cat >conf$$subs.awk <<_ACEOF" &&
22681  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22682  echo "_ACEOF"
22683} >conf$$subs.sh ||
22684  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22685ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22686ac_delim='%!_!# '
22687for ac_last_try in false false false false false :; do
22688  . ./conf$$subs.sh ||
22689    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22690
22691  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22692  if test $ac_delim_n = $ac_delim_num; then
22693    break
22694  elif $ac_last_try; then
22695    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22696  else
22697    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22698  fi
22699done
22700rm -f conf$$subs.sh
22701
22702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22703cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22704_ACEOF
22705sed -n '
22706h
22707s/^/S["/; s/!.*/"]=/
22708p
22709g
22710s/^[^!]*!//
22711:repl
22712t repl
22713s/'"$ac_delim"'$//
22714t delim
22715:nl
22716h
22717s/\(.\{148\}\)..*/\1/
22718t more1
22719s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22720p
22721n
22722b repl
22723:more1
22724s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22725p
22726g
22727s/.\{148\}//
22728t nl
22729:delim
22730h
22731s/\(.\{148\}\)..*/\1/
22732t more2
22733s/["\\]/\\&/g; s/^/"/; s/$/"/
22734p
22735b
22736:more2
22737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22738p
22739g
22740s/.\{148\}//
22741t delim
22742' <conf$$subs.awk | sed '
22743/^[^""]/{
22744  N
22745  s/\n//
22746}
22747' >>$CONFIG_STATUS || ac_write_fail=1
22748rm -f conf$$subs.awk
22749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22750_ACAWK
22751cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22752  for (key in S) S_is_set[key] = 1
22753  FS = ""
22754
22755}
22756{
22757  line = $ 0
22758  nfields = split(line, field, "@")
22759  substed = 0
22760  len = length(field[1])
22761  for (i = 2; i < nfields; i++) {
22762    key = field[i]
22763    keylen = length(key)
22764    if (S_is_set[key]) {
22765      value = S[key]
22766      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22767      len += length(value) + length(field[++i])
22768      substed = 1
22769    } else
22770      len += 1 + keylen
22771  }
22772
22773  print line
22774}
22775
22776_ACAWK
22777_ACEOF
22778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22779if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22780  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22781else
22782  cat
22783fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22784  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22785_ACEOF
22786
22787# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22788# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22789# trailing colons and then remove the whole line if VPATH becomes empty
22790# (actually we leave an empty line to preserve line numbers).
22791if test "x$srcdir" = x.; then
22792  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22793h
22794s///
22795s/^/:/
22796s/[	 ]*$/:/
22797s/:\$(srcdir):/:/g
22798s/:\${srcdir}:/:/g
22799s/:@srcdir@:/:/g
22800s/^:*//
22801s/:*$//
22802x
22803s/\(=[	 ]*\).*/\1/
22804G
22805s/\n//
22806s/^[^=]*=[	 ]*$//
22807}'
22808fi
22809
22810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22811fi # test -n "$CONFIG_FILES"
22812
22813# Set up the scripts for CONFIG_HEADERS section.
22814# No need to generate them if there are no CONFIG_HEADERS.
22815# This happens for instance with `./config.status Makefile'.
22816if test -n "$CONFIG_HEADERS"; then
22817cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22818BEGIN {
22819_ACEOF
22820
22821# Transform confdefs.h into an awk script `defines.awk', embedded as
22822# here-document in config.status, that substitutes the proper values into
22823# config.h.in to produce config.h.
22824
22825# Create a delimiter string that does not exist in confdefs.h, to ease
22826# handling of long lines.
22827ac_delim='%!_!# '
22828for ac_last_try in false false :; do
22829  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22830  if test -z "$ac_tt"; then
22831    break
22832  elif $ac_last_try; then
22833    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22834  else
22835    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22836  fi
22837done
22838
22839# For the awk script, D is an array of macro values keyed by name,
22840# likewise P contains macro parameters if any.  Preserve backslash
22841# newline sequences.
22842
22843ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22844sed -n '
22845s/.\{148\}/&'"$ac_delim"'/g
22846t rset
22847:rset
22848s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22849t def
22850d
22851:def
22852s/\\$//
22853t bsnl
22854s/["\\]/\\&/g
22855s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22856D["\1"]=" \3"/p
22857s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22858d
22859:bsnl
22860s/["\\]/\\&/g
22861s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22862D["\1"]=" \3\\\\\\n"\\/p
22863t cont
22864s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22865t cont
22866d
22867:cont
22868n
22869s/.\{148\}/&'"$ac_delim"'/g
22870t clear
22871:clear
22872s/\\$//
22873t bsnlc
22874s/["\\]/\\&/g; s/^/"/; s/$/"/p
22875d
22876:bsnlc
22877s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22878b cont
22879' <confdefs.h | sed '
22880s/'"$ac_delim"'/"\\\
22881"/g' >>$CONFIG_STATUS || ac_write_fail=1
22882
22883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22884  for (key in D) D_is_set[key] = 1
22885  FS = ""
22886}
22887/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22888  line = \$ 0
22889  split(line, arg, " ")
22890  if (arg[1] == "#") {
22891    defundef = arg[2]
22892    mac1 = arg[3]
22893  } else {
22894    defundef = substr(arg[1], 2)
22895    mac1 = arg[2]
22896  }
22897  split(mac1, mac2, "(") #)
22898  macro = mac2[1]
22899  prefix = substr(line, 1, index(line, defundef) - 1)
22900  if (D_is_set[macro]) {
22901    # Preserve the white space surrounding the "#".
22902    print prefix "define", macro P[macro] D[macro]
22903    next
22904  } else {
22905    # Replace #undef with comments.  This is necessary, for example,
22906    # in the case of _POSIX_SOURCE, which is predefined and required
22907    # on some systems where configure will not decide to define it.
22908    if (defundef == "undef") {
22909      print "/*", prefix defundef, macro, "*/"
22910      next
22911    }
22912  }
22913}
22914{ print }
22915_ACAWK
22916_ACEOF
22917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22918  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22919fi # test -n "$CONFIG_HEADERS"
22920
22921
22922eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22923shift
22924for ac_tag
22925do
22926  case $ac_tag in
22927  :[FHLC]) ac_mode=$ac_tag; continue;;
22928  esac
22929  case $ac_mode$ac_tag in
22930  :[FHL]*:*);;
22931  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22932  :[FH]-) ac_tag=-:-;;
22933  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22934  esac
22935  ac_save_IFS=$IFS
22936  IFS=:
22937  set x $ac_tag
22938  IFS=$ac_save_IFS
22939  shift
22940  ac_file=$1
22941  shift
22942
22943  case $ac_mode in
22944  :L) ac_source=$1;;
22945  :[FH])
22946    ac_file_inputs=
22947    for ac_f
22948    do
22949      case $ac_f in
22950      -) ac_f="$ac_tmp/stdin";;
22951      *) # Look for the file first in the build tree, then in the source tree
22952	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22953	 # because $ac_f cannot contain `:'.
22954	 test -f "$ac_f" ||
22955	   case $ac_f in
22956	   [\\/$]*) false;;
22957	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22958	   esac ||
22959	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22960      esac
22961      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22962      as_fn_append ac_file_inputs " '$ac_f'"
22963    done
22964
22965    # Let's still pretend it is `configure' which instantiates (i.e., don't
22966    # use $as_me), people would be surprised to read:
22967    #    /* config.h.  Generated by config.status.  */
22968    configure_input='Generated from '`
22969	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22970	`' by configure.'
22971    if test x"$ac_file" != x-; then
22972      configure_input="$ac_file.  $configure_input"
22973      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22974$as_echo "$as_me: creating $ac_file" >&6;}
22975    fi
22976    # Neutralize special characters interpreted by sed in replacement strings.
22977    case $configure_input in #(
22978    *\&* | *\|* | *\\* )
22979       ac_sed_conf_input=`$as_echo "$configure_input" |
22980       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22981    *) ac_sed_conf_input=$configure_input;;
22982    esac
22983
22984    case $ac_tag in
22985    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22986      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22987    esac
22988    ;;
22989  esac
22990
22991  ac_dir=`$as_dirname -- "$ac_file" ||
22992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22993	 X"$ac_file" : 'X\(//\)[^/]' \| \
22994	 X"$ac_file" : 'X\(//\)$' \| \
22995	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22996$as_echo X"$ac_file" |
22997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22998	    s//\1/
22999	    q
23000	  }
23001	  /^X\(\/\/\)[^/].*/{
23002	    s//\1/
23003	    q
23004	  }
23005	  /^X\(\/\/\)$/{
23006	    s//\1/
23007	    q
23008	  }
23009	  /^X\(\/\).*/{
23010	    s//\1/
23011	    q
23012	  }
23013	  s/.*/./; q'`
23014  as_dir="$ac_dir"; as_fn_mkdir_p
23015  ac_builddir=.
23016
23017case "$ac_dir" in
23018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23019*)
23020  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23021  # A ".." for each directory in $ac_dir_suffix.
23022  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23023  case $ac_top_builddir_sub in
23024  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23025  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23026  esac ;;
23027esac
23028ac_abs_top_builddir=$ac_pwd
23029ac_abs_builddir=$ac_pwd$ac_dir_suffix
23030# for backward compatibility:
23031ac_top_builddir=$ac_top_build_prefix
23032
23033case $srcdir in
23034  .)  # We are building in place.
23035    ac_srcdir=.
23036    ac_top_srcdir=$ac_top_builddir_sub
23037    ac_abs_top_srcdir=$ac_pwd ;;
23038  [\\/]* | ?:[\\/]* )  # Absolute name.
23039    ac_srcdir=$srcdir$ac_dir_suffix;
23040    ac_top_srcdir=$srcdir
23041    ac_abs_top_srcdir=$srcdir ;;
23042  *) # Relative name.
23043    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23044    ac_top_srcdir=$ac_top_build_prefix$srcdir
23045    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23046esac
23047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23048
23049
23050  case $ac_mode in
23051  :F)
23052  #
23053  # CONFIG_FILE
23054  #
23055
23056  case $INSTALL in
23057  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23058  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23059  esac
23060  ac_MKDIR_P=$MKDIR_P
23061  case $MKDIR_P in
23062  [\\/$]* | ?:[\\/]* ) ;;
23063  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23064  esac
23065_ACEOF
23066
23067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23068# If the template does not know about datarootdir, expand it.
23069# FIXME: This hack should be removed a few years after 2.60.
23070ac_datarootdir_hack=; ac_datarootdir_seen=
23071ac_sed_dataroot='
23072/datarootdir/ {
23073  p
23074  q
23075}
23076/@datadir@/p
23077/@docdir@/p
23078/@infodir@/p
23079/@localedir@/p
23080/@mandir@/p'
23081case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23082*datarootdir*) ac_datarootdir_seen=yes;;
23083*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23085$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23086_ACEOF
23087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23088  ac_datarootdir_hack='
23089  s&@datadir@&$datadir&g
23090  s&@docdir@&$docdir&g
23091  s&@infodir@&$infodir&g
23092  s&@localedir@&$localedir&g
23093  s&@mandir@&$mandir&g
23094  s&\\\${datarootdir}&$datarootdir&g' ;;
23095esac
23096_ACEOF
23097
23098# Neutralize VPATH when `$srcdir' = `.'.
23099# Shell code in configure.ac might set extrasub.
23100# FIXME: do we really want to maintain this feature?
23101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23102ac_sed_extra="$ac_vpsub
23103$extrasub
23104_ACEOF
23105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23106:t
23107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23108s|@configure_input@|$ac_sed_conf_input|;t t
23109s&@top_builddir@&$ac_top_builddir_sub&;t t
23110s&@top_build_prefix@&$ac_top_build_prefix&;t t
23111s&@srcdir@&$ac_srcdir&;t t
23112s&@abs_srcdir@&$ac_abs_srcdir&;t t
23113s&@top_srcdir@&$ac_top_srcdir&;t t
23114s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23115s&@builddir@&$ac_builddir&;t t
23116s&@abs_builddir@&$ac_abs_builddir&;t t
23117s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23118s&@INSTALL@&$ac_INSTALL&;t t
23119s&@MKDIR_P@&$ac_MKDIR_P&;t t
23120$ac_datarootdir_hack
23121"
23122eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23123  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23124
23125test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23126  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23127  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23128      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23129  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23130which seems to be undefined.  Please make sure it is defined" >&5
23131$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23132which seems to be undefined.  Please make sure it is defined" >&2;}
23133
23134  rm -f "$ac_tmp/stdin"
23135  case $ac_file in
23136  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23137  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23138  esac \
23139  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23140 ;;
23141  :H)
23142  #
23143  # CONFIG_HEADER
23144  #
23145  if test x"$ac_file" != x-; then
23146    {
23147      $as_echo "/* $configure_input  */" \
23148      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23149    } >"$ac_tmp/config.h" \
23150      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23151    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23152      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23153$as_echo "$as_me: $ac_file is unchanged" >&6;}
23154    else
23155      rm -f "$ac_file"
23156      mv "$ac_tmp/config.h" "$ac_file" \
23157	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23158    fi
23159  else
23160    $as_echo "/* $configure_input  */" \
23161      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23162      || as_fn_error $? "could not create -" "$LINENO" 5
23163  fi
23164# Compute "$ac_file"'s index in $config_headers.
23165_am_arg="$ac_file"
23166_am_stamp_count=1
23167for _am_header in $config_headers :; do
23168  case $_am_header in
23169    $_am_arg | $_am_arg:* )
23170      break ;;
23171    * )
23172      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23173  esac
23174done
23175echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23176$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23178	 X"$_am_arg" : 'X\(//\)$' \| \
23179	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23180$as_echo X"$_am_arg" |
23181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182	    s//\1/
23183	    q
23184	  }
23185	  /^X\(\/\/\)[^/].*/{
23186	    s//\1/
23187	    q
23188	  }
23189	  /^X\(\/\/\)$/{
23190	    s//\1/
23191	    q
23192	  }
23193	  /^X\(\/\).*/{
23194	    s//\1/
23195	    q
23196	  }
23197	  s/.*/./; q'`/stamp-h$_am_stamp_count
23198 ;;
23199
23200  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23201$as_echo "$as_me: executing $ac_file commands" >&6;}
23202 ;;
23203  esac
23204
23205
23206  case $ac_file$ac_mode in
23207    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23208  # Older Autoconf quotes --file arguments for eval, but not when files
23209  # are listed without --file.  Let's play safe and only enable the eval
23210  # if we detect the quoting.
23211  case $CONFIG_FILES in
23212  *\'*) eval set x "$CONFIG_FILES" ;;
23213  *)   set x $CONFIG_FILES ;;
23214  esac
23215  shift
23216  for mf
23217  do
23218    # Strip MF so we end up with the name of the file.
23219    mf=`echo "$mf" | sed -e 's/:.*$//'`
23220    # Check whether this is an Automake generated Makefile or not.
23221    # We used to match only the files named 'Makefile.in', but
23222    # some people rename them; so instead we look at the file content.
23223    # Grep'ing the first line is not enough: some people post-process
23224    # each Makefile.in and add a new line on top of each file to say so.
23225    # Grep'ing the whole file is not good either: AIX grep has a line
23226    # limit of 2048, but all sed's we know have understand at least 4000.
23227    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23228      dirpart=`$as_dirname -- "$mf" ||
23229$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23230	 X"$mf" : 'X\(//\)[^/]' \| \
23231	 X"$mf" : 'X\(//\)$' \| \
23232	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23233$as_echo X"$mf" |
23234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23235	    s//\1/
23236	    q
23237	  }
23238	  /^X\(\/\/\)[^/].*/{
23239	    s//\1/
23240	    q
23241	  }
23242	  /^X\(\/\/\)$/{
23243	    s//\1/
23244	    q
23245	  }
23246	  /^X\(\/\).*/{
23247	    s//\1/
23248	    q
23249	  }
23250	  s/.*/./; q'`
23251    else
23252      continue
23253    fi
23254    # Extract the definition of DEPDIR, am__include, and am__quote
23255    # from the Makefile without running 'make'.
23256    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23257    test -z "$DEPDIR" && continue
23258    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23259    test -z "$am__include" && continue
23260    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23261    # Find all dependency output files, they are included files with
23262    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23263    # simplest approach to changing $(DEPDIR) to its actual value in the
23264    # expansion.
23265    for file in `sed -n "
23266      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23267	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23268      # Make sure the directory exists.
23269      test -f "$dirpart/$file" && continue
23270      fdir=`$as_dirname -- "$file" ||
23271$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23272	 X"$file" : 'X\(//\)[^/]' \| \
23273	 X"$file" : 'X\(//\)$' \| \
23274	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23275$as_echo X"$file" |
23276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23277	    s//\1/
23278	    q
23279	  }
23280	  /^X\(\/\/\)[^/].*/{
23281	    s//\1/
23282	    q
23283	  }
23284	  /^X\(\/\/\)$/{
23285	    s//\1/
23286	    q
23287	  }
23288	  /^X\(\/\).*/{
23289	    s//\1/
23290	    q
23291	  }
23292	  s/.*/./; q'`
23293      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23294      # echo "creating $dirpart/$file"
23295      echo '# dummy' > "$dirpart/$file"
23296    done
23297  done
23298}
23299 ;;
23300    "libtool":C)
23301
23302    # See if we are running on zsh, and set the options that allow our
23303    # commands through without removal of \ escapes.
23304    if test -n "${ZSH_VERSION+set}"; then
23305      setopt NO_GLOB_SUBST
23306    fi
23307
23308    cfgfile=${ofile}T
23309    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23310    $RM "$cfgfile"
23311
23312    cat <<_LT_EOF >> "$cfgfile"
23313#! $SHELL
23314# Generated automatically by $as_me ($PACKAGE) $VERSION
23315# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23316# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23317
23318# Provide generalized library-building support services.
23319# Written by Gordon Matzigkeit, 1996
23320
23321# Copyright (C) 2014 Free Software Foundation, Inc.
23322# This is free software; see the source for copying conditions.  There is NO
23323# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23324
23325# GNU Libtool is free software; you can redistribute it and/or modify
23326# it under the terms of the GNU General Public License as published by
23327# the Free Software Foundation; either version 2 of of the License, or
23328# (at your option) any later version.
23329#
23330# As a special exception to the GNU General Public License, if you
23331# distribute this file as part of a program or library that is built
23332# using GNU Libtool, you may include this file under the  same
23333# distribution terms that you use for the rest of that program.
23334#
23335# GNU Libtool is distributed in the hope that it will be useful, but
23336# WITHOUT ANY WARRANTY; without even the implied warranty of
23337# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23338# GNU General Public License for more details.
23339#
23340# You should have received a copy of the GNU General Public License
23341# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23342
23343
23344# The names of the tagged configurations supported by this script.
23345available_tags=''
23346
23347# Configured defaults for sys_lib_dlsearch_path munging.
23348: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23349
23350# ### BEGIN LIBTOOL CONFIG
23351
23352# Which release of libtool.m4 was used?
23353macro_version=$macro_version
23354macro_revision=$macro_revision
23355
23356# Whether or not to build shared libraries.
23357build_libtool_libs=$enable_shared
23358
23359# Whether or not to build static libraries.
23360build_old_libs=$enable_static
23361
23362# What type of objects to build.
23363pic_mode=$pic_mode
23364
23365# Whether or not to optimize for fast installation.
23366fast_install=$enable_fast_install
23367
23368# Shared archive member basename,for filename based shared library versioning on AIX.
23369shared_archive_member_spec=$shared_archive_member_spec
23370
23371# Shell to use when invoking shell scripts.
23372SHELL=$lt_SHELL
23373
23374# An echo program that protects backslashes.
23375ECHO=$lt_ECHO
23376
23377# The PATH separator for the build system.
23378PATH_SEPARATOR=$lt_PATH_SEPARATOR
23379
23380# The host system.
23381host_alias=$host_alias
23382host=$host
23383host_os=$host_os
23384
23385# The build system.
23386build_alias=$build_alias
23387build=$build
23388build_os=$build_os
23389
23390# A sed program that does not truncate output.
23391SED=$lt_SED
23392
23393# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23394Xsed="\$SED -e 1s/^X//"
23395
23396# A grep program that handles long lines.
23397GREP=$lt_GREP
23398
23399# An ERE matcher.
23400EGREP=$lt_EGREP
23401
23402# A literal string matcher.
23403FGREP=$lt_FGREP
23404
23405# A BSD- or MS-compatible name lister.
23406NM=$lt_NM
23407
23408# Whether we need soft or hard links.
23409LN_S=$lt_LN_S
23410
23411# What is the maximum length of a command?
23412max_cmd_len=$max_cmd_len
23413
23414# Object file suffix (normally "o").
23415objext=$ac_objext
23416
23417# Executable file suffix (normally "").
23418exeext=$exeext
23419
23420# whether the shell understands "unset".
23421lt_unset=$lt_unset
23422
23423# turn spaces into newlines.
23424SP2NL=$lt_lt_SP2NL
23425
23426# turn newlines into spaces.
23427NL2SP=$lt_lt_NL2SP
23428
23429# convert \$build file names to \$host format.
23430to_host_file_cmd=$lt_cv_to_host_file_cmd
23431
23432# convert \$build files to toolchain format.
23433to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23434
23435# An object symbol dumper.
23436OBJDUMP=$lt_OBJDUMP
23437
23438# Method to check whether dependent libraries are shared objects.
23439deplibs_check_method=$lt_deplibs_check_method
23440
23441# Command to use when deplibs_check_method = "file_magic".
23442file_magic_cmd=$lt_file_magic_cmd
23443
23444# How to find potential files when deplibs_check_method = "file_magic".
23445file_magic_glob=$lt_file_magic_glob
23446
23447# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23448want_nocaseglob=$lt_want_nocaseglob
23449
23450# DLL creation program.
23451DLLTOOL=$lt_DLLTOOL
23452
23453# Command to associate shared and link libraries.
23454sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23455
23456# The archiver.
23457AR=$lt_AR
23458
23459# Flags to create an archive.
23460AR_FLAGS=$lt_AR_FLAGS
23461
23462# How to feed a file listing to the archiver.
23463archiver_list_spec=$lt_archiver_list_spec
23464
23465# A symbol stripping program.
23466STRIP=$lt_STRIP
23467
23468# Commands used to install an old-style archive.
23469RANLIB=$lt_RANLIB
23470old_postinstall_cmds=$lt_old_postinstall_cmds
23471old_postuninstall_cmds=$lt_old_postuninstall_cmds
23472
23473# Whether to use a lock for old archive extraction.
23474lock_old_archive_extraction=$lock_old_archive_extraction
23475
23476# A C compiler.
23477LTCC=$lt_CC
23478
23479# LTCC compiler flags.
23480LTCFLAGS=$lt_CFLAGS
23481
23482# Take the output of nm and produce a listing of raw symbols and C names.
23483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23484
23485# Transform the output of nm in a proper C declaration.
23486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23487
23488# Transform the output of nm into a list of symbols to manually relocate.
23489global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23490
23491# Transform the output of nm in a C name address pair.
23492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23493
23494# Transform the output of nm in a C name address pair when lib prefix is needed.
23495global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23496
23497# The name lister interface.
23498nm_interface=$lt_lt_cv_nm_interface
23499
23500# Specify filename containing input files for \$NM.
23501nm_file_list_spec=$lt_nm_file_list_spec
23502
23503# The root where to search for dependent libraries,and where our libraries should be installed.
23504lt_sysroot=$lt_sysroot
23505
23506# Command to truncate a binary pipe.
23507lt_truncate_bin=$lt_lt_cv_truncate_bin
23508
23509# The name of the directory that contains temporary libtool files.
23510objdir=$objdir
23511
23512# Used to examine libraries when file_magic_cmd begins with "file".
23513MAGIC_CMD=$MAGIC_CMD
23514
23515# Must we lock files when doing compilation?
23516need_locks=$lt_need_locks
23517
23518# Manifest tool.
23519MANIFEST_TOOL=$lt_MANIFEST_TOOL
23520
23521# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23522DSYMUTIL=$lt_DSYMUTIL
23523
23524# Tool to change global to local symbols on Mac OS X.
23525NMEDIT=$lt_NMEDIT
23526
23527# Tool to manipulate fat objects and archives on Mac OS X.
23528LIPO=$lt_LIPO
23529
23530# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23531OTOOL=$lt_OTOOL
23532
23533# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23534OTOOL64=$lt_OTOOL64
23535
23536# Old archive suffix (normally "a").
23537libext=$libext
23538
23539# Shared library suffix (normally ".so").
23540shrext_cmds=$lt_shrext_cmds
23541
23542# The commands to extract the exported symbol list from a shared archive.
23543extract_expsyms_cmds=$lt_extract_expsyms_cmds
23544
23545# Variables whose values should be saved in libtool wrapper scripts and
23546# restored at link time.
23547variables_saved_for_relink=$lt_variables_saved_for_relink
23548
23549# Do we need the "lib" prefix for modules?
23550need_lib_prefix=$need_lib_prefix
23551
23552# Do we need a version for libraries?
23553need_version=$need_version
23554
23555# Library versioning type.
23556version_type=$version_type
23557
23558# Shared library runtime path variable.
23559runpath_var=$runpath_var
23560
23561# Shared library path variable.
23562shlibpath_var=$shlibpath_var
23563
23564# Is shlibpath searched before the hard-coded library search path?
23565shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23566
23567# Format of library name prefix.
23568libname_spec=$lt_libname_spec
23569
23570# List of archive names.  First name is the real one, the rest are links.
23571# The last name is the one that the linker finds with -lNAME
23572library_names_spec=$lt_library_names_spec
23573
23574# The coded name of the library, if different from the real name.
23575soname_spec=$lt_soname_spec
23576
23577# Permission mode override for installation of shared libraries.
23578install_override_mode=$lt_install_override_mode
23579
23580# Command to use after installation of a shared archive.
23581postinstall_cmds=$lt_postinstall_cmds
23582
23583# Command to use after uninstallation of a shared archive.
23584postuninstall_cmds=$lt_postuninstall_cmds
23585
23586# Commands used to finish a libtool library installation in a directory.
23587finish_cmds=$lt_finish_cmds
23588
23589# As "finish_cmds", except a single script fragment to be evaled but
23590# not shown.
23591finish_eval=$lt_finish_eval
23592
23593# Whether we should hardcode library paths into libraries.
23594hardcode_into_libs=$hardcode_into_libs
23595
23596# Compile-time system search path for libraries.
23597sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23598
23599# Detected run-time system search path for libraries.
23600sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23601
23602# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23603configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23604
23605# Whether dlopen is supported.
23606dlopen_support=$enable_dlopen
23607
23608# Whether dlopen of programs is supported.
23609dlopen_self=$enable_dlopen_self
23610
23611# Whether dlopen of statically linked programs is supported.
23612dlopen_self_static=$enable_dlopen_self_static
23613
23614# Commands to strip libraries.
23615old_striplib=$lt_old_striplib
23616striplib=$lt_striplib
23617
23618
23619# The linker used to build libraries.
23620LD=$lt_LD
23621
23622# How to create reloadable object files.
23623reload_flag=$lt_reload_flag
23624reload_cmds=$lt_reload_cmds
23625
23626# Commands used to build an old-style archive.
23627old_archive_cmds=$lt_old_archive_cmds
23628
23629# A language specific compiler.
23630CC=$lt_compiler
23631
23632# Is the compiler the GNU compiler?
23633with_gcc=$GCC
23634
23635# Compiler flag to turn off builtin functions.
23636no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23637
23638# Additional compiler flags for building library objects.
23639pic_flag=$lt_lt_prog_compiler_pic
23640
23641# How to pass a linker flag through the compiler.
23642wl=$lt_lt_prog_compiler_wl
23643
23644# Compiler flag to prevent dynamic linking.
23645link_static_flag=$lt_lt_prog_compiler_static
23646
23647# Does compiler simultaneously support -c and -o options?
23648compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23649
23650# Whether or not to add -lc for building shared libraries.
23651build_libtool_need_lc=$archive_cmds_need_lc
23652
23653# Whether or not to disallow shared libs when runtime libs are static.
23654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23655
23656# Compiler flag to allow reflexive dlopens.
23657export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23658
23659# Compiler flag to generate shared objects directly from archives.
23660whole_archive_flag_spec=$lt_whole_archive_flag_spec
23661
23662# Whether the compiler copes with passing no objects directly.
23663compiler_needs_object=$lt_compiler_needs_object
23664
23665# Create an old-style archive from a shared archive.
23666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23667
23668# Create a temporary old-style archive to link instead of a shared archive.
23669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23670
23671# Commands used to build a shared archive.
23672archive_cmds=$lt_archive_cmds
23673archive_expsym_cmds=$lt_archive_expsym_cmds
23674
23675# Commands used to build a loadable module if different from building
23676# a shared archive.
23677module_cmds=$lt_module_cmds
23678module_expsym_cmds=$lt_module_expsym_cmds
23679
23680# Whether we are building with GNU ld or not.
23681with_gnu_ld=$lt_with_gnu_ld
23682
23683# Flag that allows shared libraries with undefined symbols to be built.
23684allow_undefined_flag=$lt_allow_undefined_flag
23685
23686# Flag that enforces no undefined symbols.
23687no_undefined_flag=$lt_no_undefined_flag
23688
23689# Flag to hardcode \$libdir into a binary during linking.
23690# This must work even if \$libdir does not exist
23691hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23692
23693# Whether we need a single "-rpath" flag with a separated argument.
23694hardcode_libdir_separator=$lt_hardcode_libdir_separator
23695
23696# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23697# DIR into the resulting binary.
23698hardcode_direct=$hardcode_direct
23699
23700# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23701# DIR into the resulting binary and the resulting library dependency is
23702# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23703# library is relocated.
23704hardcode_direct_absolute=$hardcode_direct_absolute
23705
23706# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23707# into the resulting binary.
23708hardcode_minus_L=$hardcode_minus_L
23709
23710# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23711# into the resulting binary.
23712hardcode_shlibpath_var=$hardcode_shlibpath_var
23713
23714# Set to "yes" if building a shared library automatically hardcodes DIR
23715# into the library and all subsequent libraries and executables linked
23716# against it.
23717hardcode_automatic=$hardcode_automatic
23718
23719# Set to yes if linker adds runtime paths of dependent libraries
23720# to runtime path list.
23721inherit_rpath=$inherit_rpath
23722
23723# Whether libtool must link a program against all its dependency libraries.
23724link_all_deplibs=$link_all_deplibs
23725
23726# Set to "yes" if exported symbols are required.
23727always_export_symbols=$always_export_symbols
23728
23729# The commands to list exported symbols.
23730export_symbols_cmds=$lt_export_symbols_cmds
23731
23732# Symbols that should not be listed in the preloaded symbols.
23733exclude_expsyms=$lt_exclude_expsyms
23734
23735# Symbols that must always be exported.
23736include_expsyms=$lt_include_expsyms
23737
23738# Commands necessary for linking programs (against libraries) with templates.
23739prelink_cmds=$lt_prelink_cmds
23740
23741# Commands necessary for finishing linking programs.
23742postlink_cmds=$lt_postlink_cmds
23743
23744# Specify filename containing input files.
23745file_list_spec=$lt_file_list_spec
23746
23747# How to hardcode a shared library path into an executable.
23748hardcode_action=$hardcode_action
23749
23750# ### END LIBTOOL CONFIG
23751
23752_LT_EOF
23753
23754    cat <<'_LT_EOF' >> "$cfgfile"
23755
23756# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23757
23758# func_munge_path_list VARIABLE PATH
23759# -----------------------------------
23760# VARIABLE is name of variable containing _space_ separated list of
23761# directories to be munged by the contents of PATH, which is string
23762# having a format:
23763# "DIR[:DIR]:"
23764#       string "DIR[ DIR]" will be prepended to VARIABLE
23765# ":DIR[:DIR]"
23766#       string "DIR[ DIR]" will be appended to VARIABLE
23767# "DIRP[:DIRP]::[DIRA:]DIRA"
23768#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23769#       "DIRA[ DIRA]" will be appended to VARIABLE
23770# "DIR[:DIR]"
23771#       VARIABLE will be replaced by "DIR[ DIR]"
23772func_munge_path_list ()
23773{
23774    case x$2 in
23775    x)
23776        ;;
23777    *:)
23778        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23779        ;;
23780    x:*)
23781        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23782        ;;
23783    *::*)
23784        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23785        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23786        ;;
23787    *)
23788        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23789        ;;
23790    esac
23791}
23792
23793
23794# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23795func_cc_basename ()
23796{
23797    for cc_temp in $*""; do
23798      case $cc_temp in
23799        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23800        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23801        \-*) ;;
23802        *) break;;
23803      esac
23804    done
23805    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23806}
23807
23808
23809# ### END FUNCTIONS SHARED WITH CONFIGURE
23810
23811_LT_EOF
23812
23813  case $host_os in
23814  aix3*)
23815    cat <<\_LT_EOF >> "$cfgfile"
23816# AIX sometimes has problems with the GCC collect2 program.  For some
23817# reason, if we set the COLLECT_NAMES environment variable, the problems
23818# vanish in a puff of smoke.
23819if test set != "${COLLECT_NAMES+set}"; then
23820  COLLECT_NAMES=
23821  export COLLECT_NAMES
23822fi
23823_LT_EOF
23824    ;;
23825  esac
23826
23827
23828ltmain=$ac_aux_dir/ltmain.sh
23829
23830
23831  # We use sed instead of cat because bash on DJGPP gets confused if
23832  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23833  # text mode, it properly converts lines to CR/LF.  This bash problem
23834  # is reportedly fixed, but why not run on old versions too?
23835  sed '$q' "$ltmain" >> "$cfgfile" \
23836     || (rm -f "$cfgfile"; exit 1)
23837
23838   mv -f "$cfgfile" "$ofile" ||
23839    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23840  chmod +x "$ofile"
23841
23842 ;;
23843
23844  esac
23845done # for ac_tag
23846
23847
23848as_fn_exit 0
23849_ACEOF
23850ac_clean_files=$ac_clean_files_save
23851
23852test $ac_write_fail = 0 ||
23853  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23854
23855
23856# configure is writing to config.log, and then calls config.status.
23857# config.status does its own redirection, appending to config.log.
23858# Unfortunately, on DOS this fails, as config.log is still kept open
23859# by configure, so config.status won't be able to write to it; its
23860# output is simply discarded.  So we exec the FD to /dev/null,
23861# effectively closing config.log, so it can be properly (re)opened and
23862# appended to by config.status.  When coming back to configure, we
23863# need to make the FD available again.
23864if test "$no_create" != yes; then
23865  ac_cs_success=:
23866  ac_config_status_args=
23867  test "$silent" = yes &&
23868    ac_config_status_args="$ac_config_status_args --quiet"
23869  exec 5>/dev/null
23870  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23871  exec 5>>config.log
23872  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23873  # would make configure fail if this is the last instruction.
23874  $ac_cs_success || as_fn_exit 1
23875fi
23876if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23877  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23878$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23879fi
23880
23881
23882echo ""
23883echo "X11 will be built with the following settings:"
23884echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
23885echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
23886echo " Threading support:                       "$xthreads
23887echo " Use Threads safe API:                    "$mtsafeapi
23888echo " Threads stubs in libX11:                 "$thrstubs
23889echo " XCMS:                                    "$XCMS
23890echo " Internationalization support:            "$XLOCALE
23891echo " XF86BigFont support:                     "$XF86BIGFONT
23892echo " XKB support:                             "$XKB
23893echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
23894echo " Compose table cache enabled:             "$COMPOSECACHE
23895echo " Functional specs building enabled:       "$build_specs
23896echo ""
23897