configure revision 5afda2e6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libX11 1.6.9.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/lib/libx11/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libX11'
653PACKAGE_TARNAME='libX11'
654PACKAGE_VERSION='1.6.9'
655PACKAGE_STRING='libX11 1.6.9'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/issues'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_header_list=
697ac_subst_vars='am__EXEEXT_FALSE
698am__EXEEXT_TRUE
699LTLIBOBJS
700XTMALLOC_ZERO_CFLAGS
701XMALLOC_ZERO_CFLAGS
702MALLOC_ZERO_CFLAGS
703XERRORDB
704XKEYSYMDB
705locales
706X11_LOCALEDIR
707XLOCALEDIR
708X11_LOCALELIBDIR
709XLOCALELIBDIR
710X11_LOCALEDATADIR
711XLOCALEDATADIR
712X11_LIBS
713X11_CFLAGS
714X11_LIBDIR
715X11_DATADIR
716MAKE_LINT_LIB_FALSE
717MAKE_LINT_LIB_TRUE
718LINTLIB
719LINT_FALSE
720LINT_TRUE
721LINT_FLAGS
722LINT
723XKBPROTO_REQUIRES
724XKB_FALSE
725XKB_TRUE
726BIGFONT_LIBS
727BIGFONT_CFLAGS
728XLOCALE_FALSE
729XLOCALE_TRUE
730XCMS_FALSE
731XCMS_TRUE
732KEYSYMDEFS
733XTHREAD_CFLAGS
734XTHREADLIB
735THRSTUBS_FALSE
736THRSTUBS_TRUE
737LAUNCHD
738OS2_FALSE
739OS2_TRUE
740WCHAR32
741LIBOBJS
742XLIB_LOADABLE_I18N_FALSE
743XLIB_LOADABLE_I18N_TRUE
744I18N_MODULE_LIBS
745X11_EXTRA_DEPS
746EXEEXT_FOR_BUILD
747LDFLAGS_FOR_BUILD
748CFLAGS_FOR_BUILD
749CPPFLAGS_FOR_BUILD
750CC_FOR_BUILD
751HAVE_PERL_FALSE
752HAVE_PERL_TRUE
753PERL
754TRADITIONALCPPFLAGS
755RAWCPPFLAGS
756RAWCPP
757HAVE_STYLESHEETS_FALSE
758HAVE_STYLESHEETS_TRUE
759XSL_STYLESHEET
760STYLESHEET_SRCDIR
761XORG_SGML_PATH
762HAVE_XSLTPROC_FALSE
763HAVE_XSLTPROC_TRUE
764XSLTPROC
765HAVE_FOP_FALSE
766HAVE_FOP_TRUE
767FOP
768HAVE_XMLTO_FALSE
769HAVE_XMLTO_TRUE
770HAVE_XMLTO_TEXT_FALSE
771HAVE_XMLTO_TEXT_TRUE
772XMLTO
773ENABLE_SPECS_FALSE
774ENABLE_SPECS_TRUE
775MAN_SUBSTS
776XORG_MAN_PAGE
777ADMIN_MAN_DIR
778DRIVER_MAN_DIR
779MISC_MAN_DIR
780FILE_MAN_DIR
781LIB_MAN_DIR
782APP_MAN_DIR
783ADMIN_MAN_SUFFIX
784DRIVER_MAN_SUFFIX
785MISC_MAN_SUFFIX
786FILE_MAN_SUFFIX
787LIB_MAN_SUFFIX
788APP_MAN_SUFFIX
789INSTALL_CMD
790PKG_CONFIG_LIBDIR
791PKG_CONFIG_PATH
792PKG_CONFIG
793CHANGELOG_CMD
794STRICT_CFLAGS
795CWARNFLAGS
796BASE_CFLAGS
797LT_SYS_LIBRARY_PATH
798OTOOL64
799OTOOL
800LIPO
801NMEDIT
802DSYMUTIL
803MANIFEST_TOOL
804RANLIB
805ac_ct_AR
806AR
807DLLTOOL
808OBJDUMP
809LN_S
810NM
811ac_ct_DUMPBIN
812DUMPBIN
813LD
814FGREP
815SED
816LIBTOOL
817AM_BACKSLASH
818AM_DEFAULT_VERBOSITY
819AM_DEFAULT_V
820AM_V
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824am__nodep
825AMDEPBACKSLASH
826AMDEP_FALSE
827AMDEP_TRUE
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
909am__quote'
910ac_subst_files=''
911ac_user_opts='
912enable_option_checking
913enable_dependency_tracking
914enable_silent_rules
915enable_shared
916enable_static
917with_pic
918enable_fast_install
919with_aix_soname
920with_gnu_ld
921with_sysroot
922enable_libtool_lock
923enable_largefile
924enable_selective_werror
925enable_strict_compilation
926enable_specs
927with_xmlto
928with_fop
929with_xsltproc
930with_perl
931enable_unix_transport
932enable_tcp_transport
933enable_ipv6
934enable_local_transport
935enable_loadable_i18n
936enable_loadable_xcursor
937with_launchd
938enable_xthreads
939with_keysymdefdir
940enable_xcms
941enable_xlocale
942enable_xlocaledir
943enable_xf86bigfont
944enable_xkb
945enable_composecache
946with_lint
947enable_lint_library
948with_locale_lib_dir
949enable_malloc0returnsnull
950'
951      ac_precious_vars='build_alias
952host_alias
953target_alias
954CC
955CFLAGS
956LDFLAGS
957LIBS
958CPPFLAGS
959CPP
960LT_SYS_LIBRARY_PATH
961PKG_CONFIG
962PKG_CONFIG_PATH
963PKG_CONFIG_LIBDIR
964XMLTO
965FOP
966XSLTPROC
967PERL
968BIGFONT_CFLAGS
969BIGFONT_LIBS
970LINT
971LINT_FLAGS
972X11_CFLAGS
973X11_LIBS'
974
975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979ac_unrecognized_opts=
980ac_unrecognized_sep=
981# The variables have the same names as the options, with
982# dashes changed to underlines.
983cache_file=/dev/null
984exec_prefix=NONE
985no_create=
986no_recursion=
987prefix=NONE
988program_prefix=NONE
989program_suffix=NONE
990program_transform_name=s,x,x,
991silent=
992site=
993srcdir=
994verbose=
995x_includes=NONE
996x_libraries=NONE
997
998# Installation directory options.
999# These are left unexpanded so users can "make install exec_prefix=/foo"
1000# and all the variables that are supposed to be based on exec_prefix
1001# by default will actually change.
1002# Use braces instead of parens because sh, perl, etc. also accept them.
1003# (The list follows the same order as the GNU Coding Standards.)
1004bindir='${exec_prefix}/bin'
1005sbindir='${exec_prefix}/sbin'
1006libexecdir='${exec_prefix}/libexec'
1007datarootdir='${prefix}/share'
1008datadir='${datarootdir}'
1009sysconfdir='${prefix}/etc'
1010sharedstatedir='${prefix}/com'
1011localstatedir='${prefix}/var'
1012includedir='${prefix}/include'
1013oldincludedir='/usr/include'
1014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015infodir='${datarootdir}/info'
1016htmldir='${docdir}'
1017dvidir='${docdir}'
1018pdfdir='${docdir}'
1019psdir='${docdir}'
1020libdir='${exec_prefix}/lib'
1021localedir='${datarootdir}/locale'
1022mandir='${datarootdir}/man'
1023
1024ac_prev=
1025ac_dashdash=
1026for ac_option
1027do
1028  # If the previous option needs an argument, assign it.
1029  if test -n "$ac_prev"; then
1030    eval $ac_prev=\$ac_option
1031    ac_prev=
1032    continue
1033  fi
1034
1035  case $ac_option in
1036  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037  *=)   ac_optarg= ;;
1038  *)    ac_optarg=yes ;;
1039  esac
1040
1041  # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043  case $ac_dashdash$ac_option in
1044  --)
1045    ac_dashdash=yes ;;
1046
1047  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048    ac_prev=bindir ;;
1049  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050    bindir=$ac_optarg ;;
1051
1052  -build | --build | --buil | --bui | --bu)
1053    ac_prev=build_alias ;;
1054  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055    build_alias=$ac_optarg ;;
1056
1057  -cache-file | --cache-file | --cache-fil | --cache-fi \
1058  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059    ac_prev=cache_file ;;
1060  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062    cache_file=$ac_optarg ;;
1063
1064  --config-cache | -C)
1065    cache_file=config.cache ;;
1066
1067  -datadir | --datadir | --datadi | --datad)
1068    ac_prev=datadir ;;
1069  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070    datadir=$ac_optarg ;;
1071
1072  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073  | --dataroo | --dataro | --datar)
1074    ac_prev=datarootdir ;;
1075  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077    datarootdir=$ac_optarg ;;
1078
1079  -disable-* | --disable-*)
1080    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081    # Reject names that are not valid shell variable names.
1082    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083      as_fn_error $? "invalid feature name: $ac_useropt"
1084    ac_useropt_orig=$ac_useropt
1085    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086    case $ac_user_opts in
1087      *"
1088"enable_$ac_useropt"
1089"*) ;;
1090      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091	 ac_unrecognized_sep=', ';;
1092    esac
1093    eval enable_$ac_useropt=no ;;
1094
1095  -docdir | --docdir | --docdi | --doc | --do)
1096    ac_prev=docdir ;;
1097  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098    docdir=$ac_optarg ;;
1099
1100  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101    ac_prev=dvidir ;;
1102  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103    dvidir=$ac_optarg ;;
1104
1105  -enable-* | --enable-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid feature name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"enable_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123  | --exec | --exe | --ex)
1124    ac_prev=exec_prefix ;;
1125  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127  | --exec=* | --exe=* | --ex=*)
1128    exec_prefix=$ac_optarg ;;
1129
1130  -gas | --gas | --ga | --g)
1131    # Obsolete; use --with-gas.
1132    with_gas=yes ;;
1133
1134  -help | --help | --hel | --he | -h)
1135    ac_init_help=long ;;
1136  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137    ac_init_help=recursive ;;
1138  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139    ac_init_help=short ;;
1140
1141  -host | --host | --hos | --ho)
1142    ac_prev=host_alias ;;
1143  -host=* | --host=* | --hos=* | --ho=*)
1144    host_alias=$ac_optarg ;;
1145
1146  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147    ac_prev=htmldir ;;
1148  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149  | --ht=*)
1150    htmldir=$ac_optarg ;;
1151
1152  -includedir | --includedir | --includedi | --included | --include \
1153  | --includ | --inclu | --incl | --inc)
1154    ac_prev=includedir ;;
1155  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156  | --includ=* | --inclu=* | --incl=* | --inc=*)
1157    includedir=$ac_optarg ;;
1158
1159  -infodir | --infodir | --infodi | --infod | --info | --inf)
1160    ac_prev=infodir ;;
1161  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162    infodir=$ac_optarg ;;
1163
1164  -libdir | --libdir | --libdi | --libd)
1165    ac_prev=libdir ;;
1166  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167    libdir=$ac_optarg ;;
1168
1169  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170  | --libexe | --libex | --libe)
1171    ac_prev=libexecdir ;;
1172  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173  | --libexe=* | --libex=* | --libe=*)
1174    libexecdir=$ac_optarg ;;
1175
1176  -localedir | --localedir | --localedi | --localed | --locale)
1177    ac_prev=localedir ;;
1178  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179    localedir=$ac_optarg ;;
1180
1181  -localstatedir | --localstatedir | --localstatedi | --localstated \
1182  | --localstate | --localstat | --localsta | --localst | --locals)
1183    ac_prev=localstatedir ;;
1184  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186    localstatedir=$ac_optarg ;;
1187
1188  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189    ac_prev=mandir ;;
1190  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191    mandir=$ac_optarg ;;
1192
1193  -nfp | --nfp | --nf)
1194    # Obsolete; use --without-fp.
1195    with_fp=no ;;
1196
1197  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198  | --no-cr | --no-c | -n)
1199    no_create=yes ;;
1200
1201  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203    no_recursion=yes ;;
1204
1205  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207  | --oldin | --oldi | --old | --ol | --o)
1208    ac_prev=oldincludedir ;;
1209  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212    oldincludedir=$ac_optarg ;;
1213
1214  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215    ac_prev=prefix ;;
1216  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217    prefix=$ac_optarg ;;
1218
1219  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220  | --program-pre | --program-pr | --program-p)
1221    ac_prev=program_prefix ;;
1222  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224    program_prefix=$ac_optarg ;;
1225
1226  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227  | --program-suf | --program-su | --program-s)
1228    ac_prev=program_suffix ;;
1229  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231    program_suffix=$ac_optarg ;;
1232
1233  -program-transform-name | --program-transform-name \
1234  | --program-transform-nam | --program-transform-na \
1235  | --program-transform-n | --program-transform- \
1236  | --program-transform | --program-transfor \
1237  | --program-transfo | --program-transf \
1238  | --program-trans | --program-tran \
1239  | --progr-tra | --program-tr | --program-t)
1240    ac_prev=program_transform_name ;;
1241  -program-transform-name=* | --program-transform-name=* \
1242  | --program-transform-nam=* | --program-transform-na=* \
1243  | --program-transform-n=* | --program-transform-=* \
1244  | --program-transform=* | --program-transfor=* \
1245  | --program-transfo=* | --program-transf=* \
1246  | --program-trans=* | --program-tran=* \
1247  | --progr-tra=* | --program-tr=* | --program-t=*)
1248    program_transform_name=$ac_optarg ;;
1249
1250  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251    ac_prev=pdfdir ;;
1252  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253    pdfdir=$ac_optarg ;;
1254
1255  -psdir | --psdir | --psdi | --psd | --ps)
1256    ac_prev=psdir ;;
1257  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258    psdir=$ac_optarg ;;
1259
1260  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261  | -silent | --silent | --silen | --sile | --sil)
1262    silent=yes ;;
1263
1264  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265    ac_prev=sbindir ;;
1266  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267  | --sbi=* | --sb=*)
1268    sbindir=$ac_optarg ;;
1269
1270  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272  | --sharedst | --shareds | --shared | --share | --shar \
1273  | --sha | --sh)
1274    ac_prev=sharedstatedir ;;
1275  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278  | --sha=* | --sh=*)
1279    sharedstatedir=$ac_optarg ;;
1280
1281  -site | --site | --sit)
1282    ac_prev=site ;;
1283  -site=* | --site=* | --sit=*)
1284    site=$ac_optarg ;;
1285
1286  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287    ac_prev=srcdir ;;
1288  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289    srcdir=$ac_optarg ;;
1290
1291  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292  | --syscon | --sysco | --sysc | --sys | --sy)
1293    ac_prev=sysconfdir ;;
1294  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296    sysconfdir=$ac_optarg ;;
1297
1298  -target | --target | --targe | --targ | --tar | --ta | --t)
1299    ac_prev=target_alias ;;
1300  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301    target_alias=$ac_optarg ;;
1302
1303  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304    verbose=yes ;;
1305
1306  -version | --version | --versio | --versi | --vers | -V)
1307    ac_init_version=: ;;
1308
1309  -with-* | --with-*)
1310    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311    # Reject names that are not valid shell variable names.
1312    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313      as_fn_error $? "invalid package name: $ac_useropt"
1314    ac_useropt_orig=$ac_useropt
1315    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316    case $ac_user_opts in
1317      *"
1318"with_$ac_useropt"
1319"*) ;;
1320      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321	 ac_unrecognized_sep=', ';;
1322    esac
1323    eval with_$ac_useropt=\$ac_optarg ;;
1324
1325  -without-* | --without-*)
1326    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329      as_fn_error $? "invalid package name: $ac_useropt"
1330    ac_useropt_orig=$ac_useropt
1331    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332    case $ac_user_opts in
1333      *"
1334"with_$ac_useropt"
1335"*) ;;
1336      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337	 ac_unrecognized_sep=', ';;
1338    esac
1339    eval with_$ac_useropt=no ;;
1340
1341  --x)
1342    # Obsolete; use --with-x.
1343    with_x=yes ;;
1344
1345  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346  | --x-incl | --x-inc | --x-in | --x-i)
1347    ac_prev=x_includes ;;
1348  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350    x_includes=$ac_optarg ;;
1351
1352  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354    ac_prev=x_libraries ;;
1355  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357    x_libraries=$ac_optarg ;;
1358
1359  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360Try \`$0 --help' for more information"
1361    ;;
1362
1363  *=*)
1364    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365    # Reject names that are not valid shell variable names.
1366    case $ac_envvar in #(
1367      '' | [0-9]* | *[!_$as_cr_alnum]* )
1368      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369    esac
1370    eval $ac_envvar=\$ac_optarg
1371    export $ac_envvar ;;
1372
1373  *)
1374    # FIXME: should be removed in autoconf 3.0.
1375    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379    ;;
1380
1381  esac
1382done
1383
1384if test -n "$ac_prev"; then
1385  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386  as_fn_error $? "missing argument to $ac_option"
1387fi
1388
1389if test -n "$ac_unrecognized_opts"; then
1390  case $enable_option_checking in
1391    no) ;;
1392    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394  esac
1395fi
1396
1397# Check all directory arguments for consistency.
1398for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399		datadir sysconfdir sharedstatedir localstatedir includedir \
1400		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401		libdir localedir mandir
1402do
1403  eval ac_val=\$$ac_var
1404  # Remove trailing slashes.
1405  case $ac_val in
1406    */ )
1407      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408      eval $ac_var=\$ac_val;;
1409  esac
1410  # Be sure to have absolute directory names.
1411  case $ac_val in
1412    [\\/$]* | ?:[\\/]* )  continue;;
1413    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414  esac
1415  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416done
1417
1418# There might be people who depend on the old broken behavior: `$host'
1419# used to hold the argument of --host etc.
1420# FIXME: To remove some day.
1421build=$build_alias
1422host=$host_alias
1423target=$target_alias
1424
1425# FIXME: To remove some day.
1426if test "x$host_alias" != x; then
1427  if test "x$build_alias" = x; then
1428    cross_compiling=maybe
1429  elif test "x$build_alias" != "x$host_alias"; then
1430    cross_compiling=yes
1431  fi
1432fi
1433
1434ac_tool_prefix=
1435test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437test "$silent" = yes && exec 6>/dev/null
1438
1439
1440ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441ac_ls_di=`ls -di .` &&
1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443  as_fn_error $? "working directory cannot be determined"
1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445  as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448# Find the source files, if location was not specified.
1449if test -z "$srcdir"; then
1450  ac_srcdir_defaulted=yes
1451  # Try the directory containing this script, then the parent directory.
1452  ac_confdir=`$as_dirname -- "$as_myself" ||
1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454	 X"$as_myself" : 'X\(//\)[^/]' \| \
1455	 X"$as_myself" : 'X\(//\)$' \| \
1456	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457$as_echo X"$as_myself" |
1458    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459	    s//\1/
1460	    q
1461	  }
1462	  /^X\(\/\/\)[^/].*/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\/\)$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\).*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  s/.*/./; q'`
1475  srcdir=$ac_confdir
1476  if test ! -r "$srcdir/$ac_unique_file"; then
1477    srcdir=..
1478  fi
1479else
1480  ac_srcdir_defaulted=no
1481fi
1482if test ! -r "$srcdir/$ac_unique_file"; then
1483  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485fi
1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487ac_abs_confdir=`(
1488	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489	pwd)`
1490# When building in place, set srcdir=.
1491if test "$ac_abs_confdir" = "$ac_pwd"; then
1492  srcdir=.
1493fi
1494# Remove unnecessary trailing slashes from srcdir.
1495# Double slashes in file names in object file debugging info
1496# mess up M-x gdb in Emacs.
1497case $srcdir in
1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499esac
1500for ac_var in $ac_precious_vars; do
1501  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502  eval ac_env_${ac_var}_value=\$${ac_var}
1503  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505done
1506
1507#
1508# Report the --help message.
1509#
1510if test "$ac_init_help" = "long"; then
1511  # Omit some internal or obsolete options to make the list less imposing.
1512  # This message is too long to be a string in the A/UX 3.1 sh.
1513  cat <<_ACEOF
1514\`configure' configures libX11 1.6.9 to adapt to many kinds of systems.
1515
1516Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521Defaults for the options are specified in brackets.
1522
1523Configuration:
1524  -h, --help              display this help and exit
1525      --help=short        display options specific to this package
1526      --help=recursive    display the short help of all the included packages
1527  -V, --version           display version information and exit
1528  -q, --quiet, --silent   do not print \`checking ...' messages
1529      --cache-file=FILE   cache test results in FILE [disabled]
1530  -C, --config-cache      alias for \`--cache-file=config.cache'
1531  -n, --no-create         do not create output files
1532      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534Installation directories:
1535  --prefix=PREFIX         install architecture-independent files in PREFIX
1536                          [$ac_default_prefix]
1537  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                          [PREFIX]
1539
1540By default, \`make install' will install all the files in
1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543for instance \`--prefix=\$HOME'.
1544
1545For better control, use the options below.
1546
1547Fine tuning of the installation directories:
1548  --bindir=DIR            user executables [EPREFIX/bin]
1549  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550  --libexecdir=DIR        program executables [EPREFIX/libexec]
1551  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554  --libdir=DIR            object code libraries [EPREFIX/lib]
1555  --includedir=DIR        C header files [PREFIX/include]
1556  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559  --infodir=DIR           info documentation [DATAROOTDIR/info]
1560  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561  --mandir=DIR            man documentation [DATAROOTDIR/man]
1562  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1563  --htmldir=DIR           html documentation [DOCDIR]
1564  --dvidir=DIR            dvi documentation [DOCDIR]
1565  --pdfdir=DIR            pdf documentation [DOCDIR]
1566  --psdir=DIR             ps documentation [DOCDIR]
1567_ACEOF
1568
1569  cat <<\_ACEOF
1570
1571Program names:
1572  --program-prefix=PREFIX            prepend PREFIX to installed program names
1573  --program-suffix=SUFFIX            append SUFFIX to installed program names
1574  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575
1576System types:
1577  --build=BUILD     configure for building on BUILD [guessed]
1578  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579_ACEOF
1580fi
1581
1582if test -n "$ac_init_help"; then
1583  case $ac_init_help in
1584     short | recursive ) echo "Configuration of libX11 1.6.9:";;
1585   esac
1586  cat <<\_ACEOF
1587
1588Optional Features:
1589  --disable-option-checking  ignore unrecognized --enable/--with options
1590  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1591  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1592  --enable-dependency-tracking
1593                          do not reject slow dependency extractors
1594  --disable-dependency-tracking
1595                          speeds up one-time build
1596  --enable-silent-rules   less verbose build output (undo: "make V=1")
1597  --disable-silent-rules  verbose build output (undo: "make V=0")
1598  --enable-shared[=PKGS]  build shared libraries [default=yes]
1599  --enable-static[=PKGS]  build static libraries [default=yes]
1600  --enable-fast-install[=PKGS]
1601                          optimize for fast installation [default=yes]
1602  --disable-libtool-lock  avoid locking (might break parallel builds)
1603  --disable-largefile     omit support for large files
1604  --disable-selective-werror
1605                          Turn off selective compiler errors. (default:
1606                          enabled)
1607  --enable-strict-compilation
1608                          Enable all warnings from compiler and make them
1609                          errors (default: disabled)
1610  --enable-specs          Enable building the specs (default: yes)
1611  --enable-unix-transport Enable UNIX domain socket transport
1612  --enable-tcp-transport  Enable TCP socket transport
1613  --enable-ipv6           Enable IPv6 support
1614  --enable-local-transport
1615                          Enable os-specific local transport
1616  --enable-loadable-i18n  Controls loadable i18n module support
1617  --disable-loadable-xcursor
1618                          Controls loadable xcursor library support
1619  --disable-xthreads      Disable Xlib support for Multithreading
1620  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1621  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1622  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1623  --disable-xf86bigfont   Disable XF86BigFont extension support
1624  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1625  --disable-composecache  Disable compose table cache support
1626  --enable-lint-library   Create lint library (default: disabled)
1627  --enable-malloc0returnsnull
1628                          malloc(0) returns NULL (default: auto)
1629
1630Optional Packages:
1631  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1632  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1633  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1634                          both]
1635  --with-aix-soname=aix|svr4|both
1636                          shared library versioning (aka "SONAME") variant to
1637                          provide on AIX, [default=aix].
1638  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1639  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1640                          compiler's sysroot if not specified).
1641  --with-xmlto            Use xmlto to regenerate documentation (default:
1642                          auto)
1643  --with-fop              Use fop to regenerate documentation (default: no)
1644  --with-xsltproc         Use xsltproc for the transformation of XML documents
1645                          (default: auto)
1646  --with-perl             Use perl for extracting information from files
1647                          (default: auto)
1648  --with-launchd          Build with support for Apple's launchd (default:
1649                          auto)
1650  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1651                          include dir)
1652  --with-lint             Use a lint-style source code checker (default:
1653                          disabled)
1654  --with-locale-lib-dir=DIR
1655                          Directory where locale libraries files are installed
1656                          (default: $libdir/X11/locale)
1657
1658Some influential environment variables:
1659  CC          C compiler command
1660  CFLAGS      C compiler flags
1661  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662              nonstandard directory <lib dir>
1663  LIBS        libraries to pass to the linker, e.g. -l<library>
1664  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665              you have headers in a nonstandard directory <include dir>
1666  CPP         C preprocessor
1667  LT_SYS_LIBRARY_PATH
1668              User-defined run-time library search path.
1669  PKG_CONFIG  path to pkg-config utility
1670  PKG_CONFIG_PATH
1671              directories to add to pkg-config's search path
1672  PKG_CONFIG_LIBDIR
1673              path overriding pkg-config's built-in search path
1674  XMLTO       Path to xmlto command
1675  FOP         Path to fop command
1676  XSLTPROC    Path to xsltproc command
1677  PERL        Path to perl command
1678  BIGFONT_CFLAGS
1679              C compiler flags for BIGFONT, overriding pkg-config
1680  BIGFONT_LIBS
1681              linker flags for BIGFONT, overriding pkg-config
1682  LINT        Path to a lint-style command
1683  LINT_FLAGS  Flags for the lint-style command
1684  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1685  X11_LIBS    linker flags for X11, overriding pkg-config
1686
1687Use these variables to override the choices made by `configure' or to help
1688it to find libraries and programs with nonstandard names/locations.
1689
1690Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1691_ACEOF
1692ac_status=$?
1693fi
1694
1695if test "$ac_init_help" = "recursive"; then
1696  # If there are subdirs, report their specific --help.
1697  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698    test -d "$ac_dir" ||
1699      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700      continue
1701    ac_builddir=.
1702
1703case "$ac_dir" in
1704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705*)
1706  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707  # A ".." for each directory in $ac_dir_suffix.
1708  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709  case $ac_top_builddir_sub in
1710  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712  esac ;;
1713esac
1714ac_abs_top_builddir=$ac_pwd
1715ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716# for backward compatibility:
1717ac_top_builddir=$ac_top_build_prefix
1718
1719case $srcdir in
1720  .)  # We are building in place.
1721    ac_srcdir=.
1722    ac_top_srcdir=$ac_top_builddir_sub
1723    ac_abs_top_srcdir=$ac_pwd ;;
1724  [\\/]* | ?:[\\/]* )  # Absolute name.
1725    ac_srcdir=$srcdir$ac_dir_suffix;
1726    ac_top_srcdir=$srcdir
1727    ac_abs_top_srcdir=$srcdir ;;
1728  *) # Relative name.
1729    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730    ac_top_srcdir=$ac_top_build_prefix$srcdir
1731    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732esac
1733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734
1735    cd "$ac_dir" || { ac_status=$?; continue; }
1736    # Check for guested configure.
1737    if test -f "$ac_srcdir/configure.gnu"; then
1738      echo &&
1739      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740    elif test -f "$ac_srcdir/configure"; then
1741      echo &&
1742      $SHELL "$ac_srcdir/configure" --help=recursive
1743    else
1744      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745    fi || ac_status=$?
1746    cd "$ac_pwd" || { ac_status=$?; break; }
1747  done
1748fi
1749
1750test -n "$ac_init_help" && exit $ac_status
1751if $ac_init_version; then
1752  cat <<\_ACEOF
1753libX11 configure 1.6.9
1754generated by GNU Autoconf 2.69
1755
1756Copyright (C) 2012 Free Software Foundation, Inc.
1757This configure script is free software; the Free Software Foundation
1758gives unlimited permission to copy, distribute and modify it.
1759_ACEOF
1760  exit
1761fi
1762
1763## ------------------------ ##
1764## Autoconf initialization. ##
1765## ------------------------ ##
1766
1767# ac_fn_c_try_compile LINENO
1768# --------------------------
1769# Try to compile conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext
1774  if { { ac_try="$ac_compile"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_compile") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest.$ac_objext; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_compile
1804
1805# ac_fn_c_try_cpp LINENO
1806# ----------------------
1807# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_cpp ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  if { { ac_try="$ac_cpp conftest.$ac_ext"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } > conftest.i && {
1827	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       }; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835    ac_retval=1
1836fi
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838  as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_cpp
1841
1842# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843# -------------------------------------------------------
1844# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845# the include files in INCLUDES and setting the cache variable VAR
1846# accordingly.
1847ac_fn_c_check_header_mongrel ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  if eval \${$3+:} false; then :
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855fi
1856eval ac_res=\$$3
1857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859else
1860  # Is the header compilable?
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862$as_echo_n "checking $2 usability... " >&6; }
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869  ac_header_compiler=yes
1870else
1871  ac_header_compiler=no
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875$as_echo "$ac_header_compiler" >&6; }
1876
1877# Is the header present?
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879$as_echo_n "checking $2 presence... " >&6; }
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882#include <$2>
1883_ACEOF
1884if ac_fn_c_try_cpp "$LINENO"; then :
1885  ac_header_preproc=yes
1886else
1887  ac_header_preproc=no
1888fi
1889rm -f conftest.err conftest.i conftest.$ac_ext
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891$as_echo "$ac_header_preproc" >&6; }
1892
1893# So?  What about this header?
1894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895  yes:no: )
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900    ;;
1901  no:yes:* )
1902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1905$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1909$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912( $as_echo "## -------------------------------------------------------------------- ##
1913## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/issues ##
1914## -------------------------------------------------------------------- ##"
1915     ) | sed "s/^/$as_me: WARNING:     /" >&2
1916    ;;
1917esac
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=\$ac_header_compiler"
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_header_mongrel
1932
1933# ac_fn_c_try_run LINENO
1934# ----------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936# that executables *can* be run.
1937ac_fn_c_try_run ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_link") 2>&5
1948  ac_status=$?
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951  { { case "(($ac_try" in
1952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953  *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957  (eval "$ac_try") 2>&5
1958  ac_status=$?
1959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960  test $ac_status = 0; }; }; then :
1961  ac_retval=0
1962else
1963  $as_echo "$as_me: program exited with status $ac_status" >&5
1964       $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967       ac_retval=$ac_status
1968fi
1969  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971  as_fn_set_status $ac_retval
1972
1973} # ac_fn_c_try_run
1974
1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_c_check_header_compile ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if eval \${$3+:} false; then :
1985  $as_echo_n "(cached) " >&6
1986else
1987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  eval "$3=yes"
1994else
1995  eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004} # ac_fn_c_check_header_compile
2005
2006# ac_fn_c_try_link LINENO
2007# -----------------------
2008# Try to link conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_link ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  rm -f conftest.$ac_objext conftest$ac_exeext
2013  if { { ac_try="$ac_link"
2014case "(($ac_try" in
2015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016  *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020  (eval "$ac_link") 2>conftest.err
2021  ac_status=$?
2022  if test -s conftest.err; then
2023    grep -v '^ *+' conftest.err >conftest.er1
2024    cat conftest.er1 >&5
2025    mv -f conftest.er1 conftest.err
2026  fi
2027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028  test $ac_status = 0; } && {
2029	 test -z "$ac_c_werror_flag" ||
2030	 test ! -s conftest.err
2031       } && test -s conftest$ac_exeext && {
2032	 test "$cross_compiling" = yes ||
2033	 test -x conftest$ac_exeext
2034       }; then :
2035  ac_retval=0
2036else
2037  $as_echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040	ac_retval=1
2041fi
2042  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044  # interfere with the next link command; also delete a directory that is
2045  # left behind by Apple's compiler.  We do this before executing the actions.
2046  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048  as_fn_set_status $ac_retval
2049
2050} # ac_fn_c_try_link
2051
2052# ac_fn_c_check_func LINENO FUNC VAR
2053# ----------------------------------
2054# Tests whether FUNC exists, setting the cache variable VAR accordingly
2055ac_fn_c_check_func ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061  $as_echo_n "(cached) " >&6
2062else
2063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2067#define $2 innocuous_$2
2068
2069/* System header to define __stub macros and hopefully few prototypes,
2070    which can conflict with char $2 (); below.
2071    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072    <limits.h> exists even on freestanding compilers.  */
2073
2074#ifdef __STDC__
2075# include <limits.h>
2076#else
2077# include <assert.h>
2078#endif
2079
2080#undef $2
2081
2082/* Override any GCC internal prototype to avoid an error.
2083   Use char because int might match the return type of a GCC
2084   builtin and then its argument prototype would still apply.  */
2085#ifdef __cplusplus
2086extern "C"
2087#endif
2088char $2 ();
2089/* The GNU C library defines this for functions which it implements
2090    to always fail with ENOSYS.  Some functions are actually named
2091    something starting with __ and the normal name is an alias.  */
2092#if defined __stub_$2 || defined __stub___$2
2093choke me
2094#endif
2095
2096int
2097main ()
2098{
2099return $2 ();
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_link "$LINENO"; then :
2105  eval "$3=yes"
2106else
2107  eval "$3=no"
2108fi
2109rm -f core conftest.err conftest.$ac_objext \
2110    conftest$ac_exeext conftest.$ac_ext
2111fi
2112eval ac_res=\$$3
2113	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114$as_echo "$ac_res" >&6; }
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117} # ac_fn_c_check_func
2118
2119# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2120# ---------------------------------------------
2121# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122# accordingly.
2123ac_fn_c_check_decl ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  as_decl_name=`echo $2|sed 's/ *(.*//'`
2127  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2129$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2130if eval \${$3+:} false; then :
2131  $as_echo_n "(cached) " >&6
2132else
2133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135$4
2136int
2137main ()
2138{
2139#ifndef $as_decl_name
2140#ifdef __cplusplus
2141  (void) $as_decl_use;
2142#else
2143  (void) $as_decl_name;
2144#endif
2145#endif
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152  eval "$3=yes"
2153else
2154  eval "$3=no"
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158eval ac_res=\$$3
2159	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163} # ac_fn_c_check_decl
2164
2165# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166# ----------------------------------------------------
2167# Tries to find if the field MEMBER exists in type AGGR, after including
2168# INCLUDES, setting cache variable VAR accordingly.
2169ac_fn_c_check_member ()
2170{
2171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173$as_echo_n "checking for $2.$3... " >&6; }
2174if eval \${$4+:} false; then :
2175  $as_echo_n "(cached) " >&6
2176else
2177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$5
2180int
2181main ()
2182{
2183static $2 ac_aggr;
2184if (ac_aggr.$3)
2185return 0;
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  eval "$4=yes"
2192else
2193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$5
2196int
2197main ()
2198{
2199static $2 ac_aggr;
2200if (sizeof ac_aggr.$3)
2201return 0;
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207  eval "$4=yes"
2208else
2209  eval "$4=no"
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215eval ac_res=\$$4
2216	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220} # ac_fn_c_check_member
2221
2222# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2223# -------------------------------------------
2224# Tests whether TYPE exists after having included INCLUDES, setting cache
2225# variable VAR accordingly.
2226ac_fn_c_check_type ()
2227{
2228  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230$as_echo_n "checking for $2... " >&6; }
2231if eval \${$3+:} false; then :
2232  $as_echo_n "(cached) " >&6
2233else
2234  eval "$3=no"
2235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241if (sizeof ($2))
2242	 return 0;
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h.  */
2250$4
2251int
2252main ()
2253{
2254if (sizeof (($2)))
2255	    return 0;
2256  ;
2257  return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_compile "$LINENO"; then :
2261
2262else
2263  eval "$3=yes"
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268fi
2269eval ac_res=\$$3
2270	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271$as_echo "$ac_res" >&6; }
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274} # ac_fn_c_check_type
2275cat >config.log <<_ACEOF
2276This file contains any messages produced by compilers while
2277running configure, to aid debugging if configure makes a mistake.
2278
2279It was created by libX11 $as_me 1.6.9, which was
2280generated by GNU Autoconf 2.69.  Invocation command line was
2281
2282  $ $0 $@
2283
2284_ACEOF
2285exec 5>>config.log
2286{
2287cat <<_ASUNAME
2288## --------- ##
2289## Platform. ##
2290## --------- ##
2291
2292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2293uname -m = `(uname -m) 2>/dev/null || echo unknown`
2294uname -r = `(uname -r) 2>/dev/null || echo unknown`
2295uname -s = `(uname -s) 2>/dev/null || echo unknown`
2296uname -v = `(uname -v) 2>/dev/null || echo unknown`
2297
2298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2299/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2300
2301/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2302/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2304/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2305/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2306/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2307/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2308
2309_ASUNAME
2310
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314  IFS=$as_save_IFS
2315  test -z "$as_dir" && as_dir=.
2316    $as_echo "PATH: $as_dir"
2317  done
2318IFS=$as_save_IFS
2319
2320} >&5
2321
2322cat >&5 <<_ACEOF
2323
2324
2325## ----------- ##
2326## Core tests. ##
2327## ----------- ##
2328
2329_ACEOF
2330
2331
2332# Keep a trace of the command line.
2333# Strip out --no-create and --no-recursion so they do not pile up.
2334# Strip out --silent because we don't want to record it for future runs.
2335# Also quote any args containing shell meta-characters.
2336# Make two passes to allow for proper duplicate-argument suppression.
2337ac_configure_args=
2338ac_configure_args0=
2339ac_configure_args1=
2340ac_must_keep_next=false
2341for ac_pass in 1 2
2342do
2343  for ac_arg
2344  do
2345    case $ac_arg in
2346    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2347    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2348    | -silent | --silent | --silen | --sile | --sil)
2349      continue ;;
2350    *\'*)
2351      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2352    esac
2353    case $ac_pass in
2354    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2355    2)
2356      as_fn_append ac_configure_args1 " '$ac_arg'"
2357      if test $ac_must_keep_next = true; then
2358	ac_must_keep_next=false # Got value, back to normal.
2359      else
2360	case $ac_arg in
2361	  *=* | --config-cache | -C | -disable-* | --disable-* \
2362	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2363	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2364	  | -with-* | --with-* | -without-* | --without-* | --x)
2365	    case "$ac_configure_args0 " in
2366	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2367	    esac
2368	    ;;
2369	  -* ) ac_must_keep_next=true ;;
2370	esac
2371      fi
2372      as_fn_append ac_configure_args " '$ac_arg'"
2373      ;;
2374    esac
2375  done
2376done
2377{ ac_configure_args0=; unset ac_configure_args0;}
2378{ ac_configure_args1=; unset ac_configure_args1;}
2379
2380# When interrupted or exit'd, cleanup temporary files, and complete
2381# config.log.  We remove comments because anyway the quotes in there
2382# would cause problems or look ugly.
2383# WARNING: Use '\'' to represent an apostrophe within the trap.
2384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2385trap 'exit_status=$?
2386  # Save into config.log some information that might help in debugging.
2387  {
2388    echo
2389
2390    $as_echo "## ---------------- ##
2391## Cache variables. ##
2392## ---------------- ##"
2393    echo
2394    # The following way of writing the cache mishandles newlines in values,
2395(
2396  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2397    eval ac_val=\$$ac_var
2398    case $ac_val in #(
2399    *${as_nl}*)
2400      case $ac_var in #(
2401      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2403      esac
2404      case $ac_var in #(
2405      _ | IFS | as_nl) ;; #(
2406      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2407      *) { eval $ac_var=; unset $ac_var;} ;;
2408      esac ;;
2409    esac
2410  done
2411  (set) 2>&1 |
2412    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2413    *${as_nl}ac_space=\ *)
2414      sed -n \
2415	"s/'\''/'\''\\\\'\'''\''/g;
2416	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2417      ;; #(
2418    *)
2419      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420      ;;
2421    esac |
2422    sort
2423)
2424    echo
2425
2426    $as_echo "## ----------------- ##
2427## Output variables. ##
2428## ----------------- ##"
2429    echo
2430    for ac_var in $ac_subst_vars
2431    do
2432      eval ac_val=\$$ac_var
2433      case $ac_val in
2434      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435      esac
2436      $as_echo "$ac_var='\''$ac_val'\''"
2437    done | sort
2438    echo
2439
2440    if test -n "$ac_subst_files"; then
2441      $as_echo "## ------------------- ##
2442## File substitutions. ##
2443## ------------------- ##"
2444      echo
2445      for ac_var in $ac_subst_files
2446      do
2447	eval ac_val=\$$ac_var
2448	case $ac_val in
2449	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450	esac
2451	$as_echo "$ac_var='\''$ac_val'\''"
2452      done | sort
2453      echo
2454    fi
2455
2456    if test -s confdefs.h; then
2457      $as_echo "## ----------- ##
2458## confdefs.h. ##
2459## ----------- ##"
2460      echo
2461      cat confdefs.h
2462      echo
2463    fi
2464    test "$ac_signal" != 0 &&
2465      $as_echo "$as_me: caught signal $ac_signal"
2466    $as_echo "$as_me: exit $exit_status"
2467  } >&5
2468  rm -f core *.core core.conftest.* &&
2469    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2470    exit $exit_status
2471' 0
2472for ac_signal in 1 2 13 15; do
2473  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474done
2475ac_signal=0
2476
2477# confdefs.h avoids OS command line length limits that DEFS can exceed.
2478rm -f -r conftest* confdefs.h
2479
2480$as_echo "/* confdefs.h */" > confdefs.h
2481
2482# Predefined preprocessor variables.
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_NAME "$PACKAGE_NAME"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_VERSION "$PACKAGE_VERSION"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_STRING "$PACKAGE_STRING"
2498_ACEOF
2499
2500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502_ACEOF
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_URL "$PACKAGE_URL"
2506_ACEOF
2507
2508
2509# Let the site file select an alternate cache file if it wants to.
2510# Prefer an explicitly selected file to automatically selected ones.
2511ac_site_file1=NONE
2512ac_site_file2=NONE
2513if test -n "$CONFIG_SITE"; then
2514  # We do not want a PATH search for config.site.
2515  case $CONFIG_SITE in #((
2516    -*)  ac_site_file1=./$CONFIG_SITE;;
2517    */*) ac_site_file1=$CONFIG_SITE;;
2518    *)   ac_site_file1=./$CONFIG_SITE;;
2519  esac
2520elif test "x$prefix" != xNONE; then
2521  ac_site_file1=$prefix/share/config.site
2522  ac_site_file2=$prefix/etc/config.site
2523else
2524  ac_site_file1=$ac_default_prefix/share/config.site
2525  ac_site_file2=$ac_default_prefix/etc/config.site
2526fi
2527for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2528do
2529  test "x$ac_site_file" = xNONE && continue
2530  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2531    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2532$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2533    sed 's/^/| /' "$ac_site_file" >&5
2534    . "$ac_site_file" \
2535      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537as_fn_error $? "failed to load site script $ac_site_file
2538See \`config.log' for more details" "$LINENO" 5; }
2539  fi
2540done
2541
2542if test -r "$cache_file"; then
2543  # Some versions of bash will fail to source /dev/null (special files
2544  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2545  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2546    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547$as_echo "$as_me: loading cache $cache_file" >&6;}
2548    case $cache_file in
2549      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550      *)                      . "./$cache_file";;
2551    esac
2552  fi
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555$as_echo "$as_me: creating cache $cache_file" >&6;}
2556  >$cache_file
2557fi
2558
2559as_fn_append ac_header_list " stdlib.h"
2560as_fn_append ac_header_list " unistd.h"
2561as_fn_append ac_header_list " sys/param.h"
2562# Check that the precious variables saved in the cache have kept the same
2563# value.
2564ac_cache_corrupted=false
2565for ac_var in $ac_precious_vars; do
2566  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2567  eval ac_new_set=\$ac_env_${ac_var}_set
2568  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2569  eval ac_new_val=\$ac_env_${ac_var}_value
2570  case $ac_old_set,$ac_new_set in
2571    set,)
2572      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2574      ac_cache_corrupted=: ;;
2575    ,set)
2576      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,);;
2580    *)
2581      if test "x$ac_old_val" != "x$ac_new_val"; then
2582	# differences in whitespace do not lead to failure.
2583	ac_old_val_w=`echo x $ac_old_val`
2584	ac_new_val_w=`echo x $ac_new_val`
2585	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2586	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2588	  ac_cache_corrupted=:
2589	else
2590	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2592	  eval $ac_var=\$ac_old_val
2593	fi
2594	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2595$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2597$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2598      fi;;
2599  esac
2600  # Pass precious variables to config.status.
2601  if test "$ac_new_set" = set; then
2602    case $ac_new_val in
2603    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2604    *) ac_arg=$ac_var=$ac_new_val ;;
2605    esac
2606    case " $ac_configure_args " in
2607      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2608      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2609    esac
2610  fi
2611done
2612if $ac_cache_corrupted; then
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2617  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2618fi
2619## -------------------- ##
2620## Main body of script. ##
2621## -------------------- ##
2622
2623ac_ext=c
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629
2630
2631ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2632
2633
2634ac_aux_dir=
2635for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2636  if test -f "$ac_dir/install-sh"; then
2637    ac_aux_dir=$ac_dir
2638    ac_install_sh="$ac_aux_dir/install-sh -c"
2639    break
2640  elif test -f "$ac_dir/install.sh"; then
2641    ac_aux_dir=$ac_dir
2642    ac_install_sh="$ac_aux_dir/install.sh -c"
2643    break
2644  elif test -f "$ac_dir/shtool"; then
2645    ac_aux_dir=$ac_dir
2646    ac_install_sh="$ac_aux_dir/shtool install -c"
2647    break
2648  fi
2649done
2650if test -z "$ac_aux_dir"; then
2651  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2652fi
2653
2654# These three variables are undocumented and unsupported,
2655# and are intended to be withdrawn in a future Autoconf release.
2656# They can cause serious problems if a builder's source tree is in a directory
2657# whose full name contains unusual characters.
2658ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2659ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2660ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2661
2662
2663# Make sure we can run config.sub.
2664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2665  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2666
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2668$as_echo_n "checking build system type... " >&6; }
2669if ${ac_cv_build+:} false; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  ac_build_alias=$build_alias
2673test "x$ac_build_alias" = x &&
2674  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2675test "x$ac_build_alias" = x &&
2676  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2677ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2678  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2679
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2682$as_echo "$ac_cv_build" >&6; }
2683case $ac_cv_build in
2684*-*-*) ;;
2685*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2686esac
2687build=$ac_cv_build
2688ac_save_IFS=$IFS; IFS='-'
2689set x $ac_cv_build
2690shift
2691build_cpu=$1
2692build_vendor=$2
2693shift; shift
2694# Remember, the first character of IFS is used to create $*,
2695# except with old shells:
2696build_os=$*
2697IFS=$ac_save_IFS
2698case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2699
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2702$as_echo_n "checking host system type... " >&6; }
2703if ${ac_cv_host+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test "x$host_alias" = x; then
2707  ac_cv_host=$ac_cv_build
2708else
2709  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2710    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2711fi
2712
2713fi
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2715$as_echo "$ac_cv_host" >&6; }
2716case $ac_cv_host in
2717*-*-*) ;;
2718*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2719esac
2720host=$ac_cv_host
2721ac_save_IFS=$IFS; IFS='-'
2722set x $ac_cv_host
2723shift
2724host_cpu=$1
2725host_vendor=$2
2726shift; shift
2727# Remember, the first character of IFS is used to create $*,
2728# except with old shells:
2729host_os=$*
2730IFS=$ac_save_IFS
2731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732
2733
2734# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2735# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2736# to avoid autoconf errors.
2737# Expand $ac_aux_dir to an absolute path.
2738am_aux_dir=`cd "$ac_aux_dir" && pwd`
2739
2740ac_ext=c
2741ac_cpp='$CPP $CPPFLAGS'
2742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745if test -n "$ac_tool_prefix"; then
2746  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2747set dummy ${ac_tool_prefix}gcc; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if ${ac_cv_prog_CC+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test -n "$CC"; then
2754  ac_cv_prog_CC="$CC" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759  IFS=$as_save_IFS
2760  test -z "$as_dir" && as_dir=.
2761    for ac_exec_ext in '' $ac_executable_extensions; do
2762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768  done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776$as_echo "$CC" >&6; }
2777else
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782
2783fi
2784if test -z "$ac_cv_prog_CC"; then
2785  ac_ct_CC=$CC
2786  # Extract the first word of "gcc", so it can be a program name with args.
2787set dummy gcc; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$ac_ct_CC"; then
2794  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_ac_ct_CC="gcc"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814if test -n "$ac_ct_CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816$as_echo "$ac_ct_CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822  if test "x$ac_ct_CC" = x; then
2823    CC=""
2824  else
2825    case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831    CC=$ac_ct_CC
2832  fi
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837if test -z "$CC"; then
2838          if test -n "$ac_tool_prefix"; then
2839    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840set dummy ${ac_tool_prefix}cc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_CC+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856    ac_cv_prog_CC="${ac_tool_prefix}cc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866CC=$ac_cv_prog_CC
2867if test -n "$CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869$as_echo "$CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875
2876  fi
2877fi
2878if test -z "$CC"; then
2879  # Extract the first word of "cc", so it can be a program name with args.
2880set dummy cc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889  ac_prog_rejected=no
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895    for ac_exec_ext in '' $ac_executable_extensions; do
2896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898       ac_prog_rejected=yes
2899       continue
2900     fi
2901    ac_cv_prog_CC="cc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909if test $ac_prog_rejected = yes; then
2910  # We found a bogon in the path, so make sure we never use it.
2911  set dummy $ac_cv_prog_CC
2912  shift
2913  if test $# != 0; then
2914    # We chose a different compiler from the bogus one.
2915    # However, it has the same basename, so the bogon will be chosen
2916    # first if we set CC to just the basename; use the full file name.
2917    shift
2918    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919  fi
2920fi
2921fi
2922fi
2923CC=$ac_cv_prog_CC
2924if test -n "$CC"; then
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926$as_echo "$CC" >&6; }
2927else
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929$as_echo "no" >&6; }
2930fi
2931
2932
2933fi
2934if test -z "$CC"; then
2935  if test -n "$ac_tool_prefix"; then
2936  for ac_prog in cl.exe
2937  do
2938    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_CC+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968$as_echo "$CC" >&6; }
2969else
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975    test -n "$CC" && break
2976  done
2977fi
2978if test -z "$CC"; then
2979  ac_ct_CC=$CC
2980  for ac_prog in cl.exe
2981do
2982  # Extract the first word of "$ac_prog", so it can be a program name with args.
2983set dummy $ac_prog; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$ac_ct_CC"; then
2990  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999    ac_cv_prog_ac_ct_CC="$ac_prog"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012$as_echo "$ac_ct_CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019  test -n "$ac_ct_CC" && break
3020done
3021
3022  if test "x$ac_ct_CC" = x; then
3023    CC=""
3024  else
3025    case $cross_compiling:$ac_tool_warned in
3026yes:)
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029ac_tool_warned=yes ;;
3030esac
3031    CC=$ac_ct_CC
3032  fi
3033fi
3034
3035fi
3036
3037
3038test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040as_fn_error $? "no acceptable C compiler found in \$PATH
3041See \`config.log' for more details" "$LINENO" 5; }
3042
3043# Provide some information about the compiler.
3044$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3045set X $ac_compile
3046ac_compiler=$2
3047for ac_option in --version -v -V -qversion; do
3048  { { ac_try="$ac_compiler $ac_option >&5"
3049case "(($ac_try" in
3050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051  *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056  ac_status=$?
3057  if test -s conftest.err; then
3058    sed '10a\
3059... rest of stderr output deleted ...
3060         10q' conftest.err >conftest.er1
3061    cat conftest.er1 >&5
3062  fi
3063  rm -f conftest.er1 conftest.err
3064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065  test $ac_status = 0; }
3066done
3067
3068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069/* end confdefs.h.  */
3070
3071int
3072main ()
3073{
3074
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079ac_clean_files_save=$ac_clean_files
3080ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081# Try to create an executable without -o first, disregard a.out.
3082# It will help us diagnose broken compilers, and finding out an intuition
3083# of exeext.
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085$as_echo_n "checking whether the C compiler works... " >&6; }
3086ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087
3088# The possible output files:
3089ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3090
3091ac_rmfiles=
3092for ac_file in $ac_files
3093do
3094  case $ac_file in
3095    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097  esac
3098done
3099rm -f $ac_rmfiles
3100
3101if { { ac_try="$ac_link_default"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_link_default") 2>&5
3109  ac_status=$?
3110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111  test $ac_status = 0; }; then :
3112  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3115# so that the user can short-circuit this test for compilers unknown to
3116# Autoconf.
3117for ac_file in $ac_files ''
3118do
3119  test -f "$ac_file" || continue
3120  case $ac_file in
3121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3122	;;
3123    [ab].out )
3124	# We found the default executable, but exeext='' is most
3125	# certainly right.
3126	break;;
3127    *.* )
3128	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129	then :; else
3130	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131	fi
3132	# We set ac_cv_exeext here because the later test for it is not
3133	# safe: cross compilers may not add the suffix if given an `-o'
3134	# argument, so we may need to know it at that point already.
3135	# Even if this section looks crufty: it has the advantage of
3136	# actually working.
3137	break;;
3138    * )
3139	break;;
3140  esac
3141done
3142test "$ac_cv_exeext" = no && ac_cv_exeext=
3143
3144else
3145  ac_file=''
3146fi
3147if test -z "$ac_file"; then :
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150$as_echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error 77 "C compiler cannot create executables
3156See \`config.log' for more details" "$LINENO" 5; }
3157else
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159$as_echo "yes" >&6; }
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3162$as_echo_n "checking for C compiler default output file name... " >&6; }
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164$as_echo "$ac_file" >&6; }
3165ac_exeext=$ac_cv_exeext
3166
3167rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168ac_clean_files=$ac_clean_files_save
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170$as_echo_n "checking for suffix of executables... " >&6; }
3171if { { ac_try="$ac_link"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_link") 2>&5
3179  ac_status=$?
3180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181  test $ac_status = 0; }; then :
3182  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3184# work properly (i.e., refer to `conftest.exe'), while it won't with
3185# `rm'.
3186for ac_file in conftest.exe conftest conftest.*; do
3187  test -f "$ac_file" || continue
3188  case $ac_file in
3189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191	  break;;
3192    * ) break;;
3193  esac
3194done
3195else
3196  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199See \`config.log' for more details" "$LINENO" 5; }
3200fi
3201rm -f conftest conftest$ac_cv_exeext
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203$as_echo "$ac_cv_exeext" >&6; }
3204
3205rm -f conftest.$ac_ext
3206EXEEXT=$ac_cv_exeext
3207ac_exeext=$EXEEXT
3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210#include <stdio.h>
3211int
3212main ()
3213{
3214FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3216
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221ac_clean_files="$ac_clean_files conftest.out"
3222# Check that the compiler produces executables we can run.  If not, either
3223# the compiler is broken, or we cross compile.
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225$as_echo_n "checking whether we are cross compiling... " >&6; }
3226if test "$cross_compiling" != yes; then
3227  { { ac_try="$ac_link"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233$as_echo "$ac_try_echo"; } >&5
3234  (eval "$ac_link") 2>&5
3235  ac_status=$?
3236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237  test $ac_status = 0; }
3238  if { ac_try='./conftest$ac_cv_exeext'
3239  { { case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245  (eval "$ac_try") 2>&5
3246  ac_status=$?
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }; }; then
3249    cross_compiling=no
3250  else
3251    if test "$cross_compiling" = maybe; then
3252	cross_compiling=yes
3253    else
3254	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256as_fn_error $? "cannot run C compiled programs.
3257If you meant to cross compile, use \`--host'.
3258See \`config.log' for more details" "$LINENO" 5; }
3259    fi
3260  fi
3261fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263$as_echo "$cross_compiling" >&6; }
3264
3265rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266ac_clean_files=$ac_clean_files_save
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268$as_echo_n "checking for suffix of object files... " >&6; }
3269if ${ac_cv_objext+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.o conftest.obj
3284if { { ac_try="$ac_compile"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_compile") 2>&5
3292  ac_status=$?
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }; then :
3295  for ac_file in conftest.o conftest.obj conftest.*; do
3296  test -f "$ac_file" || continue;
3297  case $ac_file in
3298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300       break;;
3301  esac
3302done
3303else
3304  $as_echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error $? "cannot compute suffix of object files: cannot compile
3310See \`config.log' for more details" "$LINENO" 5; }
3311fi
3312rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315$as_echo "$ac_cv_objext" >&6; }
3316OBJEXT=$ac_cv_objext
3317ac_objext=$OBJEXT
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320if ${ac_cv_c_compiler_gnu+:} false; then :
3321  $as_echo_n "(cached) " >&6
3322else
3323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h.  */
3325
3326int
3327main ()
3328{
3329#ifndef __GNUC__
3330       choke me
3331#endif
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338  ac_compiler_gnu=yes
3339else
3340  ac_compiler_gnu=no
3341fi
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348if test $ac_compiler_gnu = yes; then
3349  GCC=yes
3350else
3351  GCC=
3352fi
3353ac_test_CFLAGS=${CFLAGS+set}
3354ac_save_CFLAGS=$CFLAGS
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356$as_echo_n "checking whether $CC accepts -g... " >&6; }
3357if ${ac_cv_prog_cc_g+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360  ac_save_c_werror_flag=$ac_c_werror_flag
3361   ac_c_werror_flag=yes
3362   ac_cv_prog_cc_g=no
3363   CFLAGS="-g"
3364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375if ac_fn_c_try_compile "$LINENO"; then :
3376  ac_cv_prog_cc_g=yes
3377else
3378  CFLAGS=""
3379      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380/* end confdefs.h.  */
3381
3382int
3383main ()
3384{
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390if ac_fn_c_try_compile "$LINENO"; then :
3391
3392else
3393  ac_c_werror_flag=$ac_save_c_werror_flag
3394	 CFLAGS="-g"
3395	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406if ac_fn_c_try_compile "$LINENO"; then :
3407  ac_cv_prog_cc_g=yes
3408fi
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410fi
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412fi
3413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414   ac_c_werror_flag=$ac_save_c_werror_flag
3415fi
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417$as_echo "$ac_cv_prog_cc_g" >&6; }
3418if test "$ac_test_CFLAGS" = set; then
3419  CFLAGS=$ac_save_CFLAGS
3420elif test $ac_cv_prog_cc_g = yes; then
3421  if test "$GCC" = yes; then
3422    CFLAGS="-g -O2"
3423  else
3424    CFLAGS="-g"
3425  fi
3426else
3427  if test "$GCC" = yes; then
3428    CFLAGS="-O2"
3429  else
3430    CFLAGS=
3431  fi
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435if ${ac_cv_prog_cc_c89+:} false; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438  ac_cv_prog_cc_c89=no
3439ac_save_CC=$CC
3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442#include <stdarg.h>
3443#include <stdio.h>
3444struct stat;
3445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3446struct buf { int x; };
3447FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448static char *e (p, i)
3449     char **p;
3450     int i;
3451{
3452  return p[i];
3453}
3454static char *f (char * (*g) (char **, int), char **p, ...)
3455{
3456  char *s;
3457  va_list v;
3458  va_start (v,p);
3459  s = g (p, va_arg (v,int));
3460  va_end (v);
3461  return s;
3462}
3463
3464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3465   function prototypes and stuff, but not '\xHH' hex character constants.
3466   These don't provoke an error unfortunately, instead are silently treated
3467   as 'x'.  The following induces an error, until -std is added to get
3468   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3469   array size at least.  It's necessary to write '\x00'==0 to get something
3470   that's true only with -std.  */
3471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472
3473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474   inside strings and character constants.  */
3475#define FOO(x) 'x'
3476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477
3478int test (int i, double x);
3479struct s1 {int (*f) (int a);};
3480struct s2 {int (*f) (double a);};
3481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482int argc;
3483char **argv;
3484int
3485main ()
3486{
3487return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494do
3495  CC="$ac_save_CC $ac_arg"
3496  if ac_fn_c_try_compile "$LINENO"; then :
3497  ac_cv_prog_cc_c89=$ac_arg
3498fi
3499rm -f core conftest.err conftest.$ac_objext
3500  test "x$ac_cv_prog_cc_c89" != "xno" && break
3501done
3502rm -f conftest.$ac_ext
3503CC=$ac_save_CC
3504
3505fi
3506# AC_CACHE_VAL
3507case "x$ac_cv_prog_cc_c89" in
3508  x)
3509    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510$as_echo "none needed" >&6; } ;;
3511  xno)
3512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513$as_echo "unsupported" >&6; } ;;
3514  *)
3515    CC="$CC $ac_cv_prog_cc_c89"
3516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3518esac
3519if test "x$ac_cv_prog_cc_c89" != xno; then :
3520
3521fi
3522
3523ac_ext=c
3524ac_cpp='$CPP $CPPFLAGS'
3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3535$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3536if ${am_cv_prog_cc_c_o+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550  # Make sure it works both with $CC and with simple cc.
3551  # Following AC_PROG_CC_C_O, we do the test twice because some
3552  # compilers refuse to overwrite an existing .o file with -o,
3553  # though they will create one.
3554  am_cv_prog_cc_c_o=yes
3555  for am_i in 1 2; do
3556    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3557   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); } \
3561         && test -f conftest2.$ac_objext; then
3562      : OK
3563    else
3564      am_cv_prog_cc_c_o=no
3565      break
3566    fi
3567  done
3568  rm -f core conftest*
3569  unset am_i
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3572$as_echo "$am_cv_prog_cc_c_o" >&6; }
3573if test "$am_cv_prog_cc_c_o" != yes; then
3574   # Losing compiler, so override with the script.
3575   # FIXME: It is wrong to rewrite CC.
3576   # But if we don't then we get into trouble of one sort or another.
3577   # A longer-term fix would be to have automake use am__CC in this case,
3578   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3579   CC="$am_aux_dir/compile $CC"
3580fi
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587
3588
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3595$as_echo_n "checking how to run the C preprocessor... " >&6; }
3596# On Suns, sometimes $CPP names a directory.
3597if test -n "$CPP" && test -d "$CPP"; then
3598  CPP=
3599fi
3600if test -z "$CPP"; then
3601  if ${ac_cv_prog_CPP+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604      # Double quotes because CPP needs to be expanded
3605    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3606    do
3607      ac_preproc_ok=false
3608for ac_c_preproc_warn_flag in '' yes
3609do
3610  # Use a header file that comes with gcc, so configuring glibc
3611  # with a fresh cross-compiler works.
3612  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613  # <limits.h> exists even on freestanding compilers.
3614  # On the NeXT, cc -E runs the code through the compiler's parser,
3615  # not just through cpp. "Syntax error" is here to catch this case.
3616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618#ifdef __STDC__
3619# include <limits.h>
3620#else
3621# include <assert.h>
3622#endif
3623		     Syntax error
3624_ACEOF
3625if ac_fn_c_try_cpp "$LINENO"; then :
3626
3627else
3628  # Broken: fails on valid input.
3629continue
3630fi
3631rm -f conftest.err conftest.i conftest.$ac_ext
3632
3633  # OK, works on sane cases.  Now check whether nonexistent headers
3634  # can be detected and how.
3635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637#include <ac_nonexistent.h>
3638_ACEOF
3639if ac_fn_c_try_cpp "$LINENO"; then :
3640  # Broken: success on invalid input.
3641continue
3642else
3643  # Passes both tests.
3644ac_preproc_ok=:
3645break
3646fi
3647rm -f conftest.err conftest.i conftest.$ac_ext
3648
3649done
3650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651rm -f conftest.i conftest.err conftest.$ac_ext
3652if $ac_preproc_ok; then :
3653  break
3654fi
3655
3656    done
3657    ac_cv_prog_CPP=$CPP
3658
3659fi
3660  CPP=$ac_cv_prog_CPP
3661else
3662  ac_cv_prog_CPP=$CPP
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3665$as_echo "$CPP" >&6; }
3666ac_preproc_ok=false
3667for ac_c_preproc_warn_flag in '' yes
3668do
3669  # Use a header file that comes with gcc, so configuring glibc
3670  # with a fresh cross-compiler works.
3671  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672  # <limits.h> exists even on freestanding compilers.
3673  # On the NeXT, cc -E runs the code through the compiler's parser,
3674  # not just through cpp. "Syntax error" is here to catch this case.
3675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677#ifdef __STDC__
3678# include <limits.h>
3679#else
3680# include <assert.h>
3681#endif
3682		     Syntax error
3683_ACEOF
3684if ac_fn_c_try_cpp "$LINENO"; then :
3685
3686else
3687  # Broken: fails on valid input.
3688continue
3689fi
3690rm -f conftest.err conftest.i conftest.$ac_ext
3691
3692  # OK, works on sane cases.  Now check whether nonexistent headers
3693  # can be detected and how.
3694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696#include <ac_nonexistent.h>
3697_ACEOF
3698if ac_fn_c_try_cpp "$LINENO"; then :
3699  # Broken: success on invalid input.
3700continue
3701else
3702  # Passes both tests.
3703ac_preproc_ok=:
3704break
3705fi
3706rm -f conftest.err conftest.i conftest.$ac_ext
3707
3708done
3709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3710rm -f conftest.i conftest.err conftest.$ac_ext
3711if $ac_preproc_ok; then :
3712
3713else
3714  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3717See \`config.log' for more details" "$LINENO" 5; }
3718fi
3719
3720ac_ext=c
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
3726
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3728$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3729if ${ac_cv_path_GREP+:} false; then :
3730  $as_echo_n "(cached) " >&6
3731else
3732  if test -z "$GREP"; then
3733  ac_path_GREP_found=false
3734  # Loop through the user's path and test for each of PROGNAME-LIST
3735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737do
3738  IFS=$as_save_IFS
3739  test -z "$as_dir" && as_dir=.
3740    for ac_prog in grep ggrep; do
3741    for ac_exec_ext in '' $ac_executable_extensions; do
3742      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3743      as_fn_executable_p "$ac_path_GREP" || continue
3744# Check for GNU ac_path_GREP and select it if it is found.
3745  # Check for GNU $ac_path_GREP
3746case `"$ac_path_GREP" --version 2>&1` in
3747*GNU*)
3748  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3749*)
3750  ac_count=0
3751  $as_echo_n 0123456789 >"conftest.in"
3752  while :
3753  do
3754    cat "conftest.in" "conftest.in" >"conftest.tmp"
3755    mv "conftest.tmp" "conftest.in"
3756    cp "conftest.in" "conftest.nl"
3757    $as_echo 'GREP' >> "conftest.nl"
3758    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3759    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3760    as_fn_arith $ac_count + 1 && ac_count=$as_val
3761    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3762      # Best one so far, save it but keep looking for a better one
3763      ac_cv_path_GREP="$ac_path_GREP"
3764      ac_path_GREP_max=$ac_count
3765    fi
3766    # 10*(2^10) chars as input seems more than enough
3767    test $ac_count -gt 10 && break
3768  done
3769  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3770esac
3771
3772      $ac_path_GREP_found && break 3
3773    done
3774  done
3775  done
3776IFS=$as_save_IFS
3777  if test -z "$ac_cv_path_GREP"; then
3778    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3779  fi
3780else
3781  ac_cv_path_GREP=$GREP
3782fi
3783
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3786$as_echo "$ac_cv_path_GREP" >&6; }
3787 GREP="$ac_cv_path_GREP"
3788
3789
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3791$as_echo_n "checking for egrep... " >&6; }
3792if ${ac_cv_path_EGREP+:} false; then :
3793  $as_echo_n "(cached) " >&6
3794else
3795  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796   then ac_cv_path_EGREP="$GREP -E"
3797   else
3798     if test -z "$EGREP"; then
3799  ac_path_EGREP_found=false
3800  # Loop through the user's path and test for each of PROGNAME-LIST
3801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_prog in egrep; do
3807    for ac_exec_ext in '' $ac_executable_extensions; do
3808      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3809      as_fn_executable_p "$ac_path_EGREP" || continue
3810# Check for GNU ac_path_EGREP and select it if it is found.
3811  # Check for GNU $ac_path_EGREP
3812case `"$ac_path_EGREP" --version 2>&1` in
3813*GNU*)
3814  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3815*)
3816  ac_count=0
3817  $as_echo_n 0123456789 >"conftest.in"
3818  while :
3819  do
3820    cat "conftest.in" "conftest.in" >"conftest.tmp"
3821    mv "conftest.tmp" "conftest.in"
3822    cp "conftest.in" "conftest.nl"
3823    $as_echo 'EGREP' >> "conftest.nl"
3824    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3826    as_fn_arith $ac_count + 1 && ac_count=$as_val
3827    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3828      # Best one so far, save it but keep looking for a better one
3829      ac_cv_path_EGREP="$ac_path_EGREP"
3830      ac_path_EGREP_max=$ac_count
3831    fi
3832    # 10*(2^10) chars as input seems more than enough
3833    test $ac_count -gt 10 && break
3834  done
3835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3836esac
3837
3838      $ac_path_EGREP_found && break 3
3839    done
3840  done
3841  done
3842IFS=$as_save_IFS
3843  if test -z "$ac_cv_path_EGREP"; then
3844    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3845  fi
3846else
3847  ac_cv_path_EGREP=$EGREP
3848fi
3849
3850   fi
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3853$as_echo "$ac_cv_path_EGREP" >&6; }
3854 EGREP="$ac_cv_path_EGREP"
3855
3856
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3858$as_echo_n "checking for ANSI C header files... " >&6; }
3859if ${ac_cv_header_stdc+:} false; then :
3860  $as_echo_n "(cached) " >&6
3861else
3862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h.  */
3864#include <stdlib.h>
3865#include <stdarg.h>
3866#include <string.h>
3867#include <float.h>
3868
3869int
3870main ()
3871{
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877if ac_fn_c_try_compile "$LINENO"; then :
3878  ac_cv_header_stdc=yes
3879else
3880  ac_cv_header_stdc=no
3881fi
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883
3884if test $ac_cv_header_stdc = yes; then
3885  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888#include <string.h>
3889
3890_ACEOF
3891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892  $EGREP "memchr" >/dev/null 2>&1; then :
3893
3894else
3895  ac_cv_header_stdc=no
3896fi
3897rm -f conftest*
3898
3899fi
3900
3901if test $ac_cv_header_stdc = yes; then
3902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905#include <stdlib.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909  $EGREP "free" >/dev/null 2>&1; then :
3910
3911else
3912  ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920  if test "$cross_compiling" = yes; then :
3921  :
3922else
3923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h.  */
3925#include <ctype.h>
3926#include <stdlib.h>
3927#if ((' ' & 0x0FF) == 0x020)
3928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3930#else
3931# define ISLOWER(c) \
3932		   (('a' <= (c) && (c) <= 'i') \
3933		     || ('j' <= (c) && (c) <= 'r') \
3934		     || ('s' <= (c) && (c) <= 'z'))
3935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3936#endif
3937
3938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3939int
3940main ()
3941{
3942  int i;
3943  for (i = 0; i < 256; i++)
3944    if (XOR (islower (i), ISLOWER (i))
3945	|| toupper (i) != TOUPPER (i))
3946      return 2;
3947  return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_run "$LINENO"; then :
3951
3952else
3953  ac_cv_header_stdc=no
3954fi
3955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3956  conftest.$ac_objext conftest.beam conftest.$ac_ext
3957fi
3958
3959fi
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3962$as_echo "$ac_cv_header_stdc" >&6; }
3963if test $ac_cv_header_stdc = yes; then
3964
3965$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3966
3967fi
3968
3969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3971		  inttypes.h stdint.h unistd.h
3972do :
3973  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3974ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3975"
3976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3977  cat >>confdefs.h <<_ACEOF
3978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979_ACEOF
3980
3981fi
3982
3983done
3984
3985
3986
3987  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3988if test "x$ac_cv_header_minix_config_h" = xyes; then :
3989  MINIX=yes
3990else
3991  MINIX=
3992fi
3993
3994
3995  if test "$MINIX" = yes; then
3996
3997$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3998
3999
4000$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4001
4002
4003$as_echo "#define _MINIX 1" >>confdefs.h
4004
4005  fi
4006
4007
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4009$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4010if ${ac_cv_safe_to_define___extensions__+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015
4016#         define __EXTENSIONS__ 1
4017          $ac_includes_default
4018int
4019main ()
4020{
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026if ac_fn_c_try_compile "$LINENO"; then :
4027  ac_cv_safe_to_define___extensions__=yes
4028else
4029  ac_cv_safe_to_define___extensions__=no
4030fi
4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4034$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4035  test $ac_cv_safe_to_define___extensions__ = yes &&
4036    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4037
4038  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4039
4040  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4041
4042  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4043
4044  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4045
4046
4047
4048# Initialize Automake
4049am__api_version='1.16'
4050
4051# Find a good install program.  We prefer a C program (faster),
4052# so one script is as good as another.  But avoid the broken or
4053# incompatible versions:
4054# SysV /etc/install, /usr/sbin/install
4055# SunOS /usr/etc/install
4056# IRIX /sbin/install
4057# AIX /bin/install
4058# AmigaOS /C/install, which installs bootblocks on floppy discs
4059# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4060# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4061# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4062# OS/2's system install, which has a completely different semantic
4063# ./install, which can be erroneously created by make from ./install.sh.
4064# Reject install programs that cannot install multiple files.
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4066$as_echo_n "checking for a BSD-compatible install... " >&6; }
4067if test -z "$INSTALL"; then
4068if ${ac_cv_path_install+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076    # Account for people who put trailing slashes in PATH elements.
4077case $as_dir/ in #((
4078  ./ | .// | /[cC]/* | \
4079  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4080  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4081  /usr/ucb/* ) ;;
4082  *)
4083    # OSF1 and SCO ODT 3.0 have their own names for install.
4084    # Don't use installbsd from OSF since it installs stuff as root
4085    # by default.
4086    for ac_prog in ginstall scoinst install; do
4087      for ac_exec_ext in '' $ac_executable_extensions; do
4088	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4089	  if test $ac_prog = install &&
4090	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4091	    # AIX install.  It has an incompatible calling convention.
4092	    :
4093	  elif test $ac_prog = install &&
4094	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4095	    # program-specific install script used by HP pwplus--don't use.
4096	    :
4097	  else
4098	    rm -rf conftest.one conftest.two conftest.dir
4099	    echo one > conftest.one
4100	    echo two > conftest.two
4101	    mkdir conftest.dir
4102	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4103	      test -s conftest.one && test -s conftest.two &&
4104	      test -s conftest.dir/conftest.one &&
4105	      test -s conftest.dir/conftest.two
4106	    then
4107	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4108	      break 3
4109	    fi
4110	  fi
4111	fi
4112      done
4113    done
4114    ;;
4115esac
4116
4117  done
4118IFS=$as_save_IFS
4119
4120rm -rf conftest.one conftest.two conftest.dir
4121
4122fi
4123  if test "${ac_cv_path_install+set}" = set; then
4124    INSTALL=$ac_cv_path_install
4125  else
4126    # As a last resort, use the slow shell script.  Don't cache a
4127    # value for INSTALL within a source directory, because that will
4128    # break other packages using the cache if that directory is
4129    # removed, or if the value is a relative name.
4130    INSTALL=$ac_install_sh
4131  fi
4132fi
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4134$as_echo "$INSTALL" >&6; }
4135
4136# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4137# It thinks the first close brace ends the variable substitution.
4138test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4139
4140test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4141
4142test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4143
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4145$as_echo_n "checking whether build environment is sane... " >&6; }
4146# Reject unsafe characters in $srcdir or the absolute working directory
4147# name.  Accept space and tab only in the latter.
4148am_lf='
4149'
4150case `pwd` in
4151  *[\\\"\#\$\&\'\`$am_lf]*)
4152    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4153esac
4154case $srcdir in
4155  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4156    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4157esac
4158
4159# Do 'set' in a subshell so we don't clobber the current shell's
4160# arguments.  Must try -L first in case configure is actually a
4161# symlink; some systems play weird games with the mod time of symlinks
4162# (eg FreeBSD returns the mod time of the symlink's containing
4163# directory).
4164if (
4165   am_has_slept=no
4166   for am_try in 1 2; do
4167     echo "timestamp, slept: $am_has_slept" > conftest.file
4168     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4169     if test "$*" = "X"; then
4170	# -L didn't work.
4171	set X `ls -t "$srcdir/configure" conftest.file`
4172     fi
4173     if test "$*" != "X $srcdir/configure conftest.file" \
4174	&& test "$*" != "X conftest.file $srcdir/configure"; then
4175
4176	# If neither matched, then we have a broken ls.  This can happen
4177	# if, for instance, CONFIG_SHELL is bash and it inherits a
4178	# broken ls alias from the environment.  This has actually
4179	# happened.  Such a system could not be considered "sane".
4180	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4181  alias in your environment" "$LINENO" 5
4182     fi
4183     if test "$2" = conftest.file || test $am_try -eq 2; then
4184       break
4185     fi
4186     # Just in case.
4187     sleep 1
4188     am_has_slept=yes
4189   done
4190   test "$2" = conftest.file
4191   )
4192then
4193   # Ok.
4194   :
4195else
4196   as_fn_error $? "newly created file is older than distributed files!
4197Check your system clock" "$LINENO" 5
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200$as_echo "yes" >&6; }
4201# If we didn't sleep, we still need to ensure time stamps of config.status and
4202# generated files are strictly newer.
4203am_sleep_pid=
4204if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4205  ( sleep 1 ) &
4206  am_sleep_pid=$!
4207fi
4208
4209rm -f conftest.file
4210
4211test "$program_prefix" != NONE &&
4212  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4213# Use a double $ so make ignores it.
4214test "$program_suffix" != NONE &&
4215  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4216# Double any \ or $.
4217# By default was `s,x,x', remove it if useless.
4218ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4219program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4220
4221if test x"${MISSING+set}" != xset; then
4222  case $am_aux_dir in
4223  *\ * | *\	*)
4224    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4225  *)
4226    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4227  esac
4228fi
4229# Use eval to expand $SHELL
4230if eval "$MISSING --is-lightweight"; then
4231  am_missing_run="$MISSING "
4232else
4233  am_missing_run=
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4235$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4236fi
4237
4238if test x"${install_sh+set}" != xset; then
4239  case $am_aux_dir in
4240  *\ * | *\	*)
4241    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4242  *)
4243    install_sh="\${SHELL} $am_aux_dir/install-sh"
4244  esac
4245fi
4246
4247# Installed binaries are usually stripped using 'strip' when the user
4248# run "make install-strip".  However 'strip' might not be the right
4249# tool to use in cross-compilation environments, therefore Automake
4250# will honor the 'STRIP' environment variable to overrule this program.
4251if test "$cross_compiling" != no; then
4252  if test -n "$ac_tool_prefix"; then
4253  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4254set dummy ${ac_tool_prefix}strip; ac_word=$2
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256$as_echo_n "checking for $ac_word... " >&6; }
4257if ${ac_cv_prog_STRIP+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  if test -n "$STRIP"; then
4261  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4262else
4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH
4265do
4266  IFS=$as_save_IFS
4267  test -z "$as_dir" && as_dir=.
4268    for ac_exec_ext in '' $ac_executable_extensions; do
4269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272    break 2
4273  fi
4274done
4275  done
4276IFS=$as_save_IFS
4277
4278fi
4279fi
4280STRIP=$ac_cv_prog_STRIP
4281if test -n "$STRIP"; then
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4283$as_echo "$STRIP" >&6; }
4284else
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286$as_echo "no" >&6; }
4287fi
4288
4289
4290fi
4291if test -z "$ac_cv_prog_STRIP"; then
4292  ac_ct_STRIP=$STRIP
4293  # Extract the first word of "strip", so it can be a program name with args.
4294set dummy strip; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test -n "$ac_ct_STRIP"; then
4301  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306  IFS=$as_save_IFS
4307  test -z "$as_dir" && as_dir=.
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310    ac_cv_prog_ac_ct_STRIP="strip"
4311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312    break 2
4313  fi
4314done
4315  done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4321if test -n "$ac_ct_STRIP"; then
4322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4323$as_echo "$ac_ct_STRIP" >&6; }
4324else
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
4327fi
4328
4329  if test "x$ac_ct_STRIP" = x; then
4330    STRIP=":"
4331  else
4332    case $cross_compiling:$ac_tool_warned in
4333yes:)
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336ac_tool_warned=yes ;;
4337esac
4338    STRIP=$ac_ct_STRIP
4339  fi
4340else
4341  STRIP="$ac_cv_prog_STRIP"
4342fi
4343
4344fi
4345INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4346
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4348$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4349if test -z "$MKDIR_P"; then
4350  if ${ac_cv_path_mkdir+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358    for ac_prog in mkdir gmkdir; do
4359	 for ac_exec_ext in '' $ac_executable_extensions; do
4360	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4361	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4362	     'mkdir (GNU coreutils) '* | \
4363	     'mkdir (coreutils) '* | \
4364	     'mkdir (fileutils) '4.1*)
4365	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4366	       break 3;;
4367	   esac
4368	 done
4369       done
4370  done
4371IFS=$as_save_IFS
4372
4373fi
4374
4375  test -d ./--version && rmdir ./--version
4376  if test "${ac_cv_path_mkdir+set}" = set; then
4377    MKDIR_P="$ac_cv_path_mkdir -p"
4378  else
4379    # As a last resort, use the slow shell script.  Don't cache a
4380    # value for MKDIR_P within a source directory, because that will
4381    # break other packages using the cache if that directory is
4382    # removed, or if the value is a relative name.
4383    MKDIR_P="$ac_install_sh -d"
4384  fi
4385fi
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4387$as_echo "$MKDIR_P" >&6; }
4388
4389for ac_prog in gawk mawk nawk awk
4390do
4391  # Extract the first word of "$ac_prog", so it can be a program name with args.
4392set dummy $ac_prog; ac_word=$2
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394$as_echo_n "checking for $ac_word... " >&6; }
4395if ${ac_cv_prog_AWK+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -n "$AWK"; then
4399  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408    ac_cv_prog_AWK="$ac_prog"
4409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410    break 2
4411  fi
4412done
4413  done
4414IFS=$as_save_IFS
4415
4416fi
4417fi
4418AWK=$ac_cv_prog_AWK
4419if test -n "$AWK"; then
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4421$as_echo "$AWK" >&6; }
4422else
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425fi
4426
4427
4428  test -n "$AWK" && break
4429done
4430
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4432$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4433set x ${MAKE-make}
4434ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4435if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4436  $as_echo_n "(cached) " >&6
4437else
4438  cat >conftest.make <<\_ACEOF
4439SHELL = /bin/sh
4440all:
4441	@echo '@@@%%%=$(MAKE)=@@@%%%'
4442_ACEOF
4443# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4444case `${MAKE-make} -f conftest.make 2>/dev/null` in
4445  *@@@%%%=?*=@@@%%%*)
4446    eval ac_cv_prog_make_${ac_make}_set=yes;;
4447  *)
4448    eval ac_cv_prog_make_${ac_make}_set=no;;
4449esac
4450rm -f conftest.make
4451fi
4452if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454$as_echo "yes" >&6; }
4455  SET_MAKE=
4456else
4457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458$as_echo "no" >&6; }
4459  SET_MAKE="MAKE=${MAKE-make}"
4460fi
4461
4462rm -rf .tst 2>/dev/null
4463mkdir .tst 2>/dev/null
4464if test -d .tst; then
4465  am__leading_dot=.
4466else
4467  am__leading_dot=_
4468fi
4469rmdir .tst 2>/dev/null
4470
4471DEPDIR="${am__leading_dot}deps"
4472
4473ac_config_commands="$ac_config_commands depfiles"
4474
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4476$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4477cat > confinc.mk << 'END'
4478am__doit:
4479	@echo this is the am__doit target >confinc.out
4480.PHONY: am__doit
4481END
4482am__include="#"
4483am__quote=
4484# BSD make does it like this.
4485echo '.include "confinc.mk" # ignored' > confmf.BSD
4486# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4487echo 'include confinc.mk # ignored' > confmf.GNU
4488_am_result=no
4489for s in GNU BSD; do
4490  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4491   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }
4495  case $?:`cat confinc.out 2>/dev/null` in #(
4496  '0:this is the am__doit target') :
4497    case $s in #(
4498  BSD) :
4499    am__include='.include' am__quote='"' ;; #(
4500  *) :
4501    am__include='include' am__quote='' ;;
4502esac ;; #(
4503  *) :
4504     ;;
4505esac
4506  if test "$am__include" != "#"; then
4507    _am_result="yes ($s style)"
4508    break
4509  fi
4510done
4511rm -f confinc.* confmf.*
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4513$as_echo "${_am_result}" >&6; }
4514
4515# Check whether --enable-dependency-tracking was given.
4516if test "${enable_dependency_tracking+set}" = set; then :
4517  enableval=$enable_dependency_tracking;
4518fi
4519
4520if test "x$enable_dependency_tracking" != xno; then
4521  am_depcomp="$ac_aux_dir/depcomp"
4522  AMDEPBACKSLASH='\'
4523  am__nodep='_no'
4524fi
4525 if test "x$enable_dependency_tracking" != xno; then
4526  AMDEP_TRUE=
4527  AMDEP_FALSE='#'
4528else
4529  AMDEP_TRUE='#'
4530  AMDEP_FALSE=
4531fi
4532
4533
4534# Check whether --enable-silent-rules was given.
4535if test "${enable_silent_rules+set}" = set; then :
4536  enableval=$enable_silent_rules;
4537fi
4538
4539case $enable_silent_rules in # (((
4540  yes) AM_DEFAULT_VERBOSITY=0;;
4541   no) AM_DEFAULT_VERBOSITY=1;;
4542    *) AM_DEFAULT_VERBOSITY=1;;
4543esac
4544am_make=${MAKE-make}
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4546$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4547if ${am_cv_make_support_nested_variables+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if $as_echo 'TRUE=$(BAR$(V))
4551BAR0=false
4552BAR1=true
4553V=1
4554am__doit:
4555	@$(TRUE)
4556.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4557  am_cv_make_support_nested_variables=yes
4558else
4559  am_cv_make_support_nested_variables=no
4560fi
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4563$as_echo "$am_cv_make_support_nested_variables" >&6; }
4564if test $am_cv_make_support_nested_variables = yes; then
4565    AM_V='$(V)'
4566  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4567else
4568  AM_V=$AM_DEFAULT_VERBOSITY
4569  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4570fi
4571AM_BACKSLASH='\'
4572
4573if test "`cd $srcdir && pwd`" != "`pwd`"; then
4574  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4575  # is not polluted with repeated "-I."
4576  am__isrc=' -I$(srcdir)'
4577  # test to see if srcdir already configured
4578  if test -f $srcdir/config.status; then
4579    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4580  fi
4581fi
4582
4583# test whether we have cygpath
4584if test -z "$CYGPATH_W"; then
4585  if (cygpath --version) >/dev/null 2>/dev/null; then
4586    CYGPATH_W='cygpath -w'
4587  else
4588    CYGPATH_W=echo
4589  fi
4590fi
4591
4592
4593# Define the identity of the package.
4594 PACKAGE='libX11'
4595 VERSION='1.6.9'
4596
4597
4598cat >>confdefs.h <<_ACEOF
4599#define PACKAGE "$PACKAGE"
4600_ACEOF
4601
4602
4603cat >>confdefs.h <<_ACEOF
4604#define VERSION "$VERSION"
4605_ACEOF
4606
4607# Some tools Automake needs.
4608
4609ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4610
4611
4612AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4613
4614
4615AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4616
4617
4618AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4619
4620
4621MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4622
4623# For better backward compatibility.  To be removed once Automake 1.9.x
4624# dies out for good.  For more background, see:
4625# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4626# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4627mkdir_p='$(MKDIR_P)'
4628
4629# We need awk for the "check" target (and possibly the TAP driver).  The
4630# system "awk" is bad on some platforms.
4631# Always define AMTAR for backward compatibility.  Yes, it's still used
4632# in the wild :-(  We should find a proper way to deprecate it ...
4633AMTAR='$${TAR-tar}'
4634
4635
4636# We'll loop over all known methods to create a tar archive until one works.
4637_am_tools='gnutar  pax cpio none'
4638
4639am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4640
4641
4642
4643
4644
4645depcc="$CC"   am_compiler_list=
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4648$as_echo_n "checking dependency style of $depcc... " >&6; }
4649if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4653  # We make a subdir and do the tests there.  Otherwise we can end up
4654  # making bogus files that we don't know about and never remove.  For
4655  # instance it was reported that on HP-UX the gcc test will end up
4656  # making a dummy file named 'D' -- because '-MD' means "put the output
4657  # in D".
4658  rm -rf conftest.dir
4659  mkdir conftest.dir
4660  # Copy depcomp to subdir because otherwise we won't find it if we're
4661  # using a relative directory.
4662  cp "$am_depcomp" conftest.dir
4663  cd conftest.dir
4664  # We will build objects and dependencies in a subdirectory because
4665  # it helps to detect inapplicable dependency modes.  For instance
4666  # both Tru64's cc and ICC support -MD to output dependencies as a
4667  # side effect of compilation, but ICC will put the dependencies in
4668  # the current directory while Tru64 will put them in the object
4669  # directory.
4670  mkdir sub
4671
4672  am_cv_CC_dependencies_compiler_type=none
4673  if test "$am_compiler_list" = ""; then
4674     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4675  fi
4676  am__universal=false
4677  case " $depcc " in #(
4678     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4679     esac
4680
4681  for depmode in $am_compiler_list; do
4682    # Setup a source with many dependencies, because some compilers
4683    # like to wrap large dependency lists on column 80 (with \), and
4684    # we should not choose a depcomp mode which is confused by this.
4685    #
4686    # We need to recreate these files for each test, as the compiler may
4687    # overwrite some of them when testing with obscure command lines.
4688    # This happens at least with the AIX C compiler.
4689    : > sub/conftest.c
4690    for i in 1 2 3 4 5 6; do
4691      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4692      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4693      # Solaris 10 /bin/sh.
4694      echo '/* dummy */' > sub/conftst$i.h
4695    done
4696    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4697
4698    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4699    # mode.  It turns out that the SunPro C++ compiler does not properly
4700    # handle '-M -o', and we need to detect this.  Also, some Intel
4701    # versions had trouble with output in subdirs.
4702    am__obj=sub/conftest.${OBJEXT-o}
4703    am__minus_obj="-o $am__obj"
4704    case $depmode in
4705    gcc)
4706      # This depmode causes a compiler race in universal mode.
4707      test "$am__universal" = false || continue
4708      ;;
4709    nosideeffect)
4710      # After this tag, mechanisms are not by side-effect, so they'll
4711      # only be used when explicitly requested.
4712      if test "x$enable_dependency_tracking" = xyes; then
4713	continue
4714      else
4715	break
4716      fi
4717      ;;
4718    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4719      # This compiler won't grok '-c -o', but also, the minuso test has
4720      # not run yet.  These depmodes are late enough in the game, and
4721      # so weak that their functioning should not be impacted.
4722      am__obj=conftest.${OBJEXT-o}
4723      am__minus_obj=
4724      ;;
4725    none) break ;;
4726    esac
4727    if depmode=$depmode \
4728       source=sub/conftest.c object=$am__obj \
4729       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4731         >/dev/null 2>conftest.err &&
4732       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4734       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4735       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4736      # icc doesn't choke on unknown options, it will just issue warnings
4737      # or remarks (even with -Werror).  So we grep stderr for any message
4738      # that says an option was ignored or not supported.
4739      # When given -MP, icc 7.0 and 7.1 complain thusly:
4740      #   icc: Command line warning: ignoring option '-M'; no argument required
4741      # The diagnosis changed in icc 8.0:
4742      #   icc: Command line remark: option '-MP' not supported
4743      if (grep 'ignoring option' conftest.err ||
4744          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4745        am_cv_CC_dependencies_compiler_type=$depmode
4746        break
4747      fi
4748    fi
4749  done
4750
4751  cd ..
4752  rm -rf conftest.dir
4753else
4754  am_cv_CC_dependencies_compiler_type=none
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4759$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4760CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4761
4762 if
4763  test "x$enable_dependency_tracking" != xno \
4764  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4765  am__fastdepCC_TRUE=
4766  am__fastdepCC_FALSE='#'
4767else
4768  am__fastdepCC_TRUE='#'
4769  am__fastdepCC_FALSE=
4770fi
4771
4772
4773
4774# POSIX will say in a future version that running "rm -f" with no argument
4775# is OK; and we want to be able to make that assumption in our Makefile
4776# recipes.  So use an aggressive probe to check that the usage we want is
4777# actually supported "in the wild" to an acceptable degree.
4778# See automake bug#10828.
4779# To make any issue more visible, cause the running configure to be aborted
4780# by default if the 'rm' program in use doesn't match our expectations; the
4781# user can still override this though.
4782if rm -f && rm -fr && rm -rf; then : OK; else
4783  cat >&2 <<'END'
4784Oops!
4785
4786Your 'rm' program seems unable to run without file operands specified
4787on the command line, even when the '-f' option is present.  This is contrary
4788to the behaviour of most rm programs out there, and not conforming with
4789the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4790
4791Please tell bug-automake@gnu.org about your system, including the value
4792of your $PATH and any error possibly output before this message.  This
4793can help us improve future automake versions.
4794
4795END
4796  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4797    echo 'Configuration will proceed anyway, since you have set the' >&2
4798    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4799    echo >&2
4800  else
4801    cat >&2 <<'END'
4802Aborting the configuration process, to ensure you take notice of the issue.
4803
4804You can download and install GNU coreutils to get an 'rm' implementation
4805that behaves properly: <https://www.gnu.org/software/coreutils/>.
4806
4807If you want to complete the configuration process using your problematic
4808'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4809to "yes", and re-run configure.
4810
4811END
4812    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4813  fi
4814fi
4815
4816
4817# Initialize libtool
4818case `pwd` in
4819  *\ * | *\	*)
4820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822esac
4823
4824
4825
4826macro_version='2.4.6'
4827macro_revision='2.4.6'
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841ltmain=$ac_aux_dir/ltmain.sh
4842
4843# Backslashify metacharacters that are still active within
4844# double-quoted strings.
4845sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4846
4847# Same as above, but do not quote variable references.
4848double_quote_subst='s/\(["`\\]\)/\\\1/g'
4849
4850# Sed substitution to delay expansion of an escaped shell variable in a
4851# double_quote_subst'ed string.
4852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4853
4854# Sed substitution to delay expansion of an escaped single quote.
4855delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4856
4857# Sed substitution to avoid accidental globbing in evaled expressions
4858no_glob_subst='s/\*/\\\*/g'
4859
4860ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4861ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4862ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4863
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4865$as_echo_n "checking how to print strings... " >&6; }
4866# Test print first, because it will be a builtin if present.
4867if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4868   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4869  ECHO='print -r --'
4870elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4871  ECHO='printf %s\n'
4872else
4873  # Use this function as a fallback that always works.
4874  func_fallback_echo ()
4875  {
4876    eval 'cat <<_LTECHO_EOF
4877$1
4878_LTECHO_EOF'
4879  }
4880  ECHO='func_fallback_echo'
4881fi
4882
4883# func_echo_all arg...
4884# Invoke $ECHO with all args, space-separated.
4885func_echo_all ()
4886{
4887    $ECHO ""
4888}
4889
4890case $ECHO in
4891  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4892$as_echo "printf" >&6; } ;;
4893  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4894$as_echo "print -r" >&6; } ;;
4895  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4896$as_echo "cat" >&6; } ;;
4897esac
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4913$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4914if ${ac_cv_path_SED+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4918     for ac_i in 1 2 3 4 5 6 7; do
4919       ac_script="$ac_script$as_nl$ac_script"
4920     done
4921     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4922     { ac_script=; unset ac_script;}
4923     if test -z "$SED"; then
4924  ac_path_SED_found=false
4925  # Loop through the user's path and test for each of PROGNAME-LIST
4926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929  IFS=$as_save_IFS
4930  test -z "$as_dir" && as_dir=.
4931    for ac_prog in sed gsed; do
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4934      as_fn_executable_p "$ac_path_SED" || continue
4935# Check for GNU ac_path_SED and select it if it is found.
4936  # Check for GNU $ac_path_SED
4937case `"$ac_path_SED" --version 2>&1` in
4938*GNU*)
4939  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4940*)
4941  ac_count=0
4942  $as_echo_n 0123456789 >"conftest.in"
4943  while :
4944  do
4945    cat "conftest.in" "conftest.in" >"conftest.tmp"
4946    mv "conftest.tmp" "conftest.in"
4947    cp "conftest.in" "conftest.nl"
4948    $as_echo '' >> "conftest.nl"
4949    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4950    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4951    as_fn_arith $ac_count + 1 && ac_count=$as_val
4952    if test $ac_count -gt ${ac_path_SED_max-0}; then
4953      # Best one so far, save it but keep looking for a better one
4954      ac_cv_path_SED="$ac_path_SED"
4955      ac_path_SED_max=$ac_count
4956    fi
4957    # 10*(2^10) chars as input seems more than enough
4958    test $ac_count -gt 10 && break
4959  done
4960  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961esac
4962
4963      $ac_path_SED_found && break 3
4964    done
4965  done
4966  done
4967IFS=$as_save_IFS
4968  if test -z "$ac_cv_path_SED"; then
4969    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4970  fi
4971else
4972  ac_cv_path_SED=$SED
4973fi
4974
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4977$as_echo "$ac_cv_path_SED" >&6; }
4978 SED="$ac_cv_path_SED"
4979  rm -f conftest.sed
4980
4981test -z "$SED" && SED=sed
4982Xsed="$SED -e 1s/^X//"
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995$as_echo_n "checking for fgrep... " >&6; }
4996if ${ac_cv_path_FGREP+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5000   then ac_cv_path_FGREP="$GREP -F"
5001   else
5002     if test -z "$FGREP"; then
5003  ac_path_FGREP_found=false
5004  # Loop through the user's path and test for each of PROGNAME-LIST
5005  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010    for ac_prog in fgrep; do
5011    for ac_exec_ext in '' $ac_executable_extensions; do
5012      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5013      as_fn_executable_p "$ac_path_FGREP" || continue
5014# Check for GNU ac_path_FGREP and select it if it is found.
5015  # Check for GNU $ac_path_FGREP
5016case `"$ac_path_FGREP" --version 2>&1` in
5017*GNU*)
5018  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5019*)
5020  ac_count=0
5021  $as_echo_n 0123456789 >"conftest.in"
5022  while :
5023  do
5024    cat "conftest.in" "conftest.in" >"conftest.tmp"
5025    mv "conftest.tmp" "conftest.in"
5026    cp "conftest.in" "conftest.nl"
5027    $as_echo 'FGREP' >> "conftest.nl"
5028    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030    as_fn_arith $ac_count + 1 && ac_count=$as_val
5031    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5032      # Best one so far, save it but keep looking for a better one
5033      ac_cv_path_FGREP="$ac_path_FGREP"
5034      ac_path_FGREP_max=$ac_count
5035    fi
5036    # 10*(2^10) chars as input seems more than enough
5037    test $ac_count -gt 10 && break
5038  done
5039  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040esac
5041
5042      $ac_path_FGREP_found && break 3
5043    done
5044  done
5045  done
5046IFS=$as_save_IFS
5047  if test -z "$ac_cv_path_FGREP"; then
5048    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5049  fi
5050else
5051  ac_cv_path_FGREP=$FGREP
5052fi
5053
5054   fi
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5057$as_echo "$ac_cv_path_FGREP" >&6; }
5058 FGREP="$ac_cv_path_FGREP"
5059
5060
5061test -z "$GREP" && GREP=grep
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081# Check whether --with-gnu-ld was given.
5082if test "${with_gnu_ld+set}" = set; then :
5083  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5084else
5085  with_gnu_ld=no
5086fi
5087
5088ac_prog=ld
5089if test yes = "$GCC"; then
5090  # Check if gcc -print-prog-name=ld gives a path.
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5092$as_echo_n "checking for ld used by $CC... " >&6; }
5093  case $host in
5094  *-*-mingw*)
5095    # gcc leaves a trailing carriage return, which upsets mingw
5096    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5097  *)
5098    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5099  esac
5100  case $ac_prog in
5101    # Accept absolute paths.
5102    [\\/]* | ?:[\\/]*)
5103      re_direlt='/[^/][^/]*/\.\./'
5104      # Canonicalize the pathname of ld
5105      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5106      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5107	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5108      done
5109      test -z "$LD" && LD=$ac_prog
5110      ;;
5111  "")
5112    # If it fails, then pretend we aren't using GCC.
5113    ac_prog=ld
5114    ;;
5115  *)
5116    # If it is relative, then search for the first ld in PATH.
5117    with_gnu_ld=unknown
5118    ;;
5119  esac
5120elif test yes = "$with_gnu_ld"; then
5121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5122$as_echo_n "checking for GNU ld... " >&6; }
5123else
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5125$as_echo_n "checking for non-GNU ld... " >&6; }
5126fi
5127if ${lt_cv_path_LD+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -z "$LD"; then
5131  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5132  for ac_dir in $PATH; do
5133    IFS=$lt_save_ifs
5134    test -z "$ac_dir" && ac_dir=.
5135    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5136      lt_cv_path_LD=$ac_dir/$ac_prog
5137      # Check to see if the program is GNU ld.  I'd rather use --version,
5138      # but apparently some variants of GNU ld only accept -v.
5139      # Break only if it was the GNU/non-GNU ld that we prefer.
5140      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5141      *GNU* | *'with BFD'*)
5142	test no != "$with_gnu_ld" && break
5143	;;
5144      *)
5145	test yes != "$with_gnu_ld" && break
5146	;;
5147      esac
5148    fi
5149  done
5150  IFS=$lt_save_ifs
5151else
5152  lt_cv_path_LD=$LD # Let the user override the test with a path.
5153fi
5154fi
5155
5156LD=$lt_cv_path_LD
5157if test -n "$LD"; then
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5159$as_echo "$LD" >&6; }
5160else
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163fi
5164test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5166$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5167if ${lt_cv_prog_gnu_ld+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5171case `$LD -v 2>&1 </dev/null` in
5172*GNU* | *'with BFD'*)
5173  lt_cv_prog_gnu_ld=yes
5174  ;;
5175*)
5176  lt_cv_prog_gnu_ld=no
5177  ;;
5178esac
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5181$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5182with_gnu_ld=$lt_cv_prog_gnu_ld
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5193$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5194if ${lt_cv_path_NM+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  if test -n "$NM"; then
5198  # Let the user override the test.
5199  lt_cv_path_NM=$NM
5200else
5201  lt_nm_to_check=${ac_tool_prefix}nm
5202  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5203    lt_nm_to_check="$lt_nm_to_check nm"
5204  fi
5205  for lt_tmp_nm in $lt_nm_to_check; do
5206    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5207    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5208      IFS=$lt_save_ifs
5209      test -z "$ac_dir" && ac_dir=.
5210      tmp_nm=$ac_dir/$lt_tmp_nm
5211      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5212	# Check to see if the nm accepts a BSD-compat flag.
5213	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5214	#   nm: unknown option "B" ignored
5215	# Tru64's nm complains that /dev/null is an invalid object file
5216	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5217	case $build_os in
5218	mingw*) lt_bad_file=conftest.nm/nofile ;;
5219	*) lt_bad_file=/dev/null ;;
5220	esac
5221	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5222	*$lt_bad_file* | *'Invalid file or object type'*)
5223	  lt_cv_path_NM="$tmp_nm -B"
5224	  break 2
5225	  ;;
5226	*)
5227	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5228	  */dev/null*)
5229	    lt_cv_path_NM="$tmp_nm -p"
5230	    break 2
5231	    ;;
5232	  *)
5233	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5234	    continue # so that we can try to find one that supports BSD flags
5235	    ;;
5236	  esac
5237	  ;;
5238	esac
5239      fi
5240    done
5241    IFS=$lt_save_ifs
5242  done
5243  : ${lt_cv_path_NM=no}
5244fi
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5247$as_echo "$lt_cv_path_NM" >&6; }
5248if test no != "$lt_cv_path_NM"; then
5249  NM=$lt_cv_path_NM
5250else
5251  # Didn't find any BSD compatible name lister, look for dumpbin.
5252  if test -n "$DUMPBIN"; then :
5253    # Let the user override the test.
5254  else
5255    if test -n "$ac_tool_prefix"; then
5256  for ac_prog in dumpbin "link -dump"
5257  do
5258    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261$as_echo_n "checking for $ac_word... " >&6; }
5262if ${ac_cv_prog_DUMPBIN+:} false; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265  if test -n "$DUMPBIN"; then
5266  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5267else
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271  IFS=$as_save_IFS
5272  test -z "$as_dir" && as_dir=.
5273    for ac_exec_ext in '' $ac_executable_extensions; do
5274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277    break 2
5278  fi
5279done
5280  done
5281IFS=$as_save_IFS
5282
5283fi
5284fi
5285DUMPBIN=$ac_cv_prog_DUMPBIN
5286if test -n "$DUMPBIN"; then
5287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5288$as_echo "$DUMPBIN" >&6; }
5289else
5290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
5292fi
5293
5294
5295    test -n "$DUMPBIN" && break
5296  done
5297fi
5298if test -z "$DUMPBIN"; then
5299  ac_ct_DUMPBIN=$DUMPBIN
5300  for ac_prog in dumpbin "link -dump"
5301do
5302  # Extract the first word of "$ac_prog", so it can be a program name with args.
5303set dummy $ac_prog; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
5306if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  if test -n "$ac_ct_DUMPBIN"; then
5310  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315  IFS=$as_save_IFS
5316  test -z "$as_dir" && as_dir=.
5317    for ac_exec_ext in '' $ac_executable_extensions; do
5318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321    break 2
5322  fi
5323done
5324  done
5325IFS=$as_save_IFS
5326
5327fi
5328fi
5329ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5330if test -n "$ac_ct_DUMPBIN"; then
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5332$as_echo "$ac_ct_DUMPBIN" >&6; }
5333else
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338
5339  test -n "$ac_ct_DUMPBIN" && break
5340done
5341
5342  if test "x$ac_ct_DUMPBIN" = x; then
5343    DUMPBIN=":"
5344  else
5345    case $cross_compiling:$ac_tool_warned in
5346yes:)
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5349ac_tool_warned=yes ;;
5350esac
5351    DUMPBIN=$ac_ct_DUMPBIN
5352  fi
5353fi
5354
5355    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5356    *COFF*)
5357      DUMPBIN="$DUMPBIN -symbols -headers"
5358      ;;
5359    *)
5360      DUMPBIN=:
5361      ;;
5362    esac
5363  fi
5364
5365  if test : != "$DUMPBIN"; then
5366    NM=$DUMPBIN
5367  fi
5368fi
5369test -z "$NM" && NM=nm
5370
5371
5372
5373
5374
5375
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5377$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5378if ${lt_cv_nm_interface+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  lt_cv_nm_interface="BSD nm"
5382  echo "int some_variable = 0;" > conftest.$ac_ext
5383  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5384  (eval "$ac_compile" 2>conftest.err)
5385  cat conftest.err >&5
5386  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5387  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5388  cat conftest.err >&5
5389  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5390  cat conftest.out >&5
5391  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5392    lt_cv_nm_interface="MS dumpbin"
5393  fi
5394  rm -f conftest*
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5397$as_echo "$lt_cv_nm_interface" >&6; }
5398
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5400$as_echo_n "checking whether ln -s works... " >&6; }
5401LN_S=$as_ln_s
5402if test "$LN_S" = "ln -s"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5404$as_echo "yes" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5407$as_echo "no, using $LN_S" >&6; }
5408fi
5409
5410# find the maximum length of command line arguments
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5412$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5413if ${lt_cv_sys_max_cmd_len+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416    i=0
5417  teststring=ABCD
5418
5419  case $build_os in
5420  msdosdjgpp*)
5421    # On DJGPP, this test can blow up pretty badly due to problems in libc
5422    # (any single argument exceeding 2000 bytes causes a buffer overrun
5423    # during glob expansion).  Even if it were fixed, the result of this
5424    # check would be larger than it should be.
5425    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5426    ;;
5427
5428  gnu*)
5429    # Under GNU Hurd, this test is not required because there is
5430    # no limit to the length of command line arguments.
5431    # Libtool will interpret -1 as no limit whatsoever
5432    lt_cv_sys_max_cmd_len=-1;
5433    ;;
5434
5435  cygwin* | mingw* | cegcc*)
5436    # On Win9x/ME, this test blows up -- it succeeds, but takes
5437    # about 5 minutes as the teststring grows exponentially.
5438    # Worse, since 9x/ME are not pre-emptively multitasking,
5439    # you end up with a "frozen" computer, even though with patience
5440    # the test eventually succeeds (with a max line length of 256k).
5441    # Instead, let's just punt: use the minimum linelength reported by
5442    # all of the supported platforms: 8192 (on NT/2K/XP).
5443    lt_cv_sys_max_cmd_len=8192;
5444    ;;
5445
5446  mint*)
5447    # On MiNT this can take a long time and run out of memory.
5448    lt_cv_sys_max_cmd_len=8192;
5449    ;;
5450
5451  amigaos*)
5452    # On AmigaOS with pdksh, this test takes hours, literally.
5453    # So we just punt and use a minimum line length of 8192.
5454    lt_cv_sys_max_cmd_len=8192;
5455    ;;
5456
5457  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5458    # This has been around since 386BSD, at least.  Likely further.
5459    if test -x /sbin/sysctl; then
5460      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5461    elif test -x /usr/sbin/sysctl; then
5462      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5463    else
5464      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5465    fi
5466    # And add a safety zone
5467    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5468    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5469    ;;
5470
5471  interix*)
5472    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5473    lt_cv_sys_max_cmd_len=196608
5474    ;;
5475
5476  os2*)
5477    # The test takes a long time on OS/2.
5478    lt_cv_sys_max_cmd_len=8192
5479    ;;
5480
5481  osf*)
5482    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5483    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5484    # nice to cause kernel panics so lets avoid the loop below.
5485    # First set a reasonable default.
5486    lt_cv_sys_max_cmd_len=16384
5487    #
5488    if test -x /sbin/sysconfig; then
5489      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5490        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5491      esac
5492    fi
5493    ;;
5494  sco3.2v5*)
5495    lt_cv_sys_max_cmd_len=102400
5496    ;;
5497  sysv5* | sco5v6* | sysv4.2uw2*)
5498    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5499    if test -n "$kargmax"; then
5500      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5501    else
5502      lt_cv_sys_max_cmd_len=32768
5503    fi
5504    ;;
5505  *)
5506    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5507    if test -n "$lt_cv_sys_max_cmd_len" && \
5508       test undefined != "$lt_cv_sys_max_cmd_len"; then
5509      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511    else
5512      # Make teststring a little bigger before we do anything with it.
5513      # a 1K string should be a reasonable start.
5514      for i in 1 2 3 4 5 6 7 8; do
5515        teststring=$teststring$teststring
5516      done
5517      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518      # If test is not a shell built-in, we'll probably end up computing a
5519      # maximum length that is only half of the actual maximum length, but
5520      # we can't tell.
5521      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5522	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5523	      test 17 != "$i" # 1/2 MB should be enough
5524      do
5525        i=`expr $i + 1`
5526        teststring=$teststring$teststring
5527      done
5528      # Only check the string length outside the loop.
5529      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5530      teststring=
5531      # Add a significant safety factor because C++ compilers can tack on
5532      # massive amounts of additional arguments before passing them to the
5533      # linker.  It appears as though 1/2 is a usable value.
5534      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5535    fi
5536    ;;
5537  esac
5538
5539fi
5540
5541if test -n "$lt_cv_sys_max_cmd_len"; then
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5543$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5544else
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5546$as_echo "none" >&6; }
5547fi
5548max_cmd_len=$lt_cv_sys_max_cmd_len
5549
5550
5551
5552
5553
5554
5555: ${CP="cp -f"}
5556: ${MV="mv -f"}
5557: ${RM="rm -f"}
5558
5559if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5560  lt_unset=unset
5561else
5562  lt_unset=false
5563fi
5564
5565
5566
5567
5568
5569# test EBCDIC or ASCII
5570case `echo X|tr X '\101'` in
5571 A) # ASCII based system
5572    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5573  lt_SP2NL='tr \040 \012'
5574  lt_NL2SP='tr \015\012 \040\040'
5575  ;;
5576 *) # EBCDIC based system
5577  lt_SP2NL='tr \100 \n'
5578  lt_NL2SP='tr \r\n \100\100'
5579  ;;
5580esac
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5591$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5592if ${lt_cv_to_host_file_cmd+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  case $host in
5596  *-*-mingw* )
5597    case $build in
5598      *-*-mingw* ) # actually msys
5599        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5600        ;;
5601      *-*-cygwin* )
5602        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5603        ;;
5604      * ) # otherwise, assume *nix
5605        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5606        ;;
5607    esac
5608    ;;
5609  *-*-cygwin* )
5610    case $build in
5611      *-*-mingw* ) # actually msys
5612        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5613        ;;
5614      *-*-cygwin* )
5615        lt_cv_to_host_file_cmd=func_convert_file_noop
5616        ;;
5617      * ) # otherwise, assume *nix
5618        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5619        ;;
5620    esac
5621    ;;
5622  * ) # unhandled hosts (and "normal" native builds)
5623    lt_cv_to_host_file_cmd=func_convert_file_noop
5624    ;;
5625esac
5626
5627fi
5628
5629to_host_file_cmd=$lt_cv_to_host_file_cmd
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5631$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5632
5633
5634
5635
5636
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5638$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5639if ${lt_cv_to_tool_file_cmd+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  #assume ordinary cross tools, or native build.
5643lt_cv_to_tool_file_cmd=func_convert_file_noop
5644case $host in
5645  *-*-mingw* )
5646    case $build in
5647      *-*-mingw* ) # actually msys
5648        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5649        ;;
5650    esac
5651    ;;
5652esac
5653
5654fi
5655
5656to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5658$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5659
5660
5661
5662
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5665$as_echo_n "checking for $LD option to reload object files... " >&6; }
5666if ${lt_cv_ld_reload_flag+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  lt_cv_ld_reload_flag='-r'
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5672$as_echo "$lt_cv_ld_reload_flag" >&6; }
5673reload_flag=$lt_cv_ld_reload_flag
5674case $reload_flag in
5675"" | " "*) ;;
5676*) reload_flag=" $reload_flag" ;;
5677esac
5678reload_cmds='$LD$reload_flag -o $output$reload_objs'
5679case $host_os in
5680  cygwin* | mingw* | pw32* | cegcc*)
5681    if test yes != "$GCC"; then
5682      reload_cmds=false
5683    fi
5684    ;;
5685  darwin*)
5686    if test yes = "$GCC"; then
5687      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5688    else
5689      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5690    fi
5691    ;;
5692esac
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702if test -n "$ac_tool_prefix"; then
5703  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5704set dummy ${ac_tool_prefix}objdump; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if ${ac_cv_prog_OBJDUMP+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -n "$OBJDUMP"; then
5711  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718    for ac_exec_ext in '' $ac_executable_extensions; do
5719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725  done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730OBJDUMP=$ac_cv_prog_OBJDUMP
5731if test -n "$OBJDUMP"; then
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5733$as_echo "$OBJDUMP" >&6; }
5734else
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740fi
5741if test -z "$ac_cv_prog_OBJDUMP"; then
5742  ac_ct_OBJDUMP=$OBJDUMP
5743  # Extract the first word of "objdump", so it can be a program name with args.
5744set dummy objdump; ac_word=$2
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  if test -n "$ac_ct_OBJDUMP"; then
5751  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756  IFS=$as_save_IFS
5757  test -z "$as_dir" && as_dir=.
5758    for ac_exec_ext in '' $ac_executable_extensions; do
5759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762    break 2
5763  fi
5764done
5765  done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5771if test -n "$ac_ct_OBJDUMP"; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5773$as_echo "$ac_ct_OBJDUMP" >&6; }
5774else
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779  if test "x$ac_ct_OBJDUMP" = x; then
5780    OBJDUMP="false"
5781  else
5782    case $cross_compiling:$ac_tool_warned in
5783yes:)
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786ac_tool_warned=yes ;;
5787esac
5788    OBJDUMP=$ac_ct_OBJDUMP
5789  fi
5790else
5791  OBJDUMP="$ac_cv_prog_OBJDUMP"
5792fi
5793
5794test -z "$OBJDUMP" && OBJDUMP=objdump
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5805$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5806if ${lt_cv_deplibs_check_method+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  lt_cv_file_magic_cmd='$MAGIC_CMD'
5810lt_cv_file_magic_test_file=
5811lt_cv_deplibs_check_method='unknown'
5812# Need to set the preceding variable on all platforms that support
5813# interlibrary dependencies.
5814# 'none' -- dependencies not supported.
5815# 'unknown' -- same as none, but documents that we really don't know.
5816# 'pass_all' -- all dependencies passed with no checks.
5817# 'test_compile' -- check by making test program.
5818# 'file_magic [[regex]]' -- check by looking for files in library path
5819# that responds to the $file_magic_cmd with a given extended regex.
5820# If you have 'file' or equivalent on your system and you're not sure
5821# whether 'pass_all' will *always* work, you probably want this one.
5822
5823case $host_os in
5824aix[4-9]*)
5825  lt_cv_deplibs_check_method=pass_all
5826  ;;
5827
5828beos*)
5829  lt_cv_deplibs_check_method=pass_all
5830  ;;
5831
5832bsdi[45]*)
5833  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5834  lt_cv_file_magic_cmd='/usr/bin/file -L'
5835  lt_cv_file_magic_test_file=/shlib/libc.so
5836  ;;
5837
5838cygwin*)
5839  # func_win32_libid is a shell function defined in ltmain.sh
5840  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5841  lt_cv_file_magic_cmd='func_win32_libid'
5842  ;;
5843
5844mingw* | pw32*)
5845  # Base MSYS/MinGW do not provide the 'file' command needed by
5846  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5847  # unless we find 'file', for example because we are cross-compiling.
5848  if ( file / ) >/dev/null 2>&1; then
5849    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5850    lt_cv_file_magic_cmd='func_win32_libid'
5851  else
5852    # Keep this pattern in sync with the one in func_win32_libid.
5853    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5854    lt_cv_file_magic_cmd='$OBJDUMP -f'
5855  fi
5856  ;;
5857
5858cegcc*)
5859  # use the weaker test based on 'objdump'. See mingw*.
5860  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5861  lt_cv_file_magic_cmd='$OBJDUMP -f'
5862  ;;
5863
5864darwin* | rhapsody*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868freebsd* | dragonfly*)
5869  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5870    case $host_cpu in
5871    i*86 )
5872      # Not sure whether the presence of OpenBSD here was a mistake.
5873      # Let's accept both of them until this is cleared up.
5874      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5875      lt_cv_file_magic_cmd=/usr/bin/file
5876      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5877      ;;
5878    esac
5879  else
5880    lt_cv_deplibs_check_method=pass_all
5881  fi
5882  ;;
5883
5884haiku*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888hpux10.20* | hpux11*)
5889  lt_cv_file_magic_cmd=/usr/bin/file
5890  case $host_cpu in
5891  ia64*)
5892    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5893    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5894    ;;
5895  hppa*64*)
5896    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]'
5897    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5898    ;;
5899  *)
5900    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5901    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5902    ;;
5903  esac
5904  ;;
5905
5906interix[3-9]*)
5907  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5908  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5909  ;;
5910
5911irix5* | irix6* | nonstopux*)
5912  case $LD in
5913  *-32|*"-32 ") libmagic=32-bit;;
5914  *-n32|*"-n32 ") libmagic=N32;;
5915  *-64|*"-64 ") libmagic=64-bit;;
5916  *) libmagic=never-match;;
5917  esac
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921# This must be glibc/ELF.
5922linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5923  lt_cv_deplibs_check_method=pass_all
5924  ;;
5925
5926netbsd*)
5927  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5929  else
5930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5931  fi
5932  ;;
5933
5934newos6*)
5935  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5936  lt_cv_file_magic_cmd=/usr/bin/file
5937  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5938  ;;
5939
5940*nto* | *qnx*)
5941  lt_cv_deplibs_check_method=pass_all
5942  ;;
5943
5944openbsd* | bitrig*)
5945  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5946    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5947  else
5948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949  fi
5950  ;;
5951
5952osf3* | osf4* | osf5*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956rdos*)
5957  lt_cv_deplibs_check_method=pass_all
5958  ;;
5959
5960solaris*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5965  lt_cv_deplibs_check_method=pass_all
5966  ;;
5967
5968sysv4 | sysv4.3*)
5969  case $host_vendor in
5970  motorola)
5971    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]'
5972    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5973    ;;
5974  ncr)
5975    lt_cv_deplibs_check_method=pass_all
5976    ;;
5977  sequent)
5978    lt_cv_file_magic_cmd='/bin/file'
5979    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5980    ;;
5981  sni)
5982    lt_cv_file_magic_cmd='/bin/file'
5983    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5984    lt_cv_file_magic_test_file=/lib/libc.so
5985    ;;
5986  siemens)
5987    lt_cv_deplibs_check_method=pass_all
5988    ;;
5989  pc)
5990    lt_cv_deplibs_check_method=pass_all
5991    ;;
5992  esac
5993  ;;
5994
5995tpf*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998os2*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001esac
6002
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6005$as_echo "$lt_cv_deplibs_check_method" >&6; }
6006
6007file_magic_glob=
6008want_nocaseglob=no
6009if test "$build" = "$host"; then
6010  case $host_os in
6011  mingw* | pw32*)
6012    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6013      want_nocaseglob=yes
6014    else
6015      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6016    fi
6017    ;;
6018  esac
6019fi
6020
6021file_magic_cmd=$lt_cv_file_magic_cmd
6022deplibs_check_method=$lt_cv_deplibs_check_method
6023test -z "$deplibs_check_method" && deplibs_check_method=unknown
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046if test -n "$ac_tool_prefix"; then
6047  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6048set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_prog_DLLTOOL+:} false; then :
6052  $as_echo_n "(cached) " >&6
6053else
6054  if test -n "$DLLTOOL"; then
6055  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060  IFS=$as_save_IFS
6061  test -z "$as_dir" && as_dir=.
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074DLLTOOL=$ac_cv_prog_DLLTOOL
6075if test -n "$DLLTOOL"; then
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6077$as_echo "$DLLTOOL" >&6; }
6078else
6079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084fi
6085if test -z "$ac_cv_prog_DLLTOOL"; then
6086  ac_ct_DLLTOOL=$DLLTOOL
6087  # Extract the first word of "dlltool", so it can be a program name with args.
6088set dummy dlltool; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$ac_ct_DLLTOOL"; then
6095  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6115if test -n "$ac_ct_DLLTOOL"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6117$as_echo "$ac_ct_DLLTOOL" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123  if test "x$ac_ct_DLLTOOL" = x; then
6124    DLLTOOL="false"
6125  else
6126    case $cross_compiling:$ac_tool_warned in
6127yes:)
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130ac_tool_warned=yes ;;
6131esac
6132    DLLTOOL=$ac_ct_DLLTOOL
6133  fi
6134else
6135  DLLTOOL="$ac_cv_prog_DLLTOOL"
6136fi
6137
6138test -z "$DLLTOOL" && DLLTOOL=dlltool
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6150$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6151if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  lt_cv_sharedlib_from_linklib_cmd='unknown'
6155
6156case $host_os in
6157cygwin* | mingw* | pw32* | cegcc*)
6158  # two different shell functions defined in ltmain.sh;
6159  # decide which one to use based on capabilities of $DLLTOOL
6160  case `$DLLTOOL --help 2>&1` in
6161  *--identify-strict*)
6162    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6163    ;;
6164  *)
6165    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6166    ;;
6167  esac
6168  ;;
6169*)
6170  # fallback: assume linklib IS sharedlib
6171  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6172  ;;
6173esac
6174
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6177$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6178sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6179test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6180
6181
6182
6183
6184
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188  for ac_prog in ar
6189  do
6190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if ${ac_cv_prog_AR+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if test -n "$AR"; then
6198  ac_cv_prog_AR="$AR" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217AR=$ac_cv_prog_AR
6218if test -n "$AR"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6220$as_echo "$AR" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227    test -n "$AR" && break
6228  done
6229fi
6230if test -z "$AR"; then
6231  ac_ct_AR=$AR
6232  for ac_prog in ar
6233do
6234  # Extract the first word of "$ac_prog", so it can be a program name with args.
6235set dummy $ac_prog; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if ${ac_cv_prog_ac_ct_AR+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  if test -n "$ac_ct_AR"; then
6242  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247  IFS=$as_save_IFS
6248  test -z "$as_dir" && as_dir=.
6249    for ac_exec_ext in '' $ac_executable_extensions; do
6250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251    ac_cv_prog_ac_ct_AR="$ac_prog"
6252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253    break 2
6254  fi
6255done
6256  done
6257IFS=$as_save_IFS
6258
6259fi
6260fi
6261ac_ct_AR=$ac_cv_prog_ac_ct_AR
6262if test -n "$ac_ct_AR"; then
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6264$as_echo "$ac_ct_AR" >&6; }
6265else
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268fi
6269
6270
6271  test -n "$ac_ct_AR" && break
6272done
6273
6274  if test "x$ac_ct_AR" = x; then
6275    AR="false"
6276  else
6277    case $cross_compiling:$ac_tool_warned in
6278yes:)
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281ac_tool_warned=yes ;;
6282esac
6283    AR=$ac_ct_AR
6284  fi
6285fi
6286
6287: ${AR=ar}
6288: ${AR_FLAGS=cru}
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6301$as_echo_n "checking for archiver @FILE support... " >&6; }
6302if ${lt_cv_ar_at_file+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  lt_cv_ar_at_file=no
6306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h.  */
6308
6309int
6310main ()
6311{
6312
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  echo conftest.$ac_objext > conftest.lst
6319      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6320      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6321  (eval $lt_ar_try) 2>&5
6322  ac_status=$?
6323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324  test $ac_status = 0; }
6325      if test 0 -eq "$ac_status"; then
6326	# Ensure the archiver fails upon bogus file names.
6327	rm -f conftest.$ac_objext libconftest.a
6328	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6329  (eval $lt_ar_try) 2>&5
6330  ac_status=$?
6331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332  test $ac_status = 0; }
6333	if test 0 -ne "$ac_status"; then
6334          lt_cv_ar_at_file=@
6335        fi
6336      fi
6337      rm -f conftest.* libconftest.a
6338
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6344$as_echo "$lt_cv_ar_at_file" >&6; }
6345
6346if test no = "$lt_cv_ar_at_file"; then
6347  archiver_list_spec=
6348else
6349  archiver_list_spec=$lt_cv_ar_at_file
6350fi
6351
6352
6353
6354
6355
6356
6357
6358if test -n "$ac_tool_prefix"; then
6359  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6360set dummy ${ac_tool_prefix}strip; ac_word=$2
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362$as_echo_n "checking for $ac_word... " >&6; }
6363if ${ac_cv_prog_STRIP+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  if test -n "$STRIP"; then
6367  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372  IFS=$as_save_IFS
6373  test -z "$as_dir" && as_dir=.
6374    for ac_exec_ext in '' $ac_executable_extensions; do
6375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378    break 2
6379  fi
6380done
6381  done
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386STRIP=$ac_cv_prog_STRIP
6387if test -n "$STRIP"; then
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6389$as_echo "$STRIP" >&6; }
6390else
6391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392$as_echo "no" >&6; }
6393fi
6394
6395
6396fi
6397if test -z "$ac_cv_prog_STRIP"; then
6398  ac_ct_STRIP=$STRIP
6399  # Extract the first word of "strip", so it can be a program name with args.
6400set dummy strip; ac_word=$2
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402$as_echo_n "checking for $ac_word... " >&6; }
6403if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  if test -n "$ac_ct_STRIP"; then
6407  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6408else
6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412  IFS=$as_save_IFS
6413  test -z "$as_dir" && as_dir=.
6414    for ac_exec_ext in '' $ac_executable_extensions; do
6415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416    ac_cv_prog_ac_ct_STRIP="strip"
6417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418    break 2
6419  fi
6420done
6421  done
6422IFS=$as_save_IFS
6423
6424fi
6425fi
6426ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6427if test -n "$ac_ct_STRIP"; then
6428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6429$as_echo "$ac_ct_STRIP" >&6; }
6430else
6431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432$as_echo "no" >&6; }
6433fi
6434
6435  if test "x$ac_ct_STRIP" = x; then
6436    STRIP=":"
6437  else
6438    case $cross_compiling:$ac_tool_warned in
6439yes:)
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442ac_tool_warned=yes ;;
6443esac
6444    STRIP=$ac_ct_STRIP
6445  fi
6446else
6447  STRIP="$ac_cv_prog_STRIP"
6448fi
6449
6450test -z "$STRIP" && STRIP=:
6451
6452
6453
6454
6455
6456
6457if test -n "$ac_tool_prefix"; then
6458  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6459set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if ${ac_cv_prog_RANLIB+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  if test -n "$RANLIB"; then
6466  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_exec_ext in '' $ac_executable_extensions; do
6474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480  done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485RANLIB=$ac_cv_prog_RANLIB
6486if test -n "$RANLIB"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6488$as_echo "$RANLIB" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495fi
6496if test -z "$ac_cv_prog_RANLIB"; then
6497  ac_ct_RANLIB=$RANLIB
6498  # Extract the first word of "ranlib", so it can be a program name with args.
6499set dummy ranlib; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  if test -n "$ac_ct_RANLIB"; then
6506  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_exec_ext in '' $ac_executable_extensions; do
6514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515    ac_cv_prog_ac_ct_RANLIB="ranlib"
6516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517    break 2
6518  fi
6519done
6520  done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526if test -n "$ac_ct_RANLIB"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6528$as_echo "$ac_ct_RANLIB" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534  if test "x$ac_ct_RANLIB" = x; then
6535    RANLIB=":"
6536  else
6537    case $cross_compiling:$ac_tool_warned in
6538yes:)
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541ac_tool_warned=yes ;;
6542esac
6543    RANLIB=$ac_ct_RANLIB
6544  fi
6545else
6546  RANLIB="$ac_cv_prog_RANLIB"
6547fi
6548
6549test -z "$RANLIB" && RANLIB=:
6550
6551
6552
6553
6554
6555
6556# Determine commands to create old-style static archives.
6557old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6558old_postinstall_cmds='chmod 644 $oldlib'
6559old_postuninstall_cmds=
6560
6561if test -n "$RANLIB"; then
6562  case $host_os in
6563  bitrig* | openbsd*)
6564    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6565    ;;
6566  *)
6567    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6568    ;;
6569  esac
6570  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6571fi
6572
6573case $host_os in
6574  darwin*)
6575    lock_old_archive_extraction=yes ;;
6576  *)
6577    lock_old_archive_extraction=no ;;
6578esac
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
6616
6617
6618# If no C compiler was specified, use CC.
6619LTCC=${LTCC-"$CC"}
6620
6621# If no C compiler flags were specified, use CFLAGS.
6622LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6623
6624# Allow CC to be a program name with arguments.
6625compiler=$CC
6626
6627
6628# Check for command to grab the raw symbol name followed by C symbol from nm.
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6630$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6631if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634
6635# These are sane defaults that work on at least a few old systems.
6636# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6637
6638# Character class describing NM global symbol codes.
6639symcode='[BCDEGRST]'
6640
6641# Regexp to match symbols that can be accessed directly from C.
6642sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6643
6644# Define system-specific variables.
6645case $host_os in
6646aix*)
6647  symcode='[BCDT]'
6648  ;;
6649cygwin* | mingw* | pw32* | cegcc*)
6650  symcode='[ABCDGISTW]'
6651  ;;
6652hpux*)
6653  if test ia64 = "$host_cpu"; then
6654    symcode='[ABCDEGRST]'
6655  fi
6656  ;;
6657irix* | nonstopux*)
6658  symcode='[BCDEGRST]'
6659  ;;
6660osf*)
6661  symcode='[BCDEGQRST]'
6662  ;;
6663solaris*)
6664  symcode='[BDRT]'
6665  ;;
6666sco3.2v5*)
6667  symcode='[DT]'
6668  ;;
6669sysv4.2uw2*)
6670  symcode='[DT]'
6671  ;;
6672sysv5* | sco5v6* | unixware* | OpenUNIX*)
6673  symcode='[ABDT]'
6674  ;;
6675sysv4)
6676  symcode='[DFNSTU]'
6677  ;;
6678esac
6679
6680# If we're using GNU nm, then use its standard symbol codes.
6681case `$NM -V 2>&1` in
6682*GNU* | *'with BFD'*)
6683  symcode='[ABCDGIRSTW]' ;;
6684esac
6685
6686if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6687  # Gets list of data symbols to import.
6688  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6689  # Adjust the below global symbol transforms to fixup imported variables.
6690  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6691  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6692  lt_c_name_lib_hook="\
6693  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6694  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6695else
6696  # Disable hooks by default.
6697  lt_cv_sys_global_symbol_to_import=
6698  lt_cdecl_hook=
6699  lt_c_name_hook=
6700  lt_c_name_lib_hook=
6701fi
6702
6703# Transform an extracted symbol line into a proper C declaration.
6704# Some systems (esp. on ia64) link data and code symbols differently,
6705# so use this general approach.
6706lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6707$lt_cdecl_hook\
6708" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6709" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6710
6711# Transform an extracted symbol line into symbol name and symbol address
6712lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6713$lt_c_name_hook\
6714" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6715" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6716
6717# Transform an extracted symbol line into symbol name with lib prefix and
6718# symbol address.
6719lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6720$lt_c_name_lib_hook\
6721" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6722" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6723" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6724
6725# Handle CRLF in mingw tool chain
6726opt_cr=
6727case $build_os in
6728mingw*)
6729  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6730  ;;
6731esac
6732
6733# Try without a prefix underscore, then with it.
6734for ac_symprfx in "" "_"; do
6735
6736  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6737  symxfrm="\\1 $ac_symprfx\\2 \\2"
6738
6739  # Write the raw and C identifiers.
6740  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6741    # Fake it for dumpbin and say T for any non-static function,
6742    # D for any global variable and I for any imported variable.
6743    # Also find C++ and __fastcall symbols from MSVC++,
6744    # which start with @ or ?.
6745    lt_cv_sys_global_symbol_pipe="$AWK '"\
6746"     {last_section=section; section=\$ 3};"\
6747"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6748"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6749"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6750"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6751"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6752"     \$ 0!~/External *\|/{next};"\
6753"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6754"     {if(hide[section]) next};"\
6755"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6756"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6757"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6758"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6759"     ' prfx=^$ac_symprfx"
6760  else
6761    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6762  fi
6763  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6764
6765  # Check to see that the pipe works correctly.
6766  pipe_works=no
6767
6768  rm -f conftest*
6769  cat > conftest.$ac_ext <<_LT_EOF
6770#ifdef __cplusplus
6771extern "C" {
6772#endif
6773char nm_test_var;
6774void nm_test_func(void);
6775void nm_test_func(void){}
6776#ifdef __cplusplus
6777}
6778#endif
6779int main(){nm_test_var='a';nm_test_func();return(0);}
6780_LT_EOF
6781
6782  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783  (eval $ac_compile) 2>&5
6784  ac_status=$?
6785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786  test $ac_status = 0; }; then
6787    # Now try to grab the symbols.
6788    nlist=conftest.nm
6789    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6790  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6791  ac_status=$?
6792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793  test $ac_status = 0; } && test -s "$nlist"; then
6794      # Try sorting and uniquifying the output.
6795      if sort "$nlist" | uniq > "$nlist"T; then
6796	mv -f "$nlist"T "$nlist"
6797      else
6798	rm -f "$nlist"T
6799      fi
6800
6801      # Make sure that we snagged all the symbols we need.
6802      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6803	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6804	  cat <<_LT_EOF > conftest.$ac_ext
6805/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6806#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6807/* DATA imports from DLLs on WIN32 can't be const, because runtime
6808   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6809# define LT_DLSYM_CONST
6810#elif defined __osf__
6811/* This system does not cope well with relocations in const data.  */
6812# define LT_DLSYM_CONST
6813#else
6814# define LT_DLSYM_CONST const
6815#endif
6816
6817#ifdef __cplusplus
6818extern "C" {
6819#endif
6820
6821_LT_EOF
6822	  # Now generate the symbol file.
6823	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6824
6825	  cat <<_LT_EOF >> conftest.$ac_ext
6826
6827/* The mapping between symbol names and symbols.  */
6828LT_DLSYM_CONST struct {
6829  const char *name;
6830  void       *address;
6831}
6832lt__PROGRAM__LTX_preloaded_symbols[] =
6833{
6834  { "@PROGRAM@", (void *) 0 },
6835_LT_EOF
6836	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6837	  cat <<\_LT_EOF >> conftest.$ac_ext
6838  {0, (void *) 0}
6839};
6840
6841/* This works around a problem in FreeBSD linker */
6842#ifdef FREEBSD_WORKAROUND
6843static const void *lt_preloaded_setup() {
6844  return lt__PROGRAM__LTX_preloaded_symbols;
6845}
6846#endif
6847
6848#ifdef __cplusplus
6849}
6850#endif
6851_LT_EOF
6852	  # Now try linking the two files.
6853	  mv conftest.$ac_objext conftstm.$ac_objext
6854	  lt_globsym_save_LIBS=$LIBS
6855	  lt_globsym_save_CFLAGS=$CFLAGS
6856	  LIBS=conftstm.$ac_objext
6857	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6858	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6859  (eval $ac_link) 2>&5
6860  ac_status=$?
6861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6863	    pipe_works=yes
6864	  fi
6865	  LIBS=$lt_globsym_save_LIBS
6866	  CFLAGS=$lt_globsym_save_CFLAGS
6867	else
6868	  echo "cannot find nm_test_func in $nlist" >&5
6869	fi
6870      else
6871	echo "cannot find nm_test_var in $nlist" >&5
6872      fi
6873    else
6874      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6875    fi
6876  else
6877    echo "$progname: failed program was:" >&5
6878    cat conftest.$ac_ext >&5
6879  fi
6880  rm -rf conftest* conftst*
6881
6882  # Do not use the global_symbol_pipe unless it works.
6883  if test yes = "$pipe_works"; then
6884    break
6885  else
6886    lt_cv_sys_global_symbol_pipe=
6887  fi
6888done
6889
6890fi
6891
6892if test -z "$lt_cv_sys_global_symbol_pipe"; then
6893  lt_cv_sys_global_symbol_to_cdecl=
6894fi
6895if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6897$as_echo "failed" >&6; }
6898else
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6900$as_echo "ok" >&6; }
6901fi
6902
6903# Response file support.
6904if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6905  nm_file_list_spec='@'
6906elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6907  nm_file_list_spec='@'
6908fi
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
6944
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6947$as_echo_n "checking for sysroot... " >&6; }
6948
6949# Check whether --with-sysroot was given.
6950if test "${with_sysroot+set}" = set; then :
6951  withval=$with_sysroot;
6952else
6953  with_sysroot=no
6954fi
6955
6956
6957lt_sysroot=
6958case $with_sysroot in #(
6959 yes)
6960   if test yes = "$GCC"; then
6961     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6962   fi
6963   ;; #(
6964 /*)
6965   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6966   ;; #(
6967 no|'')
6968   ;; #(
6969 *)
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6971$as_echo "$with_sysroot" >&6; }
6972   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6973   ;;
6974esac
6975
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6977$as_echo "${lt_sysroot:-no}" >&6; }
6978
6979
6980
6981
6982
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6984$as_echo_n "checking for a working dd... " >&6; }
6985if ${ac_cv_path_lt_DD+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  printf 0123456789abcdef0123456789abcdef >conftest.i
6989cat conftest.i conftest.i >conftest2.i
6990: ${lt_DD:=$DD}
6991if test -z "$lt_DD"; then
6992  ac_path_lt_DD_found=false
6993  # Loop through the user's path and test for each of PROGNAME-LIST
6994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997  IFS=$as_save_IFS
6998  test -z "$as_dir" && as_dir=.
6999    for ac_prog in dd; do
7000    for ac_exec_ext in '' $ac_executable_extensions; do
7001      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7002      as_fn_executable_p "$ac_path_lt_DD" || continue
7003if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7004  cmp -s conftest.i conftest.out \
7005  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7006fi
7007      $ac_path_lt_DD_found && break 3
7008    done
7009  done
7010  done
7011IFS=$as_save_IFS
7012  if test -z "$ac_cv_path_lt_DD"; then
7013    :
7014  fi
7015else
7016  ac_cv_path_lt_DD=$lt_DD
7017fi
7018
7019rm -f conftest.i conftest2.i conftest.out
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7022$as_echo "$ac_cv_path_lt_DD" >&6; }
7023
7024
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7026$as_echo_n "checking how to truncate binary pipes... " >&6; }
7027if ${lt_cv_truncate_bin+:} false; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  printf 0123456789abcdef0123456789abcdef >conftest.i
7031cat conftest.i conftest.i >conftest2.i
7032lt_cv_truncate_bin=
7033if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7034  cmp -s conftest.i conftest.out \
7035  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7036fi
7037rm -f conftest.i conftest2.i conftest.out
7038test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7039fi
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7041$as_echo "$lt_cv_truncate_bin" >&6; }
7042
7043
7044
7045
7046
7047
7048
7049# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7050func_cc_basename ()
7051{
7052    for cc_temp in $*""; do
7053      case $cc_temp in
7054        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7055        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7056        \-*) ;;
7057        *) break;;
7058      esac
7059    done
7060    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7061}
7062
7063# Check whether --enable-libtool-lock was given.
7064if test "${enable_libtool_lock+set}" = set; then :
7065  enableval=$enable_libtool_lock;
7066fi
7067
7068test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7069
7070# Some flags need to be propagated to the compiler or linker for good
7071# libtool support.
7072case $host in
7073ia64-*-hpux*)
7074  # Find out what ABI is being produced by ac_compile, and set mode
7075  # options accordingly.
7076  echo 'int i;' > conftest.$ac_ext
7077  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7078  (eval $ac_compile) 2>&5
7079  ac_status=$?
7080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7081  test $ac_status = 0; }; then
7082    case `/usr/bin/file conftest.$ac_objext` in
7083      *ELF-32*)
7084	HPUX_IA64_MODE=32
7085	;;
7086      *ELF-64*)
7087	HPUX_IA64_MODE=64
7088	;;
7089    esac
7090  fi
7091  rm -rf conftest*
7092  ;;
7093*-*-irix6*)
7094  # Find out what ABI is being produced by ac_compile, and set linker
7095  # options accordingly.
7096  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7097  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098  (eval $ac_compile) 2>&5
7099  ac_status=$?
7100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101  test $ac_status = 0; }; then
7102    if test yes = "$lt_cv_prog_gnu_ld"; then
7103      case `/usr/bin/file conftest.$ac_objext` in
7104	*32-bit*)
7105	  LD="${LD-ld} -melf32bsmip"
7106	  ;;
7107	*N32*)
7108	  LD="${LD-ld} -melf32bmipn32"
7109	  ;;
7110	*64-bit*)
7111	  LD="${LD-ld} -melf64bmip"
7112	;;
7113      esac
7114    else
7115      case `/usr/bin/file conftest.$ac_objext` in
7116	*32-bit*)
7117	  LD="${LD-ld} -32"
7118	  ;;
7119	*N32*)
7120	  LD="${LD-ld} -n32"
7121	  ;;
7122	*64-bit*)
7123	  LD="${LD-ld} -64"
7124	  ;;
7125      esac
7126    fi
7127  fi
7128  rm -rf conftest*
7129  ;;
7130
7131mips64*-*linux*)
7132  # Find out what ABI is being produced by ac_compile, and set linker
7133  # options accordingly.
7134  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136  (eval $ac_compile) 2>&5
7137  ac_status=$?
7138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139  test $ac_status = 0; }; then
7140    emul=elf
7141    case `/usr/bin/file conftest.$ac_objext` in
7142      *32-bit*)
7143	emul="${emul}32"
7144	;;
7145      *64-bit*)
7146	emul="${emul}64"
7147	;;
7148    esac
7149    case `/usr/bin/file conftest.$ac_objext` in
7150      *MSB*)
7151	emul="${emul}btsmip"
7152	;;
7153      *LSB*)
7154	emul="${emul}ltsmip"
7155	;;
7156    esac
7157    case `/usr/bin/file conftest.$ac_objext` in
7158      *N32*)
7159	emul="${emul}n32"
7160	;;
7161    esac
7162    LD="${LD-ld} -m $emul"
7163  fi
7164  rm -rf conftest*
7165  ;;
7166
7167x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7168s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7169  # Find out what ABI is being produced by ac_compile, and set linker
7170  # options accordingly.  Note that the listed cases only cover the
7171  # situations where additional linker options are needed (such as when
7172  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7173  # vice versa); the common cases where no linker options are needed do
7174  # not appear in the list.
7175  echo 'int i;' > conftest.$ac_ext
7176  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7177  (eval $ac_compile) 2>&5
7178  ac_status=$?
7179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7180  test $ac_status = 0; }; then
7181    case `/usr/bin/file conftest.o` in
7182      *32-bit*)
7183	case $host in
7184	  x86_64-*kfreebsd*-gnu)
7185	    LD="${LD-ld} -m elf_i386_fbsd"
7186	    ;;
7187	  x86_64-*linux*)
7188	    case `/usr/bin/file conftest.o` in
7189	      *x86-64*)
7190		LD="${LD-ld} -m elf32_x86_64"
7191		;;
7192	      *)
7193		LD="${LD-ld} -m elf_i386"
7194		;;
7195	    esac
7196	    ;;
7197	  powerpc64le-*linux*)
7198	    LD="${LD-ld} -m elf32lppclinux"
7199	    ;;
7200	  powerpc64-*linux*)
7201	    LD="${LD-ld} -m elf32ppclinux"
7202	    ;;
7203	  s390x-*linux*)
7204	    LD="${LD-ld} -m elf_s390"
7205	    ;;
7206	  sparc64-*linux*)
7207	    LD="${LD-ld} -m elf32_sparc"
7208	    ;;
7209	esac
7210	;;
7211      *64-bit*)
7212	case $host in
7213	  x86_64-*kfreebsd*-gnu)
7214	    LD="${LD-ld} -m elf_x86_64_fbsd"
7215	    ;;
7216	  x86_64-*linux*)
7217	    LD="${LD-ld} -m elf_x86_64"
7218	    ;;
7219	  powerpcle-*linux*)
7220	    LD="${LD-ld} -m elf64lppc"
7221	    ;;
7222	  powerpc-*linux*)
7223	    LD="${LD-ld} -m elf64ppc"
7224	    ;;
7225	  s390*-*linux*|s390*-*tpf*)
7226	    LD="${LD-ld} -m elf64_s390"
7227	    ;;
7228	  sparc*-*linux*)
7229	    LD="${LD-ld} -m elf64_sparc"
7230	    ;;
7231	esac
7232	;;
7233    esac
7234  fi
7235  rm -rf conftest*
7236  ;;
7237
7238*-*-sco3.2v5*)
7239  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7240  SAVE_CFLAGS=$CFLAGS
7241  CFLAGS="$CFLAGS -belf"
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7243$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7244if ${lt_cv_cc_needs_belf+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255
7256int
7257main ()
7258{
7259
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264if ac_fn_c_try_link "$LINENO"; then :
7265  lt_cv_cc_needs_belf=yes
7266else
7267  lt_cv_cc_needs_belf=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext \
7270    conftest$ac_exeext conftest.$ac_ext
7271     ac_ext=c
7272ac_cpp='$CPP $CPPFLAGS'
7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7279$as_echo "$lt_cv_cc_needs_belf" >&6; }
7280  if test yes != "$lt_cv_cc_needs_belf"; then
7281    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7282    CFLAGS=$SAVE_CFLAGS
7283  fi
7284  ;;
7285*-*solaris*)
7286  # Find out what ABI is being produced by ac_compile, and set linker
7287  # options accordingly.
7288  echo 'int i;' > conftest.$ac_ext
7289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290  (eval $ac_compile) 2>&5
7291  ac_status=$?
7292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293  test $ac_status = 0; }; then
7294    case `/usr/bin/file conftest.o` in
7295    *64-bit*)
7296      case $lt_cv_prog_gnu_ld in
7297      yes*)
7298        case $host in
7299        i?86-*-solaris*|x86_64-*-solaris*)
7300          LD="${LD-ld} -m elf_x86_64"
7301          ;;
7302        sparc*-*-solaris*)
7303          LD="${LD-ld} -m elf64_sparc"
7304          ;;
7305        esac
7306        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7307        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7308          LD=${LD-ld}_sol2
7309        fi
7310        ;;
7311      *)
7312	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313	  LD="${LD-ld} -64"
7314	fi
7315	;;
7316      esac
7317      ;;
7318    esac
7319  fi
7320  rm -rf conftest*
7321  ;;
7322esac
7323
7324need_locks=$enable_libtool_lock
7325
7326if test -n "$ac_tool_prefix"; then
7327  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}mt; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  if test -n "$MANIFEST_TOOL"; then
7335  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342    for ac_exec_ext in '' $ac_executable_extensions; do
7343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349  done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7355if test -n "$MANIFEST_TOOL"; then
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7357$as_echo "$MANIFEST_TOOL" >&6; }
7358else
7359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363
7364fi
7365if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7366  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7367  # Extract the first word of "mt", so it can be a program name with args.
7368set dummy mt; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  if test -n "$ac_ct_MANIFEST_TOOL"; then
7375  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  test -z "$as_dir" && as_dir=.
7382    for ac_exec_ext in '' $ac_executable_extensions; do
7383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386    break 2
7387  fi
7388done
7389  done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7395if test -n "$ac_ct_MANIFEST_TOOL"; then
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7397$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7398else
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7404    MANIFEST_TOOL=":"
7405  else
7406    case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7413  fi
7414else
7415  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7416fi
7417
7418test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7420$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7421if ${lt_cv_path_mainfest_tool+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  lt_cv_path_mainfest_tool=no
7425  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7426  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7427  cat conftest.err >&5
7428  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7429    lt_cv_path_mainfest_tool=yes
7430  fi
7431  rm -f conftest*
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7434$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7435if test yes != "$lt_cv_path_mainfest_tool"; then
7436  MANIFEST_TOOL=:
7437fi
7438
7439
7440
7441
7442
7443
7444  case $host_os in
7445    rhapsody* | darwin*)
7446    if test -n "$ac_tool_prefix"; then
7447  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7448set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450$as_echo_n "checking for $ac_word... " >&6; }
7451if ${ac_cv_prog_DSYMUTIL+:} false; then :
7452  $as_echo_n "(cached) " >&6
7453else
7454  if test -n "$DSYMUTIL"; then
7455  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460  IFS=$as_save_IFS
7461  test -z "$as_dir" && as_dir=.
7462    for ac_exec_ext in '' $ac_executable_extensions; do
7463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466    break 2
7467  fi
7468done
7469  done
7470IFS=$as_save_IFS
7471
7472fi
7473fi
7474DSYMUTIL=$ac_cv_prog_DSYMUTIL
7475if test -n "$DSYMUTIL"; then
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7477$as_echo "$DSYMUTIL" >&6; }
7478else
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
7481fi
7482
7483
7484fi
7485if test -z "$ac_cv_prog_DSYMUTIL"; then
7486  ac_ct_DSYMUTIL=$DSYMUTIL
7487  # Extract the first word of "dsymutil", so it can be a program name with args.
7488set dummy dsymutil; ac_word=$2
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
7491if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  if test -n "$ac_ct_DSYMUTIL"; then
7495  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502    for ac_exec_ext in '' $ac_executable_extensions; do
7503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509  done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7515if test -n "$ac_ct_DSYMUTIL"; then
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7517$as_echo "$ac_ct_DSYMUTIL" >&6; }
7518else
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523  if test "x$ac_ct_DSYMUTIL" = x; then
7524    DSYMUTIL=":"
7525  else
7526    case $cross_compiling:$ac_tool_warned in
7527yes:)
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530ac_tool_warned=yes ;;
7531esac
7532    DSYMUTIL=$ac_ct_DSYMUTIL
7533  fi
7534else
7535  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7536fi
7537
7538    if test -n "$ac_tool_prefix"; then
7539  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7540set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if ${ac_cv_prog_NMEDIT+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  if test -n "$NMEDIT"; then
7547  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552  IFS=$as_save_IFS
7553  test -z "$as_dir" && as_dir=.
7554    for ac_exec_ext in '' $ac_executable_extensions; do
7555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558    break 2
7559  fi
7560done
7561  done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566NMEDIT=$ac_cv_prog_NMEDIT
7567if test -n "$NMEDIT"; then
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7569$as_echo "$NMEDIT" >&6; }
7570else
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574
7575
7576fi
7577if test -z "$ac_cv_prog_NMEDIT"; then
7578  ac_ct_NMEDIT=$NMEDIT
7579  # Extract the first word of "nmedit", so it can be a program name with args.
7580set dummy nmedit; ac_word=$2
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
7583if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  if test -n "$ac_ct_NMEDIT"; then
7587  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594    for ac_exec_ext in '' $ac_executable_extensions; do
7595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601  done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7607if test -n "$ac_ct_NMEDIT"; then
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7609$as_echo "$ac_ct_NMEDIT" >&6; }
7610else
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615  if test "x$ac_ct_NMEDIT" = x; then
7616    NMEDIT=":"
7617  else
7618    case $cross_compiling:$ac_tool_warned in
7619yes:)
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622ac_tool_warned=yes ;;
7623esac
7624    NMEDIT=$ac_ct_NMEDIT
7625  fi
7626else
7627  NMEDIT="$ac_cv_prog_NMEDIT"
7628fi
7629
7630    if test -n "$ac_tool_prefix"; then
7631  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7632set dummy ${ac_tool_prefix}lipo; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if ${ac_cv_prog_LIPO+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -n "$LIPO"; then
7639  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646    for ac_exec_ext in '' $ac_executable_extensions; do
7647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653  done
7654IFS=$as_save_IFS
7655
7656fi
7657fi
7658LIPO=$ac_cv_prog_LIPO
7659if test -n "$LIPO"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7661$as_echo "$LIPO" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668fi
7669if test -z "$ac_cv_prog_LIPO"; then
7670  ac_ct_LIPO=$LIPO
7671  # Extract the first word of "lipo", so it can be a program name with args.
7672set dummy lipo; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
7675if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  if test -n "$ac_ct_LIPO"; then
7679  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686    for ac_exec_ext in '' $ac_executable_extensions; do
7687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688    ac_cv_prog_ac_ct_LIPO="lipo"
7689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693  done
7694IFS=$as_save_IFS
7695
7696fi
7697fi
7698ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7699if test -n "$ac_ct_LIPO"; then
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7701$as_echo "$ac_ct_LIPO" >&6; }
7702else
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705fi
7706
7707  if test "x$ac_ct_LIPO" = x; then
7708    LIPO=":"
7709  else
7710    case $cross_compiling:$ac_tool_warned in
7711yes:)
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714ac_tool_warned=yes ;;
7715esac
7716    LIPO=$ac_ct_LIPO
7717  fi
7718else
7719  LIPO="$ac_cv_prog_LIPO"
7720fi
7721
7722    if test -n "$ac_tool_prefix"; then
7723  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7724set dummy ${ac_tool_prefix}otool; ac_word=$2
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if ${ac_cv_prog_OTOOL+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  if test -n "$OTOOL"; then
7731  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736  IFS=$as_save_IFS
7737  test -z "$as_dir" && as_dir=.
7738    for ac_exec_ext in '' $ac_executable_extensions; do
7739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742    break 2
7743  fi
7744done
7745  done
7746IFS=$as_save_IFS
7747
7748fi
7749fi
7750OTOOL=$ac_cv_prog_OTOOL
7751if test -n "$OTOOL"; then
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7753$as_echo "$OTOOL" >&6; }
7754else
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759
7760fi
7761if test -z "$ac_cv_prog_OTOOL"; then
7762  ac_ct_OTOOL=$OTOOL
7763  # Extract the first word of "otool", so it can be a program name with args.
7764set dummy otool; ac_word=$2
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  if test -n "$ac_ct_OTOOL"; then
7771  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7772else
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776  IFS=$as_save_IFS
7777  test -z "$as_dir" && as_dir=.
7778    for ac_exec_ext in '' $ac_executable_extensions; do
7779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780    ac_cv_prog_ac_ct_OTOOL="otool"
7781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782    break 2
7783  fi
7784done
7785  done
7786IFS=$as_save_IFS
7787
7788fi
7789fi
7790ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7791if test -n "$ac_ct_OTOOL"; then
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7793$as_echo "$ac_ct_OTOOL" >&6; }
7794else
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
7797fi
7798
7799  if test "x$ac_ct_OTOOL" = x; then
7800    OTOOL=":"
7801  else
7802    case $cross_compiling:$ac_tool_warned in
7803yes:)
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806ac_tool_warned=yes ;;
7807esac
7808    OTOOL=$ac_ct_OTOOL
7809  fi
7810else
7811  OTOOL="$ac_cv_prog_OTOOL"
7812fi
7813
7814    if test -n "$ac_tool_prefix"; then
7815  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7816set dummy ${ac_tool_prefix}otool64; ac_word=$2
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818$as_echo_n "checking for $ac_word... " >&6; }
7819if ${ac_cv_prog_OTOOL64+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  if test -n "$OTOOL64"; then
7823  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7824else
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828  IFS=$as_save_IFS
7829  test -z "$as_dir" && as_dir=.
7830    for ac_exec_ext in '' $ac_executable_extensions; do
7831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837  done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842OTOOL64=$ac_cv_prog_OTOOL64
7843if test -n "$OTOOL64"; then
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7845$as_echo "$OTOOL64" >&6; }
7846else
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848$as_echo "no" >&6; }
7849fi
7850
7851
7852fi
7853if test -z "$ac_cv_prog_OTOOL64"; then
7854  ac_ct_OTOOL64=$OTOOL64
7855  # Extract the first word of "otool64", so it can be a program name with args.
7856set dummy otool64; ac_word=$2
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858$as_echo_n "checking for $ac_word... " >&6; }
7859if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  if test -n "$ac_ct_OTOOL64"; then
7863  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868  IFS=$as_save_IFS
7869  test -z "$as_dir" && as_dir=.
7870    for ac_exec_ext in '' $ac_executable_extensions; do
7871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872    ac_cv_prog_ac_ct_OTOOL64="otool64"
7873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874    break 2
7875  fi
7876done
7877  done
7878IFS=$as_save_IFS
7879
7880fi
7881fi
7882ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7883if test -n "$ac_ct_OTOOL64"; then
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7885$as_echo "$ac_ct_OTOOL64" >&6; }
7886else
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891  if test "x$ac_ct_OTOOL64" = x; then
7892    OTOOL64=":"
7893  else
7894    case $cross_compiling:$ac_tool_warned in
7895yes:)
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898ac_tool_warned=yes ;;
7899esac
7900    OTOOL64=$ac_ct_OTOOL64
7901  fi
7902else
7903  OTOOL64="$ac_cv_prog_OTOOL64"
7904fi
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
7930
7931
7932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7933$as_echo_n "checking for -single_module linker flag... " >&6; }
7934if ${lt_cv_apple_cc_single_mod+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  lt_cv_apple_cc_single_mod=no
7938      if test -z "$LT_MULTI_MODULE"; then
7939	# By default we will add the -single_module flag. You can override
7940	# by either setting the environment variable LT_MULTI_MODULE
7941	# non-empty at configure time, or by adding -multi_module to the
7942	# link flags.
7943	rm -rf libconftest.dylib*
7944	echo "int foo(void){return 1;}" > conftest.c
7945	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7946-dynamiclib -Wl,-single_module conftest.c" >&5
7947	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7948	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7949        _lt_result=$?
7950	# If there is a non-empty error log, and "single_module"
7951	# appears in it, assume the flag caused a linker warning
7952        if test -s conftest.err && $GREP single_module conftest.err; then
7953	  cat conftest.err >&5
7954	# Otherwise, if the output was created with a 0 exit code from
7955	# the compiler, it worked.
7956	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7957	  lt_cv_apple_cc_single_mod=yes
7958	else
7959	  cat conftest.err >&5
7960	fi
7961	rm -rf libconftest.dylib*
7962	rm -f conftest.*
7963      fi
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7966$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7967
7968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7969$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7970if ${lt_cv_ld_exported_symbols_list+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_ld_exported_symbols_list=no
7974      save_LDFLAGS=$LDFLAGS
7975      echo "_main" > conftest.sym
7976      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979
7980int
7981main ()
7982{
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988if ac_fn_c_try_link "$LINENO"; then :
7989  lt_cv_ld_exported_symbols_list=yes
7990else
7991  lt_cv_ld_exported_symbols_list=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext \
7994    conftest$ac_exeext conftest.$ac_ext
7995	LDFLAGS=$save_LDFLAGS
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7999$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8000
8001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8002$as_echo_n "checking for -force_load linker flag... " >&6; }
8003if ${lt_cv_ld_force_load+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  lt_cv_ld_force_load=no
8007      cat > conftest.c << _LT_EOF
8008int forced_loaded() { return 2;}
8009_LT_EOF
8010      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8011      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8012      echo "$AR cru libconftest.a conftest.o" >&5
8013      $AR cru libconftest.a conftest.o 2>&5
8014      echo "$RANLIB libconftest.a" >&5
8015      $RANLIB libconftest.a 2>&5
8016      cat > conftest.c << _LT_EOF
8017int main() { return 0;}
8018_LT_EOF
8019      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8020      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8021      _lt_result=$?
8022      if test -s conftest.err && $GREP force_load conftest.err; then
8023	cat conftest.err >&5
8024      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8025	lt_cv_ld_force_load=yes
8026      else
8027	cat conftest.err >&5
8028      fi
8029        rm -f conftest.err libconftest.a conftest conftest.c
8030        rm -rf conftest.dSYM
8031
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8034$as_echo "$lt_cv_ld_force_load" >&6; }
8035    case $host_os in
8036    rhapsody* | darwin1.[012])
8037      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8038    darwin1.*)
8039      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8040    darwin*) # darwin 5.x on
8041      # if running on 10.5 or later, the deployment target defaults
8042      # to the OS version, if on x86, and 10.4, the deployment
8043      # target defaults to 10.4. Don't you love it?
8044      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8045	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8046	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8047	10.[012][,.]*)
8048	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049	10.*)
8050	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8051      esac
8052    ;;
8053  esac
8054    if test yes = "$lt_cv_apple_cc_single_mod"; then
8055      _lt_dar_single_mod='$single_module'
8056    fi
8057    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8058      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8059    else
8060      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8061    fi
8062    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8063      _lt_dsymutil='~$DSYMUTIL $lib || :'
8064    else
8065      _lt_dsymutil=
8066    fi
8067    ;;
8068  esac
8069
8070# func_munge_path_list VARIABLE PATH
8071# -----------------------------------
8072# VARIABLE is name of variable containing _space_ separated list of
8073# directories to be munged by the contents of PATH, which is string
8074# having a format:
8075# "DIR[:DIR]:"
8076#       string "DIR[ DIR]" will be prepended to VARIABLE
8077# ":DIR[:DIR]"
8078#       string "DIR[ DIR]" will be appended to VARIABLE
8079# "DIRP[:DIRP]::[DIRA:]DIRA"
8080#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8081#       "DIRA[ DIRA]" will be appended to VARIABLE
8082# "DIR[:DIR]"
8083#       VARIABLE will be replaced by "DIR[ DIR]"
8084func_munge_path_list ()
8085{
8086    case x$2 in
8087    x)
8088        ;;
8089    *:)
8090        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8091        ;;
8092    x:*)
8093        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8094        ;;
8095    *::*)
8096        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8097        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8098        ;;
8099    *)
8100        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8101        ;;
8102    esac
8103}
8104
8105for ac_header in dlfcn.h
8106do :
8107  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8108"
8109if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8110  cat >>confdefs.h <<_ACEOF
8111#define HAVE_DLFCN_H 1
8112_ACEOF
8113
8114fi
8115
8116done
8117
8118
8119
8120
8121
8122# Set options
8123
8124
8125
8126        enable_dlopen=no
8127
8128
8129  enable_win32_dll=no
8130
8131
8132            # Check whether --enable-shared was given.
8133if test "${enable_shared+set}" = set; then :
8134  enableval=$enable_shared; p=${PACKAGE-default}
8135    case $enableval in
8136    yes) enable_shared=yes ;;
8137    no) enable_shared=no ;;
8138    *)
8139      enable_shared=no
8140      # Look at the argument we got.  We use all the common list separators.
8141      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8142      for pkg in $enableval; do
8143	IFS=$lt_save_ifs
8144	if test "X$pkg" = "X$p"; then
8145	  enable_shared=yes
8146	fi
8147      done
8148      IFS=$lt_save_ifs
8149      ;;
8150    esac
8151else
8152  enable_shared=yes
8153fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163  # Check whether --enable-static was given.
8164if test "${enable_static+set}" = set; then :
8165  enableval=$enable_static; p=${PACKAGE-default}
8166    case $enableval in
8167    yes) enable_static=yes ;;
8168    no) enable_static=no ;;
8169    *)
8170     enable_static=no
8171      # Look at the argument we got.  We use all the common list separators.
8172      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8173      for pkg in $enableval; do
8174	IFS=$lt_save_ifs
8175	if test "X$pkg" = "X$p"; then
8176	  enable_static=yes
8177	fi
8178      done
8179      IFS=$lt_save_ifs
8180      ;;
8181    esac
8182else
8183  enable_static=yes
8184fi
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195# Check whether --with-pic was given.
8196if test "${with_pic+set}" = set; then :
8197  withval=$with_pic; lt_p=${PACKAGE-default}
8198    case $withval in
8199    yes|no) pic_mode=$withval ;;
8200    *)
8201      pic_mode=default
8202      # Look at the argument we got.  We use all the common list separators.
8203      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8204      for lt_pkg in $withval; do
8205	IFS=$lt_save_ifs
8206	if test "X$lt_pkg" = "X$lt_p"; then
8207	  pic_mode=yes
8208	fi
8209      done
8210      IFS=$lt_save_ifs
8211      ;;
8212    esac
8213else
8214  pic_mode=default
8215fi
8216
8217
8218
8219
8220
8221
8222
8223
8224  # Check whether --enable-fast-install was given.
8225if test "${enable_fast_install+set}" = set; then :
8226  enableval=$enable_fast_install; p=${PACKAGE-default}
8227    case $enableval in
8228    yes) enable_fast_install=yes ;;
8229    no) enable_fast_install=no ;;
8230    *)
8231      enable_fast_install=no
8232      # Look at the argument we got.  We use all the common list separators.
8233      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8234      for pkg in $enableval; do
8235	IFS=$lt_save_ifs
8236	if test "X$pkg" = "X$p"; then
8237	  enable_fast_install=yes
8238	fi
8239      done
8240      IFS=$lt_save_ifs
8241      ;;
8242    esac
8243else
8244  enable_fast_install=yes
8245fi
8246
8247
8248
8249
8250
8251
8252
8253
8254  shared_archive_member_spec=
8255case $host,$enable_shared in
8256power*-*-aix[5-9]*,yes)
8257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8258$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8259
8260# Check whether --with-aix-soname was given.
8261if test "${with_aix_soname+set}" = set; then :
8262  withval=$with_aix_soname; case $withval in
8263    aix|svr4|both)
8264      ;;
8265    *)
8266      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8267      ;;
8268    esac
8269    lt_cv_with_aix_soname=$with_aix_soname
8270else
8271  if ${lt_cv_with_aix_soname+:} false; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274  lt_cv_with_aix_soname=aix
8275fi
8276
8277    with_aix_soname=$lt_cv_with_aix_soname
8278fi
8279
8280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8281$as_echo "$with_aix_soname" >&6; }
8282  if test aix != "$with_aix_soname"; then
8283    # For the AIX way of multilib, we name the shared archive member
8284    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8285    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8286    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8287    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8288    if test 64 = "${OBJECT_MODE-32}"; then
8289      shared_archive_member_spec=shr_64
8290    else
8291      shared_archive_member_spec=shr
8292    fi
8293  fi
8294  ;;
8295*)
8296  with_aix_soname=aix
8297  ;;
8298esac
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309# This can be used to rebuild libtool when needed
8310LIBTOOL_DEPS=$ltmain
8311
8312# Always use our own libtool.
8313LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8341
8342
8343
8344test -z "$LN_S" && LN_S="ln -s"
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359if test -n "${ZSH_VERSION+set}"; then
8360   setopt NO_GLOB_SUBST
8361fi
8362
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8364$as_echo_n "checking for objdir... " >&6; }
8365if ${lt_cv_objdir+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  rm -f .libs 2>/dev/null
8369mkdir .libs 2>/dev/null
8370if test -d .libs; then
8371  lt_cv_objdir=.libs
8372else
8373  # MS-DOS does not allow filenames that begin with a dot.
8374  lt_cv_objdir=_libs
8375fi
8376rmdir .libs 2>/dev/null
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8379$as_echo "$lt_cv_objdir" >&6; }
8380objdir=$lt_cv_objdir
8381
8382
8383
8384
8385
8386cat >>confdefs.h <<_ACEOF
8387#define LT_OBJDIR "$lt_cv_objdir/"
8388_ACEOF
8389
8390
8391
8392
8393case $host_os in
8394aix3*)
8395  # AIX sometimes has problems with the GCC collect2 program.  For some
8396  # reason, if we set the COLLECT_NAMES environment variable, the problems
8397  # vanish in a puff of smoke.
8398  if test set != "${COLLECT_NAMES+set}"; then
8399    COLLECT_NAMES=
8400    export COLLECT_NAMES
8401  fi
8402  ;;
8403esac
8404
8405# Global variables:
8406ofile=libtool
8407can_build_shared=yes
8408
8409# All known linkers require a '.a' archive for static linking (except MSVC,
8410# which needs '.lib').
8411libext=a
8412
8413with_gnu_ld=$lt_cv_prog_gnu_ld
8414
8415old_CC=$CC
8416old_CFLAGS=$CFLAGS
8417
8418# Set sane defaults for various variables
8419test -z "$CC" && CC=cc
8420test -z "$LTCC" && LTCC=$CC
8421test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8422test -z "$LD" && LD=ld
8423test -z "$ac_objext" && ac_objext=o
8424
8425func_cc_basename $compiler
8426cc_basename=$func_cc_basename_result
8427
8428
8429# Only perform the check for file, if the check method requires it
8430test -z "$MAGIC_CMD" && MAGIC_CMD=file
8431case $deplibs_check_method in
8432file_magic*)
8433  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8436if ${lt_cv_path_MAGIC_CMD+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  case $MAGIC_CMD in
8440[\\/*] |  ?:[\\/]*)
8441  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8442  ;;
8443*)
8444  lt_save_MAGIC_CMD=$MAGIC_CMD
8445  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8446  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8447  for ac_dir in $ac_dummy; do
8448    IFS=$lt_save_ifs
8449    test -z "$ac_dir" && ac_dir=.
8450    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8451      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8452      if test -n "$file_magic_test_file"; then
8453	case $deplibs_check_method in
8454	"file_magic "*)
8455	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8456	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8457	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8458	    $EGREP "$file_magic_regex" > /dev/null; then
8459	    :
8460	  else
8461	    cat <<_LT_EOF 1>&2
8462
8463*** Warning: the command libtool uses to detect shared libraries,
8464*** $file_magic_cmd, produces output that libtool cannot recognize.
8465*** The result is that libtool may fail to recognize shared libraries
8466*** as such.  This will affect the creation of libtool libraries that
8467*** depend on shared libraries, but programs linked with such libtool
8468*** libraries will work regardless of this problem.  Nevertheless, you
8469*** may want to report the problem to your system manager and/or to
8470*** bug-libtool@gnu.org
8471
8472_LT_EOF
8473	  fi ;;
8474	esac
8475      fi
8476      break
8477    fi
8478  done
8479  IFS=$lt_save_ifs
8480  MAGIC_CMD=$lt_save_MAGIC_CMD
8481  ;;
8482esac
8483fi
8484
8485MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8486if test -n "$MAGIC_CMD"; then
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8488$as_echo "$MAGIC_CMD" >&6; }
8489else
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
8492fi
8493
8494
8495
8496
8497
8498if test -z "$lt_cv_path_MAGIC_CMD"; then
8499  if test -n "$ac_tool_prefix"; then
8500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8501$as_echo_n "checking for file... " >&6; }
8502if ${lt_cv_path_MAGIC_CMD+:} false; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  case $MAGIC_CMD in
8506[\\/*] |  ?:[\\/]*)
8507  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8508  ;;
8509*)
8510  lt_save_MAGIC_CMD=$MAGIC_CMD
8511  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8512  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8513  for ac_dir in $ac_dummy; do
8514    IFS=$lt_save_ifs
8515    test -z "$ac_dir" && ac_dir=.
8516    if test -f "$ac_dir/file"; then
8517      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8518      if test -n "$file_magic_test_file"; then
8519	case $deplibs_check_method in
8520	"file_magic "*)
8521	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8522	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8523	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8524	    $EGREP "$file_magic_regex" > /dev/null; then
8525	    :
8526	  else
8527	    cat <<_LT_EOF 1>&2
8528
8529*** Warning: the command libtool uses to detect shared libraries,
8530*** $file_magic_cmd, produces output that libtool cannot recognize.
8531*** The result is that libtool may fail to recognize shared libraries
8532*** as such.  This will affect the creation of libtool libraries that
8533*** depend on shared libraries, but programs linked with such libtool
8534*** libraries will work regardless of this problem.  Nevertheless, you
8535*** may want to report the problem to your system manager and/or to
8536*** bug-libtool@gnu.org
8537
8538_LT_EOF
8539	  fi ;;
8540	esac
8541      fi
8542      break
8543    fi
8544  done
8545  IFS=$lt_save_ifs
8546  MAGIC_CMD=$lt_save_MAGIC_CMD
8547  ;;
8548esac
8549fi
8550
8551MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8552if test -n "$MAGIC_CMD"; then
8553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8554$as_echo "$MAGIC_CMD" >&6; }
8555else
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557$as_echo "no" >&6; }
8558fi
8559
8560
8561  else
8562    MAGIC_CMD=:
8563  fi
8564fi
8565
8566  fi
8567  ;;
8568esac
8569
8570# Use C for the default configuration in the libtool script
8571
8572lt_save_CC=$CC
8573ac_ext=c
8574ac_cpp='$CPP $CPPFLAGS'
8575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577ac_compiler_gnu=$ac_cv_c_compiler_gnu
8578
8579
8580# Source file extension for C test sources.
8581ac_ext=c
8582
8583# Object file extension for compiled C test sources.
8584objext=o
8585objext=$objext
8586
8587# Code to be used in simple compile tests
8588lt_simple_compile_test_code="int some_variable = 0;"
8589
8590# Code to be used in simple link tests
8591lt_simple_link_test_code='int main(){return(0);}'
8592
8593
8594
8595
8596
8597
8598
8599# If no C compiler was specified, use CC.
8600LTCC=${LTCC-"$CC"}
8601
8602# If no C compiler flags were specified, use CFLAGS.
8603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8604
8605# Allow CC to be a program name with arguments.
8606compiler=$CC
8607
8608# Save the default compiler, since it gets overwritten when the other
8609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8610compiler_DEFAULT=$CC
8611
8612# save warnings/boilerplate of simple test code
8613ac_outfile=conftest.$ac_objext
8614echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8616_lt_compiler_boilerplate=`cat conftest.err`
8617$RM conftest*
8618
8619ac_outfile=conftest.$ac_objext
8620echo "$lt_simple_link_test_code" >conftest.$ac_ext
8621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8622_lt_linker_boilerplate=`cat conftest.err`
8623$RM -r conftest*
8624
8625
8626## CAVEAT EMPTOR:
8627## There is no encapsulation within the following macros, do not change
8628## the running order or otherwise move them around unless you know exactly
8629## what you are doing...
8630if test -n "$compiler"; then
8631
8632lt_prog_compiler_no_builtin_flag=
8633
8634if test yes = "$GCC"; then
8635  case $cc_basename in
8636  nvcc*)
8637    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8638  *)
8639    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8640  esac
8641
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8644if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  lt_cv_prog_compiler_rtti_exceptions=no
8648   ac_outfile=conftest.$ac_objext
8649   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8651   # Insert the option either (1) after the last *FLAGS variable, or
8652   # (2) before a word containing "conftest.", or (3) at the end.
8653   # Note that $ac_compile itself does not contain backslashes and begins
8654   # with a dollar sign (not a hyphen), so the echo should work correctly.
8655   # The option is referenced via a variable to avoid confusing sed.
8656   lt_compile=`echo "$ac_compile" | $SED \
8657   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8659   -e 's:$: $lt_compiler_flag:'`
8660   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8661   (eval "$lt_compile" 2>conftest.err)
8662   ac_status=$?
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   if (exit $ac_status) && test -s "$ac_outfile"; then
8666     # The compiler can only warn and ignore the option if not recognized
8667     # So say no if there are warnings other than the usual output.
8668     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8669     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8670     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8671       lt_cv_prog_compiler_rtti_exceptions=yes
8672     fi
8673   fi
8674   $RM conftest*
8675
8676fi
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8679
8680if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8681    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8682else
8683    :
8684fi
8685
8686fi
8687
8688
8689
8690
8691
8692
8693  lt_prog_compiler_wl=
8694lt_prog_compiler_pic=
8695lt_prog_compiler_static=
8696
8697
8698  if test yes = "$GCC"; then
8699    lt_prog_compiler_wl='-Wl,'
8700    lt_prog_compiler_static='-static'
8701
8702    case $host_os in
8703      aix*)
8704      # All AIX code is PIC.
8705      if test ia64 = "$host_cpu"; then
8706	# AIX 5 now supports IA64 processor
8707	lt_prog_compiler_static='-Bstatic'
8708      fi
8709      lt_prog_compiler_pic='-fPIC'
8710      ;;
8711
8712    amigaos*)
8713      case $host_cpu in
8714      powerpc)
8715            # see comment about AmigaOS4 .so support
8716            lt_prog_compiler_pic='-fPIC'
8717        ;;
8718      m68k)
8719            # FIXME: we need at least 68020 code to build shared libraries, but
8720            # adding the '-m68020' flag to GCC prevents building anything better,
8721            # like '-m68040'.
8722            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8723        ;;
8724      esac
8725      ;;
8726
8727    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8728      # PIC is the default for these OSes.
8729      ;;
8730
8731    mingw* | cygwin* | pw32* | os2* | cegcc*)
8732      # This hack is so that the source file can tell whether it is being
8733      # built for inclusion in a dll (and should export symbols for example).
8734      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8735      # (--disable-auto-import) libraries
8736      lt_prog_compiler_pic='-DDLL_EXPORT'
8737      case $host_os in
8738      os2*)
8739	lt_prog_compiler_static='$wl-static'
8740	;;
8741      esac
8742      ;;
8743
8744    darwin* | rhapsody*)
8745      # PIC is the default on this platform
8746      # Common symbols not allowed in MH_DYLIB files
8747      lt_prog_compiler_pic='-fno-common'
8748      ;;
8749
8750    haiku*)
8751      # PIC is the default for Haiku.
8752      # The "-static" flag exists, but is broken.
8753      lt_prog_compiler_static=
8754      ;;
8755
8756    hpux*)
8757      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8758      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8759      # sets the default TLS model and affects inlining.
8760      case $host_cpu in
8761      hppa*64*)
8762	# +Z the default
8763	;;
8764      *)
8765	lt_prog_compiler_pic='-fPIC'
8766	;;
8767      esac
8768      ;;
8769
8770    interix[3-9]*)
8771      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8772      # Instead, we relocate shared libraries at runtime.
8773      ;;
8774
8775    msdosdjgpp*)
8776      # Just because we use GCC doesn't mean we suddenly get shared libraries
8777      # on systems that don't support them.
8778      lt_prog_compiler_can_build_shared=no
8779      enable_shared=no
8780      ;;
8781
8782    *nto* | *qnx*)
8783      # QNX uses GNU C++, but need to define -shared option too, otherwise
8784      # it will coredump.
8785      lt_prog_compiler_pic='-fPIC -shared'
8786      ;;
8787
8788    sysv4*MP*)
8789      if test -d /usr/nec; then
8790	lt_prog_compiler_pic=-Kconform_pic
8791      fi
8792      ;;
8793
8794    *)
8795      lt_prog_compiler_pic='-fPIC'
8796      ;;
8797    esac
8798
8799    case $cc_basename in
8800    nvcc*) # Cuda Compiler Driver 2.2
8801      lt_prog_compiler_wl='-Xlinker '
8802      if test -n "$lt_prog_compiler_pic"; then
8803        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8804      fi
8805      ;;
8806    esac
8807  else
8808    # PORTME Check for flag to pass linker flags through the system compiler.
8809    case $host_os in
8810    aix*)
8811      lt_prog_compiler_wl='-Wl,'
8812      if test ia64 = "$host_cpu"; then
8813	# AIX 5 now supports IA64 processor
8814	lt_prog_compiler_static='-Bstatic'
8815      else
8816	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8817      fi
8818      ;;
8819
8820    darwin* | rhapsody*)
8821      # PIC is the default on this platform
8822      # Common symbols not allowed in MH_DYLIB files
8823      lt_prog_compiler_pic='-fno-common'
8824      case $cc_basename in
8825      nagfor*)
8826        # NAG Fortran compiler
8827        lt_prog_compiler_wl='-Wl,-Wl,,'
8828        lt_prog_compiler_pic='-PIC'
8829        lt_prog_compiler_static='-Bstatic'
8830        ;;
8831      esac
8832      ;;
8833
8834    mingw* | cygwin* | pw32* | os2* | cegcc*)
8835      # This hack is so that the source file can tell whether it is being
8836      # built for inclusion in a dll (and should export symbols for example).
8837      lt_prog_compiler_pic='-DDLL_EXPORT'
8838      case $host_os in
8839      os2*)
8840	lt_prog_compiler_static='$wl-static'
8841	;;
8842      esac
8843      ;;
8844
8845    hpux9* | hpux10* | hpux11*)
8846      lt_prog_compiler_wl='-Wl,'
8847      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8848      # not for PA HP-UX.
8849      case $host_cpu in
8850      hppa*64*|ia64*)
8851	# +Z the default
8852	;;
8853      *)
8854	lt_prog_compiler_pic='+Z'
8855	;;
8856      esac
8857      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858      lt_prog_compiler_static='$wl-a ${wl}archive'
8859      ;;
8860
8861    irix5* | irix6* | nonstopux*)
8862      lt_prog_compiler_wl='-Wl,'
8863      # PIC (with -KPIC) is the default.
8864      lt_prog_compiler_static='-non_shared'
8865      ;;
8866
8867    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8868      case $cc_basename in
8869      # old Intel for x86_64, which still supported -KPIC.
8870      ecc*)
8871	lt_prog_compiler_wl='-Wl,'
8872	lt_prog_compiler_pic='-KPIC'
8873	lt_prog_compiler_static='-static'
8874        ;;
8875      # icc used to be incompatible with GCC.
8876      # ICC 10 doesn't accept -KPIC any more.
8877      icc* | ifort*)
8878	lt_prog_compiler_wl='-Wl,'
8879	lt_prog_compiler_pic='-fPIC'
8880	lt_prog_compiler_static='-static'
8881        ;;
8882      # Lahey Fortran 8.1.
8883      lf95*)
8884	lt_prog_compiler_wl='-Wl,'
8885	lt_prog_compiler_pic='--shared'
8886	lt_prog_compiler_static='--static'
8887	;;
8888      nagfor*)
8889	# NAG Fortran compiler
8890	lt_prog_compiler_wl='-Wl,-Wl,,'
8891	lt_prog_compiler_pic='-PIC'
8892	lt_prog_compiler_static='-Bstatic'
8893	;;
8894      tcc*)
8895	# Fabrice Bellard et al's Tiny C Compiler
8896	lt_prog_compiler_wl='-Wl,'
8897	lt_prog_compiler_pic='-fPIC'
8898	lt_prog_compiler_static='-static'
8899	;;
8900      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8901        # Portland Group compilers (*not* the Pentium gcc compiler,
8902	# which looks to be a dead project)
8903	lt_prog_compiler_wl='-Wl,'
8904	lt_prog_compiler_pic='-fpic'
8905	lt_prog_compiler_static='-Bstatic'
8906        ;;
8907      ccc*)
8908        lt_prog_compiler_wl='-Wl,'
8909        # All Alpha code is PIC.
8910        lt_prog_compiler_static='-non_shared'
8911        ;;
8912      xl* | bgxl* | bgf* | mpixl*)
8913	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8914	lt_prog_compiler_wl='-Wl,'
8915	lt_prog_compiler_pic='-qpic'
8916	lt_prog_compiler_static='-qstaticlink'
8917	;;
8918      *)
8919	case `$CC -V 2>&1 | sed 5q` in
8920	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8921	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8922	  lt_prog_compiler_pic='-KPIC'
8923	  lt_prog_compiler_static='-Bstatic'
8924	  lt_prog_compiler_wl=''
8925	  ;;
8926	*Sun\ F* | *Sun*Fortran*)
8927	  lt_prog_compiler_pic='-KPIC'
8928	  lt_prog_compiler_static='-Bstatic'
8929	  lt_prog_compiler_wl='-Qoption ld '
8930	  ;;
8931	*Sun\ C*)
8932	  # Sun C 5.9
8933	  lt_prog_compiler_pic='-KPIC'
8934	  lt_prog_compiler_static='-Bstatic'
8935	  lt_prog_compiler_wl='-Wl,'
8936	  ;;
8937        *Intel*\ [CF]*Compiler*)
8938	  lt_prog_compiler_wl='-Wl,'
8939	  lt_prog_compiler_pic='-fPIC'
8940	  lt_prog_compiler_static='-static'
8941	  ;;
8942	*Portland\ Group*)
8943	  lt_prog_compiler_wl='-Wl,'
8944	  lt_prog_compiler_pic='-fpic'
8945	  lt_prog_compiler_static='-Bstatic'
8946	  ;;
8947	esac
8948	;;
8949      esac
8950      ;;
8951
8952    newsos6)
8953      lt_prog_compiler_pic='-KPIC'
8954      lt_prog_compiler_static='-Bstatic'
8955      ;;
8956
8957    *nto* | *qnx*)
8958      # QNX uses GNU C++, but need to define -shared option too, otherwise
8959      # it will coredump.
8960      lt_prog_compiler_pic='-fPIC -shared'
8961      ;;
8962
8963    osf3* | osf4* | osf5*)
8964      lt_prog_compiler_wl='-Wl,'
8965      # All OSF/1 code is PIC.
8966      lt_prog_compiler_static='-non_shared'
8967      ;;
8968
8969    rdos*)
8970      lt_prog_compiler_static='-non_shared'
8971      ;;
8972
8973    solaris*)
8974      lt_prog_compiler_pic='-KPIC'
8975      lt_prog_compiler_static='-Bstatic'
8976      case $cc_basename in
8977      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8978	lt_prog_compiler_wl='-Qoption ld ';;
8979      *)
8980	lt_prog_compiler_wl='-Wl,';;
8981      esac
8982      ;;
8983
8984    sunos4*)
8985      lt_prog_compiler_wl='-Qoption ld '
8986      lt_prog_compiler_pic='-PIC'
8987      lt_prog_compiler_static='-Bstatic'
8988      ;;
8989
8990    sysv4 | sysv4.2uw2* | sysv4.3*)
8991      lt_prog_compiler_wl='-Wl,'
8992      lt_prog_compiler_pic='-KPIC'
8993      lt_prog_compiler_static='-Bstatic'
8994      ;;
8995
8996    sysv4*MP*)
8997      if test -d /usr/nec; then
8998	lt_prog_compiler_pic='-Kconform_pic'
8999	lt_prog_compiler_static='-Bstatic'
9000      fi
9001      ;;
9002
9003    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9004      lt_prog_compiler_wl='-Wl,'
9005      lt_prog_compiler_pic='-KPIC'
9006      lt_prog_compiler_static='-Bstatic'
9007      ;;
9008
9009    unicos*)
9010      lt_prog_compiler_wl='-Wl,'
9011      lt_prog_compiler_can_build_shared=no
9012      ;;
9013
9014    uts4*)
9015      lt_prog_compiler_pic='-pic'
9016      lt_prog_compiler_static='-Bstatic'
9017      ;;
9018
9019    *)
9020      lt_prog_compiler_can_build_shared=no
9021      ;;
9022    esac
9023  fi
9024
9025case $host_os in
9026  # For platforms that do not support PIC, -DPIC is meaningless:
9027  *djgpp*)
9028    lt_prog_compiler_pic=
9029    ;;
9030  *)
9031    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9032    ;;
9033esac
9034
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9036$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9037if ${lt_cv_prog_compiler_pic+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9041fi
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9043$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9044lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9045
9046#
9047# Check to make sure the PIC flag actually works.
9048#
9049if test -n "$lt_prog_compiler_pic"; then
9050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9051$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9052if ${lt_cv_prog_compiler_pic_works+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  lt_cv_prog_compiler_pic_works=no
9056   ac_outfile=conftest.$ac_objext
9057   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9059   # Insert the option either (1) after the last *FLAGS variable, or
9060   # (2) before a word containing "conftest.", or (3) at the end.
9061   # Note that $ac_compile itself does not contain backslashes and begins
9062   # with a dollar sign (not a hyphen), so the echo should work correctly.
9063   # The option is referenced via a variable to avoid confusing sed.
9064   lt_compile=`echo "$ac_compile" | $SED \
9065   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067   -e 's:$: $lt_compiler_flag:'`
9068   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9069   (eval "$lt_compile" 2>conftest.err)
9070   ac_status=$?
9071   cat conftest.err >&5
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   if (exit $ac_status) && test -s "$ac_outfile"; then
9074     # The compiler can only warn and ignore the option if not recognized
9075     # So say no if there are warnings other than the usual output.
9076     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9077     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079       lt_cv_prog_compiler_pic_works=yes
9080     fi
9081   fi
9082   $RM conftest*
9083
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9086$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9087
9088if test yes = "$lt_cv_prog_compiler_pic_works"; then
9089    case $lt_prog_compiler_pic in
9090     "" | " "*) ;;
9091     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9092     esac
9093else
9094    lt_prog_compiler_pic=
9095     lt_prog_compiler_can_build_shared=no
9096fi
9097
9098fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110#
9111# Check to make sure the static flag actually works.
9112#
9113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9115$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9116if ${lt_cv_prog_compiler_static_works+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  lt_cv_prog_compiler_static_works=no
9120   save_LDFLAGS=$LDFLAGS
9121   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9122   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124     # The linker can only warn and ignore the option if not recognized
9125     # So say no if there are warnings
9126     if test -s conftest.err; then
9127       # Append any errors to the config.log.
9128       cat conftest.err 1>&5
9129       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131       if diff conftest.exp conftest.er2 >/dev/null; then
9132         lt_cv_prog_compiler_static_works=yes
9133       fi
9134     else
9135       lt_cv_prog_compiler_static_works=yes
9136     fi
9137   fi
9138   $RM -r conftest*
9139   LDFLAGS=$save_LDFLAGS
9140
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9143$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9144
9145if test yes = "$lt_cv_prog_compiler_static_works"; then
9146    :
9147else
9148    lt_prog_compiler_static=
9149fi
9150
9151
9152
9153
9154
9155
9156
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159if ${lt_cv_prog_compiler_c_o+:} false; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  lt_cv_prog_compiler_c_o=no
9163   $RM -r conftest 2>/dev/null
9164   mkdir conftest
9165   cd conftest
9166   mkdir out
9167   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9168
9169   lt_compiler_flag="-o out/conftest2.$ac_objext"
9170   # Insert the option either (1) after the last *FLAGS variable, or
9171   # (2) before a word containing "conftest.", or (3) at the end.
9172   # Note that $ac_compile itself does not contain backslashes and begins
9173   # with a dollar sign (not a hyphen), so the echo should work correctly.
9174   lt_compile=`echo "$ac_compile" | $SED \
9175   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177   -e 's:$: $lt_compiler_flag:'`
9178   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9179   (eval "$lt_compile" 2>out/conftest.err)
9180   ac_status=$?
9181   cat out/conftest.err >&5
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184   then
9185     # The compiler can only warn and ignore the option if not recognized
9186     # So say no if there are warnings
9187     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9188     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190       lt_cv_prog_compiler_c_o=yes
9191     fi
9192   fi
9193   chmod u+w . 2>&5
9194   $RM conftest*
9195   # SGI C++ compiler will create directory out/ii_files/ for
9196   # template instantiation
9197   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198   $RM out/* && rmdir out
9199   cd ..
9200   $RM -r conftest
9201   $RM conftest*
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206
9207
9208
9209
9210
9211
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214if ${lt_cv_prog_compiler_c_o+:} false; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  lt_cv_prog_compiler_c_o=no
9218   $RM -r conftest 2>/dev/null
9219   mkdir conftest
9220   cd conftest
9221   mkdir out
9222   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9223
9224   lt_compiler_flag="-o out/conftest2.$ac_objext"
9225   # Insert the option either (1) after the last *FLAGS variable, or
9226   # (2) before a word containing "conftest.", or (3) at the end.
9227   # Note that $ac_compile itself does not contain backslashes and begins
9228   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229   lt_compile=`echo "$ac_compile" | $SED \
9230   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232   -e 's:$: $lt_compiler_flag:'`
9233   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234   (eval "$lt_compile" 2>out/conftest.err)
9235   ac_status=$?
9236   cat out/conftest.err >&5
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9239   then
9240     # The compiler can only warn and ignore the option if not recognized
9241     # So say no if there are warnings
9242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9243     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245       lt_cv_prog_compiler_c_o=yes
9246     fi
9247   fi
9248   chmod u+w . 2>&5
9249   $RM conftest*
9250   # SGI C++ compiler will create directory out/ii_files/ for
9251   # template instantiation
9252   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253   $RM out/* && rmdir out
9254   cd ..
9255   $RM -r conftest
9256   $RM conftest*
9257
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9261
9262
9263
9264
9265hard_links=nottested
9266if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9267  # do not overwrite the value of need_locks provided by the user
9268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9269$as_echo_n "checking if we can lock with hard links... " >&6; }
9270  hard_links=yes
9271  $RM conftest*
9272  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273  touch conftest.a
9274  ln conftest.a conftest.b 2>&5 || hard_links=no
9275  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9277$as_echo "$hard_links" >&6; }
9278  if test no = "$hard_links"; then
9279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9280$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9281    need_locks=warn
9282  fi
9283else
9284  need_locks=no
9285fi
9286
9287
9288
9289
9290
9291
9292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9293$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9294
9295  runpath_var=
9296  allow_undefined_flag=
9297  always_export_symbols=no
9298  archive_cmds=
9299  archive_expsym_cmds=
9300  compiler_needs_object=no
9301  enable_shared_with_static_runtimes=no
9302  export_dynamic_flag_spec=
9303  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9304  hardcode_automatic=no
9305  hardcode_direct=no
9306  hardcode_direct_absolute=no
9307  hardcode_libdir_flag_spec=
9308  hardcode_libdir_separator=
9309  hardcode_minus_L=no
9310  hardcode_shlibpath_var=unsupported
9311  inherit_rpath=no
9312  link_all_deplibs=unknown
9313  module_cmds=
9314  module_expsym_cmds=
9315  old_archive_from_new_cmds=
9316  old_archive_from_expsyms_cmds=
9317  thread_safe_flag_spec=
9318  whole_archive_flag_spec=
9319  # include_expsyms should be a list of space-separated symbols to be *always*
9320  # included in the symbol list
9321  include_expsyms=
9322  # exclude_expsyms can be an extended regexp of symbols to exclude
9323  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9324  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9325  # as well as any symbol that contains 'd'.
9326  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9327  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9328  # platforms (ab)use it in PIC code, but their linkers get confused if
9329  # the symbol is explicitly referenced.  Since portable code cannot
9330  # rely on this symbol name, it's probably fine to never include it in
9331  # preloaded symbol tables.
9332  # Exclude shared library initialization/finalization symbols.
9333  extract_expsyms_cmds=
9334
9335  case $host_os in
9336  cygwin* | mingw* | pw32* | cegcc*)
9337    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9338    # When not using gcc, we currently assume that we are using
9339    # Microsoft Visual C++.
9340    if test yes != "$GCC"; then
9341      with_gnu_ld=no
9342    fi
9343    ;;
9344  interix*)
9345    # we just hope/assume this is gcc and not c89 (= MSVC++)
9346    with_gnu_ld=yes
9347    ;;
9348  openbsd* | bitrig*)
9349    with_gnu_ld=no
9350    ;;
9351  esac
9352
9353  ld_shlibs=yes
9354
9355  # On some targets, GNU ld is compatible enough with the native linker
9356  # that we're better off using the native interface for both.
9357  lt_use_gnu_ld_interface=no
9358  if test yes = "$with_gnu_ld"; then
9359    case $host_os in
9360      aix*)
9361	# The AIX port of GNU ld has always aspired to compatibility
9362	# with the native linker.  However, as the warning in the GNU ld
9363	# block says, versions before 2.19.5* couldn't really create working
9364	# shared libraries, regardless of the interface used.
9365	case `$LD -v 2>&1` in
9366	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369	  *)
9370	    lt_use_gnu_ld_interface=yes
9371	    ;;
9372	esac
9373	;;
9374      *)
9375	lt_use_gnu_ld_interface=yes
9376	;;
9377    esac
9378  fi
9379
9380  if test yes = "$lt_use_gnu_ld_interface"; then
9381    # If archive_cmds runs LD, not CC, wlarc should be empty
9382    wlarc='$wl'
9383
9384    # Set some defaults for GNU ld with shared library support. These
9385    # are reset later if shared libraries are not supported. Putting them
9386    # here allows them to be overridden if necessary.
9387    runpath_var=LD_RUN_PATH
9388    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9389    export_dynamic_flag_spec='$wl--export-dynamic'
9390    # ancient GNU ld didn't support --whole-archive et. al.
9391    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9393    else
9394      whole_archive_flag_spec=
9395    fi
9396    supports_anon_versioning=no
9397    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9398      *GNU\ gold*) supports_anon_versioning=yes ;;
9399      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402      *\ 2.11.*) ;; # other 2.11 versions
9403      *) supports_anon_versioning=yes ;;
9404    esac
9405
9406    # See if GNU ld supports shared libraries.
9407    case $host_os in
9408    aix[3-9]*)
9409      # On AIX/PPC, the GNU linker is very broken
9410      if test ia64 != "$host_cpu"; then
9411	ld_shlibs=no
9412	cat <<_LT_EOF 1>&2
9413
9414*** Warning: the GNU linker, at least up to release 2.19, is reported
9415*** to be unable to reliably create shared libraries on AIX.
9416*** Therefore, libtool is disabling shared libraries support.  If you
9417*** really care for shared libraries, you may want to install binutils
9418*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419*** You will then need to restart the configuration process.
9420
9421_LT_EOF
9422      fi
9423      ;;
9424
9425    amigaos*)
9426      case $host_cpu in
9427      powerpc)
9428            # see comment about AmigaOS4 .so support
9429            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9430            archive_expsym_cmds=''
9431        ;;
9432      m68k)
9433            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)'
9434            hardcode_libdir_flag_spec='-L$libdir'
9435            hardcode_minus_L=yes
9436        ;;
9437      esac
9438      ;;
9439
9440    beos*)
9441      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442	allow_undefined_flag=unsupported
9443	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444	# support --undefined.  This deserves some investigation.  FIXME
9445	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9446      else
9447	ld_shlibs=no
9448      fi
9449      ;;
9450
9451    cygwin* | mingw* | pw32* | cegcc*)
9452      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453      # as there is no search path for DLLs.
9454      hardcode_libdir_flag_spec='-L$libdir'
9455      export_dynamic_flag_spec='$wl--export-all-symbols'
9456      allow_undefined_flag=unsupported
9457      always_export_symbols=no
9458      enable_shared_with_static_runtimes=yes
9459      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'
9460      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461
9462      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464	# If the export-symbols file already is a .def file, use it as
9465	# is; otherwise, prepend EXPORTS...
9466	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9467          cp $export_symbols $output_objdir/$soname.def;
9468        else
9469          echo EXPORTS > $output_objdir/$soname.def;
9470          cat $export_symbols >> $output_objdir/$soname.def;
9471        fi~
9472        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473      else
9474	ld_shlibs=no
9475      fi
9476      ;;
9477
9478    haiku*)
9479      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9480      link_all_deplibs=yes
9481      ;;
9482
9483    os2*)
9484      hardcode_libdir_flag_spec='-L$libdir'
9485      hardcode_minus_L=yes
9486      allow_undefined_flag=unsupported
9487      shrext_cmds=.dll
9488      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9489	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9490	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9491	$ECHO EXPORTS >> $output_objdir/$libname.def~
9492	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9493	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9494	emximp -o $lib $output_objdir/$libname.def'
9495      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9496	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9497	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9498	$ECHO EXPORTS >> $output_objdir/$libname.def~
9499	prefix_cmds="$SED"~
9500	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9501	  prefix_cmds="$prefix_cmds -e 1d";
9502	fi~
9503	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9504	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9505	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9506	emximp -o $lib $output_objdir/$libname.def'
9507      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9508      enable_shared_with_static_runtimes=yes
9509      ;;
9510
9511    interix[3-9]*)
9512      hardcode_direct=no
9513      hardcode_shlibpath_var=no
9514      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9515      export_dynamic_flag_spec='$wl-E'
9516      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9517      # Instead, shared libraries are loaded at an image base (0x10000000 by
9518      # default) and relocated if they conflict, which is a slow very memory
9519      # consuming and fragmenting process.  To avoid this, we pick a random,
9520      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9521      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9522      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9523      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'
9524      ;;
9525
9526    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9527      tmp_diet=no
9528      if test linux-dietlibc = "$host_os"; then
9529	case $cc_basename in
9530	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9531	esac
9532      fi
9533      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9534	 && test no = "$tmp_diet"
9535      then
9536	tmp_addflag=' $pic_flag'
9537	tmp_sharedflag='-shared'
9538	case $cc_basename,$host_cpu in
9539        pgcc*)				# Portland Group C compiler
9540	  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'
9541	  tmp_addflag=' $pic_flag'
9542	  ;;
9543	pgf77* | pgf90* | pgf95* | pgfortran*)
9544					# Portland Group f77 and f90 compilers
9545	  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'
9546	  tmp_addflag=' $pic_flag -Mnomain' ;;
9547	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9548	  tmp_addflag=' -i_dynamic' ;;
9549	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9550	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9551	ifc* | ifort*)			# Intel Fortran compiler
9552	  tmp_addflag=' -nofor_main' ;;
9553	lf95*)				# Lahey Fortran 8.1
9554	  whole_archive_flag_spec=
9555	  tmp_sharedflag='--shared' ;;
9556        nagfor*)                        # NAGFOR 5.3
9557          tmp_sharedflag='-Wl,-shared' ;;
9558	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9559	  tmp_sharedflag='-qmkshrobj'
9560	  tmp_addflag= ;;
9561	nvcc*)	# Cuda Compiler Driver 2.2
9562	  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'
9563	  compiler_needs_object=yes
9564	  ;;
9565	esac
9566	case `$CC -V 2>&1 | sed 5q` in
9567	*Sun\ C*)			# Sun C 5.9
9568	  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'
9569	  compiler_needs_object=yes
9570	  tmp_sharedflag='-G' ;;
9571	*Sun\ F*)			# Sun Fortran 8.3
9572	  tmp_sharedflag='-G' ;;
9573	esac
9574	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575
9576        if test yes = "$supports_anon_versioning"; then
9577          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9578            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9579            echo "local: *; };" >> $output_objdir/$libname.ver~
9580            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9581        fi
9582
9583	case $cc_basename in
9584	tcc*)
9585	  export_dynamic_flag_spec='-rdynamic'
9586	  ;;
9587	xlf* | bgf* | bgxlf* | mpixlf*)
9588	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9589	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9590	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9591	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9592	  if test yes = "$supports_anon_versioning"; then
9593	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9594              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9595              echo "local: *; };" >> $output_objdir/$libname.ver~
9596              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9597	  fi
9598	  ;;
9599	esac
9600      else
9601        ld_shlibs=no
9602      fi
9603      ;;
9604
9605    netbsd*)
9606      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9607	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9608	wlarc=
9609      else
9610	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9611	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9612      fi
9613      ;;
9614
9615    solaris*)
9616      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9617	ld_shlibs=no
9618	cat <<_LT_EOF 1>&2
9619
9620*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9621*** create shared libraries on Solaris systems.  Therefore, libtool
9622*** is disabling shared libraries support.  We urge you to upgrade GNU
9623*** binutils to release 2.9.1 or newer.  Another option is to modify
9624*** your PATH or compiler configuration so that the native linker is
9625*** used, and then restart.
9626
9627_LT_EOF
9628      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9629	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9630	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9631      else
9632	ld_shlibs=no
9633      fi
9634      ;;
9635
9636    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9637      case `$LD -v 2>&1` in
9638        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9639	ld_shlibs=no
9640	cat <<_LT_EOF 1>&2
9641
9642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9643*** reliably create shared libraries on SCO systems.  Therefore, libtool
9644*** is disabling shared libraries support.  We urge you to upgrade GNU
9645*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9646*** your PATH or compiler configuration so that the native linker is
9647*** used, and then restart.
9648
9649_LT_EOF
9650	;;
9651	*)
9652	  # For security reasons, it is highly recommended that you always
9653	  # use absolute paths for naming shared libraries, and exclude the
9654	  # DT_RUNPATH tag from executables and libraries.  But doing so
9655	  # requires that you compile everything twice, which is a pain.
9656	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9657	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9658	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9659	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9660	  else
9661	    ld_shlibs=no
9662	  fi
9663	;;
9664      esac
9665      ;;
9666
9667    sunos4*)
9668      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9669      wlarc=
9670      hardcode_direct=yes
9671      hardcode_shlibpath_var=no
9672      ;;
9673
9674    *)
9675      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9677	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9678      else
9679	ld_shlibs=no
9680      fi
9681      ;;
9682    esac
9683
9684    if test no = "$ld_shlibs"; then
9685      runpath_var=
9686      hardcode_libdir_flag_spec=
9687      export_dynamic_flag_spec=
9688      whole_archive_flag_spec=
9689    fi
9690  else
9691    # PORTME fill in a description of your system's linker (not GNU ld)
9692    case $host_os in
9693    aix3*)
9694      allow_undefined_flag=unsupported
9695      always_export_symbols=yes
9696      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'
9697      # Note: this linker hardcodes the directories in LIBPATH if there
9698      # are no directories specified by -L.
9699      hardcode_minus_L=yes
9700      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9701	# Neither direct hardcoding nor static linking is supported with a
9702	# broken collect2.
9703	hardcode_direct=unsupported
9704      fi
9705      ;;
9706
9707    aix[4-9]*)
9708      if test ia64 = "$host_cpu"; then
9709	# On IA64, the linker does run time linking by default, so we don't
9710	# have to do anything special.
9711	aix_use_runtimelinking=no
9712	exp_sym_flag='-Bexport'
9713	no_entry_flag=
9714      else
9715	# If we're using GNU nm, then we don't want the "-C" option.
9716	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9717	# Without the "-l" option, or with the "-B" option, AIX nm treats
9718	# weak defined symbols like other global defined symbols, whereas
9719	# GNU nm marks them as "W".
9720	# While the 'weak' keyword is ignored in the Export File, we need
9721	# it in the Import File for the 'aix-soname' feature, so we have
9722	# to replace the "-B" option with "-P" for AIX nm.
9723	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9724	  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'
9725	else
9726	  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'
9727	fi
9728	aix_use_runtimelinking=no
9729
9730	# Test if we are trying to use run time linking or normal
9731	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9732	# have runtime linking enabled, and use it for executables.
9733	# For shared libraries, we enable/disable runtime linking
9734	# depending on the kind of the shared library created -
9735	# when "with_aix_soname,aix_use_runtimelinking" is:
9736	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9737	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9738	#            lib.a           static archive
9739	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9740	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9741	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9742	#            lib.a(lib.so.V) shared, rtl:no
9743	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9744	#            lib.a           static archive
9745	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9746	  for ld_flag in $LDFLAGS; do
9747	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9748	    aix_use_runtimelinking=yes
9749	    break
9750	  fi
9751	  done
9752	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9753	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9754	    # so we don't have lib.a shared libs to link our executables.
9755	    # We have to force runtime linking in this case.
9756	    aix_use_runtimelinking=yes
9757	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9758	  fi
9759	  ;;
9760	esac
9761
9762	exp_sym_flag='-bexport'
9763	no_entry_flag='-bnoentry'
9764      fi
9765
9766      # When large executables or shared objects are built, AIX ld can
9767      # have problems creating the table of contents.  If linking a library
9768      # or program results in "error TOC overflow" add -mminimal-toc to
9769      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9770      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9771
9772      archive_cmds=''
9773      hardcode_direct=yes
9774      hardcode_direct_absolute=yes
9775      hardcode_libdir_separator=':'
9776      link_all_deplibs=yes
9777      file_list_spec='$wl-f,'
9778      case $with_aix_soname,$aix_use_runtimelinking in
9779      aix,*) ;; # traditional, no import file
9780      svr4,* | *,yes) # use import file
9781	# The Import File defines what to hardcode.
9782	hardcode_direct=no
9783	hardcode_direct_absolute=no
9784	;;
9785      esac
9786
9787      if test yes = "$GCC"; then
9788	case $host_os in aix4.[012]|aix4.[012].*)
9789	# We only want to do this on AIX 4.2 and lower, the check
9790	# below for broken collect2 doesn't work under 4.3+
9791	  collect2name=`$CC -print-prog-name=collect2`
9792	  if test -f "$collect2name" &&
9793	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9794	  then
9795	  # We have reworked collect2
9796	  :
9797	  else
9798	  # We have old collect2
9799	  hardcode_direct=unsupported
9800	  # It fails to find uninstalled libraries when the uninstalled
9801	  # path is not listed in the libpath.  Setting hardcode_minus_L
9802	  # to unsupported forces relinking
9803	  hardcode_minus_L=yes
9804	  hardcode_libdir_flag_spec='-L$libdir'
9805	  hardcode_libdir_separator=
9806	  fi
9807	  ;;
9808	esac
9809	shared_flag='-shared'
9810	if test yes = "$aix_use_runtimelinking"; then
9811	  shared_flag="$shared_flag "'$wl-G'
9812	fi
9813	# Need to ensure runtime linking is disabled for the traditional
9814	# shared library, or the linker may eventually find shared libraries
9815	# /with/ Import File - we do not want to mix them.
9816	shared_flag_aix='-shared'
9817	shared_flag_svr4='-shared $wl-G'
9818      else
9819	# not using gcc
9820	if test ia64 = "$host_cpu"; then
9821	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9822	# chokes on -Wl,-G. The following line is correct:
9823	  shared_flag='-G'
9824	else
9825	  if test yes = "$aix_use_runtimelinking"; then
9826	    shared_flag='$wl-G'
9827	  else
9828	    shared_flag='$wl-bM:SRE'
9829	  fi
9830	  shared_flag_aix='$wl-bM:SRE'
9831	  shared_flag_svr4='$wl-G'
9832	fi
9833      fi
9834
9835      export_dynamic_flag_spec='$wl-bexpall'
9836      # It seems that -bexpall does not export symbols beginning with
9837      # underscore (_), so it is better to generate a list of symbols to export.
9838      always_export_symbols=yes
9839      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9840	# Warning - without using the other runtime loading flags (-brtl),
9841	# -berok will link without error, but may produce a broken library.
9842	allow_undefined_flag='-berok'
9843        # Determine the default libpath from the value encoded in an
9844        # empty executable.
9845        if test set = "${lt_cv_aix_libpath+set}"; then
9846  aix_libpath=$lt_cv_aix_libpath
9847else
9848  if ${lt_cv_aix_libpath_+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853
9854int
9855main ()
9856{
9857
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862if ac_fn_c_try_link "$LINENO"; then :
9863
9864  lt_aix_libpath_sed='
9865      /Import File Strings/,/^$/ {
9866	  /^0/ {
9867	      s/^0  *\([^ ]*\) *$/\1/
9868	      p
9869	  }
9870      }'
9871  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872  # Check for a 64-bit object if we didn't find anything.
9873  if test -z "$lt_cv_aix_libpath_"; then
9874    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875  fi
9876fi
9877rm -f core conftest.err conftest.$ac_objext \
9878    conftest$ac_exeext conftest.$ac_ext
9879  if test -z "$lt_cv_aix_libpath_"; then
9880    lt_cv_aix_libpath_=/usr/lib:/lib
9881  fi
9882
9883fi
9884
9885  aix_libpath=$lt_cv_aix_libpath_
9886fi
9887
9888        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9889        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
9890      else
9891	if test ia64 = "$host_cpu"; then
9892	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9893	  allow_undefined_flag="-z nodefs"
9894	  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"
9895	else
9896	 # Determine the default libpath from the value encoded in an
9897	 # empty executable.
9898	 if test set = "${lt_cv_aix_libpath+set}"; then
9899  aix_libpath=$lt_cv_aix_libpath
9900else
9901  if ${lt_cv_aix_libpath_+:} false; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906
9907int
9908main ()
9909{
9910
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916
9917  lt_aix_libpath_sed='
9918      /Import File Strings/,/^$/ {
9919	  /^0/ {
9920	      s/^0  *\([^ ]*\) *$/\1/
9921	      p
9922	  }
9923      }'
9924  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925  # Check for a 64-bit object if we didn't find anything.
9926  if test -z "$lt_cv_aix_libpath_"; then
9927    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9928  fi
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931    conftest$ac_exeext conftest.$ac_ext
9932  if test -z "$lt_cv_aix_libpath_"; then
9933    lt_cv_aix_libpath_=/usr/lib:/lib
9934  fi
9935
9936fi
9937
9938  aix_libpath=$lt_cv_aix_libpath_
9939fi
9940
9941	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9942	  # Warning - without using the other run time loading flags,
9943	  # -berok will link without error, but may produce a broken library.
9944	  no_undefined_flag=' $wl-bernotok'
9945	  allow_undefined_flag=' $wl-berok'
9946	  if test yes = "$with_gnu_ld"; then
9947	    # We only use this code for GNU lds that support --whole-archive.
9948	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9949	  else
9950	    # Exported symbols can be pulled into shared objects from archives
9951	    whole_archive_flag_spec='$convenience'
9952	  fi
9953	  archive_cmds_need_lc=yes
9954	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9955	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9956	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9957	  if test svr4 != "$with_aix_soname"; then
9958	    # This is similar to how AIX traditionally builds its shared libraries.
9959	    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'
9960	  fi
9961	  if test aix != "$with_aix_soname"; then
9962	    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'
9963	  else
9964	    # used by -dlpreopen to get the symbols
9965	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9966	  fi
9967	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9968	fi
9969      fi
9970      ;;
9971
9972    amigaos*)
9973      case $host_cpu in
9974      powerpc)
9975            # see comment about AmigaOS4 .so support
9976            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9977            archive_expsym_cmds=''
9978        ;;
9979      m68k)
9980            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)'
9981            hardcode_libdir_flag_spec='-L$libdir'
9982            hardcode_minus_L=yes
9983        ;;
9984      esac
9985      ;;
9986
9987    bsdi[45]*)
9988      export_dynamic_flag_spec=-rdynamic
9989      ;;
9990
9991    cygwin* | mingw* | pw32* | cegcc*)
9992      # When not using gcc, we currently assume that we are using
9993      # Microsoft Visual C++.
9994      # hardcode_libdir_flag_spec is actually meaningless, as there is
9995      # no search path for DLLs.
9996      case $cc_basename in
9997      cl*)
9998	# Native MSVC
9999	hardcode_libdir_flag_spec=' '
10000	allow_undefined_flag=unsupported
10001	always_export_symbols=yes
10002	file_list_spec='@'
10003	# Tell ltmain to make .lib files, not .a files.
10004	libext=lib
10005	# Tell ltmain to make .dll files, not .so files.
10006	shrext_cmds=.dll
10007	# FIXME: Setting linknames here is a bad hack.
10008	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10009	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10010            cp "$export_symbols" "$output_objdir/$soname.def";
10011            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10012          else
10013            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10014          fi~
10015          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10016          linknames='
10017	# The linker will not automatically build a static lib if we build a DLL.
10018	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10019	enable_shared_with_static_runtimes=yes
10020	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10021	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10022	# Don't use ranlib
10023	old_postinstall_cmds='chmod 644 $oldlib'
10024	postlink_cmds='lt_outputfile="@OUTPUT@"~
10025          lt_tool_outputfile="@TOOL_OUTPUT@"~
10026          case $lt_outputfile in
10027            *.exe|*.EXE) ;;
10028            *)
10029              lt_outputfile=$lt_outputfile.exe
10030              lt_tool_outputfile=$lt_tool_outputfile.exe
10031              ;;
10032          esac~
10033          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10034            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10035            $RM "$lt_outputfile.manifest";
10036          fi'
10037	;;
10038      *)
10039	# Assume MSVC wrapper
10040	hardcode_libdir_flag_spec=' '
10041	allow_undefined_flag=unsupported
10042	# Tell ltmain to make .lib files, not .a files.
10043	libext=lib
10044	# Tell ltmain to make .dll files, not .so files.
10045	shrext_cmds=.dll
10046	# FIXME: Setting linknames here is a bad hack.
10047	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10048	# The linker will automatically build a .lib file if we build a DLL.
10049	old_archive_from_new_cmds='true'
10050	# FIXME: Should let the user specify the lib program.
10051	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10052	enable_shared_with_static_runtimes=yes
10053	;;
10054      esac
10055      ;;
10056
10057    darwin* | rhapsody*)
10058
10059
10060  archive_cmds_need_lc=no
10061  hardcode_direct=no
10062  hardcode_automatic=yes
10063  hardcode_shlibpath_var=unsupported
10064  if test yes = "$lt_cv_ld_force_load"; then
10065    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\"`'
10066
10067  else
10068    whole_archive_flag_spec=''
10069  fi
10070  link_all_deplibs=yes
10071  allow_undefined_flag=$_lt_dar_allow_undefined
10072  case $cc_basename in
10073     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10074     *) _lt_dar_can_shared=$GCC ;;
10075  esac
10076  if test yes = "$_lt_dar_can_shared"; then
10077    output_verbose_link_cmd=func_echo_all
10078    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10079    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10080    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"
10081    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"
10082
10083  else
10084  ld_shlibs=no
10085  fi
10086
10087      ;;
10088
10089    dgux*)
10090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091      hardcode_libdir_flag_spec='-L$libdir'
10092      hardcode_shlibpath_var=no
10093      ;;
10094
10095    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10096    # support.  Future versions do this automatically, but an explicit c++rt0.o
10097    # does not break anything, and helps significantly (at the cost of a little
10098    # extra space).
10099    freebsd2.2*)
10100      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10101      hardcode_libdir_flag_spec='-R$libdir'
10102      hardcode_direct=yes
10103      hardcode_shlibpath_var=no
10104      ;;
10105
10106    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10107    freebsd2.*)
10108      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10109      hardcode_direct=yes
10110      hardcode_minus_L=yes
10111      hardcode_shlibpath_var=no
10112      ;;
10113
10114    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10115    freebsd* | dragonfly*)
10116      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10117      hardcode_libdir_flag_spec='-R$libdir'
10118      hardcode_direct=yes
10119      hardcode_shlibpath_var=no
10120      ;;
10121
10122    hpux9*)
10123      if test yes = "$GCC"; then
10124	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'
10125      else
10126	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'
10127      fi
10128      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10129      hardcode_libdir_separator=:
10130      hardcode_direct=yes
10131
10132      # hardcode_minus_L: Not really in the search PATH,
10133      # but as the default location of the library.
10134      hardcode_minus_L=yes
10135      export_dynamic_flag_spec='$wl-E'
10136      ;;
10137
10138    hpux10*)
10139      if test yes,no = "$GCC,$with_gnu_ld"; then
10140	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10141      else
10142	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10143      fi
10144      if test no = "$with_gnu_ld"; then
10145	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10146	hardcode_libdir_separator=:
10147	hardcode_direct=yes
10148	hardcode_direct_absolute=yes
10149	export_dynamic_flag_spec='$wl-E'
10150	# hardcode_minus_L: Not really in the search PATH,
10151	# but as the default location of the library.
10152	hardcode_minus_L=yes
10153      fi
10154      ;;
10155
10156    hpux11*)
10157      if test yes,no = "$GCC,$with_gnu_ld"; then
10158	case $host_cpu in
10159	hppa*64*)
10160	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10161	  ;;
10162	ia64*)
10163	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10164	  ;;
10165	*)
10166	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10167	  ;;
10168	esac
10169      else
10170	case $host_cpu in
10171	hppa*64*)
10172	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10173	  ;;
10174	ia64*)
10175	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10176	  ;;
10177	*)
10178
10179	  # Older versions of the 11.00 compiler do not understand -b yet
10180	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10181	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10182$as_echo_n "checking if $CC understands -b... " >&6; }
10183if ${lt_cv_prog_compiler__b+:} false; then :
10184  $as_echo_n "(cached) " >&6
10185else
10186  lt_cv_prog_compiler__b=no
10187   save_LDFLAGS=$LDFLAGS
10188   LDFLAGS="$LDFLAGS -b"
10189   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10190   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10191     # The linker can only warn and ignore the option if not recognized
10192     # So say no if there are warnings
10193     if test -s conftest.err; then
10194       # Append any errors to the config.log.
10195       cat conftest.err 1>&5
10196       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10197       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10198       if diff conftest.exp conftest.er2 >/dev/null; then
10199         lt_cv_prog_compiler__b=yes
10200       fi
10201     else
10202       lt_cv_prog_compiler__b=yes
10203     fi
10204   fi
10205   $RM -r conftest*
10206   LDFLAGS=$save_LDFLAGS
10207
10208fi
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10210$as_echo "$lt_cv_prog_compiler__b" >&6; }
10211
10212if test yes = "$lt_cv_prog_compiler__b"; then
10213    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10214else
10215    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10216fi
10217
10218	  ;;
10219	esac
10220      fi
10221      if test no = "$with_gnu_ld"; then
10222	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10223	hardcode_libdir_separator=:
10224
10225	case $host_cpu in
10226	hppa*64*|ia64*)
10227	  hardcode_direct=no
10228	  hardcode_shlibpath_var=no
10229	  ;;
10230	*)
10231	  hardcode_direct=yes
10232	  hardcode_direct_absolute=yes
10233	  export_dynamic_flag_spec='$wl-E'
10234
10235	  # hardcode_minus_L: Not really in the search PATH,
10236	  # but as the default location of the library.
10237	  hardcode_minus_L=yes
10238	  ;;
10239	esac
10240      fi
10241      ;;
10242
10243    irix5* | irix6* | nonstopux*)
10244      if test yes = "$GCC"; then
10245	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'
10246	# Try to use the -exported_symbol ld option, if it does not
10247	# work, assume that -exports_file does not work either and
10248	# implicitly export all symbols.
10249	# This should be the same for all languages, so no per-tag cache variable.
10250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10251$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10252if ${lt_cv_irix_exported_symbol+:} false; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  save_LDFLAGS=$LDFLAGS
10256	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10257	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258/* end confdefs.h.  */
10259int foo (void) { return 0; }
10260_ACEOF
10261if ac_fn_c_try_link "$LINENO"; then :
10262  lt_cv_irix_exported_symbol=yes
10263else
10264  lt_cv_irix_exported_symbol=no
10265fi
10266rm -f core conftest.err conftest.$ac_objext \
10267    conftest$ac_exeext conftest.$ac_ext
10268           LDFLAGS=$save_LDFLAGS
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10271$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10272	if test yes = "$lt_cv_irix_exported_symbol"; then
10273          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'
10274	fi
10275      else
10276	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'
10277	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'
10278      fi
10279      archive_cmds_need_lc='no'
10280      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10281      hardcode_libdir_separator=:
10282      inherit_rpath=yes
10283      link_all_deplibs=yes
10284      ;;
10285
10286    linux*)
10287      case $cc_basename in
10288      tcc*)
10289	# Fabrice Bellard et al's Tiny C Compiler
10290	ld_shlibs=yes
10291	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10292	;;
10293      esac
10294      ;;
10295
10296    netbsd*)
10297      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10298	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10299      else
10300	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10301      fi
10302      hardcode_libdir_flag_spec='-R$libdir'
10303      hardcode_direct=yes
10304      hardcode_shlibpath_var=no
10305      ;;
10306
10307    newsos6)
10308      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309      hardcode_direct=yes
10310      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10311      hardcode_libdir_separator=:
10312      hardcode_shlibpath_var=no
10313      ;;
10314
10315    *nto* | *qnx*)
10316      ;;
10317
10318    openbsd* | bitrig*)
10319      if test -f /usr/libexec/ld.so; then
10320	hardcode_direct=yes
10321	hardcode_shlibpath_var=no
10322	hardcode_direct_absolute=yes
10323	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10324	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10325	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10326	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10327	  export_dynamic_flag_spec='$wl-E'
10328	else
10329	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10330	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10331	fi
10332      else
10333	ld_shlibs=no
10334      fi
10335      ;;
10336
10337    os2*)
10338      hardcode_libdir_flag_spec='-L$libdir'
10339      hardcode_minus_L=yes
10340      allow_undefined_flag=unsupported
10341      shrext_cmds=.dll
10342      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10343	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10344	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10345	$ECHO EXPORTS >> $output_objdir/$libname.def~
10346	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10347	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10348	emximp -o $lib $output_objdir/$libname.def'
10349      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10350	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10351	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10352	$ECHO EXPORTS >> $output_objdir/$libname.def~
10353	prefix_cmds="$SED"~
10354	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10355	  prefix_cmds="$prefix_cmds -e 1d";
10356	fi~
10357	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10358	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10359	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10360	emximp -o $lib $output_objdir/$libname.def'
10361      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10362      enable_shared_with_static_runtimes=yes
10363      ;;
10364
10365    osf3*)
10366      if test yes = "$GCC"; then
10367	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10368	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'
10369      else
10370	allow_undefined_flag=' -expect_unresolved \*'
10371	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'
10372      fi
10373      archive_cmds_need_lc='no'
10374      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10375      hardcode_libdir_separator=:
10376      ;;
10377
10378    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10379      if test yes = "$GCC"; then
10380	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10381	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'
10382	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10383      else
10384	allow_undefined_flag=' -expect_unresolved \*'
10385	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'
10386	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~
10387          $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'
10388
10389	# Both c and cxx compiler support -rpath directly
10390	hardcode_libdir_flag_spec='-rpath $libdir'
10391      fi
10392      archive_cmds_need_lc='no'
10393      hardcode_libdir_separator=:
10394      ;;
10395
10396    solaris*)
10397      no_undefined_flag=' -z defs'
10398      if test yes = "$GCC"; then
10399	wlarc='$wl'
10400	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10401	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10402          $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'
10403      else
10404	case `$CC -V 2>&1` in
10405	*"Compilers 5.0"*)
10406	  wlarc=''
10407	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10408	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10409            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10410	  ;;
10411	*)
10412	  wlarc='$wl'
10413	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10414	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10415            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10416	  ;;
10417	esac
10418      fi
10419      hardcode_libdir_flag_spec='-R$libdir'
10420      hardcode_shlibpath_var=no
10421      case $host_os in
10422      solaris2.[0-5] | solaris2.[0-5].*) ;;
10423      *)
10424	# The compiler driver will combine and reorder linker options,
10425	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10426	# but is careful enough not to reorder.
10427	# Supported since Solaris 2.6 (maybe 2.5.1?)
10428	if test yes = "$GCC"; then
10429	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10430	else
10431	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10432	fi
10433	;;
10434      esac
10435      link_all_deplibs=yes
10436      ;;
10437
10438    sunos4*)
10439      if test sequent = "$host_vendor"; then
10440	# Use $CC to link under sequent, because it throws in some extra .o
10441	# files that make .init and .fini sections work.
10442	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10443      else
10444	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10445      fi
10446      hardcode_libdir_flag_spec='-L$libdir'
10447      hardcode_direct=yes
10448      hardcode_minus_L=yes
10449      hardcode_shlibpath_var=no
10450      ;;
10451
10452    sysv4)
10453      case $host_vendor in
10454	sni)
10455	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456	  hardcode_direct=yes # is this really true???
10457	;;
10458	siemens)
10459	  ## LD is ld it makes a PLAMLIB
10460	  ## CC just makes a GrossModule.
10461	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10462	  reload_cmds='$CC -r -o $output$reload_objs'
10463	  hardcode_direct=no
10464        ;;
10465	motorola)
10466	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10468	;;
10469      esac
10470      runpath_var='LD_RUN_PATH'
10471      hardcode_shlibpath_var=no
10472      ;;
10473
10474    sysv4.3*)
10475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476      hardcode_shlibpath_var=no
10477      export_dynamic_flag_spec='-Bexport'
10478      ;;
10479
10480    sysv4*MP*)
10481      if test -d /usr/nec; then
10482	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483	hardcode_shlibpath_var=no
10484	runpath_var=LD_RUN_PATH
10485	hardcode_runpath_var=yes
10486	ld_shlibs=yes
10487      fi
10488      ;;
10489
10490    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10491      no_undefined_flag='$wl-z,text'
10492      archive_cmds_need_lc=no
10493      hardcode_shlibpath_var=no
10494      runpath_var='LD_RUN_PATH'
10495
10496      if test yes = "$GCC"; then
10497	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499      else
10500	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502      fi
10503      ;;
10504
10505    sysv5* | sco3.2v5* | sco5v6*)
10506      # Note: We CANNOT use -z defs as we might desire, because we do not
10507      # link with -lc, and that would cause any symbols used from libc to
10508      # always be unresolved, which means just about no library would
10509      # ever link correctly.  If we're not using GNU ld we use -z text
10510      # though, which does catch some bad symbols but isn't as heavy-handed
10511      # as -z defs.
10512      no_undefined_flag='$wl-z,text'
10513      allow_undefined_flag='$wl-z,nodefs'
10514      archive_cmds_need_lc=no
10515      hardcode_shlibpath_var=no
10516      hardcode_libdir_flag_spec='$wl-R,$libdir'
10517      hardcode_libdir_separator=':'
10518      link_all_deplibs=yes
10519      export_dynamic_flag_spec='$wl-Bexport'
10520      runpath_var='LD_RUN_PATH'
10521
10522      if test yes = "$GCC"; then
10523	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10524	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525      else
10526	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528      fi
10529      ;;
10530
10531    uts4*)
10532      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533      hardcode_libdir_flag_spec='-L$libdir'
10534      hardcode_shlibpath_var=no
10535      ;;
10536
10537    *)
10538      ld_shlibs=no
10539      ;;
10540    esac
10541
10542    if test sni = "$host_vendor"; then
10543      case $host in
10544      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10545	export_dynamic_flag_spec='$wl-Blargedynsym'
10546	;;
10547      esac
10548    fi
10549  fi
10550
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10552$as_echo "$ld_shlibs" >&6; }
10553test no = "$ld_shlibs" && can_build_shared=no
10554
10555with_gnu_ld=$with_gnu_ld
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571#
10572# Do we need to explicitly link libc?
10573#
10574case "x$archive_cmds_need_lc" in
10575x|xyes)
10576  # Assume -lc should be added
10577  archive_cmds_need_lc=yes
10578
10579  if test yes,yes = "$GCC,$enable_shared"; then
10580    case $archive_cmds in
10581    *'~'*)
10582      # FIXME: we may have to deal with multi-command sequences.
10583      ;;
10584    '$CC '*)
10585      # Test whether the compiler implicitly links with -lc since on some
10586      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10587      # to ld, don't add -lc before -lgcc.
10588      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10589$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10590if ${lt_cv_archive_cmds_need_lc+:} false; then :
10591  $as_echo_n "(cached) " >&6
10592else
10593  $RM conftest*
10594	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10595
10596	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10597  (eval $ac_compile) 2>&5
10598  ac_status=$?
10599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10600  test $ac_status = 0; } 2>conftest.err; then
10601	  soname=conftest
10602	  lib=conftest
10603	  libobjs=conftest.$ac_objext
10604	  deplibs=
10605	  wl=$lt_prog_compiler_wl
10606	  pic_flag=$lt_prog_compiler_pic
10607	  compiler_flags=-v
10608	  linker_flags=-v
10609	  verstring=
10610	  output_objdir=.
10611	  libname=conftest
10612	  lt_save_allow_undefined_flag=$allow_undefined_flag
10613	  allow_undefined_flag=
10614	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10615  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10616  ac_status=$?
10617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10618  test $ac_status = 0; }
10619	  then
10620	    lt_cv_archive_cmds_need_lc=no
10621	  else
10622	    lt_cv_archive_cmds_need_lc=yes
10623	  fi
10624	  allow_undefined_flag=$lt_save_allow_undefined_flag
10625	else
10626	  cat conftest.err 1>&5
10627	fi
10628	$RM conftest*
10629
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10632$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10633      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10634      ;;
10635    esac
10636  fi
10637  ;;
10638esac
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
10789
10790
10791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10792$as_echo_n "checking dynamic linker characteristics... " >&6; }
10793
10794if test yes = "$GCC"; then
10795  case $host_os in
10796    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10797    *) lt_awk_arg='/^libraries:/' ;;
10798  esac
10799  case $host_os in
10800    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10801    *) lt_sed_strip_eq='s|=/|/|g' ;;
10802  esac
10803  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10804  case $lt_search_path_spec in
10805  *\;*)
10806    # if the path contains ";" then we assume it to be the separator
10807    # otherwise default to the standard path separator (i.e. ":") - it is
10808    # assumed that no part of a normal pathname contains ";" but that should
10809    # okay in the real world where ";" in dirpaths is itself problematic.
10810    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10811    ;;
10812  *)
10813    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10814    ;;
10815  esac
10816  # Ok, now we have the path, separated by spaces, we can step through it
10817  # and add multilib dir if necessary...
10818  lt_tmp_lt_search_path_spec=
10819  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10820  # ...but if some path component already ends with the multilib dir we assume
10821  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10822  case "$lt_multi_os_dir; $lt_search_path_spec " in
10823  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10824    lt_multi_os_dir=
10825    ;;
10826  esac
10827  for lt_sys_path in $lt_search_path_spec; do
10828    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10829      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10830    elif test -n "$lt_multi_os_dir"; then
10831      test -d "$lt_sys_path" && \
10832	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10833    fi
10834  done
10835  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10836BEGIN {RS = " "; FS = "/|\n";} {
10837  lt_foo = "";
10838  lt_count = 0;
10839  for (lt_i = NF; lt_i > 0; lt_i--) {
10840    if ($lt_i != "" && $lt_i != ".") {
10841      if ($lt_i == "..") {
10842        lt_count++;
10843      } else {
10844        if (lt_count == 0) {
10845          lt_foo = "/" $lt_i lt_foo;
10846        } else {
10847          lt_count--;
10848        }
10849      }
10850    }
10851  }
10852  if (lt_foo != "") { lt_freq[lt_foo]++; }
10853  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10854}'`
10855  # AWK program above erroneously prepends '/' to C:/dos/paths
10856  # for these hosts.
10857  case $host_os in
10858    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10859      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10860  esac
10861  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10862else
10863  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10864fi
10865library_names_spec=
10866libname_spec='lib$name'
10867soname_spec=
10868shrext_cmds=.so
10869postinstall_cmds=
10870postuninstall_cmds=
10871finish_cmds=
10872finish_eval=
10873shlibpath_var=
10874shlibpath_overrides_runpath=unknown
10875version_type=none
10876dynamic_linker="$host_os ld.so"
10877sys_lib_dlsearch_path_spec="/lib /usr/lib"
10878need_lib_prefix=unknown
10879hardcode_into_libs=no
10880
10881# when you set need_version to no, make sure it does not cause -set_version
10882# flags to be left without arguments
10883need_version=unknown
10884
10885
10886
10887case $host_os in
10888aix3*)
10889  version_type=linux # correct to gnu/linux during the next big refactor
10890  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10891  shlibpath_var=LIBPATH
10892
10893  # AIX 3 has no versioning support, so we append a major version to the name.
10894  soname_spec='$libname$release$shared_ext$major'
10895  ;;
10896
10897aix[4-9]*)
10898  version_type=linux # correct to gnu/linux during the next big refactor
10899  need_lib_prefix=no
10900  need_version=no
10901  hardcode_into_libs=yes
10902  if test ia64 = "$host_cpu"; then
10903    # AIX 5 supports IA64
10904    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10905    shlibpath_var=LD_LIBRARY_PATH
10906  else
10907    # With GCC up to 2.95.x, collect2 would create an import file
10908    # for dependence libraries.  The import file would start with
10909    # the line '#! .'.  This would cause the generated library to
10910    # depend on '.', always an invalid library.  This was fixed in
10911    # development snapshots of GCC prior to 3.0.
10912    case $host_os in
10913      aix4 | aix4.[01] | aix4.[01].*)
10914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10915	   echo ' yes '
10916	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10917	:
10918      else
10919	can_build_shared=no
10920      fi
10921      ;;
10922    esac
10923    # Using Import Files as archive members, it is possible to support
10924    # filename-based versioning of shared library archives on AIX. While
10925    # this would work for both with and without runtime linking, it will
10926    # prevent static linking of such archives. So we do filename-based
10927    # shared library versioning with .so extension only, which is used
10928    # when both runtime linking and shared linking is enabled.
10929    # Unfortunately, runtime linking may impact performance, so we do
10930    # not want this to be the default eventually. Also, we use the
10931    # versioned .so libs for executables only if there is the -brtl
10932    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10933    # To allow for filename-based versioning support, we need to create
10934    # libNAME.so.V as an archive file, containing:
10935    # *) an Import File, referring to the versioned filename of the
10936    #    archive as well as the shared archive member, telling the
10937    #    bitwidth (32 or 64) of that shared object, and providing the
10938    #    list of exported symbols of that shared object, eventually
10939    #    decorated with the 'weak' keyword
10940    # *) the shared object with the F_LOADONLY flag set, to really avoid
10941    #    it being seen by the linker.
10942    # At run time we better use the real file rather than another symlink,
10943    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10944
10945    case $with_aix_soname,$aix_use_runtimelinking in
10946    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10947    # soname into executable. Probably we can add versioning support to
10948    # collect2, so additional links can be useful in future.
10949    aix,yes) # traditional libtool
10950      dynamic_linker='AIX unversionable lib.so'
10951      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10952      # instead of lib<name>.a to let people know that these are not
10953      # typical AIX shared libraries.
10954      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955      ;;
10956    aix,no) # traditional AIX only
10957      dynamic_linker='AIX lib.a(lib.so.V)'
10958      # We preserve .a as extension for shared libraries through AIX4.2
10959      # and later when we are not doing run time linking.
10960      library_names_spec='$libname$release.a $libname.a'
10961      soname_spec='$libname$release$shared_ext$major'
10962      ;;
10963    svr4,*) # full svr4 only
10964      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10965      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10966      # We do not specify a path in Import Files, so LIBPATH fires.
10967      shlibpath_overrides_runpath=yes
10968      ;;
10969    *,yes) # both, prefer svr4
10970      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10971      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10972      # unpreferred sharedlib libNAME.a needs extra handling
10973      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"'
10974      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"'
10975      # We do not specify a path in Import Files, so LIBPATH fires.
10976      shlibpath_overrides_runpath=yes
10977      ;;
10978    *,no) # both, prefer aix
10979      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10980      library_names_spec='$libname$release.a $libname.a'
10981      soname_spec='$libname$release$shared_ext$major'
10982      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10983      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)'
10984      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"'
10985      ;;
10986    esac
10987    shlibpath_var=LIBPATH
10988  fi
10989  ;;
10990
10991amigaos*)
10992  case $host_cpu in
10993  powerpc)
10994    # Since July 2007 AmigaOS4 officially supports .so libraries.
10995    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10996    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10997    ;;
10998  m68k)
10999    library_names_spec='$libname.ixlibrary $libname.a'
11000    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11001    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'
11002    ;;
11003  esac
11004  ;;
11005
11006beos*)
11007  library_names_spec='$libname$shared_ext'
11008  dynamic_linker="$host_os ld.so"
11009  shlibpath_var=LIBRARY_PATH
11010  ;;
11011
11012bsdi[45]*)
11013  version_type=linux # correct to gnu/linux during the next big refactor
11014  need_version=no
11015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11016  soname_spec='$libname$release$shared_ext$major'
11017  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11018  shlibpath_var=LD_LIBRARY_PATH
11019  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11020  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11021  # the default ld.so.conf also contains /usr/contrib/lib and
11022  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11023  # libtool to hard-code these into programs
11024  ;;
11025
11026cygwin* | mingw* | pw32* | cegcc*)
11027  version_type=windows
11028  shrext_cmds=.dll
11029  need_version=no
11030  need_lib_prefix=no
11031
11032  case $GCC,$cc_basename in
11033  yes,*)
11034    # gcc
11035    library_names_spec='$libname.dll.a'
11036    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11037    postinstall_cmds='base_file=`basename \$file`~
11038      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11039      dldir=$destdir/`dirname \$dlpath`~
11040      test -d \$dldir || mkdir -p \$dldir~
11041      $install_prog $dir/$dlname \$dldir/$dlname~
11042      chmod a+x \$dldir/$dlname~
11043      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11044        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11045      fi'
11046    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11047      dlpath=$dir/\$dldll~
11048       $RM \$dlpath'
11049    shlibpath_overrides_runpath=yes
11050
11051    case $host_os in
11052    cygwin*)
11053      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11054      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11055
11056      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11057      ;;
11058    mingw* | cegcc*)
11059      # MinGW DLLs use traditional 'lib' prefix
11060      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11061      ;;
11062    pw32*)
11063      # pw32 DLLs use 'pw' prefix rather than 'lib'
11064      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11065      ;;
11066    esac
11067    dynamic_linker='Win32 ld.exe'
11068    ;;
11069
11070  *,cl*)
11071    # Native MSVC
11072    libname_spec='$name'
11073    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11074    library_names_spec='$libname.dll.lib'
11075
11076    case $build_os in
11077    mingw*)
11078      sys_lib_search_path_spec=
11079      lt_save_ifs=$IFS
11080      IFS=';'
11081      for lt_path in $LIB
11082      do
11083        IFS=$lt_save_ifs
11084        # Let DOS variable expansion print the short 8.3 style file name.
11085        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11086        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11087      done
11088      IFS=$lt_save_ifs
11089      # Convert to MSYS style.
11090      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11091      ;;
11092    cygwin*)
11093      # Convert to unix form, then to dos form, then back to unix form
11094      # but this time dos style (no spaces!) so that the unix form looks
11095      # like /cygdrive/c/PROGRA~1:/cygdr...
11096      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11097      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11098      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11099      ;;
11100    *)
11101      sys_lib_search_path_spec=$LIB
11102      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11103        # It is most probably a Windows format PATH.
11104        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11105      else
11106        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11107      fi
11108      # FIXME: find the short name or the path components, as spaces are
11109      # common. (e.g. "Program Files" -> "PROGRA~1")
11110      ;;
11111    esac
11112
11113    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11114    postinstall_cmds='base_file=`basename \$file`~
11115      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11116      dldir=$destdir/`dirname \$dlpath`~
11117      test -d \$dldir || mkdir -p \$dldir~
11118      $install_prog $dir/$dlname \$dldir/$dlname'
11119    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11120      dlpath=$dir/\$dldll~
11121       $RM \$dlpath'
11122    shlibpath_overrides_runpath=yes
11123    dynamic_linker='Win32 link.exe'
11124    ;;
11125
11126  *)
11127    # Assume MSVC wrapper
11128    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11129    dynamic_linker='Win32 ld.exe'
11130    ;;
11131  esac
11132  # FIXME: first we should search . and the directory the executable is in
11133  shlibpath_var=PATH
11134  ;;
11135
11136darwin* | rhapsody*)
11137  dynamic_linker="$host_os dyld"
11138  version_type=darwin
11139  need_lib_prefix=no
11140  need_version=no
11141  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11142  soname_spec='$libname$release$major$shared_ext'
11143  shlibpath_overrides_runpath=yes
11144  shlibpath_var=DYLD_LIBRARY_PATH
11145  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11146
11147  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11148  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11149  ;;
11150
11151dgux*)
11152  version_type=linux # correct to gnu/linux during the next big refactor
11153  need_lib_prefix=no
11154  need_version=no
11155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156  soname_spec='$libname$release$shared_ext$major'
11157  shlibpath_var=LD_LIBRARY_PATH
11158  ;;
11159
11160freebsd* | dragonfly*)
11161  # DragonFly does not have aout.  When/if they implement a new
11162  # versioning mechanism, adjust this.
11163  if test -x /usr/bin/objformat; then
11164    objformat=`/usr/bin/objformat`
11165  else
11166    case $host_os in
11167    freebsd[23].*) objformat=aout ;;
11168    *) objformat=elf ;;
11169    esac
11170  fi
11171  version_type=freebsd-$objformat
11172  case $version_type in
11173    freebsd-elf*)
11174      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11175      soname_spec='$libname$release$shared_ext$major'
11176      need_version=no
11177      need_lib_prefix=no
11178      ;;
11179    freebsd-*)
11180      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11181      need_version=yes
11182      ;;
11183  esac
11184  shlibpath_var=LD_LIBRARY_PATH
11185  case $host_os in
11186  freebsd2.*)
11187    shlibpath_overrides_runpath=yes
11188    ;;
11189  freebsd3.[01]* | freebsdelf3.[01]*)
11190    shlibpath_overrides_runpath=yes
11191    hardcode_into_libs=yes
11192    ;;
11193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11195    shlibpath_overrides_runpath=no
11196    hardcode_into_libs=yes
11197    ;;
11198  *) # from 4.6 on, and DragonFly
11199    shlibpath_overrides_runpath=yes
11200    hardcode_into_libs=yes
11201    ;;
11202  esac
11203  ;;
11204
11205haiku*)
11206  version_type=linux # correct to gnu/linux during the next big refactor
11207  need_lib_prefix=no
11208  need_version=no
11209  dynamic_linker="$host_os runtime_loader"
11210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11211  soname_spec='$libname$release$shared_ext$major'
11212  shlibpath_var=LIBRARY_PATH
11213  shlibpath_overrides_runpath=no
11214  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11215  hardcode_into_libs=yes
11216  ;;
11217
11218hpux9* | hpux10* | hpux11*)
11219  # Give a soname corresponding to the major version so that dld.sl refuses to
11220  # link against other versions.
11221  version_type=sunos
11222  need_lib_prefix=no
11223  need_version=no
11224  case $host_cpu in
11225  ia64*)
11226    shrext_cmds='.so'
11227    hardcode_into_libs=yes
11228    dynamic_linker="$host_os dld.so"
11229    shlibpath_var=LD_LIBRARY_PATH
11230    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11231    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11232    soname_spec='$libname$release$shared_ext$major'
11233    if test 32 = "$HPUX_IA64_MODE"; then
11234      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11235      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11236    else
11237      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11238      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11239    fi
11240    ;;
11241  hppa*64*)
11242    shrext_cmds='.sl'
11243    hardcode_into_libs=yes
11244    dynamic_linker="$host_os dld.sl"
11245    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11246    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11247    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248    soname_spec='$libname$release$shared_ext$major'
11249    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11250    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11251    ;;
11252  *)
11253    shrext_cmds='.sl'
11254    dynamic_linker="$host_os dld.sl"
11255    shlibpath_var=SHLIB_PATH
11256    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
11260  esac
11261  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11262  postinstall_cmds='chmod 555 $lib'
11263  # or fails outright, so override atomically:
11264  install_override_mode=555
11265  ;;
11266
11267interix[3-9]*)
11268  version_type=linux # correct to gnu/linux during the next big refactor
11269  need_lib_prefix=no
11270  need_version=no
11271  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11272  soname_spec='$libname$release$shared_ext$major'
11273  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11274  shlibpath_var=LD_LIBRARY_PATH
11275  shlibpath_overrides_runpath=no
11276  hardcode_into_libs=yes
11277  ;;
11278
11279irix5* | irix6* | nonstopux*)
11280  case $host_os in
11281    nonstopux*) version_type=nonstopux ;;
11282    *)
11283	if test yes = "$lt_cv_prog_gnu_ld"; then
11284		version_type=linux # correct to gnu/linux during the next big refactor
11285	else
11286		version_type=irix
11287	fi ;;
11288  esac
11289  need_lib_prefix=no
11290  need_version=no
11291  soname_spec='$libname$release$shared_ext$major'
11292  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11293  case $host_os in
11294  irix5* | nonstopux*)
11295    libsuff= shlibsuff=
11296    ;;
11297  *)
11298    case $LD in # libtool.m4 will add one of these switches to LD
11299    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11300      libsuff= shlibsuff= libmagic=32-bit;;
11301    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11302      libsuff=32 shlibsuff=N32 libmagic=N32;;
11303    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11304      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11305    *) libsuff= shlibsuff= libmagic=never-match;;
11306    esac
11307    ;;
11308  esac
11309  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11310  shlibpath_overrides_runpath=no
11311  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11312  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11313  hardcode_into_libs=yes
11314  ;;
11315
11316# No shared lib support for Linux oldld, aout, or coff.
11317linux*oldld* | linux*aout* | linux*coff*)
11318  dynamic_linker=no
11319  ;;
11320
11321linux*android*)
11322  version_type=none # Android doesn't support versioned libraries.
11323  need_lib_prefix=no
11324  need_version=no
11325  library_names_spec='$libname$release$shared_ext'
11326  soname_spec='$libname$release$shared_ext'
11327  finish_cmds=
11328  shlibpath_var=LD_LIBRARY_PATH
11329  shlibpath_overrides_runpath=yes
11330
11331  # This implies no fast_install, which is unacceptable.
11332  # Some rework will be needed to allow for fast_install
11333  # before this can be enabled.
11334  hardcode_into_libs=yes
11335
11336  dynamic_linker='Android linker'
11337  # Don't embed -rpath directories since the linker doesn't support them.
11338  hardcode_libdir_flag_spec='-L$libdir'
11339  ;;
11340
11341# This must be glibc/ELF.
11342linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11343  version_type=linux # correct to gnu/linux during the next big refactor
11344  need_lib_prefix=no
11345  need_version=no
11346  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11347  soname_spec='$libname$release$shared_ext$major'
11348  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11349  shlibpath_var=LD_LIBRARY_PATH
11350  shlibpath_overrides_runpath=no
11351
11352  # Some binutils ld are patched to set DT_RUNPATH
11353  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11354  $as_echo_n "(cached) " >&6
11355else
11356  lt_cv_shlibpath_overrides_runpath=no
11357    save_LDFLAGS=$LDFLAGS
11358    save_libdir=$libdir
11359    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363
11364int
11365main ()
11366{
11367
11368  ;
11369  return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11374  lt_cv_shlibpath_overrides_runpath=yes
11375fi
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378    conftest$ac_exeext conftest.$ac_ext
11379    LDFLAGS=$save_LDFLAGS
11380    libdir=$save_libdir
11381
11382fi
11383
11384  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11385
11386  # This implies no fast_install, which is unacceptable.
11387  # Some rework will be needed to allow for fast_install
11388  # before this can be enabled.
11389  hardcode_into_libs=yes
11390
11391  # Add ABI-specific directories to the system library path.
11392  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11393
11394  # Ideally, we could use ldconfig to report *all* directores which are
11395  # searched for libraries, however this is still not possible.  Aside from not
11396  # being certain /sbin/ldconfig is available, command
11397  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11398  # even though it is searched at run-time.  Try to do the best guess by
11399  # appending ld.so.conf contents (and includes) to the search path.
11400  if test -f /etc/ld.so.conf; then
11401    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' ' '`
11402    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11403  fi
11404
11405  # We used to test for /lib/ld.so.1 and disable shared libraries on
11406  # powerpc, because MkLinux only supported shared libraries with the
11407  # GNU dynamic linker.  Since this was broken with cross compilers,
11408  # most powerpc-linux boxes support dynamic linking these days and
11409  # people can always --disable-shared, the test was removed, and we
11410  # assume the GNU/Linux dynamic linker is in use.
11411  dynamic_linker='GNU/Linux ld.so'
11412  ;;
11413
11414netbsd*)
11415  version_type=sunos
11416  need_lib_prefix=no
11417  need_version=no
11418  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11419    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11420    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11421    dynamic_linker='NetBSD (a.out) ld.so'
11422  else
11423    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424    soname_spec='$libname$release$shared_ext$major'
11425    dynamic_linker='NetBSD ld.elf_so'
11426  fi
11427  shlibpath_var=LD_LIBRARY_PATH
11428  shlibpath_overrides_runpath=yes
11429  hardcode_into_libs=yes
11430  ;;
11431
11432newsos6)
11433  version_type=linux # correct to gnu/linux during the next big refactor
11434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11435  shlibpath_var=LD_LIBRARY_PATH
11436  shlibpath_overrides_runpath=yes
11437  ;;
11438
11439*nto* | *qnx*)
11440  version_type=qnx
11441  need_lib_prefix=no
11442  need_version=no
11443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444  soname_spec='$libname$release$shared_ext$major'
11445  shlibpath_var=LD_LIBRARY_PATH
11446  shlibpath_overrides_runpath=no
11447  hardcode_into_libs=yes
11448  dynamic_linker='ldqnx.so'
11449  ;;
11450
11451openbsd* | bitrig*)
11452  version_type=sunos
11453  sys_lib_dlsearch_path_spec=/usr/lib
11454  need_lib_prefix=no
11455  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11456    need_version=no
11457  else
11458    need_version=yes
11459  fi
11460  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11461  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462  shlibpath_var=LD_LIBRARY_PATH
11463  shlibpath_overrides_runpath=yes
11464  ;;
11465
11466os2*)
11467  libname_spec='$name'
11468  version_type=windows
11469  shrext_cmds=.dll
11470  need_version=no
11471  need_lib_prefix=no
11472  # OS/2 can only load a DLL with a base name of 8 characters or less.
11473  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11474    v=$($ECHO $release$versuffix | tr -d .-);
11475    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11476    $ECHO $n$v`$shared_ext'
11477  library_names_spec='${libname}_dll.$libext'
11478  dynamic_linker='OS/2 ld.exe'
11479  shlibpath_var=BEGINLIBPATH
11480  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11481  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482  postinstall_cmds='base_file=`basename \$file`~
11483    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11484    dldir=$destdir/`dirname \$dlpath`~
11485    test -d \$dldir || mkdir -p \$dldir~
11486    $install_prog $dir/$dlname \$dldir/$dlname~
11487    chmod a+x \$dldir/$dlname~
11488    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11490    fi'
11491  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11492    dlpath=$dir/\$dldll~
11493    $RM \$dlpath'
11494  ;;
11495
11496osf3* | osf4* | osf5*)
11497  version_type=osf
11498  need_lib_prefix=no
11499  need_version=no
11500  soname_spec='$libname$release$shared_ext$major'
11501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502  shlibpath_var=LD_LIBRARY_PATH
11503  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11504  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11505  ;;
11506
11507rdos*)
11508  dynamic_linker=no
11509  ;;
11510
11511solaris*)
11512  version_type=linux # correct to gnu/linux during the next big refactor
11513  need_lib_prefix=no
11514  need_version=no
11515  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516  soname_spec='$libname$release$shared_ext$major'
11517  shlibpath_var=LD_LIBRARY_PATH
11518  shlibpath_overrides_runpath=yes
11519  hardcode_into_libs=yes
11520  # ldd complains unless libraries are executable
11521  postinstall_cmds='chmod +x $lib'
11522  ;;
11523
11524sunos4*)
11525  version_type=sunos
11526  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11527  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=yes
11530  if test yes = "$with_gnu_ld"; then
11531    need_lib_prefix=no
11532  fi
11533  need_version=yes
11534  ;;
11535
11536sysv4 | sysv4.3*)
11537  version_type=linux # correct to gnu/linux during the next big refactor
11538  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539  soname_spec='$libname$release$shared_ext$major'
11540  shlibpath_var=LD_LIBRARY_PATH
11541  case $host_vendor in
11542    sni)
11543      shlibpath_overrides_runpath=no
11544      need_lib_prefix=no
11545      runpath_var=LD_RUN_PATH
11546      ;;
11547    siemens)
11548      need_lib_prefix=no
11549      ;;
11550    motorola)
11551      need_lib_prefix=no
11552      need_version=no
11553      shlibpath_overrides_runpath=no
11554      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11555      ;;
11556  esac
11557  ;;
11558
11559sysv4*MP*)
11560  if test -d /usr/nec; then
11561    version_type=linux # correct to gnu/linux during the next big refactor
11562    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11563    soname_spec='$libname$shared_ext.$major'
11564    shlibpath_var=LD_LIBRARY_PATH
11565  fi
11566  ;;
11567
11568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11569  version_type=sco
11570  need_lib_prefix=no
11571  need_version=no
11572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11573  soname_spec='$libname$release$shared_ext$major'
11574  shlibpath_var=LD_LIBRARY_PATH
11575  shlibpath_overrides_runpath=yes
11576  hardcode_into_libs=yes
11577  if test yes = "$with_gnu_ld"; then
11578    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11579  else
11580    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11581    case $host_os in
11582      sco3.2v5*)
11583        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11584	;;
11585    esac
11586  fi
11587  sys_lib_dlsearch_path_spec='/usr/lib'
11588  ;;
11589
11590tpf*)
11591  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11592  version_type=linux # correct to gnu/linux during the next big refactor
11593  need_lib_prefix=no
11594  need_version=no
11595  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11596  shlibpath_var=LD_LIBRARY_PATH
11597  shlibpath_overrides_runpath=no
11598  hardcode_into_libs=yes
11599  ;;
11600
11601uts4*)
11602  version_type=linux # correct to gnu/linux during the next big refactor
11603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604  soname_spec='$libname$release$shared_ext$major'
11605  shlibpath_var=LD_LIBRARY_PATH
11606  ;;
11607
11608*)
11609  dynamic_linker=no
11610  ;;
11611esac
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11613$as_echo "$dynamic_linker" >&6; }
11614test no = "$dynamic_linker" && can_build_shared=no
11615
11616variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11617if test yes = "$GCC"; then
11618  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11619fi
11620
11621if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11622  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11623fi
11624
11625if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11626  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11627fi
11628
11629# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11630configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11631
11632# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11633func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11634
11635# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11636configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11637
11638
11639
11640
11641
11642
11643
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11735$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11736hardcode_action=
11737if test -n "$hardcode_libdir_flag_spec" ||
11738   test -n "$runpath_var" ||
11739   test yes = "$hardcode_automatic"; then
11740
11741  # We can hardcode non-existent directories.
11742  if test no != "$hardcode_direct" &&
11743     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11744     # have to relink, otherwise we might link with an installed library
11745     # when we should be linking with a yet-to-be-installed one
11746     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11747     test no != "$hardcode_minus_L"; then
11748    # Linking always hardcodes the temporary library directory.
11749    hardcode_action=relink
11750  else
11751    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11752    hardcode_action=immediate
11753  fi
11754else
11755  # We cannot hardcode anything, or else we can only hardcode existing
11756  # directories.
11757  hardcode_action=unsupported
11758fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11760$as_echo "$hardcode_action" >&6; }
11761
11762if test relink = "$hardcode_action" ||
11763   test yes = "$inherit_rpath"; then
11764  # Fast installation is not supported
11765  enable_fast_install=no
11766elif test yes = "$shlibpath_overrides_runpath" ||
11767     test no = "$enable_shared"; then
11768  # Fast installation is not necessary
11769  enable_fast_install=needless
11770fi
11771
11772
11773
11774
11775
11776
11777  if test yes != "$enable_dlopen"; then
11778  enable_dlopen=unknown
11779  enable_dlopen_self=unknown
11780  enable_dlopen_self_static=unknown
11781else
11782  lt_cv_dlopen=no
11783  lt_cv_dlopen_libs=
11784
11785  case $host_os in
11786  beos*)
11787    lt_cv_dlopen=load_add_on
11788    lt_cv_dlopen_libs=
11789    lt_cv_dlopen_self=yes
11790    ;;
11791
11792  mingw* | pw32* | cegcc*)
11793    lt_cv_dlopen=LoadLibrary
11794    lt_cv_dlopen_libs=
11795    ;;
11796
11797  cygwin*)
11798    lt_cv_dlopen=dlopen
11799    lt_cv_dlopen_libs=
11800    ;;
11801
11802  darwin*)
11803    # if libdl is installed we need to link against it
11804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11805$as_echo_n "checking for dlopen in -ldl... " >&6; }
11806if ${ac_cv_lib_dl_dlopen+:} false; then :
11807  $as_echo_n "(cached) " >&6
11808else
11809  ac_check_lib_save_LIBS=$LIBS
11810LIBS="-ldl  $LIBS"
11811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812/* end confdefs.h.  */
11813
11814/* Override any GCC internal prototype to avoid an error.
11815   Use char because int might match the return type of a GCC
11816   builtin and then its argument prototype would still apply.  */
11817#ifdef __cplusplus
11818extern "C"
11819#endif
11820char dlopen ();
11821int
11822main ()
11823{
11824return dlopen ();
11825  ;
11826  return 0;
11827}
11828_ACEOF
11829if ac_fn_c_try_link "$LINENO"; then :
11830  ac_cv_lib_dl_dlopen=yes
11831else
11832  ac_cv_lib_dl_dlopen=no
11833fi
11834rm -f core conftest.err conftest.$ac_objext \
11835    conftest$ac_exeext conftest.$ac_ext
11836LIBS=$ac_check_lib_save_LIBS
11837fi
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11839$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11840if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11841  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11842else
11843
11844    lt_cv_dlopen=dyld
11845    lt_cv_dlopen_libs=
11846    lt_cv_dlopen_self=yes
11847
11848fi
11849
11850    ;;
11851
11852  tpf*)
11853    # Don't try to run any link tests for TPF.  We know it's impossible
11854    # because TPF is a cross-compiler, and we know how we open DSOs.
11855    lt_cv_dlopen=dlopen
11856    lt_cv_dlopen_libs=
11857    lt_cv_dlopen_self=no
11858    ;;
11859
11860  *)
11861    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11862if test "x$ac_cv_func_shl_load" = xyes; then :
11863  lt_cv_dlopen=shl_load
11864else
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11866$as_echo_n "checking for shl_load in -ldld... " >&6; }
11867if ${ac_cv_lib_dld_shl_load+:} false; then :
11868  $as_echo_n "(cached) " >&6
11869else
11870  ac_check_lib_save_LIBS=$LIBS
11871LIBS="-ldld  $LIBS"
11872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h.  */
11874
11875/* Override any GCC internal prototype to avoid an error.
11876   Use char because int might match the return type of a GCC
11877   builtin and then its argument prototype would still apply.  */
11878#ifdef __cplusplus
11879extern "C"
11880#endif
11881char shl_load ();
11882int
11883main ()
11884{
11885return shl_load ();
11886  ;
11887  return 0;
11888}
11889_ACEOF
11890if ac_fn_c_try_link "$LINENO"; then :
11891  ac_cv_lib_dld_shl_load=yes
11892else
11893  ac_cv_lib_dld_shl_load=no
11894fi
11895rm -f core conftest.err conftest.$ac_objext \
11896    conftest$ac_exeext conftest.$ac_ext
11897LIBS=$ac_check_lib_save_LIBS
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11900$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11901if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11902  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11903else
11904  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11905if test "x$ac_cv_func_dlopen" = xyes; then :
11906  lt_cv_dlopen=dlopen
11907else
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11909$as_echo_n "checking for dlopen in -ldl... " >&6; }
11910if ${ac_cv_lib_dl_dlopen+:} false; then :
11911  $as_echo_n "(cached) " >&6
11912else
11913  ac_check_lib_save_LIBS=$LIBS
11914LIBS="-ldl  $LIBS"
11915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916/* end confdefs.h.  */
11917
11918/* Override any GCC internal prototype to avoid an error.
11919   Use char because int might match the return type of a GCC
11920   builtin and then its argument prototype would still apply.  */
11921#ifdef __cplusplus
11922extern "C"
11923#endif
11924char dlopen ();
11925int
11926main ()
11927{
11928return dlopen ();
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  ac_cv_lib_dl_dlopen=yes
11935else
11936  ac_cv_lib_dl_dlopen=no
11937fi
11938rm -f core conftest.err conftest.$ac_objext \
11939    conftest$ac_exeext conftest.$ac_ext
11940LIBS=$ac_check_lib_save_LIBS
11941fi
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11943$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11944if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11945  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11946else
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11948$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11949if ${ac_cv_lib_svld_dlopen+:} false; then :
11950  $as_echo_n "(cached) " >&6
11951else
11952  ac_check_lib_save_LIBS=$LIBS
11953LIBS="-lsvld  $LIBS"
11954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955/* end confdefs.h.  */
11956
11957/* Override any GCC internal prototype to avoid an error.
11958   Use char because int might match the return type of a GCC
11959   builtin and then its argument prototype would still apply.  */
11960#ifdef __cplusplus
11961extern "C"
11962#endif
11963char dlopen ();
11964int
11965main ()
11966{
11967return dlopen ();
11968  ;
11969  return 0;
11970}
11971_ACEOF
11972if ac_fn_c_try_link "$LINENO"; then :
11973  ac_cv_lib_svld_dlopen=yes
11974else
11975  ac_cv_lib_svld_dlopen=no
11976fi
11977rm -f core conftest.err conftest.$ac_objext \
11978    conftest$ac_exeext conftest.$ac_ext
11979LIBS=$ac_check_lib_save_LIBS
11980fi
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11982$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11983if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11984  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11985else
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11987$as_echo_n "checking for dld_link in -ldld... " >&6; }
11988if ${ac_cv_lib_dld_dld_link+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  ac_check_lib_save_LIBS=$LIBS
11992LIBS="-ldld  $LIBS"
11993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995
11996/* Override any GCC internal prototype to avoid an error.
11997   Use char because int might match the return type of a GCC
11998   builtin and then its argument prototype would still apply.  */
11999#ifdef __cplusplus
12000extern "C"
12001#endif
12002char dld_link ();
12003int
12004main ()
12005{
12006return dld_link ();
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_link "$LINENO"; then :
12012  ac_cv_lib_dld_dld_link=yes
12013else
12014  ac_cv_lib_dld_dld_link=no
12015fi
12016rm -f core conftest.err conftest.$ac_objext \
12017    conftest$ac_exeext conftest.$ac_ext
12018LIBS=$ac_check_lib_save_LIBS
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12021$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12022if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12023  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12024fi
12025
12026
12027fi
12028
12029
12030fi
12031
12032
12033fi
12034
12035
12036fi
12037
12038
12039fi
12040
12041    ;;
12042  esac
12043
12044  if test no = "$lt_cv_dlopen"; then
12045    enable_dlopen=no
12046  else
12047    enable_dlopen=yes
12048  fi
12049
12050  case $lt_cv_dlopen in
12051  dlopen)
12052    save_CPPFLAGS=$CPPFLAGS
12053    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12054
12055    save_LDFLAGS=$LDFLAGS
12056    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12057
12058    save_LIBS=$LIBS
12059    LIBS="$lt_cv_dlopen_libs $LIBS"
12060
12061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12062$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12063if ${lt_cv_dlopen_self+:} false; then :
12064  $as_echo_n "(cached) " >&6
12065else
12066  	  if test yes = "$cross_compiling"; then :
12067  lt_cv_dlopen_self=cross
12068else
12069  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12070  lt_status=$lt_dlunknown
12071  cat > conftest.$ac_ext <<_LT_EOF
12072#line $LINENO "configure"
12073#include "confdefs.h"
12074
12075#if HAVE_DLFCN_H
12076#include <dlfcn.h>
12077#endif
12078
12079#include <stdio.h>
12080
12081#ifdef RTLD_GLOBAL
12082#  define LT_DLGLOBAL		RTLD_GLOBAL
12083#else
12084#  ifdef DL_GLOBAL
12085#    define LT_DLGLOBAL		DL_GLOBAL
12086#  else
12087#    define LT_DLGLOBAL		0
12088#  endif
12089#endif
12090
12091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12092   find out it does not work in some platform. */
12093#ifndef LT_DLLAZY_OR_NOW
12094#  ifdef RTLD_LAZY
12095#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12096#  else
12097#    ifdef DL_LAZY
12098#      define LT_DLLAZY_OR_NOW		DL_LAZY
12099#    else
12100#      ifdef RTLD_NOW
12101#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12102#      else
12103#        ifdef DL_NOW
12104#          define LT_DLLAZY_OR_NOW	DL_NOW
12105#        else
12106#          define LT_DLLAZY_OR_NOW	0
12107#        endif
12108#      endif
12109#    endif
12110#  endif
12111#endif
12112
12113/* When -fvisibility=hidden is used, assume the code has been annotated
12114   correspondingly for the symbols needed.  */
12115#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12116int fnord () __attribute__((visibility("default")));
12117#endif
12118
12119int fnord () { return 42; }
12120int main ()
12121{
12122  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12123  int status = $lt_dlunknown;
12124
12125  if (self)
12126    {
12127      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12128      else
12129        {
12130	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12131          else puts (dlerror ());
12132	}
12133      /* dlclose (self); */
12134    }
12135  else
12136    puts (dlerror ());
12137
12138  return status;
12139}
12140_LT_EOF
12141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12142  (eval $ac_link) 2>&5
12143  ac_status=$?
12144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12146    (./conftest; exit; ) >&5 2>/dev/null
12147    lt_status=$?
12148    case x$lt_status in
12149      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12150      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12151      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12152    esac
12153  else :
12154    # compilation failed
12155    lt_cv_dlopen_self=no
12156  fi
12157fi
12158rm -fr conftest*
12159
12160
12161fi
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12163$as_echo "$lt_cv_dlopen_self" >&6; }
12164
12165    if test yes = "$lt_cv_dlopen_self"; then
12166      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12167      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12168$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12169if ${lt_cv_dlopen_self_static+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  	  if test yes = "$cross_compiling"; then :
12173  lt_cv_dlopen_self_static=cross
12174else
12175  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12176  lt_status=$lt_dlunknown
12177  cat > conftest.$ac_ext <<_LT_EOF
12178#line $LINENO "configure"
12179#include "confdefs.h"
12180
12181#if HAVE_DLFCN_H
12182#include <dlfcn.h>
12183#endif
12184
12185#include <stdio.h>
12186
12187#ifdef RTLD_GLOBAL
12188#  define LT_DLGLOBAL		RTLD_GLOBAL
12189#else
12190#  ifdef DL_GLOBAL
12191#    define LT_DLGLOBAL		DL_GLOBAL
12192#  else
12193#    define LT_DLGLOBAL		0
12194#  endif
12195#endif
12196
12197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12198   find out it does not work in some platform. */
12199#ifndef LT_DLLAZY_OR_NOW
12200#  ifdef RTLD_LAZY
12201#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12202#  else
12203#    ifdef DL_LAZY
12204#      define LT_DLLAZY_OR_NOW		DL_LAZY
12205#    else
12206#      ifdef RTLD_NOW
12207#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12208#      else
12209#        ifdef DL_NOW
12210#          define LT_DLLAZY_OR_NOW	DL_NOW
12211#        else
12212#          define LT_DLLAZY_OR_NOW	0
12213#        endif
12214#      endif
12215#    endif
12216#  endif
12217#endif
12218
12219/* When -fvisibility=hidden is used, assume the code has been annotated
12220   correspondingly for the symbols needed.  */
12221#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12222int fnord () __attribute__((visibility("default")));
12223#endif
12224
12225int fnord () { return 42; }
12226int main ()
12227{
12228  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229  int status = $lt_dlunknown;
12230
12231  if (self)
12232    {
12233      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12234      else
12235        {
12236	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12237          else puts (dlerror ());
12238	}
12239      /* dlclose (self); */
12240    }
12241  else
12242    puts (dlerror ());
12243
12244  return status;
12245}
12246_LT_EOF
12247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248  (eval $ac_link) 2>&5
12249  ac_status=$?
12250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12252    (./conftest; exit; ) >&5 2>/dev/null
12253    lt_status=$?
12254    case x$lt_status in
12255      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12256      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12257      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12258    esac
12259  else :
12260    # compilation failed
12261    lt_cv_dlopen_self_static=no
12262  fi
12263fi
12264rm -fr conftest*
12265
12266
12267fi
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12269$as_echo "$lt_cv_dlopen_self_static" >&6; }
12270    fi
12271
12272    CPPFLAGS=$save_CPPFLAGS
12273    LDFLAGS=$save_LDFLAGS
12274    LIBS=$save_LIBS
12275    ;;
12276  esac
12277
12278  case $lt_cv_dlopen_self in
12279  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12280  *) enable_dlopen_self=unknown ;;
12281  esac
12282
12283  case $lt_cv_dlopen_self_static in
12284  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12285  *) enable_dlopen_self_static=unknown ;;
12286  esac
12287fi
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305striplib=
12306old_striplib=
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12308$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12309if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12310  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12311  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313$as_echo "yes" >&6; }
12314else
12315# FIXME - insert some real tests, host_os isn't really good enough
12316  case $host_os in
12317  darwin*)
12318    if test -n "$STRIP"; then
12319      striplib="$STRIP -x"
12320      old_striplib="$STRIP -S"
12321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322$as_echo "yes" >&6; }
12323    else
12324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
12326    fi
12327    ;;
12328  *)
12329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
12331    ;;
12332  esac
12333fi
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346  # Report what library types will actually be built
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12348$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12350$as_echo "$can_build_shared" >&6; }
12351
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12353$as_echo_n "checking whether to build shared libraries... " >&6; }
12354  test no = "$can_build_shared" && enable_shared=no
12355
12356  # On AIX, shared libraries and static libraries use the same namespace, and
12357  # are all built from PIC.
12358  case $host_os in
12359  aix3*)
12360    test yes = "$enable_shared" && enable_static=no
12361    if test -n "$RANLIB"; then
12362      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12363      postinstall_cmds='$RANLIB $lib'
12364    fi
12365    ;;
12366
12367  aix[4-9]*)
12368    if test ia64 != "$host_cpu"; then
12369      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12370      yes,aix,yes) ;;			# shared object as lib.so file only
12371      yes,svr4,*) ;;			# shared object as lib.so archive member only
12372      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12373      esac
12374    fi
12375    ;;
12376  esac
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12378$as_echo "$enable_shared" >&6; }
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12381$as_echo_n "checking whether to build static libraries... " >&6; }
12382  # Make sure either enable_shared or enable_static is yes.
12383  test yes = "$enable_shared" || enable_static=yes
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12385$as_echo "$enable_static" >&6; }
12386
12387
12388
12389
12390fi
12391ac_ext=c
12392ac_cpp='$CPP $CPPFLAGS'
12393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12395ac_compiler_gnu=$ac_cv_c_compiler_gnu
12396
12397CC=$lt_save_CC
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413        ac_config_commands="$ac_config_commands libtool"
12414
12415
12416
12417
12418# Only expand once:
12419
12420
12421
12422# Check whether --enable-largefile was given.
12423if test "${enable_largefile+set}" = set; then :
12424  enableval=$enable_largefile;
12425fi
12426
12427if test "$enable_largefile" != no; then
12428
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12430$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12431if ${ac_cv_sys_largefile_CC+:} false; then :
12432  $as_echo_n "(cached) " >&6
12433else
12434  ac_cv_sys_largefile_CC=no
12435     if test "$GCC" != yes; then
12436       ac_save_CC=$CC
12437       while :; do
12438	 # IRIX 6.2 and later do not support large files by default,
12439	 # so use the C compiler's -n32 option if that helps.
12440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442#include <sys/types.h>
12443 /* Check that off_t can represent 2**63 - 1 correctly.
12444    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12445    since some C++ compilers masquerading as C compilers
12446    incorrectly reject 9223372036854775807.  */
12447#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12448  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12449		       && LARGE_OFF_T % 2147483647 == 1)
12450		      ? 1 : -1];
12451int
12452main ()
12453{
12454
12455  ;
12456  return 0;
12457}
12458_ACEOF
12459	 if ac_fn_c_try_compile "$LINENO"; then :
12460  break
12461fi
12462rm -f core conftest.err conftest.$ac_objext
12463	 CC="$CC -n32"
12464	 if ac_fn_c_try_compile "$LINENO"; then :
12465  ac_cv_sys_largefile_CC=' -n32'; break
12466fi
12467rm -f core conftest.err conftest.$ac_objext
12468	 break
12469       done
12470       CC=$ac_save_CC
12471       rm -f conftest.$ac_ext
12472    fi
12473fi
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12475$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12476  if test "$ac_cv_sys_largefile_CC" != no; then
12477    CC=$CC$ac_cv_sys_largefile_CC
12478  fi
12479
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12481$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12482if ${ac_cv_sys_file_offset_bits+:} false; then :
12483  $as_echo_n "(cached) " >&6
12484else
12485  while :; do
12486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h.  */
12488#include <sys/types.h>
12489 /* Check that off_t can represent 2**63 - 1 correctly.
12490    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12491    since some C++ compilers masquerading as C compilers
12492    incorrectly reject 9223372036854775807.  */
12493#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12494  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12495		       && LARGE_OFF_T % 2147483647 == 1)
12496		      ? 1 : -1];
12497int
12498main ()
12499{
12500
12501  ;
12502  return 0;
12503}
12504_ACEOF
12505if ac_fn_c_try_compile "$LINENO"; then :
12506  ac_cv_sys_file_offset_bits=no; break
12507fi
12508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511#define _FILE_OFFSET_BITS 64
12512#include <sys/types.h>
12513 /* Check that off_t can represent 2**63 - 1 correctly.
12514    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12515    since some C++ compilers masquerading as C compilers
12516    incorrectly reject 9223372036854775807.  */
12517#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12518  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12519		       && LARGE_OFF_T % 2147483647 == 1)
12520		      ? 1 : -1];
12521int
12522main ()
12523{
12524
12525  ;
12526  return 0;
12527}
12528_ACEOF
12529if ac_fn_c_try_compile "$LINENO"; then :
12530  ac_cv_sys_file_offset_bits=64; break
12531fi
12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533  ac_cv_sys_file_offset_bits=unknown
12534  break
12535done
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12538$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12539case $ac_cv_sys_file_offset_bits in #(
12540  no | unknown) ;;
12541  *)
12542cat >>confdefs.h <<_ACEOF
12543#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12544_ACEOF
12545;;
12546esac
12547rm -rf conftest*
12548  if test $ac_cv_sys_file_offset_bits = unknown; then
12549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12550$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12551if ${ac_cv_sys_large_files+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  while :; do
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557#include <sys/types.h>
12558 /* Check that off_t can represent 2**63 - 1 correctly.
12559    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12560    since some C++ compilers masquerading as C compilers
12561    incorrectly reject 9223372036854775807.  */
12562#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12563  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12564		       && LARGE_OFF_T % 2147483647 == 1)
12565		      ? 1 : -1];
12566int
12567main ()
12568{
12569
12570  ;
12571  return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_compile "$LINENO"; then :
12575  ac_cv_sys_large_files=no; break
12576fi
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579/* end confdefs.h.  */
12580#define _LARGE_FILES 1
12581#include <sys/types.h>
12582 /* Check that off_t can represent 2**63 - 1 correctly.
12583    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12584    since some C++ compilers masquerading as C compilers
12585    incorrectly reject 9223372036854775807.  */
12586#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12587  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12588		       && LARGE_OFF_T % 2147483647 == 1)
12589		      ? 1 : -1];
12590int
12591main ()
12592{
12593
12594  ;
12595  return 0;
12596}
12597_ACEOF
12598if ac_fn_c_try_compile "$LINENO"; then :
12599  ac_cv_sys_large_files=1; break
12600fi
12601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602  ac_cv_sys_large_files=unknown
12603  break
12604done
12605fi
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12607$as_echo "$ac_cv_sys_large_files" >&6; }
12608case $ac_cv_sys_large_files in #(
12609  no | unknown) ;;
12610  *)
12611cat >>confdefs.h <<_ACEOF
12612#define _LARGE_FILES $ac_cv_sys_large_files
12613_ACEOF
12614;;
12615esac
12616rm -rf conftest*
12617  fi
12618
12619
12620fi
12621
12622
12623# Require xorg-macros minimum of 1.15 for fop minimum version
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12636$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12637if ${ac_cv_prog_cc_c99+:} false; then :
12638  $as_echo_n "(cached) " >&6
12639else
12640  ac_cv_prog_cc_c99=no
12641ac_save_CC=$CC
12642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643/* end confdefs.h.  */
12644#include <stdarg.h>
12645#include <stdbool.h>
12646#include <stdlib.h>
12647#include <wchar.h>
12648#include <stdio.h>
12649
12650// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12651#define debug(...) fprintf (stderr, __VA_ARGS__)
12652#define showlist(...) puts (#__VA_ARGS__)
12653#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12654static void
12655test_varargs_macros (void)
12656{
12657  int x = 1234;
12658  int y = 5678;
12659  debug ("Flag");
12660  debug ("X = %d\n", x);
12661  showlist (The first, second, and third items.);
12662  report (x>y, "x is %d but y is %d", x, y);
12663}
12664
12665// Check long long types.
12666#define BIG64 18446744073709551615ull
12667#define BIG32 4294967295ul
12668#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12669#if !BIG_OK
12670  your preprocessor is broken;
12671#endif
12672#if BIG_OK
12673#else
12674  your preprocessor is broken;
12675#endif
12676static long long int bignum = -9223372036854775807LL;
12677static unsigned long long int ubignum = BIG64;
12678
12679struct incomplete_array
12680{
12681  int datasize;
12682  double data[];
12683};
12684
12685struct named_init {
12686  int number;
12687  const wchar_t *name;
12688  double average;
12689};
12690
12691typedef const char *ccp;
12692
12693static inline int
12694test_restrict (ccp restrict text)
12695{
12696  // See if C++-style comments work.
12697  // Iterate through items via the restricted pointer.
12698  // Also check for declarations in for loops.
12699  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12700    continue;
12701  return 0;
12702}
12703
12704// Check varargs and va_copy.
12705static void
12706test_varargs (const char *format, ...)
12707{
12708  va_list args;
12709  va_start (args, format);
12710  va_list args_copy;
12711  va_copy (args_copy, args);
12712
12713  const char *str;
12714  int number;
12715  float fnumber;
12716
12717  while (*format)
12718    {
12719      switch (*format++)
12720	{
12721	case 's': // string
12722	  str = va_arg (args_copy, const char *);
12723	  break;
12724	case 'd': // int
12725	  number = va_arg (args_copy, int);
12726	  break;
12727	case 'f': // float
12728	  fnumber = va_arg (args_copy, double);
12729	  break;
12730	default:
12731	  break;
12732	}
12733    }
12734  va_end (args_copy);
12735  va_end (args);
12736}
12737
12738int
12739main ()
12740{
12741
12742  // Check bool.
12743  _Bool success = false;
12744
12745  // Check restrict.
12746  if (test_restrict ("String literal") == 0)
12747    success = true;
12748  char *restrict newvar = "Another string";
12749
12750  // Check varargs.
12751  test_varargs ("s, d' f .", "string", 65, 34.234);
12752  test_varargs_macros ();
12753
12754  // Check flexible array members.
12755  struct incomplete_array *ia =
12756    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12757  ia->datasize = 10;
12758  for (int i = 0; i < ia->datasize; ++i)
12759    ia->data[i] = i * 1.234;
12760
12761  // Check named initializers.
12762  struct named_init ni = {
12763    .number = 34,
12764    .name = L"Test wide string",
12765    .average = 543.34343,
12766  };
12767
12768  ni.number = 58;
12769
12770  int dynamic_array[ni.number];
12771  dynamic_array[ni.number - 1] = 543;
12772
12773  // work around unused variable warnings
12774  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12775	  || dynamic_array[ni.number - 1] != 543);
12776
12777  ;
12778  return 0;
12779}
12780_ACEOF
12781for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12782do
12783  CC="$ac_save_CC $ac_arg"
12784  if ac_fn_c_try_compile "$LINENO"; then :
12785  ac_cv_prog_cc_c99=$ac_arg
12786fi
12787rm -f core conftest.err conftest.$ac_objext
12788  test "x$ac_cv_prog_cc_c99" != "xno" && break
12789done
12790rm -f conftest.$ac_ext
12791CC=$ac_save_CC
12792
12793fi
12794# AC_CACHE_VAL
12795case "x$ac_cv_prog_cc_c99" in
12796  x)
12797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12798$as_echo "none needed" >&6; } ;;
12799  xno)
12800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12801$as_echo "unsupported" >&6; } ;;
12802  *)
12803    CC="$CC $ac_cv_prog_cc_c99"
12804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12805$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12806esac
12807if test "x$ac_cv_prog_cc_c99" != xno; then :
12808
12809fi
12810
12811
12812
12813
12814
12815
12816ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12817if test "x$ac_cv_have_decl___clang__" = xyes; then :
12818  CLANGCC="yes"
12819else
12820  CLANGCC="no"
12821fi
12822
12823ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12824if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12825  INTELCC="yes"
12826else
12827  INTELCC="no"
12828fi
12829
12830ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12831if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12832  SUNCC="yes"
12833else
12834  SUNCC="no"
12835fi
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12846	if test -n "$ac_tool_prefix"; then
12847  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12848set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850$as_echo_n "checking for $ac_word... " >&6; }
12851if ${ac_cv_path_PKG_CONFIG+:} false; then :
12852  $as_echo_n "(cached) " >&6
12853else
12854  case $PKG_CONFIG in
12855  [\\/]* | ?:[\\/]*)
12856  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12857  ;;
12858  *)
12859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860for as_dir in $PATH
12861do
12862  IFS=$as_save_IFS
12863  test -z "$as_dir" && as_dir=.
12864    for ac_exec_ext in '' $ac_executable_extensions; do
12865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868    break 2
12869  fi
12870done
12871  done
12872IFS=$as_save_IFS
12873
12874  ;;
12875esac
12876fi
12877PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12878if test -n "$PKG_CONFIG"; then
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12880$as_echo "$PKG_CONFIG" >&6; }
12881else
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887fi
12888if test -z "$ac_cv_path_PKG_CONFIG"; then
12889  ac_pt_PKG_CONFIG=$PKG_CONFIG
12890  # Extract the first word of "pkg-config", so it can be a program name with args.
12891set dummy pkg-config; ac_word=$2
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
12894if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  case $ac_pt_PKG_CONFIG in
12898  [\\/]* | ?:[\\/]*)
12899  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12900  ;;
12901  *)
12902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $PATH
12904do
12905  IFS=$as_save_IFS
12906  test -z "$as_dir" && as_dir=.
12907    for ac_exec_ext in '' $ac_executable_extensions; do
12908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911    break 2
12912  fi
12913done
12914  done
12915IFS=$as_save_IFS
12916
12917  ;;
12918esac
12919fi
12920ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12921if test -n "$ac_pt_PKG_CONFIG"; then
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12923$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12924else
12925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; }
12927fi
12928
12929  if test "x$ac_pt_PKG_CONFIG" = x; then
12930    PKG_CONFIG=""
12931  else
12932    case $cross_compiling:$ac_tool_warned in
12933yes:)
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12936ac_tool_warned=yes ;;
12937esac
12938    PKG_CONFIG=$ac_pt_PKG_CONFIG
12939  fi
12940else
12941  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12942fi
12943
12944fi
12945if test -n "$PKG_CONFIG"; then
12946	_pkg_min_version=0.9.0
12947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12948$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12949	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951$as_echo "yes" >&6; }
12952	else
12953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955		PKG_CONFIG=""
12956	fi
12957fi
12958
12959
12960
12961
12962
12963# Check whether --enable-selective-werror was given.
12964if test "${enable_selective_werror+set}" = set; then :
12965  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12966else
12967  SELECTIVE_WERROR=yes
12968fi
12969
12970
12971
12972
12973
12974# -v is too short to test reliably with XORG_TESTSET_CFLAG
12975if test "x$SUNCC" = "xyes"; then
12976    BASE_CFLAGS="-v"
12977else
12978    BASE_CFLAGS=""
12979fi
12980
12981# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995xorg_testset_save_CFLAGS="$CFLAGS"
12996
12997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13002  $as_echo_n "(cached) " >&6
13003else
13004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005/* end confdefs.h.  */
13006int i;
13007_ACEOF
13008if ac_fn_c_try_compile "$LINENO"; then :
13009  xorg_cv_cc_flag_unknown_warning_option=yes
13010else
13011  xorg_cv_cc_flag_unknown_warning_option=no
13012fi
13013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13018	CFLAGS="$xorg_testset_save_CFLAGS"
13019fi
13020
13021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13024	fi
13025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13029  $as_echo_n "(cached) " >&6
13030else
13031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033int i;
13034_ACEOF
13035if ac_fn_c_try_compile "$LINENO"; then :
13036  xorg_cv_cc_flag_unused_command_line_argument=yes
13037else
13038  xorg_cv_cc_flag_unused_command_line_argument=no
13039fi
13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041fi
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13045	CFLAGS="$xorg_testset_save_CFLAGS"
13046fi
13047
13048found="no"
13049
13050	if test $found = "no" ; then
13051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13053		fi
13054
13055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13057		fi
13058
13059		CFLAGS="$CFLAGS -Wall"
13060
13061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13062$as_echo_n "checking if $CC supports -Wall... " >&6; }
13063		cacheid=xorg_cv_cc_flag__Wall
13064		if eval \${$cacheid+:} false; then :
13065  $as_echo_n "(cached) " >&6
13066else
13067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068/* end confdefs.h.  */
13069int i;
13070int
13071main ()
13072{
13073
13074  ;
13075  return 0;
13076}
13077_ACEOF
13078if ac_fn_c_try_link "$LINENO"; then :
13079  eval $cacheid=yes
13080else
13081  eval $cacheid=no
13082fi
13083rm -f core conftest.err conftest.$ac_objext \
13084    conftest$ac_exeext conftest.$ac_ext
13085fi
13086
13087
13088		CFLAGS="$xorg_testset_save_CFLAGS"
13089
13090		eval supported=\$$cacheid
13091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13092$as_echo "$supported" >&6; }
13093		if test "$supported" = "yes" ; then
13094			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13095			found="yes"
13096		fi
13097	fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113xorg_testset_save_CFLAGS="$CFLAGS"
13114
13115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13120  $as_echo_n "(cached) " >&6
13121else
13122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123/* end confdefs.h.  */
13124int i;
13125_ACEOF
13126if ac_fn_c_try_compile "$LINENO"; then :
13127  xorg_cv_cc_flag_unknown_warning_option=yes
13128else
13129  xorg_cv_cc_flag_unknown_warning_option=no
13130fi
13131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13136	CFLAGS="$xorg_testset_save_CFLAGS"
13137fi
13138
13139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13142	fi
13143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h.  */
13151int i;
13152_ACEOF
13153if ac_fn_c_try_compile "$LINENO"; then :
13154  xorg_cv_cc_flag_unused_command_line_argument=yes
13155else
13156  xorg_cv_cc_flag_unused_command_line_argument=no
13157fi
13158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159fi
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13163	CFLAGS="$xorg_testset_save_CFLAGS"
13164fi
13165
13166found="no"
13167
13168	if test $found = "no" ; then
13169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13171		fi
13172
13173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13175		fi
13176
13177		CFLAGS="$CFLAGS -Wpointer-arith"
13178
13179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13180$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13181		cacheid=xorg_cv_cc_flag__Wpointer_arith
13182		if eval \${$cacheid+:} false; then :
13183  $as_echo_n "(cached) " >&6
13184else
13185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186/* end confdefs.h.  */
13187int i;
13188int
13189main ()
13190{
13191
13192  ;
13193  return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197  eval $cacheid=yes
13198else
13199  eval $cacheid=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202    conftest$ac_exeext conftest.$ac_ext
13203fi
13204
13205
13206		CFLAGS="$xorg_testset_save_CFLAGS"
13207
13208		eval supported=\$$cacheid
13209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13210$as_echo "$supported" >&6; }
13211		if test "$supported" = "yes" ; then
13212			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13213			found="yes"
13214		fi
13215	fi
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231xorg_testset_save_CFLAGS="$CFLAGS"
13232
13233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13238  $as_echo_n "(cached) " >&6
13239else
13240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242int i;
13243_ACEOF
13244if ac_fn_c_try_compile "$LINENO"; then :
13245  xorg_cv_cc_flag_unknown_warning_option=yes
13246else
13247  xorg_cv_cc_flag_unknown_warning_option=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250fi
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13254	CFLAGS="$xorg_testset_save_CFLAGS"
13255fi
13256
13257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260	fi
13261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268/* end confdefs.h.  */
13269int i;
13270_ACEOF
13271if ac_fn_c_try_compile "$LINENO"; then :
13272  xorg_cv_cc_flag_unused_command_line_argument=yes
13273else
13274  xorg_cv_cc_flag_unused_command_line_argument=no
13275fi
13276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13281	CFLAGS="$xorg_testset_save_CFLAGS"
13282fi
13283
13284found="no"
13285
13286	if test $found = "no" ; then
13287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289		fi
13290
13291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13293		fi
13294
13295		CFLAGS="$CFLAGS -Wmissing-declarations"
13296
13297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13298$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13299		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13300		if eval \${$cacheid+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305int i;
13306int
13307main ()
13308{
13309
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_link "$LINENO"; then :
13315  eval $cacheid=yes
13316else
13317  eval $cacheid=no
13318fi
13319rm -f core conftest.err conftest.$ac_objext \
13320    conftest$ac_exeext conftest.$ac_ext
13321fi
13322
13323
13324		CFLAGS="$xorg_testset_save_CFLAGS"
13325
13326		eval supported=\$$cacheid
13327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13328$as_echo "$supported" >&6; }
13329		if test "$supported" = "yes" ; then
13330			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13331			found="yes"
13332		fi
13333	fi
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349xorg_testset_save_CFLAGS="$CFLAGS"
13350
13351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360int i;
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"; then :
13363  xorg_cv_cc_flag_unknown_warning_option=yes
13364else
13365  xorg_cv_cc_flag_unknown_warning_option=no
13366fi
13367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368fi
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13372	CFLAGS="$xorg_testset_save_CFLAGS"
13373fi
13374
13375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378	fi
13379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13383  $as_echo_n "(cached) " >&6
13384else
13385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387int i;
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"; then :
13390  xorg_cv_cc_flag_unused_command_line_argument=yes
13391else
13392  xorg_cv_cc_flag_unused_command_line_argument=no
13393fi
13394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395fi
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13399	CFLAGS="$xorg_testset_save_CFLAGS"
13400fi
13401
13402found="no"
13403
13404	if test $found = "no" ; then
13405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13407		fi
13408
13409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13411		fi
13412
13413		CFLAGS="$CFLAGS -Wformat=2"
13414
13415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13416$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13417		cacheid=xorg_cv_cc_flag__Wformat_2
13418		if eval \${$cacheid+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h.  */
13423int i;
13424int
13425main ()
13426{
13427
13428  ;
13429  return 0;
13430}
13431_ACEOF
13432if ac_fn_c_try_link "$LINENO"; then :
13433  eval $cacheid=yes
13434else
13435  eval $cacheid=no
13436fi
13437rm -f core conftest.err conftest.$ac_objext \
13438    conftest$ac_exeext conftest.$ac_ext
13439fi
13440
13441
13442		CFLAGS="$xorg_testset_save_CFLAGS"
13443
13444		eval supported=\$$cacheid
13445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13446$as_echo "$supported" >&6; }
13447		if test "$supported" = "yes" ; then
13448			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13449			found="yes"
13450		fi
13451	fi
13452
13453	if test $found = "no" ; then
13454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13456		fi
13457
13458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13460		fi
13461
13462		CFLAGS="$CFLAGS -Wformat"
13463
13464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13465$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13466		cacheid=xorg_cv_cc_flag__Wformat
13467		if eval \${$cacheid+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472int i;
13473int
13474main ()
13475{
13476
13477  ;
13478  return 0;
13479}
13480_ACEOF
13481if ac_fn_c_try_link "$LINENO"; then :
13482  eval $cacheid=yes
13483else
13484  eval $cacheid=no
13485fi
13486rm -f core conftest.err conftest.$ac_objext \
13487    conftest$ac_exeext conftest.$ac_ext
13488fi
13489
13490
13491		CFLAGS="$xorg_testset_save_CFLAGS"
13492
13493		eval supported=\$$cacheid
13494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13495$as_echo "$supported" >&6; }
13496		if test "$supported" = "yes" ; then
13497			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13498			found="yes"
13499		fi
13500	fi
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518xorg_testset_save_CFLAGS="$CFLAGS"
13519
13520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h.  */
13529int i;
13530_ACEOF
13531if ac_fn_c_try_compile "$LINENO"; then :
13532  xorg_cv_cc_flag_unknown_warning_option=yes
13533else
13534  xorg_cv_cc_flag_unknown_warning_option=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13541	CFLAGS="$xorg_testset_save_CFLAGS"
13542fi
13543
13544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547	fi
13548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13552  $as_echo_n "(cached) " >&6
13553else
13554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555/* end confdefs.h.  */
13556int i;
13557_ACEOF
13558if ac_fn_c_try_compile "$LINENO"; then :
13559  xorg_cv_cc_flag_unused_command_line_argument=yes
13560else
13561  xorg_cv_cc_flag_unused_command_line_argument=no
13562fi
13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564fi
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13568	CFLAGS="$xorg_testset_save_CFLAGS"
13569fi
13570
13571found="no"
13572
13573	if test $found = "no" ; then
13574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13576		fi
13577
13578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580		fi
13581
13582		CFLAGS="$CFLAGS -Wstrict-prototypes"
13583
13584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13585$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13586		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13587		if eval \${$cacheid+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592int i;
13593int
13594main ()
13595{
13596
13597  ;
13598  return 0;
13599}
13600_ACEOF
13601if ac_fn_c_try_link "$LINENO"; then :
13602  eval $cacheid=yes
13603else
13604  eval $cacheid=no
13605fi
13606rm -f core conftest.err conftest.$ac_objext \
13607    conftest$ac_exeext conftest.$ac_ext
13608fi
13609
13610
13611		CFLAGS="$xorg_testset_save_CFLAGS"
13612
13613		eval supported=\$$cacheid
13614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13615$as_echo "$supported" >&6; }
13616		if test "$supported" = "yes" ; then
13617			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13618			found="yes"
13619		fi
13620	fi
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636xorg_testset_save_CFLAGS="$CFLAGS"
13637
13638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646/* end confdefs.h.  */
13647int i;
13648_ACEOF
13649if ac_fn_c_try_compile "$LINENO"; then :
13650  xorg_cv_cc_flag_unknown_warning_option=yes
13651else
13652  xorg_cv_cc_flag_unknown_warning_option=no
13653fi
13654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13659	CFLAGS="$xorg_testset_save_CFLAGS"
13660fi
13661
13662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13665	fi
13666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13670  $as_echo_n "(cached) " >&6
13671else
13672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674int i;
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"; then :
13677  xorg_cv_cc_flag_unused_command_line_argument=yes
13678else
13679  xorg_cv_cc_flag_unused_command_line_argument=no
13680fi
13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682fi
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13686	CFLAGS="$xorg_testset_save_CFLAGS"
13687fi
13688
13689found="no"
13690
13691	if test $found = "no" ; then
13692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13694		fi
13695
13696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13698		fi
13699
13700		CFLAGS="$CFLAGS -Wmissing-prototypes"
13701
13702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13703$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13704		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13705		if eval \${$cacheid+:} false; then :
13706  $as_echo_n "(cached) " >&6
13707else
13708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709/* end confdefs.h.  */
13710int i;
13711int
13712main ()
13713{
13714
13715  ;
13716  return 0;
13717}
13718_ACEOF
13719if ac_fn_c_try_link "$LINENO"; then :
13720  eval $cacheid=yes
13721else
13722  eval $cacheid=no
13723fi
13724rm -f core conftest.err conftest.$ac_objext \
13725    conftest$ac_exeext conftest.$ac_ext
13726fi
13727
13728
13729		CFLAGS="$xorg_testset_save_CFLAGS"
13730
13731		eval supported=\$$cacheid
13732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13733$as_echo "$supported" >&6; }
13734		if test "$supported" = "yes" ; then
13735			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13736			found="yes"
13737		fi
13738	fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754xorg_testset_save_CFLAGS="$CFLAGS"
13755
13756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13761  $as_echo_n "(cached) " >&6
13762else
13763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764/* end confdefs.h.  */
13765int i;
13766_ACEOF
13767if ac_fn_c_try_compile "$LINENO"; then :
13768  xorg_cv_cc_flag_unknown_warning_option=yes
13769else
13770  xorg_cv_cc_flag_unknown_warning_option=no
13771fi
13772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773fi
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13777	CFLAGS="$xorg_testset_save_CFLAGS"
13778fi
13779
13780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783	fi
13784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791/* end confdefs.h.  */
13792int i;
13793_ACEOF
13794if ac_fn_c_try_compile "$LINENO"; then :
13795  xorg_cv_cc_flag_unused_command_line_argument=yes
13796else
13797  xorg_cv_cc_flag_unused_command_line_argument=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13804	CFLAGS="$xorg_testset_save_CFLAGS"
13805fi
13806
13807found="no"
13808
13809	if test $found = "no" ; then
13810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13812		fi
13813
13814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13816		fi
13817
13818		CFLAGS="$CFLAGS -Wnested-externs"
13819
13820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13821$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13822		cacheid=xorg_cv_cc_flag__Wnested_externs
13823		if eval \${$cacheid+:} false; then :
13824  $as_echo_n "(cached) " >&6
13825else
13826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828int i;
13829int
13830main ()
13831{
13832
13833  ;
13834  return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_link "$LINENO"; then :
13838  eval $cacheid=yes
13839else
13840  eval $cacheid=no
13841fi
13842rm -f core conftest.err conftest.$ac_objext \
13843    conftest$ac_exeext conftest.$ac_ext
13844fi
13845
13846
13847		CFLAGS="$xorg_testset_save_CFLAGS"
13848
13849		eval supported=\$$cacheid
13850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13851$as_echo "$supported" >&6; }
13852		if test "$supported" = "yes" ; then
13853			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13854			found="yes"
13855		fi
13856	fi
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872xorg_testset_save_CFLAGS="$CFLAGS"
13873
13874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13879  $as_echo_n "(cached) " >&6
13880else
13881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883int i;
13884_ACEOF
13885if ac_fn_c_try_compile "$LINENO"; then :
13886  xorg_cv_cc_flag_unknown_warning_option=yes
13887else
13888  xorg_cv_cc_flag_unknown_warning_option=no
13889fi
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891fi
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13895	CFLAGS="$xorg_testset_save_CFLAGS"
13896fi
13897
13898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901	fi
13902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13906  $as_echo_n "(cached) " >&6
13907else
13908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h.  */
13910int i;
13911_ACEOF
13912if ac_fn_c_try_compile "$LINENO"; then :
13913  xorg_cv_cc_flag_unused_command_line_argument=yes
13914else
13915  xorg_cv_cc_flag_unused_command_line_argument=no
13916fi
13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918fi
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13922	CFLAGS="$xorg_testset_save_CFLAGS"
13923fi
13924
13925found="no"
13926
13927	if test $found = "no" ; then
13928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930		fi
13931
13932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13934		fi
13935
13936		CFLAGS="$CFLAGS -Wbad-function-cast"
13937
13938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13939$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13940		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13941		if eval \${$cacheid+:} false; then :
13942  $as_echo_n "(cached) " >&6
13943else
13944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945/* end confdefs.h.  */
13946int i;
13947int
13948main ()
13949{
13950
13951  ;
13952  return 0;
13953}
13954_ACEOF
13955if ac_fn_c_try_link "$LINENO"; then :
13956  eval $cacheid=yes
13957else
13958  eval $cacheid=no
13959fi
13960rm -f core conftest.err conftest.$ac_objext \
13961    conftest$ac_exeext conftest.$ac_ext
13962fi
13963
13964
13965		CFLAGS="$xorg_testset_save_CFLAGS"
13966
13967		eval supported=\$$cacheid
13968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13969$as_echo "$supported" >&6; }
13970		if test "$supported" = "yes" ; then
13971			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13972			found="yes"
13973		fi
13974	fi
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990xorg_testset_save_CFLAGS="$CFLAGS"
13991
13992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13996if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
14005else
14006  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
14011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14013	CFLAGS="$xorg_testset_save_CFLAGS"
14014fi
14015
14016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019	fi
14020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027/* end confdefs.h.  */
14028int i;
14029_ACEOF
14030if ac_fn_c_try_compile "$LINENO"; then :
14031  xorg_cv_cc_flag_unused_command_line_argument=yes
14032else
14033  xorg_cv_cc_flag_unused_command_line_argument=no
14034fi
14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036fi
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14040	CFLAGS="$xorg_testset_save_CFLAGS"
14041fi
14042
14043found="no"
14044
14045	if test $found = "no" ; then
14046		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14048		fi
14049
14050		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14052		fi
14053
14054		CFLAGS="$CFLAGS -Wold-style-definition"
14055
14056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14057$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14058		cacheid=xorg_cv_cc_flag__Wold_style_definition
14059		if eval \${$cacheid+:} false; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064int i;
14065int
14066main ()
14067{
14068
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_link "$LINENO"; then :
14074  eval $cacheid=yes
14075else
14076  eval $cacheid=no
14077fi
14078rm -f core conftest.err conftest.$ac_objext \
14079    conftest$ac_exeext conftest.$ac_ext
14080fi
14081
14082
14083		CFLAGS="$xorg_testset_save_CFLAGS"
14084
14085		eval supported=\$$cacheid
14086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14087$as_echo "$supported" >&6; }
14088		if test "$supported" = "yes" ; then
14089			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14090			found="yes"
14091		fi
14092	fi
14093
14094	if test $found = "no" ; then
14095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14097		fi
14098
14099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14101		fi
14102
14103		CFLAGS="$CFLAGS -fd"
14104
14105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14106$as_echo_n "checking if $CC supports -fd... " >&6; }
14107		cacheid=xorg_cv_cc_flag__fd
14108		if eval \${$cacheid+:} false; then :
14109  $as_echo_n "(cached) " >&6
14110else
14111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112/* end confdefs.h.  */
14113int i;
14114int
14115main ()
14116{
14117
14118  ;
14119  return 0;
14120}
14121_ACEOF
14122if ac_fn_c_try_link "$LINENO"; then :
14123  eval $cacheid=yes
14124else
14125  eval $cacheid=no
14126fi
14127rm -f core conftest.err conftest.$ac_objext \
14128    conftest$ac_exeext conftest.$ac_ext
14129fi
14130
14131
14132		CFLAGS="$xorg_testset_save_CFLAGS"
14133
14134		eval supported=\$$cacheid
14135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14136$as_echo "$supported" >&6; }
14137		if test "$supported" = "yes" ; then
14138			BASE_CFLAGS="$BASE_CFLAGS -fd"
14139			found="yes"
14140		fi
14141	fi
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157xorg_testset_save_CFLAGS="$CFLAGS"
14158
14159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14164  $as_echo_n "(cached) " >&6
14165else
14166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h.  */
14168int i;
14169_ACEOF
14170if ac_fn_c_try_compile "$LINENO"; then :
14171  xorg_cv_cc_flag_unknown_warning_option=yes
14172else
14173  xorg_cv_cc_flag_unknown_warning_option=no
14174fi
14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14180	CFLAGS="$xorg_testset_save_CFLAGS"
14181fi
14182
14183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186	fi
14187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14191  $as_echo_n "(cached) " >&6
14192else
14193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194/* end confdefs.h.  */
14195int i;
14196_ACEOF
14197if ac_fn_c_try_compile "$LINENO"; then :
14198  xorg_cv_cc_flag_unused_command_line_argument=yes
14199else
14200  xorg_cv_cc_flag_unused_command_line_argument=no
14201fi
14202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203fi
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14207	CFLAGS="$xorg_testset_save_CFLAGS"
14208fi
14209
14210found="no"
14211
14212	if test $found = "no" ; then
14213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215		fi
14216
14217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14219		fi
14220
14221		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14222
14223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14224$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14225		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14226		if eval \${$cacheid+:} false; then :
14227  $as_echo_n "(cached) " >&6
14228else
14229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230/* end confdefs.h.  */
14231int i;
14232int
14233main ()
14234{
14235
14236  ;
14237  return 0;
14238}
14239_ACEOF
14240if ac_fn_c_try_link "$LINENO"; then :
14241  eval $cacheid=yes
14242else
14243  eval $cacheid=no
14244fi
14245rm -f core conftest.err conftest.$ac_objext \
14246    conftest$ac_exeext conftest.$ac_ext
14247fi
14248
14249
14250		CFLAGS="$xorg_testset_save_CFLAGS"
14251
14252		eval supported=\$$cacheid
14253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14254$as_echo "$supported" >&6; }
14255		if test "$supported" = "yes" ; then
14256			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14257			found="yes"
14258		fi
14259	fi
14260
14261
14262
14263
14264
14265# This chunk adds additional warnings that could catch undesired effects.
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279xorg_testset_save_CFLAGS="$CFLAGS"
14280
14281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14282	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14286  $as_echo_n "(cached) " >&6
14287else
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290int i;
14291_ACEOF
14292if ac_fn_c_try_compile "$LINENO"; then :
14293  xorg_cv_cc_flag_unknown_warning_option=yes
14294else
14295  xorg_cv_cc_flag_unknown_warning_option=no
14296fi
14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14301	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14302	CFLAGS="$xorg_testset_save_CFLAGS"
14303fi
14304
14305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14306	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14307		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14308	fi
14309	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14313  $as_echo_n "(cached) " >&6
14314else
14315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h.  */
14317int i;
14318_ACEOF
14319if ac_fn_c_try_compile "$LINENO"; then :
14320  xorg_cv_cc_flag_unused_command_line_argument=yes
14321else
14322  xorg_cv_cc_flag_unused_command_line_argument=no
14323fi
14324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325fi
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14328	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14329	CFLAGS="$xorg_testset_save_CFLAGS"
14330fi
14331
14332found="no"
14333
14334	if test $found = "no" ; then
14335		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14336			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14337		fi
14338
14339		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14340			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14341		fi
14342
14343		CFLAGS="$CFLAGS -Wunused"
14344
14345		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14346$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14347		cacheid=xorg_cv_cc_flag__Wunused
14348		if eval \${$cacheid+:} false; then :
14349  $as_echo_n "(cached) " >&6
14350else
14351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352/* end confdefs.h.  */
14353int i;
14354int
14355main ()
14356{
14357
14358  ;
14359  return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"; then :
14363  eval $cacheid=yes
14364else
14365  eval $cacheid=no
14366fi
14367rm -f core conftest.err conftest.$ac_objext \
14368    conftest$ac_exeext conftest.$ac_ext
14369fi
14370
14371
14372		CFLAGS="$xorg_testset_save_CFLAGS"
14373
14374		eval supported=\$$cacheid
14375		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14376$as_echo "$supported" >&6; }
14377		if test "$supported" = "yes" ; then
14378			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14379			found="yes"
14380		fi
14381	fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397xorg_testset_save_CFLAGS="$CFLAGS"
14398
14399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14402$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14403if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408int i;
14409_ACEOF
14410if ac_fn_c_try_compile "$LINENO"; then :
14411  xorg_cv_cc_flag_unknown_warning_option=yes
14412else
14413  xorg_cv_cc_flag_unknown_warning_option=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14418$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14420	CFLAGS="$xorg_testset_save_CFLAGS"
14421fi
14422
14423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14426	fi
14427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14429$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14430if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14431  $as_echo_n "(cached) " >&6
14432else
14433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h.  */
14435int i;
14436_ACEOF
14437if ac_fn_c_try_compile "$LINENO"; then :
14438  xorg_cv_cc_flag_unused_command_line_argument=yes
14439else
14440  xorg_cv_cc_flag_unused_command_line_argument=no
14441fi
14442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443fi
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14445$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14447	CFLAGS="$xorg_testset_save_CFLAGS"
14448fi
14449
14450found="no"
14451
14452	if test $found = "no" ; then
14453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14455		fi
14456
14457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14459		fi
14460
14461		CFLAGS="$CFLAGS -Wuninitialized"
14462
14463		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14464$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14465		cacheid=xorg_cv_cc_flag__Wuninitialized
14466		if eval \${$cacheid+:} false; then :
14467  $as_echo_n "(cached) " >&6
14468else
14469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470/* end confdefs.h.  */
14471int i;
14472int
14473main ()
14474{
14475
14476  ;
14477  return 0;
14478}
14479_ACEOF
14480if ac_fn_c_try_link "$LINENO"; then :
14481  eval $cacheid=yes
14482else
14483  eval $cacheid=no
14484fi
14485rm -f core conftest.err conftest.$ac_objext \
14486    conftest$ac_exeext conftest.$ac_ext
14487fi
14488
14489
14490		CFLAGS="$xorg_testset_save_CFLAGS"
14491
14492		eval supported=\$$cacheid
14493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14494$as_echo "$supported" >&6; }
14495		if test "$supported" = "yes" ; then
14496			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14497			found="yes"
14498		fi
14499	fi
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515xorg_testset_save_CFLAGS="$CFLAGS"
14516
14517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14522  $as_echo_n "(cached) " >&6
14523else
14524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h.  */
14526int i;
14527_ACEOF
14528if ac_fn_c_try_compile "$LINENO"; then :
14529  xorg_cv_cc_flag_unknown_warning_option=yes
14530else
14531  xorg_cv_cc_flag_unknown_warning_option=no
14532fi
14533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14538	CFLAGS="$xorg_testset_save_CFLAGS"
14539fi
14540
14541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14544	fi
14545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14549  $as_echo_n "(cached) " >&6
14550else
14551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h.  */
14553int i;
14554_ACEOF
14555if ac_fn_c_try_compile "$LINENO"; then :
14556  xorg_cv_cc_flag_unused_command_line_argument=yes
14557else
14558  xorg_cv_cc_flag_unused_command_line_argument=no
14559fi
14560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561fi
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14565	CFLAGS="$xorg_testset_save_CFLAGS"
14566fi
14567
14568found="no"
14569
14570	if test $found = "no" ; then
14571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573		fi
14574
14575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14577		fi
14578
14579		CFLAGS="$CFLAGS -Wshadow"
14580
14581		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14582$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14583		cacheid=xorg_cv_cc_flag__Wshadow
14584		if eval \${$cacheid+:} false; then :
14585  $as_echo_n "(cached) " >&6
14586else
14587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589int i;
14590int
14591main ()
14592{
14593
14594  ;
14595  return 0;
14596}
14597_ACEOF
14598if ac_fn_c_try_link "$LINENO"; then :
14599  eval $cacheid=yes
14600else
14601  eval $cacheid=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext \
14604    conftest$ac_exeext conftest.$ac_ext
14605fi
14606
14607
14608		CFLAGS="$xorg_testset_save_CFLAGS"
14609
14610		eval supported=\$$cacheid
14611		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14612$as_echo "$supported" >&6; }
14613		if test "$supported" = "yes" ; then
14614			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14615			found="yes"
14616		fi
14617	fi
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633xorg_testset_save_CFLAGS="$CFLAGS"
14634
14635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14638$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14639if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14640  $as_echo_n "(cached) " >&6
14641else
14642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h.  */
14644int i;
14645_ACEOF
14646if ac_fn_c_try_compile "$LINENO"; then :
14647  xorg_cv_cc_flag_unknown_warning_option=yes
14648else
14649  xorg_cv_cc_flag_unknown_warning_option=no
14650fi
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652fi
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14654$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14656	CFLAGS="$xorg_testset_save_CFLAGS"
14657fi
14658
14659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662	fi
14663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14665$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14666if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14667  $as_echo_n "(cached) " >&6
14668else
14669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671int i;
14672_ACEOF
14673if ac_fn_c_try_compile "$LINENO"; then :
14674  xorg_cv_cc_flag_unused_command_line_argument=yes
14675else
14676  xorg_cv_cc_flag_unused_command_line_argument=no
14677fi
14678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679fi
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14681$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14683	CFLAGS="$xorg_testset_save_CFLAGS"
14684fi
14685
14686found="no"
14687
14688	if test $found = "no" ; then
14689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691		fi
14692
14693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695		fi
14696
14697		CFLAGS="$CFLAGS -Wmissing-noreturn"
14698
14699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14700$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14701		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14702		if eval \${$cacheid+:} false; then :
14703  $as_echo_n "(cached) " >&6
14704else
14705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707int i;
14708int
14709main ()
14710{
14711
14712  ;
14713  return 0;
14714}
14715_ACEOF
14716if ac_fn_c_try_link "$LINENO"; then :
14717  eval $cacheid=yes
14718else
14719  eval $cacheid=no
14720fi
14721rm -f core conftest.err conftest.$ac_objext \
14722    conftest$ac_exeext conftest.$ac_ext
14723fi
14724
14725
14726		CFLAGS="$xorg_testset_save_CFLAGS"
14727
14728		eval supported=\$$cacheid
14729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14730$as_echo "$supported" >&6; }
14731		if test "$supported" = "yes" ; then
14732			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14733			found="yes"
14734		fi
14735	fi
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751xorg_testset_save_CFLAGS="$CFLAGS"
14752
14753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14756$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14757if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14758  $as_echo_n "(cached) " >&6
14759else
14760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761/* end confdefs.h.  */
14762int i;
14763_ACEOF
14764if ac_fn_c_try_compile "$LINENO"; then :
14765  xorg_cv_cc_flag_unknown_warning_option=yes
14766else
14767  xorg_cv_cc_flag_unknown_warning_option=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770fi
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14772$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14774	CFLAGS="$xorg_testset_save_CFLAGS"
14775fi
14776
14777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780	fi
14781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14783$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14784if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14785  $as_echo_n "(cached) " >&6
14786else
14787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788/* end confdefs.h.  */
14789int i;
14790_ACEOF
14791if ac_fn_c_try_compile "$LINENO"; then :
14792  xorg_cv_cc_flag_unused_command_line_argument=yes
14793else
14794  xorg_cv_cc_flag_unused_command_line_argument=no
14795fi
14796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797fi
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14799$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14801	CFLAGS="$xorg_testset_save_CFLAGS"
14802fi
14803
14804found="no"
14805
14806	if test $found = "no" ; then
14807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809		fi
14810
14811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813		fi
14814
14815		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14816
14817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14818$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14819		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14820		if eval \${$cacheid+:} false; then :
14821  $as_echo_n "(cached) " >&6
14822else
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825int i;
14826int
14827main ()
14828{
14829
14830  ;
14831  return 0;
14832}
14833_ACEOF
14834if ac_fn_c_try_link "$LINENO"; then :
14835  eval $cacheid=yes
14836else
14837  eval $cacheid=no
14838fi
14839rm -f core conftest.err conftest.$ac_objext \
14840    conftest$ac_exeext conftest.$ac_ext
14841fi
14842
14843
14844		CFLAGS="$xorg_testset_save_CFLAGS"
14845
14846		eval supported=\$$cacheid
14847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14848$as_echo "$supported" >&6; }
14849		if test "$supported" = "yes" ; then
14850			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14851			found="yes"
14852		fi
14853	fi
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869xorg_testset_save_CFLAGS="$CFLAGS"
14870
14871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14876  $as_echo_n "(cached) " >&6
14877else
14878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880int i;
14881_ACEOF
14882if ac_fn_c_try_compile "$LINENO"; then :
14883  xorg_cv_cc_flag_unknown_warning_option=yes
14884else
14885  xorg_cv_cc_flag_unknown_warning_option=no
14886fi
14887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14892	CFLAGS="$xorg_testset_save_CFLAGS"
14893fi
14894
14895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898	fi
14899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14903  $as_echo_n "(cached) " >&6
14904else
14905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906/* end confdefs.h.  */
14907int i;
14908_ACEOF
14909if ac_fn_c_try_compile "$LINENO"; then :
14910  xorg_cv_cc_flag_unused_command_line_argument=yes
14911else
14912  xorg_cv_cc_flag_unused_command_line_argument=no
14913fi
14914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915fi
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14919	CFLAGS="$xorg_testset_save_CFLAGS"
14920fi
14921
14922found="no"
14923
14924	if test $found = "no" ; then
14925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14927		fi
14928
14929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931		fi
14932
14933		CFLAGS="$CFLAGS -Wredundant-decls"
14934
14935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14936$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14937		cacheid=xorg_cv_cc_flag__Wredundant_decls
14938		if eval \${$cacheid+:} false; then :
14939  $as_echo_n "(cached) " >&6
14940else
14941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943int i;
14944int
14945main ()
14946{
14947
14948  ;
14949  return 0;
14950}
14951_ACEOF
14952if ac_fn_c_try_link "$LINENO"; then :
14953  eval $cacheid=yes
14954else
14955  eval $cacheid=no
14956fi
14957rm -f core conftest.err conftest.$ac_objext \
14958    conftest$ac_exeext conftest.$ac_ext
14959fi
14960
14961
14962		CFLAGS="$xorg_testset_save_CFLAGS"
14963
14964		eval supported=\$$cacheid
14965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14966$as_echo "$supported" >&6; }
14967		if test "$supported" = "yes" ; then
14968			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14969			found="yes"
14970		fi
14971	fi
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987xorg_testset_save_CFLAGS="$CFLAGS"
14988
14989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14994  $as_echo_n "(cached) " >&6
14995else
14996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h.  */
14998int i;
14999_ACEOF
15000if ac_fn_c_try_compile "$LINENO"; then :
15001  xorg_cv_cc_flag_unknown_warning_option=yes
15002else
15003  xorg_cv_cc_flag_unknown_warning_option=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15010	CFLAGS="$xorg_testset_save_CFLAGS"
15011fi
15012
15013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016	fi
15017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15021  $as_echo_n "(cached) " >&6
15022else
15023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024/* end confdefs.h.  */
15025int i;
15026_ACEOF
15027if ac_fn_c_try_compile "$LINENO"; then :
15028  xorg_cv_cc_flag_unused_command_line_argument=yes
15029else
15030  xorg_cv_cc_flag_unused_command_line_argument=no
15031fi
15032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033fi
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15037	CFLAGS="$xorg_testset_save_CFLAGS"
15038fi
15039
15040found="no"
15041
15042	if test $found = "no" ; then
15043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045		fi
15046
15047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049		fi
15050
15051		CFLAGS="$CFLAGS -Wlogical-op"
15052
15053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15054$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15055		cacheid=xorg_cv_cc_flag__Wlogical_op
15056		if eval \${$cacheid+:} false; then :
15057  $as_echo_n "(cached) " >&6
15058else
15059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061int i;
15062int
15063main ()
15064{
15065
15066  ;
15067  return 0;
15068}
15069_ACEOF
15070if ac_fn_c_try_link "$LINENO"; then :
15071  eval $cacheid=yes
15072else
15073  eval $cacheid=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext \
15076    conftest$ac_exeext conftest.$ac_ext
15077fi
15078
15079
15080		CFLAGS="$xorg_testset_save_CFLAGS"
15081
15082		eval supported=\$$cacheid
15083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084$as_echo "$supported" >&6; }
15085		if test "$supported" = "yes" ; then
15086			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15087			found="yes"
15088		fi
15089	fi
15090
15091
15092
15093# These are currently disabled because they are noisy.  They will be enabled
15094# in the future once the codebase is sufficiently modernized to silence
15095# them.  For now, I don't want them to drown out the other warnings.
15096# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15097# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15098# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15099
15100# Turn some warnings into errors, so we don't accidently get successful builds
15101# when there are problems that should be fixed.
15102
15103if test "x$SELECTIVE_WERROR" = "xyes" ; then
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117xorg_testset_save_CFLAGS="$CFLAGS"
15118
15119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15123if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
15132else
15133  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
15138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15140	CFLAGS="$xorg_testset_save_CFLAGS"
15141fi
15142
15143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146	fi
15147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15151  $as_echo_n "(cached) " >&6
15152else
15153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154/* end confdefs.h.  */
15155int i;
15156_ACEOF
15157if ac_fn_c_try_compile "$LINENO"; then :
15158  xorg_cv_cc_flag_unused_command_line_argument=yes
15159else
15160  xorg_cv_cc_flag_unused_command_line_argument=no
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163fi
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15167	CFLAGS="$xorg_testset_save_CFLAGS"
15168fi
15169
15170found="no"
15171
15172	if test $found = "no" ; then
15173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175		fi
15176
15177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15179		fi
15180
15181		CFLAGS="$CFLAGS -Werror=implicit"
15182
15183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15184$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15185		cacheid=xorg_cv_cc_flag__Werror_implicit
15186		if eval \${$cacheid+:} false; then :
15187  $as_echo_n "(cached) " >&6
15188else
15189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190/* end confdefs.h.  */
15191int i;
15192int
15193main ()
15194{
15195
15196  ;
15197  return 0;
15198}
15199_ACEOF
15200if ac_fn_c_try_link "$LINENO"; then :
15201  eval $cacheid=yes
15202else
15203  eval $cacheid=no
15204fi
15205rm -f core conftest.err conftest.$ac_objext \
15206    conftest$ac_exeext conftest.$ac_ext
15207fi
15208
15209
15210		CFLAGS="$xorg_testset_save_CFLAGS"
15211
15212		eval supported=\$$cacheid
15213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15214$as_echo "$supported" >&6; }
15215		if test "$supported" = "yes" ; then
15216			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15217			found="yes"
15218		fi
15219	fi
15220
15221	if test $found = "no" ; then
15222		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224		fi
15225
15226		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228		fi
15229
15230		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15231
15232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15233$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15234		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15235		if eval \${$cacheid+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240int i;
15241int
15242main ()
15243{
15244
15245  ;
15246  return 0;
15247}
15248_ACEOF
15249if ac_fn_c_try_link "$LINENO"; then :
15250  eval $cacheid=yes
15251else
15252  eval $cacheid=no
15253fi
15254rm -f core conftest.err conftest.$ac_objext \
15255    conftest$ac_exeext conftest.$ac_ext
15256fi
15257
15258
15259		CFLAGS="$xorg_testset_save_CFLAGS"
15260
15261		eval supported=\$$cacheid
15262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15263$as_echo "$supported" >&6; }
15264		if test "$supported" = "yes" ; then
15265			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15266			found="yes"
15267		fi
15268	fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284xorg_testset_save_CFLAGS="$CFLAGS"
15285
15286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15291  $as_echo_n "(cached) " >&6
15292else
15293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295int i;
15296_ACEOF
15297if ac_fn_c_try_compile "$LINENO"; then :
15298  xorg_cv_cc_flag_unknown_warning_option=yes
15299else
15300  xorg_cv_cc_flag_unknown_warning_option=no
15301fi
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307	CFLAGS="$xorg_testset_save_CFLAGS"
15308fi
15309
15310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313	fi
15314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15318  $as_echo_n "(cached) " >&6
15319else
15320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h.  */
15322int i;
15323_ACEOF
15324if ac_fn_c_try_compile "$LINENO"; then :
15325  xorg_cv_cc_flag_unused_command_line_argument=yes
15326else
15327  xorg_cv_cc_flag_unused_command_line_argument=no
15328fi
15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330fi
15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15334	CFLAGS="$xorg_testset_save_CFLAGS"
15335fi
15336
15337found="no"
15338
15339	if test $found = "no" ; then
15340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342		fi
15343
15344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346		fi
15347
15348		CFLAGS="$CFLAGS -Werror=nonnull"
15349
15350		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15351$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15352		cacheid=xorg_cv_cc_flag__Werror_nonnull
15353		if eval \${$cacheid+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359int
15360main ()
15361{
15362
15363  ;
15364  return 0;
15365}
15366_ACEOF
15367if ac_fn_c_try_link "$LINENO"; then :
15368  eval $cacheid=yes
15369else
15370  eval $cacheid=no
15371fi
15372rm -f core conftest.err conftest.$ac_objext \
15373    conftest$ac_exeext conftest.$ac_ext
15374fi
15375
15376
15377		CFLAGS="$xorg_testset_save_CFLAGS"
15378
15379		eval supported=\$$cacheid
15380		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15381$as_echo "$supported" >&6; }
15382		if test "$supported" = "yes" ; then
15383			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15384			found="yes"
15385		fi
15386	fi
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402xorg_testset_save_CFLAGS="$CFLAGS"
15403
15404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15409  $as_echo_n "(cached) " >&6
15410else
15411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412/* end confdefs.h.  */
15413int i;
15414_ACEOF
15415if ac_fn_c_try_compile "$LINENO"; then :
15416  xorg_cv_cc_flag_unknown_warning_option=yes
15417else
15418  xorg_cv_cc_flag_unknown_warning_option=no
15419fi
15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421fi
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15425	CFLAGS="$xorg_testset_save_CFLAGS"
15426fi
15427
15428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431	fi
15432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15436  $as_echo_n "(cached) " >&6
15437else
15438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439/* end confdefs.h.  */
15440int i;
15441_ACEOF
15442if ac_fn_c_try_compile "$LINENO"; then :
15443  xorg_cv_cc_flag_unused_command_line_argument=yes
15444else
15445  xorg_cv_cc_flag_unused_command_line_argument=no
15446fi
15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448fi
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15452	CFLAGS="$xorg_testset_save_CFLAGS"
15453fi
15454
15455found="no"
15456
15457	if test $found = "no" ; then
15458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15460		fi
15461
15462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464		fi
15465
15466		CFLAGS="$CFLAGS -Werror=init-self"
15467
15468		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15469$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15470		cacheid=xorg_cv_cc_flag__Werror_init_self
15471		if eval \${$cacheid+:} false; then :
15472  $as_echo_n "(cached) " >&6
15473else
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477int
15478main ()
15479{
15480
15481  ;
15482  return 0;
15483}
15484_ACEOF
15485if ac_fn_c_try_link "$LINENO"; then :
15486  eval $cacheid=yes
15487else
15488  eval $cacheid=no
15489fi
15490rm -f core conftest.err conftest.$ac_objext \
15491    conftest$ac_exeext conftest.$ac_ext
15492fi
15493
15494
15495		CFLAGS="$xorg_testset_save_CFLAGS"
15496
15497		eval supported=\$$cacheid
15498		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15499$as_echo "$supported" >&6; }
15500		if test "$supported" = "yes" ; then
15501			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15502			found="yes"
15503		fi
15504	fi
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520xorg_testset_save_CFLAGS="$CFLAGS"
15521
15522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15527  $as_echo_n "(cached) " >&6
15528else
15529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530/* end confdefs.h.  */
15531int i;
15532_ACEOF
15533if ac_fn_c_try_compile "$LINENO"; then :
15534  xorg_cv_cc_flag_unknown_warning_option=yes
15535else
15536  xorg_cv_cc_flag_unknown_warning_option=no
15537fi
15538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539fi
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15543	CFLAGS="$xorg_testset_save_CFLAGS"
15544fi
15545
15546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549	fi
15550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15554  $as_echo_n "(cached) " >&6
15555else
15556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557/* end confdefs.h.  */
15558int i;
15559_ACEOF
15560if ac_fn_c_try_compile "$LINENO"; then :
15561  xorg_cv_cc_flag_unused_command_line_argument=yes
15562else
15563  xorg_cv_cc_flag_unused_command_line_argument=no
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566fi
15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15570	CFLAGS="$xorg_testset_save_CFLAGS"
15571fi
15572
15573found="no"
15574
15575	if test $found = "no" ; then
15576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578		fi
15579
15580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15582		fi
15583
15584		CFLAGS="$CFLAGS -Werror=main"
15585
15586		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15587$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15588		cacheid=xorg_cv_cc_flag__Werror_main
15589		if eval \${$cacheid+:} false; then :
15590  $as_echo_n "(cached) " >&6
15591else
15592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594int i;
15595int
15596main ()
15597{
15598
15599  ;
15600  return 0;
15601}
15602_ACEOF
15603if ac_fn_c_try_link "$LINENO"; then :
15604  eval $cacheid=yes
15605else
15606  eval $cacheid=no
15607fi
15608rm -f core conftest.err conftest.$ac_objext \
15609    conftest$ac_exeext conftest.$ac_ext
15610fi
15611
15612
15613		CFLAGS="$xorg_testset_save_CFLAGS"
15614
15615		eval supported=\$$cacheid
15616		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15617$as_echo "$supported" >&6; }
15618		if test "$supported" = "yes" ; then
15619			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15620			found="yes"
15621		fi
15622	fi
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638xorg_testset_save_CFLAGS="$CFLAGS"
15639
15640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15641	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15645  $as_echo_n "(cached) " >&6
15646else
15647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648/* end confdefs.h.  */
15649int i;
15650_ACEOF
15651if ac_fn_c_try_compile "$LINENO"; then :
15652  xorg_cv_cc_flag_unknown_warning_option=yes
15653else
15654  xorg_cv_cc_flag_unknown_warning_option=no
15655fi
15656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657fi
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15661	CFLAGS="$xorg_testset_save_CFLAGS"
15662fi
15663
15664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667	fi
15668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15672  $as_echo_n "(cached) " >&6
15673else
15674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675/* end confdefs.h.  */
15676int i;
15677_ACEOF
15678if ac_fn_c_try_compile "$LINENO"; then :
15679  xorg_cv_cc_flag_unused_command_line_argument=yes
15680else
15681  xorg_cv_cc_flag_unused_command_line_argument=no
15682fi
15683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684fi
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15688	CFLAGS="$xorg_testset_save_CFLAGS"
15689fi
15690
15691found="no"
15692
15693	if test $found = "no" ; then
15694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15696		fi
15697
15698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15700		fi
15701
15702		CFLAGS="$CFLAGS -Werror=missing-braces"
15703
15704		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15705$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15706		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15707		if eval \${$cacheid+:} false; then :
15708  $as_echo_n "(cached) " >&6
15709else
15710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712int i;
15713int
15714main ()
15715{
15716
15717  ;
15718  return 0;
15719}
15720_ACEOF
15721if ac_fn_c_try_link "$LINENO"; then :
15722  eval $cacheid=yes
15723else
15724  eval $cacheid=no
15725fi
15726rm -f core conftest.err conftest.$ac_objext \
15727    conftest$ac_exeext conftest.$ac_ext
15728fi
15729
15730
15731		CFLAGS="$xorg_testset_save_CFLAGS"
15732
15733		eval supported=\$$cacheid
15734		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735$as_echo "$supported" >&6; }
15736		if test "$supported" = "yes" ; then
15737			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15738			found="yes"
15739		fi
15740	fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756xorg_testset_save_CFLAGS="$CFLAGS"
15757
15758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15763  $as_echo_n "(cached) " >&6
15764else
15765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h.  */
15767int i;
15768_ACEOF
15769if ac_fn_c_try_compile "$LINENO"; then :
15770  xorg_cv_cc_flag_unknown_warning_option=yes
15771else
15772  xorg_cv_cc_flag_unknown_warning_option=no
15773fi
15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15778	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15779	CFLAGS="$xorg_testset_save_CFLAGS"
15780fi
15781
15782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15783	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785	fi
15786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15790  $as_echo_n "(cached) " >&6
15791else
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795_ACEOF
15796if ac_fn_c_try_compile "$LINENO"; then :
15797  xorg_cv_cc_flag_unused_command_line_argument=yes
15798else
15799  xorg_cv_cc_flag_unused_command_line_argument=no
15800fi
15801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802fi
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15806	CFLAGS="$xorg_testset_save_CFLAGS"
15807fi
15808
15809found="no"
15810
15811	if test $found = "no" ; then
15812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814		fi
15815
15816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818		fi
15819
15820		CFLAGS="$CFLAGS -Werror=sequence-point"
15821
15822		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15823$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15824		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15825		if eval \${$cacheid+:} false; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830int i;
15831int
15832main ()
15833{
15834
15835  ;
15836  return 0;
15837}
15838_ACEOF
15839if ac_fn_c_try_link "$LINENO"; then :
15840  eval $cacheid=yes
15841else
15842  eval $cacheid=no
15843fi
15844rm -f core conftest.err conftest.$ac_objext \
15845    conftest$ac_exeext conftest.$ac_ext
15846fi
15847
15848
15849		CFLAGS="$xorg_testset_save_CFLAGS"
15850
15851		eval supported=\$$cacheid
15852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15853$as_echo "$supported" >&6; }
15854		if test "$supported" = "yes" ; then
15855			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15856			found="yes"
15857		fi
15858	fi
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874xorg_testset_save_CFLAGS="$CFLAGS"
15875
15876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15880if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
15889else
15890  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
15895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15897	CFLAGS="$xorg_testset_save_CFLAGS"
15898fi
15899
15900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15903	fi
15904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15908  $as_echo_n "(cached) " >&6
15909else
15910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h.  */
15912int i;
15913_ACEOF
15914if ac_fn_c_try_compile "$LINENO"; then :
15915  xorg_cv_cc_flag_unused_command_line_argument=yes
15916else
15917  xorg_cv_cc_flag_unused_command_line_argument=no
15918fi
15919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15924	CFLAGS="$xorg_testset_save_CFLAGS"
15925fi
15926
15927found="no"
15928
15929	if test $found = "no" ; then
15930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932		fi
15933
15934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15936		fi
15937
15938		CFLAGS="$CFLAGS -Werror=return-type"
15939
15940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15941$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15942		cacheid=xorg_cv_cc_flag__Werror_return_type
15943		if eval \${$cacheid+:} false; then :
15944  $as_echo_n "(cached) " >&6
15945else
15946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948int i;
15949int
15950main ()
15951{
15952
15953  ;
15954  return 0;
15955}
15956_ACEOF
15957if ac_fn_c_try_link "$LINENO"; then :
15958  eval $cacheid=yes
15959else
15960  eval $cacheid=no
15961fi
15962rm -f core conftest.err conftest.$ac_objext \
15963    conftest$ac_exeext conftest.$ac_ext
15964fi
15965
15966
15967		CFLAGS="$xorg_testset_save_CFLAGS"
15968
15969		eval supported=\$$cacheid
15970		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15971$as_echo "$supported" >&6; }
15972		if test "$supported" = "yes" ; then
15973			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15974			found="yes"
15975		fi
15976	fi
15977
15978	if test $found = "no" ; then
15979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15981		fi
15982
15983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15985		fi
15986
15987		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15988
15989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15990$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15991		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15992		if eval \${$cacheid+:} false; then :
15993  $as_echo_n "(cached) " >&6
15994else
15995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996/* end confdefs.h.  */
15997int i;
15998int
15999main ()
16000{
16001
16002  ;
16003  return 0;
16004}
16005_ACEOF
16006if ac_fn_c_try_link "$LINENO"; then :
16007  eval $cacheid=yes
16008else
16009  eval $cacheid=no
16010fi
16011rm -f core conftest.err conftest.$ac_objext \
16012    conftest$ac_exeext conftest.$ac_ext
16013fi
16014
16015
16016		CFLAGS="$xorg_testset_save_CFLAGS"
16017
16018		eval supported=\$$cacheid
16019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16020$as_echo "$supported" >&6; }
16021		if test "$supported" = "yes" ; then
16022			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16023			found="yes"
16024		fi
16025	fi
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041xorg_testset_save_CFLAGS="$CFLAGS"
16042
16043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16048  $as_echo_n "(cached) " >&6
16049else
16050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051/* end confdefs.h.  */
16052int i;
16053_ACEOF
16054if ac_fn_c_try_compile "$LINENO"; then :
16055  xorg_cv_cc_flag_unknown_warning_option=yes
16056else
16057  xorg_cv_cc_flag_unknown_warning_option=no
16058fi
16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060fi
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16064	CFLAGS="$xorg_testset_save_CFLAGS"
16065fi
16066
16067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070	fi
16071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16075  $as_echo_n "(cached) " >&6
16076else
16077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079int i;
16080_ACEOF
16081if ac_fn_c_try_compile "$LINENO"; then :
16082  xorg_cv_cc_flag_unused_command_line_argument=yes
16083else
16084  xorg_cv_cc_flag_unused_command_line_argument=no
16085fi
16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087fi
16088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16091	CFLAGS="$xorg_testset_save_CFLAGS"
16092fi
16093
16094found="no"
16095
16096	if test $found = "no" ; then
16097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099		fi
16100
16101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16103		fi
16104
16105		CFLAGS="$CFLAGS -Werror=trigraphs"
16106
16107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16108$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16109		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16110		if eval \${$cacheid+:} false; then :
16111  $as_echo_n "(cached) " >&6
16112else
16113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116int
16117main ()
16118{
16119
16120  ;
16121  return 0;
16122}
16123_ACEOF
16124if ac_fn_c_try_link "$LINENO"; then :
16125  eval $cacheid=yes
16126else
16127  eval $cacheid=no
16128fi
16129rm -f core conftest.err conftest.$ac_objext \
16130    conftest$ac_exeext conftest.$ac_ext
16131fi
16132
16133
16134		CFLAGS="$xorg_testset_save_CFLAGS"
16135
16136		eval supported=\$$cacheid
16137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16138$as_echo "$supported" >&6; }
16139		if test "$supported" = "yes" ; then
16140			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16141			found="yes"
16142		fi
16143	fi
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159xorg_testset_save_CFLAGS="$CFLAGS"
16160
16161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16166  $as_echo_n "(cached) " >&6
16167else
16168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169/* end confdefs.h.  */
16170int i;
16171_ACEOF
16172if ac_fn_c_try_compile "$LINENO"; then :
16173  xorg_cv_cc_flag_unknown_warning_option=yes
16174else
16175  xorg_cv_cc_flag_unknown_warning_option=no
16176fi
16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178fi
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16182	CFLAGS="$xorg_testset_save_CFLAGS"
16183fi
16184
16185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188	fi
16189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16193  $as_echo_n "(cached) " >&6
16194else
16195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h.  */
16197int i;
16198_ACEOF
16199if ac_fn_c_try_compile "$LINENO"; then :
16200  xorg_cv_cc_flag_unused_command_line_argument=yes
16201else
16202  xorg_cv_cc_flag_unused_command_line_argument=no
16203fi
16204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205fi
16206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16209	CFLAGS="$xorg_testset_save_CFLAGS"
16210fi
16211
16212found="no"
16213
16214	if test $found = "no" ; then
16215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16217		fi
16218
16219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16221		fi
16222
16223		CFLAGS="$CFLAGS -Werror=array-bounds"
16224
16225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16226$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16227		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16228		if eval \${$cacheid+:} false; then :
16229  $as_echo_n "(cached) " >&6
16230else
16231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h.  */
16233int i;
16234int
16235main ()
16236{
16237
16238  ;
16239  return 0;
16240}
16241_ACEOF
16242if ac_fn_c_try_link "$LINENO"; then :
16243  eval $cacheid=yes
16244else
16245  eval $cacheid=no
16246fi
16247rm -f core conftest.err conftest.$ac_objext \
16248    conftest$ac_exeext conftest.$ac_ext
16249fi
16250
16251
16252		CFLAGS="$xorg_testset_save_CFLAGS"
16253
16254		eval supported=\$$cacheid
16255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16256$as_echo "$supported" >&6; }
16257		if test "$supported" = "yes" ; then
16258			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16259			found="yes"
16260		fi
16261	fi
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277xorg_testset_save_CFLAGS="$CFLAGS"
16278
16279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16284  $as_echo_n "(cached) " >&6
16285else
16286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h.  */
16288int i;
16289_ACEOF
16290if ac_fn_c_try_compile "$LINENO"; then :
16291  xorg_cv_cc_flag_unknown_warning_option=yes
16292else
16293  xorg_cv_cc_flag_unknown_warning_option=no
16294fi
16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296fi
16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16300	CFLAGS="$xorg_testset_save_CFLAGS"
16301fi
16302
16303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306	fi
16307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16311  $as_echo_n "(cached) " >&6
16312else
16313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h.  */
16315int i;
16316_ACEOF
16317if ac_fn_c_try_compile "$LINENO"; then :
16318  xorg_cv_cc_flag_unused_command_line_argument=yes
16319else
16320  xorg_cv_cc_flag_unused_command_line_argument=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323fi
16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16327	CFLAGS="$xorg_testset_save_CFLAGS"
16328fi
16329
16330found="no"
16331
16332	if test $found = "no" ; then
16333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335		fi
16336
16337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16339		fi
16340
16341		CFLAGS="$CFLAGS -Werror=write-strings"
16342
16343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16344$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16345		cacheid=xorg_cv_cc_flag__Werror_write_strings
16346		if eval \${$cacheid+:} false; then :
16347  $as_echo_n "(cached) " >&6
16348else
16349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351int i;
16352int
16353main ()
16354{
16355
16356  ;
16357  return 0;
16358}
16359_ACEOF
16360if ac_fn_c_try_link "$LINENO"; then :
16361  eval $cacheid=yes
16362else
16363  eval $cacheid=no
16364fi
16365rm -f core conftest.err conftest.$ac_objext \
16366    conftest$ac_exeext conftest.$ac_ext
16367fi
16368
16369
16370		CFLAGS="$xorg_testset_save_CFLAGS"
16371
16372		eval supported=\$$cacheid
16373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16374$as_echo "$supported" >&6; }
16375		if test "$supported" = "yes" ; then
16376			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16377			found="yes"
16378		fi
16379	fi
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395xorg_testset_save_CFLAGS="$CFLAGS"
16396
16397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16402  $as_echo_n "(cached) " >&6
16403else
16404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405/* end confdefs.h.  */
16406int i;
16407_ACEOF
16408if ac_fn_c_try_compile "$LINENO"; then :
16409  xorg_cv_cc_flag_unknown_warning_option=yes
16410else
16411  xorg_cv_cc_flag_unknown_warning_option=no
16412fi
16413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414fi
16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418	CFLAGS="$xorg_testset_save_CFLAGS"
16419fi
16420
16421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424	fi
16425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16429  $as_echo_n "(cached) " >&6
16430else
16431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432/* end confdefs.h.  */
16433int i;
16434_ACEOF
16435if ac_fn_c_try_compile "$LINENO"; then :
16436  xorg_cv_cc_flag_unused_command_line_argument=yes
16437else
16438  xorg_cv_cc_flag_unused_command_line_argument=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441fi
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16445	CFLAGS="$xorg_testset_save_CFLAGS"
16446fi
16447
16448found="no"
16449
16450	if test $found = "no" ; then
16451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16453		fi
16454
16455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457		fi
16458
16459		CFLAGS="$CFLAGS -Werror=address"
16460
16461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16462$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16463		cacheid=xorg_cv_cc_flag__Werror_address
16464		if eval \${$cacheid+:} false; then :
16465  $as_echo_n "(cached) " >&6
16466else
16467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469int i;
16470int
16471main ()
16472{
16473
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_link "$LINENO"; then :
16479  eval $cacheid=yes
16480else
16481  eval $cacheid=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext \
16484    conftest$ac_exeext conftest.$ac_ext
16485fi
16486
16487
16488		CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490		eval supported=\$$cacheid
16491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492$as_echo "$supported" >&6; }
16493		if test "$supported" = "yes" ; then
16494			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16495			found="yes"
16496		fi
16497	fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513xorg_testset_save_CFLAGS="$CFLAGS"
16514
16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
16528else
16529  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
16534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16536	CFLAGS="$xorg_testset_save_CFLAGS"
16537fi
16538
16539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16542	fi
16543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16547  $as_echo_n "(cached) " >&6
16548else
16549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551int i;
16552_ACEOF
16553if ac_fn_c_try_compile "$LINENO"; then :
16554  xorg_cv_cc_flag_unused_command_line_argument=yes
16555else
16556  xorg_cv_cc_flag_unused_command_line_argument=no
16557fi
16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559fi
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16563	CFLAGS="$xorg_testset_save_CFLAGS"
16564fi
16565
16566found="no"
16567
16568	if test $found = "no" ; then
16569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571		fi
16572
16573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16575		fi
16576
16577		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16578
16579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16580$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16581		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16582		if eval \${$cacheid+:} false; then :
16583  $as_echo_n "(cached) " >&6
16584else
16585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h.  */
16587int i;
16588int
16589main ()
16590{
16591
16592  ;
16593  return 0;
16594}
16595_ACEOF
16596if ac_fn_c_try_link "$LINENO"; then :
16597  eval $cacheid=yes
16598else
16599  eval $cacheid=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext \
16602    conftest$ac_exeext conftest.$ac_ext
16603fi
16604
16605
16606		CFLAGS="$xorg_testset_save_CFLAGS"
16607
16608		eval supported=\$$cacheid
16609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16610$as_echo "$supported" >&6; }
16611		if test "$supported" = "yes" ; then
16612			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16613			found="yes"
16614		fi
16615	fi
16616
16617	if test $found = "no" ; then
16618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620		fi
16621
16622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624		fi
16625
16626		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16627
16628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16629$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16630		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16631		if eval \${$cacheid+:} false; then :
16632  $as_echo_n "(cached) " >&6
16633else
16634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635/* end confdefs.h.  */
16636int i;
16637int
16638main ()
16639{
16640
16641  ;
16642  return 0;
16643}
16644_ACEOF
16645if ac_fn_c_try_link "$LINENO"; then :
16646  eval $cacheid=yes
16647else
16648  eval $cacheid=no
16649fi
16650rm -f core conftest.err conftest.$ac_objext \
16651    conftest$ac_exeext conftest.$ac_ext
16652fi
16653
16654
16655		CFLAGS="$xorg_testset_save_CFLAGS"
16656
16657		eval supported=\$$cacheid
16658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16659$as_echo "$supported" >&6; }
16660		if test "$supported" = "yes" ; then
16661			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16662			found="yes"
16663		fi
16664	fi
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680xorg_testset_save_CFLAGS="$CFLAGS"
16681
16682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h.  */
16691int i;
16692_ACEOF
16693if ac_fn_c_try_compile "$LINENO"; then :
16694  xorg_cv_cc_flag_unknown_warning_option=yes
16695else
16696  xorg_cv_cc_flag_unknown_warning_option=no
16697fi
16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699fi
16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16703	CFLAGS="$xorg_testset_save_CFLAGS"
16704fi
16705
16706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16709	fi
16710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16714  $as_echo_n "(cached) " >&6
16715else
16716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h.  */
16718int i;
16719_ACEOF
16720if ac_fn_c_try_compile "$LINENO"; then :
16721  xorg_cv_cc_flag_unused_command_line_argument=yes
16722else
16723  xorg_cv_cc_flag_unused_command_line_argument=no
16724fi
16725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726fi
16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16730	CFLAGS="$xorg_testset_save_CFLAGS"
16731fi
16732
16733found="no"
16734
16735	if test $found = "no" ; then
16736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738		fi
16739
16740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742		fi
16743
16744		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16745
16746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16747$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16748		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16749		if eval \${$cacheid+:} false; then :
16750  $as_echo_n "(cached) " >&6
16751else
16752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753/* end confdefs.h.  */
16754int i;
16755int
16756main ()
16757{
16758
16759  ;
16760  return 0;
16761}
16762_ACEOF
16763if ac_fn_c_try_link "$LINENO"; then :
16764  eval $cacheid=yes
16765else
16766  eval $cacheid=no
16767fi
16768rm -f core conftest.err conftest.$ac_objext \
16769    conftest$ac_exeext conftest.$ac_ext
16770fi
16771
16772
16773		CFLAGS="$xorg_testset_save_CFLAGS"
16774
16775		eval supported=\$$cacheid
16776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16777$as_echo "$supported" >&6; }
16778		if test "$supported" = "yes" ; then
16779			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16780			found="yes"
16781		fi
16782	fi
16783
16784 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16785else
16786{ $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
16787$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;}
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801xorg_testset_save_CFLAGS="$CFLAGS"
16802
16803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16808  $as_echo_n "(cached) " >&6
16809else
16810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811/* end confdefs.h.  */
16812int i;
16813_ACEOF
16814if ac_fn_c_try_compile "$LINENO"; then :
16815  xorg_cv_cc_flag_unknown_warning_option=yes
16816else
16817  xorg_cv_cc_flag_unknown_warning_option=no
16818fi
16819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820fi
16821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16824	CFLAGS="$xorg_testset_save_CFLAGS"
16825fi
16826
16827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16830	fi
16831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838/* end confdefs.h.  */
16839int i;
16840_ACEOF
16841if ac_fn_c_try_compile "$LINENO"; then :
16842  xorg_cv_cc_flag_unused_command_line_argument=yes
16843else
16844  xorg_cv_cc_flag_unused_command_line_argument=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16851	CFLAGS="$xorg_testset_save_CFLAGS"
16852fi
16853
16854found="no"
16855
16856	if test $found = "no" ; then
16857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859		fi
16860
16861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16863		fi
16864
16865		CFLAGS="$CFLAGS -Wimplicit"
16866
16867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16868$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16869		cacheid=xorg_cv_cc_flag__Wimplicit
16870		if eval \${$cacheid+:} false; then :
16871  $as_echo_n "(cached) " >&6
16872else
16873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874/* end confdefs.h.  */
16875int i;
16876int
16877main ()
16878{
16879
16880  ;
16881  return 0;
16882}
16883_ACEOF
16884if ac_fn_c_try_link "$LINENO"; then :
16885  eval $cacheid=yes
16886else
16887  eval $cacheid=no
16888fi
16889rm -f core conftest.err conftest.$ac_objext \
16890    conftest$ac_exeext conftest.$ac_ext
16891fi
16892
16893
16894		CFLAGS="$xorg_testset_save_CFLAGS"
16895
16896		eval supported=\$$cacheid
16897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16898$as_echo "$supported" >&6; }
16899		if test "$supported" = "yes" ; then
16900			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16901			found="yes"
16902		fi
16903	fi
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919xorg_testset_save_CFLAGS="$CFLAGS"
16920
16921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16926  $as_echo_n "(cached) " >&6
16927else
16928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929/* end confdefs.h.  */
16930int i;
16931_ACEOF
16932if ac_fn_c_try_compile "$LINENO"; then :
16933  xorg_cv_cc_flag_unknown_warning_option=yes
16934else
16935  xorg_cv_cc_flag_unknown_warning_option=no
16936fi
16937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938fi
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16942	CFLAGS="$xorg_testset_save_CFLAGS"
16943fi
16944
16945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16948	fi
16949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16953  $as_echo_n "(cached) " >&6
16954else
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957int i;
16958_ACEOF
16959if ac_fn_c_try_compile "$LINENO"; then :
16960  xorg_cv_cc_flag_unused_command_line_argument=yes
16961else
16962  xorg_cv_cc_flag_unused_command_line_argument=no
16963fi
16964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965fi
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16969	CFLAGS="$xorg_testset_save_CFLAGS"
16970fi
16971
16972found="no"
16973
16974	if test $found = "no" ; then
16975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977		fi
16978
16979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981		fi
16982
16983		CFLAGS="$CFLAGS -Wnonnull"
16984
16985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16986$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16987		cacheid=xorg_cv_cc_flag__Wnonnull
16988		if eval \${$cacheid+:} false; then :
16989  $as_echo_n "(cached) " >&6
16990else
16991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h.  */
16993int i;
16994int
16995main ()
16996{
16997
16998  ;
16999  return 0;
17000}
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003  eval $cacheid=yes
17004else
17005  eval $cacheid=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008    conftest$ac_exeext conftest.$ac_ext
17009fi
17010
17011
17012		CFLAGS="$xorg_testset_save_CFLAGS"
17013
17014		eval supported=\$$cacheid
17015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17016$as_echo "$supported" >&6; }
17017		if test "$supported" = "yes" ; then
17018			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17019			found="yes"
17020		fi
17021	fi
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037xorg_testset_save_CFLAGS="$CFLAGS"
17038
17039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17044  $as_echo_n "(cached) " >&6
17045else
17046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047/* end confdefs.h.  */
17048int i;
17049_ACEOF
17050if ac_fn_c_try_compile "$LINENO"; then :
17051  xorg_cv_cc_flag_unknown_warning_option=yes
17052else
17053  xorg_cv_cc_flag_unknown_warning_option=no
17054fi
17055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056fi
17057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17060	CFLAGS="$xorg_testset_save_CFLAGS"
17061fi
17062
17063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066	fi
17067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17071  $as_echo_n "(cached) " >&6
17072else
17073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h.  */
17075int i;
17076_ACEOF
17077if ac_fn_c_try_compile "$LINENO"; then :
17078  xorg_cv_cc_flag_unused_command_line_argument=yes
17079else
17080  xorg_cv_cc_flag_unused_command_line_argument=no
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17087	CFLAGS="$xorg_testset_save_CFLAGS"
17088fi
17089
17090found="no"
17091
17092	if test $found = "no" ; then
17093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095		fi
17096
17097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17099		fi
17100
17101		CFLAGS="$CFLAGS -Winit-self"
17102
17103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17104$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17105		cacheid=xorg_cv_cc_flag__Winit_self
17106		if eval \${$cacheid+:} false; then :
17107  $as_echo_n "(cached) " >&6
17108else
17109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110/* end confdefs.h.  */
17111int i;
17112int
17113main ()
17114{
17115
17116  ;
17117  return 0;
17118}
17119_ACEOF
17120if ac_fn_c_try_link "$LINENO"; then :
17121  eval $cacheid=yes
17122else
17123  eval $cacheid=no
17124fi
17125rm -f core conftest.err conftest.$ac_objext \
17126    conftest$ac_exeext conftest.$ac_ext
17127fi
17128
17129
17130		CFLAGS="$xorg_testset_save_CFLAGS"
17131
17132		eval supported=\$$cacheid
17133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17134$as_echo "$supported" >&6; }
17135		if test "$supported" = "yes" ; then
17136			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17137			found="yes"
17138		fi
17139	fi
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155xorg_testset_save_CFLAGS="$CFLAGS"
17156
17157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17162  $as_echo_n "(cached) " >&6
17163else
17164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h.  */
17166int i;
17167_ACEOF
17168if ac_fn_c_try_compile "$LINENO"; then :
17169  xorg_cv_cc_flag_unknown_warning_option=yes
17170else
17171  xorg_cv_cc_flag_unknown_warning_option=no
17172fi
17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174fi
17175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17178	CFLAGS="$xorg_testset_save_CFLAGS"
17179fi
17180
17181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17184	fi
17185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17189  $as_echo_n "(cached) " >&6
17190else
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193int i;
17194_ACEOF
17195if ac_fn_c_try_compile "$LINENO"; then :
17196  xorg_cv_cc_flag_unused_command_line_argument=yes
17197else
17198  xorg_cv_cc_flag_unused_command_line_argument=no
17199fi
17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201fi
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17205	CFLAGS="$xorg_testset_save_CFLAGS"
17206fi
17207
17208found="no"
17209
17210	if test $found = "no" ; then
17211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17213		fi
17214
17215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17217		fi
17218
17219		CFLAGS="$CFLAGS -Wmain"
17220
17221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17222$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17223		cacheid=xorg_cv_cc_flag__Wmain
17224		if eval \${$cacheid+:} false; then :
17225  $as_echo_n "(cached) " >&6
17226else
17227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h.  */
17229int i;
17230int
17231main ()
17232{
17233
17234  ;
17235  return 0;
17236}
17237_ACEOF
17238if ac_fn_c_try_link "$LINENO"; then :
17239  eval $cacheid=yes
17240else
17241  eval $cacheid=no
17242fi
17243rm -f core conftest.err conftest.$ac_objext \
17244    conftest$ac_exeext conftest.$ac_ext
17245fi
17246
17247
17248		CFLAGS="$xorg_testset_save_CFLAGS"
17249
17250		eval supported=\$$cacheid
17251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17252$as_echo "$supported" >&6; }
17253		if test "$supported" = "yes" ; then
17254			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17255			found="yes"
17256		fi
17257	fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273xorg_testset_save_CFLAGS="$CFLAGS"
17274
17275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17280  $as_echo_n "(cached) " >&6
17281else
17282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283/* end confdefs.h.  */
17284int i;
17285_ACEOF
17286if ac_fn_c_try_compile "$LINENO"; then :
17287  xorg_cv_cc_flag_unknown_warning_option=yes
17288else
17289  xorg_cv_cc_flag_unknown_warning_option=no
17290fi
17291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292fi
17293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17296	CFLAGS="$xorg_testset_save_CFLAGS"
17297fi
17298
17299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302	fi
17303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17307  $as_echo_n "(cached) " >&6
17308else
17309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311int i;
17312_ACEOF
17313if ac_fn_c_try_compile "$LINENO"; then :
17314  xorg_cv_cc_flag_unused_command_line_argument=yes
17315else
17316  xorg_cv_cc_flag_unused_command_line_argument=no
17317fi
17318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319fi
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17323	CFLAGS="$xorg_testset_save_CFLAGS"
17324fi
17325
17326found="no"
17327
17328	if test $found = "no" ; then
17329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17331		fi
17332
17333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335		fi
17336
17337		CFLAGS="$CFLAGS -Wmissing-braces"
17338
17339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17340$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17341		cacheid=xorg_cv_cc_flag__Wmissing_braces
17342		if eval \${$cacheid+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347int i;
17348int
17349main ()
17350{
17351
17352  ;
17353  return 0;
17354}
17355_ACEOF
17356if ac_fn_c_try_link "$LINENO"; then :
17357  eval $cacheid=yes
17358else
17359  eval $cacheid=no
17360fi
17361rm -f core conftest.err conftest.$ac_objext \
17362    conftest$ac_exeext conftest.$ac_ext
17363fi
17364
17365
17366		CFLAGS="$xorg_testset_save_CFLAGS"
17367
17368		eval supported=\$$cacheid
17369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17370$as_echo "$supported" >&6; }
17371		if test "$supported" = "yes" ; then
17372			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17373			found="yes"
17374		fi
17375	fi
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391xorg_testset_save_CFLAGS="$CFLAGS"
17392
17393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17398  $as_echo_n "(cached) " >&6
17399else
17400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401/* end confdefs.h.  */
17402int i;
17403_ACEOF
17404if ac_fn_c_try_compile "$LINENO"; then :
17405  xorg_cv_cc_flag_unknown_warning_option=yes
17406else
17407  xorg_cv_cc_flag_unknown_warning_option=no
17408fi
17409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410fi
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414	CFLAGS="$xorg_testset_save_CFLAGS"
17415fi
17416
17417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17420	fi
17421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17425  $as_echo_n "(cached) " >&6
17426else
17427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h.  */
17429int i;
17430_ACEOF
17431if ac_fn_c_try_compile "$LINENO"; then :
17432  xorg_cv_cc_flag_unused_command_line_argument=yes
17433else
17434  xorg_cv_cc_flag_unused_command_line_argument=no
17435fi
17436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437fi
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17441	CFLAGS="$xorg_testset_save_CFLAGS"
17442fi
17443
17444found="no"
17445
17446	if test $found = "no" ; then
17447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17449		fi
17450
17451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17453		fi
17454
17455		CFLAGS="$CFLAGS -Wsequence-point"
17456
17457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17458$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17459		cacheid=xorg_cv_cc_flag__Wsequence_point
17460		if eval \${$cacheid+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465int i;
17466int
17467main ()
17468{
17469
17470  ;
17471  return 0;
17472}
17473_ACEOF
17474if ac_fn_c_try_link "$LINENO"; then :
17475  eval $cacheid=yes
17476else
17477  eval $cacheid=no
17478fi
17479rm -f core conftest.err conftest.$ac_objext \
17480    conftest$ac_exeext conftest.$ac_ext
17481fi
17482
17483
17484		CFLAGS="$xorg_testset_save_CFLAGS"
17485
17486		eval supported=\$$cacheid
17487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17488$as_echo "$supported" >&6; }
17489		if test "$supported" = "yes" ; then
17490			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17491			found="yes"
17492		fi
17493	fi
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509xorg_testset_save_CFLAGS="$CFLAGS"
17510
17511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17512	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17513	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17516  $as_echo_n "(cached) " >&6
17517else
17518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h.  */
17520int i;
17521_ACEOF
17522if ac_fn_c_try_compile "$LINENO"; then :
17523  xorg_cv_cc_flag_unknown_warning_option=yes
17524else
17525  xorg_cv_cc_flag_unknown_warning_option=no
17526fi
17527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528fi
17529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17532	CFLAGS="$xorg_testset_save_CFLAGS"
17533fi
17534
17535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17538	fi
17539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17543  $as_echo_n "(cached) " >&6
17544else
17545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546/* end confdefs.h.  */
17547int i;
17548_ACEOF
17549if ac_fn_c_try_compile "$LINENO"; then :
17550  xorg_cv_cc_flag_unused_command_line_argument=yes
17551else
17552  xorg_cv_cc_flag_unused_command_line_argument=no
17553fi
17554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555fi
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17559	CFLAGS="$xorg_testset_save_CFLAGS"
17560fi
17561
17562found="no"
17563
17564	if test $found = "no" ; then
17565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567		fi
17568
17569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17571		fi
17572
17573		CFLAGS="$CFLAGS -Wreturn-type"
17574
17575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17576$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17577		cacheid=xorg_cv_cc_flag__Wreturn_type
17578		if eval \${$cacheid+:} false; then :
17579  $as_echo_n "(cached) " >&6
17580else
17581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583int i;
17584int
17585main ()
17586{
17587
17588  ;
17589  return 0;
17590}
17591_ACEOF
17592if ac_fn_c_try_link "$LINENO"; then :
17593  eval $cacheid=yes
17594else
17595  eval $cacheid=no
17596fi
17597rm -f core conftest.err conftest.$ac_objext \
17598    conftest$ac_exeext conftest.$ac_ext
17599fi
17600
17601
17602		CFLAGS="$xorg_testset_save_CFLAGS"
17603
17604		eval supported=\$$cacheid
17605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17606$as_echo "$supported" >&6; }
17607		if test "$supported" = "yes" ; then
17608			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17609			found="yes"
17610		fi
17611	fi
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627xorg_testset_save_CFLAGS="$CFLAGS"
17628
17629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17630	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17634  $as_echo_n "(cached) " >&6
17635else
17636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637/* end confdefs.h.  */
17638int i;
17639_ACEOF
17640if ac_fn_c_try_compile "$LINENO"; then :
17641  xorg_cv_cc_flag_unknown_warning_option=yes
17642else
17643  xorg_cv_cc_flag_unknown_warning_option=no
17644fi
17645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646fi
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17650	CFLAGS="$xorg_testset_save_CFLAGS"
17651fi
17652
17653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17656	fi
17657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17661  $as_echo_n "(cached) " >&6
17662else
17663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664/* end confdefs.h.  */
17665int i;
17666_ACEOF
17667if ac_fn_c_try_compile "$LINENO"; then :
17668  xorg_cv_cc_flag_unused_command_line_argument=yes
17669else
17670  xorg_cv_cc_flag_unused_command_line_argument=no
17671fi
17672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673fi
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17677	CFLAGS="$xorg_testset_save_CFLAGS"
17678fi
17679
17680found="no"
17681
17682	if test $found = "no" ; then
17683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17685		fi
17686
17687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17689		fi
17690
17691		CFLAGS="$CFLAGS -Wtrigraphs"
17692
17693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17694$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17695		cacheid=xorg_cv_cc_flag__Wtrigraphs
17696		if eval \${$cacheid+:} false; then :
17697  $as_echo_n "(cached) " >&6
17698else
17699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701int i;
17702int
17703main ()
17704{
17705
17706  ;
17707  return 0;
17708}
17709_ACEOF
17710if ac_fn_c_try_link "$LINENO"; then :
17711  eval $cacheid=yes
17712else
17713  eval $cacheid=no
17714fi
17715rm -f core conftest.err conftest.$ac_objext \
17716    conftest$ac_exeext conftest.$ac_ext
17717fi
17718
17719
17720		CFLAGS="$xorg_testset_save_CFLAGS"
17721
17722		eval supported=\$$cacheid
17723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17724$as_echo "$supported" >&6; }
17725		if test "$supported" = "yes" ; then
17726			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17727			found="yes"
17728		fi
17729	fi
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745xorg_testset_save_CFLAGS="$CFLAGS"
17746
17747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17752  $as_echo_n "(cached) " >&6
17753else
17754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755/* end confdefs.h.  */
17756int i;
17757_ACEOF
17758if ac_fn_c_try_compile "$LINENO"; then :
17759  xorg_cv_cc_flag_unknown_warning_option=yes
17760else
17761  xorg_cv_cc_flag_unknown_warning_option=no
17762fi
17763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17764fi
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17768	CFLAGS="$xorg_testset_save_CFLAGS"
17769fi
17770
17771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17774	fi
17775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17779  $as_echo_n "(cached) " >&6
17780else
17781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782/* end confdefs.h.  */
17783int i;
17784_ACEOF
17785if ac_fn_c_try_compile "$LINENO"; then :
17786  xorg_cv_cc_flag_unused_command_line_argument=yes
17787else
17788  xorg_cv_cc_flag_unused_command_line_argument=no
17789fi
17790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791fi
17792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17795	CFLAGS="$xorg_testset_save_CFLAGS"
17796fi
17797
17798found="no"
17799
17800	if test $found = "no" ; then
17801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17803		fi
17804
17805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17807		fi
17808
17809		CFLAGS="$CFLAGS -Warray-bounds"
17810
17811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17812$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17813		cacheid=xorg_cv_cc_flag__Warray_bounds
17814		if eval \${$cacheid+:} false; then :
17815  $as_echo_n "(cached) " >&6
17816else
17817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h.  */
17819int i;
17820int
17821main ()
17822{
17823
17824  ;
17825  return 0;
17826}
17827_ACEOF
17828if ac_fn_c_try_link "$LINENO"; then :
17829  eval $cacheid=yes
17830else
17831  eval $cacheid=no
17832fi
17833rm -f core conftest.err conftest.$ac_objext \
17834    conftest$ac_exeext conftest.$ac_ext
17835fi
17836
17837
17838		CFLAGS="$xorg_testset_save_CFLAGS"
17839
17840		eval supported=\$$cacheid
17841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17842$as_echo "$supported" >&6; }
17843		if test "$supported" = "yes" ; then
17844			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17845			found="yes"
17846		fi
17847	fi
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863xorg_testset_save_CFLAGS="$CFLAGS"
17864
17865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17870  $as_echo_n "(cached) " >&6
17871else
17872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873/* end confdefs.h.  */
17874int i;
17875_ACEOF
17876if ac_fn_c_try_compile "$LINENO"; then :
17877  xorg_cv_cc_flag_unknown_warning_option=yes
17878else
17879  xorg_cv_cc_flag_unknown_warning_option=no
17880fi
17881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882fi
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17886	CFLAGS="$xorg_testset_save_CFLAGS"
17887fi
17888
17889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17892	fi
17893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17897  $as_echo_n "(cached) " >&6
17898else
17899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17900/* end confdefs.h.  */
17901int i;
17902_ACEOF
17903if ac_fn_c_try_compile "$LINENO"; then :
17904  xorg_cv_cc_flag_unused_command_line_argument=yes
17905else
17906  xorg_cv_cc_flag_unused_command_line_argument=no
17907fi
17908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909fi
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17913	CFLAGS="$xorg_testset_save_CFLAGS"
17914fi
17915
17916found="no"
17917
17918	if test $found = "no" ; then
17919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17921		fi
17922
17923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17925		fi
17926
17927		CFLAGS="$CFLAGS -Wwrite-strings"
17928
17929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17930$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17931		cacheid=xorg_cv_cc_flag__Wwrite_strings
17932		if eval \${$cacheid+:} false; then :
17933  $as_echo_n "(cached) " >&6
17934else
17935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937int i;
17938int
17939main ()
17940{
17941
17942  ;
17943  return 0;
17944}
17945_ACEOF
17946if ac_fn_c_try_link "$LINENO"; then :
17947  eval $cacheid=yes
17948else
17949  eval $cacheid=no
17950fi
17951rm -f core conftest.err conftest.$ac_objext \
17952    conftest$ac_exeext conftest.$ac_ext
17953fi
17954
17955
17956		CFLAGS="$xorg_testset_save_CFLAGS"
17957
17958		eval supported=\$$cacheid
17959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17960$as_echo "$supported" >&6; }
17961		if test "$supported" = "yes" ; then
17962			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17963			found="yes"
17964		fi
17965	fi
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981xorg_testset_save_CFLAGS="$CFLAGS"
17982
17983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17988  $as_echo_n "(cached) " >&6
17989else
17990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991/* end confdefs.h.  */
17992int i;
17993_ACEOF
17994if ac_fn_c_try_compile "$LINENO"; then :
17995  xorg_cv_cc_flag_unknown_warning_option=yes
17996else
17997  xorg_cv_cc_flag_unknown_warning_option=no
17998fi
17999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18004	CFLAGS="$xorg_testset_save_CFLAGS"
18005fi
18006
18007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010	fi
18011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18015  $as_echo_n "(cached) " >&6
18016else
18017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018/* end confdefs.h.  */
18019int i;
18020_ACEOF
18021if ac_fn_c_try_compile "$LINENO"; then :
18022  xorg_cv_cc_flag_unused_command_line_argument=yes
18023else
18024  xorg_cv_cc_flag_unused_command_line_argument=no
18025fi
18026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027fi
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18031	CFLAGS="$xorg_testset_save_CFLAGS"
18032fi
18033
18034found="no"
18035
18036	if test $found = "no" ; then
18037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039		fi
18040
18041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043		fi
18044
18045		CFLAGS="$CFLAGS -Waddress"
18046
18047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18048$as_echo_n "checking if $CC supports -Waddress... " >&6; }
18049		cacheid=xorg_cv_cc_flag__Waddress
18050		if eval \${$cacheid+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054/* end confdefs.h.  */
18055int i;
18056int
18057main ()
18058{
18059
18060  ;
18061  return 0;
18062}
18063_ACEOF
18064if ac_fn_c_try_link "$LINENO"; then :
18065  eval $cacheid=yes
18066else
18067  eval $cacheid=no
18068fi
18069rm -f core conftest.err conftest.$ac_objext \
18070    conftest$ac_exeext conftest.$ac_ext
18071fi
18072
18073
18074		CFLAGS="$xorg_testset_save_CFLAGS"
18075
18076		eval supported=\$$cacheid
18077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18078$as_echo "$supported" >&6; }
18079		if test "$supported" = "yes" ; then
18080			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18081			found="yes"
18082		fi
18083	fi
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099xorg_testset_save_CFLAGS="$CFLAGS"
18100
18101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18106  $as_echo_n "(cached) " >&6
18107else
18108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h.  */
18110int i;
18111_ACEOF
18112if ac_fn_c_try_compile "$LINENO"; then :
18113  xorg_cv_cc_flag_unknown_warning_option=yes
18114else
18115  xorg_cv_cc_flag_unknown_warning_option=no
18116fi
18117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118fi
18119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18122	CFLAGS="$xorg_testset_save_CFLAGS"
18123fi
18124
18125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18128	fi
18129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18133  $as_echo_n "(cached) " >&6
18134else
18135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136/* end confdefs.h.  */
18137int i;
18138_ACEOF
18139if ac_fn_c_try_compile "$LINENO"; then :
18140  xorg_cv_cc_flag_unused_command_line_argument=yes
18141else
18142  xorg_cv_cc_flag_unused_command_line_argument=no
18143fi
18144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145fi
18146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18149	CFLAGS="$xorg_testset_save_CFLAGS"
18150fi
18151
18152found="no"
18153
18154	if test $found = "no" ; then
18155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18157		fi
18158
18159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18161		fi
18162
18163		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18164
18165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18166$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18167		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18168		if eval \${$cacheid+:} false; then :
18169  $as_echo_n "(cached) " >&6
18170else
18171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173int i;
18174int
18175main ()
18176{
18177
18178  ;
18179  return 0;
18180}
18181_ACEOF
18182if ac_fn_c_try_link "$LINENO"; then :
18183  eval $cacheid=yes
18184else
18185  eval $cacheid=no
18186fi
18187rm -f core conftest.err conftest.$ac_objext \
18188    conftest$ac_exeext conftest.$ac_ext
18189fi
18190
18191
18192		CFLAGS="$xorg_testset_save_CFLAGS"
18193
18194		eval supported=\$$cacheid
18195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18196$as_echo "$supported" >&6; }
18197		if test "$supported" = "yes" ; then
18198			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18199			found="yes"
18200		fi
18201	fi
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217xorg_testset_save_CFLAGS="$CFLAGS"
18218
18219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18224  $as_echo_n "(cached) " >&6
18225else
18226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227/* end confdefs.h.  */
18228int i;
18229_ACEOF
18230if ac_fn_c_try_compile "$LINENO"; then :
18231  xorg_cv_cc_flag_unknown_warning_option=yes
18232else
18233  xorg_cv_cc_flag_unknown_warning_option=no
18234fi
18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236fi
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18240	CFLAGS="$xorg_testset_save_CFLAGS"
18241fi
18242
18243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18246	fi
18247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18251  $as_echo_n "(cached) " >&6
18252else
18253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254/* end confdefs.h.  */
18255int i;
18256_ACEOF
18257if ac_fn_c_try_compile "$LINENO"; then :
18258  xorg_cv_cc_flag_unused_command_line_argument=yes
18259else
18260  xorg_cv_cc_flag_unused_command_line_argument=no
18261fi
18262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18263fi
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18267	CFLAGS="$xorg_testset_save_CFLAGS"
18268fi
18269
18270found="no"
18271
18272	if test $found = "no" ; then
18273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18275		fi
18276
18277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18279		fi
18280
18281		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18282
18283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18284$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18285		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18286		if eval \${$cacheid+:} false; then :
18287  $as_echo_n "(cached) " >&6
18288else
18289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290/* end confdefs.h.  */
18291int i;
18292int
18293main ()
18294{
18295
18296  ;
18297  return 0;
18298}
18299_ACEOF
18300if ac_fn_c_try_link "$LINENO"; then :
18301  eval $cacheid=yes
18302else
18303  eval $cacheid=no
18304fi
18305rm -f core conftest.err conftest.$ac_objext \
18306    conftest$ac_exeext conftest.$ac_ext
18307fi
18308
18309
18310		CFLAGS="$xorg_testset_save_CFLAGS"
18311
18312		eval supported=\$$cacheid
18313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18314$as_echo "$supported" >&6; }
18315		if test "$supported" = "yes" ; then
18316			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18317			found="yes"
18318		fi
18319	fi
18320
18321
18322fi
18323
18324
18325
18326
18327
18328
18329
18330		CWARNFLAGS="$BASE_CFLAGS"
18331		if  test "x$GCC" = xyes ; then
18332		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18333		fi
18334
18335
18336
18337
18338
18339
18340
18341
18342# Check whether --enable-strict-compilation was given.
18343if test "${enable_strict_compilation+set}" = set; then :
18344  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18345else
18346  STRICT_COMPILE=no
18347fi
18348
18349
18350
18351
18352
18353
18354STRICT_CFLAGS=""
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368xorg_testset_save_CFLAGS="$CFLAGS"
18369
18370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18375  $as_echo_n "(cached) " >&6
18376else
18377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378/* end confdefs.h.  */
18379int i;
18380_ACEOF
18381if ac_fn_c_try_compile "$LINENO"; then :
18382  xorg_cv_cc_flag_unknown_warning_option=yes
18383else
18384  xorg_cv_cc_flag_unknown_warning_option=no
18385fi
18386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387fi
18388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18391	CFLAGS="$xorg_testset_save_CFLAGS"
18392fi
18393
18394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18397	fi
18398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18402  $as_echo_n "(cached) " >&6
18403else
18404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405/* end confdefs.h.  */
18406int i;
18407_ACEOF
18408if ac_fn_c_try_compile "$LINENO"; then :
18409  xorg_cv_cc_flag_unused_command_line_argument=yes
18410else
18411  xorg_cv_cc_flag_unused_command_line_argument=no
18412fi
18413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414fi
18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18418	CFLAGS="$xorg_testset_save_CFLAGS"
18419fi
18420
18421found="no"
18422
18423	if test $found = "no" ; then
18424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18426		fi
18427
18428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18430		fi
18431
18432		CFLAGS="$CFLAGS -pedantic"
18433
18434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18435$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18436		cacheid=xorg_cv_cc_flag__pedantic
18437		if eval \${$cacheid+:} false; then :
18438  $as_echo_n "(cached) " >&6
18439else
18440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441/* end confdefs.h.  */
18442int i;
18443int
18444main ()
18445{
18446
18447  ;
18448  return 0;
18449}
18450_ACEOF
18451if ac_fn_c_try_link "$LINENO"; then :
18452  eval $cacheid=yes
18453else
18454  eval $cacheid=no
18455fi
18456rm -f core conftest.err conftest.$ac_objext \
18457    conftest$ac_exeext conftest.$ac_ext
18458fi
18459
18460
18461		CFLAGS="$xorg_testset_save_CFLAGS"
18462
18463		eval supported=\$$cacheid
18464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18465$as_echo "$supported" >&6; }
18466		if test "$supported" = "yes" ; then
18467			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18468			found="yes"
18469		fi
18470	fi
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486xorg_testset_save_CFLAGS="$CFLAGS"
18487
18488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18493  $as_echo_n "(cached) " >&6
18494else
18495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496/* end confdefs.h.  */
18497int i;
18498_ACEOF
18499if ac_fn_c_try_compile "$LINENO"; then :
18500  xorg_cv_cc_flag_unknown_warning_option=yes
18501else
18502  xorg_cv_cc_flag_unknown_warning_option=no
18503fi
18504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505fi
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18509	CFLAGS="$xorg_testset_save_CFLAGS"
18510fi
18511
18512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18515	fi
18516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18520  $as_echo_n "(cached) " >&6
18521else
18522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523/* end confdefs.h.  */
18524int i;
18525_ACEOF
18526if ac_fn_c_try_compile "$LINENO"; then :
18527  xorg_cv_cc_flag_unused_command_line_argument=yes
18528else
18529  xorg_cv_cc_flag_unused_command_line_argument=no
18530fi
18531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18532fi
18533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18536	CFLAGS="$xorg_testset_save_CFLAGS"
18537fi
18538
18539found="no"
18540
18541	if test $found = "no" ; then
18542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18544		fi
18545
18546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18548		fi
18549
18550		CFLAGS="$CFLAGS -Werror"
18551
18552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18553$as_echo_n "checking if $CC supports -Werror... " >&6; }
18554		cacheid=xorg_cv_cc_flag__Werror
18555		if eval \${$cacheid+:} false; then :
18556  $as_echo_n "(cached) " >&6
18557else
18558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560int i;
18561int
18562main ()
18563{
18564
18565  ;
18566  return 0;
18567}
18568_ACEOF
18569if ac_fn_c_try_link "$LINENO"; then :
18570  eval $cacheid=yes
18571else
18572  eval $cacheid=no
18573fi
18574rm -f core conftest.err conftest.$ac_objext \
18575    conftest$ac_exeext conftest.$ac_ext
18576fi
18577
18578
18579		CFLAGS="$xorg_testset_save_CFLAGS"
18580
18581		eval supported=\$$cacheid
18582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18583$as_echo "$supported" >&6; }
18584		if test "$supported" = "yes" ; then
18585			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18586			found="yes"
18587		fi
18588	fi
18589
18590	if test $found = "no" ; then
18591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18593		fi
18594
18595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18597		fi
18598
18599		CFLAGS="$CFLAGS -errwarn"
18600
18601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18602$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18603		cacheid=xorg_cv_cc_flag__errwarn
18604		if eval \${$cacheid+:} false; then :
18605  $as_echo_n "(cached) " >&6
18606else
18607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609int i;
18610int
18611main ()
18612{
18613
18614  ;
18615  return 0;
18616}
18617_ACEOF
18618if ac_fn_c_try_link "$LINENO"; then :
18619  eval $cacheid=yes
18620else
18621  eval $cacheid=no
18622fi
18623rm -f core conftest.err conftest.$ac_objext \
18624    conftest$ac_exeext conftest.$ac_ext
18625fi
18626
18627
18628		CFLAGS="$xorg_testset_save_CFLAGS"
18629
18630		eval supported=\$$cacheid
18631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18632$as_echo "$supported" >&6; }
18633		if test "$supported" = "yes" ; then
18634			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18635			found="yes"
18636		fi
18637	fi
18638
18639
18640
18641# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18642# activate it with -Werror, so we add it here explicitly.
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656xorg_testset_save_CFLAGS="$CFLAGS"
18657
18658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18663  $as_echo_n "(cached) " >&6
18664else
18665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666/* end confdefs.h.  */
18667int i;
18668_ACEOF
18669if ac_fn_c_try_compile "$LINENO"; then :
18670  xorg_cv_cc_flag_unknown_warning_option=yes
18671else
18672  xorg_cv_cc_flag_unknown_warning_option=no
18673fi
18674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675fi
18676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18679	CFLAGS="$xorg_testset_save_CFLAGS"
18680fi
18681
18682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18685	fi
18686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18690  $as_echo_n "(cached) " >&6
18691else
18692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693/* end confdefs.h.  */
18694int i;
18695_ACEOF
18696if ac_fn_c_try_compile "$LINENO"; then :
18697  xorg_cv_cc_flag_unused_command_line_argument=yes
18698else
18699  xorg_cv_cc_flag_unused_command_line_argument=no
18700fi
18701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702fi
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18706	CFLAGS="$xorg_testset_save_CFLAGS"
18707fi
18708
18709found="no"
18710
18711	if test $found = "no" ; then
18712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18714		fi
18715
18716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18718		fi
18719
18720		CFLAGS="$CFLAGS -Werror=attributes"
18721
18722		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18723$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18724		cacheid=xorg_cv_cc_flag__Werror_attributes
18725		if eval \${$cacheid+:} false; then :
18726  $as_echo_n "(cached) " >&6
18727else
18728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729/* end confdefs.h.  */
18730int i;
18731int
18732main ()
18733{
18734
18735  ;
18736  return 0;
18737}
18738_ACEOF
18739if ac_fn_c_try_link "$LINENO"; then :
18740  eval $cacheid=yes
18741else
18742  eval $cacheid=no
18743fi
18744rm -f core conftest.err conftest.$ac_objext \
18745    conftest$ac_exeext conftest.$ac_ext
18746fi
18747
18748
18749		CFLAGS="$xorg_testset_save_CFLAGS"
18750
18751		eval supported=\$$cacheid
18752		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18753$as_echo "$supported" >&6; }
18754		if test "$supported" = "yes" ; then
18755			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18756			found="yes"
18757		fi
18758	fi
18759
18760
18761
18762if test "x$STRICT_COMPILE" = "xyes"; then
18763    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18764    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18765fi
18766
18767
18768
18769
18770
18771
18772cat >>confdefs.h <<_ACEOF
18773#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18774_ACEOF
18775
18776	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18777	if test "x$PVM" = "x"; then
18778		PVM="0"
18779	fi
18780
18781cat >>confdefs.h <<_ACEOF
18782#define PACKAGE_VERSION_MINOR $PVM
18783_ACEOF
18784
18785	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18786	if test "x$PVP" = "x"; then
18787		PVP="0"
18788	fi
18789
18790cat >>confdefs.h <<_ACEOF
18791#define PACKAGE_VERSION_PATCHLEVEL $PVP
18792_ACEOF
18793
18794
18795
18796CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18797mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18798|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18799touch \$(top_srcdir)/ChangeLog; \
18800echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18801
18802
18803
18804
18805macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18806INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18807mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18808|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18809touch \$(top_srcdir)/INSTALL; \
18810echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18811
18812
18813
18814
18815
18816
18817case $host_os in
18818    solaris*)
18819        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18820        # check for a man page file found in later versions that use
18821        # traditional section numbers instead
18822        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18823$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18824if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18825  $as_echo_n "(cached) " >&6
18826else
18827  test "$cross_compiling" = yes &&
18828  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18829if test -r "/usr/share/man/man7/attributes.7"; then
18830  ac_cv_file__usr_share_man_man7_attributes_7=yes
18831else
18832  ac_cv_file__usr_share_man_man7_attributes_7=no
18833fi
18834fi
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18836$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18837if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18838  SYSV_MAN_SECTIONS=false
18839else
18840  SYSV_MAN_SECTIONS=true
18841fi
18842
18843        ;;
18844    *) SYSV_MAN_SECTIONS=false ;;
18845esac
18846
18847if test x$APP_MAN_SUFFIX = x    ; then
18848    APP_MAN_SUFFIX=1
18849fi
18850if test x$APP_MAN_DIR = x    ; then
18851    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18852fi
18853
18854if test x$LIB_MAN_SUFFIX = x    ; then
18855    LIB_MAN_SUFFIX=3
18856fi
18857if test x$LIB_MAN_DIR = x    ; then
18858    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18859fi
18860
18861if test x$FILE_MAN_SUFFIX = x    ; then
18862    case $SYSV_MAN_SECTIONS in
18863	true)				FILE_MAN_SUFFIX=4  ;;
18864	*)				FILE_MAN_SUFFIX=5  ;;
18865    esac
18866fi
18867if test x$FILE_MAN_DIR = x    ; then
18868    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18869fi
18870
18871if test x$MISC_MAN_SUFFIX = x    ; then
18872    case $SYSV_MAN_SECTIONS in
18873	true)				MISC_MAN_SUFFIX=5  ;;
18874	*)				MISC_MAN_SUFFIX=7  ;;
18875    esac
18876fi
18877if test x$MISC_MAN_DIR = x    ; then
18878    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18879fi
18880
18881if test x$DRIVER_MAN_SUFFIX = x    ; then
18882    case $SYSV_MAN_SECTIONS in
18883	true)				DRIVER_MAN_SUFFIX=7  ;;
18884	*)				DRIVER_MAN_SUFFIX=4  ;;
18885    esac
18886fi
18887if test x$DRIVER_MAN_DIR = x    ; then
18888    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18889fi
18890
18891if test x$ADMIN_MAN_SUFFIX = x    ; then
18892    case $SYSV_MAN_SECTIONS in
18893	true)				ADMIN_MAN_SUFFIX=1m ;;
18894	*)				ADMIN_MAN_SUFFIX=8  ;;
18895    esac
18896fi
18897if test x$ADMIN_MAN_DIR = x    ; then
18898    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18899fi
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915XORG_MAN_PAGE="X Version 11"
18916
18917MAN_SUBSTS="\
18918	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18919	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18920	-e 's|__xservername__|Xorg|g' \
18921	-e 's|__xconfigfile__|xorg.conf|g' \
18922	-e 's|__projectroot__|\$(prefix)|g' \
18923	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18924	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18925	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18926	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18927	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18928	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18929	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18930
18931
18932
18933# Check whether --enable-silent-rules was given.
18934if test "${enable_silent_rules+set}" = set; then :
18935  enableval=$enable_silent_rules;
18936fi
18937
18938case $enable_silent_rules in # (((
18939  yes) AM_DEFAULT_VERBOSITY=0;;
18940   no) AM_DEFAULT_VERBOSITY=1;;
18941    *) AM_DEFAULT_VERBOSITY=0;;
18942esac
18943am_make=${MAKE-make}
18944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18945$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18946if ${am_cv_make_support_nested_variables+:} false; then :
18947  $as_echo_n "(cached) " >&6
18948else
18949  if $as_echo 'TRUE=$(BAR$(V))
18950BAR0=false
18951BAR1=true
18952V=1
18953am__doit:
18954	@$(TRUE)
18955.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18956  am_cv_make_support_nested_variables=yes
18957else
18958  am_cv_make_support_nested_variables=no
18959fi
18960fi
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18962$as_echo "$am_cv_make_support_nested_variables" >&6; }
18963if test $am_cv_make_support_nested_variables = yes; then
18964    AM_V='$(V)'
18965  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18966else
18967  AM_V=$AM_DEFAULT_VERBOSITY
18968  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18969fi
18970AM_BACKSLASH='\'
18971
18972
18973
18974
18975# Check whether --enable-specs was given.
18976if test "${enable_specs+set}" = set; then :
18977  enableval=$enable_specs; build_specs=$enableval
18978else
18979  build_specs=yes
18980fi
18981
18982
18983 if test x$build_specs = xyes; then
18984  ENABLE_SPECS_TRUE=
18985  ENABLE_SPECS_FALSE='#'
18986else
18987  ENABLE_SPECS_TRUE='#'
18988  ENABLE_SPECS_FALSE=
18989fi
18990
18991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18992$as_echo_n "checking whether to build functional specifications... " >&6; }
18993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18994$as_echo "$build_specs" >&6; }
18995
18996
18997
18998
18999
19000# Check whether --with-xmlto was given.
19001if test "${with_xmlto+set}" = set; then :
19002  withval=$with_xmlto; use_xmlto=$withval
19003else
19004  use_xmlto=auto
19005fi
19006
19007
19008
19009if test "x$use_xmlto" = x"auto"; then
19010   # Extract the first word of "xmlto", so it can be a program name with args.
19011set dummy xmlto; ac_word=$2
19012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19013$as_echo_n "checking for $ac_word... " >&6; }
19014if ${ac_cv_path_XMLTO+:} false; then :
19015  $as_echo_n "(cached) " >&6
19016else
19017  case $XMLTO in
19018  [\\/]* | ?:[\\/]*)
19019  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19020  ;;
19021  *)
19022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19023for as_dir in $PATH
19024do
19025  IFS=$as_save_IFS
19026  test -z "$as_dir" && as_dir=.
19027    for ac_exec_ext in '' $ac_executable_extensions; do
19028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19029    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19031    break 2
19032  fi
19033done
19034  done
19035IFS=$as_save_IFS
19036
19037  ;;
19038esac
19039fi
19040XMLTO=$ac_cv_path_XMLTO
19041if test -n "$XMLTO"; then
19042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19043$as_echo "$XMLTO" >&6; }
19044else
19045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19046$as_echo "no" >&6; }
19047fi
19048
19049
19050   if test "x$XMLTO" = "x"; then
19051        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19052$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19053	have_xmlto=no
19054   else
19055        have_xmlto=yes
19056   fi
19057elif test "x$use_xmlto" = x"yes" ; then
19058   # Extract the first word of "xmlto", so it can be a program name with args.
19059set dummy xmlto; ac_word=$2
19060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19061$as_echo_n "checking for $ac_word... " >&6; }
19062if ${ac_cv_path_XMLTO+:} false; then :
19063  $as_echo_n "(cached) " >&6
19064else
19065  case $XMLTO in
19066  [\\/]* | ?:[\\/]*)
19067  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19068  ;;
19069  *)
19070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19071for as_dir in $PATH
19072do
19073  IFS=$as_save_IFS
19074  test -z "$as_dir" && as_dir=.
19075    for ac_exec_ext in '' $ac_executable_extensions; do
19076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19077    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19079    break 2
19080  fi
19081done
19082  done
19083IFS=$as_save_IFS
19084
19085  ;;
19086esac
19087fi
19088XMLTO=$ac_cv_path_XMLTO
19089if test -n "$XMLTO"; then
19090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19091$as_echo "$XMLTO" >&6; }
19092else
19093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19094$as_echo "no" >&6; }
19095fi
19096
19097
19098   if test "x$XMLTO" = "x"; then
19099        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19100   fi
19101   have_xmlto=yes
19102elif test "x$use_xmlto" = x"no" ; then
19103   if test "x$XMLTO" != "x"; then
19104      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19105$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19106   fi
19107   have_xmlto=no
19108else
19109   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19110fi
19111
19112# Test for a minimum version of xmlto, if provided.
19113if test "$have_xmlto" = yes; then
19114    # scrape the xmlto version
19115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19116$as_echo_n "checking the xmlto version... " >&6; }
19117    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19119$as_echo "$xmlto_version" >&6; }
19120    as_arg_v1=$xmlto_version
19121as_arg_v2=0.0.22
19122awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19123case $? in #(
19124  1) :
19125    if test "x$use_xmlto" = xauto; then
19126            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19127$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19128            have_xmlto=no
19129        else
19130            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19131        fi ;; #(
19132  0) :
19133     ;; #(
19134  2) :
19135     ;; #(
19136  *) :
19137     ;;
19138esac
19139fi
19140
19141# Test for the ability of xmlto to generate a text target
19142#
19143# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19144# following test for empty XML docbook files.
19145# For compatibility reasons use the following empty XML docbook file and if
19146# it fails try it again with a non-empty XML file.
19147have_xmlto_text=no
19148cat > conftest.xml << "EOF"
19149EOF
19150if test "$have_xmlto" = yes; then :
19151  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19152  have_xmlto_text=yes
19153else
19154  # Try it again with a non-empty XML file.
19155              cat > conftest.xml << "EOF"
19156<x></x>
19157EOF
19158              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19159  have_xmlto_text=yes
19160else
19161  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19162$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19163fi
19164fi
19165fi
19166rm -f conftest.xml
19167 if test $have_xmlto_text = yes; then
19168  HAVE_XMLTO_TEXT_TRUE=
19169  HAVE_XMLTO_TEXT_FALSE='#'
19170else
19171  HAVE_XMLTO_TEXT_TRUE='#'
19172  HAVE_XMLTO_TEXT_FALSE=
19173fi
19174
19175 if test "$have_xmlto" = yes; then
19176  HAVE_XMLTO_TRUE=
19177  HAVE_XMLTO_FALSE='#'
19178else
19179  HAVE_XMLTO_TRUE='#'
19180  HAVE_XMLTO_FALSE=
19181fi
19182
19183
19184
19185
19186
19187
19188# Check whether --with-fop was given.
19189if test "${with_fop+set}" = set; then :
19190  withval=$with_fop; use_fop=$withval
19191else
19192  use_fop=no
19193fi
19194
19195
19196
19197if test "x$use_fop" = x"auto"; then
19198   # Extract the first word of "fop", so it can be a program name with args.
19199set dummy fop; ac_word=$2
19200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19201$as_echo_n "checking for $ac_word... " >&6; }
19202if ${ac_cv_path_FOP+:} false; then :
19203  $as_echo_n "(cached) " >&6
19204else
19205  case $FOP in
19206  [\\/]* | ?:[\\/]*)
19207  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19208  ;;
19209  *)
19210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19211for as_dir in $PATH
19212do
19213  IFS=$as_save_IFS
19214  test -z "$as_dir" && as_dir=.
19215    for ac_exec_ext in '' $ac_executable_extensions; do
19216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19217    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19219    break 2
19220  fi
19221done
19222  done
19223IFS=$as_save_IFS
19224
19225  ;;
19226esac
19227fi
19228FOP=$ac_cv_path_FOP
19229if test -n "$FOP"; then
19230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19231$as_echo "$FOP" >&6; }
19232else
19233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234$as_echo "no" >&6; }
19235fi
19236
19237
19238   if test "x$FOP" = "x"; then
19239        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19240$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19241	have_fop=no
19242   else
19243        have_fop=yes
19244   fi
19245elif test "x$use_fop" = x"yes" ; then
19246   # Extract the first word of "fop", so it can be a program name with args.
19247set dummy fop; ac_word=$2
19248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19249$as_echo_n "checking for $ac_word... " >&6; }
19250if ${ac_cv_path_FOP+:} false; then :
19251  $as_echo_n "(cached) " >&6
19252else
19253  case $FOP in
19254  [\\/]* | ?:[\\/]*)
19255  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19256  ;;
19257  *)
19258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19259for as_dir in $PATH
19260do
19261  IFS=$as_save_IFS
19262  test -z "$as_dir" && as_dir=.
19263    for ac_exec_ext in '' $ac_executable_extensions; do
19264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19265    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19267    break 2
19268  fi
19269done
19270  done
19271IFS=$as_save_IFS
19272
19273  ;;
19274esac
19275fi
19276FOP=$ac_cv_path_FOP
19277if test -n "$FOP"; then
19278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19279$as_echo "$FOP" >&6; }
19280else
19281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19282$as_echo "no" >&6; }
19283fi
19284
19285
19286   if test "x$FOP" = "x"; then
19287        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19288   fi
19289   have_fop=yes
19290elif test "x$use_fop" = x"no" ; then
19291   if test "x$FOP" != "x"; then
19292      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19293$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19294   fi
19295   have_fop=no
19296else
19297   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19298fi
19299
19300# Test for a minimum version of fop, if provided.
19301
19302 if test "$have_fop" = yes; then
19303  HAVE_FOP_TRUE=
19304  HAVE_FOP_FALSE='#'
19305else
19306  HAVE_FOP_TRUE='#'
19307  HAVE_FOP_FALSE=
19308fi
19309
19310
19311
19312
19313# Preserves the interface, should it be implemented later
19314
19315
19316
19317# Check whether --with-xsltproc was given.
19318if test "${with_xsltproc+set}" = set; then :
19319  withval=$with_xsltproc; use_xsltproc=$withval
19320else
19321  use_xsltproc=auto
19322fi
19323
19324
19325
19326if test "x$use_xsltproc" = x"auto"; then
19327   # Extract the first word of "xsltproc", so it can be a program name with args.
19328set dummy xsltproc; ac_word=$2
19329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19330$as_echo_n "checking for $ac_word... " >&6; }
19331if ${ac_cv_path_XSLTPROC+:} false; then :
19332  $as_echo_n "(cached) " >&6
19333else
19334  case $XSLTPROC in
19335  [\\/]* | ?:[\\/]*)
19336  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19337  ;;
19338  *)
19339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340for as_dir in $PATH
19341do
19342  IFS=$as_save_IFS
19343  test -z "$as_dir" && as_dir=.
19344    for ac_exec_ext in '' $ac_executable_extensions; do
19345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19346    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19348    break 2
19349  fi
19350done
19351  done
19352IFS=$as_save_IFS
19353
19354  ;;
19355esac
19356fi
19357XSLTPROC=$ac_cv_path_XSLTPROC
19358if test -n "$XSLTPROC"; then
19359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19360$as_echo "$XSLTPROC" >&6; }
19361else
19362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363$as_echo "no" >&6; }
19364fi
19365
19366
19367   if test "x$XSLTPROC" = "x"; then
19368        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19369$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19370	have_xsltproc=no
19371   else
19372        have_xsltproc=yes
19373   fi
19374elif test "x$use_xsltproc" = x"yes" ; then
19375   # Extract the first word of "xsltproc", so it can be a program name with args.
19376set dummy xsltproc; ac_word=$2
19377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19378$as_echo_n "checking for $ac_word... " >&6; }
19379if ${ac_cv_path_XSLTPROC+:} false; then :
19380  $as_echo_n "(cached) " >&6
19381else
19382  case $XSLTPROC in
19383  [\\/]* | ?:[\\/]*)
19384  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19385  ;;
19386  *)
19387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388for as_dir in $PATH
19389do
19390  IFS=$as_save_IFS
19391  test -z "$as_dir" && as_dir=.
19392    for ac_exec_ext in '' $ac_executable_extensions; do
19393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19394    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19396    break 2
19397  fi
19398done
19399  done
19400IFS=$as_save_IFS
19401
19402  ;;
19403esac
19404fi
19405XSLTPROC=$ac_cv_path_XSLTPROC
19406if test -n "$XSLTPROC"; then
19407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19408$as_echo "$XSLTPROC" >&6; }
19409else
19410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19411$as_echo "no" >&6; }
19412fi
19413
19414
19415   if test "x$XSLTPROC" = "x"; then
19416        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19417   fi
19418   have_xsltproc=yes
19419elif test "x$use_xsltproc" = x"no" ; then
19420   if test "x$XSLTPROC" != "x"; then
19421      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19422$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19423   fi
19424   have_xsltproc=no
19425else
19426   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19427fi
19428
19429 if test "$have_xsltproc" = yes; then
19430  HAVE_XSLTPROC_TRUE=
19431  HAVE_XSLTPROC_FALSE='#'
19432else
19433  HAVE_XSLTPROC_TRUE='#'
19434  HAVE_XSLTPROC_FALSE=
19435fi
19436
19437
19438
19439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
19440$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; }
19441XORG_SGML_PATH=
19442if test -n "$PKG_CONFIG" && \
19443    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
19444  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
19445  ac_status=$?
19446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19447  test $ac_status = 0; }; then
19448  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19449else
19450  :
19451
19452fi
19453
19454# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19455# the path and the name of the doc stylesheet
19456if test "x$XORG_SGML_PATH" != "x" ; then
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19458$as_echo "$XORG_SGML_PATH" >&6; }
19459   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19460   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19461else
19462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19463$as_echo "no" >&6; }
19464fi
19465
19466
19467
19468
19469 if test "x$XSL_STYLESHEET" != "x"; then
19470  HAVE_STYLESHEETS_TRUE=
19471  HAVE_STYLESHEETS_FALSE='#'
19472else
19473  HAVE_STYLESHEETS_TRUE='#'
19474  HAVE_STYLESHEETS_FALSE=
19475fi
19476
19477
19478
19479
19480for ac_prog in cpp
19481do
19482  # Extract the first word of "$ac_prog", so it can be a program name with args.
19483set dummy $ac_prog; ac_word=$2
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19485$as_echo_n "checking for $ac_word... " >&6; }
19486if ${ac_cv_path_RAWCPP+:} false; then :
19487  $as_echo_n "(cached) " >&6
19488else
19489  case $RAWCPP in
19490  [\\/]* | ?:[\\/]*)
19491  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19492  ;;
19493  *)
19494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19495as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19496for as_dir in $as_dummy
19497do
19498  IFS=$as_save_IFS
19499  test -z "$as_dir" && as_dir=.
19500    for ac_exec_ext in '' $ac_executable_extensions; do
19501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19502    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19504    break 2
19505  fi
19506done
19507  done
19508IFS=$as_save_IFS
19509
19510  ;;
19511esac
19512fi
19513RAWCPP=$ac_cv_path_RAWCPP
19514if test -n "$RAWCPP"; then
19515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19516$as_echo "$RAWCPP" >&6; }
19517else
19518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19519$as_echo "no" >&6; }
19520fi
19521
19522
19523  test -n "$RAWCPP" && break
19524done
19525test -n "$RAWCPP" || RAWCPP="${CPP}"
19526
19527
19528# Check for flag to avoid builtin definitions - assumes unix is predefined,
19529# which is not the best choice for supporting other OS'es, but covers most
19530# of the ones we need for now.
19531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
19532$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
19533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534/* end confdefs.h.  */
19535Does cpp redefine unix ?
19536_ACEOF
19537if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19538	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539$as_echo "no" >&6; }
19540else
19541	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19542		RAWCPPFLAGS=-undef
19543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19544$as_echo "yes" >&6; }
19545	# under Cygwin unix is still defined even with -undef
19546	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19547		RAWCPPFLAGS="-undef -ansi"
19548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
19549$as_echo "yes, with -ansi" >&6; }
19550	else
19551		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
19552	fi
19553fi
19554rm -f conftest.$ac_ext
19555
19556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
19557$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
19558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559/* end confdefs.h.  */
19560Does cpp preserve   "whitespace"?
19561_ACEOF
19562if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19563	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564$as_echo "no" >&6; }
19565else
19566	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19567		TRADITIONALCPPFLAGS="-traditional"
19568		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
19569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19570$as_echo "yes" >&6; }
19571	else
19572		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
19573	fi
19574fi
19575rm -f conftest.$ac_ext
19576
19577
19578
19579
19580
19581# Preserves the interface, should it be implemented later
19582
19583
19584
19585# Check whether --with-perl was given.
19586if test "${with_perl+set}" = set; then :
19587  withval=$with_perl; use_perl=$withval
19588else
19589  use_perl=auto
19590fi
19591
19592
19593
19594if test "x$use_perl" = x"auto"; then
19595   # Extract the first word of "perl", so it can be a program name with args.
19596set dummy perl; ac_word=$2
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19598$as_echo_n "checking for $ac_word... " >&6; }
19599if ${ac_cv_path_PERL+:} false; then :
19600  $as_echo_n "(cached) " >&6
19601else
19602  case $PERL in
19603  [\\/]* | ?:[\\/]*)
19604  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19605  ;;
19606  *)
19607  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19608for as_dir in $PATH
19609do
19610  IFS=$as_save_IFS
19611  test -z "$as_dir" && as_dir=.
19612    for ac_exec_ext in '' $ac_executable_extensions; do
19613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19614    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19616    break 2
19617  fi
19618done
19619  done
19620IFS=$as_save_IFS
19621
19622  ;;
19623esac
19624fi
19625PERL=$ac_cv_path_PERL
19626if test -n "$PERL"; then
19627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19628$as_echo "$PERL" >&6; }
19629else
19630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19631$as_echo "no" >&6; }
19632fi
19633
19634
19635   if test "x$PERL" = "x"; then
19636        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
19637$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
19638	have_perl=no
19639   else
19640        have_perl=yes
19641   fi
19642elif test "x$use_perl" = x"yes" ; then
19643   # Extract the first word of "perl", so it can be a program name with args.
19644set dummy perl; ac_word=$2
19645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19646$as_echo_n "checking for $ac_word... " >&6; }
19647if ${ac_cv_path_PERL+:} false; then :
19648  $as_echo_n "(cached) " >&6
19649else
19650  case $PERL in
19651  [\\/]* | ?:[\\/]*)
19652  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19653  ;;
19654  *)
19655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656for as_dir in $PATH
19657do
19658  IFS=$as_save_IFS
19659  test -z "$as_dir" && as_dir=.
19660    for ac_exec_ext in '' $ac_executable_extensions; do
19661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19662    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19664    break 2
19665  fi
19666done
19667  done
19668IFS=$as_save_IFS
19669
19670  ;;
19671esac
19672fi
19673PERL=$ac_cv_path_PERL
19674if test -n "$PERL"; then
19675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19676$as_echo "$PERL" >&6; }
19677else
19678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19679$as_echo "no" >&6; }
19680fi
19681
19682
19683   if test "x$PERL" = "x"; then
19684        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
19685   fi
19686   have_perl=yes
19687elif test "x$use_perl" = x"no" ; then
19688   if test "x$PERL" != "x"; then
19689      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
19690$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
19691   fi
19692   have_perl=no
19693else
19694   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
19695fi
19696
19697 if test "$have_perl" = yes; then
19698  HAVE_PERL_TRUE=
19699  HAVE_PERL_FALSE='#'
19700else
19701  HAVE_PERL_TRUE='#'
19702  HAVE_PERL_FALSE=
19703fi
19704
19705
19706
19707# Required when PKG_CHECK_MODULES called within an if statement
19708
19709
19710
19711
19712
19713
19714
19715if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19716	if test -n "$ac_tool_prefix"; then
19717  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19718set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19720$as_echo_n "checking for $ac_word... " >&6; }
19721if ${ac_cv_path_PKG_CONFIG+:} false; then :
19722  $as_echo_n "(cached) " >&6
19723else
19724  case $PKG_CONFIG in
19725  [\\/]* | ?:[\\/]*)
19726  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19727  ;;
19728  *)
19729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19730for as_dir in $PATH
19731do
19732  IFS=$as_save_IFS
19733  test -z "$as_dir" && as_dir=.
19734    for ac_exec_ext in '' $ac_executable_extensions; do
19735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19736    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19738    break 2
19739  fi
19740done
19741  done
19742IFS=$as_save_IFS
19743
19744  ;;
19745esac
19746fi
19747PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19748if test -n "$PKG_CONFIG"; then
19749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19750$as_echo "$PKG_CONFIG" >&6; }
19751else
19752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753$as_echo "no" >&6; }
19754fi
19755
19756
19757fi
19758if test -z "$ac_cv_path_PKG_CONFIG"; then
19759  ac_pt_PKG_CONFIG=$PKG_CONFIG
19760  # Extract the first word of "pkg-config", so it can be a program name with args.
19761set dummy pkg-config; ac_word=$2
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19763$as_echo_n "checking for $ac_word... " >&6; }
19764if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19765  $as_echo_n "(cached) " >&6
19766else
19767  case $ac_pt_PKG_CONFIG in
19768  [\\/]* | ?:[\\/]*)
19769  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19770  ;;
19771  *)
19772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773for as_dir in $PATH
19774do
19775  IFS=$as_save_IFS
19776  test -z "$as_dir" && as_dir=.
19777    for ac_exec_ext in '' $ac_executable_extensions; do
19778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19781    break 2
19782  fi
19783done
19784  done
19785IFS=$as_save_IFS
19786
19787  ;;
19788esac
19789fi
19790ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19791if test -n "$ac_pt_PKG_CONFIG"; then
19792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19793$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19794else
19795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19796$as_echo "no" >&6; }
19797fi
19798
19799  if test "x$ac_pt_PKG_CONFIG" = x; then
19800    PKG_CONFIG=""
19801  else
19802    case $cross_compiling:$ac_tool_warned in
19803yes:)
19804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19806ac_tool_warned=yes ;;
19807esac
19808    PKG_CONFIG=$ac_pt_PKG_CONFIG
19809  fi
19810else
19811  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19812fi
19813
19814fi
19815if test -n "$PKG_CONFIG"; then
19816	_pkg_min_version=0.9.0
19817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19818$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19819	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821$as_echo "yes" >&6; }
19822	else
19823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824$as_echo "no" >&6; }
19825		PKG_CONFIG=""
19826	fi
19827fi
19828
19829if test x"$CC_FOR_BUILD" = x; then
19830	if test x"$cross_compiling" = xyes; then
19831	       for ac_prog in gcc cc
19832do
19833  # Extract the first word of "$ac_prog", so it can be a program name with args.
19834set dummy $ac_prog; ac_word=$2
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19836$as_echo_n "checking for $ac_word... " >&6; }
19837if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
19838  $as_echo_n "(cached) " >&6
19839else
19840  if test -n "$CC_FOR_BUILD"; then
19841  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19842else
19843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19844for as_dir in $PATH
19845do
19846  IFS=$as_save_IFS
19847  test -z "$as_dir" && as_dir=.
19848    for ac_exec_ext in '' $ac_executable_extensions; do
19849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19850    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
19851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19852    break 2
19853  fi
19854done
19855  done
19856IFS=$as_save_IFS
19857
19858fi
19859fi
19860CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19861if test -n "$CC_FOR_BUILD"; then
19862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19863$as_echo "$CC_FOR_BUILD" >&6; }
19864else
19865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19866$as_echo "no" >&6; }
19867fi
19868
19869
19870  test -n "$CC_FOR_BUILD" && break
19871done
19872
19873	else
19874	       CC_FOR_BUILD="$CC"
19875	fi
19876fi
19877
19878
19879if test x"$CPPFLAGS_FOR_BUILD" = x; then
19880	if test ! x"$cross_compiling" = xyes; then
19881		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
19882	fi
19883fi
19884
19885
19886if test x"$CFLAGS_FOR_BUILD" = x; then
19887	if test ! x"$cross_compiling" = xyes; then
19888		CFLAGS_FOR_BUILD=${CFLAGS}
19889	fi
19890fi
19891
19892
19893if test x"$LDFLAGS_FOR_BUILD" = x; then
19894	if test ! x"$cross_compiling" = xyes; then
19895		LDFLAGS_FOR_BUILD=${LDFLAGS}
19896	fi
19897fi
19898
19899
19900if test x"$EXEEXT_FOR_BUILD" = x; then
19901	if test x"$cross_compiling" = xno; then
19902		EXEEXT_FOR_BUILD=${EXEEXT}
19903	fi
19904	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
19905fi
19906
19907
19908# Checks for pkg-config packages
19909
19910# Always required
19911X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.11.1'
19912X11_EXTRA_DEPS="xcb >= 1.11.1"
19913
19914
19915
19916
19917
19918
19919
19920
19921if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19922	if test -n "$ac_tool_prefix"; then
19923  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19924set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19926$as_echo_n "checking for $ac_word... " >&6; }
19927if ${ac_cv_path_PKG_CONFIG+:} false; then :
19928  $as_echo_n "(cached) " >&6
19929else
19930  case $PKG_CONFIG in
19931  [\\/]* | ?:[\\/]*)
19932  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19933  ;;
19934  *)
19935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19936for as_dir in $PATH
19937do
19938  IFS=$as_save_IFS
19939  test -z "$as_dir" && as_dir=.
19940    for ac_exec_ext in '' $ac_executable_extensions; do
19941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19942    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19944    break 2
19945  fi
19946done
19947  done
19948IFS=$as_save_IFS
19949
19950  ;;
19951esac
19952fi
19953PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19954if test -n "$PKG_CONFIG"; then
19955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19956$as_echo "$PKG_CONFIG" >&6; }
19957else
19958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959$as_echo "no" >&6; }
19960fi
19961
19962
19963fi
19964if test -z "$ac_cv_path_PKG_CONFIG"; then
19965  ac_pt_PKG_CONFIG=$PKG_CONFIG
19966  # Extract the first word of "pkg-config", so it can be a program name with args.
19967set dummy pkg-config; ac_word=$2
19968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19969$as_echo_n "checking for $ac_word... " >&6; }
19970if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19971  $as_echo_n "(cached) " >&6
19972else
19973  case $ac_pt_PKG_CONFIG in
19974  [\\/]* | ?:[\\/]*)
19975  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19976  ;;
19977  *)
19978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19979for as_dir in $PATH
19980do
19981  IFS=$as_save_IFS
19982  test -z "$as_dir" && as_dir=.
19983    for ac_exec_ext in '' $ac_executable_extensions; do
19984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19985    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19987    break 2
19988  fi
19989done
19990  done
19991IFS=$as_save_IFS
19992
19993  ;;
19994esac
19995fi
19996ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19997if test -n "$ac_pt_PKG_CONFIG"; then
19998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19999$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20000else
20001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20002$as_echo "no" >&6; }
20003fi
20004
20005  if test "x$ac_pt_PKG_CONFIG" = x; then
20006    PKG_CONFIG=""
20007  else
20008    case $cross_compiling:$ac_tool_warned in
20009yes:)
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20012ac_tool_warned=yes ;;
20013esac
20014    PKG_CONFIG=$ac_pt_PKG_CONFIG
20015  fi
20016else
20017  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20018fi
20019
20020fi
20021if test -n "$PKG_CONFIG"; then
20022	_pkg_min_version=0.9.0
20023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20024$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20025	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20026		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20027$as_echo "yes" >&6; }
20028	else
20029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20030$as_echo "no" >&6; }
20031		PKG_CONFIG=""
20032	fi
20033fi
20034
20035
20036
20037# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
20038# was not expanded, since libX11 with no transport types is rather useless.
20039#
20040# If you're seeing an error here, be sure you installed the lib/xtrans module
20041# first and if it's not in the default location, that you set the ACLOCAL
20042# environment variable to find it, such as:
20043#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
20044
20045
20046# Transport selection macro from xtrans.m4
20047
20048
20049 case $host_os in
20050	mingw*)	unixdef="no"   ;;
20051	*)	unixdef="yes"  ;;
20052 esac
20053 # Check whether --enable-unix-transport was given.
20054if test "${enable_unix_transport+set}" = set; then :
20055  enableval=$enable_unix_transport; UNIXCONN=$enableval
20056else
20057  UNIXCONN=$unixdef
20058fi
20059
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20061$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
20062 if test "$UNIXCONN" = "yes"; then
20063
20064$as_echo "#define UNIXCONN 1" >>confdefs.h
20065
20066 fi
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20068$as_echo "$UNIXCONN" >&6; }
20069 # Check whether --enable-tcp-transport was given.
20070if test "${enable_tcp_transport+set}" = set; then :
20071  enableval=$enable_tcp_transport; TCPCONN=$enableval
20072else
20073  TCPCONN=yes
20074fi
20075
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20077$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20079$as_echo "$TCPCONN" >&6; }
20080 if test "$TCPCONN" = "yes"; then
20081
20082$as_echo "#define TCPCONN 1" >>confdefs.h
20083
20084
20085 # SVR4 hides these in libraries other than libc
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20087$as_echo_n "checking for library containing socket... " >&6; }
20088if ${ac_cv_search_socket+:} false; then :
20089  $as_echo_n "(cached) " >&6
20090else
20091  ac_func_search_save_LIBS=$LIBS
20092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093/* end confdefs.h.  */
20094
20095/* Override any GCC internal prototype to avoid an error.
20096   Use char because int might match the return type of a GCC
20097   builtin and then its argument prototype would still apply.  */
20098#ifdef __cplusplus
20099extern "C"
20100#endif
20101char socket ();
20102int
20103main ()
20104{
20105return socket ();
20106  ;
20107  return 0;
20108}
20109_ACEOF
20110for ac_lib in '' socket; do
20111  if test -z "$ac_lib"; then
20112    ac_res="none required"
20113  else
20114    ac_res=-l$ac_lib
20115    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20116  fi
20117  if ac_fn_c_try_link "$LINENO"; then :
20118  ac_cv_search_socket=$ac_res
20119fi
20120rm -f core conftest.err conftest.$ac_objext \
20121    conftest$ac_exeext
20122  if ${ac_cv_search_socket+:} false; then :
20123  break
20124fi
20125done
20126if ${ac_cv_search_socket+:} false; then :
20127
20128else
20129  ac_cv_search_socket=no
20130fi
20131rm conftest.$ac_ext
20132LIBS=$ac_func_search_save_LIBS
20133fi
20134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20135$as_echo "$ac_cv_search_socket" >&6; }
20136ac_res=$ac_cv_search_socket
20137if test "$ac_res" != no; then :
20138  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20139
20140fi
20141
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20143$as_echo_n "checking for library containing gethostbyname... " >&6; }
20144if ${ac_cv_search_gethostbyname+:} false; then :
20145  $as_echo_n "(cached) " >&6
20146else
20147  ac_func_search_save_LIBS=$LIBS
20148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149/* end confdefs.h.  */
20150
20151/* Override any GCC internal prototype to avoid an error.
20152   Use char because int might match the return type of a GCC
20153   builtin and then its argument prototype would still apply.  */
20154#ifdef __cplusplus
20155extern "C"
20156#endif
20157char gethostbyname ();
20158int
20159main ()
20160{
20161return gethostbyname ();
20162  ;
20163  return 0;
20164}
20165_ACEOF
20166for ac_lib in '' nsl; do
20167  if test -z "$ac_lib"; then
20168    ac_res="none required"
20169  else
20170    ac_res=-l$ac_lib
20171    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20172  fi
20173  if ac_fn_c_try_link "$LINENO"; then :
20174  ac_cv_search_gethostbyname=$ac_res
20175fi
20176rm -f core conftest.err conftest.$ac_objext \
20177    conftest$ac_exeext
20178  if ${ac_cv_search_gethostbyname+:} false; then :
20179  break
20180fi
20181done
20182if ${ac_cv_search_gethostbyname+:} false; then :
20183
20184else
20185  ac_cv_search_gethostbyname=no
20186fi
20187rm conftest.$ac_ext
20188LIBS=$ac_func_search_save_LIBS
20189fi
20190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20191$as_echo "$ac_cv_search_gethostbyname" >&6; }
20192ac_res=$ac_cv_search_gethostbyname
20193if test "$ac_res" != no; then :
20194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20195
20196fi
20197
20198 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20200$as_echo_n "checking for main in -lws2_32... " >&6; }
20201if ${ac_cv_lib_ws2_32_main+:} false; then :
20202  $as_echo_n "(cached) " >&6
20203else
20204  ac_check_lib_save_LIBS=$LIBS
20205LIBS="-lws2_32  $LIBS"
20206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207/* end confdefs.h.  */
20208
20209
20210int
20211main ()
20212{
20213return main ();
20214  ;
20215  return 0;
20216}
20217_ACEOF
20218if ac_fn_c_try_link "$LINENO"; then :
20219  ac_cv_lib_ws2_32_main=yes
20220else
20221  ac_cv_lib_ws2_32_main=no
20222fi
20223rm -f core conftest.err conftest.$ac_objext \
20224    conftest$ac_exeext conftest.$ac_ext
20225LIBS=$ac_check_lib_save_LIBS
20226fi
20227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20228$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20229if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20230  cat >>confdefs.h <<_ACEOF
20231#define HAVE_LIBWS2_32 1
20232_ACEOF
20233
20234  LIBS="-lws2_32 $LIBS"
20235
20236fi
20237
20238 fi
20239
20240 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20241 # Check whether --enable-ipv6 was given.
20242if test "${enable_ipv6+set}" = set; then :
20243  enableval=$enable_ipv6; IPV6CONN=$enableval
20244else
20245  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20246if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20247  IPV6CONN=yes
20248else
20249  IPV6CONN=no
20250fi
20251
20252fi
20253
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20255$as_echo_n "checking if IPv6 support should be built... " >&6; }
20256 if test "$IPV6CONN" = "yes"; then
20257
20258$as_echo "#define IPv6 1" >>confdefs.h
20259
20260 fi
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20262$as_echo "$IPV6CONN" >&6; }
20263
20264 # 4.3BSD-Reno added a new member to struct sockaddr_in
20265 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20266#include <sys/types.h>
20267#include <sys/socket.h>
20268#include <netinet/in.h>
20269
20270"
20271if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20272
20273$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20274
20275fi
20276
20277
20278 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20279 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20280$ac_includes_default
20281#include <sys/socket.h>
20282"
20283if test "x$ac_cv_type_socklen_t" = xyes; then :
20284
20285cat >>confdefs.h <<_ACEOF
20286#define HAVE_SOCKLEN_T 1
20287_ACEOF
20288
20289
20290fi
20291
20292
20293 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20294 # _XOPEN_SOURCE to get it (such as on Solaris)
20295 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20296$ac_includes_default
20297#include <sys/socket.h>
20298
20299"
20300if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20301
20302fi
20303
20304 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20305 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20306     unset ac_cv_member_struct_msghdr_msg_control
20307     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20308$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20309     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20310#define _XOPEN_SOURCE 600
20311$ac_includes_default
20312#include <sys/socket.h>
20313
20314"
20315if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20316
20317$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20318
20319
20320fi
20321
20322 fi
20323 # If that didn't work, fall back to XPG5/UNIX98 with C89
20324 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20325     unset ac_cv_member_struct_msghdr_msg_control
20326     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20327$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20328     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20329#define _XOPEN_SOURCE 500
20330$ac_includes_default
20331#include <sys/socket.h>
20332
20333"
20334if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20335
20336$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20337
20338
20339fi
20340
20341 fi
20342
20343
20344
20345 fi
20346 case $host_os in
20347	solaris*|sco*|sysv4*)	localdef="yes" ;;
20348	*)			localdef="no"  ;;
20349 esac
20350 # Check whether --enable-local-transport was given.
20351if test "${enable_local_transport+set}" = set; then :
20352  enableval=$enable_local_transport; LOCALCONN=$enableval
20353else
20354  LOCALCONN=$localdef
20355fi
20356
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20358$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20360$as_echo "$LOCALCONN" >&6; }
20361 if test "$LOCALCONN" = "yes"; then
20362
20363$as_echo "#define LOCALCONN 1" >>confdefs.h
20364
20365 fi
20366
20367 # Other functions Xtrans may need
20368 for ac_func in strcasecmp strlcpy
20369do :
20370  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20371ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20372if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20373  cat >>confdefs.h <<_ACEOF
20374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20375_ACEOF
20376
20377fi
20378done
20379
20380
20381
20382
20383# Check for dlopen
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
20385$as_echo_n "checking if run-time linking is supported... " >&6; }
20386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20387$as_echo_n "checking for library containing dlopen... " >&6; }
20388if ${ac_cv_search_dlopen+:} false; then :
20389  $as_echo_n "(cached) " >&6
20390else
20391  ac_func_search_save_LIBS=$LIBS
20392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393/* end confdefs.h.  */
20394
20395/* Override any GCC internal prototype to avoid an error.
20396   Use char because int might match the return type of a GCC
20397   builtin and then its argument prototype would still apply.  */
20398#ifdef __cplusplus
20399extern "C"
20400#endif
20401char dlopen ();
20402int
20403main ()
20404{
20405return dlopen ();
20406  ;
20407  return 0;
20408}
20409_ACEOF
20410for ac_lib in '' dl svld; do
20411  if test -z "$ac_lib"; then
20412    ac_res="none required"
20413  else
20414    ac_res=-l$ac_lib
20415    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20416  fi
20417  if ac_fn_c_try_link "$LINENO"; then :
20418  ac_cv_search_dlopen=$ac_res
20419fi
20420rm -f core conftest.err conftest.$ac_objext \
20421    conftest$ac_exeext
20422  if ${ac_cv_search_dlopen+:} false; then :
20423  break
20424fi
20425done
20426if ${ac_cv_search_dlopen+:} false; then :
20427
20428else
20429  ac_cv_search_dlopen=no
20430fi
20431rm conftest.$ac_ext
20432LIBS=$ac_func_search_save_LIBS
20433fi
20434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20435$as_echo "$ac_cv_search_dlopen" >&6; }
20436ac_res=$ac_cv_search_dlopen
20437if test "$ac_res" != no; then :
20438  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20439
20440fi
20441
20442if test "x$ac_cv_search_dlopen" = xno; then
20443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
20444$as_echo_n "checking for library containing shl_load... " >&6; }
20445if ${ac_cv_search_shl_load+:} false; then :
20446  $as_echo_n "(cached) " >&6
20447else
20448  ac_func_search_save_LIBS=$LIBS
20449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450/* end confdefs.h.  */
20451
20452/* Override any GCC internal prototype to avoid an error.
20453   Use char because int might match the return type of a GCC
20454   builtin and then its argument prototype would still apply.  */
20455#ifdef __cplusplus
20456extern "C"
20457#endif
20458char shl_load ();
20459int
20460main ()
20461{
20462return shl_load ();
20463  ;
20464  return 0;
20465}
20466_ACEOF
20467for ac_lib in '' dld; do
20468  if test -z "$ac_lib"; then
20469    ac_res="none required"
20470  else
20471    ac_res=-l$ac_lib
20472    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20473  fi
20474  if ac_fn_c_try_link "$LINENO"; then :
20475  ac_cv_search_shl_load=$ac_res
20476fi
20477rm -f core conftest.err conftest.$ac_objext \
20478    conftest$ac_exeext
20479  if ${ac_cv_search_shl_load+:} false; then :
20480  break
20481fi
20482done
20483if ${ac_cv_search_shl_load+:} false; then :
20484
20485else
20486  ac_cv_search_shl_load=no
20487fi
20488rm conftest.$ac_ext
20489LIBS=$ac_func_search_save_LIBS
20490fi
20491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
20492$as_echo "$ac_cv_search_shl_load" >&6; }
20493ac_res=$ac_cv_search_shl_load
20494if test "$ac_res" != no; then :
20495  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20496
20497fi
20498
20499	if test "x$ac_cv_search_shl_load" != xno; then
20500
20501$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20502
20503		for ac_header in dl.h
20504do :
20505  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
20506if test "x$ac_cv_header_dl_h" = xyes; then :
20507  cat >>confdefs.h <<_ACEOF
20508#define HAVE_DL_H 1
20509_ACEOF
20510
20511fi
20512
20513done
20514
20515	fi
20516else
20517
20518$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20519
20520	for ac_header in dlfcn.h
20521do :
20522  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20523if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20524  cat >>confdefs.h <<_ACEOF
20525#define HAVE_DLFCN_H 1
20526_ACEOF
20527
20528fi
20529
20530done
20531
20532fi
20533if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
20534	HAVE_LOADABLE_MODULES=yes
20535else
20536	HAVE_LOADABLE_MODULES=no
20537fi
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
20539$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
20540
20541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
20542$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
20543# Check whether --enable-loadable-i18n was given.
20544if test "${enable_loadable_i18n+set}" = set; then :
20545  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
20546else
20547  XLIB_LOADABLE_I18N="no"
20548fi
20549
20550if test x$XLIB_LOADABLE_I18N = xyes; then
20551	if test x$HAVE_LOADABLE_MODULES = xno; then
20552		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
20553	fi
20554
20555$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
20556
20557	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
20558
20559fi
20560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
20561$as_echo "$XLIB_LOADABLE_I18N" >&6; }
20562
20563 if test x$XLIB_LOADABLE_I18N = xyes; then
20564  XLIB_LOADABLE_I18N_TRUE=
20565  XLIB_LOADABLE_I18N_FALSE='#'
20566else
20567  XLIB_LOADABLE_I18N_TRUE='#'
20568  XLIB_LOADABLE_I18N_FALSE=
20569fi
20570
20571
20572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
20573$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
20574# Check whether --enable-loadable-xcursor was given.
20575if test "${enable_loadable_xcursor+set}" = set; then :
20576  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
20577else
20578  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
20579fi
20580
20581if test x$XLIB_LOADABLE_XCURSOR = xyes; then
20582
20583$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
20584
20585fi
20586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
20587$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
20588
20589# Checks for header files.
20590for ac_header in sys/filio.h sys/select.h sys/ioctl.h sys/socket.h
20591do :
20592  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20593ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20595  cat >>confdefs.h <<_ACEOF
20596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20597_ACEOF
20598
20599fi
20600
20601done
20602
20603
20604# Checks for typedefs, structures, and compiler characteristics.
20605
20606# Checks for library functions.
20607for ac_func in strtol seteuid
20608do :
20609  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20611if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20612  cat >>confdefs.h <<_ACEOF
20613#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20614_ACEOF
20615
20616fi
20617done
20618
20619ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20620if test "x$ac_cv_func_reallocarray" = xyes; then :
20621  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20622
20623else
20624  case " $LIBOBJS " in
20625  *" reallocarray.$ac_objext "* ) ;;
20626  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20627 ;;
20628esac
20629
20630fi
20631
20632
20633# Used in lcFile.c (see also --enable-xlocaledir settings below)
20634XLOCALEDIR_IS_SAFE="no"
20635ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default"
20636if test "x$ac_cv_have_decl_issetugid" = xyes; then :
20637
20638fi
20639
20640ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20641if test "x$ac_cv_func_issetugid" = xyes; then :
20642
20643fi
20644
20645if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
20646    XLOCALEDIR_IS_SAFE="yes"
20647
20648$as_echo "#define HASSETUGID 1" >>confdefs.h
20649
20650fi
20651ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
20652if test "x$ac_cv_func_getresuid" = xyes; then :
20653  XLOCALEDIR_IS_SAFE="yes"
20654
20655$as_echo "#define HASGETRESUID 1" >>confdefs.h
20656
20657fi
20658
20659# Used in Font.c
20660ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20661if test "x$ac_cv_func_shmat" = xyes; then :
20662
20663$as_echo "#define HAS_SHM 1" >>confdefs.h
20664
20665fi
20666
20667
20668# Checks for system services
20669# AC_PATH_XTRA
20670
20671# arch specific things
20672WCHAR32="1"
20673case $host_os in
20674  os2*) os2="true" ; WCHAR32="0" ;;
20675  *) ;;
20676esac
20677
20678
20679 if test x$os2 = xtrue; then
20680  OS2_TRUE=
20681  OS2_FALSE='#'
20682else
20683  OS2_TRUE='#'
20684  OS2_FALSE=
20685fi
20686
20687
20688
20689# Check whether --with-launchd was given.
20690if test "${with_launchd+set}" = set; then :
20691  withval=$with_launchd; LAUNCHD=$withval
20692else
20693  LAUNCHD=auto
20694fi
20695
20696if test "x$LAUNCHD" = xauto; then
20697	unset LAUNCHD
20698	# Extract the first word of "launchd", so it can be a program name with args.
20699set dummy launchd; ac_word=$2
20700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20701$as_echo_n "checking for $ac_word... " >&6; }
20702if ${ac_cv_prog_LAUNCHD+:} false; then :
20703  $as_echo_n "(cached) " >&6
20704else
20705  if test -n "$LAUNCHD"; then
20706  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20707else
20708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20709for as_dir in $PATH$PATH_SEPARATOR/sbin
20710do
20711  IFS=$as_save_IFS
20712  test -z "$as_dir" && as_dir=.
20713    for ac_exec_ext in '' $ac_executable_extensions; do
20714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20715    ac_cv_prog_LAUNCHD="yes"
20716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20717    break 2
20718  fi
20719done
20720  done
20721IFS=$as_save_IFS
20722
20723  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20724fi
20725fi
20726LAUNCHD=$ac_cv_prog_LAUNCHD
20727if test -n "$LAUNCHD"; then
20728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20729$as_echo "$LAUNCHD" >&6; }
20730else
20731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20732$as_echo "no" >&6; }
20733fi
20734
20735
20736fi
20737
20738if test "x$LAUNCHD" = xyes ; then
20739
20740$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20741
20742
20743$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
20744
20745fi
20746
20747# Check whether --enable-xthreads was given.
20748if test "${enable_xthreads+set}" = set; then :
20749  enableval=$enable_xthreads; xthreads=$enableval
20750else
20751  xthreads=yes
20752fi
20753
20754
20755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20756$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20757if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20758  $as_echo_n "(cached) " >&6
20759else
20760  ac_check_lib_save_LIBS=$LIBS
20761LIBS="-lc  $LIBS"
20762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20763/* end confdefs.h.  */
20764
20765/* Override any GCC internal prototype to avoid an error.
20766   Use char because int might match the return type of a GCC
20767   builtin and then its argument prototype would still apply.  */
20768#ifdef __cplusplus
20769extern "C"
20770#endif
20771char getpwuid_r ();
20772int
20773main ()
20774{
20775return getpwuid_r ();
20776  ;
20777  return 0;
20778}
20779_ACEOF
20780if ac_fn_c_try_link "$LINENO"; then :
20781  ac_cv_lib_c_getpwuid_r=yes
20782else
20783  ac_cv_lib_c_getpwuid_r=no
20784fi
20785rm -f core conftest.err conftest.$ac_objext \
20786    conftest$ac_exeext conftest.$ac_ext
20787LIBS=$ac_check_lib_save_LIBS
20788fi
20789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20790$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20791if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20792  mtsafeapi="yes"
20793else
20794  mtsafeapi="no"
20795fi
20796
20797
20798case x$xthreads in
20799xyes)
20800
20801$as_echo "#define XTHREADS 1" >>confdefs.h
20802
20803	if test x$mtsafeapi = xyes
20804	then
20805
20806$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
20807
20808	fi
20809	;;
20810*)
20811	;;
20812esac
20813
20814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
20815$as_echo_n "checking for pthread_self in -lc... " >&6; }
20816if ${ac_cv_lib_c_pthread_self+:} false; then :
20817  $as_echo_n "(cached) " >&6
20818else
20819  ac_check_lib_save_LIBS=$LIBS
20820LIBS="-lc  $LIBS"
20821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822/* end confdefs.h.  */
20823
20824/* Override any GCC internal prototype to avoid an error.
20825   Use char because int might match the return type of a GCC
20826   builtin and then its argument prototype would still apply.  */
20827#ifdef __cplusplus
20828extern "C"
20829#endif
20830char pthread_self ();
20831int
20832main ()
20833{
20834return pthread_self ();
20835  ;
20836  return 0;
20837}
20838_ACEOF
20839if ac_fn_c_try_link "$LINENO"; then :
20840  ac_cv_lib_c_pthread_self=yes
20841else
20842  ac_cv_lib_c_pthread_self=no
20843fi
20844rm -f core conftest.err conftest.$ac_objext \
20845    conftest$ac_exeext conftest.$ac_ext
20846LIBS=$ac_check_lib_save_LIBS
20847fi
20848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
20849$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
20850if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
20851  thrstubs="no"
20852else
20853  thrstubs="yes"
20854fi
20855
20856 if test x$thrstubs = xyes; then
20857  THRSTUBS_TRUE=
20858  THRSTUBS_FALSE='#'
20859else
20860  THRSTUBS_TRUE='#'
20861  THRSTUBS_FALSE=
20862fi
20863
20864
20865# XXX incomplete, please fill this in
20866if test x$xthreads = xyes ; then
20867    case $host_os in
20868    linux*|gnu*|k*bsd*-gnu)
20869        XTHREADLIB=-lpthread ;;
20870    netbsd*)
20871	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
20872	XTHREADLIB="-lpthread" ;;
20873    freebsd*)
20874        XTHREAD_CFLAGS="-D_THREAD_SAFE"
20875        XTHREADLIB="-pthread" ;;
20876    dragonfly*|openbsd*)
20877        XTHREADLIB="-pthread" ;;
20878    solaris*)
20879	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
20880    esac
20881fi
20882
20883
20884
20885ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20886if test "x$ac_cv_func_poll" = xyes; then :
20887
20888$as_echo "#define USE_POLL 1" >>confdefs.h
20889
20890fi
20891
20892
20893#
20894# Find keysymdef.h
20895#
20896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
20897$as_echo_n "checking keysym definitions... " >&6; }
20898
20899# Check whether --with-keysymdefdir was given.
20900if test "${with_keysymdefdir+set}" = set; then :
20901  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
20902else
20903  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
20904fi
20905
20906
20907if test ! -d "$KEYSYMDEFDIR"; then
20908	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
20909fi
20910
20911FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
20912for i in $FILES; do
20913    if test -f "$KEYSYMDEFDIR/$i"; then
20914            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
20915    elif test "x$i" = "xkeysymdef.h"; then
20916	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
20917    fi
20918done
20919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
20920$as_echo "$KEYSYMDEFS" >&6; }
20921
20922
20923# Check whether --enable-xcms was given.
20924if test "${enable_xcms+set}" = set; then :
20925  enableval=$enable_xcms; XCMS=$enableval
20926else
20927  XCMS=yes
20928fi
20929
20930 if test x$XCMS = xyes ; then
20931  XCMS_TRUE=
20932  XCMS_FALSE='#'
20933else
20934  XCMS_TRUE='#'
20935  XCMS_FALSE=
20936fi
20937
20938if test x"$XCMS" = "xyes"; then
20939
20940$as_echo "#define XCMS 1" >>confdefs.h
20941
20942fi
20943
20944# Check whether --enable-xlocale was given.
20945if test "${enable_xlocale+set}" = set; then :
20946  enableval=$enable_xlocale; XLOCALE=$enableval
20947else
20948  XLOCALE=yes
20949fi
20950
20951
20952 if  test x$XLOCALE = xyes ; then
20953  XLOCALE_TRUE=
20954  XLOCALE_FALSE='#'
20955else
20956  XLOCALE_TRUE='#'
20957  XLOCALE_FALSE=
20958fi
20959
20960if test x"$XLOCALE" = "xyes"; then
20961
20962$as_echo "#define XLOCALE 1" >>confdefs.h
20963
20964fi
20965
20966# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
20967# don't have either issetugid() or getresuid(), and you need to protect
20968# clients that are setgid or setuid to an id other than 0.
20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
20970$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
20971# Check whether --enable-xlocaledir was given.
20972if test "${enable_xlocaledir+set}" = set; then :
20973  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
20974else
20975  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
20976fi
20977
20978if test "x$ENABLE_XLOCALEDIR" = "xno"; then
20979
20980$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
20981
20982fi
20983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
20984$as_echo "$ENABLE_XLOCALEDIR" >&6; }
20985
20986# Check whether --enable-xf86bigfont was given.
20987if test "${enable_xf86bigfont+set}" = set; then :
20988  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
20989else
20990  XF86BIGFONT="yes"
20991fi
20992
20993if test "x$XF86BIGFONT" = "xyes"; then
20994
20995pkg_failed=no
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
20997$as_echo_n "checking for BIGFONT... " >&6; }
20998
20999if test -n "$BIGFONT_CFLAGS"; then
21000    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
21001 elif test -n "$PKG_CONFIG"; then
21002    if test -n "$PKG_CONFIG" && \
21003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
21004  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
21005  ac_status=$?
21006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007  test $ac_status = 0; }; then
21008  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
21009		      test "x$?" != "x0" && pkg_failed=yes
21010else
21011  pkg_failed=yes
21012fi
21013 else
21014    pkg_failed=untried
21015fi
21016if test -n "$BIGFONT_LIBS"; then
21017    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
21018 elif test -n "$PKG_CONFIG"; then
21019    if test -n "$PKG_CONFIG" && \
21020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
21021  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
21022  ac_status=$?
21023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024  test $ac_status = 0; }; then
21025  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
21026		      test "x$?" != "x0" && pkg_failed=yes
21027else
21028  pkg_failed=yes
21029fi
21030 else
21031    pkg_failed=untried
21032fi
21033
21034
21035
21036if test $pkg_failed = yes; then
21037   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21038$as_echo "no" >&6; }
21039
21040if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21041        _pkg_short_errors_supported=yes
21042else
21043        _pkg_short_errors_supported=no
21044fi
21045        if test $_pkg_short_errors_supported = yes; then
21046	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21047        else
21048	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21049        fi
21050	# Put the nasty error message in config.log where it belongs
21051	echo "$BIGFONT_PKG_ERRORS" >&5
21052
21053	XF86BIGFONT="no"
21054elif test $pkg_failed = untried; then
21055     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056$as_echo "no" >&6; }
21057	XF86BIGFONT="no"
21058else
21059	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
21060	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
21061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21062$as_echo "yes" >&6; }
21063
21064$as_echo "#define XF86BIGFONT 1" >>confdefs.h
21065
21066fi
21067fi
21068
21069# Check whether --enable-xkb was given.
21070if test "${enable_xkb+set}" = set; then :
21071  enableval=$enable_xkb; XKB=$enableval
21072else
21073  XKB=yes
21074fi
21075
21076
21077 if  test x$XKB = xyes ; then
21078  XKB_TRUE=
21079  XKB_FALSE='#'
21080else
21081  XKB_TRUE='#'
21082  XKB_FALSE=
21083fi
21084
21085if test x"$XKB" = "xyes"; then
21086   XKBPROTO_REQUIRES="kbproto"
21087   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
21088
21089$as_echo "#define XKB 1" >>confdefs.h
21090
21091else
21092   XKBPROTO_REQUIRES=""
21093fi
21094
21095
21096
21097
21098
21099  for ac_header in $ac_header_list
21100do :
21101  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21102ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21103"
21104if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21105  cat >>confdefs.h <<_ACEOF
21106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107_ACEOF
21108
21109fi
21110
21111done
21112
21113
21114
21115
21116
21117
21118
21119
21120for ac_func in getpagesize
21121do :
21122  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21123if test "x$ac_cv_func_getpagesize" = xyes; then :
21124  cat >>confdefs.h <<_ACEOF
21125#define HAVE_GETPAGESIZE 1
21126_ACEOF
21127
21128fi
21129done
21130
21131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21132$as_echo_n "checking for working mmap... " >&6; }
21133if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
21134  $as_echo_n "(cached) " >&6
21135else
21136  if test "$cross_compiling" = yes; then :
21137  ac_cv_func_mmap_fixed_mapped=no
21138else
21139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140/* end confdefs.h.  */
21141$ac_includes_default
21142/* malloc might have been renamed as rpl_malloc. */
21143#undef malloc
21144
21145/* Thanks to Mike Haertel and Jim Avera for this test.
21146   Here is a matrix of mmap possibilities:
21147	mmap private not fixed
21148	mmap private fixed at somewhere currently unmapped
21149	mmap private fixed at somewhere already mapped
21150	mmap shared not fixed
21151	mmap shared fixed at somewhere currently unmapped
21152	mmap shared fixed at somewhere already mapped
21153   For private mappings, we should verify that changes cannot be read()
21154   back from the file, nor mmap's back from the file at a different
21155   address.  (There have been systems where private was not correctly
21156   implemented like the infamous i386 svr4.0, and systems where the
21157   VM page cache was not coherent with the file system buffer cache
21158   like early versions of FreeBSD and possibly contemporary NetBSD.)
21159   For shared mappings, we should conversely verify that changes get
21160   propagated back to all the places they're supposed to be.
21161
21162   Grep wants private fixed already mapped.
21163   The main things grep needs to know about mmap are:
21164   * does it exist and is it safe to write into the mmap'd area
21165   * how to use it (BSD variants)  */
21166
21167#include <fcntl.h>
21168#include <sys/mman.h>
21169
21170#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21171char *malloc ();
21172#endif
21173
21174/* This mess was copied from the GNU getpagesize.h.  */
21175#ifndef HAVE_GETPAGESIZE
21176# ifdef _SC_PAGESIZE
21177#  define getpagesize() sysconf(_SC_PAGESIZE)
21178# else /* no _SC_PAGESIZE */
21179#  ifdef HAVE_SYS_PARAM_H
21180#   include <sys/param.h>
21181#   ifdef EXEC_PAGESIZE
21182#    define getpagesize() EXEC_PAGESIZE
21183#   else /* no EXEC_PAGESIZE */
21184#    ifdef NBPG
21185#     define getpagesize() NBPG * CLSIZE
21186#     ifndef CLSIZE
21187#      define CLSIZE 1
21188#     endif /* no CLSIZE */
21189#    else /* no NBPG */
21190#     ifdef NBPC
21191#      define getpagesize() NBPC
21192#     else /* no NBPC */
21193#      ifdef PAGESIZE
21194#       define getpagesize() PAGESIZE
21195#      endif /* PAGESIZE */
21196#     endif /* no NBPC */
21197#    endif /* no NBPG */
21198#   endif /* no EXEC_PAGESIZE */
21199#  else /* no HAVE_SYS_PARAM_H */
21200#   define getpagesize() 8192	/* punt totally */
21201#  endif /* no HAVE_SYS_PARAM_H */
21202# endif /* no _SC_PAGESIZE */
21203
21204#endif /* no HAVE_GETPAGESIZE */
21205
21206int
21207main ()
21208{
21209  char *data, *data2, *data3;
21210  const char *cdata2;
21211  int i, pagesize;
21212  int fd, fd2;
21213
21214  pagesize = getpagesize ();
21215
21216  /* First, make a file with some known garbage in it. */
21217  data = (char *) malloc (pagesize);
21218  if (!data)
21219    return 1;
21220  for (i = 0; i < pagesize; ++i)
21221    *(data + i) = rand ();
21222  umask (0);
21223  fd = creat ("conftest.mmap", 0600);
21224  if (fd < 0)
21225    return 2;
21226  if (write (fd, data, pagesize) != pagesize)
21227    return 3;
21228  close (fd);
21229
21230  /* Next, check that the tail of a page is zero-filled.  File must have
21231     non-zero length, otherwise we risk SIGBUS for entire page.  */
21232  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21233  if (fd2 < 0)
21234    return 4;
21235  cdata2 = "";
21236  if (write (fd2, cdata2, 1) != 1)
21237    return 5;
21238  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21239  if (data2 == MAP_FAILED)
21240    return 6;
21241  for (i = 0; i < pagesize; ++i)
21242    if (*(data2 + i))
21243      return 7;
21244  close (fd2);
21245  if (munmap (data2, pagesize))
21246    return 8;
21247
21248  /* Next, try to mmap the file at a fixed address which already has
21249     something else allocated at it.  If we can, also make sure that
21250     we see the same garbage.  */
21251  fd = open ("conftest.mmap", O_RDWR);
21252  if (fd < 0)
21253    return 9;
21254  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21255		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21256    return 10;
21257  for (i = 0; i < pagesize; ++i)
21258    if (*(data + i) != *(data2 + i))
21259      return 11;
21260
21261  /* Finally, make sure that changes to the mapped area do not
21262     percolate back to the file as seen by read().  (This is a bug on
21263     some variants of i386 svr4.0.)  */
21264  for (i = 0; i < pagesize; ++i)
21265    *(data2 + i) = *(data2 + i) + 1;
21266  data3 = (char *) malloc (pagesize);
21267  if (!data3)
21268    return 12;
21269  if (read (fd, data3, pagesize) != pagesize)
21270    return 13;
21271  for (i = 0; i < pagesize; ++i)
21272    if (*(data + i) != *(data3 + i))
21273      return 14;
21274  close (fd);
21275  return 0;
21276}
21277_ACEOF
21278if ac_fn_c_try_run "$LINENO"; then :
21279  ac_cv_func_mmap_fixed_mapped=yes
21280else
21281  ac_cv_func_mmap_fixed_mapped=no
21282fi
21283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21284  conftest.$ac_objext conftest.beam conftest.$ac_ext
21285fi
21286
21287fi
21288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21289$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21290if test $ac_cv_func_mmap_fixed_mapped = yes; then
21291
21292$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21293
21294fi
21295rm -f conftest.mmap conftest.txt
21296
21297composecache_default=$ac_cv_func_mmap_fixed_mapped
21298ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21299if test "x$ac_cv_func_nl_langinfo" = xyes; then :
21300
21301else
21302  composecache_default=no
21303fi
21304
21305# Check whether --enable-composecache was given.
21306if test "${enable_composecache+set}" = set; then :
21307  enableval=$enable_composecache; COMPOSECACHE=$enableval
21308else
21309  COMPOSECACHE=$composecache_default
21310fi
21311
21312if test x"$COMPOSECACHE" = "xyes"; then
21313
21314$as_echo "#define COMPOSECACHE 1" >>confdefs.h
21315
21316fi
21317
21318# Allow checking code with lint, sparse, etc.
21319
21320
21321
21322
21323
21324# Check whether --with-lint was given.
21325if test "${with_lint+set}" = set; then :
21326  withval=$with_lint; use_lint=$withval
21327else
21328  use_lint=no
21329fi
21330
21331
21332# Obtain platform specific info like program name and options
21333# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21334case $host_os in
21335  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21336	lint_name=splint
21337	lint_options="-badflag"
21338	;;
21339  *freebsd* | *netbsd*)
21340	lint_name=lint
21341	lint_options="-u -b"
21342	;;
21343  *solaris*)
21344	lint_name=lint
21345	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21346	;;
21347esac
21348
21349# Test for the presence of the program (either guessed by the code or spelled out by the user)
21350if test "x$use_lint" = x"yes" ; then
21351   # Extract the first word of "$lint_name", so it can be a program name with args.
21352set dummy $lint_name; ac_word=$2
21353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21354$as_echo_n "checking for $ac_word... " >&6; }
21355if ${ac_cv_path_LINT+:} false; then :
21356  $as_echo_n "(cached) " >&6
21357else
21358  case $LINT in
21359  [\\/]* | ?:[\\/]*)
21360  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21361  ;;
21362  *)
21363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21364for as_dir in $PATH
21365do
21366  IFS=$as_save_IFS
21367  test -z "$as_dir" && as_dir=.
21368    for ac_exec_ext in '' $ac_executable_extensions; do
21369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21370    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
21371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21372    break 2
21373  fi
21374done
21375  done
21376IFS=$as_save_IFS
21377
21378  ;;
21379esac
21380fi
21381LINT=$ac_cv_path_LINT
21382if test -n "$LINT"; then
21383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21384$as_echo "$LINT" >&6; }
21385else
21386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21387$as_echo "no" >&6; }
21388fi
21389
21390
21391   if test "x$LINT" = "x"; then
21392        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21393   fi
21394elif test "x$use_lint" = x"no" ; then
21395   if test "x$LINT" != "x"; then
21396      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21397$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21398   fi
21399else
21400   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21401fi
21402
21403# User supplied flags override default flags
21404if test "x$LINT_FLAGS" != "x"; then
21405   lint_options=$LINT_FLAGS
21406fi
21407
21408LINT_FLAGS=$lint_options
21409
21410 if test "x$LINT" != x; then
21411  LINT_TRUE=
21412  LINT_FALSE='#'
21413else
21414  LINT_TRUE='#'
21415  LINT_FALSE=
21416fi
21417
21418
21419
21420
21421
21422# Check whether --enable-lint-library was given.
21423if test "${enable_lint_library+set}" = set; then :
21424  enableval=$enable_lint_library; make_lint_lib=$enableval
21425else
21426  make_lint_lib=no
21427fi
21428
21429
21430if test "x$make_lint_lib" = x"yes" ; then
21431   LINTLIB=llib-lX11.ln
21432   if test "x$LINT" = "x"; then
21433        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21434   fi
21435elif test "x$make_lint_lib" != x"no" ; then
21436   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21437fi
21438
21439
21440 if test x$make_lint_lib != xno; then
21441  MAKE_LINT_LIB_TRUE=
21442  MAKE_LINT_LIB_FALSE='#'
21443else
21444  MAKE_LINT_LIB_TRUE='#'
21445  MAKE_LINT_LIB_FALSE=
21446fi
21447
21448
21449
21450
21451X11_DATADIR="${datadir}/X11"
21452
21453  prefix_NONE=
21454  exec_prefix_NONE=
21455  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21456  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21457  eval ax_define_dir="\"$X11_DATADIR\""
21458  eval ax_define_dir="\"$ax_define_dir\""
21459  X11_DATADIR="$ax_define_dir"
21460
21461
21462cat >>confdefs.h <<_ACEOF
21463#define X11_DATADIR "$ax_define_dir"
21464_ACEOF
21465
21466  test "$prefix_NONE" && prefix=NONE
21467  test "$exec_prefix_NONE" && exec_prefix=NONE
21468
21469
21470
21471X11_LIBDIR="${libdir}/X11"
21472
21473  prefix_NONE=
21474  exec_prefix_NONE=
21475  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21476  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21477  eval ax_define_dir="\"$X11_LIBDIR\""
21478  eval ax_define_dir="\"$ax_define_dir\""
21479  X11_LIBDIR="$ax_define_dir"
21480
21481
21482cat >>confdefs.h <<_ACEOF
21483#define X11_LIBDIR "$ax_define_dir"
21484_ACEOF
21485
21486  test "$prefix_NONE" && prefix=NONE
21487  test "$exec_prefix_NONE" && exec_prefix=NONE
21488
21489
21490
21491
21492pkg_failed=no
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
21494$as_echo_n "checking for X11... " >&6; }
21495
21496if test -n "$X11_CFLAGS"; then
21497    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21498 elif test -n "$PKG_CONFIG"; then
21499    if test -n "$PKG_CONFIG" && \
21500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21501  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21502  ac_status=$?
21503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21504  test $ac_status = 0; }; then
21505  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
21506		      test "x$?" != "x0" && pkg_failed=yes
21507else
21508  pkg_failed=yes
21509fi
21510 else
21511    pkg_failed=untried
21512fi
21513if test -n "$X11_LIBS"; then
21514    pkg_cv_X11_LIBS="$X11_LIBS"
21515 elif test -n "$PKG_CONFIG"; then
21516    if test -n "$PKG_CONFIG" && \
21517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21518  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21519  ac_status=$?
21520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21521  test $ac_status = 0; }; then
21522  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
21523		      test "x$?" != "x0" && pkg_failed=yes
21524else
21525  pkg_failed=yes
21526fi
21527 else
21528    pkg_failed=untried
21529fi
21530
21531
21532
21533if test $pkg_failed = yes; then
21534   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21535$as_echo "no" >&6; }
21536
21537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21538        _pkg_short_errors_supported=yes
21539else
21540        _pkg_short_errors_supported=no
21541fi
21542        if test $_pkg_short_errors_supported = yes; then
21543	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21544        else
21545	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21546        fi
21547	# Put the nasty error message in config.log where it belongs
21548	echo "$X11_PKG_ERRORS" >&5
21549
21550	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
21551
21552$X11_PKG_ERRORS
21553
21554Consider adjusting the PKG_CONFIG_PATH environment variable if you
21555installed software in a non-standard prefix.
21556
21557Alternatively, you may set the environment variables X11_CFLAGS
21558and X11_LIBS to avoid the need to call pkg-config.
21559See the pkg-config man page for more details." "$LINENO" 5
21560elif test $pkg_failed = untried; then
21561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562$as_echo "no" >&6; }
21563	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21566is in your PATH or set the PKG_CONFIG environment variable to the full
21567path to pkg-config.
21568
21569Alternatively, you may set the environment variables X11_CFLAGS
21570and X11_LIBS to avoid the need to call pkg-config.
21571See the pkg-config man page for more details.
21572
21573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21574See \`config.log' for more details" "$LINENO" 5; }
21575else
21576	X11_CFLAGS=$pkg_cv_X11_CFLAGS
21577	X11_LIBS=$pkg_cv_X11_LIBS
21578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579$as_echo "yes" >&6; }
21580
21581fi
21582X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
21583
21584#
21585# Yes, it would be nice to put the locale data in
21586# /usr/share, but the locale stuff includes loadable
21587# libraries which must be located in the same directory
21588# as the other locale data, so for now, everything lives
21589# in ${libdir}
21590#
21591
21592X11_LOCALEDATADIR="${X11_DATADIR}/locale"
21593
21594  prefix_NONE=
21595  exec_prefix_NONE=
21596  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21597  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21598  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
21599  eval ax_define_dir="\"$ax_define_dir\""
21600  XLOCALEDATADIR="$ax_define_dir"
21601
21602
21603cat >>confdefs.h <<_ACEOF
21604#define XLOCALEDATADIR "$ax_define_dir"
21605_ACEOF
21606
21607  test "$prefix_NONE" && prefix=NONE
21608  test "$exec_prefix_NONE" && exec_prefix=NONE
21609
21610
21611
21612
21613# Check whether --with-locale-lib-dir was given.
21614if test "${with_locale_lib_dir+set}" = set; then :
21615  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
21616else
21617   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
21618fi
21619
21620
21621  prefix_NONE=
21622  exec_prefix_NONE=
21623  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21624  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21625  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
21626  eval ax_define_dir="\"$ax_define_dir\""
21627  XLOCALELIBDIR="$ax_define_dir"
21628
21629
21630cat >>confdefs.h <<_ACEOF
21631#define XLOCALELIBDIR "$ax_define_dir"
21632_ACEOF
21633
21634  test "$prefix_NONE" && prefix=NONE
21635  test "$exec_prefix_NONE" && exec_prefix=NONE
21636
21637
21638
21639X11_LOCALEDIR="${X11_LOCALEDATADIR}"
21640
21641  prefix_NONE=
21642  exec_prefix_NONE=
21643  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21644  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21645  eval ax_define_dir="\"$X11_LOCALEDIR\""
21646  eval ax_define_dir="\"$ax_define_dir\""
21647  XLOCALEDIR="$ax_define_dir"
21648
21649
21650cat >>confdefs.h <<_ACEOF
21651#define XLOCALEDIR "$ax_define_dir"
21652_ACEOF
21653
21654  test "$prefix_NONE" && prefix=NONE
21655  test "$exec_prefix_NONE" && exec_prefix=NONE
21656
21657
21658
21659locales="\
21660 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
21661 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
21662 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
21663 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
21664 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
21665 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
21666 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
21667 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
21668 ru_RU.UTF-8  sr_CS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
21669 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
21670 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
21671 zh_TW        zh_TW.big5  zh_TW.UTF-8"
21672
21673
21674XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
21675
21676  prefix_NONE=
21677  exec_prefix_NONE=
21678  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21679  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21680  eval ax_define_dir="\"$XKEYSYMDB\""
21681  eval ax_define_dir="\"$ax_define_dir\""
21682  XKEYSYMDB="$ax_define_dir"
21683
21684
21685cat >>confdefs.h <<_ACEOF
21686#define XKEYSYMDB "$ax_define_dir"
21687_ACEOF
21688
21689  test "$prefix_NONE" && prefix=NONE
21690  test "$exec_prefix_NONE" && exec_prefix=NONE
21691
21692
21693XERRORDB="${X11_DATADIR}/XErrorDB"
21694
21695  prefix_NONE=
21696  exec_prefix_NONE=
21697  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21698  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21699  eval ax_define_dir="\"$XERRORDB\""
21700  eval ax_define_dir="\"$ax_define_dir\""
21701  XERRORDB="$ax_define_dir"
21702
21703
21704cat >>confdefs.h <<_ACEOF
21705#define XERRORDB "$ax_define_dir"
21706_ACEOF
21707
21708  test "$prefix_NONE" && prefix=NONE
21709  test "$exec_prefix_NONE" && exec_prefix=NONE
21710
21711
21712
21713# Check whether --enable-malloc0returnsnull was given.
21714if test "${enable_malloc0returnsnull+set}" = set; then :
21715  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21716else
21717  MALLOC_ZERO_RETURNS_NULL=auto
21718fi
21719
21720
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
21722$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21723if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21724if ${xorg_cv_malloc0_returns_null+:} false; then :
21725  $as_echo_n "(cached) " >&6
21726else
21727  if test "$cross_compiling" = yes; then :
21728  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21730as_fn_error $? "cannot run test program while cross compiling
21731See \`config.log' for more details" "$LINENO" 5; }
21732else
21733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734/* end confdefs.h.  */
21735
21736#include <stdlib.h>
21737
21738int
21739main ()
21740{
21741
21742    char *m0, *r0, *c0, *p;
21743    m0 = malloc(0);
21744    p = malloc(10);
21745    r0 = realloc(p,0);
21746    c0 = calloc(0,10);
21747    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
21748
21749  ;
21750  return 0;
21751}
21752_ACEOF
21753if ac_fn_c_try_run "$LINENO"; then :
21754  xorg_cv_malloc0_returns_null=yes
21755else
21756  xorg_cv_malloc0_returns_null=no
21757fi
21758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21759  conftest.$ac_objext conftest.beam conftest.$ac_ext
21760fi
21761
21762fi
21763
21764MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
21765fi
21766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21767$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21768
21769if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21770	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21771	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21772	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21773else
21774	MALLOC_ZERO_CFLAGS=""
21775	XMALLOC_ZERO_CFLAGS=""
21776	XTMALLOC_ZERO_CFLAGS=""
21777fi
21778
21779
21780
21781
21782
21783
21784ac_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"
21785
21786cat >confcache <<\_ACEOF
21787# This file is a shell script that caches the results of configure
21788# tests run on this system so they can be shared between configure
21789# scripts and configure runs, see configure's option --config-cache.
21790# It is not useful on other systems.  If it contains results you don't
21791# want to keep, you may remove or edit it.
21792#
21793# config.status only pays attention to the cache file if you give it
21794# the --recheck option to rerun configure.
21795#
21796# `ac_cv_env_foo' variables (set or unset) will be overridden when
21797# loading this file, other *unset* `ac_cv_foo' will be assigned the
21798# following values.
21799
21800_ACEOF
21801
21802# The following way of writing the cache mishandles newlines in values,
21803# but we know of no workaround that is simple, portable, and efficient.
21804# So, we kill variables containing newlines.
21805# Ultrix sh set writes to stderr and can't be redirected directly,
21806# and sets the high bit in the cache file unless we assign to the vars.
21807(
21808  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21809    eval ac_val=\$$ac_var
21810    case $ac_val in #(
21811    *${as_nl}*)
21812      case $ac_var in #(
21813      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21814$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21815      esac
21816      case $ac_var in #(
21817      _ | IFS | as_nl) ;; #(
21818      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21819      *) { eval $ac_var=; unset $ac_var;} ;;
21820      esac ;;
21821    esac
21822  done
21823
21824  (set) 2>&1 |
21825    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21826    *${as_nl}ac_space=\ *)
21827      # `set' does not quote correctly, so add quotes: double-quote
21828      # substitution turns \\\\ into \\, and sed turns \\ into \.
21829      sed -n \
21830	"s/'/'\\\\''/g;
21831	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21832      ;; #(
21833    *)
21834      # `set' quotes correctly as required by POSIX, so do not add quotes.
21835      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21836      ;;
21837    esac |
21838    sort
21839) |
21840  sed '
21841     /^ac_cv_env_/b end
21842     t clear
21843     :clear
21844     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21845     t end
21846     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21847     :end' >>confcache
21848if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21849  if test -w "$cache_file"; then
21850    if test "x$cache_file" != "x/dev/null"; then
21851      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21852$as_echo "$as_me: updating cache $cache_file" >&6;}
21853      if test ! -f "$cache_file" || test -h "$cache_file"; then
21854	cat confcache >"$cache_file"
21855      else
21856        case $cache_file in #(
21857        */* | ?:*)
21858	  mv -f confcache "$cache_file"$$ &&
21859	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21860        *)
21861	  mv -f confcache "$cache_file" ;;
21862	esac
21863      fi
21864    fi
21865  else
21866    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21867$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21868  fi
21869fi
21870rm -f confcache
21871
21872test "x$prefix" = xNONE && prefix=$ac_default_prefix
21873# Let make expand exec_prefix.
21874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21875
21876DEFS=-DHAVE_CONFIG_H
21877
21878ac_libobjs=
21879ac_ltlibobjs=
21880U=
21881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21882  # 1. Remove the extension, and $U if already installed.
21883  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21884  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21885  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21886  #    will be set to the directory where LIBOBJS objects are built.
21887  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21888  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21889done
21890LIBOBJS=$ac_libobjs
21891
21892LTLIBOBJS=$ac_ltlibobjs
21893
21894
21895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21896$as_echo_n "checking that generated files are newer than configure... " >&6; }
21897   if test -n "$am_sleep_pid"; then
21898     # Hide warnings about reused PIDs.
21899     wait $am_sleep_pid 2>/dev/null
21900   fi
21901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21902$as_echo "done" >&6; }
21903if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21904  as_fn_error $? "conditional \"AMDEP\" was never defined.
21905Usually this means the macro was only invoked conditionally." "$LINENO" 5
21906fi
21907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21908  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21909Usually this means the macro was only invoked conditionally." "$LINENO" 5
21910fi
21911 if test -n "$EXEEXT"; then
21912  am__EXEEXT_TRUE=
21913  am__EXEEXT_FALSE='#'
21914else
21915  am__EXEEXT_TRUE='#'
21916  am__EXEEXT_FALSE=
21917fi
21918
21919if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21920  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21921Usually this means the macro was only invoked conditionally." "$LINENO" 5
21922fi
21923if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21924  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21925Usually this means the macro was only invoked conditionally." "$LINENO" 5
21926fi
21927if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21928  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21929Usually this means the macro was only invoked conditionally." "$LINENO" 5
21930fi
21931if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21932  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21933Usually this means the macro was only invoked conditionally." "$LINENO" 5
21934fi
21935if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21936  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21937Usually this means the macro was only invoked conditionally." "$LINENO" 5
21938fi
21939if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21940  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21941Usually this means the macro was only invoked conditionally." "$LINENO" 5
21942fi
21943if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
21944  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
21945Usually this means the macro was only invoked conditionally." "$LINENO" 5
21946fi
21947if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
21948  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
21949Usually this means the macro was only invoked conditionally." "$LINENO" 5
21950fi
21951if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
21952  as_fn_error $? "conditional \"OS2\" was never defined.
21953Usually this means the macro was only invoked conditionally." "$LINENO" 5
21954fi
21955if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
21956  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
21957Usually this means the macro was only invoked conditionally." "$LINENO" 5
21958fi
21959if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
21960  as_fn_error $? "conditional \"XCMS\" was never defined.
21961Usually this means the macro was only invoked conditionally." "$LINENO" 5
21962fi
21963if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
21964  as_fn_error $? "conditional \"XLOCALE\" was never defined.
21965Usually this means the macro was only invoked conditionally." "$LINENO" 5
21966fi
21967if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
21968  as_fn_error $? "conditional \"XKB\" was never defined.
21969Usually this means the macro was only invoked conditionally." "$LINENO" 5
21970fi
21971if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21972  as_fn_error $? "conditional \"LINT\" was never defined.
21973Usually this means the macro was only invoked conditionally." "$LINENO" 5
21974fi
21975if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21976  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21977Usually this means the macro was only invoked conditionally." "$LINENO" 5
21978fi
21979
21980: "${CONFIG_STATUS=./config.status}"
21981ac_write_fail=0
21982ac_clean_files_save=$ac_clean_files
21983ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21984{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21985$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21986as_write_fail=0
21987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21988#! $SHELL
21989# Generated by $as_me.
21990# Run this file to recreate the current configuration.
21991# Compiler output produced by configure, useful for debugging
21992# configure, is in config.log if it exists.
21993
21994debug=false
21995ac_cs_recheck=false
21996ac_cs_silent=false
21997
21998SHELL=\${CONFIG_SHELL-$SHELL}
21999export SHELL
22000_ASEOF
22001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22002## -------------------- ##
22003## M4sh Initialization. ##
22004## -------------------- ##
22005
22006# Be more Bourne compatible
22007DUALCASE=1; export DUALCASE # for MKS sh
22008if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22009  emulate sh
22010  NULLCMD=:
22011  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22012  # is contrary to our usage.  Disable this feature.
22013  alias -g '${1+"$@"}'='"$@"'
22014  setopt NO_GLOB_SUBST
22015else
22016  case `(set -o) 2>/dev/null` in #(
22017  *posix*) :
22018    set -o posix ;; #(
22019  *) :
22020     ;;
22021esac
22022fi
22023
22024
22025as_nl='
22026'
22027export as_nl
22028# Printing a long string crashes Solaris 7 /usr/bin/printf.
22029as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22032# Prefer a ksh shell builtin over an external printf program on Solaris,
22033# but without wasting forks for bash or zsh.
22034if test -z "$BASH_VERSION$ZSH_VERSION" \
22035    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22036  as_echo='print -r --'
22037  as_echo_n='print -rn --'
22038elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22039  as_echo='printf %s\n'
22040  as_echo_n='printf %s'
22041else
22042  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22043    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22044    as_echo_n='/usr/ucb/echo -n'
22045  else
22046    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22047    as_echo_n_body='eval
22048      arg=$1;
22049      case $arg in #(
22050      *"$as_nl"*)
22051	expr "X$arg" : "X\\(.*\\)$as_nl";
22052	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22053      esac;
22054      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22055    '
22056    export as_echo_n_body
22057    as_echo_n='sh -c $as_echo_n_body as_echo'
22058  fi
22059  export as_echo_body
22060  as_echo='sh -c $as_echo_body as_echo'
22061fi
22062
22063# The user is always right.
22064if test "${PATH_SEPARATOR+set}" != set; then
22065  PATH_SEPARATOR=:
22066  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22067    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22068      PATH_SEPARATOR=';'
22069  }
22070fi
22071
22072
22073# IFS
22074# We need space, tab and new line, in precisely that order.  Quoting is
22075# there to prevent editors from complaining about space-tab.
22076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22077# splitting by setting IFS to empty value.)
22078IFS=" ""	$as_nl"
22079
22080# Find who we are.  Look in the path if we contain no directory separator.
22081as_myself=
22082case $0 in #((
22083  *[\\/]* ) as_myself=$0 ;;
22084  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22085for as_dir in $PATH
22086do
22087  IFS=$as_save_IFS
22088  test -z "$as_dir" && as_dir=.
22089    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22090  done
22091IFS=$as_save_IFS
22092
22093     ;;
22094esac
22095# We did not find ourselves, most probably we were run as `sh COMMAND'
22096# in which case we are not to be found in the path.
22097if test "x$as_myself" = x; then
22098  as_myself=$0
22099fi
22100if test ! -f "$as_myself"; then
22101  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22102  exit 1
22103fi
22104
22105# Unset variables that we do not need and which cause bugs (e.g. in
22106# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22107# suppresses any "Segmentation fault" message there.  '((' could
22108# trigger a bug in pdksh 5.2.14.
22109for as_var in BASH_ENV ENV MAIL MAILPATH
22110do eval test x\${$as_var+set} = xset \
22111  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22112done
22113PS1='$ '
22114PS2='> '
22115PS4='+ '
22116
22117# NLS nuisances.
22118LC_ALL=C
22119export LC_ALL
22120LANGUAGE=C
22121export LANGUAGE
22122
22123# CDPATH.
22124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22125
22126
22127# as_fn_error STATUS ERROR [LINENO LOG_FD]
22128# ----------------------------------------
22129# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22130# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22131# script with STATUS, using 1 if that was 0.
22132as_fn_error ()
22133{
22134  as_status=$1; test $as_status -eq 0 && as_status=1
22135  if test "$4"; then
22136    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22137    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22138  fi
22139  $as_echo "$as_me: error: $2" >&2
22140  as_fn_exit $as_status
22141} # as_fn_error
22142
22143
22144# as_fn_set_status STATUS
22145# -----------------------
22146# Set $? to STATUS, without forking.
22147as_fn_set_status ()
22148{
22149  return $1
22150} # as_fn_set_status
22151
22152# as_fn_exit STATUS
22153# -----------------
22154# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22155as_fn_exit ()
22156{
22157  set +e
22158  as_fn_set_status $1
22159  exit $1
22160} # as_fn_exit
22161
22162# as_fn_unset VAR
22163# ---------------
22164# Portably unset VAR.
22165as_fn_unset ()
22166{
22167  { eval $1=; unset $1;}
22168}
22169as_unset=as_fn_unset
22170# as_fn_append VAR VALUE
22171# ----------------------
22172# Append the text in VALUE to the end of the definition contained in VAR. Take
22173# advantage of any shell optimizations that allow amortized linear growth over
22174# repeated appends, instead of the typical quadratic growth present in naive
22175# implementations.
22176if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22177  eval 'as_fn_append ()
22178  {
22179    eval $1+=\$2
22180  }'
22181else
22182  as_fn_append ()
22183  {
22184    eval $1=\$$1\$2
22185  }
22186fi # as_fn_append
22187
22188# as_fn_arith ARG...
22189# ------------------
22190# Perform arithmetic evaluation on the ARGs, and store the result in the
22191# global $as_val. Take advantage of shells that can avoid forks. The arguments
22192# must be portable across $(()) and expr.
22193if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22194  eval 'as_fn_arith ()
22195  {
22196    as_val=$(( $* ))
22197  }'
22198else
22199  as_fn_arith ()
22200  {
22201    as_val=`expr "$@" || test $? -eq 1`
22202  }
22203fi # as_fn_arith
22204
22205
22206if expr a : '\(a\)' >/dev/null 2>&1 &&
22207   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22208  as_expr=expr
22209else
22210  as_expr=false
22211fi
22212
22213if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22214  as_basename=basename
22215else
22216  as_basename=false
22217fi
22218
22219if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22220  as_dirname=dirname
22221else
22222  as_dirname=false
22223fi
22224
22225as_me=`$as_basename -- "$0" ||
22226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22227	 X"$0" : 'X\(//\)$' \| \
22228	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22229$as_echo X/"$0" |
22230    sed '/^.*\/\([^/][^/]*\)\/*$/{
22231	    s//\1/
22232	    q
22233	  }
22234	  /^X\/\(\/\/\)$/{
22235	    s//\1/
22236	    q
22237	  }
22238	  /^X\/\(\/\).*/{
22239	    s//\1/
22240	    q
22241	  }
22242	  s/.*/./; q'`
22243
22244# Avoid depending upon Character Ranges.
22245as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22247as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22248as_cr_digits='0123456789'
22249as_cr_alnum=$as_cr_Letters$as_cr_digits
22250
22251ECHO_C= ECHO_N= ECHO_T=
22252case `echo -n x` in #(((((
22253-n*)
22254  case `echo 'xy\c'` in
22255  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22256  xy)  ECHO_C='\c';;
22257  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22258       ECHO_T='	';;
22259  esac;;
22260*)
22261  ECHO_N='-n';;
22262esac
22263
22264rm -f conf$$ conf$$.exe conf$$.file
22265if test -d conf$$.dir; then
22266  rm -f conf$$.dir/conf$$.file
22267else
22268  rm -f conf$$.dir
22269  mkdir conf$$.dir 2>/dev/null
22270fi
22271if (echo >conf$$.file) 2>/dev/null; then
22272  if ln -s conf$$.file conf$$ 2>/dev/null; then
22273    as_ln_s='ln -s'
22274    # ... but there are two gotchas:
22275    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22276    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22277    # In both cases, we have to default to `cp -pR'.
22278    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22279      as_ln_s='cp -pR'
22280  elif ln conf$$.file conf$$ 2>/dev/null; then
22281    as_ln_s=ln
22282  else
22283    as_ln_s='cp -pR'
22284  fi
22285else
22286  as_ln_s='cp -pR'
22287fi
22288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22289rmdir conf$$.dir 2>/dev/null
22290
22291
22292# as_fn_mkdir_p
22293# -------------
22294# Create "$as_dir" as a directory, including parents if necessary.
22295as_fn_mkdir_p ()
22296{
22297
22298  case $as_dir in #(
22299  -*) as_dir=./$as_dir;;
22300  esac
22301  test -d "$as_dir" || eval $as_mkdir_p || {
22302    as_dirs=
22303    while :; do
22304      case $as_dir in #(
22305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22306      *) as_qdir=$as_dir;;
22307      esac
22308      as_dirs="'$as_qdir' $as_dirs"
22309      as_dir=`$as_dirname -- "$as_dir" ||
22310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22311	 X"$as_dir" : 'X\(//\)[^/]' \| \
22312	 X"$as_dir" : 'X\(//\)$' \| \
22313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22314$as_echo X"$as_dir" |
22315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22316	    s//\1/
22317	    q
22318	  }
22319	  /^X\(\/\/\)[^/].*/{
22320	    s//\1/
22321	    q
22322	  }
22323	  /^X\(\/\/\)$/{
22324	    s//\1/
22325	    q
22326	  }
22327	  /^X\(\/\).*/{
22328	    s//\1/
22329	    q
22330	  }
22331	  s/.*/./; q'`
22332      test -d "$as_dir" && break
22333    done
22334    test -z "$as_dirs" || eval "mkdir $as_dirs"
22335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22336
22337
22338} # as_fn_mkdir_p
22339if mkdir -p . 2>/dev/null; then
22340  as_mkdir_p='mkdir -p "$as_dir"'
22341else
22342  test -d ./-p && rmdir ./-p
22343  as_mkdir_p=false
22344fi
22345
22346
22347# as_fn_executable_p FILE
22348# -----------------------
22349# Test if FILE is an executable regular file.
22350as_fn_executable_p ()
22351{
22352  test -f "$1" && test -x "$1"
22353} # as_fn_executable_p
22354as_test_x='test -x'
22355as_executable_p=as_fn_executable_p
22356
22357# Sed expression to map a string onto a valid CPP name.
22358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22359
22360# Sed expression to map a string onto a valid variable name.
22361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22362
22363
22364exec 6>&1
22365## ----------------------------------- ##
22366## Main body of $CONFIG_STATUS script. ##
22367## ----------------------------------- ##
22368_ASEOF
22369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22370
22371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22372# Save the log message, to keep $0 and so on meaningful, and to
22373# report actual input values of CONFIG_FILES etc. instead of their
22374# values after options handling.
22375ac_log="
22376This file was extended by libX11 $as_me 1.6.9, which was
22377generated by GNU Autoconf 2.69.  Invocation command line was
22378
22379  CONFIG_FILES    = $CONFIG_FILES
22380  CONFIG_HEADERS  = $CONFIG_HEADERS
22381  CONFIG_LINKS    = $CONFIG_LINKS
22382  CONFIG_COMMANDS = $CONFIG_COMMANDS
22383  $ $0 $@
22384
22385on `(hostname || uname -n) 2>/dev/null | sed 1q`
22386"
22387
22388_ACEOF
22389
22390case $ac_config_files in *"
22391"*) set x $ac_config_files; shift; ac_config_files=$*;;
22392esac
22393
22394case $ac_config_headers in *"
22395"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22396esac
22397
22398
22399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22400# Files that config.status was made for.
22401config_files="$ac_config_files"
22402config_headers="$ac_config_headers"
22403config_commands="$ac_config_commands"
22404
22405_ACEOF
22406
22407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22408ac_cs_usage="\
22409\`$as_me' instantiates files and other configuration actions
22410from templates according to the current configuration.  Unless the files
22411and actions are specified as TAGs, all are instantiated by default.
22412
22413Usage: $0 [OPTION]... [TAG]...
22414
22415  -h, --help       print this help, then exit
22416  -V, --version    print version number and configuration settings, then exit
22417      --config     print configuration, then exit
22418  -q, --quiet, --silent
22419                   do not print progress messages
22420  -d, --debug      don't remove temporary files
22421      --recheck    update $as_me by reconfiguring in the same conditions
22422      --file=FILE[:TEMPLATE]
22423                   instantiate the configuration file FILE
22424      --header=FILE[:TEMPLATE]
22425                   instantiate the configuration header FILE
22426
22427Configuration files:
22428$config_files
22429
22430Configuration headers:
22431$config_headers
22432
22433Configuration commands:
22434$config_commands
22435
22436Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
22437
22438_ACEOF
22439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22440ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22441ac_cs_version="\\
22442libX11 config.status 1.6.9
22443configured by $0, generated by GNU Autoconf 2.69,
22444  with options \\"\$ac_cs_config\\"
22445
22446Copyright (C) 2012 Free Software Foundation, Inc.
22447This config.status script is free software; the Free Software Foundation
22448gives unlimited permission to copy, distribute and modify it."
22449
22450ac_pwd='$ac_pwd'
22451srcdir='$srcdir'
22452INSTALL='$INSTALL'
22453MKDIR_P='$MKDIR_P'
22454AWK='$AWK'
22455test -n "\$AWK" || AWK=awk
22456_ACEOF
22457
22458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22459# The default lists apply if the user does not specify any file.
22460ac_need_defaults=:
22461while test $# != 0
22462do
22463  case $1 in
22464  --*=?*)
22465    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22466    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22467    ac_shift=:
22468    ;;
22469  --*=)
22470    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22471    ac_optarg=
22472    ac_shift=:
22473    ;;
22474  *)
22475    ac_option=$1
22476    ac_optarg=$2
22477    ac_shift=shift
22478    ;;
22479  esac
22480
22481  case $ac_option in
22482  # Handling of the options.
22483  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22484    ac_cs_recheck=: ;;
22485  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22486    $as_echo "$ac_cs_version"; exit ;;
22487  --config | --confi | --conf | --con | --co | --c )
22488    $as_echo "$ac_cs_config"; exit ;;
22489  --debug | --debu | --deb | --de | --d | -d )
22490    debug=: ;;
22491  --file | --fil | --fi | --f )
22492    $ac_shift
22493    case $ac_optarg in
22494    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22495    '') as_fn_error $? "missing file argument" ;;
22496    esac
22497    as_fn_append CONFIG_FILES " '$ac_optarg'"
22498    ac_need_defaults=false;;
22499  --header | --heade | --head | --hea )
22500    $ac_shift
22501    case $ac_optarg in
22502    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22503    esac
22504    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22505    ac_need_defaults=false;;
22506  --he | --h)
22507    # Conflict between --help and --header
22508    as_fn_error $? "ambiguous option: \`$1'
22509Try \`$0 --help' for more information.";;
22510  --help | --hel | -h )
22511    $as_echo "$ac_cs_usage"; exit ;;
22512  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22513  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22514    ac_cs_silent=: ;;
22515
22516  # This is an error.
22517  -*) as_fn_error $? "unrecognized option: \`$1'
22518Try \`$0 --help' for more information." ;;
22519
22520  *) as_fn_append ac_config_targets " $1"
22521     ac_need_defaults=false ;;
22522
22523  esac
22524  shift
22525done
22526
22527ac_configure_extra_args=
22528
22529if $ac_cs_silent; then
22530  exec 6>/dev/null
22531  ac_configure_extra_args="$ac_configure_extra_args --silent"
22532fi
22533
22534_ACEOF
22535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22536if \$ac_cs_recheck; then
22537  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22538  shift
22539  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22540  CONFIG_SHELL='$SHELL'
22541  export CONFIG_SHELL
22542  exec "\$@"
22543fi
22544
22545_ACEOF
22546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22547exec 5>>config.log
22548{
22549  echo
22550  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22551## Running $as_me. ##
22552_ASBOX
22553  $as_echo "$ac_log"
22554} >&5
22555
22556_ACEOF
22557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22558#
22559# INIT-COMMANDS
22560#
22561AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22562
22563
22564# The HP-UX ksh and POSIX shell print the target directory to stdout
22565# if CDPATH is set.
22566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22567
22568sed_quote_subst='$sed_quote_subst'
22569double_quote_subst='$double_quote_subst'
22570delay_variable_subst='$delay_variable_subst'
22571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22577shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22578SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22579ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22580PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22581host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22582host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22583host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22584build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22585build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22586build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22587SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22588Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22589GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22590EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22591FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22592LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22593NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22594LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22595max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22596ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22597exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22598lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22599lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22600lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22601lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22602lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22603reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22604reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22605OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22606deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22607file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22608file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22609want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22610DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22611sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22612AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22613AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22614archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22615STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22616RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22617old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22618old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22619old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22620lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22621CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22622CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22623compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22624GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22625lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22626lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22627lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22628lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22629lt_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"`'
22630lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22631nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22632lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22633lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22634objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22635MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22636lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22637lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22638lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22639lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22640lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22641need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22642MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22643DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22644NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22645LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22646OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22647OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22648libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22649shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22650extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22651archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22652enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22653export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22654whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22655compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22656old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22657old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22658archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22659archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22660module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22661module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22662with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22663allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22664no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22665hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22666hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22667hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22668hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22669hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22670hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22671hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22672inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22673link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22674always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22675export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22676exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22677include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22678prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22679postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22680file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22681variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22682need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22683need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22684version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22685runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22686shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22687shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22688libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22689library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22690soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22691install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22692postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22693postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22694finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22695finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22696hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22697sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22698configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22699configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22700hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22701enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22702enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22703enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22704old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22705striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22706
22707LTCC='$LTCC'
22708LTCFLAGS='$LTCFLAGS'
22709compiler='$compiler_DEFAULT'
22710
22711# A function that is used when there is no print builtin or printf.
22712func_fallback_echo ()
22713{
22714  eval 'cat <<_LTECHO_EOF
22715\$1
22716_LTECHO_EOF'
22717}
22718
22719# Quote evaled strings.
22720for var in SHELL \
22721ECHO \
22722PATH_SEPARATOR \
22723SED \
22724GREP \
22725EGREP \
22726FGREP \
22727LD \
22728NM \
22729LN_S \
22730lt_SP2NL \
22731lt_NL2SP \
22732reload_flag \
22733OBJDUMP \
22734deplibs_check_method \
22735file_magic_cmd \
22736file_magic_glob \
22737want_nocaseglob \
22738DLLTOOL \
22739sharedlib_from_linklib_cmd \
22740AR \
22741AR_FLAGS \
22742archiver_list_spec \
22743STRIP \
22744RANLIB \
22745CC \
22746CFLAGS \
22747compiler \
22748lt_cv_sys_global_symbol_pipe \
22749lt_cv_sys_global_symbol_to_cdecl \
22750lt_cv_sys_global_symbol_to_import \
22751lt_cv_sys_global_symbol_to_c_name_address \
22752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22753lt_cv_nm_interface \
22754nm_file_list_spec \
22755lt_cv_truncate_bin \
22756lt_prog_compiler_no_builtin_flag \
22757lt_prog_compiler_pic \
22758lt_prog_compiler_wl \
22759lt_prog_compiler_static \
22760lt_cv_prog_compiler_c_o \
22761need_locks \
22762MANIFEST_TOOL \
22763DSYMUTIL \
22764NMEDIT \
22765LIPO \
22766OTOOL \
22767OTOOL64 \
22768shrext_cmds \
22769export_dynamic_flag_spec \
22770whole_archive_flag_spec \
22771compiler_needs_object \
22772with_gnu_ld \
22773allow_undefined_flag \
22774no_undefined_flag \
22775hardcode_libdir_flag_spec \
22776hardcode_libdir_separator \
22777exclude_expsyms \
22778include_expsyms \
22779file_list_spec \
22780variables_saved_for_relink \
22781libname_spec \
22782library_names_spec \
22783soname_spec \
22784install_override_mode \
22785finish_eval \
22786old_striplib \
22787striplib; do
22788    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22789    *[\\\\\\\`\\"\\\$]*)
22790      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22791      ;;
22792    *)
22793      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22794      ;;
22795    esac
22796done
22797
22798# Double-quote double-evaled strings.
22799for var in reload_cmds \
22800old_postinstall_cmds \
22801old_postuninstall_cmds \
22802old_archive_cmds \
22803extract_expsyms_cmds \
22804old_archive_from_new_cmds \
22805old_archive_from_expsyms_cmds \
22806archive_cmds \
22807archive_expsym_cmds \
22808module_cmds \
22809module_expsym_cmds \
22810export_symbols_cmds \
22811prelink_cmds \
22812postlink_cmds \
22813postinstall_cmds \
22814postuninstall_cmds \
22815finish_cmds \
22816sys_lib_search_path_spec \
22817configure_time_dlsearch_path \
22818configure_time_lt_sys_library_path; do
22819    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22820    *[\\\\\\\`\\"\\\$]*)
22821      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22822      ;;
22823    *)
22824      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22825      ;;
22826    esac
22827done
22828
22829ac_aux_dir='$ac_aux_dir'
22830
22831# See if we are running on zsh, and set the options that allow our
22832# commands through without removal of \ escapes INIT.
22833if test -n "\${ZSH_VERSION+set}"; then
22834   setopt NO_GLOB_SUBST
22835fi
22836
22837
22838    PACKAGE='$PACKAGE'
22839    VERSION='$VERSION'
22840    RM='$RM'
22841    ofile='$ofile'
22842
22843
22844
22845
22846_ACEOF
22847
22848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22849
22850# Handling of arguments.
22851for ac_config_target in $ac_config_targets
22852do
22853  case $ac_config_target in
22854    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22855    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
22856    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22857    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22858    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22859    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22860    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22861    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
22862    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22863    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
22864    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
22865    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
22866    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
22867    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
22868    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
22869    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
22870    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
22871    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
22872    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
22873    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
22874    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
22875    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
22876    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
22877    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22878    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
22879    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
22880    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
22881    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
22882    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
22883    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
22884    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
22885    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
22886    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
22887    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
22888
22889  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22890  esac
22891done
22892
22893
22894# If the user did not use the arguments to specify the items to instantiate,
22895# then the envvar interface is used.  Set only those that are not.
22896# We use the long form for the default assignment because of an extremely
22897# bizarre bug on SunOS 4.1.3.
22898if $ac_need_defaults; then
22899  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22900  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22901  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22902fi
22903
22904# Have a temporary directory for convenience.  Make it in the build tree
22905# simply because there is no reason against having it here, and in addition,
22906# creating and moving files from /tmp can sometimes cause problems.
22907# Hook for its removal unless debugging.
22908# Note that there is a small window in which the directory will not be cleaned:
22909# after its creation but before its name has been assigned to `$tmp'.
22910$debug ||
22911{
22912  tmp= ac_tmp=
22913  trap 'exit_status=$?
22914  : "${ac_tmp:=$tmp}"
22915  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22916' 0
22917  trap 'as_fn_exit 1' 1 2 13 15
22918}
22919# Create a (secure) tmp directory for tmp files.
22920
22921{
22922  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22923  test -d "$tmp"
22924}  ||
22925{
22926  tmp=./conf$$-$RANDOM
22927  (umask 077 && mkdir "$tmp")
22928} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22929ac_tmp=$tmp
22930
22931# Set up the scripts for CONFIG_FILES section.
22932# No need to generate them if there are no CONFIG_FILES.
22933# This happens for instance with `./config.status config.h'.
22934if test -n "$CONFIG_FILES"; then
22935
22936
22937ac_cr=`echo X | tr X '\015'`
22938# On cygwin, bash can eat \r inside `` if the user requested igncr.
22939# But we know of no other shell where ac_cr would be empty at this
22940# point, so we can use a bashism as a fallback.
22941if test "x$ac_cr" = x; then
22942  eval ac_cr=\$\'\\r\'
22943fi
22944ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22945if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22946  ac_cs_awk_cr='\\r'
22947else
22948  ac_cs_awk_cr=$ac_cr
22949fi
22950
22951echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22952_ACEOF
22953
22954
22955{
22956  echo "cat >conf$$subs.awk <<_ACEOF" &&
22957  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22958  echo "_ACEOF"
22959} >conf$$subs.sh ||
22960  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22961ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22962ac_delim='%!_!# '
22963for ac_last_try in false false false false false :; do
22964  . ./conf$$subs.sh ||
22965    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22966
22967  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22968  if test $ac_delim_n = $ac_delim_num; then
22969    break
22970  elif $ac_last_try; then
22971    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22972  else
22973    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22974  fi
22975done
22976rm -f conf$$subs.sh
22977
22978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22979cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22980_ACEOF
22981sed -n '
22982h
22983s/^/S["/; s/!.*/"]=/
22984p
22985g
22986s/^[^!]*!//
22987:repl
22988t repl
22989s/'"$ac_delim"'$//
22990t delim
22991:nl
22992h
22993s/\(.\{148\}\)..*/\1/
22994t more1
22995s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22996p
22997n
22998b repl
22999:more1
23000s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23001p
23002g
23003s/.\{148\}//
23004t nl
23005:delim
23006h
23007s/\(.\{148\}\)..*/\1/
23008t more2
23009s/["\\]/\\&/g; s/^/"/; s/$/"/
23010p
23011b
23012:more2
23013s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23014p
23015g
23016s/.\{148\}//
23017t delim
23018' <conf$$subs.awk | sed '
23019/^[^""]/{
23020  N
23021  s/\n//
23022}
23023' >>$CONFIG_STATUS || ac_write_fail=1
23024rm -f conf$$subs.awk
23025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23026_ACAWK
23027cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23028  for (key in S) S_is_set[key] = 1
23029  FS = ""
23030
23031}
23032{
23033  line = $ 0
23034  nfields = split(line, field, "@")
23035  substed = 0
23036  len = length(field[1])
23037  for (i = 2; i < nfields; i++) {
23038    key = field[i]
23039    keylen = length(key)
23040    if (S_is_set[key]) {
23041      value = S[key]
23042      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23043      len += length(value) + length(field[++i])
23044      substed = 1
23045    } else
23046      len += 1 + keylen
23047  }
23048
23049  print line
23050}
23051
23052_ACAWK
23053_ACEOF
23054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23055if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23056  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23057else
23058  cat
23059fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23060  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23061_ACEOF
23062
23063# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23064# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23065# trailing colons and then remove the whole line if VPATH becomes empty
23066# (actually we leave an empty line to preserve line numbers).
23067if test "x$srcdir" = x.; then
23068  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23069h
23070s///
23071s/^/:/
23072s/[	 ]*$/:/
23073s/:\$(srcdir):/:/g
23074s/:\${srcdir}:/:/g
23075s/:@srcdir@:/:/g
23076s/^:*//
23077s/:*$//
23078x
23079s/\(=[	 ]*\).*/\1/
23080G
23081s/\n//
23082s/^[^=]*=[	 ]*$//
23083}'
23084fi
23085
23086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23087fi # test -n "$CONFIG_FILES"
23088
23089# Set up the scripts for CONFIG_HEADERS section.
23090# No need to generate them if there are no CONFIG_HEADERS.
23091# This happens for instance with `./config.status Makefile'.
23092if test -n "$CONFIG_HEADERS"; then
23093cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23094BEGIN {
23095_ACEOF
23096
23097# Transform confdefs.h into an awk script `defines.awk', embedded as
23098# here-document in config.status, that substitutes the proper values into
23099# config.h.in to produce config.h.
23100
23101# Create a delimiter string that does not exist in confdefs.h, to ease
23102# handling of long lines.
23103ac_delim='%!_!# '
23104for ac_last_try in false false :; do
23105  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23106  if test -z "$ac_tt"; then
23107    break
23108  elif $ac_last_try; then
23109    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23110  else
23111    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23112  fi
23113done
23114
23115# For the awk script, D is an array of macro values keyed by name,
23116# likewise P contains macro parameters if any.  Preserve backslash
23117# newline sequences.
23118
23119ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23120sed -n '
23121s/.\{148\}/&'"$ac_delim"'/g
23122t rset
23123:rset
23124s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23125t def
23126d
23127:def
23128s/\\$//
23129t bsnl
23130s/["\\]/\\&/g
23131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23132D["\1"]=" \3"/p
23133s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23134d
23135:bsnl
23136s/["\\]/\\&/g
23137s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23138D["\1"]=" \3\\\\\\n"\\/p
23139t cont
23140s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23141t cont
23142d
23143:cont
23144n
23145s/.\{148\}/&'"$ac_delim"'/g
23146t clear
23147:clear
23148s/\\$//
23149t bsnlc
23150s/["\\]/\\&/g; s/^/"/; s/$/"/p
23151d
23152:bsnlc
23153s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23154b cont
23155' <confdefs.h | sed '
23156s/'"$ac_delim"'/"\\\
23157"/g' >>$CONFIG_STATUS || ac_write_fail=1
23158
23159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23160  for (key in D) D_is_set[key] = 1
23161  FS = ""
23162}
23163/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23164  line = \$ 0
23165  split(line, arg, " ")
23166  if (arg[1] == "#") {
23167    defundef = arg[2]
23168    mac1 = arg[3]
23169  } else {
23170    defundef = substr(arg[1], 2)
23171    mac1 = arg[2]
23172  }
23173  split(mac1, mac2, "(") #)
23174  macro = mac2[1]
23175  prefix = substr(line, 1, index(line, defundef) - 1)
23176  if (D_is_set[macro]) {
23177    # Preserve the white space surrounding the "#".
23178    print prefix "define", macro P[macro] D[macro]
23179    next
23180  } else {
23181    # Replace #undef with comments.  This is necessary, for example,
23182    # in the case of _POSIX_SOURCE, which is predefined and required
23183    # on some systems where configure will not decide to define it.
23184    if (defundef == "undef") {
23185      print "/*", prefix defundef, macro, "*/"
23186      next
23187    }
23188  }
23189}
23190{ print }
23191_ACAWK
23192_ACEOF
23193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23194  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23195fi # test -n "$CONFIG_HEADERS"
23196
23197
23198eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23199shift
23200for ac_tag
23201do
23202  case $ac_tag in
23203  :[FHLC]) ac_mode=$ac_tag; continue;;
23204  esac
23205  case $ac_mode$ac_tag in
23206  :[FHL]*:*);;
23207  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23208  :[FH]-) ac_tag=-:-;;
23209  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23210  esac
23211  ac_save_IFS=$IFS
23212  IFS=:
23213  set x $ac_tag
23214  IFS=$ac_save_IFS
23215  shift
23216  ac_file=$1
23217  shift
23218
23219  case $ac_mode in
23220  :L) ac_source=$1;;
23221  :[FH])
23222    ac_file_inputs=
23223    for ac_f
23224    do
23225      case $ac_f in
23226      -) ac_f="$ac_tmp/stdin";;
23227      *) # Look for the file first in the build tree, then in the source tree
23228	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23229	 # because $ac_f cannot contain `:'.
23230	 test -f "$ac_f" ||
23231	   case $ac_f in
23232	   [\\/$]*) false;;
23233	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23234	   esac ||
23235	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23236      esac
23237      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23238      as_fn_append ac_file_inputs " '$ac_f'"
23239    done
23240
23241    # Let's still pretend it is `configure' which instantiates (i.e., don't
23242    # use $as_me), people would be surprised to read:
23243    #    /* config.h.  Generated by config.status.  */
23244    configure_input='Generated from '`
23245	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23246	`' by configure.'
23247    if test x"$ac_file" != x-; then
23248      configure_input="$ac_file.  $configure_input"
23249      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23250$as_echo "$as_me: creating $ac_file" >&6;}
23251    fi
23252    # Neutralize special characters interpreted by sed in replacement strings.
23253    case $configure_input in #(
23254    *\&* | *\|* | *\\* )
23255       ac_sed_conf_input=`$as_echo "$configure_input" |
23256       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23257    *) ac_sed_conf_input=$configure_input;;
23258    esac
23259
23260    case $ac_tag in
23261    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23262      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23263    esac
23264    ;;
23265  esac
23266
23267  ac_dir=`$as_dirname -- "$ac_file" ||
23268$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23269	 X"$ac_file" : 'X\(//\)[^/]' \| \
23270	 X"$ac_file" : 'X\(//\)$' \| \
23271	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23272$as_echo X"$ac_file" |
23273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23274	    s//\1/
23275	    q
23276	  }
23277	  /^X\(\/\/\)[^/].*/{
23278	    s//\1/
23279	    q
23280	  }
23281	  /^X\(\/\/\)$/{
23282	    s//\1/
23283	    q
23284	  }
23285	  /^X\(\/\).*/{
23286	    s//\1/
23287	    q
23288	  }
23289	  s/.*/./; q'`
23290  as_dir="$ac_dir"; as_fn_mkdir_p
23291  ac_builddir=.
23292
23293case "$ac_dir" in
23294.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23295*)
23296  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23297  # A ".." for each directory in $ac_dir_suffix.
23298  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23299  case $ac_top_builddir_sub in
23300  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23301  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23302  esac ;;
23303esac
23304ac_abs_top_builddir=$ac_pwd
23305ac_abs_builddir=$ac_pwd$ac_dir_suffix
23306# for backward compatibility:
23307ac_top_builddir=$ac_top_build_prefix
23308
23309case $srcdir in
23310  .)  # We are building in place.
23311    ac_srcdir=.
23312    ac_top_srcdir=$ac_top_builddir_sub
23313    ac_abs_top_srcdir=$ac_pwd ;;
23314  [\\/]* | ?:[\\/]* )  # Absolute name.
23315    ac_srcdir=$srcdir$ac_dir_suffix;
23316    ac_top_srcdir=$srcdir
23317    ac_abs_top_srcdir=$srcdir ;;
23318  *) # Relative name.
23319    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23320    ac_top_srcdir=$ac_top_build_prefix$srcdir
23321    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23322esac
23323ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23324
23325
23326  case $ac_mode in
23327  :F)
23328  #
23329  # CONFIG_FILE
23330  #
23331
23332  case $INSTALL in
23333  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23334  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23335  esac
23336  ac_MKDIR_P=$MKDIR_P
23337  case $MKDIR_P in
23338  [\\/$]* | ?:[\\/]* ) ;;
23339  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23340  esac
23341_ACEOF
23342
23343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23344# If the template does not know about datarootdir, expand it.
23345# FIXME: This hack should be removed a few years after 2.60.
23346ac_datarootdir_hack=; ac_datarootdir_seen=
23347ac_sed_dataroot='
23348/datarootdir/ {
23349  p
23350  q
23351}
23352/@datadir@/p
23353/@docdir@/p
23354/@infodir@/p
23355/@localedir@/p
23356/@mandir@/p'
23357case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23358*datarootdir*) ac_datarootdir_seen=yes;;
23359*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23361$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23362_ACEOF
23363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23364  ac_datarootdir_hack='
23365  s&@datadir@&$datadir&g
23366  s&@docdir@&$docdir&g
23367  s&@infodir@&$infodir&g
23368  s&@localedir@&$localedir&g
23369  s&@mandir@&$mandir&g
23370  s&\\\${datarootdir}&$datarootdir&g' ;;
23371esac
23372_ACEOF
23373
23374# Neutralize VPATH when `$srcdir' = `.'.
23375# Shell code in configure.ac might set extrasub.
23376# FIXME: do we really want to maintain this feature?
23377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23378ac_sed_extra="$ac_vpsub
23379$extrasub
23380_ACEOF
23381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23382:t
23383/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23384s|@configure_input@|$ac_sed_conf_input|;t t
23385s&@top_builddir@&$ac_top_builddir_sub&;t t
23386s&@top_build_prefix@&$ac_top_build_prefix&;t t
23387s&@srcdir@&$ac_srcdir&;t t
23388s&@abs_srcdir@&$ac_abs_srcdir&;t t
23389s&@top_srcdir@&$ac_top_srcdir&;t t
23390s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23391s&@builddir@&$ac_builddir&;t t
23392s&@abs_builddir@&$ac_abs_builddir&;t t
23393s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23394s&@INSTALL@&$ac_INSTALL&;t t
23395s&@MKDIR_P@&$ac_MKDIR_P&;t t
23396$ac_datarootdir_hack
23397"
23398eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23399  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23400
23401test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23402  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23403  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23404      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23405  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23406which seems to be undefined.  Please make sure it is defined" >&5
23407$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23408which seems to be undefined.  Please make sure it is defined" >&2;}
23409
23410  rm -f "$ac_tmp/stdin"
23411  case $ac_file in
23412  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23413  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23414  esac \
23415  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23416 ;;
23417  :H)
23418  #
23419  # CONFIG_HEADER
23420  #
23421  if test x"$ac_file" != x-; then
23422    {
23423      $as_echo "/* $configure_input  */" \
23424      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23425    } >"$ac_tmp/config.h" \
23426      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23427    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23428      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23429$as_echo "$as_me: $ac_file is unchanged" >&6;}
23430    else
23431      rm -f "$ac_file"
23432      mv "$ac_tmp/config.h" "$ac_file" \
23433	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23434    fi
23435  else
23436    $as_echo "/* $configure_input  */" \
23437      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23438      || as_fn_error $? "could not create -" "$LINENO" 5
23439  fi
23440# Compute "$ac_file"'s index in $config_headers.
23441_am_arg="$ac_file"
23442_am_stamp_count=1
23443for _am_header in $config_headers :; do
23444  case $_am_header in
23445    $_am_arg | $_am_arg:* )
23446      break ;;
23447    * )
23448      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23449  esac
23450done
23451echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23452$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23453	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23454	 X"$_am_arg" : 'X\(//\)$' \| \
23455	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23456$as_echo X"$_am_arg" |
23457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23458	    s//\1/
23459	    q
23460	  }
23461	  /^X\(\/\/\)[^/].*/{
23462	    s//\1/
23463	    q
23464	  }
23465	  /^X\(\/\/\)$/{
23466	    s//\1/
23467	    q
23468	  }
23469	  /^X\(\/\).*/{
23470	    s//\1/
23471	    q
23472	  }
23473	  s/.*/./; q'`/stamp-h$_am_stamp_count
23474 ;;
23475
23476  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23477$as_echo "$as_me: executing $ac_file commands" >&6;}
23478 ;;
23479  esac
23480
23481
23482  case $ac_file$ac_mode in
23483    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23484  # Older Autoconf quotes --file arguments for eval, but not when files
23485  # are listed without --file.  Let's play safe and only enable the eval
23486  # if we detect the quoting.
23487  # TODO: see whether this extra hack can be removed once we start
23488  # requiring Autoconf 2.70 or later.
23489  case $CONFIG_FILES in #(
23490  *\'*) :
23491    eval set x "$CONFIG_FILES" ;; #(
23492  *) :
23493    set x $CONFIG_FILES ;; #(
23494  *) :
23495     ;;
23496esac
23497  shift
23498  # Used to flag and report bootstrapping failures.
23499  am_rc=0
23500  for am_mf
23501  do
23502    # Strip MF so we end up with the name of the file.
23503    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23504    # Check whether this is an Automake generated Makefile which includes
23505    # dependency-tracking related rules and includes.
23506    # Grep'ing the whole file directly is not great: AIX grep has a line
23507    # limit of 2048, but all sed's we know have understand at least 4000.
23508    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23509      || continue
23510    am_dirpart=`$as_dirname -- "$am_mf" ||
23511$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23512	 X"$am_mf" : 'X\(//\)[^/]' \| \
23513	 X"$am_mf" : 'X\(//\)$' \| \
23514	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23515$as_echo X"$am_mf" |
23516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23517	    s//\1/
23518	    q
23519	  }
23520	  /^X\(\/\/\)[^/].*/{
23521	    s//\1/
23522	    q
23523	  }
23524	  /^X\(\/\/\)$/{
23525	    s//\1/
23526	    q
23527	  }
23528	  /^X\(\/\).*/{
23529	    s//\1/
23530	    q
23531	  }
23532	  s/.*/./; q'`
23533    am_filepart=`$as_basename -- "$am_mf" ||
23534$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23535	 X"$am_mf" : 'X\(//\)$' \| \
23536	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23537$as_echo X/"$am_mf" |
23538    sed '/^.*\/\([^/][^/]*\)\/*$/{
23539	    s//\1/
23540	    q
23541	  }
23542	  /^X\/\(\/\/\)$/{
23543	    s//\1/
23544	    q
23545	  }
23546	  /^X\/\(\/\).*/{
23547	    s//\1/
23548	    q
23549	  }
23550	  s/.*/./; q'`
23551    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23552      && sed -e '/# am--include-marker/d' "$am_filepart" \
23553        | $MAKE -f - am--depfiles" >&5
23554   (cd "$am_dirpart" \
23555      && sed -e '/# am--include-marker/d' "$am_filepart" \
23556        | $MAKE -f - am--depfiles) >&5 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } || am_rc=$?
23560  done
23561  if test $am_rc -ne 0; then
23562    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23564as_fn_error $? "Something went wrong bootstrapping makefile fragments
23565    for automatic dependency tracking.  Try re-running configure with the
23566    '--disable-dependency-tracking' option to at least be able to build
23567    the package (albeit without support for automatic dependency tracking).
23568See \`config.log' for more details" "$LINENO" 5; }
23569  fi
23570  { am_dirpart=; unset am_dirpart;}
23571  { am_filepart=; unset am_filepart;}
23572  { am_mf=; unset am_mf;}
23573  { am_rc=; unset am_rc;}
23574  rm -f conftest-deps.mk
23575}
23576 ;;
23577    "libtool":C)
23578
23579    # See if we are running on zsh, and set the options that allow our
23580    # commands through without removal of \ escapes.
23581    if test -n "${ZSH_VERSION+set}"; then
23582      setopt NO_GLOB_SUBST
23583    fi
23584
23585    cfgfile=${ofile}T
23586    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23587    $RM "$cfgfile"
23588
23589    cat <<_LT_EOF >> "$cfgfile"
23590#! $SHELL
23591# Generated automatically by $as_me ($PACKAGE) $VERSION
23592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23593# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23594
23595# Provide generalized library-building support services.
23596# Written by Gordon Matzigkeit, 1996
23597
23598# Copyright (C) 2014 Free Software Foundation, Inc.
23599# This is free software; see the source for copying conditions.  There is NO
23600# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23601
23602# GNU Libtool is free software; you can redistribute it and/or modify
23603# it under the terms of the GNU General Public License as published by
23604# the Free Software Foundation; either version 2 of of the License, or
23605# (at your option) any later version.
23606#
23607# As a special exception to the GNU General Public License, if you
23608# distribute this file as part of a program or library that is built
23609# using GNU Libtool, you may include this file under the  same
23610# distribution terms that you use for the rest of that program.
23611#
23612# GNU Libtool is distributed in the hope that it will be useful, but
23613# WITHOUT ANY WARRANTY; without even the implied warranty of
23614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23615# GNU General Public License for more details.
23616#
23617# You should have received a copy of the GNU General Public License
23618# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23619
23620
23621# The names of the tagged configurations supported by this script.
23622available_tags=''
23623
23624# Configured defaults for sys_lib_dlsearch_path munging.
23625: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23626
23627# ### BEGIN LIBTOOL CONFIG
23628
23629# Which release of libtool.m4 was used?
23630macro_version=$macro_version
23631macro_revision=$macro_revision
23632
23633# Whether or not to build shared libraries.
23634build_libtool_libs=$enable_shared
23635
23636# Whether or not to build static libraries.
23637build_old_libs=$enable_static
23638
23639# What type of objects to build.
23640pic_mode=$pic_mode
23641
23642# Whether or not to optimize for fast installation.
23643fast_install=$enable_fast_install
23644
23645# Shared archive member basename,for filename based shared library versioning on AIX.
23646shared_archive_member_spec=$shared_archive_member_spec
23647
23648# Shell to use when invoking shell scripts.
23649SHELL=$lt_SHELL
23650
23651# An echo program that protects backslashes.
23652ECHO=$lt_ECHO
23653
23654# The PATH separator for the build system.
23655PATH_SEPARATOR=$lt_PATH_SEPARATOR
23656
23657# The host system.
23658host_alias=$host_alias
23659host=$host
23660host_os=$host_os
23661
23662# The build system.
23663build_alias=$build_alias
23664build=$build
23665build_os=$build_os
23666
23667# A sed program that does not truncate output.
23668SED=$lt_SED
23669
23670# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23671Xsed="\$SED -e 1s/^X//"
23672
23673# A grep program that handles long lines.
23674GREP=$lt_GREP
23675
23676# An ERE matcher.
23677EGREP=$lt_EGREP
23678
23679# A literal string matcher.
23680FGREP=$lt_FGREP
23681
23682# A BSD- or MS-compatible name lister.
23683NM=$lt_NM
23684
23685# Whether we need soft or hard links.
23686LN_S=$lt_LN_S
23687
23688# What is the maximum length of a command?
23689max_cmd_len=$max_cmd_len
23690
23691# Object file suffix (normally "o").
23692objext=$ac_objext
23693
23694# Executable file suffix (normally "").
23695exeext=$exeext
23696
23697# whether the shell understands "unset".
23698lt_unset=$lt_unset
23699
23700# turn spaces into newlines.
23701SP2NL=$lt_lt_SP2NL
23702
23703# turn newlines into spaces.
23704NL2SP=$lt_lt_NL2SP
23705
23706# convert \$build file names to \$host format.
23707to_host_file_cmd=$lt_cv_to_host_file_cmd
23708
23709# convert \$build files to toolchain format.
23710to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23711
23712# An object symbol dumper.
23713OBJDUMP=$lt_OBJDUMP
23714
23715# Method to check whether dependent libraries are shared objects.
23716deplibs_check_method=$lt_deplibs_check_method
23717
23718# Command to use when deplibs_check_method = "file_magic".
23719file_magic_cmd=$lt_file_magic_cmd
23720
23721# How to find potential files when deplibs_check_method = "file_magic".
23722file_magic_glob=$lt_file_magic_glob
23723
23724# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23725want_nocaseglob=$lt_want_nocaseglob
23726
23727# DLL creation program.
23728DLLTOOL=$lt_DLLTOOL
23729
23730# Command to associate shared and link libraries.
23731sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23732
23733# The archiver.
23734AR=$lt_AR
23735
23736# Flags to create an archive.
23737AR_FLAGS=$lt_AR_FLAGS
23738
23739# How to feed a file listing to the archiver.
23740archiver_list_spec=$lt_archiver_list_spec
23741
23742# A symbol stripping program.
23743STRIP=$lt_STRIP
23744
23745# Commands used to install an old-style archive.
23746RANLIB=$lt_RANLIB
23747old_postinstall_cmds=$lt_old_postinstall_cmds
23748old_postuninstall_cmds=$lt_old_postuninstall_cmds
23749
23750# Whether to use a lock for old archive extraction.
23751lock_old_archive_extraction=$lock_old_archive_extraction
23752
23753# A C compiler.
23754LTCC=$lt_CC
23755
23756# LTCC compiler flags.
23757LTCFLAGS=$lt_CFLAGS
23758
23759# Take the output of nm and produce a listing of raw symbols and C names.
23760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23761
23762# Transform the output of nm in a proper C declaration.
23763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23764
23765# Transform the output of nm into a list of symbols to manually relocate.
23766global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23767
23768# Transform the output of nm in a C name address pair.
23769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23770
23771# Transform the output of nm in a C name address pair when lib prefix is needed.
23772global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23773
23774# The name lister interface.
23775nm_interface=$lt_lt_cv_nm_interface
23776
23777# Specify filename containing input files for \$NM.
23778nm_file_list_spec=$lt_nm_file_list_spec
23779
23780# The root where to search for dependent libraries,and where our libraries should be installed.
23781lt_sysroot=$lt_sysroot
23782
23783# Command to truncate a binary pipe.
23784lt_truncate_bin=$lt_lt_cv_truncate_bin
23785
23786# The name of the directory that contains temporary libtool files.
23787objdir=$objdir
23788
23789# Used to examine libraries when file_magic_cmd begins with "file".
23790MAGIC_CMD=$MAGIC_CMD
23791
23792# Must we lock files when doing compilation?
23793need_locks=$lt_need_locks
23794
23795# Manifest tool.
23796MANIFEST_TOOL=$lt_MANIFEST_TOOL
23797
23798# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23799DSYMUTIL=$lt_DSYMUTIL
23800
23801# Tool to change global to local symbols on Mac OS X.
23802NMEDIT=$lt_NMEDIT
23803
23804# Tool to manipulate fat objects and archives on Mac OS X.
23805LIPO=$lt_LIPO
23806
23807# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23808OTOOL=$lt_OTOOL
23809
23810# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23811OTOOL64=$lt_OTOOL64
23812
23813# Old archive suffix (normally "a").
23814libext=$libext
23815
23816# Shared library suffix (normally ".so").
23817shrext_cmds=$lt_shrext_cmds
23818
23819# The commands to extract the exported symbol list from a shared archive.
23820extract_expsyms_cmds=$lt_extract_expsyms_cmds
23821
23822# Variables whose values should be saved in libtool wrapper scripts and
23823# restored at link time.
23824variables_saved_for_relink=$lt_variables_saved_for_relink
23825
23826# Do we need the "lib" prefix for modules?
23827need_lib_prefix=$need_lib_prefix
23828
23829# Do we need a version for libraries?
23830need_version=$need_version
23831
23832# Library versioning type.
23833version_type=$version_type
23834
23835# Shared library runtime path variable.
23836runpath_var=$runpath_var
23837
23838# Shared library path variable.
23839shlibpath_var=$shlibpath_var
23840
23841# Is shlibpath searched before the hard-coded library search path?
23842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23843
23844# Format of library name prefix.
23845libname_spec=$lt_libname_spec
23846
23847# List of archive names.  First name is the real one, the rest are links.
23848# The last name is the one that the linker finds with -lNAME
23849library_names_spec=$lt_library_names_spec
23850
23851# The coded name of the library, if different from the real name.
23852soname_spec=$lt_soname_spec
23853
23854# Permission mode override for installation of shared libraries.
23855install_override_mode=$lt_install_override_mode
23856
23857# Command to use after installation of a shared archive.
23858postinstall_cmds=$lt_postinstall_cmds
23859
23860# Command to use after uninstallation of a shared archive.
23861postuninstall_cmds=$lt_postuninstall_cmds
23862
23863# Commands used to finish a libtool library installation in a directory.
23864finish_cmds=$lt_finish_cmds
23865
23866# As "finish_cmds", except a single script fragment to be evaled but
23867# not shown.
23868finish_eval=$lt_finish_eval
23869
23870# Whether we should hardcode library paths into libraries.
23871hardcode_into_libs=$hardcode_into_libs
23872
23873# Compile-time system search path for libraries.
23874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23875
23876# Detected run-time system search path for libraries.
23877sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23878
23879# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23880configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23881
23882# Whether dlopen is supported.
23883dlopen_support=$enable_dlopen
23884
23885# Whether dlopen of programs is supported.
23886dlopen_self=$enable_dlopen_self
23887
23888# Whether dlopen of statically linked programs is supported.
23889dlopen_self_static=$enable_dlopen_self_static
23890
23891# Commands to strip libraries.
23892old_striplib=$lt_old_striplib
23893striplib=$lt_striplib
23894
23895
23896# The linker used to build libraries.
23897LD=$lt_LD
23898
23899# How to create reloadable object files.
23900reload_flag=$lt_reload_flag
23901reload_cmds=$lt_reload_cmds
23902
23903# Commands used to build an old-style archive.
23904old_archive_cmds=$lt_old_archive_cmds
23905
23906# A language specific compiler.
23907CC=$lt_compiler
23908
23909# Is the compiler the GNU compiler?
23910with_gcc=$GCC
23911
23912# Compiler flag to turn off builtin functions.
23913no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23914
23915# Additional compiler flags for building library objects.
23916pic_flag=$lt_lt_prog_compiler_pic
23917
23918# How to pass a linker flag through the compiler.
23919wl=$lt_lt_prog_compiler_wl
23920
23921# Compiler flag to prevent dynamic linking.
23922link_static_flag=$lt_lt_prog_compiler_static
23923
23924# Does compiler simultaneously support -c and -o options?
23925compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23926
23927# Whether or not to add -lc for building shared libraries.
23928build_libtool_need_lc=$archive_cmds_need_lc
23929
23930# Whether or not to disallow shared libs when runtime libs are static.
23931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23932
23933# Compiler flag to allow reflexive dlopens.
23934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23935
23936# Compiler flag to generate shared objects directly from archives.
23937whole_archive_flag_spec=$lt_whole_archive_flag_spec
23938
23939# Whether the compiler copes with passing no objects directly.
23940compiler_needs_object=$lt_compiler_needs_object
23941
23942# Create an old-style archive from a shared archive.
23943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23944
23945# Create a temporary old-style archive to link instead of a shared archive.
23946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23947
23948# Commands used to build a shared archive.
23949archive_cmds=$lt_archive_cmds
23950archive_expsym_cmds=$lt_archive_expsym_cmds
23951
23952# Commands used to build a loadable module if different from building
23953# a shared archive.
23954module_cmds=$lt_module_cmds
23955module_expsym_cmds=$lt_module_expsym_cmds
23956
23957# Whether we are building with GNU ld or not.
23958with_gnu_ld=$lt_with_gnu_ld
23959
23960# Flag that allows shared libraries with undefined symbols to be built.
23961allow_undefined_flag=$lt_allow_undefined_flag
23962
23963# Flag that enforces no undefined symbols.
23964no_undefined_flag=$lt_no_undefined_flag
23965
23966# Flag to hardcode \$libdir into a binary during linking.
23967# This must work even if \$libdir does not exist
23968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23969
23970# Whether we need a single "-rpath" flag with a separated argument.
23971hardcode_libdir_separator=$lt_hardcode_libdir_separator
23972
23973# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23974# DIR into the resulting binary.
23975hardcode_direct=$hardcode_direct
23976
23977# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23978# DIR into the resulting binary and the resulting library dependency is
23979# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23980# library is relocated.
23981hardcode_direct_absolute=$hardcode_direct_absolute
23982
23983# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23984# into the resulting binary.
23985hardcode_minus_L=$hardcode_minus_L
23986
23987# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23988# into the resulting binary.
23989hardcode_shlibpath_var=$hardcode_shlibpath_var
23990
23991# Set to "yes" if building a shared library automatically hardcodes DIR
23992# into the library and all subsequent libraries and executables linked
23993# against it.
23994hardcode_automatic=$hardcode_automatic
23995
23996# Set to yes if linker adds runtime paths of dependent libraries
23997# to runtime path list.
23998inherit_rpath=$inherit_rpath
23999
24000# Whether libtool must link a program against all its dependency libraries.
24001link_all_deplibs=$link_all_deplibs
24002
24003# Set to "yes" if exported symbols are required.
24004always_export_symbols=$always_export_symbols
24005
24006# The commands to list exported symbols.
24007export_symbols_cmds=$lt_export_symbols_cmds
24008
24009# Symbols that should not be listed in the preloaded symbols.
24010exclude_expsyms=$lt_exclude_expsyms
24011
24012# Symbols that must always be exported.
24013include_expsyms=$lt_include_expsyms
24014
24015# Commands necessary for linking programs (against libraries) with templates.
24016prelink_cmds=$lt_prelink_cmds
24017
24018# Commands necessary for finishing linking programs.
24019postlink_cmds=$lt_postlink_cmds
24020
24021# Specify filename containing input files.
24022file_list_spec=$lt_file_list_spec
24023
24024# How to hardcode a shared library path into an executable.
24025hardcode_action=$hardcode_action
24026
24027# ### END LIBTOOL CONFIG
24028
24029_LT_EOF
24030
24031    cat <<'_LT_EOF' >> "$cfgfile"
24032
24033# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24034
24035# func_munge_path_list VARIABLE PATH
24036# -----------------------------------
24037# VARIABLE is name of variable containing _space_ separated list of
24038# directories to be munged by the contents of PATH, which is string
24039# having a format:
24040# "DIR[:DIR]:"
24041#       string "DIR[ DIR]" will be prepended to VARIABLE
24042# ":DIR[:DIR]"
24043#       string "DIR[ DIR]" will be appended to VARIABLE
24044# "DIRP[:DIRP]::[DIRA:]DIRA"
24045#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24046#       "DIRA[ DIRA]" will be appended to VARIABLE
24047# "DIR[:DIR]"
24048#       VARIABLE will be replaced by "DIR[ DIR]"
24049func_munge_path_list ()
24050{
24051    case x$2 in
24052    x)
24053        ;;
24054    *:)
24055        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24056        ;;
24057    x:*)
24058        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24059        ;;
24060    *::*)
24061        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24062        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24063        ;;
24064    *)
24065        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24066        ;;
24067    esac
24068}
24069
24070
24071# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24072func_cc_basename ()
24073{
24074    for cc_temp in $*""; do
24075      case $cc_temp in
24076        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24077        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24078        \-*) ;;
24079        *) break;;
24080      esac
24081    done
24082    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24083}
24084
24085
24086# ### END FUNCTIONS SHARED WITH CONFIGURE
24087
24088_LT_EOF
24089
24090  case $host_os in
24091  aix3*)
24092    cat <<\_LT_EOF >> "$cfgfile"
24093# AIX sometimes has problems with the GCC collect2 program.  For some
24094# reason, if we set the COLLECT_NAMES environment variable, the problems
24095# vanish in a puff of smoke.
24096if test set != "${COLLECT_NAMES+set}"; then
24097  COLLECT_NAMES=
24098  export COLLECT_NAMES
24099fi
24100_LT_EOF
24101    ;;
24102  esac
24103
24104
24105ltmain=$ac_aux_dir/ltmain.sh
24106
24107
24108  # We use sed instead of cat because bash on DJGPP gets confused if
24109  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24110  # text mode, it properly converts lines to CR/LF.  This bash problem
24111  # is reportedly fixed, but why not run on old versions too?
24112  sed '$q' "$ltmain" >> "$cfgfile" \
24113     || (rm -f "$cfgfile"; exit 1)
24114
24115   mv -f "$cfgfile" "$ofile" ||
24116    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24117  chmod +x "$ofile"
24118
24119 ;;
24120
24121  esac
24122done # for ac_tag
24123
24124
24125as_fn_exit 0
24126_ACEOF
24127ac_clean_files=$ac_clean_files_save
24128
24129test $ac_write_fail = 0 ||
24130  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24131
24132
24133# configure is writing to config.log, and then calls config.status.
24134# config.status does its own redirection, appending to config.log.
24135# Unfortunately, on DOS this fails, as config.log is still kept open
24136# by configure, so config.status won't be able to write to it; its
24137# output is simply discarded.  So we exec the FD to /dev/null,
24138# effectively closing config.log, so it can be properly (re)opened and
24139# appended to by config.status.  When coming back to configure, we
24140# need to make the FD available again.
24141if test "$no_create" != yes; then
24142  ac_cs_success=:
24143  ac_config_status_args=
24144  test "$silent" = yes &&
24145    ac_config_status_args="$ac_config_status_args --quiet"
24146  exec 5>/dev/null
24147  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24148  exec 5>>config.log
24149  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24150  # would make configure fail if this is the last instruction.
24151  $ac_cs_success || as_fn_exit 1
24152fi
24153if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24155$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24156fi
24157
24158
24159echo ""
24160echo "X11 will be built with the following settings:"
24161echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
24162echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
24163echo " Threading support:                       "$xthreads
24164echo " Use Threads safe API:                    "$mtsafeapi
24165echo " Threads stubs in libX11:                 "$thrstubs
24166echo " XCMS:                                    "$XCMS
24167echo " Internationalization support:            "$XLOCALE
24168echo " XF86BigFont support:                     "$XF86BIGFONT
24169echo " XKB support:                             "$XKB
24170echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
24171echo " Compose table cache enabled:             "$COMPOSECACHE
24172echo " Functional specs building enabled:       "$build_specs
24173echo ""
24174