configure revision e9628295
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libX11 1.8.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libx11/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601as_awk_strverscmp='
602  # Use only awk features that work with 7th edition Unix awk (1978).
603  # My, what an old awk you have, Mr. Solaris!
604  END {
605    while (length(v1) && length(v2)) {
606      # Set d1 to be the next thing to compare from v1, and likewise for d2.
607      # Normally this is a single character, but if v1 and v2 contain digits,
608      # compare them as integers and fractions as strverscmp does.
609      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610	# Split v1 and v2 into their leading digit string components d1 and d2,
611	# and advance v1 and v2 past the leading digit strings.
612	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616	if (d1 ~ /^0/) {
617	  if (d2 ~ /^0/) {
618	    # Compare two fractions.
619	    while (d1 ~ /^0/ && d2 ~ /^0/) {
620	      d1 = substr(d1, 2); len1--
621	      d2 = substr(d2, 2); len2--
622	    }
623	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624	      # The two components differ in length, and the common prefix
625	      # contains only leading zeros.  Consider the longer to be less.
626	      d1 = -len1
627	      d2 = -len2
628	    } else {
629	      # Otherwise, compare as strings.
630	      d1 = "x" d1
631	      d2 = "x" d2
632	    }
633	  } else {
634	    # A fraction is less than an integer.
635	    exit 1
636	  }
637	} else {
638	  if (d2 ~ /^0/) {
639	    # An integer is greater than a fraction.
640	    exit 2
641	  } else {
642	    # Compare two integers.
643	    d1 += 0
644	    d2 += 0
645	  }
646	}
647      } else {
648	# The normal case, without worrying about digits.
649	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651      }
652      if (d1 < d2) exit 1
653      if (d1 > d2) exit 2
654    }
655    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656    # which mishandles some comparisons of empty strings to integers.
657    if (length(v2)) exit 1
658    if (length(v1)) exit 2
659  }
660'
661
662test -n "$DJDIR" || exec 7<&0 </dev/null
663exec 6>&1
664
665# Name of the host.
666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667# so uname gets run too.
668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670#
671# Initializations.
672#
673ac_default_prefix=/usr/local
674ac_clean_files=
675ac_config_libobj_dir=.
676LIBOBJS=
677cross_compiling=no
678subdirs=
679MFLAGS=
680MAKEFLAGS=
681
682# Identity of this package.
683PACKAGE_NAME='libX11'
684PACKAGE_TARNAME='libX11'
685PACKAGE_VERSION='1.8.1'
686PACKAGE_STRING='libX11 1.8.1'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/issues'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_func_c_list=
724ac_subst_vars='am__EXEEXT_FALSE
725am__EXEEXT_TRUE
726LTLIBOBJS
727XTMALLOC_ZERO_CFLAGS
728XMALLOC_ZERO_CFLAGS
729MALLOC_ZERO_CFLAGS
730XERRORDB
731XKEYSYMDB
732locales
733X11_LOCALEDIR
734XLOCALEDIR
735X11_LOCALELIBDIR
736XLOCALELIBDIR
737X11_LOCALEDATADIR
738XLOCALEDATADIR
739X11_LIBS
740X11_CFLAGS
741X11_LIBDIR
742X11_DATADIR
743MAKE_LINT_LIB_FALSE
744MAKE_LINT_LIB_TRUE
745LINTLIB
746LINT_FALSE
747LINT_TRUE
748LINT_FLAGS
749LINT
750XKBPROTO_REQUIRES
751XKB_FALSE
752XKB_TRUE
753BIGFONT_LIBS
754BIGFONT_CFLAGS
755XLOCALE_FALSE
756XLOCALE_TRUE
757XCMS_FALSE
758XCMS_TRUE
759KEYSYMDEFS
760XTHREAD_CFLAGS
761XTHREADLIB
762THRSTUBS_FALSE
763THRSTUBS_TRUE
764LAUNCHD
765OS2_FALSE
766OS2_TRUE
767WCHAR32
768LIBOBJS
769XLIB_LOADABLE_I18N_FALSE
770XLIB_LOADABLE_I18N_TRUE
771I18N_MODULE_LIBS
772X11_EXTRA_DEPS
773EXEEXT_FOR_BUILD
774LDFLAGS_FOR_BUILD
775CFLAGS_FOR_BUILD
776CPPFLAGS_FOR_BUILD
777CC_FOR_BUILD
778HAVE_PERL_FALSE
779HAVE_PERL_TRUE
780PERL
781TRADITIONALCPPFLAGS
782RAWCPPFLAGS
783RAWCPP
784CPP
785HAVE_STYLESHEETS_FALSE
786HAVE_STYLESHEETS_TRUE
787XSL_STYLESHEET
788STYLESHEET_SRCDIR
789XORG_SGML_PATH
790HAVE_XSLTPROC_FALSE
791HAVE_XSLTPROC_TRUE
792XSLTPROC
793HAVE_FOP_FALSE
794HAVE_FOP_TRUE
795FOP
796HAVE_XMLTO_FALSE
797HAVE_XMLTO_TRUE
798HAVE_XMLTO_TEXT_FALSE
799HAVE_XMLTO_TEXT_TRUE
800XMLTO
801ENABLE_SPECS_FALSE
802ENABLE_SPECS_TRUE
803MAN_SUBSTS
804XORG_MAN_PAGE
805ADMIN_MAN_DIR
806DRIVER_MAN_DIR
807MISC_MAN_DIR
808FILE_MAN_DIR
809LIB_MAN_DIR
810APP_MAN_DIR
811ADMIN_MAN_SUFFIX
812DRIVER_MAN_SUFFIX
813MISC_MAN_SUFFIX
814FILE_MAN_SUFFIX
815LIB_MAN_SUFFIX
816APP_MAN_SUFFIX
817INSTALL_CMD
818PKG_CONFIG_LIBDIR
819PKG_CONFIG_PATH
820PKG_CONFIG
821CHANGELOG_CMD
822STRICT_CFLAGS
823CWARNFLAGS
824BASE_CFLAGS
825LT_SYS_LIBRARY_PATH
826OTOOL64
827OTOOL
828LIPO
829NMEDIT
830DSYMUTIL
831MANIFEST_TOOL
832RANLIB
833ac_ct_AR
834AR
835DLLTOOL
836OBJDUMP
837FILECMD
838LN_S
839NM
840ac_ct_DUMPBIN
841DUMPBIN
842LD
843FGREP
844EGREP
845GREP
846SED
847LIBTOOL
848AM_BACKSLASH
849AM_DEFAULT_VERBOSITY
850AM_DEFAULT_V
851AM_V
852CSCOPE
853ETAGS
854CTAGS
855am__fastdepCC_FALSE
856am__fastdepCC_TRUE
857CCDEPMODE
858am__nodep
859AMDEPBACKSLASH
860AMDEP_FALSE
861AMDEP_TRUE
862am__include
863DEPDIR
864am__untar
865am__tar
866AMTAR
867am__leading_dot
868SET_MAKE
869AWK
870mkdir_p
871MKDIR_P
872INSTALL_STRIP_PROGRAM
873STRIP
874install_sh
875MAKEINFO
876AUTOHEADER
877AUTOMAKE
878AUTOCONF
879ACLOCAL
880VERSION
881PACKAGE
882CYGPATH_W
883am__isrc
884INSTALL_DATA
885INSTALL_SCRIPT
886INSTALL_PROGRAM
887OBJEXT
888EXEEXT
889ac_ct_CC
890CPPFLAGS
891LDFLAGS
892CFLAGS
893CC
894host_os
895host_vendor
896host_cpu
897host
898build_os
899build_vendor
900build_cpu
901build
902target_alias
903host_alias
904build_alias
905LIBS
906ECHO_T
907ECHO_N
908ECHO_C
909DEFS
910mandir
911localedir
912libdir
913psdir
914pdfdir
915dvidir
916htmldir
917infodir
918docdir
919oldincludedir
920includedir
921runstatedir
922localstatedir
923sharedstatedir
924sysconfdir
925datadir
926datarootdir
927libexecdir
928sbindir
929bindir
930program_transform_name
931prefix
932exec_prefix
933PACKAGE_URL
934PACKAGE_BUGREPORT
935PACKAGE_STRING
936PACKAGE_VERSION
937PACKAGE_TARNAME
938PACKAGE_NAME
939PATH_SEPARATOR
940SHELL
941am__quote'
942ac_subst_files=''
943ac_user_opts='
944enable_option_checking
945enable_dependency_tracking
946enable_silent_rules
947enable_shared
948enable_static
949with_pic
950enable_fast_install
951with_aix_soname
952with_gnu_ld
953with_sysroot
954enable_libtool_lock
955enable_largefile
956enable_selective_werror
957enable_strict_compilation
958enable_specs
959with_xmlto
960with_fop
961with_xsltproc
962with_perl
963enable_unix_transport
964enable_tcp_transport
965enable_ipv6
966enable_local_transport
967enable_loadable_i18n
968enable_loadable_xcursor
969enable_thread_safety_constructor
970with_launchd
971enable_xthreads
972with_keysymdefdir
973enable_xcms
974enable_xlocale
975enable_xlocaledir
976enable_xf86bigfont
977enable_xkb
978enable_composecache
979with_lint
980enable_lint_library
981with_locale_lib_dir
982enable_malloc0returnsnull
983'
984      ac_precious_vars='build_alias
985host_alias
986target_alias
987CC
988CFLAGS
989LDFLAGS
990LIBS
991CPPFLAGS
992LT_SYS_LIBRARY_PATH
993PKG_CONFIG
994PKG_CONFIG_PATH
995PKG_CONFIG_LIBDIR
996XMLTO
997FOP
998XSLTPROC
999CPP
1000PERL
1001BIGFONT_CFLAGS
1002BIGFONT_LIBS
1003LINT
1004LINT_FLAGS
1005X11_CFLAGS
1006X11_LIBS'
1007
1008
1009# Initialize some variables set by options.
1010ac_init_help=
1011ac_init_version=false
1012ac_unrecognized_opts=
1013ac_unrecognized_sep=
1014# The variables have the same names as the options, with
1015# dashes changed to underlines.
1016cache_file=/dev/null
1017exec_prefix=NONE
1018no_create=
1019no_recursion=
1020prefix=NONE
1021program_prefix=NONE
1022program_suffix=NONE
1023program_transform_name=s,x,x,
1024silent=
1025site=
1026srcdir=
1027verbose=
1028x_includes=NONE
1029x_libraries=NONE
1030
1031# Installation directory options.
1032# These are left unexpanded so users can "make install exec_prefix=/foo"
1033# and all the variables that are supposed to be based on exec_prefix
1034# by default will actually change.
1035# Use braces instead of parens because sh, perl, etc. also accept them.
1036# (The list follows the same order as the GNU Coding Standards.)
1037bindir='${exec_prefix}/bin'
1038sbindir='${exec_prefix}/sbin'
1039libexecdir='${exec_prefix}/libexec'
1040datarootdir='${prefix}/share'
1041datadir='${datarootdir}'
1042sysconfdir='${prefix}/etc'
1043sharedstatedir='${prefix}/com'
1044localstatedir='${prefix}/var'
1045runstatedir='${localstatedir}/run'
1046includedir='${prefix}/include'
1047oldincludedir='/usr/include'
1048docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049infodir='${datarootdir}/info'
1050htmldir='${docdir}'
1051dvidir='${docdir}'
1052pdfdir='${docdir}'
1053psdir='${docdir}'
1054libdir='${exec_prefix}/lib'
1055localedir='${datarootdir}/locale'
1056mandir='${datarootdir}/man'
1057
1058ac_prev=
1059ac_dashdash=
1060for ac_option
1061do
1062  # If the previous option needs an argument, assign it.
1063  if test -n "$ac_prev"; then
1064    eval $ac_prev=\$ac_option
1065    ac_prev=
1066    continue
1067  fi
1068
1069  case $ac_option in
1070  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071  *=)   ac_optarg= ;;
1072  *)    ac_optarg=yes ;;
1073  esac
1074
1075  case $ac_dashdash$ac_option in
1076  --)
1077    ac_dashdash=yes ;;
1078
1079  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080    ac_prev=bindir ;;
1081  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082    bindir=$ac_optarg ;;
1083
1084  -build | --build | --buil | --bui | --bu)
1085    ac_prev=build_alias ;;
1086  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087    build_alias=$ac_optarg ;;
1088
1089  -cache-file | --cache-file | --cache-fil | --cache-fi \
1090  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091    ac_prev=cache_file ;;
1092  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094    cache_file=$ac_optarg ;;
1095
1096  --config-cache | -C)
1097    cache_file=config.cache ;;
1098
1099  -datadir | --datadir | --datadi | --datad)
1100    ac_prev=datadir ;;
1101  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102    datadir=$ac_optarg ;;
1103
1104  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105  | --dataroo | --dataro | --datar)
1106    ac_prev=datarootdir ;;
1107  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109    datarootdir=$ac_optarg ;;
1110
1111  -disable-* | --disable-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"enable_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval enable_$ac_useropt=no ;;
1126
1127  -docdir | --docdir | --docdi | --doc | --do)
1128    ac_prev=docdir ;;
1129  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130    docdir=$ac_optarg ;;
1131
1132  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133    ac_prev=dvidir ;;
1134  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135    dvidir=$ac_optarg ;;
1136
1137  -enable-* | --enable-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"enable_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval enable_$ac_useropt=\$ac_optarg ;;
1152
1153  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155  | --exec | --exe | --ex)
1156    ac_prev=exec_prefix ;;
1157  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159  | --exec=* | --exe=* | --ex=*)
1160    exec_prefix=$ac_optarg ;;
1161
1162  -gas | --gas | --ga | --g)
1163    # Obsolete; use --with-gas.
1164    with_gas=yes ;;
1165
1166  -help | --help | --hel | --he | -h)
1167    ac_init_help=long ;;
1168  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169    ac_init_help=recursive ;;
1170  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171    ac_init_help=short ;;
1172
1173  -host | --host | --hos | --ho)
1174    ac_prev=host_alias ;;
1175  -host=* | --host=* | --hos=* | --ho=*)
1176    host_alias=$ac_optarg ;;
1177
1178  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179    ac_prev=htmldir ;;
1180  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181  | --ht=*)
1182    htmldir=$ac_optarg ;;
1183
1184  -includedir | --includedir | --includedi | --included | --include \
1185  | --includ | --inclu | --incl | --inc)
1186    ac_prev=includedir ;;
1187  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188  | --includ=* | --inclu=* | --incl=* | --inc=*)
1189    includedir=$ac_optarg ;;
1190
1191  -infodir | --infodir | --infodi | --infod | --info | --inf)
1192    ac_prev=infodir ;;
1193  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194    infodir=$ac_optarg ;;
1195
1196  -libdir | --libdir | --libdi | --libd)
1197    ac_prev=libdir ;;
1198  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199    libdir=$ac_optarg ;;
1200
1201  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202  | --libexe | --libex | --libe)
1203    ac_prev=libexecdir ;;
1204  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205  | --libexe=* | --libex=* | --libe=*)
1206    libexecdir=$ac_optarg ;;
1207
1208  -localedir | --localedir | --localedi | --localed | --locale)
1209    ac_prev=localedir ;;
1210  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211    localedir=$ac_optarg ;;
1212
1213  -localstatedir | --localstatedir | --localstatedi | --localstated \
1214  | --localstate | --localstat | --localsta | --localst | --locals)
1215    ac_prev=localstatedir ;;
1216  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218    localstatedir=$ac_optarg ;;
1219
1220  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221    ac_prev=mandir ;;
1222  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223    mandir=$ac_optarg ;;
1224
1225  -nfp | --nfp | --nf)
1226    # Obsolete; use --without-fp.
1227    with_fp=no ;;
1228
1229  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230  | --no-cr | --no-c | -n)
1231    no_create=yes ;;
1232
1233  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235    no_recursion=yes ;;
1236
1237  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239  | --oldin | --oldi | --old | --ol | --o)
1240    ac_prev=oldincludedir ;;
1241  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244    oldincludedir=$ac_optarg ;;
1245
1246  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247    ac_prev=prefix ;;
1248  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249    prefix=$ac_optarg ;;
1250
1251  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252  | --program-pre | --program-pr | --program-p)
1253    ac_prev=program_prefix ;;
1254  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256    program_prefix=$ac_optarg ;;
1257
1258  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259  | --program-suf | --program-su | --program-s)
1260    ac_prev=program_suffix ;;
1261  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263    program_suffix=$ac_optarg ;;
1264
1265  -program-transform-name | --program-transform-name \
1266  | --program-transform-nam | --program-transform-na \
1267  | --program-transform-n | --program-transform- \
1268  | --program-transform | --program-transfor \
1269  | --program-transfo | --program-transf \
1270  | --program-trans | --program-tran \
1271  | --progr-tra | --program-tr | --program-t)
1272    ac_prev=program_transform_name ;;
1273  -program-transform-name=* | --program-transform-name=* \
1274  | --program-transform-nam=* | --program-transform-na=* \
1275  | --program-transform-n=* | --program-transform-=* \
1276  | --program-transform=* | --program-transfor=* \
1277  | --program-transfo=* | --program-transf=* \
1278  | --program-trans=* | --program-tran=* \
1279  | --progr-tra=* | --program-tr=* | --program-t=*)
1280    program_transform_name=$ac_optarg ;;
1281
1282  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283    ac_prev=pdfdir ;;
1284  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285    pdfdir=$ac_optarg ;;
1286
1287  -psdir | --psdir | --psdi | --psd | --ps)
1288    ac_prev=psdir ;;
1289  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290    psdir=$ac_optarg ;;
1291
1292  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293  | -silent | --silent | --silen | --sile | --sil)
1294    silent=yes ;;
1295
1296  -runstatedir | --runstatedir | --runstatedi | --runstated \
1297  | --runstate | --runstat | --runsta | --runst | --runs \
1298  | --run | --ru | --r)
1299    ac_prev=runstatedir ;;
1300  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1301  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1302  | --run=* | --ru=* | --r=*)
1303    runstatedir=$ac_optarg ;;
1304
1305  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1306    ac_prev=sbindir ;;
1307  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1308  | --sbi=* | --sb=*)
1309    sbindir=$ac_optarg ;;
1310
1311  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1312  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1313  | --sharedst | --shareds | --shared | --share | --shar \
1314  | --sha | --sh)
1315    ac_prev=sharedstatedir ;;
1316  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1317  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1318  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1319  | --sha=* | --sh=*)
1320    sharedstatedir=$ac_optarg ;;
1321
1322  -site | --site | --sit)
1323    ac_prev=site ;;
1324  -site=* | --site=* | --sit=*)
1325    site=$ac_optarg ;;
1326
1327  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1328    ac_prev=srcdir ;;
1329  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1330    srcdir=$ac_optarg ;;
1331
1332  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1333  | --syscon | --sysco | --sysc | --sys | --sy)
1334    ac_prev=sysconfdir ;;
1335  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1336  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1337    sysconfdir=$ac_optarg ;;
1338
1339  -target | --target | --targe | --targ | --tar | --ta | --t)
1340    ac_prev=target_alias ;;
1341  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1342    target_alias=$ac_optarg ;;
1343
1344  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1345    verbose=yes ;;
1346
1347  -version | --version | --versio | --versi | --vers | -V)
1348    ac_init_version=: ;;
1349
1350  -with-* | --with-*)
1351    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1352    # Reject names that are not valid shell variable names.
1353    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354      as_fn_error $? "invalid package name: \`$ac_useropt'"
1355    ac_useropt_orig=$ac_useropt
1356    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1357    case $ac_user_opts in
1358      *"
1359"with_$ac_useropt"
1360"*) ;;
1361      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1362	 ac_unrecognized_sep=', ';;
1363    esac
1364    eval with_$ac_useropt=\$ac_optarg ;;
1365
1366  -without-* | --without-*)
1367    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1368    # Reject names that are not valid shell variable names.
1369    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370      as_fn_error $? "invalid package name: \`$ac_useropt'"
1371    ac_useropt_orig=$ac_useropt
1372    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1373    case $ac_user_opts in
1374      *"
1375"with_$ac_useropt"
1376"*) ;;
1377      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1378	 ac_unrecognized_sep=', ';;
1379    esac
1380    eval with_$ac_useropt=no ;;
1381
1382  --x)
1383    # Obsolete; use --with-x.
1384    with_x=yes ;;
1385
1386  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1387  | --x-incl | --x-inc | --x-in | --x-i)
1388    ac_prev=x_includes ;;
1389  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1390  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1391    x_includes=$ac_optarg ;;
1392
1393  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1394  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1395    ac_prev=x_libraries ;;
1396  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1397  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1398    x_libraries=$ac_optarg ;;
1399
1400  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1401Try \`$0 --help' for more information"
1402    ;;
1403
1404  *=*)
1405    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406    # Reject names that are not valid shell variable names.
1407    case $ac_envvar in #(
1408      '' | [0-9]* | *[!_$as_cr_alnum]* )
1409      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1410    esac
1411    eval $ac_envvar=\$ac_optarg
1412    export $ac_envvar ;;
1413
1414  *)
1415    # FIXME: should be removed in autoconf 3.0.
1416    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1417    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1418      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1419    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1420    ;;
1421
1422  esac
1423done
1424
1425if test -n "$ac_prev"; then
1426  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1427  as_fn_error $? "missing argument to $ac_option"
1428fi
1429
1430if test -n "$ac_unrecognized_opts"; then
1431  case $enable_option_checking in
1432    no) ;;
1433    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1434    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1435  esac
1436fi
1437
1438# Check all directory arguments for consistency.
1439for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440		datadir sysconfdir sharedstatedir localstatedir includedir \
1441		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442		libdir localedir mandir runstatedir
1443do
1444  eval ac_val=\$$ac_var
1445  # Remove trailing slashes.
1446  case $ac_val in
1447    */ )
1448      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1449      eval $ac_var=\$ac_val;;
1450  esac
1451  # Be sure to have absolute directory names.
1452  case $ac_val in
1453    [\\/$]* | ?:[\\/]* )  continue;;
1454    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455  esac
1456  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1457done
1458
1459# There might be people who depend on the old broken behavior: `$host'
1460# used to hold the argument of --host etc.
1461# FIXME: To remove some day.
1462build=$build_alias
1463host=$host_alias
1464target=$target_alias
1465
1466# FIXME: To remove some day.
1467if test "x$host_alias" != x; then
1468  if test "x$build_alias" = x; then
1469    cross_compiling=maybe
1470  elif test "x$build_alias" != "x$host_alias"; then
1471    cross_compiling=yes
1472  fi
1473fi
1474
1475ac_tool_prefix=
1476test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478test "$silent" = yes && exec 6>/dev/null
1479
1480
1481ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482ac_ls_di=`ls -di .` &&
1483ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484  as_fn_error $? "working directory cannot be determined"
1485test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486  as_fn_error $? "pwd does not report name of working directory"
1487
1488
1489# Find the source files, if location was not specified.
1490if test -z "$srcdir"; then
1491  ac_srcdir_defaulted=yes
1492  # Try the directory containing this script, then the parent directory.
1493  ac_confdir=`$as_dirname -- "$as_myself" ||
1494$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495	 X"$as_myself" : 'X\(//\)[^/]' \| \
1496	 X"$as_myself" : 'X\(//\)$' \| \
1497	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498printf "%s\n" X"$as_myself" |
1499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500	    s//\1/
1501	    q
1502	  }
1503	  /^X\(\/\/\)[^/].*/{
1504	    s//\1/
1505	    q
1506	  }
1507	  /^X\(\/\/\)$/{
1508	    s//\1/
1509	    q
1510	  }
1511	  /^X\(\/\).*/{
1512	    s//\1/
1513	    q
1514	  }
1515	  s/.*/./; q'`
1516  srcdir=$ac_confdir
1517  if test ! -r "$srcdir/$ac_unique_file"; then
1518    srcdir=..
1519  fi
1520else
1521  ac_srcdir_defaulted=no
1522fi
1523if test ! -r "$srcdir/$ac_unique_file"; then
1524  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1526fi
1527ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528ac_abs_confdir=`(
1529	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1530	pwd)`
1531# When building in place, set srcdir=.
1532if test "$ac_abs_confdir" = "$ac_pwd"; then
1533  srcdir=.
1534fi
1535# Remove unnecessary trailing slashes from srcdir.
1536# Double slashes in file names in object file debugging info
1537# mess up M-x gdb in Emacs.
1538case $srcdir in
1539*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540esac
1541for ac_var in $ac_precious_vars; do
1542  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543  eval ac_env_${ac_var}_value=\$${ac_var}
1544  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546done
1547
1548#
1549# Report the --help message.
1550#
1551if test "$ac_init_help" = "long"; then
1552  # Omit some internal or obsolete options to make the list less imposing.
1553  # This message is too long to be a string in the A/UX 3.1 sh.
1554  cat <<_ACEOF
1555\`configure' configures libX11 1.8.1 to adapt to many kinds of systems.
1556
1557Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560VAR=VALUE.  See below for descriptions of some of the useful variables.
1561
1562Defaults for the options are specified in brackets.
1563
1564Configuration:
1565  -h, --help              display this help and exit
1566      --help=short        display options specific to this package
1567      --help=recursive    display the short help of all the included packages
1568  -V, --version           display version information and exit
1569  -q, --quiet, --silent   do not print \`checking ...' messages
1570      --cache-file=FILE   cache test results in FILE [disabled]
1571  -C, --config-cache      alias for \`--cache-file=config.cache'
1572  -n, --no-create         do not create output files
1573      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1574
1575Installation directories:
1576  --prefix=PREFIX         install architecture-independent files in PREFIX
1577                          [$ac_default_prefix]
1578  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1579                          [PREFIX]
1580
1581By default, \`make install' will install all the files in
1582\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1583an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584for instance \`--prefix=\$HOME'.
1585
1586For better control, use the options below.
1587
1588Fine tuning of the installation directories:
1589  --bindir=DIR            user executables [EPREFIX/bin]
1590  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1591  --libexecdir=DIR        program executables [EPREFIX/libexec]
1592  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1593  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1594  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1595  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1596  --libdir=DIR            object code libraries [EPREFIX/lib]
1597  --includedir=DIR        C header files [PREFIX/include]
1598  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1599  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1600  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1601  --infodir=DIR           info documentation [DATAROOTDIR/info]
1602  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1603  --mandir=DIR            man documentation [DATAROOTDIR/man]
1604  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1605  --htmldir=DIR           html documentation [DOCDIR]
1606  --dvidir=DIR            dvi documentation [DOCDIR]
1607  --pdfdir=DIR            pdf documentation [DOCDIR]
1608  --psdir=DIR             ps documentation [DOCDIR]
1609_ACEOF
1610
1611  cat <<\_ACEOF
1612
1613Program names:
1614  --program-prefix=PREFIX            prepend PREFIX to installed program names
1615  --program-suffix=SUFFIX            append SUFFIX to installed program names
1616  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1617
1618System types:
1619  --build=BUILD     configure for building on BUILD [guessed]
1620  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621_ACEOF
1622fi
1623
1624if test -n "$ac_init_help"; then
1625  case $ac_init_help in
1626     short | recursive ) echo "Configuration of libX11 1.8.1:";;
1627   esac
1628  cat <<\_ACEOF
1629
1630Optional Features:
1631  --disable-option-checking  ignore unrecognized --enable/--with options
1632  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1633  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1634  --enable-dependency-tracking
1635                          do not reject slow dependency extractors
1636  --disable-dependency-tracking
1637                          speeds up one-time build
1638  --enable-silent-rules   less verbose build output (undo: "make V=1")
1639  --disable-silent-rules  verbose build output (undo: "make V=0")
1640  --enable-shared[=PKGS]  build shared libraries [default=yes]
1641  --enable-static[=PKGS]  build static libraries [default=yes]
1642  --enable-fast-install[=PKGS]
1643                          optimize for fast installation [default=yes]
1644  --disable-libtool-lock  avoid locking (might break parallel builds)
1645  --disable-largefile     omit support for large files
1646  --disable-selective-werror
1647                          Turn off selective compiler errors. (default:
1648                          enabled)
1649  --enable-strict-compilation
1650                          Enable all warnings from compiler and make them
1651                          errors (default: disabled)
1652  --enable-specs          Enable building the specs (default: yes)
1653  --enable-unix-transport Enable UNIX domain socket transport
1654  --enable-tcp-transport  Enable TCP socket transport
1655  --enable-ipv6           Enable IPv6 support
1656  --enable-local-transport
1657                          Enable os-specific local transport
1658  --enable-loadable-i18n  Controls loadable i18n module support
1659  --disable-loadable-xcursor
1660                          Controls loadable xcursor library support
1661  --disable-thread-safety-constructor
1662                          Controls mandatory thread safety support
1663  --disable-xthreads      Disable Xlib support for Multithreading
1664  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1665  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1666  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1667  --disable-xf86bigfont   Disable XF86BigFont extension support
1668  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1669  --disable-composecache  Disable compose table cache support
1670  --enable-lint-library   Create lint library (default: disabled)
1671  --enable-malloc0returnsnull
1672                          malloc(0) returns NULL (default: auto)
1673
1674Optional Packages:
1675  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1678                          both]
1679  --with-aix-soname=aix|svr4|both
1680                          shared library versioning (aka "SONAME") variant to
1681                          provide on AIX, [default=aix].
1682  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1683  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1684                          compiler's sysroot if not specified).
1685  --with-xmlto            Use xmlto to regenerate documentation (default:
1686                          auto)
1687  --with-fop              Use fop to regenerate documentation (default: no)
1688  --with-xsltproc         Use xsltproc for the transformation of XML documents
1689                          (default: auto)
1690  --with-perl             Use perl for extracting information from files
1691                          (default: auto)
1692  --with-launchd          Build with support for Apple's launchd (default:
1693                          auto)
1694  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1695                          include dir)
1696  --with-lint             Use a lint-style source code checker (default:
1697                          disabled)
1698  --with-locale-lib-dir=DIR
1699                          Directory where locale libraries files are installed
1700                          (default: $libdir/X11/locale)
1701
1702Some influential environment variables:
1703  CC          C compiler command
1704  CFLAGS      C compiler flags
1705  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1706              nonstandard directory <lib dir>
1707  LIBS        libraries to pass to the linker, e.g. -l<library>
1708  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709              you have headers in a nonstandard directory <include dir>
1710  LT_SYS_LIBRARY_PATH
1711              User-defined run-time library search path.
1712  PKG_CONFIG  path to pkg-config utility
1713  PKG_CONFIG_PATH
1714              directories to add to pkg-config's search path
1715  PKG_CONFIG_LIBDIR
1716              path overriding pkg-config's built-in search path
1717  XMLTO       Path to xmlto command
1718  FOP         Path to fop command
1719  XSLTPROC    Path to xsltproc command
1720  CPP         C preprocessor
1721  PERL        Path to perl command
1722  BIGFONT_CFLAGS
1723              C compiler flags for BIGFONT, overriding pkg-config
1724  BIGFONT_LIBS
1725              linker flags for BIGFONT, overriding pkg-config
1726  LINT        Path to a lint-style command
1727  LINT_FLAGS  Flags for the lint-style command
1728  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1729  X11_LIBS    linker flags for X11, overriding pkg-config
1730
1731Use these variables to override the choices made by `configure' or to help
1732it to find libraries and programs with nonstandard names/locations.
1733
1734Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1735_ACEOF
1736ac_status=$?
1737fi
1738
1739if test "$ac_init_help" = "recursive"; then
1740  # If there are subdirs, report their specific --help.
1741  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742    test -d "$ac_dir" ||
1743      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744      continue
1745    ac_builddir=.
1746
1747case "$ac_dir" in
1748.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749*)
1750  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1751  # A ".." for each directory in $ac_dir_suffix.
1752  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753  case $ac_top_builddir_sub in
1754  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756  esac ;;
1757esac
1758ac_abs_top_builddir=$ac_pwd
1759ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760# for backward compatibility:
1761ac_top_builddir=$ac_top_build_prefix
1762
1763case $srcdir in
1764  .)  # We are building in place.
1765    ac_srcdir=.
1766    ac_top_srcdir=$ac_top_builddir_sub
1767    ac_abs_top_srcdir=$ac_pwd ;;
1768  [\\/]* | ?:[\\/]* )  # Absolute name.
1769    ac_srcdir=$srcdir$ac_dir_suffix;
1770    ac_top_srcdir=$srcdir
1771    ac_abs_top_srcdir=$srcdir ;;
1772  *) # Relative name.
1773    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774    ac_top_srcdir=$ac_top_build_prefix$srcdir
1775    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776esac
1777ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1778
1779    cd "$ac_dir" || { ac_status=$?; continue; }
1780    # Check for configure.gnu first; this name is used for a wrapper for
1781    # Metaconfig's "Configure" on case-insensitive file systems.
1782    if test -f "$ac_srcdir/configure.gnu"; then
1783      echo &&
1784      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785    elif test -f "$ac_srcdir/configure"; then
1786      echo &&
1787      $SHELL "$ac_srcdir/configure" --help=recursive
1788    else
1789      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790    fi || ac_status=$?
1791    cd "$ac_pwd" || { ac_status=$?; break; }
1792  done
1793fi
1794
1795test -n "$ac_init_help" && exit $ac_status
1796if $ac_init_version; then
1797  cat <<\_ACEOF
1798libX11 configure 1.8.1
1799generated by GNU Autoconf 2.71
1800
1801Copyright (C) 2021 Free Software Foundation, Inc.
1802This configure script is free software; the Free Software Foundation
1803gives unlimited permission to copy, distribute and modify it.
1804_ACEOF
1805  exit
1806fi
1807
1808## ------------------------ ##
1809## Autoconf initialization. ##
1810## ------------------------ ##
1811
1812# ac_fn_c_try_compile LINENO
1813# --------------------------
1814# Try to compile conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_compile ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  rm -f conftest.$ac_objext conftest.beam
1819  if { { ac_try="$ac_compile"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825printf "%s\n" "$ac_try_echo"; } >&5
1826  (eval "$ac_compile") 2>conftest.err
1827  ac_status=$?
1828  if test -s conftest.err; then
1829    grep -v '^ *+' conftest.err >conftest.er1
1830    cat conftest.er1 >&5
1831    mv -f conftest.er1 conftest.err
1832  fi
1833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; } && {
1835	 test -z "$ac_c_werror_flag" ||
1836	 test ! -s conftest.err
1837       } && test -s conftest.$ac_objext
1838then :
1839  ac_retval=0
1840else $as_nop
1841  printf "%s\n" "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844	ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859printf %s "checking for $2... " >&6; }
1860if eval test \${$3+y}
1861then :
1862  printf %s "(cached) " >&6
1863else $as_nop
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_compile "$LINENO"
1870then :
1871  eval "$3=yes"
1872else $as_nop
1873  eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879printf "%s\n" "$ac_res" >&6; }
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_header_compile
1883
1884# ac_fn_c_try_link LINENO
1885# -----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_link ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1891  if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894  *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897printf "%s\n" "$ac_try_echo"; } >&5
1898  (eval "$ac_link") 2>conftest.err
1899  ac_status=$?
1900  if test -s conftest.err; then
1901    grep -v '^ *+' conftest.err >conftest.er1
1902    cat conftest.er1 >&5
1903    mv -f conftest.er1 conftest.err
1904  fi
1905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; } && {
1907	 test -z "$ac_c_werror_flag" ||
1908	 test ! -s conftest.err
1909       } && test -s conftest$ac_exeext && {
1910	 test "$cross_compiling" = yes ||
1911	 test -x conftest$ac_exeext
1912       }
1913then :
1914  ac_retval=0
1915else $as_nop
1916  printf "%s\n" "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919	ac_retval=1
1920fi
1921  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923  # interfere with the next link command; also delete a directory that is
1924  # left behind by Apple's compiler.  We do this before executing the actions.
1925  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_link
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938printf %s "checking for $2... " >&6; }
1939if eval test \${$3+y}
1940then :
1941  printf %s "(cached) " >&6
1942else $as_nop
1943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1947#define $2 innocuous_$2
1948
1949/* System header to define __stub macros and hopefully few prototypes,
1950   which can conflict with char $2 (); below.  */
1951
1952#include <limits.h>
1953#undef $2
1954
1955/* Override any GCC internal prototype to avoid an error.
1956   Use char because int might match the return type of a GCC
1957   builtin and then its argument prototype would still apply.  */
1958#ifdef __cplusplus
1959extern "C"
1960#endif
1961char $2 ();
1962/* The GNU C library defines this for functions which it implements
1963    to always fail with ENOSYS.  Some functions are actually named
1964    something starting with __ and the normal name is an alias.  */
1965#if defined __stub_$2 || defined __stub___$2
1966choke me
1967#endif
1968
1969int
1970main (void)
1971{
1972return $2 ();
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_link "$LINENO"
1978then :
1979  eval "$3=yes"
1980else $as_nop
1981  eval "$3=no"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.beam \
1984    conftest$ac_exeext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988printf "%s\n" "$ac_res" >&6; }
1989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_func
1992
1993# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1994# ------------------------------------------------------------------
1995# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1996# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1997ac_fn_check_decl ()
1998{
1999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000  as_decl_name=`echo $2|sed 's/ *(.*//'`
2001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002printf %s "checking whether $as_decl_name is declared... " >&6; }
2003if eval test \${$3+y}
2004then :
2005  printf %s "(cached) " >&6
2006else $as_nop
2007  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2008  eval ac_save_FLAGS=\$$6
2009  as_fn_append $6 " $5"
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main (void)
2015{
2016#ifndef $as_decl_name
2017#ifdef __cplusplus
2018  (void) $as_decl_use;
2019#else
2020  (void) $as_decl_name;
2021#endif
2022#endif
2023
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"
2029then :
2030  eval "$3=yes"
2031else $as_nop
2032  eval "$3=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035  eval $6=\$ac_save_FLAGS
2036
2037fi
2038eval ac_res=\$$3
2039	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040printf "%s\n" "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_check_decl
2044
2045# ac_fn_c_try_cpp LINENO
2046# ----------------------
2047# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_c_try_cpp ()
2049{
2050  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051  if { { ac_try="$ac_cpp conftest.$ac_ext"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057printf "%s\n" "$ac_try_echo"; } >&5
2058  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } > conftest.i && {
2067	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2068	 test ! -s conftest.err
2069       }
2070then :
2071  ac_retval=0
2072else $as_nop
2073  printf "%s\n" "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076    ac_retval=1
2077fi
2078  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079  as_fn_set_status $ac_retval
2080
2081} # ac_fn_c_try_cpp
2082
2083# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2084# ----------------------------------------------------
2085# Tries to find if the field MEMBER exists in type AGGR, after including
2086# INCLUDES, setting cache variable VAR accordingly.
2087ac_fn_c_check_member ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2091printf %s "checking for $2.$3... " >&6; }
2092if eval test \${$4+y}
2093then :
2094  printf %s "(cached) " >&6
2095else $as_nop
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$5
2099int
2100main (void)
2101{
2102static $2 ac_aggr;
2103if (ac_aggr.$3)
2104return 0;
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109if ac_fn_c_try_compile "$LINENO"
2110then :
2111  eval "$4=yes"
2112else $as_nop
2113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$5
2116int
2117main (void)
2118{
2119static $2 ac_aggr;
2120if (sizeof ac_aggr.$3)
2121return 0;
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"
2127then :
2128  eval "$4=yes"
2129else $as_nop
2130  eval "$4=no"
2131fi
2132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133fi
2134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2135fi
2136eval ac_res=\$$4
2137	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138printf "%s\n" "$ac_res" >&6; }
2139  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141} # ac_fn_c_check_member
2142
2143# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2144# -------------------------------------------
2145# Tests whether TYPE exists after having included INCLUDES, setting cache
2146# variable VAR accordingly.
2147ac_fn_c_check_type ()
2148{
2149  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151printf %s "checking for $2... " >&6; }
2152if eval test \${$3+y}
2153then :
2154  printf %s "(cached) " >&6
2155else $as_nop
2156  eval "$3=no"
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main (void)
2162{
2163if (sizeof ($2))
2164	 return 0;
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"
2170then :
2171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$4
2174int
2175main (void)
2176{
2177if (sizeof (($2)))
2178	    return 0;
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"
2184then :
2185
2186else $as_nop
2187  eval "$3=yes"
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2192fi
2193eval ac_res=\$$3
2194	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195printf "%s\n" "$ac_res" >&6; }
2196  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198} # ac_fn_c_check_type
2199
2200# ac_fn_c_try_run LINENO
2201# ----------------------
2202# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2203# executables *can* be run.
2204ac_fn_c_try_run ()
2205{
2206  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207  if { { ac_try="$ac_link"
2208case "(($ac_try" in
2209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210  *) ac_try_echo=$ac_try;;
2211esac
2212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213printf "%s\n" "$ac_try_echo"; } >&5
2214  (eval "$ac_link") 2>&5
2215  ac_status=$?
2216  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218  { { case "(($ac_try" in
2219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220  *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223printf "%s\n" "$ac_try_echo"; } >&5
2224  (eval "$ac_try") 2>&5
2225  ac_status=$?
2226  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227  test $ac_status = 0; }; }
2228then :
2229  ac_retval=0
2230else $as_nop
2231  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2232       printf "%s\n" "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235       ac_retval=$ac_status
2236fi
2237  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239  as_fn_set_status $ac_retval
2240
2241} # ac_fn_c_try_run
2242ac_configure_args_raw=
2243for ac_arg
2244do
2245  case $ac_arg in
2246  *\'*)
2247    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248  esac
2249  as_fn_append ac_configure_args_raw " '$ac_arg'"
2250done
2251
2252case $ac_configure_args_raw in
2253  *$as_nl*)
2254    ac_safe_unquote= ;;
2255  *)
2256    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2257    ac_unsafe_a="$ac_unsafe_z#~"
2258    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2259    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2260esac
2261
2262cat >config.log <<_ACEOF
2263This file contains any messages produced by compilers while
2264running configure, to aid debugging if configure makes a mistake.
2265
2266It was created by libX11 $as_me 1.8.1, which was
2267generated by GNU Autoconf 2.71.  Invocation command line was
2268
2269  $ $0$ac_configure_args_raw
2270
2271_ACEOF
2272exec 5>>config.log
2273{
2274cat <<_ASUNAME
2275## --------- ##
2276## Platform. ##
2277## --------- ##
2278
2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2287
2288/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2289/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2292/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2293/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2294/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2295
2296_ASUNAME
2297
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301  IFS=$as_save_IFS
2302  case $as_dir in #(((
2303    '') as_dir=./ ;;
2304    */) ;;
2305    *) as_dir=$as_dir/ ;;
2306  esac
2307    printf "%s\n" "PATH: $as_dir"
2308  done
2309IFS=$as_save_IFS
2310
2311} >&5
2312
2313cat >&5 <<_ACEOF
2314
2315
2316## ----------- ##
2317## Core tests. ##
2318## ----------- ##
2319
2320_ACEOF
2321
2322
2323# Keep a trace of the command line.
2324# Strip out --no-create and --no-recursion so they do not pile up.
2325# Strip out --silent because we don't want to record it for future runs.
2326# Also quote any args containing shell meta-characters.
2327# Make two passes to allow for proper duplicate-argument suppression.
2328ac_configure_args=
2329ac_configure_args0=
2330ac_configure_args1=
2331ac_must_keep_next=false
2332for ac_pass in 1 2
2333do
2334  for ac_arg
2335  do
2336    case $ac_arg in
2337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339    | -silent | --silent | --silen | --sile | --sil)
2340      continue ;;
2341    *\'*)
2342      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343    esac
2344    case $ac_pass in
2345    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346    2)
2347      as_fn_append ac_configure_args1 " '$ac_arg'"
2348      if test $ac_must_keep_next = true; then
2349	ac_must_keep_next=false # Got value, back to normal.
2350      else
2351	case $ac_arg in
2352	  *=* | --config-cache | -C | -disable-* | --disable-* \
2353	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355	  | -with-* | --with-* | -without-* | --without-* | --x)
2356	    case "$ac_configure_args0 " in
2357	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358	    esac
2359	    ;;
2360	  -* ) ac_must_keep_next=true ;;
2361	esac
2362      fi
2363      as_fn_append ac_configure_args " '$ac_arg'"
2364      ;;
2365    esac
2366  done
2367done
2368{ ac_configure_args0=; unset ac_configure_args0;}
2369{ ac_configure_args1=; unset ac_configure_args1;}
2370
2371# When interrupted or exit'd, cleanup temporary files, and complete
2372# config.log.  We remove comments because anyway the quotes in there
2373# would cause problems or look ugly.
2374# WARNING: Use '\'' to represent an apostrophe within the trap.
2375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376trap 'exit_status=$?
2377  # Sanitize IFS.
2378  IFS=" ""	$as_nl"
2379  # Save into config.log some information that might help in debugging.
2380  {
2381    echo
2382
2383    printf "%s\n" "## ---------------- ##
2384## Cache variables. ##
2385## ---------------- ##"
2386    echo
2387    # The following way of writing the cache mishandles newlines in values,
2388(
2389  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390    eval ac_val=\$$ac_var
2391    case $ac_val in #(
2392    *${as_nl}*)
2393      case $ac_var in #(
2394      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396      esac
2397      case $ac_var in #(
2398      _ | IFS | as_nl) ;; #(
2399      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400      *) { eval $ac_var=; unset $ac_var;} ;;
2401      esac ;;
2402    esac
2403  done
2404  (set) 2>&1 |
2405    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406    *${as_nl}ac_space=\ *)
2407      sed -n \
2408	"s/'\''/'\''\\\\'\'''\''/g;
2409	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410      ;; #(
2411    *)
2412      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413      ;;
2414    esac |
2415    sort
2416)
2417    echo
2418
2419    printf "%s\n" "## ----------------- ##
2420## Output variables. ##
2421## ----------------- ##"
2422    echo
2423    for ac_var in $ac_subst_vars
2424    do
2425      eval ac_val=\$$ac_var
2426      case $ac_val in
2427      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428      esac
2429      printf "%s\n" "$ac_var='\''$ac_val'\''"
2430    done | sort
2431    echo
2432
2433    if test -n "$ac_subst_files"; then
2434      printf "%s\n" "## ------------------- ##
2435## File substitutions. ##
2436## ------------------- ##"
2437      echo
2438      for ac_var in $ac_subst_files
2439      do
2440	eval ac_val=\$$ac_var
2441	case $ac_val in
2442	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443	esac
2444	printf "%s\n" "$ac_var='\''$ac_val'\''"
2445      done | sort
2446      echo
2447    fi
2448
2449    if test -s confdefs.h; then
2450      printf "%s\n" "## ----------- ##
2451## confdefs.h. ##
2452## ----------- ##"
2453      echo
2454      cat confdefs.h
2455      echo
2456    fi
2457    test "$ac_signal" != 0 &&
2458      printf "%s\n" "$as_me: caught signal $ac_signal"
2459    printf "%s\n" "$as_me: exit $exit_status"
2460  } >&5
2461  rm -f core *.core core.conftest.* &&
2462    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2463    exit $exit_status
2464' 0
2465for ac_signal in 1 2 13 15; do
2466  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2467done
2468ac_signal=0
2469
2470# confdefs.h avoids OS command line length limits that DEFS can exceed.
2471rm -f -r conftest* confdefs.h
2472
2473printf "%s\n" "/* confdefs.h */" > confdefs.h
2474
2475# Predefined preprocessor variables.
2476
2477printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2478
2479printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2480
2481printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2482
2483printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2484
2485printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2486
2487printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2488
2489
2490# Let the site file select an alternate cache file if it wants to.
2491# Prefer an explicitly selected file to automatically selected ones.
2492if test -n "$CONFIG_SITE"; then
2493  ac_site_files="$CONFIG_SITE"
2494elif test "x$prefix" != xNONE; then
2495  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2496else
2497  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2498fi
2499
2500for ac_site_file in $ac_site_files
2501do
2502  case $ac_site_file in #(
2503  */*) :
2504     ;; #(
2505  *) :
2506    ac_site_file=./$ac_site_file ;;
2507esac
2508  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2511    sed 's/^/| /' "$ac_site_file" >&5
2512    . "$ac_site_file" \
2513      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2515as_fn_error $? "failed to load site script $ac_site_file
2516See \`config.log' for more details" "$LINENO" 5; }
2517  fi
2518done
2519
2520if test -r "$cache_file"; then
2521  # Some versions of bash will fail to source /dev/null (special files
2522  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2523  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2524    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2526    case $cache_file in
2527      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528      *)                      . "./$cache_file";;
2529    esac
2530  fi
2531else
2532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2534  >$cache_file
2535fi
2536
2537as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2538# Test code for whether the C compiler supports C89 (global declarations)
2539ac_c_conftest_c89_globals='
2540/* Does the compiler advertise C89 conformance?
2541   Do not test the value of __STDC__, because some compilers set it to 0
2542   while being otherwise adequately conformant. */
2543#if !defined __STDC__
2544# error "Compiler does not advertise C89 conformance"
2545#endif
2546
2547#include <stddef.h>
2548#include <stdarg.h>
2549struct stat;
2550/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2551struct buf { int x; };
2552struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not \xHH hex character constants.
2571   These do not provoke an error unfortunately, instead are silently treated
2572   as an "x".  The following induces an error, until -std is added to get
2573   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2574   array size at least.  It is necessary to write \x00 == 0 to get something
2575   that is true only with -std.  */
2576int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2577
2578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2579   inside strings and character constants.  */
2580#define FOO(x) '\''x'\''
2581int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2582
2583int test (int i, double x);
2584struct s1 {int (*f) (int a);};
2585struct s2 {int (*f) (double a);};
2586int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2587               int, int);'
2588
2589# Test code for whether the C compiler supports C89 (body of main).
2590ac_c_conftest_c89_main='
2591ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2592'
2593
2594# Test code for whether the C compiler supports C99 (global declarations)
2595ac_c_conftest_c99_globals='
2596// Does the compiler advertise C99 conformance?
2597#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2598# error "Compiler does not advertise C99 conformance"
2599#endif
2600
2601#include <stdbool.h>
2602extern int puts (const char *);
2603extern int printf (const char *, ...);
2604extern int dprintf (int, const char *, ...);
2605extern void *malloc (size_t);
2606
2607// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2608// dprintf is used instead of fprintf to avoid needing to declare
2609// FILE and stderr.
2610#define debug(...) dprintf (2, __VA_ARGS__)
2611#define showlist(...) puts (#__VA_ARGS__)
2612#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2613static void
2614test_varargs_macros (void)
2615{
2616  int x = 1234;
2617  int y = 5678;
2618  debug ("Flag");
2619  debug ("X = %d\n", x);
2620  showlist (The first, second, and third items.);
2621  report (x>y, "x is %d but y is %d", x, y);
2622}
2623
2624// Check long long types.
2625#define BIG64 18446744073709551615ull
2626#define BIG32 4294967295ul
2627#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2628#if !BIG_OK
2629  #error "your preprocessor is broken"
2630#endif
2631#if BIG_OK
2632#else
2633  #error "your preprocessor is broken"
2634#endif
2635static long long int bignum = -9223372036854775807LL;
2636static unsigned long long int ubignum = BIG64;
2637
2638struct incomplete_array
2639{
2640  int datasize;
2641  double data[];
2642};
2643
2644struct named_init {
2645  int number;
2646  const wchar_t *name;
2647  double average;
2648};
2649
2650typedef const char *ccp;
2651
2652static inline int
2653test_restrict (ccp restrict text)
2654{
2655  // See if C++-style comments work.
2656  // Iterate through items via the restricted pointer.
2657  // Also check for declarations in for loops.
2658  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2659    continue;
2660  return 0;
2661}
2662
2663// Check varargs and va_copy.
2664static bool
2665test_varargs (const char *format, ...)
2666{
2667  va_list args;
2668  va_start (args, format);
2669  va_list args_copy;
2670  va_copy (args_copy, args);
2671
2672  const char *str = "";
2673  int number = 0;
2674  float fnumber = 0;
2675
2676  while (*format)
2677    {
2678      switch (*format++)
2679	{
2680	case '\''s'\'': // string
2681	  str = va_arg (args_copy, const char *);
2682	  break;
2683	case '\''d'\'': // int
2684	  number = va_arg (args_copy, int);
2685	  break;
2686	case '\''f'\'': // float
2687	  fnumber = va_arg (args_copy, double);
2688	  break;
2689	default:
2690	  break;
2691	}
2692    }
2693  va_end (args_copy);
2694  va_end (args);
2695
2696  return *str && number && fnumber;
2697}
2698'
2699
2700# Test code for whether the C compiler supports C99 (body of main).
2701ac_c_conftest_c99_main='
2702  // Check bool.
2703  _Bool success = false;
2704  success |= (argc != 0);
2705
2706  // Check restrict.
2707  if (test_restrict ("String literal") == 0)
2708    success = true;
2709  char *restrict newvar = "Another string";
2710
2711  // Check varargs.
2712  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2713  test_varargs_macros ();
2714
2715  // Check flexible array members.
2716  struct incomplete_array *ia =
2717    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2718  ia->datasize = 10;
2719  for (int i = 0; i < ia->datasize; ++i)
2720    ia->data[i] = i * 1.234;
2721
2722  // Check named initializers.
2723  struct named_init ni = {
2724    .number = 34,
2725    .name = L"Test wide string",
2726    .average = 543.34343,
2727  };
2728
2729  ni.number = 58;
2730
2731  int dynamic_array[ni.number];
2732  dynamic_array[0] = argv[0][0];
2733  dynamic_array[ni.number - 1] = 543;
2734
2735  // work around unused variable warnings
2736  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2737	 || dynamic_array[ni.number - 1] != 543);
2738'
2739
2740# Test code for whether the C compiler supports C11 (global declarations)
2741ac_c_conftest_c11_globals='
2742// Does the compiler advertise C11 conformance?
2743#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2744# error "Compiler does not advertise C11 conformance"
2745#endif
2746
2747// Check _Alignas.
2748char _Alignas (double) aligned_as_double;
2749char _Alignas (0) no_special_alignment;
2750extern char aligned_as_int;
2751char _Alignas (0) _Alignas (int) aligned_as_int;
2752
2753// Check _Alignof.
2754enum
2755{
2756  int_alignment = _Alignof (int),
2757  int_array_alignment = _Alignof (int[100]),
2758  char_alignment = _Alignof (char)
2759};
2760_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2761
2762// Check _Noreturn.
2763int _Noreturn does_not_return (void) { for (;;) continue; }
2764
2765// Check _Static_assert.
2766struct test_static_assert
2767{
2768  int x;
2769  _Static_assert (sizeof (int) <= sizeof (long int),
2770                  "_Static_assert does not work in struct");
2771  long int y;
2772};
2773
2774// Check UTF-8 literals.
2775#define u8 syntax error!
2776char const utf8_literal[] = u8"happens to be ASCII" "another string";
2777
2778// Check duplicate typedefs.
2779typedef long *long_ptr;
2780typedef long int *long_ptr;
2781typedef long_ptr long_ptr;
2782
2783// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2784struct anonymous
2785{
2786  union {
2787    struct { int i; int j; };
2788    struct { int k; long int l; } w;
2789  };
2790  int m;
2791} v1;
2792'
2793
2794# Test code for whether the C compiler supports C11 (body of main).
2795ac_c_conftest_c11_main='
2796  _Static_assert ((offsetof (struct anonymous, i)
2797		   == offsetof (struct anonymous, w.k)),
2798		  "Anonymous union alignment botch");
2799  v1.i = 2;
2800  v1.w.k = 5;
2801  ok |= v1.i != 5;
2802'
2803
2804# Test code for whether the C compiler supports C11 (complete).
2805ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2806${ac_c_conftest_c99_globals}
2807${ac_c_conftest_c11_globals}
2808
2809int
2810main (int argc, char **argv)
2811{
2812  int ok = 0;
2813  ${ac_c_conftest_c89_main}
2814  ${ac_c_conftest_c99_main}
2815  ${ac_c_conftest_c11_main}
2816  return ok;
2817}
2818"
2819
2820# Test code for whether the C compiler supports C99 (complete).
2821ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2822${ac_c_conftest_c99_globals}
2823
2824int
2825main (int argc, char **argv)
2826{
2827  int ok = 0;
2828  ${ac_c_conftest_c89_main}
2829  ${ac_c_conftest_c99_main}
2830  return ok;
2831}
2832"
2833
2834# Test code for whether the C compiler supports C89 (complete).
2835ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2836
2837int
2838main (int argc, char **argv)
2839{
2840  int ok = 0;
2841  ${ac_c_conftest_c89_main}
2842  return ok;
2843}
2844"
2845
2846as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2847as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2848as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2849as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2850as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2851as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2852as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2853as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2854as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2855as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2856as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2857as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2858
2859# Auxiliary files required by this configure script.
2860ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2861
2862# Locations in which to look for auxiliary files.
2863ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2864
2865# Search for a directory containing all of the required auxiliary files,
2866# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2867# If we don't find one directory that contains all the files we need,
2868# we report the set of missing files from the *first* directory in
2869# $ac_aux_dir_candidates and give up.
2870ac_missing_aux_files=""
2871ac_first_candidate=:
2872printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874as_found=false
2875for as_dir in $ac_aux_dir_candidates
2876do
2877  IFS=$as_save_IFS
2878  case $as_dir in #(((
2879    '') as_dir=./ ;;
2880    */) ;;
2881    *) as_dir=$as_dir/ ;;
2882  esac
2883  as_found=:
2884
2885  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2886  ac_aux_dir_found=yes
2887  ac_install_sh=
2888  for ac_aux in $ac_aux_files
2889  do
2890    # As a special case, if "install-sh" is required, that requirement
2891    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2892    # and $ac_install_sh is set appropriately for whichever one is found.
2893    if test x"$ac_aux" = x"install-sh"
2894    then
2895      if test -f "${as_dir}install-sh"; then
2896        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2897        ac_install_sh="${as_dir}install-sh -c"
2898      elif test -f "${as_dir}install.sh"; then
2899        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2900        ac_install_sh="${as_dir}install.sh -c"
2901      elif test -f "${as_dir}shtool"; then
2902        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2903        ac_install_sh="${as_dir}shtool install -c"
2904      else
2905        ac_aux_dir_found=no
2906        if $ac_first_candidate; then
2907          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2908        else
2909          break
2910        fi
2911      fi
2912    else
2913      if test -f "${as_dir}${ac_aux}"; then
2914        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2915      else
2916        ac_aux_dir_found=no
2917        if $ac_first_candidate; then
2918          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2919        else
2920          break
2921        fi
2922      fi
2923    fi
2924  done
2925  if test "$ac_aux_dir_found" = yes; then
2926    ac_aux_dir="$as_dir"
2927    break
2928  fi
2929  ac_first_candidate=false
2930
2931  as_found=false
2932done
2933IFS=$as_save_IFS
2934if $as_found
2935then :
2936
2937else $as_nop
2938  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2939fi
2940
2941
2942# These three variables are undocumented and unsupported,
2943# and are intended to be withdrawn in a future Autoconf release.
2944# They can cause serious problems if a builder's source tree is in a directory
2945# whose full name contains unusual characters.
2946if test -f "${ac_aux_dir}config.guess"; then
2947  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2948fi
2949if test -f "${ac_aux_dir}config.sub"; then
2950  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2951fi
2952if test -f "$ac_aux_dir/configure"; then
2953  ac_configure="$SHELL ${ac_aux_dir}configure"
2954fi
2955
2956# Check that the precious variables saved in the cache have kept the same
2957# value.
2958ac_cache_corrupted=false
2959for ac_var in $ac_precious_vars; do
2960  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2961  eval ac_new_set=\$ac_env_${ac_var}_set
2962  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2963  eval ac_new_val=\$ac_env_${ac_var}_value
2964  case $ac_old_set,$ac_new_set in
2965    set,)
2966      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2967printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2968      ac_cache_corrupted=: ;;
2969    ,set)
2970      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2971printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2972      ac_cache_corrupted=: ;;
2973    ,);;
2974    *)
2975      if test "x$ac_old_val" != "x$ac_new_val"; then
2976	# differences in whitespace do not lead to failure.
2977	ac_old_val_w=`echo x $ac_old_val`
2978	ac_new_val_w=`echo x $ac_new_val`
2979	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2980	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2981printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2982	  ac_cache_corrupted=:
2983	else
2984	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2985printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2986	  eval $ac_var=\$ac_old_val
2987	fi
2988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2989printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2991printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2992      fi;;
2993  esac
2994  # Pass precious variables to config.status.
2995  if test "$ac_new_set" = set; then
2996    case $ac_new_val in
2997    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2998    *) ac_arg=$ac_var=$ac_new_val ;;
2999    esac
3000    case " $ac_configure_args " in
3001      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3002      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3003    esac
3004  fi
3005done
3006if $ac_cache_corrupted; then
3007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3010printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3011  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3012	    and start over" "$LINENO" 5
3013fi
3014## -------------------- ##
3015## Main body of script. ##
3016## -------------------- ##
3017
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025
3026ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3027
3028
3029
3030
3031
3032  # Make sure we can run config.sub.
3033$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3034  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3035
3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3037printf %s "checking build system type... " >&6; }
3038if test ${ac_cv_build+y}
3039then :
3040  printf %s "(cached) " >&6
3041else $as_nop
3042  ac_build_alias=$build_alias
3043test "x$ac_build_alias" = x &&
3044  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3045test "x$ac_build_alias" = x &&
3046  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3047ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3048  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3049
3050fi
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3052printf "%s\n" "$ac_cv_build" >&6; }
3053case $ac_cv_build in
3054*-*-*) ;;
3055*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3056esac
3057build=$ac_cv_build
3058ac_save_IFS=$IFS; IFS='-'
3059set x $ac_cv_build
3060shift
3061build_cpu=$1
3062build_vendor=$2
3063shift; shift
3064# Remember, the first character of IFS is used to create $*,
3065# except with old shells:
3066build_os=$*
3067IFS=$ac_save_IFS
3068case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3069
3070
3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3072printf %s "checking host system type... " >&6; }
3073if test ${ac_cv_host+y}
3074then :
3075  printf %s "(cached) " >&6
3076else $as_nop
3077  if test "x$host_alias" = x; then
3078  ac_cv_host=$ac_cv_build
3079else
3080  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3081    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3082fi
3083
3084fi
3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3086printf "%s\n" "$ac_cv_host" >&6; }
3087case $ac_cv_host in
3088*-*-*) ;;
3089*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3090esac
3091host=$ac_cv_host
3092ac_save_IFS=$IFS; IFS='-'
3093set x $ac_cv_host
3094shift
3095host_cpu=$1
3096host_vendor=$2
3097shift; shift
3098# Remember, the first character of IFS is used to create $*,
3099# except with old shells:
3100host_os=$*
3101IFS=$ac_save_IFS
3102case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3103
3104
3105# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3106# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3107# to avoid autoconf errors.
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118# Expand $ac_aux_dir to an absolute path.
3119am_aux_dir=`cd "$ac_aux_dir" && pwd`
3120
3121ac_ext=c
3122ac_cpp='$CPP $CPPFLAGS'
3123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126if test -n "$ac_tool_prefix"; then
3127  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3128set dummy ${ac_tool_prefix}gcc; ac_word=$2
3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130printf %s "checking for $ac_word... " >&6; }
3131if test ${ac_cv_prog_CC+y}
3132then :
3133  printf %s "(cached) " >&6
3134else $as_nop
3135  if test -n "$CC"; then
3136  ac_cv_prog_CC="$CC" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141  IFS=$as_save_IFS
3142  case $as_dir in #(((
3143    '') as_dir=./ ;;
3144    */) ;;
3145    *) as_dir=$as_dir/ ;;
3146  esac
3147    for ac_exec_ext in '' $ac_executable_extensions; do
3148  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3149    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3150    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3151    break 2
3152  fi
3153done
3154  done
3155IFS=$as_save_IFS
3156
3157fi
3158fi
3159CC=$ac_cv_prog_CC
3160if test -n "$CC"; then
3161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162printf "%s\n" "$CC" >&6; }
3163else
3164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165printf "%s\n" "no" >&6; }
3166fi
3167
3168
3169fi
3170if test -z "$ac_cv_prog_CC"; then
3171  ac_ct_CC=$CC
3172  # Extract the first word of "gcc", so it can be a program name with args.
3173set dummy gcc; ac_word=$2
3174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175printf %s "checking for $ac_word... " >&6; }
3176if test ${ac_cv_prog_ac_ct_CC+y}
3177then :
3178  printf %s "(cached) " >&6
3179else $as_nop
3180  if test -n "$ac_ct_CC"; then
3181  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  case $as_dir in #(((
3188    '') as_dir=./ ;;
3189    */) ;;
3190    *) as_dir=$as_dir/ ;;
3191  esac
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3194    ac_cv_prog_ac_ct_CC="gcc"
3195    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
3206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207printf "%s\n" "$ac_ct_CC" >&6; }
3208else
3209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210printf "%s\n" "no" >&6; }
3211fi
3212
3213  if test "x$ac_ct_CC" = x; then
3214    CC=""
3215  else
3216    case $cross_compiling:$ac_tool_warned in
3217yes:)
3218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220ac_tool_warned=yes ;;
3221esac
3222    CC=$ac_ct_CC
3223  fi
3224else
3225  CC="$ac_cv_prog_CC"
3226fi
3227
3228if test -z "$CC"; then
3229          if test -n "$ac_tool_prefix"; then
3230    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231set dummy ${ac_tool_prefix}cc; ac_word=$2
3232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233printf %s "checking for $ac_word... " >&6; }
3234if test ${ac_cv_prog_CC+y}
3235then :
3236  printf %s "(cached) " >&6
3237else $as_nop
3238  if test -n "$CC"; then
3239  ac_cv_prog_CC="$CC" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  case $as_dir in #(((
3246    '') as_dir=./ ;;
3247    */) ;;
3248    *) as_dir=$as_dir/ ;;
3249  esac
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3252    ac_cv_prog_CC="${ac_tool_prefix}cc"
3253    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257  done
3258IFS=$as_save_IFS
3259
3260fi
3261fi
3262CC=$ac_cv_prog_CC
3263if test -n "$CC"; then
3264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265printf "%s\n" "$CC" >&6; }
3266else
3267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268printf "%s\n" "no" >&6; }
3269fi
3270
3271
3272  fi
3273fi
3274if test -z "$CC"; then
3275  # Extract the first word of "cc", so it can be a program name with args.
3276set dummy cc; ac_word=$2
3277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278printf %s "checking for $ac_word... " >&6; }
3279if test ${ac_cv_prog_CC+y}
3280then :
3281  printf %s "(cached) " >&6
3282else $as_nop
3283  if test -n "$CC"; then
3284  ac_cv_prog_CC="$CC" # Let the user override the test.
3285else
3286  ac_prog_rejected=no
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  case $as_dir in #(((
3292    '') as_dir=./ ;;
3293    */) ;;
3294    *) as_dir=$as_dir/ ;;
3295  esac
3296    for ac_exec_ext in '' $ac_executable_extensions; do
3297  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3298    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299       ac_prog_rejected=yes
3300       continue
3301     fi
3302    ac_cv_prog_CC="cc"
3303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310if test $ac_prog_rejected = yes; then
3311  # We found a bogon in the path, so make sure we never use it.
3312  set dummy $ac_cv_prog_CC
3313  shift
3314  if test $# != 0; then
3315    # We chose a different compiler from the bogus one.
3316    # However, it has the same basename, so the bogon will be chosen
3317    # first if we set CC to just the basename; use the full file name.
3318    shift
3319    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3320  fi
3321fi
3322fi
3323fi
3324CC=$ac_cv_prog_CC
3325if test -n "$CC"; then
3326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327printf "%s\n" "$CC" >&6; }
3328else
3329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330printf "%s\n" "no" >&6; }
3331fi
3332
3333
3334fi
3335if test -z "$CC"; then
3336  if test -n "$ac_tool_prefix"; then
3337  for ac_prog in cl.exe
3338  do
3339    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342printf %s "checking for $ac_word... " >&6; }
3343if test ${ac_cv_prog_CC+y}
3344then :
3345  printf %s "(cached) " >&6
3346else $as_nop
3347  if test -n "$CC"; then
3348  ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353  IFS=$as_save_IFS
3354  case $as_dir in #(((
3355    '') as_dir=./ ;;
3356    */) ;;
3357    *) as_dir=$as_dir/ ;;
3358  esac
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3361    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3363    break 2
3364  fi
3365done
3366  done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374printf "%s\n" "$CC" >&6; }
3375else
3376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377printf "%s\n" "no" >&6; }
3378fi
3379
3380
3381    test -n "$CC" && break
3382  done
3383fi
3384if test -z "$CC"; then
3385  ac_ct_CC=$CC
3386  for ac_prog in cl.exe
3387do
3388  # Extract the first word of "$ac_prog", so it can be a program name with args.
3389set dummy $ac_prog; ac_word=$2
3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391printf %s "checking for $ac_word... " >&6; }
3392if test ${ac_cv_prog_ac_ct_CC+y}
3393then :
3394  printf %s "(cached) " >&6
3395else $as_nop
3396  if test -n "$ac_ct_CC"; then
3397  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402  IFS=$as_save_IFS
3403  case $as_dir in #(((
3404    '') as_dir=./ ;;
3405    */) ;;
3406    *) as_dir=$as_dir/ ;;
3407  esac
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410    ac_cv_prog_ac_ct_CC="$ac_prog"
3411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415  done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421if test -n "$ac_ct_CC"; then
3422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3423printf "%s\n" "$ac_ct_CC" >&6; }
3424else
3425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426printf "%s\n" "no" >&6; }
3427fi
3428
3429
3430  test -n "$ac_ct_CC" && break
3431done
3432
3433  if test "x$ac_ct_CC" = x; then
3434    CC=""
3435  else
3436    case $cross_compiling:$ac_tool_warned in
3437yes:)
3438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440ac_tool_warned=yes ;;
3441esac
3442    CC=$ac_ct_CC
3443  fi
3444fi
3445
3446fi
3447if test -z "$CC"; then
3448  if test -n "$ac_tool_prefix"; then
3449  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3450set dummy ${ac_tool_prefix}clang; ac_word=$2
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452printf %s "checking for $ac_word... " >&6; }
3453if test ${ac_cv_prog_CC+y}
3454then :
3455  printf %s "(cached) " >&6
3456else $as_nop
3457  if test -n "$CC"; then
3458  ac_cv_prog_CC="$CC" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463  IFS=$as_save_IFS
3464  case $as_dir in #(((
3465    '') as_dir=./ ;;
3466    */) ;;
3467    *) as_dir=$as_dir/ ;;
3468  esac
3469    for ac_exec_ext in '' $ac_executable_extensions; do
3470  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3471    ac_cv_prog_CC="${ac_tool_prefix}clang"
3472    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473    break 2
3474  fi
3475done
3476  done
3477IFS=$as_save_IFS
3478
3479fi
3480fi
3481CC=$ac_cv_prog_CC
3482if test -n "$CC"; then
3483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484printf "%s\n" "$CC" >&6; }
3485else
3486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487printf "%s\n" "no" >&6; }
3488fi
3489
3490
3491fi
3492if test -z "$ac_cv_prog_CC"; then
3493  ac_ct_CC=$CC
3494  # Extract the first word of "clang", so it can be a program name with args.
3495set dummy clang; ac_word=$2
3496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497printf %s "checking for $ac_word... " >&6; }
3498if test ${ac_cv_prog_ac_ct_CC+y}
3499then :
3500  printf %s "(cached) " >&6
3501else $as_nop
3502  if test -n "$ac_ct_CC"; then
3503  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508  IFS=$as_save_IFS
3509  case $as_dir in #(((
3510    '') as_dir=./ ;;
3511    */) ;;
3512    *) as_dir=$as_dir/ ;;
3513  esac
3514    for ac_exec_ext in '' $ac_executable_extensions; do
3515  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516    ac_cv_prog_ac_ct_CC="clang"
3517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518    break 2
3519  fi
3520done
3521  done
3522IFS=$as_save_IFS
3523
3524fi
3525fi
3526ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527if test -n "$ac_ct_CC"; then
3528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529printf "%s\n" "$ac_ct_CC" >&6; }
3530else
3531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532printf "%s\n" "no" >&6; }
3533fi
3534
3535  if test "x$ac_ct_CC" = x; then
3536    CC=""
3537  else
3538    case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544    CC=$ac_ct_CC
3545  fi
3546else
3547  CC="$ac_cv_prog_CC"
3548fi
3549
3550fi
3551
3552
3553test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error $? "no acceptable C compiler found in \$PATH
3556See \`config.log' for more details" "$LINENO" 5; }
3557
3558# Provide some information about the compiler.
3559printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560set X $ac_compile
3561ac_compiler=$2
3562for ac_option in --version -v -V -qversion -version; do
3563  { { ac_try="$ac_compiler $ac_option >&5"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569printf "%s\n" "$ac_try_echo"; } >&5
3570  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571  ac_status=$?
3572  if test -s conftest.err; then
3573    sed '10a\
3574... rest of stderr output deleted ...
3575         10q' conftest.err >conftest.er1
3576    cat conftest.er1 >&5
3577  fi
3578  rm -f conftest.er1 conftest.err
3579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }
3581done
3582
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main (void)
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594ac_clean_files_save=$ac_clean_files
3595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596# Try to create an executable without -o first, disregard a.out.
3597# It will help us diagnose broken compilers, and finding out an intuition
3598# of exeext.
3599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600printf %s "checking whether the C compiler works... " >&6; }
3601ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602
3603# The possible output files:
3604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3605
3606ac_rmfiles=
3607for ac_file in $ac_files
3608do
3609  case $ac_file in
3610    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612  esac
3613done
3614rm -f $ac_rmfiles
3615
3616if { { ac_try="$ac_link_default"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622printf "%s\n" "$ac_try_echo"; } >&5
3623  (eval "$ac_link_default") 2>&5
3624  ac_status=$?
3625  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }
3627then :
3628  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3631# so that the user can short-circuit this test for compilers unknown to
3632# Autoconf.
3633for ac_file in $ac_files ''
3634do
3635  test -f "$ac_file" || continue
3636  case $ac_file in
3637    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638	;;
3639    [ab].out )
3640	# We found the default executable, but exeext='' is most
3641	# certainly right.
3642	break;;
3643    *.* )
3644	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3645	then :; else
3646	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647	fi
3648	# We set ac_cv_exeext here because the later test for it is not
3649	# safe: cross compilers may not add the suffix if given an `-o'
3650	# argument, so we may need to know it at that point already.
3651	# Even if this section looks crufty: it has the advantage of
3652	# actually working.
3653	break;;
3654    * )
3655	break;;
3656  esac
3657done
3658test "$ac_cv_exeext" = no && ac_cv_exeext=
3659
3660else $as_nop
3661  ac_file=''
3662fi
3663if test -z "$ac_file"
3664then :
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666printf "%s\n" "no" >&6; }
3667printf "%s\n" "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3672as_fn_error 77 "C compiler cannot create executables
3673See \`config.log' for more details" "$LINENO" 5; }
3674else $as_nop
3675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676printf "%s\n" "yes" >&6; }
3677fi
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679printf %s "checking for C compiler default output file name... " >&6; }
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681printf "%s\n" "$ac_file" >&6; }
3682ac_exeext=$ac_cv_exeext
3683
3684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685ac_clean_files=$ac_clean_files_save
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687printf %s "checking for suffix of executables... " >&6; }
3688if { { ac_try="$ac_link"
3689case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694printf "%s\n" "$ac_try_echo"; } >&5
3695  (eval "$ac_link") 2>&5
3696  ac_status=$?
3697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698  test $ac_status = 0; }
3699then :
3700  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3702# work properly (i.e., refer to `conftest.exe'), while it won't with
3703# `rm'.
3704for ac_file in conftest.exe conftest conftest.*; do
3705  test -f "$ac_file" || continue
3706  case $ac_file in
3707    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709	  break;;
3710    * ) break;;
3711  esac
3712done
3713else $as_nop
3714  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717See \`config.log' for more details" "$LINENO" 5; }
3718fi
3719rm -f conftest conftest$ac_cv_exeext
3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721printf "%s\n" "$ac_cv_exeext" >&6; }
3722
3723rm -f conftest.$ac_ext
3724EXEEXT=$ac_cv_exeext
3725ac_exeext=$EXEEXT
3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h.  */
3728#include <stdio.h>
3729int
3730main (void)
3731{
3732FILE *f = fopen ("conftest.out", "w");
3733 return ferror (f) || fclose (f) != 0;
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739ac_clean_files="$ac_clean_files conftest.out"
3740# Check that the compiler produces executables we can run.  If not, either
3741# the compiler is broken, or we cross compile.
3742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743printf %s "checking whether we are cross compiling... " >&6; }
3744if test "$cross_compiling" != yes; then
3745  { { ac_try="$ac_link"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751printf "%s\n" "$ac_try_echo"; } >&5
3752  (eval "$ac_link") 2>&5
3753  ac_status=$?
3754  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755  test $ac_status = 0; }
3756  if { ac_try='./conftest$ac_cv_exeext'
3757  { { case "(($ac_try" in
3758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759  *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762printf "%s\n" "$ac_try_echo"; } >&5
3763  (eval "$ac_try") 2>&5
3764  ac_status=$?
3765  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766  test $ac_status = 0; }; }; then
3767    cross_compiling=no
3768  else
3769    if test "$cross_compiling" = maybe; then
3770	cross_compiling=yes
3771    else
3772	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3774as_fn_error 77 "cannot run C compiled programs.
3775If you meant to cross compile, use \`--host'.
3776See \`config.log' for more details" "$LINENO" 5; }
3777    fi
3778  fi
3779fi
3780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781printf "%s\n" "$cross_compiling" >&6; }
3782
3783rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784ac_clean_files=$ac_clean_files_save
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786printf %s "checking for suffix of object files... " >&6; }
3787if test ${ac_cv_objext+y}
3788then :
3789  printf %s "(cached) " >&6
3790else $as_nop
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793
3794int
3795main (void)
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802rm -f conftest.o conftest.obj
3803if { { ac_try="$ac_compile"
3804case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809printf "%s\n" "$ac_try_echo"; } >&5
3810  (eval "$ac_compile") 2>&5
3811  ac_status=$?
3812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }
3814then :
3815  for ac_file in conftest.o conftest.obj conftest.*; do
3816  test -f "$ac_file" || continue;
3817  case $ac_file in
3818    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820       break;;
3821  esac
3822done
3823else $as_nop
3824  printf "%s\n" "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error $? "cannot compute suffix of object files: cannot compile
3830See \`config.log' for more details" "$LINENO" 5; }
3831fi
3832rm -f conftest.$ac_cv_objext conftest.$ac_ext
3833fi
3834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835printf "%s\n" "$ac_cv_objext" >&6; }
3836OBJEXT=$ac_cv_objext
3837ac_objext=$OBJEXT
3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3839printf %s "checking whether the compiler supports GNU C... " >&6; }
3840if test ${ac_cv_c_compiler_gnu+y}
3841then :
3842  printf %s "(cached) " >&6
3843else $as_nop
3844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847int
3848main (void)
3849{
3850#ifndef __GNUC__
3851       choke me
3852#endif
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"
3859then :
3860  ac_compiler_gnu=yes
3861else $as_nop
3862  ac_compiler_gnu=no
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3865ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866
3867fi
3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3869printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3870ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
3872if test $ac_compiler_gnu = yes; then
3873  GCC=yes
3874else
3875  GCC=
3876fi
3877ac_test_CFLAGS=${CFLAGS+y}
3878ac_save_CFLAGS=$CFLAGS
3879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3880printf %s "checking whether $CC accepts -g... " >&6; }
3881if test ${ac_cv_prog_cc_g+y}
3882then :
3883  printf %s "(cached) " >&6
3884else $as_nop
3885  ac_save_c_werror_flag=$ac_c_werror_flag
3886   ac_c_werror_flag=yes
3887   ac_cv_prog_cc_g=no
3888   CFLAGS="-g"
3889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main (void)
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"
3901then :
3902  ac_cv_prog_cc_g=yes
3903else $as_nop
3904  CFLAGS=""
3905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907
3908int
3909main (void)
3910{
3911
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"
3917then :
3918
3919else $as_nop
3920  ac_c_werror_flag=$ac_save_c_werror_flag
3921	 CFLAGS="-g"
3922	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924
3925int
3926main (void)
3927{
3928
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933if ac_fn_c_try_compile "$LINENO"
3934then :
3935  ac_cv_prog_cc_g=yes
3936fi
3937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3938fi
3939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3940fi
3941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3942   ac_c_werror_flag=$ac_save_c_werror_flag
3943fi
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3945printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3946if test $ac_test_CFLAGS; then
3947  CFLAGS=$ac_save_CFLAGS
3948elif test $ac_cv_prog_cc_g = yes; then
3949  if test "$GCC" = yes; then
3950    CFLAGS="-g -O2"
3951  else
3952    CFLAGS="-g"
3953  fi
3954else
3955  if test "$GCC" = yes; then
3956    CFLAGS="-O2"
3957  else
3958    CFLAGS=
3959  fi
3960fi
3961ac_prog_cc_stdc=no
3962if test x$ac_prog_cc_stdc = xno
3963then :
3964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3965printf %s "checking for $CC option to enable C11 features... " >&6; }
3966if test ${ac_cv_prog_cc_c11+y}
3967then :
3968  printf %s "(cached) " >&6
3969else $as_nop
3970  ac_cv_prog_cc_c11=no
3971ac_save_CC=$CC
3972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h.  */
3974$ac_c_conftest_c11_program
3975_ACEOF
3976for ac_arg in '' -std=gnu11
3977do
3978  CC="$ac_save_CC $ac_arg"
3979  if ac_fn_c_try_compile "$LINENO"
3980then :
3981  ac_cv_prog_cc_c11=$ac_arg
3982fi
3983rm -f core conftest.err conftest.$ac_objext conftest.beam
3984  test "x$ac_cv_prog_cc_c11" != "xno" && break
3985done
3986rm -f conftest.$ac_ext
3987CC=$ac_save_CC
3988fi
3989
3990if test "x$ac_cv_prog_cc_c11" = xno
3991then :
3992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993printf "%s\n" "unsupported" >&6; }
3994else $as_nop
3995  if test "x$ac_cv_prog_cc_c11" = x
3996then :
3997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998printf "%s\n" "none needed" >&6; }
3999else $as_nop
4000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4001printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4002     CC="$CC $ac_cv_prog_cc_c11"
4003fi
4004  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4005  ac_prog_cc_stdc=c11
4006fi
4007fi
4008if test x$ac_prog_cc_stdc = xno
4009then :
4010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4011printf %s "checking for $CC option to enable C99 features... " >&6; }
4012if test ${ac_cv_prog_cc_c99+y}
4013then :
4014  printf %s "(cached) " >&6
4015else $as_nop
4016  ac_cv_prog_cc_c99=no
4017ac_save_CC=$CC
4018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h.  */
4020$ac_c_conftest_c99_program
4021_ACEOF
4022for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4023do
4024  CC="$ac_save_CC $ac_arg"
4025  if ac_fn_c_try_compile "$LINENO"
4026then :
4027  ac_cv_prog_cc_c99=$ac_arg
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.beam
4030  test "x$ac_cv_prog_cc_c99" != "xno" && break
4031done
4032rm -f conftest.$ac_ext
4033CC=$ac_save_CC
4034fi
4035
4036if test "x$ac_cv_prog_cc_c99" = xno
4037then :
4038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039printf "%s\n" "unsupported" >&6; }
4040else $as_nop
4041  if test "x$ac_cv_prog_cc_c99" = x
4042then :
4043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044printf "%s\n" "none needed" >&6; }
4045else $as_nop
4046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4047printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4048     CC="$CC $ac_cv_prog_cc_c99"
4049fi
4050  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4051  ac_prog_cc_stdc=c99
4052fi
4053fi
4054if test x$ac_prog_cc_stdc = xno
4055then :
4056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4057printf %s "checking for $CC option to enable C89 features... " >&6; }
4058if test ${ac_cv_prog_cc_c89+y}
4059then :
4060  printf %s "(cached) " >&6
4061else $as_nop
4062  ac_cv_prog_cc_c89=no
4063ac_save_CC=$CC
4064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066$ac_c_conftest_c89_program
4067_ACEOF
4068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4069do
4070  CC="$ac_save_CC $ac_arg"
4071  if ac_fn_c_try_compile "$LINENO"
4072then :
4073  ac_cv_prog_cc_c89=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam
4076  test "x$ac_cv_prog_cc_c89" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080fi
4081
4082if test "x$ac_cv_prog_cc_c89" = xno
4083then :
4084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085printf "%s\n" "unsupported" >&6; }
4086else $as_nop
4087  if test "x$ac_cv_prog_cc_c89" = x
4088then :
4089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090printf "%s\n" "none needed" >&6; }
4091else $as_nop
4092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4094     CC="$CC $ac_cv_prog_cc_c89"
4095fi
4096  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4097  ac_prog_cc_stdc=c89
4098fi
4099fi
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108  ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4114printf %s "checking whether $CC understands -c and -o together... " >&6; }
4115if test ${am_cv_prog_cc_c_o+y}
4116then :
4117  printf %s "(cached) " >&6
4118else $as_nop
4119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121
4122int
4123main (void)
4124{
4125
4126  ;
4127  return 0;
4128}
4129_ACEOF
4130  # Make sure it works both with $CC and with simple cc.
4131  # Following AC_PROG_CC_C_O, we do the test twice because some
4132  # compilers refuse to overwrite an existing .o file with -o,
4133  # though they will create one.
4134  am_cv_prog_cc_c_o=yes
4135  for am_i in 1 2; do
4136    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4137   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); } \
4141         && test -f conftest2.$ac_objext; then
4142      : OK
4143    else
4144      am_cv_prog_cc_c_o=no
4145      break
4146    fi
4147  done
4148  rm -f core conftest*
4149  unset am_i
4150fi
4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4152printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4153if test "$am_cv_prog_cc_c_o" != yes; then
4154   # Losing compiler, so override with the script.
4155   # FIXME: It is wrong to rewrite CC.
4156   # But if we don't then we get into trouble of one sort or another.
4157   # A longer-term fix would be to have automake use am__CC in this case,
4158   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4159   CC="$am_aux_dir/compile $CC"
4160fi
4161ac_ext=c
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166
4167
4168
4169ac_header= ac_cache=
4170for ac_item in $ac_header_c_list
4171do
4172  if test $ac_cache; then
4173    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4174    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4175      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4176    fi
4177    ac_header= ac_cache=
4178  elif test $ac_header; then
4179    ac_cache=$ac_item
4180  else
4181    ac_header=$ac_item
4182  fi
4183done
4184
4185
4186
4187
4188
4189
4190
4191
4192if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4193then :
4194
4195printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4196
4197fi
4198
4199
4200
4201
4202
4203
4204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4205printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4206if test ${ac_cv_safe_to_define___extensions__+y}
4207then :
4208  printf %s "(cached) " >&6
4209else $as_nop
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212
4213#         define __EXTENSIONS__ 1
4214          $ac_includes_default
4215int
4216main (void)
4217{
4218
4219  ;
4220  return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"
4224then :
4225  ac_cv_safe_to_define___extensions__=yes
4226else $as_nop
4227  ac_cv_safe_to_define___extensions__=no
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4230fi
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4232printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4233
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4235printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4236if test ${ac_cv_should_define__xopen_source+y}
4237then :
4238  printf %s "(cached) " >&6
4239else $as_nop
4240  ac_cv_should_define__xopen_source=no
4241    if test $ac_cv_header_wchar_h = yes
4242then :
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245
4246          #include <wchar.h>
4247          mbstate_t x;
4248int
4249main (void)
4250{
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256if ac_fn_c_try_compile "$LINENO"
4257then :
4258
4259else $as_nop
4260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262
4263            #define _XOPEN_SOURCE 500
4264            #include <wchar.h>
4265            mbstate_t x;
4266int
4267main (void)
4268{
4269
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274if ac_fn_c_try_compile "$LINENO"
4275then :
4276  ac_cv_should_define__xopen_source=yes
4277fi
4278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4281fi
4282fi
4283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4284printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4285
4286  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4287
4288  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4289
4290  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4291
4292  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4293
4294  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4295
4296  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4297
4298  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4299
4300  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4301
4302  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4303
4304  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4305
4306  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4307
4308  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4309
4310  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4311
4312  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4313
4314  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4315
4316  if test $ac_cv_header_minix_config_h = yes
4317then :
4318  MINIX=yes
4319    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4320
4321    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4322
4323    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4324
4325else $as_nop
4326  MINIX=
4327fi
4328  if test $ac_cv_safe_to_define___extensions__ = yes
4329then :
4330  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4331
4332fi
4333  if test $ac_cv_should_define__xopen_source = yes
4334then :
4335  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4336
4337fi
4338
4339
4340# Initialize Automake
4341am__api_version='1.16'
4342
4343
4344  # Find a good install program.  We prefer a C program (faster),
4345# so one script is as good as another.  But avoid the broken or
4346# incompatible versions:
4347# SysV /etc/install, /usr/sbin/install
4348# SunOS /usr/etc/install
4349# IRIX /sbin/install
4350# AIX /bin/install
4351# AmigaOS /C/install, which installs bootblocks on floppy discs
4352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355# OS/2's system install, which has a completely different semantic
4356# ./install, which can be erroneously created by make from ./install.sh.
4357# Reject install programs that cannot install multiple files.
4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4359printf %s "checking for a BSD-compatible install... " >&6; }
4360if test -z "$INSTALL"; then
4361if test ${ac_cv_path_install+y}
4362then :
4363  printf %s "(cached) " >&6
4364else $as_nop
4365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368  IFS=$as_save_IFS
4369  case $as_dir in #(((
4370    '') as_dir=./ ;;
4371    */) ;;
4372    *) as_dir=$as_dir/ ;;
4373  esac
4374    # Account for fact that we put trailing slashes in our PATH walk.
4375case $as_dir in #((
4376  ./ | /[cC]/* | \
4377  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4378  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4379  /usr/ucb/* ) ;;
4380  *)
4381    # OSF1 and SCO ODT 3.0 have their own names for install.
4382    # Don't use installbsd from OSF since it installs stuff as root
4383    # by default.
4384    for ac_prog in ginstall scoinst install; do
4385      for ac_exec_ext in '' $ac_executable_extensions; do
4386	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4387	  if test $ac_prog = install &&
4388	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389	    # AIX install.  It has an incompatible calling convention.
4390	    :
4391	  elif test $ac_prog = install &&
4392	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4393	    # program-specific install script used by HP pwplus--don't use.
4394	    :
4395	  else
4396	    rm -rf conftest.one conftest.two conftest.dir
4397	    echo one > conftest.one
4398	    echo two > conftest.two
4399	    mkdir conftest.dir
4400	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4401	      test -s conftest.one && test -s conftest.two &&
4402	      test -s conftest.dir/conftest.one &&
4403	      test -s conftest.dir/conftest.two
4404	    then
4405	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4406	      break 3
4407	    fi
4408	  fi
4409	fi
4410      done
4411    done
4412    ;;
4413esac
4414
4415  done
4416IFS=$as_save_IFS
4417
4418rm -rf conftest.one conftest.two conftest.dir
4419
4420fi
4421  if test ${ac_cv_path_install+y}; then
4422    INSTALL=$ac_cv_path_install
4423  else
4424    # As a last resort, use the slow shell script.  Don't cache a
4425    # value for INSTALL within a source directory, because that will
4426    # break other packages using the cache if that directory is
4427    # removed, or if the value is a relative name.
4428    INSTALL=$ac_install_sh
4429  fi
4430fi
4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4432printf "%s\n" "$INSTALL" >&6; }
4433
4434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4435# It thinks the first close brace ends the variable substitution.
4436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4437
4438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4439
4440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4441
4442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4443printf %s "checking whether build environment is sane... " >&6; }
4444# Reject unsafe characters in $srcdir or the absolute working directory
4445# name.  Accept space and tab only in the latter.
4446am_lf='
4447'
4448case `pwd` in
4449  *[\\\"\#\$\&\'\`$am_lf]*)
4450    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4451esac
4452case $srcdir in
4453  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4454    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4455esac
4456
4457# Do 'set' in a subshell so we don't clobber the current shell's
4458# arguments.  Must try -L first in case configure is actually a
4459# symlink; some systems play weird games with the mod time of symlinks
4460# (eg FreeBSD returns the mod time of the symlink's containing
4461# directory).
4462if (
4463   am_has_slept=no
4464   for am_try in 1 2; do
4465     echo "timestamp, slept: $am_has_slept" > conftest.file
4466     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4467     if test "$*" = "X"; then
4468	# -L didn't work.
4469	set X `ls -t "$srcdir/configure" conftest.file`
4470     fi
4471     if test "$*" != "X $srcdir/configure conftest.file" \
4472	&& test "$*" != "X conftest.file $srcdir/configure"; then
4473
4474	# If neither matched, then we have a broken ls.  This can happen
4475	# if, for instance, CONFIG_SHELL is bash and it inherits a
4476	# broken ls alias from the environment.  This has actually
4477	# happened.  Such a system could not be considered "sane".
4478	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4479  alias in your environment" "$LINENO" 5
4480     fi
4481     if test "$2" = conftest.file || test $am_try -eq 2; then
4482       break
4483     fi
4484     # Just in case.
4485     sleep 1
4486     am_has_slept=yes
4487   done
4488   test "$2" = conftest.file
4489   )
4490then
4491   # Ok.
4492   :
4493else
4494   as_fn_error $? "newly created file is older than distributed files!
4495Check your system clock" "$LINENO" 5
4496fi
4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4498printf "%s\n" "yes" >&6; }
4499# If we didn't sleep, we still need to ensure time stamps of config.status and
4500# generated files are strictly newer.
4501am_sleep_pid=
4502if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4503  ( sleep 1 ) &
4504  am_sleep_pid=$!
4505fi
4506
4507rm -f conftest.file
4508
4509test "$program_prefix" != NONE &&
4510  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4511# Use a double $ so make ignores it.
4512test "$program_suffix" != NONE &&
4513  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4514# Double any \ or $.
4515# By default was `s,x,x', remove it if useless.
4516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4517program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4518
4519
4520  if test x"${MISSING+set}" != xset; then
4521  MISSING="\${SHELL} '$am_aux_dir/missing'"
4522fi
4523# Use eval to expand $SHELL
4524if eval "$MISSING --is-lightweight"; then
4525  am_missing_run="$MISSING "
4526else
4527  am_missing_run=
4528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4529printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4530fi
4531
4532if test x"${install_sh+set}" != xset; then
4533  case $am_aux_dir in
4534  *\ * | *\	*)
4535    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4536  *)
4537    install_sh="\${SHELL} $am_aux_dir/install-sh"
4538  esac
4539fi
4540
4541# Installed binaries are usually stripped using 'strip' when the user
4542# run "make install-strip".  However 'strip' might not be the right
4543# tool to use in cross-compilation environments, therefore Automake
4544# will honor the 'STRIP' environment variable to overrule this program.
4545if test "$cross_compiling" != no; then
4546  if test -n "$ac_tool_prefix"; then
4547  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4548set dummy ${ac_tool_prefix}strip; ac_word=$2
4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550printf %s "checking for $ac_word... " >&6; }
4551if test ${ac_cv_prog_STRIP+y}
4552then :
4553  printf %s "(cached) " >&6
4554else $as_nop
4555  if test -n "$STRIP"; then
4556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  case $as_dir in #(((
4563    '') as_dir=./ ;;
4564    */) ;;
4565    *) as_dir=$as_dir/ ;;
4566  esac
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4569    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579STRIP=$ac_cv_prog_STRIP
4580if test -n "$STRIP"; then
4581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4582printf "%s\n" "$STRIP" >&6; }
4583else
4584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585printf "%s\n" "no" >&6; }
4586fi
4587
4588
4589fi
4590if test -z "$ac_cv_prog_STRIP"; then
4591  ac_ct_STRIP=$STRIP
4592  # Extract the first word of "strip", so it can be a program name with args.
4593set dummy strip; ac_word=$2
4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595printf %s "checking for $ac_word... " >&6; }
4596if test ${ac_cv_prog_ac_ct_STRIP+y}
4597then :
4598  printf %s "(cached) " >&6
4599else $as_nop
4600  if test -n "$ac_ct_STRIP"; then
4601  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606  IFS=$as_save_IFS
4607  case $as_dir in #(((
4608    '') as_dir=./ ;;
4609    */) ;;
4610    *) as_dir=$as_dir/ ;;
4611  esac
4612    for ac_exec_ext in '' $ac_executable_extensions; do
4613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4614    ac_cv_prog_ac_ct_STRIP="strip"
4615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4616    break 2
4617  fi
4618done
4619  done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4625if test -n "$ac_ct_STRIP"; then
4626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4627printf "%s\n" "$ac_ct_STRIP" >&6; }
4628else
4629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630printf "%s\n" "no" >&6; }
4631fi
4632
4633  if test "x$ac_ct_STRIP" = x; then
4634    STRIP=":"
4635  else
4636    case $cross_compiling:$ac_tool_warned in
4637yes:)
4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
4642    STRIP=$ac_ct_STRIP
4643  fi
4644else
4645  STRIP="$ac_cv_prog_STRIP"
4646fi
4647
4648fi
4649INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4650
4651
4652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4653printf %s "checking for a race-free mkdir -p... " >&6; }
4654if test -z "$MKDIR_P"; then
4655  if test ${ac_cv_path_mkdir+y}
4656then :
4657  printf %s "(cached) " >&6
4658else $as_nop
4659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4661do
4662  IFS=$as_save_IFS
4663  case $as_dir in #(((
4664    '') as_dir=./ ;;
4665    */) ;;
4666    *) as_dir=$as_dir/ ;;
4667  esac
4668    for ac_prog in mkdir gmkdir; do
4669	 for ac_exec_ext in '' $ac_executable_extensions; do
4670	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4671	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4672	     'mkdir ('*'coreutils) '* | \
4673	     'BusyBox '* | \
4674	     'mkdir (fileutils) '4.1*)
4675	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4676	       break 3;;
4677	   esac
4678	 done
4679       done
4680  done
4681IFS=$as_save_IFS
4682
4683fi
4684
4685  test -d ./--version && rmdir ./--version
4686  if test ${ac_cv_path_mkdir+y}; then
4687    MKDIR_P="$ac_cv_path_mkdir -p"
4688  else
4689    # As a last resort, use the slow shell script.  Don't cache a
4690    # value for MKDIR_P within a source directory, because that will
4691    # break other packages using the cache if that directory is
4692    # removed, or if the value is a relative name.
4693    MKDIR_P="$ac_install_sh -d"
4694  fi
4695fi
4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4697printf "%s\n" "$MKDIR_P" >&6; }
4698
4699for ac_prog in gawk mawk nawk awk
4700do
4701  # Extract the first word of "$ac_prog", so it can be a program name with args.
4702set dummy $ac_prog; ac_word=$2
4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704printf %s "checking for $ac_word... " >&6; }
4705if test ${ac_cv_prog_AWK+y}
4706then :
4707  printf %s "(cached) " >&6
4708else $as_nop
4709  if test -n "$AWK"; then
4710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4711else
4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715  IFS=$as_save_IFS
4716  case $as_dir in #(((
4717    '') as_dir=./ ;;
4718    */) ;;
4719    *) as_dir=$as_dir/ ;;
4720  esac
4721    for ac_exec_ext in '' $ac_executable_extensions; do
4722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4723    ac_cv_prog_AWK="$ac_prog"
4724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4725    break 2
4726  fi
4727done
4728  done
4729IFS=$as_save_IFS
4730
4731fi
4732fi
4733AWK=$ac_cv_prog_AWK
4734if test -n "$AWK"; then
4735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4736printf "%s\n" "$AWK" >&6; }
4737else
4738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739printf "%s\n" "no" >&6; }
4740fi
4741
4742
4743  test -n "$AWK" && break
4744done
4745
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4747printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4748set x ${MAKE-make}
4749ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4750if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4751then :
4752  printf %s "(cached) " >&6
4753else $as_nop
4754  cat >conftest.make <<\_ACEOF
4755SHELL = /bin/sh
4756all:
4757	@echo '@@@%%%=$(MAKE)=@@@%%%'
4758_ACEOF
4759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4760case `${MAKE-make} -f conftest.make 2>/dev/null` in
4761  *@@@%%%=?*=@@@%%%*)
4762    eval ac_cv_prog_make_${ac_make}_set=yes;;
4763  *)
4764    eval ac_cv_prog_make_${ac_make}_set=no;;
4765esac
4766rm -f conftest.make
4767fi
4768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770printf "%s\n" "yes" >&6; }
4771  SET_MAKE=
4772else
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775  SET_MAKE="MAKE=${MAKE-make}"
4776fi
4777
4778rm -rf .tst 2>/dev/null
4779mkdir .tst 2>/dev/null
4780if test -d .tst; then
4781  am__leading_dot=.
4782else
4783  am__leading_dot=_
4784fi
4785rmdir .tst 2>/dev/null
4786
4787DEPDIR="${am__leading_dot}deps"
4788
4789ac_config_commands="$ac_config_commands depfiles"
4790
4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4792printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4793cat > confinc.mk << 'END'
4794am__doit:
4795	@echo this is the am__doit target >confinc.out
4796.PHONY: am__doit
4797END
4798am__include="#"
4799am__quote=
4800# BSD make does it like this.
4801echo '.include "confinc.mk" # ignored' > confmf.BSD
4802# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4803echo 'include confinc.mk # ignored' > confmf.GNU
4804_am_result=no
4805for s in GNU BSD; do
4806  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4807   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }
4811  case $?:`cat confinc.out 2>/dev/null` in #(
4812  '0:this is the am__doit target') :
4813    case $s in #(
4814  BSD) :
4815    am__include='.include' am__quote='"' ;; #(
4816  *) :
4817    am__include='include' am__quote='' ;;
4818esac ;; #(
4819  *) :
4820     ;;
4821esac
4822  if test "$am__include" != "#"; then
4823    _am_result="yes ($s style)"
4824    break
4825  fi
4826done
4827rm -f confinc.* confmf.*
4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4829printf "%s\n" "${_am_result}" >&6; }
4830
4831# Check whether --enable-dependency-tracking was given.
4832if test ${enable_dependency_tracking+y}
4833then :
4834  enableval=$enable_dependency_tracking;
4835fi
4836
4837if test "x$enable_dependency_tracking" != xno; then
4838  am_depcomp="$ac_aux_dir/depcomp"
4839  AMDEPBACKSLASH='\'
4840  am__nodep='_no'
4841fi
4842 if test "x$enable_dependency_tracking" != xno; then
4843  AMDEP_TRUE=
4844  AMDEP_FALSE='#'
4845else
4846  AMDEP_TRUE='#'
4847  AMDEP_FALSE=
4848fi
4849
4850
4851# Check whether --enable-silent-rules was given.
4852if test ${enable_silent_rules+y}
4853then :
4854  enableval=$enable_silent_rules;
4855fi
4856
4857case $enable_silent_rules in # (((
4858  yes) AM_DEFAULT_VERBOSITY=0;;
4859   no) AM_DEFAULT_VERBOSITY=1;;
4860    *) AM_DEFAULT_VERBOSITY=1;;
4861esac
4862am_make=${MAKE-make}
4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4864printf %s "checking whether $am_make supports nested variables... " >&6; }
4865if test ${am_cv_make_support_nested_variables+y}
4866then :
4867  printf %s "(cached) " >&6
4868else $as_nop
4869  if printf "%s\n" 'TRUE=$(BAR$(V))
4870BAR0=false
4871BAR1=true
4872V=1
4873am__doit:
4874	@$(TRUE)
4875.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4876  am_cv_make_support_nested_variables=yes
4877else
4878  am_cv_make_support_nested_variables=no
4879fi
4880fi
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4882printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4883if test $am_cv_make_support_nested_variables = yes; then
4884    AM_V='$(V)'
4885  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4886else
4887  AM_V=$AM_DEFAULT_VERBOSITY
4888  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4889fi
4890AM_BACKSLASH='\'
4891
4892if test "`cd $srcdir && pwd`" != "`pwd`"; then
4893  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4894  # is not polluted with repeated "-I."
4895  am__isrc=' -I$(srcdir)'
4896  # test to see if srcdir already configured
4897  if test -f $srcdir/config.status; then
4898    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4899  fi
4900fi
4901
4902# test whether we have cygpath
4903if test -z "$CYGPATH_W"; then
4904  if (cygpath --version) >/dev/null 2>/dev/null; then
4905    CYGPATH_W='cygpath -w'
4906  else
4907    CYGPATH_W=echo
4908  fi
4909fi
4910
4911
4912# Define the identity of the package.
4913 PACKAGE='libX11'
4914 VERSION='1.8.1'
4915
4916
4917printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4918
4919
4920printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4921
4922# Some tools Automake needs.
4923
4924ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4925
4926
4927AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4928
4929
4930AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4931
4932
4933AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4934
4935
4936MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4937
4938# For better backward compatibility.  To be removed once Automake 1.9.x
4939# dies out for good.  For more background, see:
4940# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4941# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4942mkdir_p='$(MKDIR_P)'
4943
4944# We need awk for the "check" target (and possibly the TAP driver).  The
4945# system "awk" is bad on some platforms.
4946# Always define AMTAR for backward compatibility.  Yes, it's still used
4947# in the wild :-(  We should find a proper way to deprecate it ...
4948AMTAR='$${TAR-tar}'
4949
4950
4951# We'll loop over all known methods to create a tar archive until one works.
4952_am_tools='gnutar  pax cpio none'
4953
4954am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4955
4956
4957
4958
4959
4960depcc="$CC"   am_compiler_list=
4961
4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963printf %s "checking dependency style of $depcc... " >&6; }
4964if test ${am_cv_CC_dependencies_compiler_type+y}
4965then :
4966  printf %s "(cached) " >&6
4967else $as_nop
4968  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969  # We make a subdir and do the tests there.  Otherwise we can end up
4970  # making bogus files that we don't know about and never remove.  For
4971  # instance it was reported that on HP-UX the gcc test will end up
4972  # making a dummy file named 'D' -- because '-MD' means "put the output
4973  # in D".
4974  rm -rf conftest.dir
4975  mkdir conftest.dir
4976  # Copy depcomp to subdir because otherwise we won't find it if we're
4977  # using a relative directory.
4978  cp "$am_depcomp" conftest.dir
4979  cd conftest.dir
4980  # We will build objects and dependencies in a subdirectory because
4981  # it helps to detect inapplicable dependency modes.  For instance
4982  # both Tru64's cc and ICC support -MD to output dependencies as a
4983  # side effect of compilation, but ICC will put the dependencies in
4984  # the current directory while Tru64 will put them in the object
4985  # directory.
4986  mkdir sub
4987
4988  am_cv_CC_dependencies_compiler_type=none
4989  if test "$am_compiler_list" = ""; then
4990     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4991  fi
4992  am__universal=false
4993  case " $depcc " in #(
4994     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4995     esac
4996
4997  for depmode in $am_compiler_list; do
4998    # Setup a source with many dependencies, because some compilers
4999    # like to wrap large dependency lists on column 80 (with \), and
5000    # we should not choose a depcomp mode which is confused by this.
5001    #
5002    # We need to recreate these files for each test, as the compiler may
5003    # overwrite some of them when testing with obscure command lines.
5004    # This happens at least with the AIX C compiler.
5005    : > sub/conftest.c
5006    for i in 1 2 3 4 5 6; do
5007      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5009      # Solaris 10 /bin/sh.
5010      echo '/* dummy */' > sub/conftst$i.h
5011    done
5012    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013
5014    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5015    # mode.  It turns out that the SunPro C++ compiler does not properly
5016    # handle '-M -o', and we need to detect this.  Also, some Intel
5017    # versions had trouble with output in subdirs.
5018    am__obj=sub/conftest.${OBJEXT-o}
5019    am__minus_obj="-o $am__obj"
5020    case $depmode in
5021    gcc)
5022      # This depmode causes a compiler race in universal mode.
5023      test "$am__universal" = false || continue
5024      ;;
5025    nosideeffect)
5026      # After this tag, mechanisms are not by side-effect, so they'll
5027      # only be used when explicitly requested.
5028      if test "x$enable_dependency_tracking" = xyes; then
5029	continue
5030      else
5031	break
5032      fi
5033      ;;
5034    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5035      # This compiler won't grok '-c -o', but also, the minuso test has
5036      # not run yet.  These depmodes are late enough in the game, and
5037      # so weak that their functioning should not be impacted.
5038      am__obj=conftest.${OBJEXT-o}
5039      am__minus_obj=
5040      ;;
5041    none) break ;;
5042    esac
5043    if depmode=$depmode \
5044       source=sub/conftest.c object=$am__obj \
5045       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5047         >/dev/null 2>conftest.err &&
5048       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5049       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5050       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5051       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5052      # icc doesn't choke on unknown options, it will just issue warnings
5053      # or remarks (even with -Werror).  So we grep stderr for any message
5054      # that says an option was ignored or not supported.
5055      # When given -MP, icc 7.0 and 7.1 complain thusly:
5056      #   icc: Command line warning: ignoring option '-M'; no argument required
5057      # The diagnosis changed in icc 8.0:
5058      #   icc: Command line remark: option '-MP' not supported
5059      if (grep 'ignoring option' conftest.err ||
5060          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5061        am_cv_CC_dependencies_compiler_type=$depmode
5062        break
5063      fi
5064    fi
5065  done
5066
5067  cd ..
5068  rm -rf conftest.dir
5069else
5070  am_cv_CC_dependencies_compiler_type=none
5071fi
5072
5073fi
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5075printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5076CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5077
5078 if
5079  test "x$enable_dependency_tracking" != xno \
5080  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5081  am__fastdepCC_TRUE=
5082  am__fastdepCC_FALSE='#'
5083else
5084  am__fastdepCC_TRUE='#'
5085  am__fastdepCC_FALSE=
5086fi
5087
5088
5089# Variables for tags utilities; see am/tags.am
5090if test -z "$CTAGS"; then
5091  CTAGS=ctags
5092fi
5093
5094if test -z "$ETAGS"; then
5095  ETAGS=etags
5096fi
5097
5098if test -z "$CSCOPE"; then
5099  CSCOPE=cscope
5100fi
5101
5102
5103
5104# POSIX will say in a future version that running "rm -f" with no argument
5105# is OK; and we want to be able to make that assumption in our Makefile
5106# recipes.  So use an aggressive probe to check that the usage we want is
5107# actually supported "in the wild" to an acceptable degree.
5108# See automake bug#10828.
5109# To make any issue more visible, cause the running configure to be aborted
5110# by default if the 'rm' program in use doesn't match our expectations; the
5111# user can still override this though.
5112if rm -f && rm -fr && rm -rf; then : OK; else
5113  cat >&2 <<'END'
5114Oops!
5115
5116Your 'rm' program seems unable to run without file operands specified
5117on the command line, even when the '-f' option is present.  This is contrary
5118to the behaviour of most rm programs out there, and not conforming with
5119the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5120
5121Please tell bug-automake@gnu.org about your system, including the value
5122of your $PATH and any error possibly output before this message.  This
5123can help us improve future automake versions.
5124
5125END
5126  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5127    echo 'Configuration will proceed anyway, since you have set the' >&2
5128    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5129    echo >&2
5130  else
5131    cat >&2 <<'END'
5132Aborting the configuration process, to ensure you take notice of the issue.
5133
5134You can download and install GNU coreutils to get an 'rm' implementation
5135that behaves properly: <https://www.gnu.org/software/coreutils/>.
5136
5137If you want to complete the configuration process using your problematic
5138'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5139to "yes", and re-run configure.
5140
5141END
5142    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5143  fi
5144fi
5145
5146
5147# Initialize libtool
5148case `pwd` in
5149  *\ * | *\	*)
5150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5151printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5152esac
5153
5154
5155
5156macro_version='2.4.7'
5157macro_revision='2.4.7'
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172ltmain=$ac_aux_dir/ltmain.sh
5173
5174# Backslashify metacharacters that are still active within
5175# double-quoted strings.
5176sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5177
5178# Same as above, but do not quote variable references.
5179double_quote_subst='s/\(["`\\]\)/\\\1/g'
5180
5181# Sed substitution to delay expansion of an escaped shell variable in a
5182# double_quote_subst'ed string.
5183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5184
5185# Sed substitution to delay expansion of an escaped single quote.
5186delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5187
5188# Sed substitution to avoid accidental globbing in evaled expressions
5189no_glob_subst='s/\*/\\\*/g'
5190
5191ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5192ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5193ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5194
5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5196printf %s "checking how to print strings... " >&6; }
5197# Test print first, because it will be a builtin if present.
5198if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5199   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5200  ECHO='print -r --'
5201elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5202  ECHO='printf %s\n'
5203else
5204  # Use this function as a fallback that always works.
5205  func_fallback_echo ()
5206  {
5207    eval 'cat <<_LTECHO_EOF
5208$1
5209_LTECHO_EOF'
5210  }
5211  ECHO='func_fallback_echo'
5212fi
5213
5214# func_echo_all arg...
5215# Invoke $ECHO with all args, space-separated.
5216func_echo_all ()
5217{
5218    $ECHO ""
5219}
5220
5221case $ECHO in
5222  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5223printf "%s\n" "printf" >&6; } ;;
5224  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5225printf "%s\n" "print -r" >&6; } ;;
5226  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5227printf "%s\n" "cat" >&6; } ;;
5228esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5244printf %s "checking for a sed that does not truncate output... " >&6; }
5245if test ${ac_cv_path_SED+y}
5246then :
5247  printf %s "(cached) " >&6
5248else $as_nop
5249            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5250     for ac_i in 1 2 3 4 5 6 7; do
5251       ac_script="$ac_script$as_nl$ac_script"
5252     done
5253     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5254     { ac_script=; unset ac_script;}
5255     if test -z "$SED"; then
5256  ac_path_SED_found=false
5257  # Loop through the user's path and test for each of PROGNAME-LIST
5258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  case $as_dir in #(((
5263    '') as_dir=./ ;;
5264    */) ;;
5265    *) as_dir=$as_dir/ ;;
5266  esac
5267    for ac_prog in sed gsed
5268   do
5269    for ac_exec_ext in '' $ac_executable_extensions; do
5270      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5271      as_fn_executable_p "$ac_path_SED" || continue
5272# Check for GNU ac_path_SED and select it if it is found.
5273  # Check for GNU $ac_path_SED
5274case `"$ac_path_SED" --version 2>&1` in
5275*GNU*)
5276  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5277*)
5278  ac_count=0
5279  printf %s 0123456789 >"conftest.in"
5280  while :
5281  do
5282    cat "conftest.in" "conftest.in" >"conftest.tmp"
5283    mv "conftest.tmp" "conftest.in"
5284    cp "conftest.in" "conftest.nl"
5285    printf "%s\n" '' >> "conftest.nl"
5286    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288    as_fn_arith $ac_count + 1 && ac_count=$as_val
5289    if test $ac_count -gt ${ac_path_SED_max-0}; then
5290      # Best one so far, save it but keep looking for a better one
5291      ac_cv_path_SED="$ac_path_SED"
5292      ac_path_SED_max=$ac_count
5293    fi
5294    # 10*(2^10) chars as input seems more than enough
5295    test $ac_count -gt 10 && break
5296  done
5297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298esac
5299
5300      $ac_path_SED_found && break 3
5301    done
5302  done
5303  done
5304IFS=$as_save_IFS
5305  if test -z "$ac_cv_path_SED"; then
5306    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5307  fi
5308else
5309  ac_cv_path_SED=$SED
5310fi
5311
5312fi
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5314printf "%s\n" "$ac_cv_path_SED" >&6; }
5315 SED="$ac_cv_path_SED"
5316  rm -f conftest.sed
5317
5318test -z "$SED" && SED=sed
5319Xsed="$SED -e 1s/^X//"
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5332printf %s "checking for grep that handles long lines and -e... " >&6; }
5333if test ${ac_cv_path_GREP+y}
5334then :
5335  printf %s "(cached) " >&6
5336else $as_nop
5337  if test -z "$GREP"; then
5338  ac_path_GREP_found=false
5339  # Loop through the user's path and test for each of PROGNAME-LIST
5340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342do
5343  IFS=$as_save_IFS
5344  case $as_dir in #(((
5345    '') as_dir=./ ;;
5346    */) ;;
5347    *) as_dir=$as_dir/ ;;
5348  esac
5349    for ac_prog in grep ggrep
5350   do
5351    for ac_exec_ext in '' $ac_executable_extensions; do
5352      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5353      as_fn_executable_p "$ac_path_GREP" || continue
5354# Check for GNU ac_path_GREP and select it if it is found.
5355  # Check for GNU $ac_path_GREP
5356case `"$ac_path_GREP" --version 2>&1` in
5357*GNU*)
5358  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5359*)
5360  ac_count=0
5361  printf %s 0123456789 >"conftest.in"
5362  while :
5363  do
5364    cat "conftest.in" "conftest.in" >"conftest.tmp"
5365    mv "conftest.tmp" "conftest.in"
5366    cp "conftest.in" "conftest.nl"
5367    printf "%s\n" 'GREP' >> "conftest.nl"
5368    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5370    as_fn_arith $ac_count + 1 && ac_count=$as_val
5371    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5372      # Best one so far, save it but keep looking for a better one
5373      ac_cv_path_GREP="$ac_path_GREP"
5374      ac_path_GREP_max=$ac_count
5375    fi
5376    # 10*(2^10) chars as input seems more than enough
5377    test $ac_count -gt 10 && break
5378  done
5379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5380esac
5381
5382      $ac_path_GREP_found && break 3
5383    done
5384  done
5385  done
5386IFS=$as_save_IFS
5387  if test -z "$ac_cv_path_GREP"; then
5388    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5389  fi
5390else
5391  ac_cv_path_GREP=$GREP
5392fi
5393
5394fi
5395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5396printf "%s\n" "$ac_cv_path_GREP" >&6; }
5397 GREP="$ac_cv_path_GREP"
5398
5399
5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5401printf %s "checking for egrep... " >&6; }
5402if test ${ac_cv_path_EGREP+y}
5403then :
5404  printf %s "(cached) " >&6
5405else $as_nop
5406  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5407   then ac_cv_path_EGREP="$GREP -E"
5408   else
5409     if test -z "$EGREP"; then
5410  ac_path_EGREP_found=false
5411  # Loop through the user's path and test for each of PROGNAME-LIST
5412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5414do
5415  IFS=$as_save_IFS
5416  case $as_dir in #(((
5417    '') as_dir=./ ;;
5418    */) ;;
5419    *) as_dir=$as_dir/ ;;
5420  esac
5421    for ac_prog in egrep
5422   do
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5425      as_fn_executable_p "$ac_path_EGREP" || continue
5426# Check for GNU ac_path_EGREP and select it if it is found.
5427  # Check for GNU $ac_path_EGREP
5428case `"$ac_path_EGREP" --version 2>&1` in
5429*GNU*)
5430  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5431*)
5432  ac_count=0
5433  printf %s 0123456789 >"conftest.in"
5434  while :
5435  do
5436    cat "conftest.in" "conftest.in" >"conftest.tmp"
5437    mv "conftest.tmp" "conftest.in"
5438    cp "conftest.in" "conftest.nl"
5439    printf "%s\n" 'EGREP' >> "conftest.nl"
5440    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442    as_fn_arith $ac_count + 1 && ac_count=$as_val
5443    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444      # Best one so far, save it but keep looking for a better one
5445      ac_cv_path_EGREP="$ac_path_EGREP"
5446      ac_path_EGREP_max=$ac_count
5447    fi
5448    # 10*(2^10) chars as input seems more than enough
5449    test $ac_count -gt 10 && break
5450  done
5451  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452esac
5453
5454      $ac_path_EGREP_found && break 3
5455    done
5456  done
5457  done
5458IFS=$as_save_IFS
5459  if test -z "$ac_cv_path_EGREP"; then
5460    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5461  fi
5462else
5463  ac_cv_path_EGREP=$EGREP
5464fi
5465
5466   fi
5467fi
5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5470 EGREP="$ac_cv_path_EGREP"
5471
5472
5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5474printf %s "checking for fgrep... " >&6; }
5475if test ${ac_cv_path_FGREP+y}
5476then :
5477  printf %s "(cached) " >&6
5478else $as_nop
5479  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5480   then ac_cv_path_FGREP="$GREP -F"
5481   else
5482     if test -z "$FGREP"; then
5483  ac_path_FGREP_found=false
5484  # Loop through the user's path and test for each of PROGNAME-LIST
5485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5487do
5488  IFS=$as_save_IFS
5489  case $as_dir in #(((
5490    '') as_dir=./ ;;
5491    */) ;;
5492    *) as_dir=$as_dir/ ;;
5493  esac
5494    for ac_prog in fgrep
5495   do
5496    for ac_exec_ext in '' $ac_executable_extensions; do
5497      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5498      as_fn_executable_p "$ac_path_FGREP" || continue
5499# Check for GNU ac_path_FGREP and select it if it is found.
5500  # Check for GNU $ac_path_FGREP
5501case `"$ac_path_FGREP" --version 2>&1` in
5502*GNU*)
5503  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5504*)
5505  ac_count=0
5506  printf %s 0123456789 >"conftest.in"
5507  while :
5508  do
5509    cat "conftest.in" "conftest.in" >"conftest.tmp"
5510    mv "conftest.tmp" "conftest.in"
5511    cp "conftest.in" "conftest.nl"
5512    printf "%s\n" 'FGREP' >> "conftest.nl"
5513    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515    as_fn_arith $ac_count + 1 && ac_count=$as_val
5516    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5517      # Best one so far, save it but keep looking for a better one
5518      ac_cv_path_FGREP="$ac_path_FGREP"
5519      ac_path_FGREP_max=$ac_count
5520    fi
5521    # 10*(2^10) chars as input seems more than enough
5522    test $ac_count -gt 10 && break
5523  done
5524  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525esac
5526
5527      $ac_path_FGREP_found && break 3
5528    done
5529  done
5530  done
5531IFS=$as_save_IFS
5532  if test -z "$ac_cv_path_FGREP"; then
5533    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5534  fi
5535else
5536  ac_cv_path_FGREP=$FGREP
5537fi
5538
5539   fi
5540fi
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5542printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5543 FGREP="$ac_cv_path_FGREP"
5544
5545
5546test -z "$GREP" && GREP=grep
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566# Check whether --with-gnu-ld was given.
5567if test ${with_gnu_ld+y}
5568then :
5569  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5570else $as_nop
5571  with_gnu_ld=no
5572fi
5573
5574ac_prog=ld
5575if test yes = "$GCC"; then
5576  # Check if gcc -print-prog-name=ld gives a path.
5577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5578printf %s "checking for ld used by $CC... " >&6; }
5579  case $host in
5580  *-*-mingw*)
5581    # gcc leaves a trailing carriage return, which upsets mingw
5582    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5583  *)
5584    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5585  esac
5586  case $ac_prog in
5587    # Accept absolute paths.
5588    [\\/]* | ?:[\\/]*)
5589      re_direlt='/[^/][^/]*/\.\./'
5590      # Canonicalize the pathname of ld
5591      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5592      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5593	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5594      done
5595      test -z "$LD" && LD=$ac_prog
5596      ;;
5597  "")
5598    # If it fails, then pretend we aren't using GCC.
5599    ac_prog=ld
5600    ;;
5601  *)
5602    # If it is relative, then search for the first ld in PATH.
5603    with_gnu_ld=unknown
5604    ;;
5605  esac
5606elif test yes = "$with_gnu_ld"; then
5607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5608printf %s "checking for GNU ld... " >&6; }
5609else
5610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5611printf %s "checking for non-GNU ld... " >&6; }
5612fi
5613if test ${lt_cv_path_LD+y}
5614then :
5615  printf %s "(cached) " >&6
5616else $as_nop
5617  if test -z "$LD"; then
5618  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5619  for ac_dir in $PATH; do
5620    IFS=$lt_save_ifs
5621    test -z "$ac_dir" && ac_dir=.
5622    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5623      lt_cv_path_LD=$ac_dir/$ac_prog
5624      # Check to see if the program is GNU ld.  I'd rather use --version,
5625      # but apparently some variants of GNU ld only accept -v.
5626      # Break only if it was the GNU/non-GNU ld that we prefer.
5627      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5628      *GNU* | *'with BFD'*)
5629	test no != "$with_gnu_ld" && break
5630	;;
5631      *)
5632	test yes != "$with_gnu_ld" && break
5633	;;
5634      esac
5635    fi
5636  done
5637  IFS=$lt_save_ifs
5638else
5639  lt_cv_path_LD=$LD # Let the user override the test with a path.
5640fi
5641fi
5642
5643LD=$lt_cv_path_LD
5644if test -n "$LD"; then
5645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5646printf "%s\n" "$LD" >&6; }
5647else
5648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649printf "%s\n" "no" >&6; }
5650fi
5651test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5653printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5654if test ${lt_cv_prog_gnu_ld+y}
5655then :
5656  printf %s "(cached) " >&6
5657else $as_nop
5658  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5659case `$LD -v 2>&1 </dev/null` in
5660*GNU* | *'with BFD'*)
5661  lt_cv_prog_gnu_ld=yes
5662  ;;
5663*)
5664  lt_cv_prog_gnu_ld=no
5665  ;;
5666esac
5667fi
5668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5669printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5670with_gnu_ld=$lt_cv_prog_gnu_ld
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5681printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5682if test ${lt_cv_path_NM+y}
5683then :
5684  printf %s "(cached) " >&6
5685else $as_nop
5686  if test -n "$NM"; then
5687  # Let the user override the test.
5688  lt_cv_path_NM=$NM
5689else
5690  lt_nm_to_check=${ac_tool_prefix}nm
5691  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5692    lt_nm_to_check="$lt_nm_to_check nm"
5693  fi
5694  for lt_tmp_nm in $lt_nm_to_check; do
5695    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5696    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5697      IFS=$lt_save_ifs
5698      test -z "$ac_dir" && ac_dir=.
5699      tmp_nm=$ac_dir/$lt_tmp_nm
5700      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5701	# Check to see if the nm accepts a BSD-compat flag.
5702	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5703	#   nm: unknown option "B" ignored
5704	# Tru64's nm complains that /dev/null is an invalid object file
5705	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5706	case $build_os in
5707	mingw*) lt_bad_file=conftest.nm/nofile ;;
5708	*) lt_bad_file=/dev/null ;;
5709	esac
5710	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5711	*$lt_bad_file* | *'Invalid file or object type'*)
5712	  lt_cv_path_NM="$tmp_nm -B"
5713	  break 2
5714	  ;;
5715	*)
5716	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5717	  */dev/null*)
5718	    lt_cv_path_NM="$tmp_nm -p"
5719	    break 2
5720	    ;;
5721	  *)
5722	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723	    continue # so that we can try to find one that supports BSD flags
5724	    ;;
5725	  esac
5726	  ;;
5727	esac
5728      fi
5729    done
5730    IFS=$lt_save_ifs
5731  done
5732  : ${lt_cv_path_NM=no}
5733fi
5734fi
5735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5736printf "%s\n" "$lt_cv_path_NM" >&6; }
5737if test no != "$lt_cv_path_NM"; then
5738  NM=$lt_cv_path_NM
5739else
5740  # Didn't find any BSD compatible name lister, look for dumpbin.
5741  if test -n "$DUMPBIN"; then :
5742    # Let the user override the test.
5743  else
5744    if test -n "$ac_tool_prefix"; then
5745  for ac_prog in dumpbin "link -dump"
5746  do
5747    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750printf %s "checking for $ac_word... " >&6; }
5751if test ${ac_cv_prog_DUMPBIN+y}
5752then :
5753  printf %s "(cached) " >&6
5754else $as_nop
5755  if test -n "$DUMPBIN"; then
5756  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761  IFS=$as_save_IFS
5762  case $as_dir in #(((
5763    '') as_dir=./ ;;
5764    */) ;;
5765    *) as_dir=$as_dir/ ;;
5766  esac
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5770    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779DUMPBIN=$ac_cv_prog_DUMPBIN
5780if test -n "$DUMPBIN"; then
5781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5782printf "%s\n" "$DUMPBIN" >&6; }
5783else
5784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785printf "%s\n" "no" >&6; }
5786fi
5787
5788
5789    test -n "$DUMPBIN" && break
5790  done
5791fi
5792if test -z "$DUMPBIN"; then
5793  ac_ct_DUMPBIN=$DUMPBIN
5794  for ac_prog in dumpbin "link -dump"
5795do
5796  # Extract the first word of "$ac_prog", so it can be a program name with args.
5797set dummy $ac_prog; ac_word=$2
5798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799printf %s "checking for $ac_word... " >&6; }
5800if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5801then :
5802  printf %s "(cached) " >&6
5803else $as_nop
5804  if test -n "$ac_ct_DUMPBIN"; then
5805  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  case $as_dir in #(((
5812    '') as_dir=./ ;;
5813    */) ;;
5814    *) as_dir=$as_dir/ ;;
5815  esac
5816    for ac_exec_ext in '' $ac_executable_extensions; do
5817  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5818    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5819    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5820    break 2
5821  fi
5822done
5823  done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5829if test -n "$ac_ct_DUMPBIN"; then
5830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5831printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5832else
5833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834printf "%s\n" "no" >&6; }
5835fi
5836
5837
5838  test -n "$ac_ct_DUMPBIN" && break
5839done
5840
5841  if test "x$ac_ct_DUMPBIN" = x; then
5842    DUMPBIN=":"
5843  else
5844    case $cross_compiling:$ac_tool_warned in
5845yes:)
5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848ac_tool_warned=yes ;;
5849esac
5850    DUMPBIN=$ac_ct_DUMPBIN
5851  fi
5852fi
5853
5854    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5855    *COFF*)
5856      DUMPBIN="$DUMPBIN -symbols -headers"
5857      ;;
5858    *)
5859      DUMPBIN=:
5860      ;;
5861    esac
5862  fi
5863
5864  if test : != "$DUMPBIN"; then
5865    NM=$DUMPBIN
5866  fi
5867fi
5868test -z "$NM" && NM=nm
5869
5870
5871
5872
5873
5874
5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5876printf %s "checking the name lister ($NM) interface... " >&6; }
5877if test ${lt_cv_nm_interface+y}
5878then :
5879  printf %s "(cached) " >&6
5880else $as_nop
5881  lt_cv_nm_interface="BSD nm"
5882  echo "int some_variable = 0;" > conftest.$ac_ext
5883  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5884  (eval "$ac_compile" 2>conftest.err)
5885  cat conftest.err >&5
5886  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5887  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888  cat conftest.err >&5
5889  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5890  cat conftest.out >&5
5891  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892    lt_cv_nm_interface="MS dumpbin"
5893  fi
5894  rm -f conftest*
5895fi
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897printf "%s\n" "$lt_cv_nm_interface" >&6; }
5898
5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900printf %s "checking whether ln -s works... " >&6; }
5901LN_S=$as_ln_s
5902if test "$LN_S" = "ln -s"; then
5903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904printf "%s\n" "yes" >&6; }
5905else
5906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907printf "%s\n" "no, using $LN_S" >&6; }
5908fi
5909
5910# find the maximum length of command line arguments
5911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912printf %s "checking the maximum length of command line arguments... " >&6; }
5913if test ${lt_cv_sys_max_cmd_len+y}
5914then :
5915  printf %s "(cached) " >&6
5916else $as_nop
5917    i=0
5918  teststring=ABCD
5919
5920  case $build_os in
5921  msdosdjgpp*)
5922    # On DJGPP, this test can blow up pretty badly due to problems in libc
5923    # (any single argument exceeding 2000 bytes causes a buffer overrun
5924    # during glob expansion).  Even if it were fixed, the result of this
5925    # check would be larger than it should be.
5926    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5927    ;;
5928
5929  gnu*)
5930    # Under GNU Hurd, this test is not required because there is
5931    # no limit to the length of command line arguments.
5932    # Libtool will interpret -1 as no limit whatsoever
5933    lt_cv_sys_max_cmd_len=-1;
5934    ;;
5935
5936  cygwin* | mingw* | cegcc*)
5937    # On Win9x/ME, this test blows up -- it succeeds, but takes
5938    # about 5 minutes as the teststring grows exponentially.
5939    # Worse, since 9x/ME are not pre-emptively multitasking,
5940    # you end up with a "frozen" computer, even though with patience
5941    # the test eventually succeeds (with a max line length of 256k).
5942    # Instead, let's just punt: use the minimum linelength reported by
5943    # all of the supported platforms: 8192 (on NT/2K/XP).
5944    lt_cv_sys_max_cmd_len=8192;
5945    ;;
5946
5947  mint*)
5948    # On MiNT this can take a long time and run out of memory.
5949    lt_cv_sys_max_cmd_len=8192;
5950    ;;
5951
5952  amigaos*)
5953    # On AmigaOS with pdksh, this test takes hours, literally.
5954    # So we just punt and use a minimum line length of 8192.
5955    lt_cv_sys_max_cmd_len=8192;
5956    ;;
5957
5958  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5959    # This has been around since 386BSD, at least.  Likely further.
5960    if test -x /sbin/sysctl; then
5961      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5962    elif test -x /usr/sbin/sysctl; then
5963      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964    else
5965      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5966    fi
5967    # And add a safety zone
5968    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970    ;;
5971
5972  interix*)
5973    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5974    lt_cv_sys_max_cmd_len=196608
5975    ;;
5976
5977  os2*)
5978    # The test takes a long time on OS/2.
5979    lt_cv_sys_max_cmd_len=8192
5980    ;;
5981
5982  osf*)
5983    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5984    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5985    # nice to cause kernel panics so lets avoid the loop below.
5986    # First set a reasonable default.
5987    lt_cv_sys_max_cmd_len=16384
5988    #
5989    if test -x /sbin/sysconfig; then
5990      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5991        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5992      esac
5993    fi
5994    ;;
5995  sco3.2v5*)
5996    lt_cv_sys_max_cmd_len=102400
5997    ;;
5998  sysv5* | sco5v6* | sysv4.2uw2*)
5999    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6000    if test -n "$kargmax"; then
6001      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6002    else
6003      lt_cv_sys_max_cmd_len=32768
6004    fi
6005    ;;
6006  *)
6007    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6008    if test -n "$lt_cv_sys_max_cmd_len" && \
6009       test undefined != "$lt_cv_sys_max_cmd_len"; then
6010      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6011      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6012    else
6013      # Make teststring a little bigger before we do anything with it.
6014      # a 1K string should be a reasonable start.
6015      for i in 1 2 3 4 5 6 7 8; do
6016        teststring=$teststring$teststring
6017      done
6018      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6019      # If test is not a shell built-in, we'll probably end up computing a
6020      # maximum length that is only half of the actual maximum length, but
6021      # we can't tell.
6022      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6023	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6024	      test 17 != "$i" # 1/2 MB should be enough
6025      do
6026        i=`expr $i + 1`
6027        teststring=$teststring$teststring
6028      done
6029      # Only check the string length outside the loop.
6030      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6031      teststring=
6032      # Add a significant safety factor because C++ compilers can tack on
6033      # massive amounts of additional arguments before passing them to the
6034      # linker.  It appears as though 1/2 is a usable value.
6035      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036    fi
6037    ;;
6038  esac
6039
6040fi
6041
6042if test -n "$lt_cv_sys_max_cmd_len"; then
6043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6044printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6045else
6046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6047printf "%s\n" "none" >&6; }
6048fi
6049max_cmd_len=$lt_cv_sys_max_cmd_len
6050
6051
6052
6053
6054
6055
6056: ${CP="cp -f"}
6057: ${MV="mv -f"}
6058: ${RM="rm -f"}
6059
6060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6061  lt_unset=unset
6062else
6063  lt_unset=false
6064fi
6065
6066
6067
6068
6069
6070# test EBCDIC or ASCII
6071case `echo X|tr X '\101'` in
6072 A) # ASCII based system
6073    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074  lt_SP2NL='tr \040 \012'
6075  lt_NL2SP='tr \015\012 \040\040'
6076  ;;
6077 *) # EBCDIC based system
6078  lt_SP2NL='tr \100 \n'
6079  lt_NL2SP='tr \r\n \100\100'
6080  ;;
6081esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6092printf %s "checking how to convert $build file names to $host format... " >&6; }
6093if test ${lt_cv_to_host_file_cmd+y}
6094then :
6095  printf %s "(cached) " >&6
6096else $as_nop
6097  case $host in
6098  *-*-mingw* )
6099    case $build in
6100      *-*-mingw* ) # actually msys
6101        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6102        ;;
6103      *-*-cygwin* )
6104        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6105        ;;
6106      * ) # otherwise, assume *nix
6107        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6108        ;;
6109    esac
6110    ;;
6111  *-*-cygwin* )
6112    case $build in
6113      *-*-mingw* ) # actually msys
6114        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6115        ;;
6116      *-*-cygwin* )
6117        lt_cv_to_host_file_cmd=func_convert_file_noop
6118        ;;
6119      * ) # otherwise, assume *nix
6120        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6121        ;;
6122    esac
6123    ;;
6124  * ) # unhandled hosts (and "normal" native builds)
6125    lt_cv_to_host_file_cmd=func_convert_file_noop
6126    ;;
6127esac
6128
6129fi
6130
6131to_host_file_cmd=$lt_cv_to_host_file_cmd
6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6133printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6134
6135
6136
6137
6138
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6140printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6141if test ${lt_cv_to_tool_file_cmd+y}
6142then :
6143  printf %s "(cached) " >&6
6144else $as_nop
6145  #assume ordinary cross tools, or native build.
6146lt_cv_to_tool_file_cmd=func_convert_file_noop
6147case $host in
6148  *-*-mingw* )
6149    case $build in
6150      *-*-mingw* ) # actually msys
6151        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6152        ;;
6153    esac
6154    ;;
6155esac
6156
6157fi
6158
6159to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6161printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6162
6163
6164
6165
6166
6167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6168printf %s "checking for $LD option to reload object files... " >&6; }
6169if test ${lt_cv_ld_reload_flag+y}
6170then :
6171  printf %s "(cached) " >&6
6172else $as_nop
6173  lt_cv_ld_reload_flag='-r'
6174fi
6175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6176printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6177reload_flag=$lt_cv_ld_reload_flag
6178case $reload_flag in
6179"" | " "*) ;;
6180*) reload_flag=" $reload_flag" ;;
6181esac
6182reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183case $host_os in
6184  cygwin* | mingw* | pw32* | cegcc*)
6185    if test yes != "$GCC"; then
6186      reload_cmds=false
6187    fi
6188    ;;
6189  darwin*)
6190    if test yes = "$GCC"; then
6191      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6192    else
6193      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6194    fi
6195    ;;
6196esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206if test -n "$ac_tool_prefix"; then
6207  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6208set dummy ${ac_tool_prefix}file; ac_word=$2
6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210printf %s "checking for $ac_word... " >&6; }
6211if test ${ac_cv_prog_FILECMD+y}
6212then :
6213  printf %s "(cached) " >&6
6214else $as_nop
6215  if test -n "$FILECMD"; then
6216  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  case $as_dir in #(((
6223    '') as_dir=./ ;;
6224    */) ;;
6225    *) as_dir=$as_dir/ ;;
6226  esac
6227    for ac_exec_ext in '' $ac_executable_extensions; do
6228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6229    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6231    break 2
6232  fi
6233done
6234  done
6235IFS=$as_save_IFS
6236
6237fi
6238fi
6239FILECMD=$ac_cv_prog_FILECMD
6240if test -n "$FILECMD"; then
6241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6242printf "%s\n" "$FILECMD" >&6; }
6243else
6244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245printf "%s\n" "no" >&6; }
6246fi
6247
6248
6249fi
6250if test -z "$ac_cv_prog_FILECMD"; then
6251  ac_ct_FILECMD=$FILECMD
6252  # Extract the first word of "file", so it can be a program name with args.
6253set dummy file; ac_word=$2
6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255printf %s "checking for $ac_word... " >&6; }
6256if test ${ac_cv_prog_ac_ct_FILECMD+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  if test -n "$ac_ct_FILECMD"; then
6261  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  case $as_dir in #(((
6268    '') as_dir=./ ;;
6269    */) ;;
6270    *) as_dir=$as_dir/ ;;
6271  esac
6272    for ac_exec_ext in '' $ac_executable_extensions; do
6273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274    ac_cv_prog_ac_ct_FILECMD="file"
6275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276    break 2
6277  fi
6278done
6279  done
6280IFS=$as_save_IFS
6281
6282fi
6283fi
6284ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6285if test -n "$ac_ct_FILECMD"; then
6286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6287printf "%s\n" "$ac_ct_FILECMD" >&6; }
6288else
6289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290printf "%s\n" "no" >&6; }
6291fi
6292
6293  if test "x$ac_ct_FILECMD" = x; then
6294    FILECMD=":"
6295  else
6296    case $cross_compiling:$ac_tool_warned in
6297yes:)
6298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300ac_tool_warned=yes ;;
6301esac
6302    FILECMD=$ac_ct_FILECMD
6303  fi
6304else
6305  FILECMD="$ac_cv_prog_FILECMD"
6306fi
6307
6308
6309
6310
6311
6312
6313
6314if test -n "$ac_tool_prefix"; then
6315  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6316set dummy ${ac_tool_prefix}objdump; ac_word=$2
6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318printf %s "checking for $ac_word... " >&6; }
6319if test ${ac_cv_prog_OBJDUMP+y}
6320then :
6321  printf %s "(cached) " >&6
6322else $as_nop
6323  if test -n "$OBJDUMP"; then
6324  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6325else
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329  IFS=$as_save_IFS
6330  case $as_dir in #(((
6331    '') as_dir=./ ;;
6332    */) ;;
6333    *) as_dir=$as_dir/ ;;
6334  esac
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6338    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347OBJDUMP=$ac_cv_prog_OBJDUMP
6348if test -n "$OBJDUMP"; then
6349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6350printf "%s\n" "$OBJDUMP" >&6; }
6351else
6352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353printf "%s\n" "no" >&6; }
6354fi
6355
6356
6357fi
6358if test -z "$ac_cv_prog_OBJDUMP"; then
6359  ac_ct_OBJDUMP=$OBJDUMP
6360  # Extract the first word of "objdump", so it can be a program name with args.
6361set dummy objdump; ac_word=$2
6362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363printf %s "checking for $ac_word... " >&6; }
6364if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6365then :
6366  printf %s "(cached) " >&6
6367else $as_nop
6368  if test -n "$ac_ct_OBJDUMP"; then
6369  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374  IFS=$as_save_IFS
6375  case $as_dir in #(((
6376    '') as_dir=./ ;;
6377    */) ;;
6378    *) as_dir=$as_dir/ ;;
6379  esac
6380    for ac_exec_ext in '' $ac_executable_extensions; do
6381  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6383    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387  done
6388IFS=$as_save_IFS
6389
6390fi
6391fi
6392ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6393if test -n "$ac_ct_OBJDUMP"; then
6394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6395printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6396else
6397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398printf "%s\n" "no" >&6; }
6399fi
6400
6401  if test "x$ac_ct_OBJDUMP" = x; then
6402    OBJDUMP="false"
6403  else
6404    case $cross_compiling:$ac_tool_warned in
6405yes:)
6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408ac_tool_warned=yes ;;
6409esac
6410    OBJDUMP=$ac_ct_OBJDUMP
6411  fi
6412else
6413  OBJDUMP="$ac_cv_prog_OBJDUMP"
6414fi
6415
6416test -z "$OBJDUMP" && OBJDUMP=objdump
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6427printf %s "checking how to recognize dependent libraries... " >&6; }
6428if test ${lt_cv_deplibs_check_method+y}
6429then :
6430  printf %s "(cached) " >&6
6431else $as_nop
6432  lt_cv_file_magic_cmd='$MAGIC_CMD'
6433lt_cv_file_magic_test_file=
6434lt_cv_deplibs_check_method='unknown'
6435# Need to set the preceding variable on all platforms that support
6436# interlibrary dependencies.
6437# 'none' -- dependencies not supported.
6438# 'unknown' -- same as none, but documents that we really don't know.
6439# 'pass_all' -- all dependencies passed with no checks.
6440# 'test_compile' -- check by making test program.
6441# 'file_magic [[regex]]' -- check by looking for files in library path
6442# that responds to the $file_magic_cmd with a given extended regex.
6443# If you have 'file' or equivalent on your system and you're not sure
6444# whether 'pass_all' will *always* work, you probably want this one.
6445
6446case $host_os in
6447aix[4-9]*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451beos*)
6452  lt_cv_deplibs_check_method=pass_all
6453  ;;
6454
6455bsdi[45]*)
6456  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6457  lt_cv_file_magic_cmd='$FILECMD -L'
6458  lt_cv_file_magic_test_file=/shlib/libc.so
6459  ;;
6460
6461cygwin*)
6462  # func_win32_libid is a shell function defined in ltmain.sh
6463  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6464  lt_cv_file_magic_cmd='func_win32_libid'
6465  ;;
6466
6467mingw* | pw32*)
6468  # Base MSYS/MinGW do not provide the 'file' command needed by
6469  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6470  # unless we find 'file', for example because we are cross-compiling.
6471  if ( file / ) >/dev/null 2>&1; then
6472    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6473    lt_cv_file_magic_cmd='func_win32_libid'
6474  else
6475    # Keep this pattern in sync with the one in func_win32_libid.
6476    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6477    lt_cv_file_magic_cmd='$OBJDUMP -f'
6478  fi
6479  ;;
6480
6481cegcc*)
6482  # use the weaker test based on 'objdump'. See mingw*.
6483  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6484  lt_cv_file_magic_cmd='$OBJDUMP -f'
6485  ;;
6486
6487darwin* | rhapsody*)
6488  lt_cv_deplibs_check_method=pass_all
6489  ;;
6490
6491freebsd* | dragonfly* | midnightbsd*)
6492  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6493    case $host_cpu in
6494    i*86 )
6495      # Not sure whether the presence of OpenBSD here was a mistake.
6496      # Let's accept both of them until this is cleared up.
6497      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6498      lt_cv_file_magic_cmd=$FILECMD
6499      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6500      ;;
6501    esac
6502  else
6503    lt_cv_deplibs_check_method=pass_all
6504  fi
6505  ;;
6506
6507haiku*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511hpux10.20* | hpux11*)
6512  lt_cv_file_magic_cmd=$FILECMD
6513  case $host_cpu in
6514  ia64*)
6515    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6516    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6517    ;;
6518  hppa*64*)
6519    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]'
6520    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6521    ;;
6522  *)
6523    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6524    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6525    ;;
6526  esac
6527  ;;
6528
6529interix[3-9]*)
6530  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6531  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6532  ;;
6533
6534irix5* | irix6* | nonstopux*)
6535  case $LD in
6536  *-32|*"-32 ") libmagic=32-bit;;
6537  *-n32|*"-n32 ") libmagic=N32;;
6538  *-64|*"-64 ") libmagic=64-bit;;
6539  *) libmagic=never-match;;
6540  esac
6541  lt_cv_deplibs_check_method=pass_all
6542  ;;
6543
6544# This must be glibc/ELF.
6545linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6546  lt_cv_deplibs_check_method=pass_all
6547  ;;
6548
6549netbsd*)
6550  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6552  else
6553    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6554  fi
6555  ;;
6556
6557newos6*)
6558  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6559  lt_cv_file_magic_cmd=$FILECMD
6560  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6561  ;;
6562
6563*nto* | *qnx*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566
6567openbsd* | bitrig*)
6568  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6570  else
6571    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6572  fi
6573  ;;
6574
6575osf3* | osf4* | osf5*)
6576  lt_cv_deplibs_check_method=pass_all
6577  ;;
6578
6579rdos*)
6580  lt_cv_deplibs_check_method=pass_all
6581  ;;
6582
6583solaris*)
6584  lt_cv_deplibs_check_method=pass_all
6585  ;;
6586
6587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6588  lt_cv_deplibs_check_method=pass_all
6589  ;;
6590
6591sysv4 | sysv4.3*)
6592  case $host_vendor in
6593  motorola)
6594    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]'
6595    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6596    ;;
6597  ncr)
6598    lt_cv_deplibs_check_method=pass_all
6599    ;;
6600  sequent)
6601    lt_cv_file_magic_cmd='/bin/file'
6602    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6603    ;;
6604  sni)
6605    lt_cv_file_magic_cmd='/bin/file'
6606    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6607    lt_cv_file_magic_test_file=/lib/libc.so
6608    ;;
6609  siemens)
6610    lt_cv_deplibs_check_method=pass_all
6611    ;;
6612  pc)
6613    lt_cv_deplibs_check_method=pass_all
6614    ;;
6615  esac
6616  ;;
6617
6618tpf*)
6619  lt_cv_deplibs_check_method=pass_all
6620  ;;
6621os2*)
6622  lt_cv_deplibs_check_method=pass_all
6623  ;;
6624esac
6625
6626fi
6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6628printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6629
6630file_magic_glob=
6631want_nocaseglob=no
6632if test "$build" = "$host"; then
6633  case $host_os in
6634  mingw* | pw32*)
6635    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6636      want_nocaseglob=yes
6637    else
6638      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6639    fi
6640    ;;
6641  esac
6642fi
6643
6644file_magic_cmd=$lt_cv_file_magic_cmd
6645deplibs_check_method=$lt_cv_deplibs_check_method
6646test -z "$deplibs_check_method" && deplibs_check_method=unknown
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669if test -n "$ac_tool_prefix"; then
6670  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6671set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673printf %s "checking for $ac_word... " >&6; }
6674if test ${ac_cv_prog_DLLTOOL+y}
6675then :
6676  printf %s "(cached) " >&6
6677else $as_nop
6678  if test -n "$DLLTOOL"; then
6679  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684  IFS=$as_save_IFS
6685  case $as_dir in #(((
6686    '') as_dir=./ ;;
6687    */) ;;
6688    *) as_dir=$as_dir/ ;;
6689  esac
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6693    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702DLLTOOL=$ac_cv_prog_DLLTOOL
6703if test -n "$DLLTOOL"; then
6704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6705printf "%s\n" "$DLLTOOL" >&6; }
6706else
6707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708printf "%s\n" "no" >&6; }
6709fi
6710
6711
6712fi
6713if test -z "$ac_cv_prog_DLLTOOL"; then
6714  ac_ct_DLLTOOL=$DLLTOOL
6715  # Extract the first word of "dlltool", so it can be a program name with args.
6716set dummy dlltool; ac_word=$2
6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718printf %s "checking for $ac_word... " >&6; }
6719if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6720then :
6721  printf %s "(cached) " >&6
6722else $as_nop
6723  if test -n "$ac_ct_DLLTOOL"; then
6724  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  case $as_dir in #(((
6731    '') as_dir=./ ;;
6732    */) ;;
6733    *) as_dir=$as_dir/ ;;
6734  esac
6735    for ac_exec_ext in '' $ac_executable_extensions; do
6736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6737    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742  done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6748if test -n "$ac_ct_DLLTOOL"; then
6749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6750printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6751else
6752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753printf "%s\n" "no" >&6; }
6754fi
6755
6756  if test "x$ac_ct_DLLTOOL" = x; then
6757    DLLTOOL="false"
6758  else
6759    case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765    DLLTOOL=$ac_ct_DLLTOOL
6766  fi
6767else
6768  DLLTOOL="$ac_cv_prog_DLLTOOL"
6769fi
6770
6771test -z "$DLLTOOL" && DLLTOOL=dlltool
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6783printf %s "checking how to associate runtime and link libraries... " >&6; }
6784if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6785then :
6786  printf %s "(cached) " >&6
6787else $as_nop
6788  lt_cv_sharedlib_from_linklib_cmd='unknown'
6789
6790case $host_os in
6791cygwin* | mingw* | pw32* | cegcc*)
6792  # two different shell functions defined in ltmain.sh;
6793  # decide which one to use based on capabilities of $DLLTOOL
6794  case `$DLLTOOL --help 2>&1` in
6795  *--identify-strict*)
6796    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6797    ;;
6798  *)
6799    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6800    ;;
6801  esac
6802  ;;
6803*)
6804  # fallback: assume linklib IS sharedlib
6805  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6806  ;;
6807esac
6808
6809fi
6810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6811printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6812sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6813test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6814
6815
6816
6817
6818
6819
6820
6821if test -n "$ac_tool_prefix"; then
6822  for ac_prog in ar
6823  do
6824    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827printf %s "checking for $ac_word... " >&6; }
6828if test ${ac_cv_prog_AR+y}
6829then :
6830  printf %s "(cached) " >&6
6831else $as_nop
6832  if test -n "$AR"; then
6833  ac_cv_prog_AR="$AR" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838  IFS=$as_save_IFS
6839  case $as_dir in #(((
6840    '') as_dir=./ ;;
6841    */) ;;
6842    *) as_dir=$as_dir/ ;;
6843  esac
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6846    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856AR=$ac_cv_prog_AR
6857if test -n "$AR"; then
6858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6859printf "%s\n" "$AR" >&6; }
6860else
6861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862printf "%s\n" "no" >&6; }
6863fi
6864
6865
6866    test -n "$AR" && break
6867  done
6868fi
6869if test -z "$AR"; then
6870  ac_ct_AR=$AR
6871  for ac_prog in ar
6872do
6873  # Extract the first word of "$ac_prog", so it can be a program name with args.
6874set dummy $ac_prog; ac_word=$2
6875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876printf %s "checking for $ac_word... " >&6; }
6877if test ${ac_cv_prog_ac_ct_AR+y}
6878then :
6879  printf %s "(cached) " >&6
6880else $as_nop
6881  if test -n "$ac_ct_AR"; then
6882  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  case $as_dir in #(((
6889    '') as_dir=./ ;;
6890    */) ;;
6891    *) as_dir=$as_dir/ ;;
6892  esac
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6895    ac_cv_prog_ac_ct_AR="$ac_prog"
6896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905ac_ct_AR=$ac_cv_prog_ac_ct_AR
6906if test -n "$ac_ct_AR"; then
6907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6908printf "%s\n" "$ac_ct_AR" >&6; }
6909else
6910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911printf "%s\n" "no" >&6; }
6912fi
6913
6914
6915  test -n "$ac_ct_AR" && break
6916done
6917
6918  if test "x$ac_ct_AR" = x; then
6919    AR="false"
6920  else
6921    case $cross_compiling:$ac_tool_warned in
6922yes:)
6923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925ac_tool_warned=yes ;;
6926esac
6927    AR=$ac_ct_AR
6928  fi
6929fi
6930
6931: ${AR=ar}
6932
6933
6934
6935
6936
6937
6938# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6939# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6940# higher priority because thats what people were doing historically (setting
6941# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6942# variable obsoleted/removed.
6943
6944test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6945lt_ar_flags=$AR_FLAGS
6946
6947
6948
6949
6950
6951
6952# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6953# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6954
6955
6956
6957
6958
6959
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6961printf %s "checking for archiver @FILE support... " >&6; }
6962if test ${lt_cv_ar_at_file+y}
6963then :
6964  printf %s "(cached) " >&6
6965else $as_nop
6966  lt_cv_ar_at_file=no
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969
6970int
6971main (void)
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978if ac_fn_c_try_compile "$LINENO"
6979then :
6980  echo conftest.$ac_objext > conftest.lst
6981      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6982      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6983  (eval $lt_ar_try) 2>&5
6984  ac_status=$?
6985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986  test $ac_status = 0; }
6987      if test 0 -eq "$ac_status"; then
6988	# Ensure the archiver fails upon bogus file names.
6989	rm -f conftest.$ac_objext libconftest.a
6990	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6991  (eval $lt_ar_try) 2>&5
6992  ac_status=$?
6993  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994  test $ac_status = 0; }
6995	if test 0 -ne "$ac_status"; then
6996          lt_cv_ar_at_file=@
6997        fi
6998      fi
6999      rm -f conftest.* libconftest.a
7000
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7003
7004fi
7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7006printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7007
7008if test no = "$lt_cv_ar_at_file"; then
7009  archiver_list_spec=
7010else
7011  archiver_list_spec=$lt_cv_ar_at_file
7012fi
7013
7014
7015
7016
7017
7018
7019
7020if test -n "$ac_tool_prefix"; then
7021  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}strip; ac_word=$2
7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024printf %s "checking for $ac_word... " >&6; }
7025if test ${ac_cv_prog_STRIP+y}
7026then :
7027  printf %s "(cached) " >&6
7028else $as_nop
7029  if test -n "$STRIP"; then
7030  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035  IFS=$as_save_IFS
7036  case $as_dir in #(((
7037    '') as_dir=./ ;;
7038    */) ;;
7039    *) as_dir=$as_dir/ ;;
7040  esac
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053STRIP=$ac_cv_prog_STRIP
7054if test -n "$STRIP"; then
7055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7056printf "%s\n" "$STRIP" >&6; }
7057else
7058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059printf "%s\n" "no" >&6; }
7060fi
7061
7062
7063fi
7064if test -z "$ac_cv_prog_STRIP"; then
7065  ac_ct_STRIP=$STRIP
7066  # Extract the first word of "strip", so it can be a program name with args.
7067set dummy strip; ac_word=$2
7068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069printf %s "checking for $ac_word... " >&6; }
7070if test ${ac_cv_prog_ac_ct_STRIP+y}
7071then :
7072  printf %s "(cached) " >&6
7073else $as_nop
7074  if test -n "$ac_ct_STRIP"; then
7075  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  case $as_dir in #(((
7082    '') as_dir=./ ;;
7083    */) ;;
7084    *) as_dir=$as_dir/ ;;
7085  esac
7086    for ac_exec_ext in '' $ac_executable_extensions; do
7087  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7088    ac_cv_prog_ac_ct_STRIP="strip"
7089    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7090    break 2
7091  fi
7092done
7093  done
7094IFS=$as_save_IFS
7095
7096fi
7097fi
7098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7099if test -n "$ac_ct_STRIP"; then
7100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7101printf "%s\n" "$ac_ct_STRIP" >&6; }
7102else
7103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104printf "%s\n" "no" >&6; }
7105fi
7106
7107  if test "x$ac_ct_STRIP" = x; then
7108    STRIP=":"
7109  else
7110    case $cross_compiling:$ac_tool_warned in
7111yes:)
7112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114ac_tool_warned=yes ;;
7115esac
7116    STRIP=$ac_ct_STRIP
7117  fi
7118else
7119  STRIP="$ac_cv_prog_STRIP"
7120fi
7121
7122test -z "$STRIP" && STRIP=:
7123
7124
7125
7126
7127
7128
7129if test -n "$ac_tool_prefix"; then
7130  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133printf %s "checking for $ac_word... " >&6; }
7134if test ${ac_cv_prog_RANLIB+y}
7135then :
7136  printf %s "(cached) " >&6
7137else $as_nop
7138  if test -n "$RANLIB"; then
7139  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144  IFS=$as_save_IFS
7145  case $as_dir in #(((
7146    '') as_dir=./ ;;
7147    */) ;;
7148    *) as_dir=$as_dir/ ;;
7149  esac
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162RANLIB=$ac_cv_prog_RANLIB
7163if test -n "$RANLIB"; then
7164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7165printf "%s\n" "$RANLIB" >&6; }
7166else
7167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168printf "%s\n" "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_RANLIB"; then
7174  ac_ct_RANLIB=$RANLIB
7175  # Extract the first word of "ranlib", so it can be a program name with args.
7176set dummy ranlib; ac_word=$2
7177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178printf %s "checking for $ac_word... " >&6; }
7179if test ${ac_cv_prog_ac_ct_RANLIB+y}
7180then :
7181  printf %s "(cached) " >&6
7182else $as_nop
7183  if test -n "$ac_ct_RANLIB"; then
7184  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189  IFS=$as_save_IFS
7190  case $as_dir in #(((
7191    '') as_dir=./ ;;
7192    */) ;;
7193    *) as_dir=$as_dir/ ;;
7194  esac
7195    for ac_exec_ext in '' $ac_executable_extensions; do
7196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7197    ac_cv_prog_ac_ct_RANLIB="ranlib"
7198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7199    break 2
7200  fi
7201done
7202  done
7203IFS=$as_save_IFS
7204
7205fi
7206fi
7207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7208if test -n "$ac_ct_RANLIB"; then
7209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7210printf "%s\n" "$ac_ct_RANLIB" >&6; }
7211else
7212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213printf "%s\n" "no" >&6; }
7214fi
7215
7216  if test "x$ac_ct_RANLIB" = x; then
7217    RANLIB=":"
7218  else
7219    case $cross_compiling:$ac_tool_warned in
7220yes:)
7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223ac_tool_warned=yes ;;
7224esac
7225    RANLIB=$ac_ct_RANLIB
7226  fi
7227else
7228  RANLIB="$ac_cv_prog_RANLIB"
7229fi
7230
7231test -z "$RANLIB" && RANLIB=:
7232
7233
7234
7235
7236
7237
7238# Determine commands to create old-style static archives.
7239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7240old_postinstall_cmds='chmod 644 $oldlib'
7241old_postuninstall_cmds=
7242
7243if test -n "$RANLIB"; then
7244  case $host_os in
7245  bitrig* | openbsd*)
7246    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7247    ;;
7248  *)
7249    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7250    ;;
7251  esac
7252  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7253fi
7254
7255case $host_os in
7256  darwin*)
7257    lock_old_archive_extraction=yes ;;
7258  *)
7259    lock_old_archive_extraction=no ;;
7260esac
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300# If no C compiler was specified, use CC.
7301LTCC=${LTCC-"$CC"}
7302
7303# If no C compiler flags were specified, use CFLAGS.
7304LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7305
7306# Allow CC to be a program name with arguments.
7307compiler=$CC
7308
7309
7310# Check for command to grab the raw symbol name followed by C symbol from nm.
7311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7312printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7313if test ${lt_cv_sys_global_symbol_pipe+y}
7314then :
7315  printf %s "(cached) " >&6
7316else $as_nop
7317
7318# These are sane defaults that work on at least a few old systems.
7319# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7320
7321# Character class describing NM global symbol codes.
7322symcode='[BCDEGRST]'
7323
7324# Regexp to match symbols that can be accessed directly from C.
7325sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7326
7327# Define system-specific variables.
7328case $host_os in
7329aix*)
7330  symcode='[BCDT]'
7331  ;;
7332cygwin* | mingw* | pw32* | cegcc*)
7333  symcode='[ABCDGISTW]'
7334  ;;
7335hpux*)
7336  if test ia64 = "$host_cpu"; then
7337    symcode='[ABCDEGRST]'
7338  fi
7339  ;;
7340irix* | nonstopux*)
7341  symcode='[BCDEGRST]'
7342  ;;
7343osf*)
7344  symcode='[BCDEGQRST]'
7345  ;;
7346solaris*)
7347  symcode='[BDRT]'
7348  ;;
7349sco3.2v5*)
7350  symcode='[DT]'
7351  ;;
7352sysv4.2uw2*)
7353  symcode='[DT]'
7354  ;;
7355sysv5* | sco5v6* | unixware* | OpenUNIX*)
7356  symcode='[ABDT]'
7357  ;;
7358sysv4)
7359  symcode='[DFNSTU]'
7360  ;;
7361esac
7362
7363# If we're using GNU nm, then use its standard symbol codes.
7364case `$NM -V 2>&1` in
7365*GNU* | *'with BFD'*)
7366  symcode='[ABCDGIRSTW]' ;;
7367esac
7368
7369if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7370  # Gets list of data symbols to import.
7371  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7372  # Adjust the below global symbol transforms to fixup imported variables.
7373  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7374  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7375  lt_c_name_lib_hook="\
7376  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7377  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7378else
7379  # Disable hooks by default.
7380  lt_cv_sys_global_symbol_to_import=
7381  lt_cdecl_hook=
7382  lt_c_name_hook=
7383  lt_c_name_lib_hook=
7384fi
7385
7386# Transform an extracted symbol line into a proper C declaration.
7387# Some systems (esp. on ia64) link data and code symbols differently,
7388# so use this general approach.
7389lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7390$lt_cdecl_hook\
7391" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7392" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7393
7394# Transform an extracted symbol line into symbol name and symbol address
7395lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7396$lt_c_name_hook\
7397" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7398" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7399
7400# Transform an extracted symbol line into symbol name with lib prefix and
7401# symbol address.
7402lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7403$lt_c_name_lib_hook\
7404" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7405" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7406" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7407
7408# Handle CRLF in mingw tool chain
7409opt_cr=
7410case $build_os in
7411mingw*)
7412  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7413  ;;
7414esac
7415
7416# Try without a prefix underscore, then with it.
7417for ac_symprfx in "" "_"; do
7418
7419  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7420  symxfrm="\\1 $ac_symprfx\\2 \\2"
7421
7422  # Write the raw and C identifiers.
7423  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7424    # Fake it for dumpbin and say T for any non-static function,
7425    # D for any global variable and I for any imported variable.
7426    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7427    # which start with @ or ?.
7428    lt_cv_sys_global_symbol_pipe="$AWK '"\
7429"     {last_section=section; section=\$ 3};"\
7430"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7431"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7432"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7433"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7434"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7435"     \$ 0!~/External *\|/{next};"\
7436"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7437"     {if(hide[section]) next};"\
7438"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7439"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7440"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7441"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7442"     ' prfx=^$ac_symprfx"
7443  else
7444    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7445  fi
7446  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7447
7448  # Check to see that the pipe works correctly.
7449  pipe_works=no
7450
7451  rm -f conftest*
7452  cat > conftest.$ac_ext <<_LT_EOF
7453#ifdef __cplusplus
7454extern "C" {
7455#endif
7456char nm_test_var;
7457void nm_test_func(void);
7458void nm_test_func(void){}
7459#ifdef __cplusplus
7460}
7461#endif
7462int main(){nm_test_var='a';nm_test_func();return(0);}
7463_LT_EOF
7464
7465  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466  (eval $ac_compile) 2>&5
7467  ac_status=$?
7468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469  test $ac_status = 0; }; then
7470    # Now try to grab the symbols.
7471    nlist=conftest.nm
7472    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7473  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7474  ac_status=$?
7475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476  test $ac_status = 0; } && test -s "$nlist"; then
7477      # Try sorting and uniquifying the output.
7478      if sort "$nlist" | uniq > "$nlist"T; then
7479	mv -f "$nlist"T "$nlist"
7480      else
7481	rm -f "$nlist"T
7482      fi
7483
7484      # Make sure that we snagged all the symbols we need.
7485      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7486	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7487	  cat <<_LT_EOF > conftest.$ac_ext
7488/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7489#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7490/* DATA imports from DLLs on WIN32 can't be const, because runtime
7491   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7492# define LT_DLSYM_CONST
7493#elif defined __osf__
7494/* This system does not cope well with relocations in const data.  */
7495# define LT_DLSYM_CONST
7496#else
7497# define LT_DLSYM_CONST const
7498#endif
7499
7500#ifdef __cplusplus
7501extern "C" {
7502#endif
7503
7504_LT_EOF
7505	  # Now generate the symbol file.
7506	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7507
7508	  cat <<_LT_EOF >> conftest.$ac_ext
7509
7510/* The mapping between symbol names and symbols.  */
7511LT_DLSYM_CONST struct {
7512  const char *name;
7513  void       *address;
7514}
7515lt__PROGRAM__LTX_preloaded_symbols[] =
7516{
7517  { "@PROGRAM@", (void *) 0 },
7518_LT_EOF
7519	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7520	  cat <<\_LT_EOF >> conftest.$ac_ext
7521  {0, (void *) 0}
7522};
7523
7524/* This works around a problem in FreeBSD linker */
7525#ifdef FREEBSD_WORKAROUND
7526static const void *lt_preloaded_setup() {
7527  return lt__PROGRAM__LTX_preloaded_symbols;
7528}
7529#endif
7530
7531#ifdef __cplusplus
7532}
7533#endif
7534_LT_EOF
7535	  # Now try linking the two files.
7536	  mv conftest.$ac_objext conftstm.$ac_objext
7537	  lt_globsym_save_LIBS=$LIBS
7538	  lt_globsym_save_CFLAGS=$CFLAGS
7539	  LIBS=conftstm.$ac_objext
7540	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7541	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7542  (eval $ac_link) 2>&5
7543  ac_status=$?
7544  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7546	    pipe_works=yes
7547	  fi
7548	  LIBS=$lt_globsym_save_LIBS
7549	  CFLAGS=$lt_globsym_save_CFLAGS
7550	else
7551	  echo "cannot find nm_test_func in $nlist" >&5
7552	fi
7553      else
7554	echo "cannot find nm_test_var in $nlist" >&5
7555      fi
7556    else
7557      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7558    fi
7559  else
7560    echo "$progname: failed program was:" >&5
7561    cat conftest.$ac_ext >&5
7562  fi
7563  rm -rf conftest* conftst*
7564
7565  # Do not use the global_symbol_pipe unless it works.
7566  if test yes = "$pipe_works"; then
7567    break
7568  else
7569    lt_cv_sys_global_symbol_pipe=
7570  fi
7571done
7572
7573fi
7574
7575if test -z "$lt_cv_sys_global_symbol_pipe"; then
7576  lt_cv_sys_global_symbol_to_cdecl=
7577fi
7578if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7580printf "%s\n" "failed" >&6; }
7581else
7582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7583printf "%s\n" "ok" >&6; }
7584fi
7585
7586# Response file support.
7587if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7588  nm_file_list_spec='@'
7589elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7590  nm_file_list_spec='@'
7591fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7630printf %s "checking for sysroot... " >&6; }
7631
7632# Check whether --with-sysroot was given.
7633if test ${with_sysroot+y}
7634then :
7635  withval=$with_sysroot;
7636else $as_nop
7637  with_sysroot=no
7638fi
7639
7640
7641lt_sysroot=
7642case $with_sysroot in #(
7643 yes)
7644   if test yes = "$GCC"; then
7645     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7646   fi
7647   ;; #(
7648 /*)
7649   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7650   ;; #(
7651 no|'')
7652   ;; #(
7653 *)
7654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7655printf "%s\n" "$with_sysroot" >&6; }
7656   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7657   ;;
7658esac
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7661printf "%s\n" "${lt_sysroot:-no}" >&6; }
7662
7663
7664
7665
7666
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7668printf %s "checking for a working dd... " >&6; }
7669if test ${ac_cv_path_lt_DD+y}
7670then :
7671  printf %s "(cached) " >&6
7672else $as_nop
7673  printf 0123456789abcdef0123456789abcdef >conftest.i
7674cat conftest.i conftest.i >conftest2.i
7675: ${lt_DD:=$DD}
7676if test -z "$lt_DD"; then
7677  ac_path_lt_DD_found=false
7678  # Loop through the user's path and test for each of PROGNAME-LIST
7679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  case $as_dir in #(((
7684    '') as_dir=./ ;;
7685    */) ;;
7686    *) as_dir=$as_dir/ ;;
7687  esac
7688    for ac_prog in dd
7689   do
7690    for ac_exec_ext in '' $ac_executable_extensions; do
7691      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7692      as_fn_executable_p "$ac_path_lt_DD" || continue
7693if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7694  cmp -s conftest.i conftest.out \
7695  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7696fi
7697      $ac_path_lt_DD_found && break 3
7698    done
7699  done
7700  done
7701IFS=$as_save_IFS
7702  if test -z "$ac_cv_path_lt_DD"; then
7703    :
7704  fi
7705else
7706  ac_cv_path_lt_DD=$lt_DD
7707fi
7708
7709rm -f conftest.i conftest2.i conftest.out
7710fi
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7712printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7713
7714
7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7716printf %s "checking how to truncate binary pipes... " >&6; }
7717if test ${lt_cv_truncate_bin+y}
7718then :
7719  printf %s "(cached) " >&6
7720else $as_nop
7721  printf 0123456789abcdef0123456789abcdef >conftest.i
7722cat conftest.i conftest.i >conftest2.i
7723lt_cv_truncate_bin=
7724if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7725  cmp -s conftest.i conftest.out \
7726  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7727fi
7728rm -f conftest.i conftest2.i conftest.out
7729test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7730fi
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7732printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7733
7734
7735
7736
7737
7738
7739
7740# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7741func_cc_basename ()
7742{
7743    for cc_temp in $*""; do
7744      case $cc_temp in
7745        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7746        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7747        \-*) ;;
7748        *) break;;
7749      esac
7750    done
7751    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7752}
7753
7754# Check whether --enable-libtool-lock was given.
7755if test ${enable_libtool_lock+y}
7756then :
7757  enableval=$enable_libtool_lock;
7758fi
7759
7760test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7761
7762# Some flags need to be propagated to the compiler or linker for good
7763# libtool support.
7764case $host in
7765ia64-*-hpux*)
7766  # Find out what ABI is being produced by ac_compile, and set mode
7767  # options accordingly.
7768  echo 'int i;' > conftest.$ac_ext
7769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7770  (eval $ac_compile) 2>&5
7771  ac_status=$?
7772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773  test $ac_status = 0; }; then
7774    case `$FILECMD conftest.$ac_objext` in
7775      *ELF-32*)
7776	HPUX_IA64_MODE=32
7777	;;
7778      *ELF-64*)
7779	HPUX_IA64_MODE=64
7780	;;
7781    esac
7782  fi
7783  rm -rf conftest*
7784  ;;
7785*-*-irix6*)
7786  # Find out what ABI is being produced by ac_compile, and set linker
7787  # options accordingly.
7788  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7789  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7790  (eval $ac_compile) 2>&5
7791  ac_status=$?
7792  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793  test $ac_status = 0; }; then
7794    if test yes = "$lt_cv_prog_gnu_ld"; then
7795      case `$FILECMD conftest.$ac_objext` in
7796	*32-bit*)
7797	  LD="${LD-ld} -melf32bsmip"
7798	  ;;
7799	*N32*)
7800	  LD="${LD-ld} -melf32bmipn32"
7801	  ;;
7802	*64-bit*)
7803	  LD="${LD-ld} -melf64bmip"
7804	;;
7805      esac
7806    else
7807      case `$FILECMD conftest.$ac_objext` in
7808	*32-bit*)
7809	  LD="${LD-ld} -32"
7810	  ;;
7811	*N32*)
7812	  LD="${LD-ld} -n32"
7813	  ;;
7814	*64-bit*)
7815	  LD="${LD-ld} -64"
7816	  ;;
7817      esac
7818    fi
7819  fi
7820  rm -rf conftest*
7821  ;;
7822
7823mips64*-*linux*)
7824  # Find out what ABI is being produced by ac_compile, and set linker
7825  # options accordingly.
7826  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7827  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828  (eval $ac_compile) 2>&5
7829  ac_status=$?
7830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831  test $ac_status = 0; }; then
7832    emul=elf
7833    case `$FILECMD conftest.$ac_objext` in
7834      *32-bit*)
7835	emul="${emul}32"
7836	;;
7837      *64-bit*)
7838	emul="${emul}64"
7839	;;
7840    esac
7841    case `$FILECMD conftest.$ac_objext` in
7842      *MSB*)
7843	emul="${emul}btsmip"
7844	;;
7845      *LSB*)
7846	emul="${emul}ltsmip"
7847	;;
7848    esac
7849    case `$FILECMD conftest.$ac_objext` in
7850      *N32*)
7851	emul="${emul}n32"
7852	;;
7853    esac
7854    LD="${LD-ld} -m $emul"
7855  fi
7856  rm -rf conftest*
7857  ;;
7858
7859x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7861  # Find out what ABI is being produced by ac_compile, and set linker
7862  # options accordingly.  Note that the listed cases only cover the
7863  # situations where additional linker options are needed (such as when
7864  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7865  # vice versa); the common cases where no linker options are needed do
7866  # not appear in the list.
7867  echo 'int i;' > conftest.$ac_ext
7868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869  (eval $ac_compile) 2>&5
7870  ac_status=$?
7871  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872  test $ac_status = 0; }; then
7873    case `$FILECMD conftest.o` in
7874      *32-bit*)
7875	case $host in
7876	  x86_64-*kfreebsd*-gnu)
7877	    LD="${LD-ld} -m elf_i386_fbsd"
7878	    ;;
7879	  x86_64-*linux*)
7880	    case `$FILECMD conftest.o` in
7881	      *x86-64*)
7882		LD="${LD-ld} -m elf32_x86_64"
7883		;;
7884	      *)
7885		LD="${LD-ld} -m elf_i386"
7886		;;
7887	    esac
7888	    ;;
7889	  powerpc64le-*linux*)
7890	    LD="${LD-ld} -m elf32lppclinux"
7891	    ;;
7892	  powerpc64-*linux*)
7893	    LD="${LD-ld} -m elf32ppclinux"
7894	    ;;
7895	  s390x-*linux*)
7896	    LD="${LD-ld} -m elf_s390"
7897	    ;;
7898	  sparc64-*linux*)
7899	    LD="${LD-ld} -m elf32_sparc"
7900	    ;;
7901	esac
7902	;;
7903      *64-bit*)
7904	case $host in
7905	  x86_64-*kfreebsd*-gnu)
7906	    LD="${LD-ld} -m elf_x86_64_fbsd"
7907	    ;;
7908	  x86_64-*linux*)
7909	    LD="${LD-ld} -m elf_x86_64"
7910	    ;;
7911	  powerpcle-*linux*)
7912	    LD="${LD-ld} -m elf64lppc"
7913	    ;;
7914	  powerpc-*linux*)
7915	    LD="${LD-ld} -m elf64ppc"
7916	    ;;
7917	  s390*-*linux*|s390*-*tpf*)
7918	    LD="${LD-ld} -m elf64_s390"
7919	    ;;
7920	  sparc*-*linux*)
7921	    LD="${LD-ld} -m elf64_sparc"
7922	    ;;
7923	esac
7924	;;
7925    esac
7926  fi
7927  rm -rf conftest*
7928  ;;
7929
7930*-*-sco3.2v5*)
7931  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7932  SAVE_CFLAGS=$CFLAGS
7933  CFLAGS="$CFLAGS -belf"
7934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7935printf %s "checking whether the C compiler needs -belf... " >&6; }
7936if test ${lt_cv_cc_needs_belf+y}
7937then :
7938  printf %s "(cached) " >&6
7939else $as_nop
7940  ac_ext=c
7941ac_cpp='$CPP $CPPFLAGS'
7942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948
7949int
7950main (void)
7951{
7952
7953  ;
7954  return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"
7958then :
7959  lt_cv_cc_needs_belf=yes
7960else $as_nop
7961  lt_cv_cc_needs_belf=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext conftest.beam \
7964    conftest$ac_exeext conftest.$ac_ext
7965     ac_ext=c
7966ac_cpp='$CPP $CPPFLAGS'
7967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971fi
7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7973printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7974  if test yes != "$lt_cv_cc_needs_belf"; then
7975    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7976    CFLAGS=$SAVE_CFLAGS
7977  fi
7978  ;;
7979*-*solaris*)
7980  # Find out what ABI is being produced by ac_compile, and set linker
7981  # options accordingly.
7982  echo 'int i;' > conftest.$ac_ext
7983  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7984  (eval $ac_compile) 2>&5
7985  ac_status=$?
7986  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7987  test $ac_status = 0; }; then
7988    case `$FILECMD conftest.o` in
7989    *64-bit*)
7990      case $lt_cv_prog_gnu_ld in
7991      yes*)
7992        case $host in
7993        i?86-*-solaris*|x86_64-*-solaris*)
7994          LD="${LD-ld} -m elf_x86_64"
7995          ;;
7996        sparc*-*-solaris*)
7997          LD="${LD-ld} -m elf64_sparc"
7998          ;;
7999        esac
8000        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8001        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8002          LD=${LD-ld}_sol2
8003        fi
8004        ;;
8005      *)
8006	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8007	  LD="${LD-ld} -64"
8008	fi
8009	;;
8010      esac
8011      ;;
8012    esac
8013  fi
8014  rm -rf conftest*
8015  ;;
8016esac
8017
8018need_locks=$enable_libtool_lock
8019
8020if test -n "$ac_tool_prefix"; then
8021  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8022set dummy ${ac_tool_prefix}mt; ac_word=$2
8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024printf %s "checking for $ac_word... " >&6; }
8025if test ${ac_cv_prog_MANIFEST_TOOL+y}
8026then :
8027  printf %s "(cached) " >&6
8028else $as_nop
8029  if test -n "$MANIFEST_TOOL"; then
8030  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  case $as_dir in #(((
8037    '') as_dir=./ ;;
8038    */) ;;
8039    *) as_dir=$as_dir/ ;;
8040  esac
8041    for ac_exec_ext in '' $ac_executable_extensions; do
8042  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8043    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8045    break 2
8046  fi
8047done
8048  done
8049IFS=$as_save_IFS
8050
8051fi
8052fi
8053MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8054if test -n "$MANIFEST_TOOL"; then
8055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8056printf "%s\n" "$MANIFEST_TOOL" >&6; }
8057else
8058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059printf "%s\n" "no" >&6; }
8060fi
8061
8062
8063fi
8064if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8065  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8066  # Extract the first word of "mt", so it can be a program name with args.
8067set dummy mt; ac_word=$2
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069printf %s "checking for $ac_word... " >&6; }
8070if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8071then :
8072  printf %s "(cached) " >&6
8073else $as_nop
8074  if test -n "$ac_ct_MANIFEST_TOOL"; then
8075  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  case $as_dir in #(((
8082    '') as_dir=./ ;;
8083    */) ;;
8084    *) as_dir=$as_dir/ ;;
8085  esac
8086    for ac_exec_ext in '' $ac_executable_extensions; do
8087  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8089    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090    break 2
8091  fi
8092done
8093  done
8094IFS=$as_save_IFS
8095
8096fi
8097fi
8098ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8099if test -n "$ac_ct_MANIFEST_TOOL"; then
8100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8101printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8102else
8103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104printf "%s\n" "no" >&6; }
8105fi
8106
8107  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8108    MANIFEST_TOOL=":"
8109  else
8110    case $cross_compiling:$ac_tool_warned in
8111yes:)
8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114ac_tool_warned=yes ;;
8115esac
8116    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8117  fi
8118else
8119  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8120fi
8121
8122test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8124printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8125if test ${lt_cv_path_mainfest_tool+y}
8126then :
8127  printf %s "(cached) " >&6
8128else $as_nop
8129  lt_cv_path_mainfest_tool=no
8130  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8131  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8132  cat conftest.err >&5
8133  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8134    lt_cv_path_mainfest_tool=yes
8135  fi
8136  rm -f conftest*
8137fi
8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8139printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8140if test yes != "$lt_cv_path_mainfest_tool"; then
8141  MANIFEST_TOOL=:
8142fi
8143
8144
8145
8146
8147
8148
8149  case $host_os in
8150    rhapsody* | darwin*)
8151    if test -n "$ac_tool_prefix"; then
8152  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8153set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155printf %s "checking for $ac_word... " >&6; }
8156if test ${ac_cv_prog_DSYMUTIL+y}
8157then :
8158  printf %s "(cached) " >&6
8159else $as_nop
8160  if test -n "$DSYMUTIL"; then
8161  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166  IFS=$as_save_IFS
8167  case $as_dir in #(((
8168    '') as_dir=./ ;;
8169    */) ;;
8170    *) as_dir=$as_dir/ ;;
8171  esac
8172    for ac_exec_ext in '' $ac_executable_extensions; do
8173  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8174    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8175    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8176    break 2
8177  fi
8178done
8179  done
8180IFS=$as_save_IFS
8181
8182fi
8183fi
8184DSYMUTIL=$ac_cv_prog_DSYMUTIL
8185if test -n "$DSYMUTIL"; then
8186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8187printf "%s\n" "$DSYMUTIL" >&6; }
8188else
8189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190printf "%s\n" "no" >&6; }
8191fi
8192
8193
8194fi
8195if test -z "$ac_cv_prog_DSYMUTIL"; then
8196  ac_ct_DSYMUTIL=$DSYMUTIL
8197  # Extract the first word of "dsymutil", so it can be a program name with args.
8198set dummy dsymutil; ac_word=$2
8199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200printf %s "checking for $ac_word... " >&6; }
8201if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8202then :
8203  printf %s "(cached) " >&6
8204else $as_nop
8205  if test -n "$ac_ct_DSYMUTIL"; then
8206  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211  IFS=$as_save_IFS
8212  case $as_dir in #(((
8213    '') as_dir=./ ;;
8214    */) ;;
8215    *) as_dir=$as_dir/ ;;
8216  esac
8217    for ac_exec_ext in '' $ac_executable_extensions; do
8218  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8219    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8220    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8221    break 2
8222  fi
8223done
8224  done
8225IFS=$as_save_IFS
8226
8227fi
8228fi
8229ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8230if test -n "$ac_ct_DSYMUTIL"; then
8231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8232printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8233else
8234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235printf "%s\n" "no" >&6; }
8236fi
8237
8238  if test "x$ac_ct_DSYMUTIL" = x; then
8239    DSYMUTIL=":"
8240  else
8241    case $cross_compiling:$ac_tool_warned in
8242yes:)
8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245ac_tool_warned=yes ;;
8246esac
8247    DSYMUTIL=$ac_ct_DSYMUTIL
8248  fi
8249else
8250  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8251fi
8252
8253    if test -n "$ac_tool_prefix"; then
8254  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8255set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257printf %s "checking for $ac_word... " >&6; }
8258if test ${ac_cv_prog_NMEDIT+y}
8259then :
8260  printf %s "(cached) " >&6
8261else $as_nop
8262  if test -n "$NMEDIT"; then
8263  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268  IFS=$as_save_IFS
8269  case $as_dir in #(((
8270    '') as_dir=./ ;;
8271    */) ;;
8272    *) as_dir=$as_dir/ ;;
8273  esac
8274    for ac_exec_ext in '' $ac_executable_extensions; do
8275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8276    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281  done
8282IFS=$as_save_IFS
8283
8284fi
8285fi
8286NMEDIT=$ac_cv_prog_NMEDIT
8287if test -n "$NMEDIT"; then
8288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8289printf "%s\n" "$NMEDIT" >&6; }
8290else
8291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292printf "%s\n" "no" >&6; }
8293fi
8294
8295
8296fi
8297if test -z "$ac_cv_prog_NMEDIT"; then
8298  ac_ct_NMEDIT=$NMEDIT
8299  # Extract the first word of "nmedit", so it can be a program name with args.
8300set dummy nmedit; ac_word=$2
8301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302printf %s "checking for $ac_word... " >&6; }
8303if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8304then :
8305  printf %s "(cached) " >&6
8306else $as_nop
8307  if test -n "$ac_ct_NMEDIT"; then
8308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313  IFS=$as_save_IFS
8314  case $as_dir in #(((
8315    '') as_dir=./ ;;
8316    */) ;;
8317    *) as_dir=$as_dir/ ;;
8318  esac
8319    for ac_exec_ext in '' $ac_executable_extensions; do
8320  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8321    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8323    break 2
8324  fi
8325done
8326  done
8327IFS=$as_save_IFS
8328
8329fi
8330fi
8331ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8332if test -n "$ac_ct_NMEDIT"; then
8333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8334printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8335else
8336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337printf "%s\n" "no" >&6; }
8338fi
8339
8340  if test "x$ac_ct_NMEDIT" = x; then
8341    NMEDIT=":"
8342  else
8343    case $cross_compiling:$ac_tool_warned in
8344yes:)
8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347ac_tool_warned=yes ;;
8348esac
8349    NMEDIT=$ac_ct_NMEDIT
8350  fi
8351else
8352  NMEDIT="$ac_cv_prog_NMEDIT"
8353fi
8354
8355    if test -n "$ac_tool_prefix"; then
8356  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8357set dummy ${ac_tool_prefix}lipo; ac_word=$2
8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359printf %s "checking for $ac_word... " >&6; }
8360if test ${ac_cv_prog_LIPO+y}
8361then :
8362  printf %s "(cached) " >&6
8363else $as_nop
8364  if test -n "$LIPO"; then
8365  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370  IFS=$as_save_IFS
8371  case $as_dir in #(((
8372    '') as_dir=./ ;;
8373    */) ;;
8374    *) as_dir=$as_dir/ ;;
8375  esac
8376    for ac_exec_ext in '' $ac_executable_extensions; do
8377  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8379    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380    break 2
8381  fi
8382done
8383  done
8384IFS=$as_save_IFS
8385
8386fi
8387fi
8388LIPO=$ac_cv_prog_LIPO
8389if test -n "$LIPO"; then
8390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8391printf "%s\n" "$LIPO" >&6; }
8392else
8393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394printf "%s\n" "no" >&6; }
8395fi
8396
8397
8398fi
8399if test -z "$ac_cv_prog_LIPO"; then
8400  ac_ct_LIPO=$LIPO
8401  # Extract the first word of "lipo", so it can be a program name with args.
8402set dummy lipo; ac_word=$2
8403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404printf %s "checking for $ac_word... " >&6; }
8405if test ${ac_cv_prog_ac_ct_LIPO+y}
8406then :
8407  printf %s "(cached) " >&6
8408else $as_nop
8409  if test -n "$ac_ct_LIPO"; then
8410  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415  IFS=$as_save_IFS
8416  case $as_dir in #(((
8417    '') as_dir=./ ;;
8418    */) ;;
8419    *) as_dir=$as_dir/ ;;
8420  esac
8421    for ac_exec_ext in '' $ac_executable_extensions; do
8422  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8423    ac_cv_prog_ac_ct_LIPO="lipo"
8424    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8425    break 2
8426  fi
8427done
8428  done
8429IFS=$as_save_IFS
8430
8431fi
8432fi
8433ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8434if test -n "$ac_ct_LIPO"; then
8435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8436printf "%s\n" "$ac_ct_LIPO" >&6; }
8437else
8438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439printf "%s\n" "no" >&6; }
8440fi
8441
8442  if test "x$ac_ct_LIPO" = x; then
8443    LIPO=":"
8444  else
8445    case $cross_compiling:$ac_tool_warned in
8446yes:)
8447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449ac_tool_warned=yes ;;
8450esac
8451    LIPO=$ac_ct_LIPO
8452  fi
8453else
8454  LIPO="$ac_cv_prog_LIPO"
8455fi
8456
8457    if test -n "$ac_tool_prefix"; then
8458  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8459set dummy ${ac_tool_prefix}otool; ac_word=$2
8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461printf %s "checking for $ac_word... " >&6; }
8462if test ${ac_cv_prog_OTOOL+y}
8463then :
8464  printf %s "(cached) " >&6
8465else $as_nop
8466  if test -n "$OTOOL"; then
8467  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8468else
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472  IFS=$as_save_IFS
8473  case $as_dir in #(((
8474    '') as_dir=./ ;;
8475    */) ;;
8476    *) as_dir=$as_dir/ ;;
8477  esac
8478    for ac_exec_ext in '' $ac_executable_extensions; do
8479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8480    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8482    break 2
8483  fi
8484done
8485  done
8486IFS=$as_save_IFS
8487
8488fi
8489fi
8490OTOOL=$ac_cv_prog_OTOOL
8491if test -n "$OTOOL"; then
8492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8493printf "%s\n" "$OTOOL" >&6; }
8494else
8495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496printf "%s\n" "no" >&6; }
8497fi
8498
8499
8500fi
8501if test -z "$ac_cv_prog_OTOOL"; then
8502  ac_ct_OTOOL=$OTOOL
8503  # Extract the first word of "otool", so it can be a program name with args.
8504set dummy otool; ac_word=$2
8505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506printf %s "checking for $ac_word... " >&6; }
8507if test ${ac_cv_prog_ac_ct_OTOOL+y}
8508then :
8509  printf %s "(cached) " >&6
8510else $as_nop
8511  if test -n "$ac_ct_OTOOL"; then
8512  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517  IFS=$as_save_IFS
8518  case $as_dir in #(((
8519    '') as_dir=./ ;;
8520    */) ;;
8521    *) as_dir=$as_dir/ ;;
8522  esac
8523    for ac_exec_ext in '' $ac_executable_extensions; do
8524  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8525    ac_cv_prog_ac_ct_OTOOL="otool"
8526    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8527    break 2
8528  fi
8529done
8530  done
8531IFS=$as_save_IFS
8532
8533fi
8534fi
8535ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8536if test -n "$ac_ct_OTOOL"; then
8537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8538printf "%s\n" "$ac_ct_OTOOL" >&6; }
8539else
8540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541printf "%s\n" "no" >&6; }
8542fi
8543
8544  if test "x$ac_ct_OTOOL" = x; then
8545    OTOOL=":"
8546  else
8547    case $cross_compiling:$ac_tool_warned in
8548yes:)
8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8550printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551ac_tool_warned=yes ;;
8552esac
8553    OTOOL=$ac_ct_OTOOL
8554  fi
8555else
8556  OTOOL="$ac_cv_prog_OTOOL"
8557fi
8558
8559    if test -n "$ac_tool_prefix"; then
8560  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8561set dummy ${ac_tool_prefix}otool64; ac_word=$2
8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563printf %s "checking for $ac_word... " >&6; }
8564if test ${ac_cv_prog_OTOOL64+y}
8565then :
8566  printf %s "(cached) " >&6
8567else $as_nop
8568  if test -n "$OTOOL64"; then
8569  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8570else
8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572for as_dir in $PATH
8573do
8574  IFS=$as_save_IFS
8575  case $as_dir in #(((
8576    '') as_dir=./ ;;
8577    */) ;;
8578    *) as_dir=$as_dir/ ;;
8579  esac
8580    for ac_exec_ext in '' $ac_executable_extensions; do
8581  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8583    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8584    break 2
8585  fi
8586done
8587  done
8588IFS=$as_save_IFS
8589
8590fi
8591fi
8592OTOOL64=$ac_cv_prog_OTOOL64
8593if test -n "$OTOOL64"; then
8594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8595printf "%s\n" "$OTOOL64" >&6; }
8596else
8597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598printf "%s\n" "no" >&6; }
8599fi
8600
8601
8602fi
8603if test -z "$ac_cv_prog_OTOOL64"; then
8604  ac_ct_OTOOL64=$OTOOL64
8605  # Extract the first word of "otool64", so it can be a program name with args.
8606set dummy otool64; ac_word=$2
8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608printf %s "checking for $ac_word... " >&6; }
8609if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8610then :
8611  printf %s "(cached) " >&6
8612else $as_nop
8613  if test -n "$ac_ct_OTOOL64"; then
8614  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619  IFS=$as_save_IFS
8620  case $as_dir in #(((
8621    '') as_dir=./ ;;
8622    */) ;;
8623    *) as_dir=$as_dir/ ;;
8624  esac
8625    for ac_exec_ext in '' $ac_executable_extensions; do
8626  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8627    ac_cv_prog_ac_ct_OTOOL64="otool64"
8628    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632  done
8633IFS=$as_save_IFS
8634
8635fi
8636fi
8637ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8638if test -n "$ac_ct_OTOOL64"; then
8639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8640printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8641else
8642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643printf "%s\n" "no" >&6; }
8644fi
8645
8646  if test "x$ac_ct_OTOOL64" = x; then
8647    OTOOL64=":"
8648  else
8649    case $cross_compiling:$ac_tool_warned in
8650yes:)
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653ac_tool_warned=yes ;;
8654esac
8655    OTOOL64=$ac_ct_OTOOL64
8656  fi
8657else
8658  OTOOL64="$ac_cv_prog_OTOOL64"
8659fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8688printf %s "checking for -single_module linker flag... " >&6; }
8689if test ${lt_cv_apple_cc_single_mod+y}
8690then :
8691  printf %s "(cached) " >&6
8692else $as_nop
8693  lt_cv_apple_cc_single_mod=no
8694      if test -z "$LT_MULTI_MODULE"; then
8695	# By default we will add the -single_module flag. You can override
8696	# by either setting the environment variable LT_MULTI_MODULE
8697	# non-empty at configure time, or by adding -multi_module to the
8698	# link flags.
8699	rm -rf libconftest.dylib*
8700	echo "int foo(void){return 1;}" > conftest.c
8701	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8702-dynamiclib -Wl,-single_module conftest.c" >&5
8703	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8704	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8705        _lt_result=$?
8706	# If there is a non-empty error log, and "single_module"
8707	# appears in it, assume the flag caused a linker warning
8708        if test -s conftest.err && $GREP single_module conftest.err; then
8709	  cat conftest.err >&5
8710	# Otherwise, if the output was created with a 0 exit code from
8711	# the compiler, it worked.
8712	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8713	  lt_cv_apple_cc_single_mod=yes
8714	else
8715	  cat conftest.err >&5
8716	fi
8717	rm -rf libconftest.dylib*
8718	rm -f conftest.*
8719      fi
8720fi
8721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8722printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8723
8724    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8725printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8726if test ${lt_cv_ld_exported_symbols_list+y}
8727then :
8728  printf %s "(cached) " >&6
8729else $as_nop
8730  lt_cv_ld_exported_symbols_list=no
8731      save_LDFLAGS=$LDFLAGS
8732      echo "_main" > conftest.sym
8733      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736
8737int
8738main (void)
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_link "$LINENO"
8746then :
8747  lt_cv_ld_exported_symbols_list=yes
8748else $as_nop
8749  lt_cv_ld_exported_symbols_list=no
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.beam \
8752    conftest$ac_exeext conftest.$ac_ext
8753	LDFLAGS=$save_LDFLAGS
8754
8755fi
8756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8757printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8758
8759    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8760printf %s "checking for -force_load linker flag... " >&6; }
8761if test ${lt_cv_ld_force_load+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  lt_cv_ld_force_load=no
8766      cat > conftest.c << _LT_EOF
8767int forced_loaded() { return 2;}
8768_LT_EOF
8769      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8770      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8771      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8772      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8773      echo "$RANLIB libconftest.a" >&5
8774      $RANLIB libconftest.a 2>&5
8775      cat > conftest.c << _LT_EOF
8776int main() { return 0;}
8777_LT_EOF
8778      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8779      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8780      _lt_result=$?
8781      if test -s conftest.err && $GREP force_load conftest.err; then
8782	cat conftest.err >&5
8783      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8784	lt_cv_ld_force_load=yes
8785      else
8786	cat conftest.err >&5
8787      fi
8788        rm -f conftest.err libconftest.a conftest conftest.c
8789        rm -rf conftest.dSYM
8790
8791fi
8792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8793printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8794    case $host_os in
8795    rhapsody* | darwin1.[012])
8796      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8797    darwin1.*)
8798      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8799    darwin*)
8800      case $MACOSX_DEPLOYMENT_TARGET,$host in
8801        10.[012],*|,*powerpc*-darwin[5-8]*)
8802          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8803        *)
8804          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8805      esac
8806    ;;
8807  esac
8808    if test yes = "$lt_cv_apple_cc_single_mod"; then
8809      _lt_dar_single_mod='$single_module'
8810    fi
8811    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8812      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8813    else
8814      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8815    fi
8816    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8817      _lt_dsymutil='~$DSYMUTIL $lib || :'
8818    else
8819      _lt_dsymutil=
8820    fi
8821    ;;
8822  esac
8823
8824# func_munge_path_list VARIABLE PATH
8825# -----------------------------------
8826# VARIABLE is name of variable containing _space_ separated list of
8827# directories to be munged by the contents of PATH, which is string
8828# having a format:
8829# "DIR[:DIR]:"
8830#       string "DIR[ DIR]" will be prepended to VARIABLE
8831# ":DIR[:DIR]"
8832#       string "DIR[ DIR]" will be appended to VARIABLE
8833# "DIRP[:DIRP]::[DIRA:]DIRA"
8834#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8835#       "DIRA[ DIRA]" will be appended to VARIABLE
8836# "DIR[:DIR]"
8837#       VARIABLE will be replaced by "DIR[ DIR]"
8838func_munge_path_list ()
8839{
8840    case x$2 in
8841    x)
8842        ;;
8843    *:)
8844        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8845        ;;
8846    x:*)
8847        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8848        ;;
8849    *::*)
8850        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8851        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8852        ;;
8853    *)
8854        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8855        ;;
8856    esac
8857}
8858
8859ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8860"
8861if test "x$ac_cv_header_dlfcn_h" = xyes
8862then :
8863  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8864
8865fi
8866
8867
8868
8869
8870
8871# Set options
8872
8873
8874
8875        enable_dlopen=no
8876
8877
8878  enable_win32_dll=no
8879
8880
8881            # Check whether --enable-shared was given.
8882if test ${enable_shared+y}
8883then :
8884  enableval=$enable_shared; p=${PACKAGE-default}
8885    case $enableval in
8886    yes) enable_shared=yes ;;
8887    no) enable_shared=no ;;
8888    *)
8889      enable_shared=no
8890      # Look at the argument we got.  We use all the common list separators.
8891      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8892      for pkg in $enableval; do
8893	IFS=$lt_save_ifs
8894	if test "X$pkg" = "X$p"; then
8895	  enable_shared=yes
8896	fi
8897      done
8898      IFS=$lt_save_ifs
8899      ;;
8900    esac
8901else $as_nop
8902  enable_shared=yes
8903fi
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913  # Check whether --enable-static was given.
8914if test ${enable_static+y}
8915then :
8916  enableval=$enable_static; p=${PACKAGE-default}
8917    case $enableval in
8918    yes) enable_static=yes ;;
8919    no) enable_static=no ;;
8920    *)
8921     enable_static=no
8922      # Look at the argument we got.  We use all the common list separators.
8923      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8924      for pkg in $enableval; do
8925	IFS=$lt_save_ifs
8926	if test "X$pkg" = "X$p"; then
8927	  enable_static=yes
8928	fi
8929      done
8930      IFS=$lt_save_ifs
8931      ;;
8932    esac
8933else $as_nop
8934  enable_static=yes
8935fi
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946# Check whether --with-pic was given.
8947if test ${with_pic+y}
8948then :
8949  withval=$with_pic; lt_p=${PACKAGE-default}
8950    case $withval in
8951    yes|no) pic_mode=$withval ;;
8952    *)
8953      pic_mode=default
8954      # Look at the argument we got.  We use all the common list separators.
8955      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8956      for lt_pkg in $withval; do
8957	IFS=$lt_save_ifs
8958	if test "X$lt_pkg" = "X$lt_p"; then
8959	  pic_mode=yes
8960	fi
8961      done
8962      IFS=$lt_save_ifs
8963      ;;
8964    esac
8965else $as_nop
8966  pic_mode=default
8967fi
8968
8969
8970
8971
8972
8973
8974
8975
8976  # Check whether --enable-fast-install was given.
8977if test ${enable_fast_install+y}
8978then :
8979  enableval=$enable_fast_install; p=${PACKAGE-default}
8980    case $enableval in
8981    yes) enable_fast_install=yes ;;
8982    no) enable_fast_install=no ;;
8983    *)
8984      enable_fast_install=no
8985      # Look at the argument we got.  We use all the common list separators.
8986      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8987      for pkg in $enableval; do
8988	IFS=$lt_save_ifs
8989	if test "X$pkg" = "X$p"; then
8990	  enable_fast_install=yes
8991	fi
8992      done
8993      IFS=$lt_save_ifs
8994      ;;
8995    esac
8996else $as_nop
8997  enable_fast_install=yes
8998fi
8999
9000
9001
9002
9003
9004
9005
9006
9007  shared_archive_member_spec=
9008case $host,$enable_shared in
9009power*-*-aix[5-9]*,yes)
9010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9011printf %s "checking which variant of shared library versioning to provide... " >&6; }
9012
9013# Check whether --with-aix-soname was given.
9014if test ${with_aix_soname+y}
9015then :
9016  withval=$with_aix_soname; case $withval in
9017    aix|svr4|both)
9018      ;;
9019    *)
9020      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9021      ;;
9022    esac
9023    lt_cv_with_aix_soname=$with_aix_soname
9024else $as_nop
9025  if test ${lt_cv_with_aix_soname+y}
9026then :
9027  printf %s "(cached) " >&6
9028else $as_nop
9029  lt_cv_with_aix_soname=aix
9030fi
9031
9032    with_aix_soname=$lt_cv_with_aix_soname
9033fi
9034
9035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9036printf "%s\n" "$with_aix_soname" >&6; }
9037  if test aix != "$with_aix_soname"; then
9038    # For the AIX way of multilib, we name the shared archive member
9039    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9040    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9041    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9042    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9043    if test 64 = "${OBJECT_MODE-32}"; then
9044      shared_archive_member_spec=shr_64
9045    else
9046      shared_archive_member_spec=shr
9047    fi
9048  fi
9049  ;;
9050*)
9051  with_aix_soname=aix
9052  ;;
9053esac
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064# This can be used to rebuild libtool when needed
9065LIBTOOL_DEPS=$ltmain
9066
9067# Always use our own libtool.
9068LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099test -z "$LN_S" && LN_S="ln -s"
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114if test -n "${ZSH_VERSION+set}"; then
9115   setopt NO_GLOB_SUBST
9116fi
9117
9118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9119printf %s "checking for objdir... " >&6; }
9120if test ${lt_cv_objdir+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  rm -f .libs 2>/dev/null
9125mkdir .libs 2>/dev/null
9126if test -d .libs; then
9127  lt_cv_objdir=.libs
9128else
9129  # MS-DOS does not allow filenames that begin with a dot.
9130  lt_cv_objdir=_libs
9131fi
9132rmdir .libs 2>/dev/null
9133fi
9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9135printf "%s\n" "$lt_cv_objdir" >&6; }
9136objdir=$lt_cv_objdir
9137
9138
9139
9140
9141
9142printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9143
9144
9145
9146
9147case $host_os in
9148aix3*)
9149  # AIX sometimes has problems with the GCC collect2 program.  For some
9150  # reason, if we set the COLLECT_NAMES environment variable, the problems
9151  # vanish in a puff of smoke.
9152  if test set != "${COLLECT_NAMES+set}"; then
9153    COLLECT_NAMES=
9154    export COLLECT_NAMES
9155  fi
9156  ;;
9157esac
9158
9159# Global variables:
9160ofile=libtool
9161can_build_shared=yes
9162
9163# All known linkers require a '.a' archive for static linking (except MSVC and
9164# ICC, which need '.lib').
9165libext=a
9166
9167with_gnu_ld=$lt_cv_prog_gnu_ld
9168
9169old_CC=$CC
9170old_CFLAGS=$CFLAGS
9171
9172# Set sane defaults for various variables
9173test -z "$CC" && CC=cc
9174test -z "$LTCC" && LTCC=$CC
9175test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9176test -z "$LD" && LD=ld
9177test -z "$ac_objext" && ac_objext=o
9178
9179func_cc_basename $compiler
9180cc_basename=$func_cc_basename_result
9181
9182
9183# Only perform the check for file, if the check method requires it
9184test -z "$MAGIC_CMD" && MAGIC_CMD=file
9185case $deplibs_check_method in
9186file_magic*)
9187  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9188    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9189printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9190if test ${lt_cv_path_MAGIC_CMD+y}
9191then :
9192  printf %s "(cached) " >&6
9193else $as_nop
9194  case $MAGIC_CMD in
9195[\\/*] |  ?:[\\/]*)
9196  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9197  ;;
9198*)
9199  lt_save_MAGIC_CMD=$MAGIC_CMD
9200  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9201  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9202  for ac_dir in $ac_dummy; do
9203    IFS=$lt_save_ifs
9204    test -z "$ac_dir" && ac_dir=.
9205    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9206      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9207      if test -n "$file_magic_test_file"; then
9208	case $deplibs_check_method in
9209	"file_magic "*)
9210	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9211	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9212	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9213	    $EGREP "$file_magic_regex" > /dev/null; then
9214	    :
9215	  else
9216	    cat <<_LT_EOF 1>&2
9217
9218*** Warning: the command libtool uses to detect shared libraries,
9219*** $file_magic_cmd, produces output that libtool cannot recognize.
9220*** The result is that libtool may fail to recognize shared libraries
9221*** as such.  This will affect the creation of libtool libraries that
9222*** depend on shared libraries, but programs linked with such libtool
9223*** libraries will work regardless of this problem.  Nevertheless, you
9224*** may want to report the problem to your system manager and/or to
9225*** bug-libtool@gnu.org
9226
9227_LT_EOF
9228	  fi ;;
9229	esac
9230      fi
9231      break
9232    fi
9233  done
9234  IFS=$lt_save_ifs
9235  MAGIC_CMD=$lt_save_MAGIC_CMD
9236  ;;
9237esac
9238fi
9239
9240MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9241if test -n "$MAGIC_CMD"; then
9242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9243printf "%s\n" "$MAGIC_CMD" >&6; }
9244else
9245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246printf "%s\n" "no" >&6; }
9247fi
9248
9249
9250
9251
9252
9253if test -z "$lt_cv_path_MAGIC_CMD"; then
9254  if test -n "$ac_tool_prefix"; then
9255    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9256printf %s "checking for file... " >&6; }
9257if test ${lt_cv_path_MAGIC_CMD+y}
9258then :
9259  printf %s "(cached) " >&6
9260else $as_nop
9261  case $MAGIC_CMD in
9262[\\/*] |  ?:[\\/]*)
9263  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9264  ;;
9265*)
9266  lt_save_MAGIC_CMD=$MAGIC_CMD
9267  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9268  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9269  for ac_dir in $ac_dummy; do
9270    IFS=$lt_save_ifs
9271    test -z "$ac_dir" && ac_dir=.
9272    if test -f "$ac_dir/file"; then
9273      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9274      if test -n "$file_magic_test_file"; then
9275	case $deplibs_check_method in
9276	"file_magic "*)
9277	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9278	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9279	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9280	    $EGREP "$file_magic_regex" > /dev/null; then
9281	    :
9282	  else
9283	    cat <<_LT_EOF 1>&2
9284
9285*** Warning: the command libtool uses to detect shared libraries,
9286*** $file_magic_cmd, produces output that libtool cannot recognize.
9287*** The result is that libtool may fail to recognize shared libraries
9288*** as such.  This will affect the creation of libtool libraries that
9289*** depend on shared libraries, but programs linked with such libtool
9290*** libraries will work regardless of this problem.  Nevertheless, you
9291*** may want to report the problem to your system manager and/or to
9292*** bug-libtool@gnu.org
9293
9294_LT_EOF
9295	  fi ;;
9296	esac
9297      fi
9298      break
9299    fi
9300  done
9301  IFS=$lt_save_ifs
9302  MAGIC_CMD=$lt_save_MAGIC_CMD
9303  ;;
9304esac
9305fi
9306
9307MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9308if test -n "$MAGIC_CMD"; then
9309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9310printf "%s\n" "$MAGIC_CMD" >&6; }
9311else
9312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313printf "%s\n" "no" >&6; }
9314fi
9315
9316
9317  else
9318    MAGIC_CMD=:
9319  fi
9320fi
9321
9322  fi
9323  ;;
9324esac
9325
9326# Use C for the default configuration in the libtool script
9327
9328lt_save_CC=$CC
9329ac_ext=c
9330ac_cpp='$CPP $CPPFLAGS'
9331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9333ac_compiler_gnu=$ac_cv_c_compiler_gnu
9334
9335
9336# Source file extension for C test sources.
9337ac_ext=c
9338
9339# Object file extension for compiled C test sources.
9340objext=o
9341objext=$objext
9342
9343# Code to be used in simple compile tests
9344lt_simple_compile_test_code="int some_variable = 0;"
9345
9346# Code to be used in simple link tests
9347lt_simple_link_test_code='int main(){return(0);}'
9348
9349
9350
9351
9352
9353
9354
9355# If no C compiler was specified, use CC.
9356LTCC=${LTCC-"$CC"}
9357
9358# If no C compiler flags were specified, use CFLAGS.
9359LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9360
9361# Allow CC to be a program name with arguments.
9362compiler=$CC
9363
9364# Save the default compiler, since it gets overwritten when the other
9365# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9366compiler_DEFAULT=$CC
9367
9368# save warnings/boilerplate of simple test code
9369ac_outfile=conftest.$ac_objext
9370echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9371eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9372_lt_compiler_boilerplate=`cat conftest.err`
9373$RM conftest*
9374
9375ac_outfile=conftest.$ac_objext
9376echo "$lt_simple_link_test_code" >conftest.$ac_ext
9377eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9378_lt_linker_boilerplate=`cat conftest.err`
9379$RM -r conftest*
9380
9381
9382## CAVEAT EMPTOR:
9383## There is no encapsulation within the following macros, do not change
9384## the running order or otherwise move them around unless you know exactly
9385## what you are doing...
9386if test -n "$compiler"; then
9387
9388lt_prog_compiler_no_builtin_flag=
9389
9390if test yes = "$GCC"; then
9391  case $cc_basename in
9392  nvcc*)
9393    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9394  *)
9395    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9396  esac
9397
9398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9399printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9400if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9401then :
9402  printf %s "(cached) " >&6
9403else $as_nop
9404  lt_cv_prog_compiler_rtti_exceptions=no
9405   ac_outfile=conftest.$ac_objext
9406   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9408   # Insert the option either (1) after the last *FLAGS variable, or
9409   # (2) before a word containing "conftest.", or (3) at the end.
9410   # Note that $ac_compile itself does not contain backslashes and begins
9411   # with a dollar sign (not a hyphen), so the echo should work correctly.
9412   # The option is referenced via a variable to avoid confusing sed.
9413   lt_compile=`echo "$ac_compile" | $SED \
9414   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416   -e 's:$: $lt_compiler_flag:'`
9417   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9418   (eval "$lt_compile" 2>conftest.err)
9419   ac_status=$?
9420   cat conftest.err >&5
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   if (exit $ac_status) && test -s "$ac_outfile"; then
9423     # The compiler can only warn and ignore the option if not recognized
9424     # So say no if there are warnings other than the usual output.
9425     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9426     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9428       lt_cv_prog_compiler_rtti_exceptions=yes
9429     fi
9430   fi
9431   $RM conftest*
9432
9433fi
9434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9435printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9436
9437if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9438    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9439else
9440    :
9441fi
9442
9443fi
9444
9445
9446
9447
9448
9449
9450  lt_prog_compiler_wl=
9451lt_prog_compiler_pic=
9452lt_prog_compiler_static=
9453
9454
9455  if test yes = "$GCC"; then
9456    lt_prog_compiler_wl='-Wl,'
9457    lt_prog_compiler_static='-static'
9458
9459    case $host_os in
9460      aix*)
9461      # All AIX code is PIC.
9462      if test ia64 = "$host_cpu"; then
9463	# AIX 5 now supports IA64 processor
9464	lt_prog_compiler_static='-Bstatic'
9465      fi
9466      lt_prog_compiler_pic='-fPIC'
9467      ;;
9468
9469    amigaos*)
9470      case $host_cpu in
9471      powerpc)
9472            # see comment about AmigaOS4 .so support
9473            lt_prog_compiler_pic='-fPIC'
9474        ;;
9475      m68k)
9476            # FIXME: we need at least 68020 code to build shared libraries, but
9477            # adding the '-m68020' flag to GCC prevents building anything better,
9478            # like '-m68040'.
9479            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9480        ;;
9481      esac
9482      ;;
9483
9484    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9485      # PIC is the default for these OSes.
9486      ;;
9487
9488    mingw* | cygwin* | pw32* | os2* | cegcc*)
9489      # This hack is so that the source file can tell whether it is being
9490      # built for inclusion in a dll (and should export symbols for example).
9491      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9492      # (--disable-auto-import) libraries
9493      lt_prog_compiler_pic='-DDLL_EXPORT'
9494      case $host_os in
9495      os2*)
9496	lt_prog_compiler_static='$wl-static'
9497	;;
9498      esac
9499      ;;
9500
9501    darwin* | rhapsody*)
9502      # PIC is the default on this platform
9503      # Common symbols not allowed in MH_DYLIB files
9504      lt_prog_compiler_pic='-fno-common'
9505      ;;
9506
9507    haiku*)
9508      # PIC is the default for Haiku.
9509      # The "-static" flag exists, but is broken.
9510      lt_prog_compiler_static=
9511      ;;
9512
9513    hpux*)
9514      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9515      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9516      # sets the default TLS model and affects inlining.
9517      case $host_cpu in
9518      hppa*64*)
9519	# +Z the default
9520	;;
9521      *)
9522	lt_prog_compiler_pic='-fPIC'
9523	;;
9524      esac
9525      ;;
9526
9527    interix[3-9]*)
9528      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9529      # Instead, we relocate shared libraries at runtime.
9530      ;;
9531
9532    msdosdjgpp*)
9533      # Just because we use GCC doesn't mean we suddenly get shared libraries
9534      # on systems that don't support them.
9535      lt_prog_compiler_can_build_shared=no
9536      enable_shared=no
9537      ;;
9538
9539    *nto* | *qnx*)
9540      # QNX uses GNU C++, but need to define -shared option too, otherwise
9541      # it will coredump.
9542      lt_prog_compiler_pic='-fPIC -shared'
9543      ;;
9544
9545    sysv4*MP*)
9546      if test -d /usr/nec; then
9547	lt_prog_compiler_pic=-Kconform_pic
9548      fi
9549      ;;
9550
9551    *)
9552      lt_prog_compiler_pic='-fPIC'
9553      ;;
9554    esac
9555
9556    case $cc_basename in
9557    nvcc*) # Cuda Compiler Driver 2.2
9558      lt_prog_compiler_wl='-Xlinker '
9559      if test -n "$lt_prog_compiler_pic"; then
9560        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9561      fi
9562      ;;
9563    esac
9564  else
9565    # PORTME Check for flag to pass linker flags through the system compiler.
9566    case $host_os in
9567    aix*)
9568      lt_prog_compiler_wl='-Wl,'
9569      if test ia64 = "$host_cpu"; then
9570	# AIX 5 now supports IA64 processor
9571	lt_prog_compiler_static='-Bstatic'
9572      else
9573	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574      fi
9575      ;;
9576
9577    darwin* | rhapsody*)
9578      # PIC is the default on this platform
9579      # Common symbols not allowed in MH_DYLIB files
9580      lt_prog_compiler_pic='-fno-common'
9581      case $cc_basename in
9582      nagfor*)
9583        # NAG Fortran compiler
9584        lt_prog_compiler_wl='-Wl,-Wl,,'
9585        lt_prog_compiler_pic='-PIC'
9586        lt_prog_compiler_static='-Bstatic'
9587        ;;
9588      esac
9589      ;;
9590
9591    mingw* | cygwin* | pw32* | os2* | cegcc*)
9592      # This hack is so that the source file can tell whether it is being
9593      # built for inclusion in a dll (and should export symbols for example).
9594      lt_prog_compiler_pic='-DDLL_EXPORT'
9595      case $host_os in
9596      os2*)
9597	lt_prog_compiler_static='$wl-static'
9598	;;
9599      esac
9600      ;;
9601
9602    hpux9* | hpux10* | hpux11*)
9603      lt_prog_compiler_wl='-Wl,'
9604      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9605      # not for PA HP-UX.
9606      case $host_cpu in
9607      hppa*64*|ia64*)
9608	# +Z the default
9609	;;
9610      *)
9611	lt_prog_compiler_pic='+Z'
9612	;;
9613      esac
9614      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9615      lt_prog_compiler_static='$wl-a ${wl}archive'
9616      ;;
9617
9618    irix5* | irix6* | nonstopux*)
9619      lt_prog_compiler_wl='-Wl,'
9620      # PIC (with -KPIC) is the default.
9621      lt_prog_compiler_static='-non_shared'
9622      ;;
9623
9624    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9625      case $cc_basename in
9626      # old Intel for x86_64, which still supported -KPIC.
9627      ecc*)
9628	lt_prog_compiler_wl='-Wl,'
9629	lt_prog_compiler_pic='-KPIC'
9630	lt_prog_compiler_static='-static'
9631        ;;
9632      # icc used to be incompatible with GCC.
9633      # ICC 10 doesn't accept -KPIC any more.
9634      icc* | ifort*)
9635	lt_prog_compiler_wl='-Wl,'
9636	lt_prog_compiler_pic='-fPIC'
9637	lt_prog_compiler_static='-static'
9638        ;;
9639      # Lahey Fortran 8.1.
9640      lf95*)
9641	lt_prog_compiler_wl='-Wl,'
9642	lt_prog_compiler_pic='--shared'
9643	lt_prog_compiler_static='--static'
9644	;;
9645      nagfor*)
9646	# NAG Fortran compiler
9647	lt_prog_compiler_wl='-Wl,-Wl,,'
9648	lt_prog_compiler_pic='-PIC'
9649	lt_prog_compiler_static='-Bstatic'
9650	;;
9651      tcc*)
9652	# Fabrice Bellard et al's Tiny C Compiler
9653	lt_prog_compiler_wl='-Wl,'
9654	lt_prog_compiler_pic='-fPIC'
9655	lt_prog_compiler_static='-static'
9656	;;
9657      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9658        # Portland Group compilers (*not* the Pentium gcc compiler,
9659	# which looks to be a dead project)
9660	lt_prog_compiler_wl='-Wl,'
9661	lt_prog_compiler_pic='-fpic'
9662	lt_prog_compiler_static='-Bstatic'
9663        ;;
9664      ccc*)
9665        lt_prog_compiler_wl='-Wl,'
9666        # All Alpha code is PIC.
9667        lt_prog_compiler_static='-non_shared'
9668        ;;
9669      xl* | bgxl* | bgf* | mpixl*)
9670	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9671	lt_prog_compiler_wl='-Wl,'
9672	lt_prog_compiler_pic='-qpic'
9673	lt_prog_compiler_static='-qstaticlink'
9674	;;
9675      *)
9676	case `$CC -V 2>&1 | $SED 5q` in
9677	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9678	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9679	  lt_prog_compiler_pic='-KPIC'
9680	  lt_prog_compiler_static='-Bstatic'
9681	  lt_prog_compiler_wl=''
9682	  ;;
9683	*Sun\ F* | *Sun*Fortran*)
9684	  lt_prog_compiler_pic='-KPIC'
9685	  lt_prog_compiler_static='-Bstatic'
9686	  lt_prog_compiler_wl='-Qoption ld '
9687	  ;;
9688	*Sun\ C*)
9689	  # Sun C 5.9
9690	  lt_prog_compiler_pic='-KPIC'
9691	  lt_prog_compiler_static='-Bstatic'
9692	  lt_prog_compiler_wl='-Wl,'
9693	  ;;
9694        *Intel*\ [CF]*Compiler*)
9695	  lt_prog_compiler_wl='-Wl,'
9696	  lt_prog_compiler_pic='-fPIC'
9697	  lt_prog_compiler_static='-static'
9698	  ;;
9699	*Portland\ Group*)
9700	  lt_prog_compiler_wl='-Wl,'
9701	  lt_prog_compiler_pic='-fpic'
9702	  lt_prog_compiler_static='-Bstatic'
9703	  ;;
9704	esac
9705	;;
9706      esac
9707      ;;
9708
9709    newsos6)
9710      lt_prog_compiler_pic='-KPIC'
9711      lt_prog_compiler_static='-Bstatic'
9712      ;;
9713
9714    *nto* | *qnx*)
9715      # QNX uses GNU C++, but need to define -shared option too, otherwise
9716      # it will coredump.
9717      lt_prog_compiler_pic='-fPIC -shared'
9718      ;;
9719
9720    osf3* | osf4* | osf5*)
9721      lt_prog_compiler_wl='-Wl,'
9722      # All OSF/1 code is PIC.
9723      lt_prog_compiler_static='-non_shared'
9724      ;;
9725
9726    rdos*)
9727      lt_prog_compiler_static='-non_shared'
9728      ;;
9729
9730    solaris*)
9731      lt_prog_compiler_pic='-KPIC'
9732      lt_prog_compiler_static='-Bstatic'
9733      case $cc_basename in
9734      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9735	lt_prog_compiler_wl='-Qoption ld ';;
9736      *)
9737	lt_prog_compiler_wl='-Wl,';;
9738      esac
9739      ;;
9740
9741    sunos4*)
9742      lt_prog_compiler_wl='-Qoption ld '
9743      lt_prog_compiler_pic='-PIC'
9744      lt_prog_compiler_static='-Bstatic'
9745      ;;
9746
9747    sysv4 | sysv4.2uw2* | sysv4.3*)
9748      lt_prog_compiler_wl='-Wl,'
9749      lt_prog_compiler_pic='-KPIC'
9750      lt_prog_compiler_static='-Bstatic'
9751      ;;
9752
9753    sysv4*MP*)
9754      if test -d /usr/nec; then
9755	lt_prog_compiler_pic='-Kconform_pic'
9756	lt_prog_compiler_static='-Bstatic'
9757      fi
9758      ;;
9759
9760    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9761      lt_prog_compiler_wl='-Wl,'
9762      lt_prog_compiler_pic='-KPIC'
9763      lt_prog_compiler_static='-Bstatic'
9764      ;;
9765
9766    unicos*)
9767      lt_prog_compiler_wl='-Wl,'
9768      lt_prog_compiler_can_build_shared=no
9769      ;;
9770
9771    uts4*)
9772      lt_prog_compiler_pic='-pic'
9773      lt_prog_compiler_static='-Bstatic'
9774      ;;
9775
9776    *)
9777      lt_prog_compiler_can_build_shared=no
9778      ;;
9779    esac
9780  fi
9781
9782case $host_os in
9783  # For platforms that do not support PIC, -DPIC is meaningless:
9784  *djgpp*)
9785    lt_prog_compiler_pic=
9786    ;;
9787  *)
9788    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9789    ;;
9790esac
9791
9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9793printf %s "checking for $compiler option to produce PIC... " >&6; }
9794if test ${lt_cv_prog_compiler_pic+y}
9795then :
9796  printf %s "(cached) " >&6
9797else $as_nop
9798  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9799fi
9800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9801printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9802lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9803
9804#
9805# Check to make sure the PIC flag actually works.
9806#
9807if test -n "$lt_prog_compiler_pic"; then
9808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9809printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9810if test ${lt_cv_prog_compiler_pic_works+y}
9811then :
9812  printf %s "(cached) " >&6
9813else $as_nop
9814  lt_cv_prog_compiler_pic_works=no
9815   ac_outfile=conftest.$ac_objext
9816   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9818   # Insert the option either (1) after the last *FLAGS variable, or
9819   # (2) before a word containing "conftest.", or (3) at the end.
9820   # Note that $ac_compile itself does not contain backslashes and begins
9821   # with a dollar sign (not a hyphen), so the echo should work correctly.
9822   # The option is referenced via a variable to avoid confusing sed.
9823   lt_compile=`echo "$ac_compile" | $SED \
9824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9826   -e 's:$: $lt_compiler_flag:'`
9827   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9828   (eval "$lt_compile" 2>conftest.err)
9829   ac_status=$?
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   if (exit $ac_status) && test -s "$ac_outfile"; then
9833     # The compiler can only warn and ignore the option if not recognized
9834     # So say no if there are warnings other than the usual output.
9835     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9836     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9838       lt_cv_prog_compiler_pic_works=yes
9839     fi
9840   fi
9841   $RM conftest*
9842
9843fi
9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9845printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9846
9847if test yes = "$lt_cv_prog_compiler_pic_works"; then
9848    case $lt_prog_compiler_pic in
9849     "" | " "*) ;;
9850     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9851     esac
9852else
9853    lt_prog_compiler_pic=
9854     lt_prog_compiler_can_build_shared=no
9855fi
9856
9857fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869#
9870# Check to make sure the static flag actually works.
9871#
9872wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9874printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9875if test ${lt_cv_prog_compiler_static_works+y}
9876then :
9877  printf %s "(cached) " >&6
9878else $as_nop
9879  lt_cv_prog_compiler_static_works=no
9880   save_LDFLAGS=$LDFLAGS
9881   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9882   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9883   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9884     # The linker can only warn and ignore the option if not recognized
9885     # So say no if there are warnings
9886     if test -s conftest.err; then
9887       # Append any errors to the config.log.
9888       cat conftest.err 1>&5
9889       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9890       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891       if diff conftest.exp conftest.er2 >/dev/null; then
9892         lt_cv_prog_compiler_static_works=yes
9893       fi
9894     else
9895       lt_cv_prog_compiler_static_works=yes
9896     fi
9897   fi
9898   $RM -r conftest*
9899   LDFLAGS=$save_LDFLAGS
9900
9901fi
9902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9903printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9904
9905if test yes = "$lt_cv_prog_compiler_static_works"; then
9906    :
9907else
9908    lt_prog_compiler_static=
9909fi
9910
9911
9912
9913
9914
9915
9916
9917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9918printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9919if test ${lt_cv_prog_compiler_c_o+y}
9920then :
9921  printf %s "(cached) " >&6
9922else $as_nop
9923  lt_cv_prog_compiler_c_o=no
9924   $RM -r conftest 2>/dev/null
9925   mkdir conftest
9926   cd conftest
9927   mkdir out
9928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929
9930   lt_compiler_flag="-o out/conftest2.$ac_objext"
9931   # Insert the option either (1) after the last *FLAGS variable, or
9932   # (2) before a word containing "conftest.", or (3) at the end.
9933   # Note that $ac_compile itself does not contain backslashes and begins
9934   # with a dollar sign (not a hyphen), so the echo should work correctly.
9935   lt_compile=`echo "$ac_compile" | $SED \
9936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9938   -e 's:$: $lt_compiler_flag:'`
9939   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9940   (eval "$lt_compile" 2>out/conftest.err)
9941   ac_status=$?
9942   cat out/conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945   then
9946     # The compiler can only warn and ignore the option if not recognized
9947     # So say no if there are warnings
9948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9949     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9950     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9951       lt_cv_prog_compiler_c_o=yes
9952     fi
9953   fi
9954   chmod u+w . 2>&5
9955   $RM conftest*
9956   # SGI C++ compiler will create directory out/ii_files/ for
9957   # template instantiation
9958   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9959   $RM out/* && rmdir out
9960   cd ..
9961   $RM -r conftest
9962   $RM conftest*
9963
9964fi
9965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9966printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9967
9968
9969
9970
9971
9972
9973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9974printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9975if test ${lt_cv_prog_compiler_c_o+y}
9976then :
9977  printf %s "(cached) " >&6
9978else $as_nop
9979  lt_cv_prog_compiler_c_o=no
9980   $RM -r conftest 2>/dev/null
9981   mkdir conftest
9982   cd conftest
9983   mkdir out
9984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9985
9986   lt_compiler_flag="-o out/conftest2.$ac_objext"
9987   # Insert the option either (1) after the last *FLAGS variable, or
9988   # (2) before a word containing "conftest.", or (3) at the end.
9989   # Note that $ac_compile itself does not contain backslashes and begins
9990   # with a dollar sign (not a hyphen), so the echo should work correctly.
9991   lt_compile=`echo "$ac_compile" | $SED \
9992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9994   -e 's:$: $lt_compiler_flag:'`
9995   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9996   (eval "$lt_compile" 2>out/conftest.err)
9997   ac_status=$?
9998   cat out/conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10001   then
10002     # The compiler can only warn and ignore the option if not recognized
10003     # So say no if there are warnings
10004     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10005     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10006     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10007       lt_cv_prog_compiler_c_o=yes
10008     fi
10009   fi
10010   chmod u+w . 2>&5
10011   $RM conftest*
10012   # SGI C++ compiler will create directory out/ii_files/ for
10013   # template instantiation
10014   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10015   $RM out/* && rmdir out
10016   cd ..
10017   $RM -r conftest
10018   $RM conftest*
10019
10020fi
10021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10022printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10023
10024
10025
10026
10027hard_links=nottested
10028if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10029  # do not overwrite the value of need_locks provided by the user
10030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10031printf %s "checking if we can lock with hard links... " >&6; }
10032  hard_links=yes
10033  $RM conftest*
10034  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10035  touch conftest.a
10036  ln conftest.a conftest.b 2>&5 || hard_links=no
10037  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10039printf "%s\n" "$hard_links" >&6; }
10040  if test no = "$hard_links"; then
10041    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10042printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10043    need_locks=warn
10044  fi
10045else
10046  need_locks=no
10047fi
10048
10049
10050
10051
10052
10053
10054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10055printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10056
10057  runpath_var=
10058  allow_undefined_flag=
10059  always_export_symbols=no
10060  archive_cmds=
10061  archive_expsym_cmds=
10062  compiler_needs_object=no
10063  enable_shared_with_static_runtimes=no
10064  export_dynamic_flag_spec=
10065  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10066  hardcode_automatic=no
10067  hardcode_direct=no
10068  hardcode_direct_absolute=no
10069  hardcode_libdir_flag_spec=
10070  hardcode_libdir_separator=
10071  hardcode_minus_L=no
10072  hardcode_shlibpath_var=unsupported
10073  inherit_rpath=no
10074  link_all_deplibs=unknown
10075  module_cmds=
10076  module_expsym_cmds=
10077  old_archive_from_new_cmds=
10078  old_archive_from_expsyms_cmds=
10079  thread_safe_flag_spec=
10080  whole_archive_flag_spec=
10081  # include_expsyms should be a list of space-separated symbols to be *always*
10082  # included in the symbol list
10083  include_expsyms=
10084  # exclude_expsyms can be an extended regexp of symbols to exclude
10085  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10086  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10087  # as well as any symbol that contains 'd'.
10088  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10089  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10090  # platforms (ab)use it in PIC code, but their linkers get confused if
10091  # the symbol is explicitly referenced.  Since portable code cannot
10092  # rely on this symbol name, it's probably fine to never include it in
10093  # preloaded symbol tables.
10094  # Exclude shared library initialization/finalization symbols.
10095  extract_expsyms_cmds=
10096
10097  case $host_os in
10098  cygwin* | mingw* | pw32* | cegcc*)
10099    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10100    # When not using gcc, we currently assume that we are using
10101    # Microsoft Visual C++ or Intel C++ Compiler.
10102    if test yes != "$GCC"; then
10103      with_gnu_ld=no
10104    fi
10105    ;;
10106  interix*)
10107    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10108    with_gnu_ld=yes
10109    ;;
10110  openbsd* | bitrig*)
10111    with_gnu_ld=no
10112    ;;
10113  esac
10114
10115  ld_shlibs=yes
10116
10117  # On some targets, GNU ld is compatible enough with the native linker
10118  # that we're better off using the native interface for both.
10119  lt_use_gnu_ld_interface=no
10120  if test yes = "$with_gnu_ld"; then
10121    case $host_os in
10122      aix*)
10123	# The AIX port of GNU ld has always aspired to compatibility
10124	# with the native linker.  However, as the warning in the GNU ld
10125	# block says, versions before 2.19.5* couldn't really create working
10126	# shared libraries, regardless of the interface used.
10127	case `$LD -v 2>&1` in
10128	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10129	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10130	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10131	  *)
10132	    lt_use_gnu_ld_interface=yes
10133	    ;;
10134	esac
10135	;;
10136      *)
10137	lt_use_gnu_ld_interface=yes
10138	;;
10139    esac
10140  fi
10141
10142  if test yes = "$lt_use_gnu_ld_interface"; then
10143    # If archive_cmds runs LD, not CC, wlarc should be empty
10144    wlarc='$wl'
10145
10146    # Set some defaults for GNU ld with shared library support. These
10147    # are reset later if shared libraries are not supported. Putting them
10148    # here allows them to be overridden if necessary.
10149    runpath_var=LD_RUN_PATH
10150    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151    export_dynamic_flag_spec='$wl--export-dynamic'
10152    # ancient GNU ld didn't support --whole-archive et. al.
10153    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10154      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10155    else
10156      whole_archive_flag_spec=
10157    fi
10158    supports_anon_versioning=no
10159    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10160      *GNU\ gold*) supports_anon_versioning=yes ;;
10161      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10162      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10163      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10164      *\ 2.11.*) ;; # other 2.11 versions
10165      *) supports_anon_versioning=yes ;;
10166    esac
10167
10168    # See if GNU ld supports shared libraries.
10169    case $host_os in
10170    aix[3-9]*)
10171      # On AIX/PPC, the GNU linker is very broken
10172      if test ia64 != "$host_cpu"; then
10173	ld_shlibs=no
10174	cat <<_LT_EOF 1>&2
10175
10176*** Warning: the GNU linker, at least up to release 2.19, is reported
10177*** to be unable to reliably create shared libraries on AIX.
10178*** Therefore, libtool is disabling shared libraries support.  If you
10179*** really care for shared libraries, you may want to install binutils
10180*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10181*** You will then need to restart the configuration process.
10182
10183_LT_EOF
10184      fi
10185      ;;
10186
10187    amigaos*)
10188      case $host_cpu in
10189      powerpc)
10190            # see comment about AmigaOS4 .so support
10191            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192            archive_expsym_cmds=''
10193        ;;
10194      m68k)
10195            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)'
10196            hardcode_libdir_flag_spec='-L$libdir'
10197            hardcode_minus_L=yes
10198        ;;
10199      esac
10200      ;;
10201
10202    beos*)
10203      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204	allow_undefined_flag=unsupported
10205	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10206	# support --undefined.  This deserves some investigation.  FIXME
10207	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208      else
10209	ld_shlibs=no
10210      fi
10211      ;;
10212
10213    cygwin* | mingw* | pw32* | cegcc*)
10214      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10215      # as there is no search path for DLLs.
10216      hardcode_libdir_flag_spec='-L$libdir'
10217      export_dynamic_flag_spec='$wl--export-all-symbols'
10218      allow_undefined_flag=unsupported
10219      always_export_symbols=no
10220      enable_shared_with_static_runtimes=yes
10221      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'
10222      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10223
10224      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10225        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10226	# If the export-symbols file already is a .def file, use it as
10227	# is; otherwise, prepend EXPORTS...
10228	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10229          cp $export_symbols $output_objdir/$soname.def;
10230        else
10231          echo EXPORTS > $output_objdir/$soname.def;
10232          cat $export_symbols >> $output_objdir/$soname.def;
10233        fi~
10234        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10235      else
10236	ld_shlibs=no
10237      fi
10238      ;;
10239
10240    haiku*)
10241      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242      link_all_deplibs=yes
10243      ;;
10244
10245    os2*)
10246      hardcode_libdir_flag_spec='-L$libdir'
10247      hardcode_minus_L=yes
10248      allow_undefined_flag=unsupported
10249      shrext_cmds=.dll
10250      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10251	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10252	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10253	$ECHO EXPORTS >> $output_objdir/$libname.def~
10254	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10255	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10256	emximp -o $lib $output_objdir/$libname.def'
10257      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10258	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10259	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10260	$ECHO EXPORTS >> $output_objdir/$libname.def~
10261	prefix_cmds="$SED"~
10262	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10263	  prefix_cmds="$prefix_cmds -e 1d";
10264	fi~
10265	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10266	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10267	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10268	emximp -o $lib $output_objdir/$libname.def'
10269      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10270      enable_shared_with_static_runtimes=yes
10271      file_list_spec='@'
10272      ;;
10273
10274    interix[3-9]*)
10275      hardcode_direct=no
10276      hardcode_shlibpath_var=no
10277      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10278      export_dynamic_flag_spec='$wl-E'
10279      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10280      # Instead, shared libraries are loaded at an image base (0x10000000 by
10281      # default) and relocated if they conflict, which is a slow very memory
10282      # consuming and fragmenting process.  To avoid this, we pick a random,
10283      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10284      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10285      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10286      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'
10287      ;;
10288
10289    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10290      tmp_diet=no
10291      if test linux-dietlibc = "$host_os"; then
10292	case $cc_basename in
10293	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10294	esac
10295      fi
10296      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10297	 && test no = "$tmp_diet"
10298      then
10299	tmp_addflag=' $pic_flag'
10300	tmp_sharedflag='-shared'
10301	case $cc_basename,$host_cpu in
10302        pgcc*)				# Portland Group C compiler
10303	  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'
10304	  tmp_addflag=' $pic_flag'
10305	  ;;
10306	pgf77* | pgf90* | pgf95* | pgfortran*)
10307					# Portland Group f77 and f90 compilers
10308	  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'
10309	  tmp_addflag=' $pic_flag -Mnomain' ;;
10310	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10311	  tmp_addflag=' -i_dynamic' ;;
10312	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10313	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10314	ifc* | ifort*)			# Intel Fortran compiler
10315	  tmp_addflag=' -nofor_main' ;;
10316	lf95*)				# Lahey Fortran 8.1
10317	  whole_archive_flag_spec=
10318	  tmp_sharedflag='--shared' ;;
10319        nagfor*)                        # NAGFOR 5.3
10320          tmp_sharedflag='-Wl,-shared' ;;
10321	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10322	  tmp_sharedflag='-qmkshrobj'
10323	  tmp_addflag= ;;
10324	nvcc*)	# Cuda Compiler Driver 2.2
10325	  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'
10326	  compiler_needs_object=yes
10327	  ;;
10328	esac
10329	case `$CC -V 2>&1 | $SED 5q` in
10330	*Sun\ C*)			# Sun C 5.9
10331	  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'
10332	  compiler_needs_object=yes
10333	  tmp_sharedflag='-G' ;;
10334	*Sun\ F*)			# Sun Fortran 8.3
10335	  tmp_sharedflag='-G' ;;
10336	esac
10337	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10338
10339        if test yes = "$supports_anon_versioning"; then
10340          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10341            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10342            echo "local: *; };" >> $output_objdir/$libname.ver~
10343            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10344        fi
10345
10346	case $cc_basename in
10347	tcc*)
10348	  export_dynamic_flag_spec='-rdynamic'
10349	  ;;
10350	xlf* | bgf* | bgxlf* | mpixlf*)
10351	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10352	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10353	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10354	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10355	  if test yes = "$supports_anon_versioning"; then
10356	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10357              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10358              echo "local: *; };" >> $output_objdir/$libname.ver~
10359              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10360	  fi
10361	  ;;
10362	esac
10363      else
10364        ld_shlibs=no
10365      fi
10366      ;;
10367
10368    netbsd*)
10369      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10371	wlarc=
10372      else
10373	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10374	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10375      fi
10376      ;;
10377
10378    solaris*)
10379      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10380	ld_shlibs=no
10381	cat <<_LT_EOF 1>&2
10382
10383*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10384*** create shared libraries on Solaris systems.  Therefore, libtool
10385*** is disabling shared libraries support.  We urge you to upgrade GNU
10386*** binutils to release 2.9.1 or newer.  Another option is to modify
10387*** your PATH or compiler configuration so that the native linker is
10388*** used, and then restart.
10389
10390_LT_EOF
10391      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10392	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10393	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10394      else
10395	ld_shlibs=no
10396      fi
10397      ;;
10398
10399    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10400      case `$LD -v 2>&1` in
10401        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10402	ld_shlibs=no
10403	cat <<_LT_EOF 1>&2
10404
10405*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10406*** reliably create shared libraries on SCO systems.  Therefore, libtool
10407*** is disabling shared libraries support.  We urge you to upgrade GNU
10408*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10409*** your PATH or compiler configuration so that the native linker is
10410*** used, and then restart.
10411
10412_LT_EOF
10413	;;
10414	*)
10415	  # For security reasons, it is highly recommended that you always
10416	  # use absolute paths for naming shared libraries, and exclude the
10417	  # DT_RUNPATH tag from executables and libraries.  But doing so
10418	  # requires that you compile everything twice, which is a pain.
10419	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10420	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10421	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10423	  else
10424	    ld_shlibs=no
10425	  fi
10426	;;
10427      esac
10428      ;;
10429
10430    sunos4*)
10431      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10432      wlarc=
10433      hardcode_direct=yes
10434      hardcode_shlibpath_var=no
10435      ;;
10436
10437    *)
10438      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10439	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10440	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10441      else
10442	ld_shlibs=no
10443      fi
10444      ;;
10445    esac
10446
10447    if test no = "$ld_shlibs"; then
10448      runpath_var=
10449      hardcode_libdir_flag_spec=
10450      export_dynamic_flag_spec=
10451      whole_archive_flag_spec=
10452    fi
10453  else
10454    # PORTME fill in a description of your system's linker (not GNU ld)
10455    case $host_os in
10456    aix3*)
10457      allow_undefined_flag=unsupported
10458      always_export_symbols=yes
10459      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'
10460      # Note: this linker hardcodes the directories in LIBPATH if there
10461      # are no directories specified by -L.
10462      hardcode_minus_L=yes
10463      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10464	# Neither direct hardcoding nor static linking is supported with a
10465	# broken collect2.
10466	hardcode_direct=unsupported
10467      fi
10468      ;;
10469
10470    aix[4-9]*)
10471      if test ia64 = "$host_cpu"; then
10472	# On IA64, the linker does run time linking by default, so we don't
10473	# have to do anything special.
10474	aix_use_runtimelinking=no
10475	exp_sym_flag='-Bexport'
10476	no_entry_flag=
10477      else
10478	# If we're using GNU nm, then we don't want the "-C" option.
10479	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10480	# Without the "-l" option, or with the "-B" option, AIX nm treats
10481	# weak defined symbols like other global defined symbols, whereas
10482	# GNU nm marks them as "W".
10483	# While the 'weak' keyword is ignored in the Export File, we need
10484	# it in the Import File for the 'aix-soname' feature, so we have
10485	# to replace the "-B" option with "-P" for AIX nm.
10486	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10487	  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'
10488	else
10489	  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 == "L") || (\$ 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'
10490	fi
10491	aix_use_runtimelinking=no
10492
10493	# Test if we are trying to use run time linking or normal
10494	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10495	# have runtime linking enabled, and use it for executables.
10496	# For shared libraries, we enable/disable runtime linking
10497	# depending on the kind of the shared library created -
10498	# when "with_aix_soname,aix_use_runtimelinking" is:
10499	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10500	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10501	#            lib.a           static archive
10502	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10503	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10504	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10505	#            lib.a(lib.so.V) shared, rtl:no
10506	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10507	#            lib.a           static archive
10508	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10509	  for ld_flag in $LDFLAGS; do
10510	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10511	    aix_use_runtimelinking=yes
10512	    break
10513	  fi
10514	  done
10515	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10516	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10517	    # so we don't have lib.a shared libs to link our executables.
10518	    # We have to force runtime linking in this case.
10519	    aix_use_runtimelinking=yes
10520	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10521	  fi
10522	  ;;
10523	esac
10524
10525	exp_sym_flag='-bexport'
10526	no_entry_flag='-bnoentry'
10527      fi
10528
10529      # When large executables or shared objects are built, AIX ld can
10530      # have problems creating the table of contents.  If linking a library
10531      # or program results in "error TOC overflow" add -mminimal-toc to
10532      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10533      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10534
10535      archive_cmds=''
10536      hardcode_direct=yes
10537      hardcode_direct_absolute=yes
10538      hardcode_libdir_separator=':'
10539      link_all_deplibs=yes
10540      file_list_spec='$wl-f,'
10541      case $with_aix_soname,$aix_use_runtimelinking in
10542      aix,*) ;; # traditional, no import file
10543      svr4,* | *,yes) # use import file
10544	# The Import File defines what to hardcode.
10545	hardcode_direct=no
10546	hardcode_direct_absolute=no
10547	;;
10548      esac
10549
10550      if test yes = "$GCC"; then
10551	case $host_os in aix4.[012]|aix4.[012].*)
10552	# We only want to do this on AIX 4.2 and lower, the check
10553	# below for broken collect2 doesn't work under 4.3+
10554	  collect2name=`$CC -print-prog-name=collect2`
10555	  if test -f "$collect2name" &&
10556	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10557	  then
10558	  # We have reworked collect2
10559	  :
10560	  else
10561	  # We have old collect2
10562	  hardcode_direct=unsupported
10563	  # It fails to find uninstalled libraries when the uninstalled
10564	  # path is not listed in the libpath.  Setting hardcode_minus_L
10565	  # to unsupported forces relinking
10566	  hardcode_minus_L=yes
10567	  hardcode_libdir_flag_spec='-L$libdir'
10568	  hardcode_libdir_separator=
10569	  fi
10570	  ;;
10571	esac
10572	shared_flag='-shared'
10573	if test yes = "$aix_use_runtimelinking"; then
10574	  shared_flag="$shared_flag "'$wl-G'
10575	fi
10576	# Need to ensure runtime linking is disabled for the traditional
10577	# shared library, or the linker may eventually find shared libraries
10578	# /with/ Import File - we do not want to mix them.
10579	shared_flag_aix='-shared'
10580	shared_flag_svr4='-shared $wl-G'
10581      else
10582	# not using gcc
10583	if test ia64 = "$host_cpu"; then
10584	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10585	# chokes on -Wl,-G. The following line is correct:
10586	  shared_flag='-G'
10587	else
10588	  if test yes = "$aix_use_runtimelinking"; then
10589	    shared_flag='$wl-G'
10590	  else
10591	    shared_flag='$wl-bM:SRE'
10592	  fi
10593	  shared_flag_aix='$wl-bM:SRE'
10594	  shared_flag_svr4='$wl-G'
10595	fi
10596      fi
10597
10598      export_dynamic_flag_spec='$wl-bexpall'
10599      # It seems that -bexpall does not export symbols beginning with
10600      # underscore (_), so it is better to generate a list of symbols to export.
10601      always_export_symbols=yes
10602      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10603	# Warning - without using the other runtime loading flags (-brtl),
10604	# -berok will link without error, but may produce a broken library.
10605	allow_undefined_flag='-berok'
10606        # Determine the default libpath from the value encoded in an
10607        # empty executable.
10608        if test set = "${lt_cv_aix_libpath+set}"; then
10609  aix_libpath=$lt_cv_aix_libpath
10610else
10611  if test ${lt_cv_aix_libpath_+y}
10612then :
10613  printf %s "(cached) " >&6
10614else $as_nop
10615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616/* end confdefs.h.  */
10617
10618int
10619main (void)
10620{
10621
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626if ac_fn_c_try_link "$LINENO"
10627then :
10628
10629  lt_aix_libpath_sed='
10630      /Import File Strings/,/^$/ {
10631	  /^0/ {
10632	      s/^0  *\([^ ]*\) *$/\1/
10633	      p
10634	  }
10635      }'
10636  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10637  # Check for a 64-bit object if we didn't find anything.
10638  if test -z "$lt_cv_aix_libpath_"; then
10639    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10640  fi
10641fi
10642rm -f core conftest.err conftest.$ac_objext conftest.beam \
10643    conftest$ac_exeext conftest.$ac_ext
10644  if test -z "$lt_cv_aix_libpath_"; then
10645    lt_cv_aix_libpath_=/usr/lib:/lib
10646  fi
10647
10648fi
10649
10650  aix_libpath=$lt_cv_aix_libpath_
10651fi
10652
10653        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10654        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
10655      else
10656	if test ia64 = "$host_cpu"; then
10657	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10658	  allow_undefined_flag="-z nodefs"
10659	  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"
10660	else
10661	 # Determine the default libpath from the value encoded in an
10662	 # empty executable.
10663	 if test set = "${lt_cv_aix_libpath+set}"; then
10664  aix_libpath=$lt_cv_aix_libpath
10665else
10666  if test ${lt_cv_aix_libpath_+y}
10667then :
10668  printf %s "(cached) " >&6
10669else $as_nop
10670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h.  */
10672
10673int
10674main (void)
10675{
10676
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_link "$LINENO"
10682then :
10683
10684  lt_aix_libpath_sed='
10685      /Import File Strings/,/^$/ {
10686	  /^0/ {
10687	      s/^0  *\([^ ]*\) *$/\1/
10688	      p
10689	  }
10690      }'
10691  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10692  # Check for a 64-bit object if we didn't find anything.
10693  if test -z "$lt_cv_aix_libpath_"; then
10694    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10695  fi
10696fi
10697rm -f core conftest.err conftest.$ac_objext conftest.beam \
10698    conftest$ac_exeext conftest.$ac_ext
10699  if test -z "$lt_cv_aix_libpath_"; then
10700    lt_cv_aix_libpath_=/usr/lib:/lib
10701  fi
10702
10703fi
10704
10705  aix_libpath=$lt_cv_aix_libpath_
10706fi
10707
10708	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10709	  # Warning - without using the other run time loading flags,
10710	  # -berok will link without error, but may produce a broken library.
10711	  no_undefined_flag=' $wl-bernotok'
10712	  allow_undefined_flag=' $wl-berok'
10713	  if test yes = "$with_gnu_ld"; then
10714	    # We only use this code for GNU lds that support --whole-archive.
10715	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10716	  else
10717	    # Exported symbols can be pulled into shared objects from archives
10718	    whole_archive_flag_spec='$convenience'
10719	  fi
10720	  archive_cmds_need_lc=yes
10721	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10722	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10723	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10724	  if test svr4 != "$with_aix_soname"; then
10725	    # This is similar to how AIX traditionally builds its shared libraries.
10726	    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'
10727	  fi
10728	  if test aix != "$with_aix_soname"; then
10729	    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'
10730	  else
10731	    # used by -dlpreopen to get the symbols
10732	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10733	  fi
10734	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10735	fi
10736      fi
10737      ;;
10738
10739    amigaos*)
10740      case $host_cpu in
10741      powerpc)
10742            # see comment about AmigaOS4 .so support
10743            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10744            archive_expsym_cmds=''
10745        ;;
10746      m68k)
10747            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)'
10748            hardcode_libdir_flag_spec='-L$libdir'
10749            hardcode_minus_L=yes
10750        ;;
10751      esac
10752      ;;
10753
10754    bsdi[45]*)
10755      export_dynamic_flag_spec=-rdynamic
10756      ;;
10757
10758    cygwin* | mingw* | pw32* | cegcc*)
10759      # When not using gcc, we currently assume that we are using
10760      # Microsoft Visual C++ or Intel C++ Compiler.
10761      # hardcode_libdir_flag_spec is actually meaningless, as there is
10762      # no search path for DLLs.
10763      case $cc_basename in
10764      cl* | icl*)
10765	# Native MSVC or ICC
10766	hardcode_libdir_flag_spec=' '
10767	allow_undefined_flag=unsupported
10768	always_export_symbols=yes
10769	file_list_spec='@'
10770	# Tell ltmain to make .lib files, not .a files.
10771	libext=lib
10772	# Tell ltmain to make .dll files, not .so files.
10773	shrext_cmds=.dll
10774	# FIXME: Setting linknames here is a bad hack.
10775	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10776	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10777            cp "$export_symbols" "$output_objdir/$soname.def";
10778            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10779          else
10780            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10781          fi~
10782          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10783          linknames='
10784	# The linker will not automatically build a static lib if we build a DLL.
10785	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10786	enable_shared_with_static_runtimes=yes
10787	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10788	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10789	# Don't use ranlib
10790	old_postinstall_cmds='chmod 644 $oldlib'
10791	postlink_cmds='lt_outputfile="@OUTPUT@"~
10792          lt_tool_outputfile="@TOOL_OUTPUT@"~
10793          case $lt_outputfile in
10794            *.exe|*.EXE) ;;
10795            *)
10796              lt_outputfile=$lt_outputfile.exe
10797              lt_tool_outputfile=$lt_tool_outputfile.exe
10798              ;;
10799          esac~
10800          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10801            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10802            $RM "$lt_outputfile.manifest";
10803          fi'
10804	;;
10805      *)
10806	# Assume MSVC and ICC wrapper
10807	hardcode_libdir_flag_spec=' '
10808	allow_undefined_flag=unsupported
10809	# Tell ltmain to make .lib files, not .a files.
10810	libext=lib
10811	# Tell ltmain to make .dll files, not .so files.
10812	shrext_cmds=.dll
10813	# FIXME: Setting linknames here is a bad hack.
10814	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10815	# The linker will automatically build a .lib file if we build a DLL.
10816	old_archive_from_new_cmds='true'
10817	# FIXME: Should let the user specify the lib program.
10818	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10819	enable_shared_with_static_runtimes=yes
10820	;;
10821      esac
10822      ;;
10823
10824    darwin* | rhapsody*)
10825
10826
10827  archive_cmds_need_lc=no
10828  hardcode_direct=no
10829  hardcode_automatic=yes
10830  hardcode_shlibpath_var=unsupported
10831  if test yes = "$lt_cv_ld_force_load"; then
10832    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\"`'
10833
10834  else
10835    whole_archive_flag_spec=''
10836  fi
10837  link_all_deplibs=yes
10838  allow_undefined_flag=$_lt_dar_allow_undefined
10839  case $cc_basename in
10840     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10841     *) _lt_dar_can_shared=$GCC ;;
10842  esac
10843  if test yes = "$_lt_dar_can_shared"; then
10844    output_verbose_link_cmd=func_echo_all
10845    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10846    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10847    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"
10848    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"
10849
10850  else
10851  ld_shlibs=no
10852  fi
10853
10854      ;;
10855
10856    dgux*)
10857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858      hardcode_libdir_flag_spec='-L$libdir'
10859      hardcode_shlibpath_var=no
10860      ;;
10861
10862    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10863    # support.  Future versions do this automatically, but an explicit c++rt0.o
10864    # does not break anything, and helps significantly (at the cost of a little
10865    # extra space).
10866    freebsd2.2*)
10867      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10868      hardcode_libdir_flag_spec='-R$libdir'
10869      hardcode_direct=yes
10870      hardcode_shlibpath_var=no
10871      ;;
10872
10873    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10874    freebsd2.*)
10875      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10876      hardcode_direct=yes
10877      hardcode_minus_L=yes
10878      hardcode_shlibpath_var=no
10879      ;;
10880
10881    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10882    freebsd* | dragonfly* | midnightbsd*)
10883      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10884      hardcode_libdir_flag_spec='-R$libdir'
10885      hardcode_direct=yes
10886      hardcode_shlibpath_var=no
10887      ;;
10888
10889    hpux9*)
10890      if test yes = "$GCC"; then
10891	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'
10892      else
10893	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'
10894      fi
10895      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10896      hardcode_libdir_separator=:
10897      hardcode_direct=yes
10898
10899      # hardcode_minus_L: Not really in the search PATH,
10900      # but as the default location of the library.
10901      hardcode_minus_L=yes
10902      export_dynamic_flag_spec='$wl-E'
10903      ;;
10904
10905    hpux10*)
10906      if test yes,no = "$GCC,$with_gnu_ld"; then
10907	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10908      else
10909	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10910      fi
10911      if test no = "$with_gnu_ld"; then
10912	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10913	hardcode_libdir_separator=:
10914	hardcode_direct=yes
10915	hardcode_direct_absolute=yes
10916	export_dynamic_flag_spec='$wl-E'
10917	# hardcode_minus_L: Not really in the search PATH,
10918	# but as the default location of the library.
10919	hardcode_minus_L=yes
10920      fi
10921      ;;
10922
10923    hpux11*)
10924      if test yes,no = "$GCC,$with_gnu_ld"; then
10925	case $host_cpu in
10926	hppa*64*)
10927	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10928	  ;;
10929	ia64*)
10930	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10931	  ;;
10932	*)
10933	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10934	  ;;
10935	esac
10936      else
10937	case $host_cpu in
10938	hppa*64*)
10939	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10940	  ;;
10941	ia64*)
10942	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10943	  ;;
10944	*)
10945
10946	  # Older versions of the 11.00 compiler do not understand -b yet
10947	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10948	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10949printf %s "checking if $CC understands -b... " >&6; }
10950if test ${lt_cv_prog_compiler__b+y}
10951then :
10952  printf %s "(cached) " >&6
10953else $as_nop
10954  lt_cv_prog_compiler__b=no
10955   save_LDFLAGS=$LDFLAGS
10956   LDFLAGS="$LDFLAGS -b"
10957   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10958   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10959     # The linker can only warn and ignore the option if not recognized
10960     # So say no if there are warnings
10961     if test -s conftest.err; then
10962       # Append any errors to the config.log.
10963       cat conftest.err 1>&5
10964       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10965       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10966       if diff conftest.exp conftest.er2 >/dev/null; then
10967         lt_cv_prog_compiler__b=yes
10968       fi
10969     else
10970       lt_cv_prog_compiler__b=yes
10971     fi
10972   fi
10973   $RM -r conftest*
10974   LDFLAGS=$save_LDFLAGS
10975
10976fi
10977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10978printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10979
10980if test yes = "$lt_cv_prog_compiler__b"; then
10981    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10982else
10983    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10984fi
10985
10986	  ;;
10987	esac
10988      fi
10989      if test no = "$with_gnu_ld"; then
10990	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10991	hardcode_libdir_separator=:
10992
10993	case $host_cpu in
10994	hppa*64*|ia64*)
10995	  hardcode_direct=no
10996	  hardcode_shlibpath_var=no
10997	  ;;
10998	*)
10999	  hardcode_direct=yes
11000	  hardcode_direct_absolute=yes
11001	  export_dynamic_flag_spec='$wl-E'
11002
11003	  # hardcode_minus_L: Not really in the search PATH,
11004	  # but as the default location of the library.
11005	  hardcode_minus_L=yes
11006	  ;;
11007	esac
11008      fi
11009      ;;
11010
11011    irix5* | irix6* | nonstopux*)
11012      if test yes = "$GCC"; then
11013	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'
11014	# Try to use the -exported_symbol ld option, if it does not
11015	# work, assume that -exports_file does not work either and
11016	# implicitly export all symbols.
11017	# This should be the same for all languages, so no per-tag cache variable.
11018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11019printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11020if test ${lt_cv_irix_exported_symbol+y}
11021then :
11022  printf %s "(cached) " >&6
11023else $as_nop
11024  save_LDFLAGS=$LDFLAGS
11025	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11026	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h.  */
11028int foo (void) { return 0; }
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"
11031then :
11032  lt_cv_irix_exported_symbol=yes
11033else $as_nop
11034  lt_cv_irix_exported_symbol=no
11035fi
11036rm -f core conftest.err conftest.$ac_objext conftest.beam \
11037    conftest$ac_exeext conftest.$ac_ext
11038           LDFLAGS=$save_LDFLAGS
11039fi
11040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11041printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11042	if test yes = "$lt_cv_irix_exported_symbol"; then
11043          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'
11044	fi
11045      else
11046	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'
11047	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'
11048      fi
11049      archive_cmds_need_lc='no'
11050      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11051      hardcode_libdir_separator=:
11052      inherit_rpath=yes
11053      link_all_deplibs=yes
11054      ;;
11055
11056    linux*)
11057      case $cc_basename in
11058      tcc*)
11059	# Fabrice Bellard et al's Tiny C Compiler
11060	ld_shlibs=yes
11061	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11062	;;
11063      esac
11064      ;;
11065
11066    netbsd*)
11067      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11068	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11069      else
11070	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11071      fi
11072      hardcode_libdir_flag_spec='-R$libdir'
11073      hardcode_direct=yes
11074      hardcode_shlibpath_var=no
11075      ;;
11076
11077    newsos6)
11078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11079      hardcode_direct=yes
11080      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11081      hardcode_libdir_separator=:
11082      hardcode_shlibpath_var=no
11083      ;;
11084
11085    *nto* | *qnx*)
11086      ;;
11087
11088    openbsd* | bitrig*)
11089      if test -f /usr/libexec/ld.so; then
11090	hardcode_direct=yes
11091	hardcode_shlibpath_var=no
11092	hardcode_direct_absolute=yes
11093	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11094	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11095	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11096	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11097	  export_dynamic_flag_spec='$wl-E'
11098	else
11099	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11100	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11101	fi
11102      else
11103	ld_shlibs=no
11104      fi
11105      ;;
11106
11107    os2*)
11108      hardcode_libdir_flag_spec='-L$libdir'
11109      hardcode_minus_L=yes
11110      allow_undefined_flag=unsupported
11111      shrext_cmds=.dll
11112      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11113	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11114	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11115	$ECHO EXPORTS >> $output_objdir/$libname.def~
11116	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11117	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11118	emximp -o $lib $output_objdir/$libname.def'
11119      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11120	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11121	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11122	$ECHO EXPORTS >> $output_objdir/$libname.def~
11123	prefix_cmds="$SED"~
11124	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11125	  prefix_cmds="$prefix_cmds -e 1d";
11126	fi~
11127	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11128	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11129	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11130	emximp -o $lib $output_objdir/$libname.def'
11131      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11132      enable_shared_with_static_runtimes=yes
11133      file_list_spec='@'
11134      ;;
11135
11136    osf3*)
11137      if test yes = "$GCC"; then
11138	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11139	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'
11140      else
11141	allow_undefined_flag=' -expect_unresolved \*'
11142	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'
11143      fi
11144      archive_cmds_need_lc='no'
11145      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11146      hardcode_libdir_separator=:
11147      ;;
11148
11149    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11150      if test yes = "$GCC"; then
11151	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11152	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'
11153	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11154      else
11155	allow_undefined_flag=' -expect_unresolved \*'
11156	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'
11157	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~
11158          $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'
11159
11160	# Both c and cxx compiler support -rpath directly
11161	hardcode_libdir_flag_spec='-rpath $libdir'
11162      fi
11163      archive_cmds_need_lc='no'
11164      hardcode_libdir_separator=:
11165      ;;
11166
11167    solaris*)
11168      no_undefined_flag=' -z defs'
11169      if test yes = "$GCC"; then
11170	wlarc='$wl'
11171	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11172	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11173          $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'
11174      else
11175	case `$CC -V 2>&1` in
11176	*"Compilers 5.0"*)
11177	  wlarc=''
11178	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11179	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11180            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11181	  ;;
11182	*)
11183	  wlarc='$wl'
11184	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11185	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11186            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11187	  ;;
11188	esac
11189      fi
11190      hardcode_libdir_flag_spec='-R$libdir'
11191      hardcode_shlibpath_var=no
11192      case $host_os in
11193      solaris2.[0-5] | solaris2.[0-5].*) ;;
11194      *)
11195	# The compiler driver will combine and reorder linker options,
11196	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11197	# but is careful enough not to reorder.
11198	# Supported since Solaris 2.6 (maybe 2.5.1?)
11199	if test yes = "$GCC"; then
11200	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11201	else
11202	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11203	fi
11204	;;
11205      esac
11206      link_all_deplibs=yes
11207      ;;
11208
11209    sunos4*)
11210      if test sequent = "$host_vendor"; then
11211	# Use $CC to link under sequent, because it throws in some extra .o
11212	# files that make .init and .fini sections work.
11213	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11214      else
11215	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11216      fi
11217      hardcode_libdir_flag_spec='-L$libdir'
11218      hardcode_direct=yes
11219      hardcode_minus_L=yes
11220      hardcode_shlibpath_var=no
11221      ;;
11222
11223    sysv4)
11224      case $host_vendor in
11225	sni)
11226	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227	  hardcode_direct=yes # is this really true???
11228	;;
11229	siemens)
11230	  ## LD is ld it makes a PLAMLIB
11231	  ## CC just makes a GrossModule.
11232	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11233	  reload_cmds='$CC -r -o $output$reload_objs'
11234	  hardcode_direct=no
11235        ;;
11236	motorola)
11237	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11239	;;
11240      esac
11241      runpath_var='LD_RUN_PATH'
11242      hardcode_shlibpath_var=no
11243      ;;
11244
11245    sysv4.3*)
11246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247      hardcode_shlibpath_var=no
11248      export_dynamic_flag_spec='-Bexport'
11249      ;;
11250
11251    sysv4*MP*)
11252      if test -d /usr/nec; then
11253	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11254	hardcode_shlibpath_var=no
11255	runpath_var=LD_RUN_PATH
11256	hardcode_runpath_var=yes
11257	ld_shlibs=yes
11258      fi
11259      ;;
11260
11261    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11262      no_undefined_flag='$wl-z,text'
11263      archive_cmds_need_lc=no
11264      hardcode_shlibpath_var=no
11265      runpath_var='LD_RUN_PATH'
11266
11267      if test yes = "$GCC"; then
11268	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11270      else
11271	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11273      fi
11274      ;;
11275
11276    sysv5* | sco3.2v5* | sco5v6*)
11277      # Note: We CANNOT use -z defs as we might desire, because we do not
11278      # link with -lc, and that would cause any symbols used from libc to
11279      # always be unresolved, which means just about no library would
11280      # ever link correctly.  If we're not using GNU ld we use -z text
11281      # though, which does catch some bad symbols but isn't as heavy-handed
11282      # as -z defs.
11283      no_undefined_flag='$wl-z,text'
11284      allow_undefined_flag='$wl-z,nodefs'
11285      archive_cmds_need_lc=no
11286      hardcode_shlibpath_var=no
11287      hardcode_libdir_flag_spec='$wl-R,$libdir'
11288      hardcode_libdir_separator=':'
11289      link_all_deplibs=yes
11290      export_dynamic_flag_spec='$wl-Bexport'
11291      runpath_var='LD_RUN_PATH'
11292
11293      if test yes = "$GCC"; then
11294	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11296      else
11297	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11299      fi
11300      ;;
11301
11302    uts4*)
11303      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304      hardcode_libdir_flag_spec='-L$libdir'
11305      hardcode_shlibpath_var=no
11306      ;;
11307
11308    *)
11309      ld_shlibs=no
11310      ;;
11311    esac
11312
11313    if test sni = "$host_vendor"; then
11314      case $host in
11315      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11316	export_dynamic_flag_spec='$wl-Blargedynsym'
11317	;;
11318      esac
11319    fi
11320  fi
11321
11322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11323printf "%s\n" "$ld_shlibs" >&6; }
11324test no = "$ld_shlibs" && can_build_shared=no
11325
11326with_gnu_ld=$with_gnu_ld
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342#
11343# Do we need to explicitly link libc?
11344#
11345case "x$archive_cmds_need_lc" in
11346x|xyes)
11347  # Assume -lc should be added
11348  archive_cmds_need_lc=yes
11349
11350  if test yes,yes = "$GCC,$enable_shared"; then
11351    case $archive_cmds in
11352    *'~'*)
11353      # FIXME: we may have to deal with multi-command sequences.
11354      ;;
11355    '$CC '*)
11356      # Test whether the compiler implicitly links with -lc since on some
11357      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11358      # to ld, don't add -lc before -lgcc.
11359      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11360printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11361if test ${lt_cv_archive_cmds_need_lc+y}
11362then :
11363  printf %s "(cached) " >&6
11364else $as_nop
11365  $RM conftest*
11366	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11367
11368	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11369  (eval $ac_compile) 2>&5
11370  ac_status=$?
11371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372  test $ac_status = 0; } 2>conftest.err; then
11373	  soname=conftest
11374	  lib=conftest
11375	  libobjs=conftest.$ac_objext
11376	  deplibs=
11377	  wl=$lt_prog_compiler_wl
11378	  pic_flag=$lt_prog_compiler_pic
11379	  compiler_flags=-v
11380	  linker_flags=-v
11381	  verstring=
11382	  output_objdir=.
11383	  libname=conftest
11384	  lt_save_allow_undefined_flag=$allow_undefined_flag
11385	  allow_undefined_flag=
11386	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11387  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11388  ac_status=$?
11389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11390  test $ac_status = 0; }
11391	  then
11392	    lt_cv_archive_cmds_need_lc=no
11393	  else
11394	    lt_cv_archive_cmds_need_lc=yes
11395	  fi
11396	  allow_undefined_flag=$lt_save_allow_undefined_flag
11397	else
11398	  cat conftest.err 1>&5
11399	fi
11400	$RM conftest*
11401
11402fi
11403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11404printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11405      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11406      ;;
11407    esac
11408  fi
11409  ;;
11410esac
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11564printf %s "checking dynamic linker characteristics... " >&6; }
11565
11566if test yes = "$GCC"; then
11567  case $host_os in
11568    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11569    *) lt_awk_arg='/^libraries:/' ;;
11570  esac
11571  case $host_os in
11572    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11573    *) lt_sed_strip_eq='s|=/|/|g' ;;
11574  esac
11575  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11576  case $lt_search_path_spec in
11577  *\;*)
11578    # if the path contains ";" then we assume it to be the separator
11579    # otherwise default to the standard path separator (i.e. ":") - it is
11580    # assumed that no part of a normal pathname contains ";" but that should
11581    # okay in the real world where ";" in dirpaths is itself problematic.
11582    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11583    ;;
11584  *)
11585    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11586    ;;
11587  esac
11588  # Ok, now we have the path, separated by spaces, we can step through it
11589  # and add multilib dir if necessary...
11590  lt_tmp_lt_search_path_spec=
11591  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11592  # ...but if some path component already ends with the multilib dir we assume
11593  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11594  case "$lt_multi_os_dir; $lt_search_path_spec " in
11595  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11596    lt_multi_os_dir=
11597    ;;
11598  esac
11599  for lt_sys_path in $lt_search_path_spec; do
11600    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11601      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11602    elif test -n "$lt_multi_os_dir"; then
11603      test -d "$lt_sys_path" && \
11604	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11605    fi
11606  done
11607  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11608BEGIN {RS = " "; FS = "/|\n";} {
11609  lt_foo = "";
11610  lt_count = 0;
11611  for (lt_i = NF; lt_i > 0; lt_i--) {
11612    if ($lt_i != "" && $lt_i != ".") {
11613      if ($lt_i == "..") {
11614        lt_count++;
11615      } else {
11616        if (lt_count == 0) {
11617          lt_foo = "/" $lt_i lt_foo;
11618        } else {
11619          lt_count--;
11620        }
11621      }
11622    }
11623  }
11624  if (lt_foo != "") { lt_freq[lt_foo]++; }
11625  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11626}'`
11627  # AWK program above erroneously prepends '/' to C:/dos/paths
11628  # for these hosts.
11629  case $host_os in
11630    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11631      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11632  esac
11633  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11634else
11635  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11636fi
11637library_names_spec=
11638libname_spec='lib$name'
11639soname_spec=
11640shrext_cmds=.so
11641postinstall_cmds=
11642postuninstall_cmds=
11643finish_cmds=
11644finish_eval=
11645shlibpath_var=
11646shlibpath_overrides_runpath=unknown
11647version_type=none
11648dynamic_linker="$host_os ld.so"
11649sys_lib_dlsearch_path_spec="/lib /usr/lib"
11650need_lib_prefix=unknown
11651hardcode_into_libs=no
11652
11653# when you set need_version to no, make sure it does not cause -set_version
11654# flags to be left without arguments
11655need_version=unknown
11656
11657
11658
11659case $host_os in
11660aix3*)
11661  version_type=linux # correct to gnu/linux during the next big refactor
11662  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11663  shlibpath_var=LIBPATH
11664
11665  # AIX 3 has no versioning support, so we append a major version to the name.
11666  soname_spec='$libname$release$shared_ext$major'
11667  ;;
11668
11669aix[4-9]*)
11670  version_type=linux # correct to gnu/linux during the next big refactor
11671  need_lib_prefix=no
11672  need_version=no
11673  hardcode_into_libs=yes
11674  if test ia64 = "$host_cpu"; then
11675    # AIX 5 supports IA64
11676    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11677    shlibpath_var=LD_LIBRARY_PATH
11678  else
11679    # With GCC up to 2.95.x, collect2 would create an import file
11680    # for dependence libraries.  The import file would start with
11681    # the line '#! .'.  This would cause the generated library to
11682    # depend on '.', always an invalid library.  This was fixed in
11683    # development snapshots of GCC prior to 3.0.
11684    case $host_os in
11685      aix4 | aix4.[01] | aix4.[01].*)
11686      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11687	   echo ' yes '
11688	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11689	:
11690      else
11691	can_build_shared=no
11692      fi
11693      ;;
11694    esac
11695    # Using Import Files as archive members, it is possible to support
11696    # filename-based versioning of shared library archives on AIX. While
11697    # this would work for both with and without runtime linking, it will
11698    # prevent static linking of such archives. So we do filename-based
11699    # shared library versioning with .so extension only, which is used
11700    # when both runtime linking and shared linking is enabled.
11701    # Unfortunately, runtime linking may impact performance, so we do
11702    # not want this to be the default eventually. Also, we use the
11703    # versioned .so libs for executables only if there is the -brtl
11704    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11705    # To allow for filename-based versioning support, we need to create
11706    # libNAME.so.V as an archive file, containing:
11707    # *) an Import File, referring to the versioned filename of the
11708    #    archive as well as the shared archive member, telling the
11709    #    bitwidth (32 or 64) of that shared object, and providing the
11710    #    list of exported symbols of that shared object, eventually
11711    #    decorated with the 'weak' keyword
11712    # *) the shared object with the F_LOADONLY flag set, to really avoid
11713    #    it being seen by the linker.
11714    # At run time we better use the real file rather than another symlink,
11715    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11716
11717    case $with_aix_soname,$aix_use_runtimelinking in
11718    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11719    # soname into executable. Probably we can add versioning support to
11720    # collect2, so additional links can be useful in future.
11721    aix,yes) # traditional libtool
11722      dynamic_linker='AIX unversionable lib.so'
11723      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11724      # instead of lib<name>.a to let people know that these are not
11725      # typical AIX shared libraries.
11726      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727      ;;
11728    aix,no) # traditional AIX only
11729      dynamic_linker='AIX lib.a(lib.so.V)'
11730      # We preserve .a as extension for shared libraries through AIX4.2
11731      # and later when we are not doing run time linking.
11732      library_names_spec='$libname$release.a $libname.a'
11733      soname_spec='$libname$release$shared_ext$major'
11734      ;;
11735    svr4,*) # full svr4 only
11736      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11737      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11738      # We do not specify a path in Import Files, so LIBPATH fires.
11739      shlibpath_overrides_runpath=yes
11740      ;;
11741    *,yes) # both, prefer svr4
11742      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11743      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11744      # unpreferred sharedlib libNAME.a needs extra handling
11745      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"'
11746      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"'
11747      # We do not specify a path in Import Files, so LIBPATH fires.
11748      shlibpath_overrides_runpath=yes
11749      ;;
11750    *,no) # both, prefer aix
11751      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11752      library_names_spec='$libname$release.a $libname.a'
11753      soname_spec='$libname$release$shared_ext$major'
11754      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11755      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)'
11756      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"'
11757      ;;
11758    esac
11759    shlibpath_var=LIBPATH
11760  fi
11761  ;;
11762
11763amigaos*)
11764  case $host_cpu in
11765  powerpc)
11766    # Since July 2007 AmigaOS4 officially supports .so libraries.
11767    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11768    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769    ;;
11770  m68k)
11771    library_names_spec='$libname.ixlibrary $libname.a'
11772    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11773    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'
11774    ;;
11775  esac
11776  ;;
11777
11778beos*)
11779  library_names_spec='$libname$shared_ext'
11780  dynamic_linker="$host_os ld.so"
11781  shlibpath_var=LIBRARY_PATH
11782  ;;
11783
11784bsdi[45]*)
11785  version_type=linux # correct to gnu/linux during the next big refactor
11786  need_version=no
11787  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788  soname_spec='$libname$release$shared_ext$major'
11789  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11790  shlibpath_var=LD_LIBRARY_PATH
11791  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11792  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11793  # the default ld.so.conf also contains /usr/contrib/lib and
11794  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11795  # libtool to hard-code these into programs
11796  ;;
11797
11798cygwin* | mingw* | pw32* | cegcc*)
11799  version_type=windows
11800  shrext_cmds=.dll
11801  need_version=no
11802  need_lib_prefix=no
11803
11804  case $GCC,$cc_basename in
11805  yes,*)
11806    # gcc
11807    library_names_spec='$libname.dll.a'
11808    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11809    postinstall_cmds='base_file=`basename \$file`~
11810      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11811      dldir=$destdir/`dirname \$dlpath`~
11812      test -d \$dldir || mkdir -p \$dldir~
11813      $install_prog $dir/$dlname \$dldir/$dlname~
11814      chmod a+x \$dldir/$dlname~
11815      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11816        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11817      fi'
11818    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11819      dlpath=$dir/\$dldll~
11820       $RM \$dlpath'
11821    shlibpath_overrides_runpath=yes
11822
11823    case $host_os in
11824    cygwin*)
11825      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11826      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11827
11828      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11829      ;;
11830    mingw* | cegcc*)
11831      # MinGW DLLs use traditional 'lib' prefix
11832      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11833      ;;
11834    pw32*)
11835      # pw32 DLLs use 'pw' prefix rather than 'lib'
11836      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11837      ;;
11838    esac
11839    dynamic_linker='Win32 ld.exe'
11840    ;;
11841
11842  *,cl* | *,icl*)
11843    # Native MSVC or ICC
11844    libname_spec='$name'
11845    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11846    library_names_spec='$libname.dll.lib'
11847
11848    case $build_os in
11849    mingw*)
11850      sys_lib_search_path_spec=
11851      lt_save_ifs=$IFS
11852      IFS=';'
11853      for lt_path in $LIB
11854      do
11855        IFS=$lt_save_ifs
11856        # Let DOS variable expansion print the short 8.3 style file name.
11857        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11858        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11859      done
11860      IFS=$lt_save_ifs
11861      # Convert to MSYS style.
11862      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11863      ;;
11864    cygwin*)
11865      # Convert to unix form, then to dos form, then back to unix form
11866      # but this time dos style (no spaces!) so that the unix form looks
11867      # like /cygdrive/c/PROGRA~1:/cygdr...
11868      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11869      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11870      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11871      ;;
11872    *)
11873      sys_lib_search_path_spec=$LIB
11874      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11875        # It is most probably a Windows format PATH.
11876        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11877      else
11878        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11879      fi
11880      # FIXME: find the short name or the path components, as spaces are
11881      # common. (e.g. "Program Files" -> "PROGRA~1")
11882      ;;
11883    esac
11884
11885    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11886    postinstall_cmds='base_file=`basename \$file`~
11887      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11888      dldir=$destdir/`dirname \$dlpath`~
11889      test -d \$dldir || mkdir -p \$dldir~
11890      $install_prog $dir/$dlname \$dldir/$dlname'
11891    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11892      dlpath=$dir/\$dldll~
11893       $RM \$dlpath'
11894    shlibpath_overrides_runpath=yes
11895    dynamic_linker='Win32 link.exe'
11896    ;;
11897
11898  *)
11899    # Assume MSVC and ICC wrapper
11900    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11901    dynamic_linker='Win32 ld.exe'
11902    ;;
11903  esac
11904  # FIXME: first we should search . and the directory the executable is in
11905  shlibpath_var=PATH
11906  ;;
11907
11908darwin* | rhapsody*)
11909  dynamic_linker="$host_os dyld"
11910  version_type=darwin
11911  need_lib_prefix=no
11912  need_version=no
11913  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11914  soname_spec='$libname$release$major$shared_ext'
11915  shlibpath_overrides_runpath=yes
11916  shlibpath_var=DYLD_LIBRARY_PATH
11917  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11918
11919  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11920  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11921  ;;
11922
11923dgux*)
11924  version_type=linux # correct to gnu/linux during the next big refactor
11925  need_lib_prefix=no
11926  need_version=no
11927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928  soname_spec='$libname$release$shared_ext$major'
11929  shlibpath_var=LD_LIBRARY_PATH
11930  ;;
11931
11932freebsd* | dragonfly* | midnightbsd*)
11933  # DragonFly does not have aout.  When/if they implement a new
11934  # versioning mechanism, adjust this.
11935  if test -x /usr/bin/objformat; then
11936    objformat=`/usr/bin/objformat`
11937  else
11938    case $host_os in
11939    freebsd[23].*) objformat=aout ;;
11940    *) objformat=elf ;;
11941    esac
11942  fi
11943  version_type=freebsd-$objformat
11944  case $version_type in
11945    freebsd-elf*)
11946      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947      soname_spec='$libname$release$shared_ext$major'
11948      need_version=no
11949      need_lib_prefix=no
11950      ;;
11951    freebsd-*)
11952      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953      need_version=yes
11954      ;;
11955  esac
11956  shlibpath_var=LD_LIBRARY_PATH
11957  case $host_os in
11958  freebsd2.*)
11959    shlibpath_overrides_runpath=yes
11960    ;;
11961  freebsd3.[01]* | freebsdelf3.[01]*)
11962    shlibpath_overrides_runpath=yes
11963    hardcode_into_libs=yes
11964    ;;
11965  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11966  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11967    shlibpath_overrides_runpath=no
11968    hardcode_into_libs=yes
11969    ;;
11970  *) # from 4.6 on, and DragonFly
11971    shlibpath_overrides_runpath=yes
11972    hardcode_into_libs=yes
11973    ;;
11974  esac
11975  ;;
11976
11977haiku*)
11978  version_type=linux # correct to gnu/linux during the next big refactor
11979  need_lib_prefix=no
11980  need_version=no
11981  dynamic_linker="$host_os runtime_loader"
11982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983  soname_spec='$libname$release$shared_ext$major'
11984  shlibpath_var=LIBRARY_PATH
11985  shlibpath_overrides_runpath=no
11986  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11987  hardcode_into_libs=yes
11988  ;;
11989
11990hpux9* | hpux10* | hpux11*)
11991  # Give a soname corresponding to the major version so that dld.sl refuses to
11992  # link against other versions.
11993  version_type=sunos
11994  need_lib_prefix=no
11995  need_version=no
11996  case $host_cpu in
11997  ia64*)
11998    shrext_cmds='.so'
11999    hardcode_into_libs=yes
12000    dynamic_linker="$host_os dld.so"
12001    shlibpath_var=LD_LIBRARY_PATH
12002    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12003    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12004    soname_spec='$libname$release$shared_ext$major'
12005    if test 32 = "$HPUX_IA64_MODE"; then
12006      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12007      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12008    else
12009      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12010      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12011    fi
12012    ;;
12013  hppa*64*)
12014    shrext_cmds='.sl'
12015    hardcode_into_libs=yes
12016    dynamic_linker="$host_os dld.sl"
12017    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12018    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12019    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020    soname_spec='$libname$release$shared_ext$major'
12021    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12022    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12023    ;;
12024  *)
12025    shrext_cmds='.sl'
12026    dynamic_linker="$host_os dld.sl"
12027    shlibpath_var=SHLIB_PATH
12028    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12029    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030    soname_spec='$libname$release$shared_ext$major'
12031    ;;
12032  esac
12033  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12034  postinstall_cmds='chmod 555 $lib'
12035  # or fails outright, so override atomically:
12036  install_override_mode=555
12037  ;;
12038
12039interix[3-9]*)
12040  version_type=linux # correct to gnu/linux during the next big refactor
12041  need_lib_prefix=no
12042  need_version=no
12043  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044  soname_spec='$libname$release$shared_ext$major'
12045  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12046  shlibpath_var=LD_LIBRARY_PATH
12047  shlibpath_overrides_runpath=no
12048  hardcode_into_libs=yes
12049  ;;
12050
12051irix5* | irix6* | nonstopux*)
12052  case $host_os in
12053    nonstopux*) version_type=nonstopux ;;
12054    *)
12055	if test yes = "$lt_cv_prog_gnu_ld"; then
12056		version_type=linux # correct to gnu/linux during the next big refactor
12057	else
12058		version_type=irix
12059	fi ;;
12060  esac
12061  need_lib_prefix=no
12062  need_version=no
12063  soname_spec='$libname$release$shared_ext$major'
12064  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12065  case $host_os in
12066  irix5* | nonstopux*)
12067    libsuff= shlibsuff=
12068    ;;
12069  *)
12070    case $LD in # libtool.m4 will add one of these switches to LD
12071    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12072      libsuff= shlibsuff= libmagic=32-bit;;
12073    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12074      libsuff=32 shlibsuff=N32 libmagic=N32;;
12075    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12076      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12077    *) libsuff= shlibsuff= libmagic=never-match;;
12078    esac
12079    ;;
12080  esac
12081  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12082  shlibpath_overrides_runpath=no
12083  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12084  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12085  hardcode_into_libs=yes
12086  ;;
12087
12088# No shared lib support for Linux oldld, aout, or coff.
12089linux*oldld* | linux*aout* | linux*coff*)
12090  dynamic_linker=no
12091  ;;
12092
12093linux*android*)
12094  version_type=none # Android doesn't support versioned libraries.
12095  need_lib_prefix=no
12096  need_version=no
12097  library_names_spec='$libname$release$shared_ext'
12098  soname_spec='$libname$release$shared_ext'
12099  finish_cmds=
12100  shlibpath_var=LD_LIBRARY_PATH
12101  shlibpath_overrides_runpath=yes
12102
12103  # This implies no fast_install, which is unacceptable.
12104  # Some rework will be needed to allow for fast_install
12105  # before this can be enabled.
12106  hardcode_into_libs=yes
12107
12108  dynamic_linker='Android linker'
12109  # Don't embed -rpath directories since the linker doesn't support them.
12110  hardcode_libdir_flag_spec='-L$libdir'
12111  ;;
12112
12113# This must be glibc/ELF.
12114linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12115  version_type=linux # correct to gnu/linux during the next big refactor
12116  need_lib_prefix=no
12117  need_version=no
12118  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119  soname_spec='$libname$release$shared_ext$major'
12120  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12121  shlibpath_var=LD_LIBRARY_PATH
12122  shlibpath_overrides_runpath=no
12123
12124  # Some binutils ld are patched to set DT_RUNPATH
12125  if test ${lt_cv_shlibpath_overrides_runpath+y}
12126then :
12127  printf %s "(cached) " >&6
12128else $as_nop
12129  lt_cv_shlibpath_overrides_runpath=no
12130    save_LDFLAGS=$LDFLAGS
12131    save_libdir=$libdir
12132    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12133	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137int
12138main (void)
12139{
12140
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145if ac_fn_c_try_link "$LINENO"
12146then :
12147  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12148then :
12149  lt_cv_shlibpath_overrides_runpath=yes
12150fi
12151fi
12152rm -f core conftest.err conftest.$ac_objext conftest.beam \
12153    conftest$ac_exeext conftest.$ac_ext
12154    LDFLAGS=$save_LDFLAGS
12155    libdir=$save_libdir
12156
12157fi
12158
12159  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12160
12161  # This implies no fast_install, which is unacceptable.
12162  # Some rework will be needed to allow for fast_install
12163  # before this can be enabled.
12164  hardcode_into_libs=yes
12165
12166  # Ideally, we could use ldconfig to report *all* directores which are
12167  # searched for libraries, however this is still not possible.  Aside from not
12168  # being certain /sbin/ldconfig is available, command
12169  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12170  # even though it is searched at run-time.  Try to do the best guess by
12171  # appending ld.so.conf contents (and includes) to the search path.
12172  if test -f /etc/ld.so.conf; then
12173    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' ' '`
12174    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12175  fi
12176
12177  # We used to test for /lib/ld.so.1 and disable shared libraries on
12178  # powerpc, because MkLinux only supported shared libraries with the
12179  # GNU dynamic linker.  Since this was broken with cross compilers,
12180  # most powerpc-linux boxes support dynamic linking these days and
12181  # people can always --disable-shared, the test was removed, and we
12182  # assume the GNU/Linux dynamic linker is in use.
12183  dynamic_linker='GNU/Linux ld.so'
12184  ;;
12185
12186netbsd*)
12187  version_type=sunos
12188  need_lib_prefix=no
12189  need_version=no
12190  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12191    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12192    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12193    dynamic_linker='NetBSD (a.out) ld.so'
12194  else
12195    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196    soname_spec='$libname$release$shared_ext$major'
12197    dynamic_linker='NetBSD ld.elf_so'
12198  fi
12199  shlibpath_var=LD_LIBRARY_PATH
12200  shlibpath_overrides_runpath=yes
12201  hardcode_into_libs=yes
12202  ;;
12203
12204newsos6)
12205  version_type=linux # correct to gnu/linux during the next big refactor
12206  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207  shlibpath_var=LD_LIBRARY_PATH
12208  shlibpath_overrides_runpath=yes
12209  ;;
12210
12211*nto* | *qnx*)
12212  version_type=qnx
12213  need_lib_prefix=no
12214  need_version=no
12215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216  soname_spec='$libname$release$shared_ext$major'
12217  shlibpath_var=LD_LIBRARY_PATH
12218  shlibpath_overrides_runpath=no
12219  hardcode_into_libs=yes
12220  dynamic_linker='ldqnx.so'
12221  ;;
12222
12223openbsd* | bitrig*)
12224  version_type=sunos
12225  sys_lib_dlsearch_path_spec=/usr/lib
12226  need_lib_prefix=no
12227  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12228    need_version=no
12229  else
12230    need_version=yes
12231  fi
12232  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12233  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12234  shlibpath_var=LD_LIBRARY_PATH
12235  shlibpath_overrides_runpath=yes
12236  ;;
12237
12238os2*)
12239  libname_spec='$name'
12240  version_type=windows
12241  shrext_cmds=.dll
12242  need_version=no
12243  need_lib_prefix=no
12244  # OS/2 can only load a DLL with a base name of 8 characters or less.
12245  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12246    v=$($ECHO $release$versuffix | tr -d .-);
12247    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12248    $ECHO $n$v`$shared_ext'
12249  library_names_spec='${libname}_dll.$libext'
12250  dynamic_linker='OS/2 ld.exe'
12251  shlibpath_var=BEGINLIBPATH
12252  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12253  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12254  postinstall_cmds='base_file=`basename \$file`~
12255    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12256    dldir=$destdir/`dirname \$dlpath`~
12257    test -d \$dldir || mkdir -p \$dldir~
12258    $install_prog $dir/$dlname \$dldir/$dlname~
12259    chmod a+x \$dldir/$dlname~
12260    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12261      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12262    fi'
12263  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12264    dlpath=$dir/\$dldll~
12265    $RM \$dlpath'
12266  ;;
12267
12268osf3* | osf4* | osf5*)
12269  version_type=osf
12270  need_lib_prefix=no
12271  need_version=no
12272  soname_spec='$libname$release$shared_ext$major'
12273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12276  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12277  ;;
12278
12279rdos*)
12280  dynamic_linker=no
12281  ;;
12282
12283solaris*)
12284  version_type=linux # correct to gnu/linux during the next big refactor
12285  need_lib_prefix=no
12286  need_version=no
12287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12288  soname_spec='$libname$release$shared_ext$major'
12289  shlibpath_var=LD_LIBRARY_PATH
12290  shlibpath_overrides_runpath=yes
12291  hardcode_into_libs=yes
12292  # ldd complains unless libraries are executable
12293  postinstall_cmds='chmod +x $lib'
12294  ;;
12295
12296sunos4*)
12297  version_type=sunos
12298  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12299  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12300  shlibpath_var=LD_LIBRARY_PATH
12301  shlibpath_overrides_runpath=yes
12302  if test yes = "$with_gnu_ld"; then
12303    need_lib_prefix=no
12304  fi
12305  need_version=yes
12306  ;;
12307
12308sysv4 | sysv4.3*)
12309  version_type=linux # correct to gnu/linux during the next big refactor
12310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12311  soname_spec='$libname$release$shared_ext$major'
12312  shlibpath_var=LD_LIBRARY_PATH
12313  case $host_vendor in
12314    sni)
12315      shlibpath_overrides_runpath=no
12316      need_lib_prefix=no
12317      runpath_var=LD_RUN_PATH
12318      ;;
12319    siemens)
12320      need_lib_prefix=no
12321      ;;
12322    motorola)
12323      need_lib_prefix=no
12324      need_version=no
12325      shlibpath_overrides_runpath=no
12326      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12327      ;;
12328  esac
12329  ;;
12330
12331sysv4*MP*)
12332  if test -d /usr/nec; then
12333    version_type=linux # correct to gnu/linux during the next big refactor
12334    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12335    soname_spec='$libname$shared_ext.$major'
12336    shlibpath_var=LD_LIBRARY_PATH
12337  fi
12338  ;;
12339
12340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12341  version_type=sco
12342  need_lib_prefix=no
12343  need_version=no
12344  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12345  soname_spec='$libname$release$shared_ext$major'
12346  shlibpath_var=LD_LIBRARY_PATH
12347  shlibpath_overrides_runpath=yes
12348  hardcode_into_libs=yes
12349  if test yes = "$with_gnu_ld"; then
12350    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12351  else
12352    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12353    case $host_os in
12354      sco3.2v5*)
12355        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12356	;;
12357    esac
12358  fi
12359  sys_lib_dlsearch_path_spec='/usr/lib'
12360  ;;
12361
12362tpf*)
12363  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12364  version_type=linux # correct to gnu/linux during the next big refactor
12365  need_lib_prefix=no
12366  need_version=no
12367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368  shlibpath_var=LD_LIBRARY_PATH
12369  shlibpath_overrides_runpath=no
12370  hardcode_into_libs=yes
12371  ;;
12372
12373uts4*)
12374  version_type=linux # correct to gnu/linux during the next big refactor
12375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12376  soname_spec='$libname$release$shared_ext$major'
12377  shlibpath_var=LD_LIBRARY_PATH
12378  ;;
12379
12380*)
12381  dynamic_linker=no
12382  ;;
12383esac
12384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12385printf "%s\n" "$dynamic_linker" >&6; }
12386test no = "$dynamic_linker" && can_build_shared=no
12387
12388variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12389if test yes = "$GCC"; then
12390  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12391fi
12392
12393if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12394  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12395fi
12396
12397if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12398  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12399fi
12400
12401# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12402configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12403
12404# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12405func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12406
12407# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12408configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12507printf %s "checking how to hardcode library paths into programs... " >&6; }
12508hardcode_action=
12509if test -n "$hardcode_libdir_flag_spec" ||
12510   test -n "$runpath_var" ||
12511   test yes = "$hardcode_automatic"; then
12512
12513  # We can hardcode non-existent directories.
12514  if test no != "$hardcode_direct" &&
12515     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12516     # have to relink, otherwise we might link with an installed library
12517     # when we should be linking with a yet-to-be-installed one
12518     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12519     test no != "$hardcode_minus_L"; then
12520    # Linking always hardcodes the temporary library directory.
12521    hardcode_action=relink
12522  else
12523    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12524    hardcode_action=immediate
12525  fi
12526else
12527  # We cannot hardcode anything, or else we can only hardcode existing
12528  # directories.
12529  hardcode_action=unsupported
12530fi
12531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12532printf "%s\n" "$hardcode_action" >&6; }
12533
12534if test relink = "$hardcode_action" ||
12535   test yes = "$inherit_rpath"; then
12536  # Fast installation is not supported
12537  enable_fast_install=no
12538elif test yes = "$shlibpath_overrides_runpath" ||
12539     test no = "$enable_shared"; then
12540  # Fast installation is not necessary
12541  enable_fast_install=needless
12542fi
12543
12544
12545
12546
12547
12548
12549  if test yes != "$enable_dlopen"; then
12550  enable_dlopen=unknown
12551  enable_dlopen_self=unknown
12552  enable_dlopen_self_static=unknown
12553else
12554  lt_cv_dlopen=no
12555  lt_cv_dlopen_libs=
12556
12557  case $host_os in
12558  beos*)
12559    lt_cv_dlopen=load_add_on
12560    lt_cv_dlopen_libs=
12561    lt_cv_dlopen_self=yes
12562    ;;
12563
12564  mingw* | pw32* | cegcc*)
12565    lt_cv_dlopen=LoadLibrary
12566    lt_cv_dlopen_libs=
12567    ;;
12568
12569  cygwin*)
12570    lt_cv_dlopen=dlopen
12571    lt_cv_dlopen_libs=
12572    ;;
12573
12574  darwin*)
12575    # if libdl is installed we need to link against it
12576    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12577printf %s "checking for dlopen in -ldl... " >&6; }
12578if test ${ac_cv_lib_dl_dlopen+y}
12579then :
12580  printf %s "(cached) " >&6
12581else $as_nop
12582  ac_check_lib_save_LIBS=$LIBS
12583LIBS="-ldl  $LIBS"
12584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h.  */
12586
12587/* Override any GCC internal prototype to avoid an error.
12588   Use char because int might match the return type of a GCC
12589   builtin and then its argument prototype would still apply.  */
12590char dlopen ();
12591int
12592main (void)
12593{
12594return dlopen ();
12595  ;
12596  return 0;
12597}
12598_ACEOF
12599if ac_fn_c_try_link "$LINENO"
12600then :
12601  ac_cv_lib_dl_dlopen=yes
12602else $as_nop
12603  ac_cv_lib_dl_dlopen=no
12604fi
12605rm -f core conftest.err conftest.$ac_objext conftest.beam \
12606    conftest$ac_exeext conftest.$ac_ext
12607LIBS=$ac_check_lib_save_LIBS
12608fi
12609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12610printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12611if test "x$ac_cv_lib_dl_dlopen" = xyes
12612then :
12613  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12614else $as_nop
12615
12616    lt_cv_dlopen=dyld
12617    lt_cv_dlopen_libs=
12618    lt_cv_dlopen_self=yes
12619
12620fi
12621
12622    ;;
12623
12624  tpf*)
12625    # Don't try to run any link tests for TPF.  We know it's impossible
12626    # because TPF is a cross-compiler, and we know how we open DSOs.
12627    lt_cv_dlopen=dlopen
12628    lt_cv_dlopen_libs=
12629    lt_cv_dlopen_self=no
12630    ;;
12631
12632  *)
12633    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12634if test "x$ac_cv_func_shl_load" = xyes
12635then :
12636  lt_cv_dlopen=shl_load
12637else $as_nop
12638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12639printf %s "checking for shl_load in -ldld... " >&6; }
12640if test ${ac_cv_lib_dld_shl_load+y}
12641then :
12642  printf %s "(cached) " >&6
12643else $as_nop
12644  ac_check_lib_save_LIBS=$LIBS
12645LIBS="-ldld  $LIBS"
12646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648
12649/* Override any GCC internal prototype to avoid an error.
12650   Use char because int might match the return type of a GCC
12651   builtin and then its argument prototype would still apply.  */
12652char shl_load ();
12653int
12654main (void)
12655{
12656return shl_load ();
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661if ac_fn_c_try_link "$LINENO"
12662then :
12663  ac_cv_lib_dld_shl_load=yes
12664else $as_nop
12665  ac_cv_lib_dld_shl_load=no
12666fi
12667rm -f core conftest.err conftest.$ac_objext conftest.beam \
12668    conftest$ac_exeext conftest.$ac_ext
12669LIBS=$ac_check_lib_save_LIBS
12670fi
12671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12672printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12673if test "x$ac_cv_lib_dld_shl_load" = xyes
12674then :
12675  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12676else $as_nop
12677  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12678if test "x$ac_cv_func_dlopen" = xyes
12679then :
12680  lt_cv_dlopen=dlopen
12681else $as_nop
12682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12683printf %s "checking for dlopen in -ldl... " >&6; }
12684if test ${ac_cv_lib_dl_dlopen+y}
12685then :
12686  printf %s "(cached) " >&6
12687else $as_nop
12688  ac_check_lib_save_LIBS=$LIBS
12689LIBS="-ldl  $LIBS"
12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692
12693/* Override any GCC internal prototype to avoid an error.
12694   Use char because int might match the return type of a GCC
12695   builtin and then its argument prototype would still apply.  */
12696char dlopen ();
12697int
12698main (void)
12699{
12700return dlopen ();
12701  ;
12702  return 0;
12703}
12704_ACEOF
12705if ac_fn_c_try_link "$LINENO"
12706then :
12707  ac_cv_lib_dl_dlopen=yes
12708else $as_nop
12709  ac_cv_lib_dl_dlopen=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext conftest.beam \
12712    conftest$ac_exeext conftest.$ac_ext
12713LIBS=$ac_check_lib_save_LIBS
12714fi
12715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12716printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12717if test "x$ac_cv_lib_dl_dlopen" = xyes
12718then :
12719  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12720else $as_nop
12721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12722printf %s "checking for dlopen in -lsvld... " >&6; }
12723if test ${ac_cv_lib_svld_dlopen+y}
12724then :
12725  printf %s "(cached) " >&6
12726else $as_nop
12727  ac_check_lib_save_LIBS=$LIBS
12728LIBS="-lsvld  $LIBS"
12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731
12732/* Override any GCC internal prototype to avoid an error.
12733   Use char because int might match the return type of a GCC
12734   builtin and then its argument prototype would still apply.  */
12735char dlopen ();
12736int
12737main (void)
12738{
12739return dlopen ();
12740  ;
12741  return 0;
12742}
12743_ACEOF
12744if ac_fn_c_try_link "$LINENO"
12745then :
12746  ac_cv_lib_svld_dlopen=yes
12747else $as_nop
12748  ac_cv_lib_svld_dlopen=no
12749fi
12750rm -f core conftest.err conftest.$ac_objext conftest.beam \
12751    conftest$ac_exeext conftest.$ac_ext
12752LIBS=$ac_check_lib_save_LIBS
12753fi
12754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12755printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12756if test "x$ac_cv_lib_svld_dlopen" = xyes
12757then :
12758  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12759else $as_nop
12760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12761printf %s "checking for dld_link in -ldld... " >&6; }
12762if test ${ac_cv_lib_dld_dld_link+y}
12763then :
12764  printf %s "(cached) " >&6
12765else $as_nop
12766  ac_check_lib_save_LIBS=$LIBS
12767LIBS="-ldld  $LIBS"
12768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769/* end confdefs.h.  */
12770
12771/* Override any GCC internal prototype to avoid an error.
12772   Use char because int might match the return type of a GCC
12773   builtin and then its argument prototype would still apply.  */
12774char dld_link ();
12775int
12776main (void)
12777{
12778return dld_link ();
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_link "$LINENO"
12784then :
12785  ac_cv_lib_dld_dld_link=yes
12786else $as_nop
12787  ac_cv_lib_dld_dld_link=no
12788fi
12789rm -f core conftest.err conftest.$ac_objext conftest.beam \
12790    conftest$ac_exeext conftest.$ac_ext
12791LIBS=$ac_check_lib_save_LIBS
12792fi
12793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12794printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12795if test "x$ac_cv_lib_dld_dld_link" = xyes
12796then :
12797  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12798fi
12799
12800
12801fi
12802
12803
12804fi
12805
12806
12807fi
12808
12809
12810fi
12811
12812
12813fi
12814
12815    ;;
12816  esac
12817
12818  if test no = "$lt_cv_dlopen"; then
12819    enable_dlopen=no
12820  else
12821    enable_dlopen=yes
12822  fi
12823
12824  case $lt_cv_dlopen in
12825  dlopen)
12826    save_CPPFLAGS=$CPPFLAGS
12827    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12828
12829    save_LDFLAGS=$LDFLAGS
12830    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12831
12832    save_LIBS=$LIBS
12833    LIBS="$lt_cv_dlopen_libs $LIBS"
12834
12835    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12836printf %s "checking whether a program can dlopen itself... " >&6; }
12837if test ${lt_cv_dlopen_self+y}
12838then :
12839  printf %s "(cached) " >&6
12840else $as_nop
12841  	  if test yes = "$cross_compiling"; then :
12842  lt_cv_dlopen_self=cross
12843else
12844  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12845  lt_status=$lt_dlunknown
12846  cat > conftest.$ac_ext <<_LT_EOF
12847#line $LINENO "configure"
12848#include "confdefs.h"
12849
12850#if HAVE_DLFCN_H
12851#include <dlfcn.h>
12852#endif
12853
12854#include <stdio.h>
12855
12856#ifdef RTLD_GLOBAL
12857#  define LT_DLGLOBAL		RTLD_GLOBAL
12858#else
12859#  ifdef DL_GLOBAL
12860#    define LT_DLGLOBAL		DL_GLOBAL
12861#  else
12862#    define LT_DLGLOBAL		0
12863#  endif
12864#endif
12865
12866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12867   find out it does not work in some platform. */
12868#ifndef LT_DLLAZY_OR_NOW
12869#  ifdef RTLD_LAZY
12870#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12871#  else
12872#    ifdef DL_LAZY
12873#      define LT_DLLAZY_OR_NOW		DL_LAZY
12874#    else
12875#      ifdef RTLD_NOW
12876#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12877#      else
12878#        ifdef DL_NOW
12879#          define LT_DLLAZY_OR_NOW	DL_NOW
12880#        else
12881#          define LT_DLLAZY_OR_NOW	0
12882#        endif
12883#      endif
12884#    endif
12885#  endif
12886#endif
12887
12888/* When -fvisibility=hidden is used, assume the code has been annotated
12889   correspondingly for the symbols needed.  */
12890#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12891int fnord () __attribute__((visibility("default")));
12892#endif
12893
12894int fnord () { return 42; }
12895int main ()
12896{
12897  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12898  int status = $lt_dlunknown;
12899
12900  if (self)
12901    {
12902      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12903      else
12904        {
12905	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12906          else puts (dlerror ());
12907	}
12908      /* dlclose (self); */
12909    }
12910  else
12911    puts (dlerror ());
12912
12913  return status;
12914}
12915_LT_EOF
12916  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12917  (eval $ac_link) 2>&5
12918  ac_status=$?
12919  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12921    (./conftest; exit; ) >&5 2>/dev/null
12922    lt_status=$?
12923    case x$lt_status in
12924      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12925      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12926      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12927    esac
12928  else :
12929    # compilation failed
12930    lt_cv_dlopen_self=no
12931  fi
12932fi
12933rm -fr conftest*
12934
12935
12936fi
12937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12938printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12939
12940    if test yes = "$lt_cv_dlopen_self"; then
12941      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12942      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12943printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12944if test ${lt_cv_dlopen_self_static+y}
12945then :
12946  printf %s "(cached) " >&6
12947else $as_nop
12948  	  if test yes = "$cross_compiling"; then :
12949  lt_cv_dlopen_self_static=cross
12950else
12951  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12952  lt_status=$lt_dlunknown
12953  cat > conftest.$ac_ext <<_LT_EOF
12954#line $LINENO "configure"
12955#include "confdefs.h"
12956
12957#if HAVE_DLFCN_H
12958#include <dlfcn.h>
12959#endif
12960
12961#include <stdio.h>
12962
12963#ifdef RTLD_GLOBAL
12964#  define LT_DLGLOBAL		RTLD_GLOBAL
12965#else
12966#  ifdef DL_GLOBAL
12967#    define LT_DLGLOBAL		DL_GLOBAL
12968#  else
12969#    define LT_DLGLOBAL		0
12970#  endif
12971#endif
12972
12973/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12974   find out it does not work in some platform. */
12975#ifndef LT_DLLAZY_OR_NOW
12976#  ifdef RTLD_LAZY
12977#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12978#  else
12979#    ifdef DL_LAZY
12980#      define LT_DLLAZY_OR_NOW		DL_LAZY
12981#    else
12982#      ifdef RTLD_NOW
12983#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12984#      else
12985#        ifdef DL_NOW
12986#          define LT_DLLAZY_OR_NOW	DL_NOW
12987#        else
12988#          define LT_DLLAZY_OR_NOW	0
12989#        endif
12990#      endif
12991#    endif
12992#  endif
12993#endif
12994
12995/* When -fvisibility=hidden is used, assume the code has been annotated
12996   correspondingly for the symbols needed.  */
12997#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12998int fnord () __attribute__((visibility("default")));
12999#endif
13000
13001int fnord () { return 42; }
13002int main ()
13003{
13004  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005  int status = $lt_dlunknown;
13006
13007  if (self)
13008    {
13009      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13010      else
13011        {
13012	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13013          else puts (dlerror ());
13014	}
13015      /* dlclose (self); */
13016    }
13017  else
13018    puts (dlerror ());
13019
13020  return status;
13021}
13022_LT_EOF
13023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13024  (eval $ac_link) 2>&5
13025  ac_status=$?
13026  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13028    (./conftest; exit; ) >&5 2>/dev/null
13029    lt_status=$?
13030    case x$lt_status in
13031      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13032      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13033      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13034    esac
13035  else :
13036    # compilation failed
13037    lt_cv_dlopen_self_static=no
13038  fi
13039fi
13040rm -fr conftest*
13041
13042
13043fi
13044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13045printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13046    fi
13047
13048    CPPFLAGS=$save_CPPFLAGS
13049    LDFLAGS=$save_LDFLAGS
13050    LIBS=$save_LIBS
13051    ;;
13052  esac
13053
13054  case $lt_cv_dlopen_self in
13055  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13056  *) enable_dlopen_self=unknown ;;
13057  esac
13058
13059  case $lt_cv_dlopen_self_static in
13060  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13061  *) enable_dlopen_self_static=unknown ;;
13062  esac
13063fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081striplib=
13082old_striplib=
13083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13084printf %s "checking whether stripping libraries is possible... " >&6; }
13085if test -z "$STRIP"; then
13086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087printf "%s\n" "no" >&6; }
13088else
13089  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13090    old_striplib="$STRIP --strip-debug"
13091    striplib="$STRIP --strip-unneeded"
13092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093printf "%s\n" "yes" >&6; }
13094  else
13095    case $host_os in
13096    darwin*)
13097      # FIXME - insert some real tests, host_os isn't really good enough
13098      striplib="$STRIP -x"
13099      old_striplib="$STRIP -S"
13100      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13101printf "%s\n" "yes" >&6; }
13102      ;;
13103    freebsd*)
13104      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13105        old_striplib="$STRIP --strip-debug"
13106        striplib="$STRIP --strip-unneeded"
13107        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108printf "%s\n" "yes" >&6; }
13109      else
13110        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111printf "%s\n" "no" >&6; }
13112      fi
13113      ;;
13114    *)
13115      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116printf "%s\n" "no" >&6; }
13117      ;;
13118    esac
13119  fi
13120fi
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133  # Report what library types will actually be built
13134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13135printf %s "checking if libtool supports shared libraries... " >&6; }
13136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13137printf "%s\n" "$can_build_shared" >&6; }
13138
13139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13140printf %s "checking whether to build shared libraries... " >&6; }
13141  test no = "$can_build_shared" && enable_shared=no
13142
13143  # On AIX, shared libraries and static libraries use the same namespace, and
13144  # are all built from PIC.
13145  case $host_os in
13146  aix3*)
13147    test yes = "$enable_shared" && enable_static=no
13148    if test -n "$RANLIB"; then
13149      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13150      postinstall_cmds='$RANLIB $lib'
13151    fi
13152    ;;
13153
13154  aix[4-9]*)
13155    if test ia64 != "$host_cpu"; then
13156      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13157      yes,aix,yes) ;;			# shared object as lib.so file only
13158      yes,svr4,*) ;;			# shared object as lib.so archive member only
13159      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13160      esac
13161    fi
13162    ;;
13163  esac
13164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13165printf "%s\n" "$enable_shared" >&6; }
13166
13167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13168printf %s "checking whether to build static libraries... " >&6; }
13169  # Make sure either enable_shared or enable_static is yes.
13170  test yes = "$enable_shared" || enable_static=yes
13171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13172printf "%s\n" "$enable_static" >&6; }
13173
13174
13175
13176
13177fi
13178ac_ext=c
13179ac_cpp='$CPP $CPPFLAGS'
13180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184CC=$lt_save_CC
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200        ac_config_commands="$ac_config_commands libtool"
13201
13202
13203
13204
13205# Only expand once:
13206
13207
13208
13209# Check whether --enable-largefile was given.
13210if test ${enable_largefile+y}
13211then :
13212  enableval=$enable_largefile;
13213fi
13214
13215if test "$enable_largefile" != no; then
13216
13217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13218printf %s "checking for special C compiler options needed for large files... " >&6; }
13219if test ${ac_cv_sys_largefile_CC+y}
13220then :
13221  printf %s "(cached) " >&6
13222else $as_nop
13223  ac_cv_sys_largefile_CC=no
13224     if test "$GCC" != yes; then
13225       ac_save_CC=$CC
13226       while :; do
13227	 # IRIX 6.2 and later do not support large files by default,
13228	 # so use the C compiler's -n32 option if that helps.
13229	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h.  */
13231#include <sys/types.h>
13232 /* Check that off_t can represent 2**63 - 1 correctly.
13233    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13234    since some C++ compilers masquerading as C compilers
13235    incorrectly reject 9223372036854775807.  */
13236#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13237  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13238		       && LARGE_OFF_T % 2147483647 == 1)
13239		      ? 1 : -1];
13240int
13241main (void)
13242{
13243
13244  ;
13245  return 0;
13246}
13247_ACEOF
13248	 if ac_fn_c_try_compile "$LINENO"
13249then :
13250  break
13251fi
13252rm -f core conftest.err conftest.$ac_objext conftest.beam
13253	 CC="$CC -n32"
13254	 if ac_fn_c_try_compile "$LINENO"
13255then :
13256  ac_cv_sys_largefile_CC=' -n32'; break
13257fi
13258rm -f core conftest.err conftest.$ac_objext conftest.beam
13259	 break
13260       done
13261       CC=$ac_save_CC
13262       rm -f conftest.$ac_ext
13263    fi
13264fi
13265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13266printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13267  if test "$ac_cv_sys_largefile_CC" != no; then
13268    CC=$CC$ac_cv_sys_largefile_CC
13269  fi
13270
13271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13272printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13273if test ${ac_cv_sys_file_offset_bits+y}
13274then :
13275  printf %s "(cached) " >&6
13276else $as_nop
13277  while :; do
13278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280#include <sys/types.h>
13281 /* Check that off_t can represent 2**63 - 1 correctly.
13282    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13283    since some C++ compilers masquerading as C compilers
13284    incorrectly reject 9223372036854775807.  */
13285#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13286  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13287		       && LARGE_OFF_T % 2147483647 == 1)
13288		      ? 1 : -1];
13289int
13290main (void)
13291{
13292
13293  ;
13294  return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_compile "$LINENO"
13298then :
13299  ac_cv_sys_file_offset_bits=no; break
13300fi
13301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303/* end confdefs.h.  */
13304#define _FILE_OFFSET_BITS 64
13305#include <sys/types.h>
13306 /* Check that off_t can represent 2**63 - 1 correctly.
13307    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13308    since some C++ compilers masquerading as C compilers
13309    incorrectly reject 9223372036854775807.  */
13310#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13311  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13312		       && LARGE_OFF_T % 2147483647 == 1)
13313		      ? 1 : -1];
13314int
13315main (void)
13316{
13317
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322if ac_fn_c_try_compile "$LINENO"
13323then :
13324  ac_cv_sys_file_offset_bits=64; break
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13327  ac_cv_sys_file_offset_bits=unknown
13328  break
13329done
13330fi
13331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13332printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13333case $ac_cv_sys_file_offset_bits in #(
13334  no | unknown) ;;
13335  *)
13336printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13337;;
13338esac
13339rm -rf conftest*
13340  if test $ac_cv_sys_file_offset_bits = unknown; then
13341    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13342printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13343if test ${ac_cv_sys_large_files+y}
13344then :
13345  printf %s "(cached) " >&6
13346else $as_nop
13347  while :; do
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350#include <sys/types.h>
13351 /* Check that off_t can represent 2**63 - 1 correctly.
13352    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13353    since some C++ compilers masquerading as C compilers
13354    incorrectly reject 9223372036854775807.  */
13355#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13356  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13357		       && LARGE_OFF_T % 2147483647 == 1)
13358		      ? 1 : -1];
13359int
13360main (void)
13361{
13362
13363  ;
13364  return 0;
13365}
13366_ACEOF
13367if ac_fn_c_try_compile "$LINENO"
13368then :
13369  ac_cv_sys_large_files=no; break
13370fi
13371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374#define _LARGE_FILES 1
13375#include <sys/types.h>
13376 /* Check that off_t can represent 2**63 - 1 correctly.
13377    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13378    since some C++ compilers masquerading as C compilers
13379    incorrectly reject 9223372036854775807.  */
13380#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13381  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13382		       && LARGE_OFF_T % 2147483647 == 1)
13383		      ? 1 : -1];
13384int
13385main (void)
13386{
13387
13388  ;
13389  return 0;
13390}
13391_ACEOF
13392if ac_fn_c_try_compile "$LINENO"
13393then :
13394  ac_cv_sys_large_files=1; break
13395fi
13396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13397  ac_cv_sys_large_files=unknown
13398  break
13399done
13400fi
13401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13402printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13403case $ac_cv_sys_large_files in #(
13404  no | unknown) ;;
13405  *)
13406printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13407;;
13408esac
13409rm -rf conftest*
13410  fi
13411fi
13412
13413
13414# Require xorg-macros minimum of 1.15 for fop minimum version
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13428printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13429if test ${ac_cv_c_undeclared_builtin_options+y}
13430then :
13431  printf %s "(cached) " >&6
13432else $as_nop
13433  ac_save_CFLAGS=$CFLAGS
13434   ac_cv_c_undeclared_builtin_options='cannot detect'
13435   for ac_arg in '' -fno-builtin; do
13436     CFLAGS="$ac_save_CFLAGS $ac_arg"
13437     # This test program should *not* compile successfully.
13438     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439/* end confdefs.h.  */
13440
13441int
13442main (void)
13443{
13444(void) strchr;
13445  ;
13446  return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_compile "$LINENO"
13450then :
13451
13452else $as_nop
13453  # This test program should compile successfully.
13454        # No library function is consistently available on
13455        # freestanding implementations, so test against a dummy
13456        # declaration.  Include always-available headers on the
13457        # off chance that they somehow elicit warnings.
13458        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459/* end confdefs.h.  */
13460#include <float.h>
13461#include <limits.h>
13462#include <stdarg.h>
13463#include <stddef.h>
13464extern void ac_decl (int, char *);
13465
13466int
13467main (void)
13468{
13469(void) ac_decl (0, (char *) 0);
13470  (void) ac_decl;
13471
13472  ;
13473  return 0;
13474}
13475_ACEOF
13476if ac_fn_c_try_compile "$LINENO"
13477then :
13478  if test x"$ac_arg" = x
13479then :
13480  ac_cv_c_undeclared_builtin_options='none needed'
13481else $as_nop
13482  ac_cv_c_undeclared_builtin_options=$ac_arg
13483fi
13484          break
13485fi
13486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13487fi
13488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13489    done
13490    CFLAGS=$ac_save_CFLAGS
13491
13492fi
13493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13494printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13495  case $ac_cv_c_undeclared_builtin_options in #(
13496  'cannot detect') :
13497    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13499as_fn_error $? "cannot make $CC report undeclared builtins
13500See \`config.log' for more details" "$LINENO" 5; } ;; #(
13501  'none needed') :
13502    ac_c_undeclared_builtin_options='' ;; #(
13503  *) :
13504    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13505esac
13506
13507
13508
13509
13510
13511ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13512if test "x$ac_cv_have_decl___clang__" = xyes
13513then :
13514  CLANGCC="yes"
13515else $as_nop
13516  CLANGCC="no"
13517fi
13518ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13519if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13520then :
13521  INTELCC="yes"
13522else $as_nop
13523  INTELCC="no"
13524fi
13525ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13526if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13527then :
13528  SUNCC="yes"
13529else $as_nop
13530  SUNCC="no"
13531fi
13532
13533
13534
13535
13536
13537
13538
13539
13540if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13541	if test -n "$ac_tool_prefix"; then
13542  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13543set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545printf %s "checking for $ac_word... " >&6; }
13546if test ${ac_cv_path_PKG_CONFIG+y}
13547then :
13548  printf %s "(cached) " >&6
13549else $as_nop
13550  case $PKG_CONFIG in
13551  [\\/]* | ?:[\\/]*)
13552  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13553  ;;
13554  *)
13555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558  IFS=$as_save_IFS
13559  case $as_dir in #(((
13560    '') as_dir=./ ;;
13561    */) ;;
13562    *) as_dir=$as_dir/ ;;
13563  esac
13564    for ac_exec_ext in '' $ac_executable_extensions; do
13565  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13566    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13567    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13568    break 2
13569  fi
13570done
13571  done
13572IFS=$as_save_IFS
13573
13574  ;;
13575esac
13576fi
13577PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13578if test -n "$PKG_CONFIG"; then
13579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13580printf "%s\n" "$PKG_CONFIG" >&6; }
13581else
13582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583printf "%s\n" "no" >&6; }
13584fi
13585
13586
13587fi
13588if test -z "$ac_cv_path_PKG_CONFIG"; then
13589  ac_pt_PKG_CONFIG=$PKG_CONFIG
13590  # Extract the first word of "pkg-config", so it can be a program name with args.
13591set dummy pkg-config; ac_word=$2
13592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593printf %s "checking for $ac_word... " >&6; }
13594if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13595then :
13596  printf %s "(cached) " >&6
13597else $as_nop
13598  case $ac_pt_PKG_CONFIG in
13599  [\\/]* | ?:[\\/]*)
13600  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13601  ;;
13602  *)
13603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604for as_dir in $PATH
13605do
13606  IFS=$as_save_IFS
13607  case $as_dir in #(((
13608    '') as_dir=./ ;;
13609    */) ;;
13610    *) as_dir=$as_dir/ ;;
13611  esac
13612    for ac_exec_ext in '' $ac_executable_extensions; do
13613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13614    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13616    break 2
13617  fi
13618done
13619  done
13620IFS=$as_save_IFS
13621
13622  ;;
13623esac
13624fi
13625ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13626if test -n "$ac_pt_PKG_CONFIG"; then
13627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13628printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13629else
13630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631printf "%s\n" "no" >&6; }
13632fi
13633
13634  if test "x$ac_pt_PKG_CONFIG" = x; then
13635    PKG_CONFIG=""
13636  else
13637    case $cross_compiling:$ac_tool_warned in
13638yes:)
13639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13640printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13641ac_tool_warned=yes ;;
13642esac
13643    PKG_CONFIG=$ac_pt_PKG_CONFIG
13644  fi
13645else
13646  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13647fi
13648
13649fi
13650if test -n "$PKG_CONFIG"; then
13651	_pkg_min_version=0.9.0
13652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13653printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13654	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13656printf "%s\n" "yes" >&6; }
13657	else
13658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659printf "%s\n" "no" >&6; }
13660		PKG_CONFIG=""
13661	fi
13662fi
13663
13664
13665
13666
13667
13668# Check whether --enable-selective-werror was given.
13669if test ${enable_selective_werror+y}
13670then :
13671  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13672else $as_nop
13673  SELECTIVE_WERROR=yes
13674fi
13675
13676
13677
13678
13679
13680# -v is too short to test reliably with XORG_TESTSET_CFLAG
13681if test "x$SUNCC" = "xyes"; then
13682    BASE_CFLAGS="-v"
13683else
13684    BASE_CFLAGS=""
13685fi
13686
13687# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701xorg_testset_save_CFLAGS="$CFLAGS"
13702
13703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13707if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13708then :
13709  printf %s "(cached) " >&6
13710else $as_nop
13711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712/* end confdefs.h.  */
13713int i;
13714_ACEOF
13715if ac_fn_c_try_compile "$LINENO"
13716then :
13717  xorg_cv_cc_flag_unknown_warning_option=yes
13718else $as_nop
13719  xorg_cv_cc_flag_unknown_warning_option=no
13720fi
13721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13722fi
13723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13726	CFLAGS="$xorg_testset_save_CFLAGS"
13727fi
13728
13729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732	fi
13733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13736if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13737then :
13738  printf %s "(cached) " >&6
13739else $as_nop
13740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h.  */
13742int i;
13743_ACEOF
13744if ac_fn_c_try_compile "$LINENO"
13745then :
13746  xorg_cv_cc_flag_unused_command_line_argument=yes
13747else $as_nop
13748  xorg_cv_cc_flag_unused_command_line_argument=no
13749fi
13750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13751fi
13752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13755	CFLAGS="$xorg_testset_save_CFLAGS"
13756fi
13757
13758found="no"
13759
13760	if test $found = "no" ; then
13761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763		fi
13764
13765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13767		fi
13768
13769		CFLAGS="$CFLAGS -Wall"
13770
13771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13772printf %s "checking if $CC supports -Wall... " >&6; }
13773		cacheid=xorg_cv_cc_flag__Wall
13774		if eval test \${$cacheid+y}
13775then :
13776  printf %s "(cached) " >&6
13777else $as_nop
13778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779/* end confdefs.h.  */
13780int i;
13781int
13782main (void)
13783{
13784
13785  ;
13786  return 0;
13787}
13788_ACEOF
13789if ac_fn_c_try_link "$LINENO"
13790then :
13791  eval $cacheid=yes
13792else $as_nop
13793  eval $cacheid=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext conftest.beam \
13796    conftest$ac_exeext conftest.$ac_ext
13797fi
13798
13799
13800		CFLAGS="$xorg_testset_save_CFLAGS"
13801
13802		eval supported=\$$cacheid
13803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13804printf "%s\n" "$supported" >&6; }
13805		if test "$supported" = "yes" ; then
13806			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13807			found="yes"
13808		fi
13809	fi
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825xorg_testset_save_CFLAGS="$CFLAGS"
13826
13827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13831if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13832then :
13833  printf %s "(cached) " >&6
13834else $as_nop
13835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836/* end confdefs.h.  */
13837int i;
13838_ACEOF
13839if ac_fn_c_try_compile "$LINENO"
13840then :
13841  xorg_cv_cc_flag_unknown_warning_option=yes
13842else $as_nop
13843  xorg_cv_cc_flag_unknown_warning_option=no
13844fi
13845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13846fi
13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13850	CFLAGS="$xorg_testset_save_CFLAGS"
13851fi
13852
13853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856	fi
13857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13858	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13860if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13861then :
13862  printf %s "(cached) " >&6
13863else $as_nop
13864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865/* end confdefs.h.  */
13866int i;
13867_ACEOF
13868if ac_fn_c_try_compile "$LINENO"
13869then :
13870  xorg_cv_cc_flag_unused_command_line_argument=yes
13871else $as_nop
13872  xorg_cv_cc_flag_unused_command_line_argument=no
13873fi
13874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13875fi
13876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13879	CFLAGS="$xorg_testset_save_CFLAGS"
13880fi
13881
13882found="no"
13883
13884	if test $found = "no" ; then
13885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887		fi
13888
13889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891		fi
13892
13893		CFLAGS="$CFLAGS -Wpointer-arith"
13894
13895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13896printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13897		cacheid=xorg_cv_cc_flag__Wpointer_arith
13898		if eval test \${$cacheid+y}
13899then :
13900  printf %s "(cached) " >&6
13901else $as_nop
13902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h.  */
13904int i;
13905int
13906main (void)
13907{
13908
13909  ;
13910  return 0;
13911}
13912_ACEOF
13913if ac_fn_c_try_link "$LINENO"
13914then :
13915  eval $cacheid=yes
13916else $as_nop
13917  eval $cacheid=no
13918fi
13919rm -f core conftest.err conftest.$ac_objext conftest.beam \
13920    conftest$ac_exeext conftest.$ac_ext
13921fi
13922
13923
13924		CFLAGS="$xorg_testset_save_CFLAGS"
13925
13926		eval supported=\$$cacheid
13927		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13928printf "%s\n" "$supported" >&6; }
13929		if test "$supported" = "yes" ; then
13930			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13931			found="yes"
13932		fi
13933	fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949xorg_testset_save_CFLAGS="$CFLAGS"
13950
13951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13955if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13956then :
13957  printf %s "(cached) " >&6
13958else $as_nop
13959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961int i;
13962_ACEOF
13963if ac_fn_c_try_compile "$LINENO"
13964then :
13965  xorg_cv_cc_flag_unknown_warning_option=yes
13966else $as_nop
13967  xorg_cv_cc_flag_unknown_warning_option=no
13968fi
13969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13970fi
13971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13974	CFLAGS="$xorg_testset_save_CFLAGS"
13975fi
13976
13977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980	fi
13981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13984if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13985then :
13986  printf %s "(cached) " >&6
13987else $as_nop
13988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989/* end confdefs.h.  */
13990int i;
13991_ACEOF
13992if ac_fn_c_try_compile "$LINENO"
13993then :
13994  xorg_cv_cc_flag_unused_command_line_argument=yes
13995else $as_nop
13996  xorg_cv_cc_flag_unused_command_line_argument=no
13997fi
13998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13999fi
14000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14003	CFLAGS="$xorg_testset_save_CFLAGS"
14004fi
14005
14006found="no"
14007
14008	if test $found = "no" ; then
14009		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011		fi
14012
14013		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14015		fi
14016
14017		CFLAGS="$CFLAGS -Wmissing-declarations"
14018
14019		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14020printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14021		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14022		if eval test \${$cacheid+y}
14023then :
14024  printf %s "(cached) " >&6
14025else $as_nop
14026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027/* end confdefs.h.  */
14028int i;
14029int
14030main (void)
14031{
14032
14033  ;
14034  return 0;
14035}
14036_ACEOF
14037if ac_fn_c_try_link "$LINENO"
14038then :
14039  eval $cacheid=yes
14040else $as_nop
14041  eval $cacheid=no
14042fi
14043rm -f core conftest.err conftest.$ac_objext conftest.beam \
14044    conftest$ac_exeext conftest.$ac_ext
14045fi
14046
14047
14048		CFLAGS="$xorg_testset_save_CFLAGS"
14049
14050		eval supported=\$$cacheid
14051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14052printf "%s\n" "$supported" >&6; }
14053		if test "$supported" = "yes" ; then
14054			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14055			found="yes"
14056		fi
14057	fi
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073xorg_testset_save_CFLAGS="$CFLAGS"
14074
14075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14080then :
14081  printf %s "(cached) " >&6
14082else $as_nop
14083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084/* end confdefs.h.  */
14085int i;
14086_ACEOF
14087if ac_fn_c_try_compile "$LINENO"
14088then :
14089  xorg_cv_cc_flag_unknown_warning_option=yes
14090else $as_nop
14091  xorg_cv_cc_flag_unknown_warning_option=no
14092fi
14093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14094fi
14095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14097	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14098	CFLAGS="$xorg_testset_save_CFLAGS"
14099fi
14100
14101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14102	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14103		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104	fi
14105	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14108if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14109then :
14110  printf %s "(cached) " >&6
14111else $as_nop
14112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113/* end confdefs.h.  */
14114int i;
14115_ACEOF
14116if ac_fn_c_try_compile "$LINENO"
14117then :
14118  xorg_cv_cc_flag_unused_command_line_argument=yes
14119else $as_nop
14120  xorg_cv_cc_flag_unused_command_line_argument=no
14121fi
14122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14123fi
14124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14127	CFLAGS="$xorg_testset_save_CFLAGS"
14128fi
14129
14130found="no"
14131
14132	if test $found = "no" ; then
14133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135		fi
14136
14137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14139		fi
14140
14141		CFLAGS="$CFLAGS -Wformat=2"
14142
14143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14144printf %s "checking if $CC supports -Wformat=2... " >&6; }
14145		cacheid=xorg_cv_cc_flag__Wformat_2
14146		if eval test \${$cacheid+y}
14147then :
14148  printf %s "(cached) " >&6
14149else $as_nop
14150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151/* end confdefs.h.  */
14152int i;
14153int
14154main (void)
14155{
14156
14157  ;
14158  return 0;
14159}
14160_ACEOF
14161if ac_fn_c_try_link "$LINENO"
14162then :
14163  eval $cacheid=yes
14164else $as_nop
14165  eval $cacheid=no
14166fi
14167rm -f core conftest.err conftest.$ac_objext conftest.beam \
14168    conftest$ac_exeext conftest.$ac_ext
14169fi
14170
14171
14172		CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174		eval supported=\$$cacheid
14175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176printf "%s\n" "$supported" >&6; }
14177		if test "$supported" = "yes" ; then
14178			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14179			found="yes"
14180		fi
14181	fi
14182
14183	if test $found = "no" ; then
14184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186		fi
14187
14188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14190		fi
14191
14192		CFLAGS="$CFLAGS -Wformat"
14193
14194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14195printf %s "checking if $CC supports -Wformat... " >&6; }
14196		cacheid=xorg_cv_cc_flag__Wformat
14197		if eval test \${$cacheid+y}
14198then :
14199  printf %s "(cached) " >&6
14200else $as_nop
14201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202/* end confdefs.h.  */
14203int i;
14204int
14205main (void)
14206{
14207
14208  ;
14209  return 0;
14210}
14211_ACEOF
14212if ac_fn_c_try_link "$LINENO"
14213then :
14214  eval $cacheid=yes
14215else $as_nop
14216  eval $cacheid=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.beam \
14219    conftest$ac_exeext conftest.$ac_ext
14220fi
14221
14222
14223		CFLAGS="$xorg_testset_save_CFLAGS"
14224
14225		eval supported=\$$cacheid
14226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14227printf "%s\n" "$supported" >&6; }
14228		if test "$supported" = "yes" ; then
14229			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14230			found="yes"
14231		fi
14232	fi
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250xorg_testset_save_CFLAGS="$CFLAGS"
14251
14252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14256if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14257then :
14258  printf %s "(cached) " >&6
14259else $as_nop
14260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h.  */
14262int i;
14263_ACEOF
14264if ac_fn_c_try_compile "$LINENO"
14265then :
14266  xorg_cv_cc_flag_unknown_warning_option=yes
14267else $as_nop
14268  xorg_cv_cc_flag_unknown_warning_option=no
14269fi
14270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14271fi
14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14275	CFLAGS="$xorg_testset_save_CFLAGS"
14276fi
14277
14278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14281	fi
14282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14285if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14286then :
14287  printf %s "(cached) " >&6
14288else $as_nop
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291int i;
14292_ACEOF
14293if ac_fn_c_try_compile "$LINENO"
14294then :
14295  xorg_cv_cc_flag_unused_command_line_argument=yes
14296else $as_nop
14297  xorg_cv_cc_flag_unused_command_line_argument=no
14298fi
14299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14300fi
14301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14304	CFLAGS="$xorg_testset_save_CFLAGS"
14305fi
14306
14307found="no"
14308
14309	if test $found = "no" ; then
14310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14312		fi
14313
14314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14316		fi
14317
14318		CFLAGS="$CFLAGS -Wstrict-prototypes"
14319
14320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14321printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14322		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14323		if eval test \${$cacheid+y}
14324then :
14325  printf %s "(cached) " >&6
14326else $as_nop
14327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329int i;
14330int
14331main (void)
14332{
14333
14334  ;
14335  return 0;
14336}
14337_ACEOF
14338if ac_fn_c_try_link "$LINENO"
14339then :
14340  eval $cacheid=yes
14341else $as_nop
14342  eval $cacheid=no
14343fi
14344rm -f core conftest.err conftest.$ac_objext conftest.beam \
14345    conftest$ac_exeext conftest.$ac_ext
14346fi
14347
14348
14349		CFLAGS="$xorg_testset_save_CFLAGS"
14350
14351		eval supported=\$$cacheid
14352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14353printf "%s\n" "$supported" >&6; }
14354		if test "$supported" = "yes" ; then
14355			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14356			found="yes"
14357		fi
14358	fi
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374xorg_testset_save_CFLAGS="$CFLAGS"
14375
14376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14380if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14381then :
14382  printf %s "(cached) " >&6
14383else $as_nop
14384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h.  */
14386int i;
14387_ACEOF
14388if ac_fn_c_try_compile "$LINENO"
14389then :
14390  xorg_cv_cc_flag_unknown_warning_option=yes
14391else $as_nop
14392  xorg_cv_cc_flag_unknown_warning_option=no
14393fi
14394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14395fi
14396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14399	CFLAGS="$xorg_testset_save_CFLAGS"
14400fi
14401
14402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14405	fi
14406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14409if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14410then :
14411  printf %s "(cached) " >&6
14412else $as_nop
14413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h.  */
14415int i;
14416_ACEOF
14417if ac_fn_c_try_compile "$LINENO"
14418then :
14419  xorg_cv_cc_flag_unused_command_line_argument=yes
14420else $as_nop
14421  xorg_cv_cc_flag_unused_command_line_argument=no
14422fi
14423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14424fi
14425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14428	CFLAGS="$xorg_testset_save_CFLAGS"
14429fi
14430
14431found="no"
14432
14433	if test $found = "no" ; then
14434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14436		fi
14437
14438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14440		fi
14441
14442		CFLAGS="$CFLAGS -Wmissing-prototypes"
14443
14444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14445printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14446		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14447		if eval test \${$cacheid+y}
14448then :
14449  printf %s "(cached) " >&6
14450else $as_nop
14451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453int i;
14454int
14455main (void)
14456{
14457
14458  ;
14459  return 0;
14460}
14461_ACEOF
14462if ac_fn_c_try_link "$LINENO"
14463then :
14464  eval $cacheid=yes
14465else $as_nop
14466  eval $cacheid=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext conftest.beam \
14469    conftest$ac_exeext conftest.$ac_ext
14470fi
14471
14472
14473		CFLAGS="$xorg_testset_save_CFLAGS"
14474
14475		eval supported=\$$cacheid
14476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14477printf "%s\n" "$supported" >&6; }
14478		if test "$supported" = "yes" ; then
14479			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14480			found="yes"
14481		fi
14482	fi
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498xorg_testset_save_CFLAGS="$CFLAGS"
14499
14500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14505then :
14506  printf %s "(cached) " >&6
14507else $as_nop
14508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510int i;
14511_ACEOF
14512if ac_fn_c_try_compile "$LINENO"
14513then :
14514  xorg_cv_cc_flag_unknown_warning_option=yes
14515else $as_nop
14516  xorg_cv_cc_flag_unknown_warning_option=no
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14519fi
14520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14523	CFLAGS="$xorg_testset_save_CFLAGS"
14524fi
14525
14526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14529	fi
14530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14534then :
14535  printf %s "(cached) " >&6
14536else $as_nop
14537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539int i;
14540_ACEOF
14541if ac_fn_c_try_compile "$LINENO"
14542then :
14543  xorg_cv_cc_flag_unused_command_line_argument=yes
14544else $as_nop
14545  xorg_cv_cc_flag_unused_command_line_argument=no
14546fi
14547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14548fi
14549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14552	CFLAGS="$xorg_testset_save_CFLAGS"
14553fi
14554
14555found="no"
14556
14557	if test $found = "no" ; then
14558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14560		fi
14561
14562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14564		fi
14565
14566		CFLAGS="$CFLAGS -Wnested-externs"
14567
14568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14569printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14570		cacheid=xorg_cv_cc_flag__Wnested_externs
14571		if eval test \${$cacheid+y}
14572then :
14573  printf %s "(cached) " >&6
14574else $as_nop
14575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576/* end confdefs.h.  */
14577int i;
14578int
14579main (void)
14580{
14581
14582  ;
14583  return 0;
14584}
14585_ACEOF
14586if ac_fn_c_try_link "$LINENO"
14587then :
14588  eval $cacheid=yes
14589else $as_nop
14590  eval $cacheid=no
14591fi
14592rm -f core conftest.err conftest.$ac_objext conftest.beam \
14593    conftest$ac_exeext conftest.$ac_ext
14594fi
14595
14596
14597		CFLAGS="$xorg_testset_save_CFLAGS"
14598
14599		eval supported=\$$cacheid
14600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14601printf "%s\n" "$supported" >&6; }
14602		if test "$supported" = "yes" ; then
14603			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14604			found="yes"
14605		fi
14606	fi
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622xorg_testset_save_CFLAGS="$CFLAGS"
14623
14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14629then :
14630  printf %s "(cached) " >&6
14631else $as_nop
14632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h.  */
14634int i;
14635_ACEOF
14636if ac_fn_c_try_compile "$LINENO"
14637then :
14638  xorg_cv_cc_flag_unknown_warning_option=yes
14639else $as_nop
14640  xorg_cv_cc_flag_unknown_warning_option=no
14641fi
14642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643fi
14644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14647	CFLAGS="$xorg_testset_save_CFLAGS"
14648fi
14649
14650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653	fi
14654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14658then :
14659  printf %s "(cached) " >&6
14660else $as_nop
14661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662/* end confdefs.h.  */
14663int i;
14664_ACEOF
14665if ac_fn_c_try_compile "$LINENO"
14666then :
14667  xorg_cv_cc_flag_unused_command_line_argument=yes
14668else $as_nop
14669  xorg_cv_cc_flag_unused_command_line_argument=no
14670fi
14671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14672fi
14673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14676	CFLAGS="$xorg_testset_save_CFLAGS"
14677fi
14678
14679found="no"
14680
14681	if test $found = "no" ; then
14682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684		fi
14685
14686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14688		fi
14689
14690		CFLAGS="$CFLAGS -Wbad-function-cast"
14691
14692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14693printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14694		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14695		if eval test \${$cacheid+y}
14696then :
14697  printf %s "(cached) " >&6
14698else $as_nop
14699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701int i;
14702int
14703main (void)
14704{
14705
14706  ;
14707  return 0;
14708}
14709_ACEOF
14710if ac_fn_c_try_link "$LINENO"
14711then :
14712  eval $cacheid=yes
14713else $as_nop
14714  eval $cacheid=no
14715fi
14716rm -f core conftest.err conftest.$ac_objext conftest.beam \
14717    conftest$ac_exeext conftest.$ac_ext
14718fi
14719
14720
14721		CFLAGS="$xorg_testset_save_CFLAGS"
14722
14723		eval supported=\$$cacheid
14724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14725printf "%s\n" "$supported" >&6; }
14726		if test "$supported" = "yes" ; then
14727			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14728			found="yes"
14729		fi
14730	fi
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746xorg_testset_save_CFLAGS="$CFLAGS"
14747
14748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14753then :
14754  printf %s "(cached) " >&6
14755else $as_nop
14756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758int i;
14759_ACEOF
14760if ac_fn_c_try_compile "$LINENO"
14761then :
14762  xorg_cv_cc_flag_unknown_warning_option=yes
14763else $as_nop
14764  xorg_cv_cc_flag_unknown_warning_option=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14767fi
14768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14771	CFLAGS="$xorg_testset_save_CFLAGS"
14772fi
14773
14774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777	fi
14778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14782then :
14783  printf %s "(cached) " >&6
14784else $as_nop
14785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786/* end confdefs.h.  */
14787int i;
14788_ACEOF
14789if ac_fn_c_try_compile "$LINENO"
14790then :
14791  xorg_cv_cc_flag_unused_command_line_argument=yes
14792else $as_nop
14793  xorg_cv_cc_flag_unused_command_line_argument=no
14794fi
14795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14796fi
14797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14800	CFLAGS="$xorg_testset_save_CFLAGS"
14801fi
14802
14803found="no"
14804
14805	if test $found = "no" ; then
14806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808		fi
14809
14810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14812		fi
14813
14814		CFLAGS="$CFLAGS -Wold-style-definition"
14815
14816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14817printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14818		cacheid=xorg_cv_cc_flag__Wold_style_definition
14819		if eval test \${$cacheid+y}
14820then :
14821  printf %s "(cached) " >&6
14822else $as_nop
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825int i;
14826int
14827main (void)
14828{
14829
14830  ;
14831  return 0;
14832}
14833_ACEOF
14834if ac_fn_c_try_link "$LINENO"
14835then :
14836  eval $cacheid=yes
14837else $as_nop
14838  eval $cacheid=no
14839fi
14840rm -f core conftest.err conftest.$ac_objext conftest.beam \
14841    conftest$ac_exeext conftest.$ac_ext
14842fi
14843
14844
14845		CFLAGS="$xorg_testset_save_CFLAGS"
14846
14847		eval supported=\$$cacheid
14848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14849printf "%s\n" "$supported" >&6; }
14850		if test "$supported" = "yes" ; then
14851			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14852			found="yes"
14853		fi
14854	fi
14855
14856	if test $found = "no" ; then
14857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14859		fi
14860
14861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14863		fi
14864
14865		CFLAGS="$CFLAGS -fd"
14866
14867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14868printf %s "checking if $CC supports -fd... " >&6; }
14869		cacheid=xorg_cv_cc_flag__fd
14870		if eval test \${$cacheid+y}
14871then :
14872  printf %s "(cached) " >&6
14873else $as_nop
14874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876int i;
14877int
14878main (void)
14879{
14880
14881  ;
14882  return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"
14886then :
14887  eval $cacheid=yes
14888else $as_nop
14889  eval $cacheid=no
14890fi
14891rm -f core conftest.err conftest.$ac_objext conftest.beam \
14892    conftest$ac_exeext conftest.$ac_ext
14893fi
14894
14895
14896		CFLAGS="$xorg_testset_save_CFLAGS"
14897
14898		eval supported=\$$cacheid
14899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14900printf "%s\n" "$supported" >&6; }
14901		if test "$supported" = "yes" ; then
14902			BASE_CFLAGS="$BASE_CFLAGS -fd"
14903			found="yes"
14904		fi
14905	fi
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921xorg_testset_save_CFLAGS="$CFLAGS"
14922
14923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14927if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14928then :
14929  printf %s "(cached) " >&6
14930else $as_nop
14931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932/* end confdefs.h.  */
14933int i;
14934_ACEOF
14935if ac_fn_c_try_compile "$LINENO"
14936then :
14937  xorg_cv_cc_flag_unknown_warning_option=yes
14938else $as_nop
14939  xorg_cv_cc_flag_unknown_warning_option=no
14940fi
14941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14942fi
14943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14946	CFLAGS="$xorg_testset_save_CFLAGS"
14947fi
14948
14949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952	fi
14953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14956if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14957then :
14958  printf %s "(cached) " >&6
14959else $as_nop
14960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962int i;
14963_ACEOF
14964if ac_fn_c_try_compile "$LINENO"
14965then :
14966  xorg_cv_cc_flag_unused_command_line_argument=yes
14967else $as_nop
14968  xorg_cv_cc_flag_unused_command_line_argument=no
14969fi
14970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14971fi
14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14975	CFLAGS="$xorg_testset_save_CFLAGS"
14976fi
14977
14978found="no"
14979
14980	if test $found = "no" ; then
14981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14983		fi
14984
14985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987		fi
14988
14989		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14990
14991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14992printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14993		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14994		if eval test \${$cacheid+y}
14995then :
14996  printf %s "(cached) " >&6
14997else $as_nop
14998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999/* end confdefs.h.  */
15000int i;
15001int
15002main (void)
15003{
15004
15005  ;
15006  return 0;
15007}
15008_ACEOF
15009if ac_fn_c_try_link "$LINENO"
15010then :
15011  eval $cacheid=yes
15012else $as_nop
15013  eval $cacheid=no
15014fi
15015rm -f core conftest.err conftest.$ac_objext conftest.beam \
15016    conftest$ac_exeext conftest.$ac_ext
15017fi
15018
15019
15020		CFLAGS="$xorg_testset_save_CFLAGS"
15021
15022		eval supported=\$$cacheid
15023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15024printf "%s\n" "$supported" >&6; }
15025		if test "$supported" = "yes" ; then
15026			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15027			found="yes"
15028		fi
15029	fi
15030
15031
15032
15033
15034
15035# This chunk adds additional warnings that could catch undesired effects.
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049xorg_testset_save_CFLAGS="$CFLAGS"
15050
15051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15055if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15056then :
15057  printf %s "(cached) " >&6
15058else $as_nop
15059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061int i;
15062_ACEOF
15063if ac_fn_c_try_compile "$LINENO"
15064then :
15065  xorg_cv_cc_flag_unknown_warning_option=yes
15066else $as_nop
15067  xorg_cv_cc_flag_unknown_warning_option=no
15068fi
15069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15070fi
15071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15074	CFLAGS="$xorg_testset_save_CFLAGS"
15075fi
15076
15077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080	fi
15081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15084if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15085then :
15086  printf %s "(cached) " >&6
15087else $as_nop
15088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089/* end confdefs.h.  */
15090int i;
15091_ACEOF
15092if ac_fn_c_try_compile "$LINENO"
15093then :
15094  xorg_cv_cc_flag_unused_command_line_argument=yes
15095else $as_nop
15096  xorg_cv_cc_flag_unused_command_line_argument=no
15097fi
15098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15099fi
15100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15103	CFLAGS="$xorg_testset_save_CFLAGS"
15104fi
15105
15106found="no"
15107
15108	if test $found = "no" ; then
15109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111		fi
15112
15113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115		fi
15116
15117		CFLAGS="$CFLAGS -Wunused"
15118
15119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15120printf %s "checking if $CC supports -Wunused... " >&6; }
15121		cacheid=xorg_cv_cc_flag__Wunused
15122		if eval test \${$cacheid+y}
15123then :
15124  printf %s "(cached) " >&6
15125else $as_nop
15126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127/* end confdefs.h.  */
15128int i;
15129int
15130main (void)
15131{
15132
15133  ;
15134  return 0;
15135}
15136_ACEOF
15137if ac_fn_c_try_link "$LINENO"
15138then :
15139  eval $cacheid=yes
15140else $as_nop
15141  eval $cacheid=no
15142fi
15143rm -f core conftest.err conftest.$ac_objext conftest.beam \
15144    conftest$ac_exeext conftest.$ac_ext
15145fi
15146
15147
15148		CFLAGS="$xorg_testset_save_CFLAGS"
15149
15150		eval supported=\$$cacheid
15151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15152printf "%s\n" "$supported" >&6; }
15153		if test "$supported" = "yes" ; then
15154			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15155			found="yes"
15156		fi
15157	fi
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173xorg_testset_save_CFLAGS="$CFLAGS"
15174
15175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15179if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15180then :
15181  printf %s "(cached) " >&6
15182else $as_nop
15183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h.  */
15185int i;
15186_ACEOF
15187if ac_fn_c_try_compile "$LINENO"
15188then :
15189  xorg_cv_cc_flag_unknown_warning_option=yes
15190else $as_nop
15191  xorg_cv_cc_flag_unknown_warning_option=no
15192fi
15193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15194fi
15195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15198	CFLAGS="$xorg_testset_save_CFLAGS"
15199fi
15200
15201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15204	fi
15205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15208if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15209then :
15210  printf %s "(cached) " >&6
15211else $as_nop
15212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214int i;
15215_ACEOF
15216if ac_fn_c_try_compile "$LINENO"
15217then :
15218  xorg_cv_cc_flag_unused_command_line_argument=yes
15219else $as_nop
15220  xorg_cv_cc_flag_unused_command_line_argument=no
15221fi
15222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15223fi
15224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15227	CFLAGS="$xorg_testset_save_CFLAGS"
15228fi
15229
15230found="no"
15231
15232	if test $found = "no" ; then
15233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235		fi
15236
15237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239		fi
15240
15241		CFLAGS="$CFLAGS -Wuninitialized"
15242
15243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15244printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15245		cacheid=xorg_cv_cc_flag__Wuninitialized
15246		if eval test \${$cacheid+y}
15247then :
15248  printf %s "(cached) " >&6
15249else $as_nop
15250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h.  */
15252int i;
15253int
15254main (void)
15255{
15256
15257  ;
15258  return 0;
15259}
15260_ACEOF
15261if ac_fn_c_try_link "$LINENO"
15262then :
15263  eval $cacheid=yes
15264else $as_nop
15265  eval $cacheid=no
15266fi
15267rm -f core conftest.err conftest.$ac_objext conftest.beam \
15268    conftest$ac_exeext conftest.$ac_ext
15269fi
15270
15271
15272		CFLAGS="$xorg_testset_save_CFLAGS"
15273
15274		eval supported=\$$cacheid
15275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15276printf "%s\n" "$supported" >&6; }
15277		if test "$supported" = "yes" ; then
15278			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15279			found="yes"
15280		fi
15281	fi
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297xorg_testset_save_CFLAGS="$CFLAGS"
15298
15299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15303if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15304then :
15305  printf %s "(cached) " >&6
15306else $as_nop
15307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308/* end confdefs.h.  */
15309int i;
15310_ACEOF
15311if ac_fn_c_try_compile "$LINENO"
15312then :
15313  xorg_cv_cc_flag_unknown_warning_option=yes
15314else $as_nop
15315  xorg_cv_cc_flag_unknown_warning_option=no
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15318fi
15319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15322	CFLAGS="$xorg_testset_save_CFLAGS"
15323fi
15324
15325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328	fi
15329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15333then :
15334  printf %s "(cached) " >&6
15335else $as_nop
15336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h.  */
15338int i;
15339_ACEOF
15340if ac_fn_c_try_compile "$LINENO"
15341then :
15342  xorg_cv_cc_flag_unused_command_line_argument=yes
15343else $as_nop
15344  xorg_cv_cc_flag_unused_command_line_argument=no
15345fi
15346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15347fi
15348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15351	CFLAGS="$xorg_testset_save_CFLAGS"
15352fi
15353
15354found="no"
15355
15356	if test $found = "no" ; then
15357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359		fi
15360
15361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15363		fi
15364
15365		CFLAGS="$CFLAGS -Wshadow"
15366
15367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15368printf %s "checking if $CC supports -Wshadow... " >&6; }
15369		cacheid=xorg_cv_cc_flag__Wshadow
15370		if eval test \${$cacheid+y}
15371then :
15372  printf %s "(cached) " >&6
15373else $as_nop
15374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376int i;
15377int
15378main (void)
15379{
15380
15381  ;
15382  return 0;
15383}
15384_ACEOF
15385if ac_fn_c_try_link "$LINENO"
15386then :
15387  eval $cacheid=yes
15388else $as_nop
15389  eval $cacheid=no
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.beam \
15392    conftest$ac_exeext conftest.$ac_ext
15393fi
15394
15395
15396		CFLAGS="$xorg_testset_save_CFLAGS"
15397
15398		eval supported=\$$cacheid
15399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15400printf "%s\n" "$supported" >&6; }
15401		if test "$supported" = "yes" ; then
15402			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15403			found="yes"
15404		fi
15405	fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421xorg_testset_save_CFLAGS="$CFLAGS"
15422
15423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15427if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15428then :
15429  printf %s "(cached) " >&6
15430else $as_nop
15431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432/* end confdefs.h.  */
15433int i;
15434_ACEOF
15435if ac_fn_c_try_compile "$LINENO"
15436then :
15437  xorg_cv_cc_flag_unknown_warning_option=yes
15438else $as_nop
15439  xorg_cv_cc_flag_unknown_warning_option=no
15440fi
15441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15442fi
15443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15446	CFLAGS="$xorg_testset_save_CFLAGS"
15447fi
15448
15449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15452	fi
15453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15456if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15457then :
15458  printf %s "(cached) " >&6
15459else $as_nop
15460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461/* end confdefs.h.  */
15462int i;
15463_ACEOF
15464if ac_fn_c_try_compile "$LINENO"
15465then :
15466  xorg_cv_cc_flag_unused_command_line_argument=yes
15467else $as_nop
15468  xorg_cv_cc_flag_unused_command_line_argument=no
15469fi
15470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15471fi
15472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15475	CFLAGS="$xorg_testset_save_CFLAGS"
15476fi
15477
15478found="no"
15479
15480	if test $found = "no" ; then
15481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483		fi
15484
15485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487		fi
15488
15489		CFLAGS="$CFLAGS -Wmissing-noreturn"
15490
15491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15492printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15493		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15494		if eval test \${$cacheid+y}
15495then :
15496  printf %s "(cached) " >&6
15497else $as_nop
15498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499/* end confdefs.h.  */
15500int i;
15501int
15502main (void)
15503{
15504
15505  ;
15506  return 0;
15507}
15508_ACEOF
15509if ac_fn_c_try_link "$LINENO"
15510then :
15511  eval $cacheid=yes
15512else $as_nop
15513  eval $cacheid=no
15514fi
15515rm -f core conftest.err conftest.$ac_objext conftest.beam \
15516    conftest$ac_exeext conftest.$ac_ext
15517fi
15518
15519
15520		CFLAGS="$xorg_testset_save_CFLAGS"
15521
15522		eval supported=\$$cacheid
15523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15524printf "%s\n" "$supported" >&6; }
15525		if test "$supported" = "yes" ; then
15526			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15527			found="yes"
15528		fi
15529	fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545xorg_testset_save_CFLAGS="$CFLAGS"
15546
15547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15551if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15552then :
15553  printf %s "(cached) " >&6
15554else $as_nop
15555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556/* end confdefs.h.  */
15557int i;
15558_ACEOF
15559if ac_fn_c_try_compile "$LINENO"
15560then :
15561  xorg_cv_cc_flag_unknown_warning_option=yes
15562else $as_nop
15563  xorg_cv_cc_flag_unknown_warning_option=no
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566fi
15567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15570	CFLAGS="$xorg_testset_save_CFLAGS"
15571fi
15572
15573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15576	fi
15577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15580if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15581then :
15582  printf %s "(cached) " >&6
15583else $as_nop
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586int i;
15587_ACEOF
15588if ac_fn_c_try_compile "$LINENO"
15589then :
15590  xorg_cv_cc_flag_unused_command_line_argument=yes
15591else $as_nop
15592  xorg_cv_cc_flag_unused_command_line_argument=no
15593fi
15594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15595fi
15596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15599	CFLAGS="$xorg_testset_save_CFLAGS"
15600fi
15601
15602found="no"
15603
15604	if test $found = "no" ; then
15605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15607		fi
15608
15609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15611		fi
15612
15613		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15614
15615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15616printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15617		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15618		if eval test \${$cacheid+y}
15619then :
15620  printf %s "(cached) " >&6
15621else $as_nop
15622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623/* end confdefs.h.  */
15624int i;
15625int
15626main (void)
15627{
15628
15629  ;
15630  return 0;
15631}
15632_ACEOF
15633if ac_fn_c_try_link "$LINENO"
15634then :
15635  eval $cacheid=yes
15636else $as_nop
15637  eval $cacheid=no
15638fi
15639rm -f core conftest.err conftest.$ac_objext conftest.beam \
15640    conftest$ac_exeext conftest.$ac_ext
15641fi
15642
15643
15644		CFLAGS="$xorg_testset_save_CFLAGS"
15645
15646		eval supported=\$$cacheid
15647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15648printf "%s\n" "$supported" >&6; }
15649		if test "$supported" = "yes" ; then
15650			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15651			found="yes"
15652		fi
15653	fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669xorg_testset_save_CFLAGS="$CFLAGS"
15670
15671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15676then :
15677  printf %s "(cached) " >&6
15678else $as_nop
15679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681int i;
15682_ACEOF
15683if ac_fn_c_try_compile "$LINENO"
15684then :
15685  xorg_cv_cc_flag_unknown_warning_option=yes
15686else $as_nop
15687  xorg_cv_cc_flag_unknown_warning_option=no
15688fi
15689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690fi
15691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15694	CFLAGS="$xorg_testset_save_CFLAGS"
15695fi
15696
15697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700	fi
15701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15705then :
15706  printf %s "(cached) " >&6
15707else $as_nop
15708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709/* end confdefs.h.  */
15710int i;
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"
15713then :
15714  xorg_cv_cc_flag_unused_command_line_argument=yes
15715else $as_nop
15716  xorg_cv_cc_flag_unused_command_line_argument=no
15717fi
15718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15719fi
15720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723	CFLAGS="$xorg_testset_save_CFLAGS"
15724fi
15725
15726found="no"
15727
15728	if test $found = "no" ; then
15729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731		fi
15732
15733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15735		fi
15736
15737		CFLAGS="$CFLAGS -Wredundant-decls"
15738
15739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15740printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15741		cacheid=xorg_cv_cc_flag__Wredundant_decls
15742		if eval test \${$cacheid+y}
15743then :
15744  printf %s "(cached) " >&6
15745else $as_nop
15746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747/* end confdefs.h.  */
15748int i;
15749int
15750main (void)
15751{
15752
15753  ;
15754  return 0;
15755}
15756_ACEOF
15757if ac_fn_c_try_link "$LINENO"
15758then :
15759  eval $cacheid=yes
15760else $as_nop
15761  eval $cacheid=no
15762fi
15763rm -f core conftest.err conftest.$ac_objext conftest.beam \
15764    conftest$ac_exeext conftest.$ac_ext
15765fi
15766
15767
15768		CFLAGS="$xorg_testset_save_CFLAGS"
15769
15770		eval supported=\$$cacheid
15771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15772printf "%s\n" "$supported" >&6; }
15773		if test "$supported" = "yes" ; then
15774			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15775			found="yes"
15776		fi
15777	fi
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793xorg_testset_save_CFLAGS="$CFLAGS"
15794
15795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15799if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15800then :
15801  printf %s "(cached) " >&6
15802else $as_nop
15803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804/* end confdefs.h.  */
15805int i;
15806_ACEOF
15807if ac_fn_c_try_compile "$LINENO"
15808then :
15809  xorg_cv_cc_flag_unknown_warning_option=yes
15810else $as_nop
15811  xorg_cv_cc_flag_unknown_warning_option=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15814fi
15815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15818	CFLAGS="$xorg_testset_save_CFLAGS"
15819fi
15820
15821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824	fi
15825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15828if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15829then :
15830  printf %s "(cached) " >&6
15831else $as_nop
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835_ACEOF
15836if ac_fn_c_try_compile "$LINENO"
15837then :
15838  xorg_cv_cc_flag_unused_command_line_argument=yes
15839else $as_nop
15840  xorg_cv_cc_flag_unused_command_line_argument=no
15841fi
15842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15843fi
15844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15847	CFLAGS="$xorg_testset_save_CFLAGS"
15848fi
15849
15850found="no"
15851
15852	if test $found = "no" ; then
15853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15855		fi
15856
15857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15859		fi
15860
15861		CFLAGS="$CFLAGS -Wlogical-op"
15862
15863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15864printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15865		cacheid=xorg_cv_cc_flag__Wlogical_op
15866		if eval test \${$cacheid+y}
15867then :
15868  printf %s "(cached) " >&6
15869else $as_nop
15870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871/* end confdefs.h.  */
15872int i;
15873int
15874main (void)
15875{
15876
15877  ;
15878  return 0;
15879}
15880_ACEOF
15881if ac_fn_c_try_link "$LINENO"
15882then :
15883  eval $cacheid=yes
15884else $as_nop
15885  eval $cacheid=no
15886fi
15887rm -f core conftest.err conftest.$ac_objext conftest.beam \
15888    conftest$ac_exeext conftest.$ac_ext
15889fi
15890
15891
15892		CFLAGS="$xorg_testset_save_CFLAGS"
15893
15894		eval supported=\$$cacheid
15895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15896printf "%s\n" "$supported" >&6; }
15897		if test "$supported" = "yes" ; then
15898			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15899			found="yes"
15900		fi
15901	fi
15902
15903
15904
15905# These are currently disabled because they are noisy.  They will be enabled
15906# in the future once the codebase is sufficiently modernized to silence
15907# them.  For now, I don't want them to drown out the other warnings.
15908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15909# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15910# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15911
15912# Turn some warnings into errors, so we don't accidently get successful builds
15913# when there are problems that should be fixed.
15914
15915if test "x$SELECTIVE_WERROR" = "xyes" ; then
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929xorg_testset_save_CFLAGS="$CFLAGS"
15930
15931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15935if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15936then :
15937  printf %s "(cached) " >&6
15938else $as_nop
15939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940/* end confdefs.h.  */
15941int i;
15942_ACEOF
15943if ac_fn_c_try_compile "$LINENO"
15944then :
15945  xorg_cv_cc_flag_unknown_warning_option=yes
15946else $as_nop
15947  xorg_cv_cc_flag_unknown_warning_option=no
15948fi
15949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15950fi
15951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15954	CFLAGS="$xorg_testset_save_CFLAGS"
15955fi
15956
15957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960	fi
15961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15964if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15965then :
15966  printf %s "(cached) " >&6
15967else $as_nop
15968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h.  */
15970int i;
15971_ACEOF
15972if ac_fn_c_try_compile "$LINENO"
15973then :
15974  xorg_cv_cc_flag_unused_command_line_argument=yes
15975else $as_nop
15976  xorg_cv_cc_flag_unused_command_line_argument=no
15977fi
15978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15979fi
15980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15983	CFLAGS="$xorg_testset_save_CFLAGS"
15984fi
15985
15986found="no"
15987
15988	if test $found = "no" ; then
15989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991		fi
15992
15993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15995		fi
15996
15997		CFLAGS="$CFLAGS -Werror=implicit"
15998
15999		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16000printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16001		cacheid=xorg_cv_cc_flag__Werror_implicit
16002		if eval test \${$cacheid+y}
16003then :
16004  printf %s "(cached) " >&6
16005else $as_nop
16006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007/* end confdefs.h.  */
16008int i;
16009int
16010main (void)
16011{
16012
16013  ;
16014  return 0;
16015}
16016_ACEOF
16017if ac_fn_c_try_link "$LINENO"
16018then :
16019  eval $cacheid=yes
16020else $as_nop
16021  eval $cacheid=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext conftest.beam \
16024    conftest$ac_exeext conftest.$ac_ext
16025fi
16026
16027
16028		CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030		eval supported=\$$cacheid
16031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032printf "%s\n" "$supported" >&6; }
16033		if test "$supported" = "yes" ; then
16034			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16035			found="yes"
16036		fi
16037	fi
16038
16039	if test $found = "no" ; then
16040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16042		fi
16043
16044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16046		fi
16047
16048		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16049
16050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
16051printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16052		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16053		if eval test \${$cacheid+y}
16054then :
16055  printf %s "(cached) " >&6
16056else $as_nop
16057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058/* end confdefs.h.  */
16059int i;
16060int
16061main (void)
16062{
16063
16064  ;
16065  return 0;
16066}
16067_ACEOF
16068if ac_fn_c_try_link "$LINENO"
16069then :
16070  eval $cacheid=yes
16071else $as_nop
16072  eval $cacheid=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext conftest.beam \
16075    conftest$ac_exeext conftest.$ac_ext
16076fi
16077
16078
16079		CFLAGS="$xorg_testset_save_CFLAGS"
16080
16081		eval supported=\$$cacheid
16082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16083printf "%s\n" "$supported" >&6; }
16084		if test "$supported" = "yes" ; then
16085			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16086			found="yes"
16087		fi
16088	fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104xorg_testset_save_CFLAGS="$CFLAGS"
16105
16106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16110if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16111then :
16112  printf %s "(cached) " >&6
16113else $as_nop
16114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h.  */
16116int i;
16117_ACEOF
16118if ac_fn_c_try_compile "$LINENO"
16119then :
16120  xorg_cv_cc_flag_unknown_warning_option=yes
16121else $as_nop
16122  xorg_cv_cc_flag_unknown_warning_option=no
16123fi
16124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16125fi
16126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16129	CFLAGS="$xorg_testset_save_CFLAGS"
16130fi
16131
16132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16135	fi
16136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16139if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16140then :
16141  printf %s "(cached) " >&6
16142else $as_nop
16143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144/* end confdefs.h.  */
16145int i;
16146_ACEOF
16147if ac_fn_c_try_compile "$LINENO"
16148then :
16149  xorg_cv_cc_flag_unused_command_line_argument=yes
16150else $as_nop
16151  xorg_cv_cc_flag_unused_command_line_argument=no
16152fi
16153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16154fi
16155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16158	CFLAGS="$xorg_testset_save_CFLAGS"
16159fi
16160
16161found="no"
16162
16163	if test $found = "no" ; then
16164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16166		fi
16167
16168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16170		fi
16171
16172		CFLAGS="$CFLAGS -Werror=nonnull"
16173
16174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16175printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16176		cacheid=xorg_cv_cc_flag__Werror_nonnull
16177		if eval test \${$cacheid+y}
16178then :
16179  printf %s "(cached) " >&6
16180else $as_nop
16181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h.  */
16183int i;
16184int
16185main (void)
16186{
16187
16188  ;
16189  return 0;
16190}
16191_ACEOF
16192if ac_fn_c_try_link "$LINENO"
16193then :
16194  eval $cacheid=yes
16195else $as_nop
16196  eval $cacheid=no
16197fi
16198rm -f core conftest.err conftest.$ac_objext conftest.beam \
16199    conftest$ac_exeext conftest.$ac_ext
16200fi
16201
16202
16203		CFLAGS="$xorg_testset_save_CFLAGS"
16204
16205		eval supported=\$$cacheid
16206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16207printf "%s\n" "$supported" >&6; }
16208		if test "$supported" = "yes" ; then
16209			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16210			found="yes"
16211		fi
16212	fi
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228xorg_testset_save_CFLAGS="$CFLAGS"
16229
16230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16234if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16235then :
16236  printf %s "(cached) " >&6
16237else $as_nop
16238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239/* end confdefs.h.  */
16240int i;
16241_ACEOF
16242if ac_fn_c_try_compile "$LINENO"
16243then :
16244  xorg_cv_cc_flag_unknown_warning_option=yes
16245else $as_nop
16246  xorg_cv_cc_flag_unknown_warning_option=no
16247fi
16248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16249fi
16250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16253	CFLAGS="$xorg_testset_save_CFLAGS"
16254fi
16255
16256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259	fi
16260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16264then :
16265  printf %s "(cached) " >&6
16266else $as_nop
16267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269int i;
16270_ACEOF
16271if ac_fn_c_try_compile "$LINENO"
16272then :
16273  xorg_cv_cc_flag_unused_command_line_argument=yes
16274else $as_nop
16275  xorg_cv_cc_flag_unused_command_line_argument=no
16276fi
16277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16278fi
16279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16282	CFLAGS="$xorg_testset_save_CFLAGS"
16283fi
16284
16285found="no"
16286
16287	if test $found = "no" ; then
16288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290		fi
16291
16292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16294		fi
16295
16296		CFLAGS="$CFLAGS -Werror=init-self"
16297
16298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16299printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16300		cacheid=xorg_cv_cc_flag__Werror_init_self
16301		if eval test \${$cacheid+y}
16302then :
16303  printf %s "(cached) " >&6
16304else $as_nop
16305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307int i;
16308int
16309main (void)
16310{
16311
16312  ;
16313  return 0;
16314}
16315_ACEOF
16316if ac_fn_c_try_link "$LINENO"
16317then :
16318  eval $cacheid=yes
16319else $as_nop
16320  eval $cacheid=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.beam \
16323    conftest$ac_exeext conftest.$ac_ext
16324fi
16325
16326
16327		CFLAGS="$xorg_testset_save_CFLAGS"
16328
16329		eval supported=\$$cacheid
16330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16331printf "%s\n" "$supported" >&6; }
16332		if test "$supported" = "yes" ; then
16333			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16334			found="yes"
16335		fi
16336	fi
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352xorg_testset_save_CFLAGS="$CFLAGS"
16353
16354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16359then :
16360  printf %s "(cached) " >&6
16361else $as_nop
16362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h.  */
16364int i;
16365_ACEOF
16366if ac_fn_c_try_compile "$LINENO"
16367then :
16368  xorg_cv_cc_flag_unknown_warning_option=yes
16369else $as_nop
16370  xorg_cv_cc_flag_unknown_warning_option=no
16371fi
16372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16373fi
16374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16377	CFLAGS="$xorg_testset_save_CFLAGS"
16378fi
16379
16380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16383	fi
16384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16387if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16388then :
16389  printf %s "(cached) " >&6
16390else $as_nop
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393int i;
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"
16396then :
16397  xorg_cv_cc_flag_unused_command_line_argument=yes
16398else $as_nop
16399  xorg_cv_cc_flag_unused_command_line_argument=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16402fi
16403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406	CFLAGS="$xorg_testset_save_CFLAGS"
16407fi
16408
16409found="no"
16410
16411	if test $found = "no" ; then
16412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414		fi
16415
16416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418		fi
16419
16420		CFLAGS="$CFLAGS -Werror=main"
16421
16422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16423printf %s "checking if $CC supports -Werror=main... " >&6; }
16424		cacheid=xorg_cv_cc_flag__Werror_main
16425		if eval test \${$cacheid+y}
16426then :
16427  printf %s "(cached) " >&6
16428else $as_nop
16429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430/* end confdefs.h.  */
16431int i;
16432int
16433main (void)
16434{
16435
16436  ;
16437  return 0;
16438}
16439_ACEOF
16440if ac_fn_c_try_link "$LINENO"
16441then :
16442  eval $cacheid=yes
16443else $as_nop
16444  eval $cacheid=no
16445fi
16446rm -f core conftest.err conftest.$ac_objext conftest.beam \
16447    conftest$ac_exeext conftest.$ac_ext
16448fi
16449
16450
16451		CFLAGS="$xorg_testset_save_CFLAGS"
16452
16453		eval supported=\$$cacheid
16454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16455printf "%s\n" "$supported" >&6; }
16456		if test "$supported" = "yes" ; then
16457			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16458			found="yes"
16459		fi
16460	fi
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476xorg_testset_save_CFLAGS="$CFLAGS"
16477
16478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16482if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16483then :
16484  printf %s "(cached) " >&6
16485else $as_nop
16486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488int i;
16489_ACEOF
16490if ac_fn_c_try_compile "$LINENO"
16491then :
16492  xorg_cv_cc_flag_unknown_warning_option=yes
16493else $as_nop
16494  xorg_cv_cc_flag_unknown_warning_option=no
16495fi
16496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16497fi
16498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16501	CFLAGS="$xorg_testset_save_CFLAGS"
16502fi
16503
16504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16507	fi
16508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16511if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16512then :
16513  printf %s "(cached) " >&6
16514else $as_nop
16515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516/* end confdefs.h.  */
16517int i;
16518_ACEOF
16519if ac_fn_c_try_compile "$LINENO"
16520then :
16521  xorg_cv_cc_flag_unused_command_line_argument=yes
16522else $as_nop
16523  xorg_cv_cc_flag_unused_command_line_argument=no
16524fi
16525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16526fi
16527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16530	CFLAGS="$xorg_testset_save_CFLAGS"
16531fi
16532
16533found="no"
16534
16535	if test $found = "no" ; then
16536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16538		fi
16539
16540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542		fi
16543
16544		CFLAGS="$CFLAGS -Werror=missing-braces"
16545
16546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16547printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16548		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16549		if eval test \${$cacheid+y}
16550then :
16551  printf %s "(cached) " >&6
16552else $as_nop
16553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554/* end confdefs.h.  */
16555int i;
16556int
16557main (void)
16558{
16559
16560  ;
16561  return 0;
16562}
16563_ACEOF
16564if ac_fn_c_try_link "$LINENO"
16565then :
16566  eval $cacheid=yes
16567else $as_nop
16568  eval $cacheid=no
16569fi
16570rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571    conftest$ac_exeext conftest.$ac_ext
16572fi
16573
16574
16575		CFLAGS="$xorg_testset_save_CFLAGS"
16576
16577		eval supported=\$$cacheid
16578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16579printf "%s\n" "$supported" >&6; }
16580		if test "$supported" = "yes" ; then
16581			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16582			found="yes"
16583		fi
16584	fi
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600xorg_testset_save_CFLAGS="$CFLAGS"
16601
16602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16603	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16606if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16607then :
16608  printf %s "(cached) " >&6
16609else $as_nop
16610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h.  */
16612int i;
16613_ACEOF
16614if ac_fn_c_try_compile "$LINENO"
16615then :
16616  xorg_cv_cc_flag_unknown_warning_option=yes
16617else $as_nop
16618  xorg_cv_cc_flag_unknown_warning_option=no
16619fi
16620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16621fi
16622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16625	CFLAGS="$xorg_testset_save_CFLAGS"
16626fi
16627
16628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16631	fi
16632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16635if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16636then :
16637  printf %s "(cached) " >&6
16638else $as_nop
16639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h.  */
16641int i;
16642_ACEOF
16643if ac_fn_c_try_compile "$LINENO"
16644then :
16645  xorg_cv_cc_flag_unused_command_line_argument=yes
16646else $as_nop
16647  xorg_cv_cc_flag_unused_command_line_argument=no
16648fi
16649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16650fi
16651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16654	CFLAGS="$xorg_testset_save_CFLAGS"
16655fi
16656
16657found="no"
16658
16659	if test $found = "no" ; then
16660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16662		fi
16663
16664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16666		fi
16667
16668		CFLAGS="$CFLAGS -Werror=sequence-point"
16669
16670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16671printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16672		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16673		if eval test \${$cacheid+y}
16674then :
16675  printf %s "(cached) " >&6
16676else $as_nop
16677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678/* end confdefs.h.  */
16679int i;
16680int
16681main (void)
16682{
16683
16684  ;
16685  return 0;
16686}
16687_ACEOF
16688if ac_fn_c_try_link "$LINENO"
16689then :
16690  eval $cacheid=yes
16691else $as_nop
16692  eval $cacheid=no
16693fi
16694rm -f core conftest.err conftest.$ac_objext conftest.beam \
16695    conftest$ac_exeext conftest.$ac_ext
16696fi
16697
16698
16699		CFLAGS="$xorg_testset_save_CFLAGS"
16700
16701		eval supported=\$$cacheid
16702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16703printf "%s\n" "$supported" >&6; }
16704		if test "$supported" = "yes" ; then
16705			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16706			found="yes"
16707		fi
16708	fi
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724xorg_testset_save_CFLAGS="$CFLAGS"
16725
16726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16730if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16731then :
16732  printf %s "(cached) " >&6
16733else $as_nop
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736int i;
16737_ACEOF
16738if ac_fn_c_try_compile "$LINENO"
16739then :
16740  xorg_cv_cc_flag_unknown_warning_option=yes
16741else $as_nop
16742  xorg_cv_cc_flag_unknown_warning_option=no
16743fi
16744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16745fi
16746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16749	CFLAGS="$xorg_testset_save_CFLAGS"
16750fi
16751
16752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755	fi
16756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16759if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16760then :
16761  printf %s "(cached) " >&6
16762else $as_nop
16763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764/* end confdefs.h.  */
16765int i;
16766_ACEOF
16767if ac_fn_c_try_compile "$LINENO"
16768then :
16769  xorg_cv_cc_flag_unused_command_line_argument=yes
16770else $as_nop
16771  xorg_cv_cc_flag_unused_command_line_argument=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16774fi
16775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16778	CFLAGS="$xorg_testset_save_CFLAGS"
16779fi
16780
16781found="no"
16782
16783	if test $found = "no" ; then
16784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786		fi
16787
16788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790		fi
16791
16792		CFLAGS="$CFLAGS -Werror=return-type"
16793
16794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16795printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16796		cacheid=xorg_cv_cc_flag__Werror_return_type
16797		if eval test \${$cacheid+y}
16798then :
16799  printf %s "(cached) " >&6
16800else $as_nop
16801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802/* end confdefs.h.  */
16803int i;
16804int
16805main (void)
16806{
16807
16808  ;
16809  return 0;
16810}
16811_ACEOF
16812if ac_fn_c_try_link "$LINENO"
16813then :
16814  eval $cacheid=yes
16815else $as_nop
16816  eval $cacheid=no
16817fi
16818rm -f core conftest.err conftest.$ac_objext conftest.beam \
16819    conftest$ac_exeext conftest.$ac_ext
16820fi
16821
16822
16823		CFLAGS="$xorg_testset_save_CFLAGS"
16824
16825		eval supported=\$$cacheid
16826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16827printf "%s\n" "$supported" >&6; }
16828		if test "$supported" = "yes" ; then
16829			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16830			found="yes"
16831		fi
16832	fi
16833
16834	if test $found = "no" ; then
16835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16837		fi
16838
16839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16841		fi
16842
16843		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16844
16845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16846printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16847		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16848		if eval test \${$cacheid+y}
16849then :
16850  printf %s "(cached) " >&6
16851else $as_nop
16852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h.  */
16854int i;
16855int
16856main (void)
16857{
16858
16859  ;
16860  return 0;
16861}
16862_ACEOF
16863if ac_fn_c_try_link "$LINENO"
16864then :
16865  eval $cacheid=yes
16866else $as_nop
16867  eval $cacheid=no
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.beam \
16870    conftest$ac_exeext conftest.$ac_ext
16871fi
16872
16873
16874		CFLAGS="$xorg_testset_save_CFLAGS"
16875
16876		eval supported=\$$cacheid
16877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16878printf "%s\n" "$supported" >&6; }
16879		if test "$supported" = "yes" ; then
16880			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16881			found="yes"
16882		fi
16883	fi
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899xorg_testset_save_CFLAGS="$CFLAGS"
16900
16901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16906then :
16907  printf %s "(cached) " >&6
16908else $as_nop
16909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h.  */
16911int i;
16912_ACEOF
16913if ac_fn_c_try_compile "$LINENO"
16914then :
16915  xorg_cv_cc_flag_unknown_warning_option=yes
16916else $as_nop
16917  xorg_cv_cc_flag_unknown_warning_option=no
16918fi
16919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16920fi
16921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16924	CFLAGS="$xorg_testset_save_CFLAGS"
16925fi
16926
16927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930	fi
16931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16935then :
16936  printf %s "(cached) " >&6
16937else $as_nop
16938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940int i;
16941_ACEOF
16942if ac_fn_c_try_compile "$LINENO"
16943then :
16944  xorg_cv_cc_flag_unused_command_line_argument=yes
16945else $as_nop
16946  xorg_cv_cc_flag_unused_command_line_argument=no
16947fi
16948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16949fi
16950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16953	CFLAGS="$xorg_testset_save_CFLAGS"
16954fi
16955
16956found="no"
16957
16958	if test $found = "no" ; then
16959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16961		fi
16962
16963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16965		fi
16966
16967		CFLAGS="$CFLAGS -Werror=trigraphs"
16968
16969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16970printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16971		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16972		if eval test \${$cacheid+y}
16973then :
16974  printf %s "(cached) " >&6
16975else $as_nop
16976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977/* end confdefs.h.  */
16978int i;
16979int
16980main (void)
16981{
16982
16983  ;
16984  return 0;
16985}
16986_ACEOF
16987if ac_fn_c_try_link "$LINENO"
16988then :
16989  eval $cacheid=yes
16990else $as_nop
16991  eval $cacheid=no
16992fi
16993rm -f core conftest.err conftest.$ac_objext conftest.beam \
16994    conftest$ac_exeext conftest.$ac_ext
16995fi
16996
16997
16998		CFLAGS="$xorg_testset_save_CFLAGS"
16999
17000		eval supported=\$$cacheid
17001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002printf "%s\n" "$supported" >&6; }
17003		if test "$supported" = "yes" ; then
17004			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17005			found="yes"
17006		fi
17007	fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17030then :
17031  printf %s "(cached) " >&6
17032else $as_nop
17033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h.  */
17035int i;
17036_ACEOF
17037if ac_fn_c_try_compile "$LINENO"
17038then :
17039  xorg_cv_cc_flag_unknown_warning_option=yes
17040else $as_nop
17041  xorg_cv_cc_flag_unknown_warning_option=no
17042fi
17043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17044fi
17045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17048	CFLAGS="$xorg_testset_save_CFLAGS"
17049fi
17050
17051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17054	fi
17055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17058if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17059then :
17060  printf %s "(cached) " >&6
17061else $as_nop
17062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063/* end confdefs.h.  */
17064int i;
17065_ACEOF
17066if ac_fn_c_try_compile "$LINENO"
17067then :
17068  xorg_cv_cc_flag_unused_command_line_argument=yes
17069else $as_nop
17070  xorg_cv_cc_flag_unused_command_line_argument=no
17071fi
17072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17073fi
17074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17077	CFLAGS="$xorg_testset_save_CFLAGS"
17078fi
17079
17080found="no"
17081
17082	if test $found = "no" ; then
17083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085		fi
17086
17087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17089		fi
17090
17091		CFLAGS="$CFLAGS -Werror=array-bounds"
17092
17093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17094printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17095		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17096		if eval test \${$cacheid+y}
17097then :
17098  printf %s "(cached) " >&6
17099else $as_nop
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103int
17104main (void)
17105{
17106
17107  ;
17108  return 0;
17109}
17110_ACEOF
17111if ac_fn_c_try_link "$LINENO"
17112then :
17113  eval $cacheid=yes
17114else $as_nop
17115  eval $cacheid=no
17116fi
17117rm -f core conftest.err conftest.$ac_objext conftest.beam \
17118    conftest$ac_exeext conftest.$ac_ext
17119fi
17120
17121
17122		CFLAGS="$xorg_testset_save_CFLAGS"
17123
17124		eval supported=\$$cacheid
17125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17126printf "%s\n" "$supported" >&6; }
17127		if test "$supported" = "yes" ; then
17128			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17129			found="yes"
17130		fi
17131	fi
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147xorg_testset_save_CFLAGS="$CFLAGS"
17148
17149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17153if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17154then :
17155  printf %s "(cached) " >&6
17156else $as_nop
17157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158/* end confdefs.h.  */
17159int i;
17160_ACEOF
17161if ac_fn_c_try_compile "$LINENO"
17162then :
17163  xorg_cv_cc_flag_unknown_warning_option=yes
17164else $as_nop
17165  xorg_cv_cc_flag_unknown_warning_option=no
17166fi
17167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17168fi
17169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17172	CFLAGS="$xorg_testset_save_CFLAGS"
17173fi
17174
17175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178	fi
17179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17183then :
17184  printf %s "(cached) " >&6
17185else $as_nop
17186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187/* end confdefs.h.  */
17188int i;
17189_ACEOF
17190if ac_fn_c_try_compile "$LINENO"
17191then :
17192  xorg_cv_cc_flag_unused_command_line_argument=yes
17193else $as_nop
17194  xorg_cv_cc_flag_unused_command_line_argument=no
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17197fi
17198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17201	CFLAGS="$xorg_testset_save_CFLAGS"
17202fi
17203
17204found="no"
17205
17206	if test $found = "no" ; then
17207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209		fi
17210
17211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213		fi
17214
17215		CFLAGS="$CFLAGS -Werror=write-strings"
17216
17217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17218printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17219		cacheid=xorg_cv_cc_flag__Werror_write_strings
17220		if eval test \${$cacheid+y}
17221then :
17222  printf %s "(cached) " >&6
17223else $as_nop
17224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225/* end confdefs.h.  */
17226int i;
17227int
17228main (void)
17229{
17230
17231  ;
17232  return 0;
17233}
17234_ACEOF
17235if ac_fn_c_try_link "$LINENO"
17236then :
17237  eval $cacheid=yes
17238else $as_nop
17239  eval $cacheid=no
17240fi
17241rm -f core conftest.err conftest.$ac_objext conftest.beam \
17242    conftest$ac_exeext conftest.$ac_ext
17243fi
17244
17245
17246		CFLAGS="$xorg_testset_save_CFLAGS"
17247
17248		eval supported=\$$cacheid
17249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17250printf "%s\n" "$supported" >&6; }
17251		if test "$supported" = "yes" ; then
17252			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17253			found="yes"
17254		fi
17255	fi
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271xorg_testset_save_CFLAGS="$CFLAGS"
17272
17273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17277if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17278then :
17279  printf %s "(cached) " >&6
17280else $as_nop
17281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282/* end confdefs.h.  */
17283int i;
17284_ACEOF
17285if ac_fn_c_try_compile "$LINENO"
17286then :
17287  xorg_cv_cc_flag_unknown_warning_option=yes
17288else $as_nop
17289  xorg_cv_cc_flag_unknown_warning_option=no
17290fi
17291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17292fi
17293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17294printf "%s\n" "$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	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17306if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17307then :
17308  printf %s "(cached) " >&6
17309else $as_nop
17310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312int i;
17313_ACEOF
17314if ac_fn_c_try_compile "$LINENO"
17315then :
17316  xorg_cv_cc_flag_unused_command_line_argument=yes
17317else $as_nop
17318  xorg_cv_cc_flag_unused_command_line_argument=no
17319fi
17320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17321fi
17322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17325	CFLAGS="$xorg_testset_save_CFLAGS"
17326fi
17327
17328found="no"
17329
17330	if test $found = "no" ; then
17331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333		fi
17334
17335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17337		fi
17338
17339		CFLAGS="$CFLAGS -Werror=address"
17340
17341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17342printf %s "checking if $CC supports -Werror=address... " >&6; }
17343		cacheid=xorg_cv_cc_flag__Werror_address
17344		if eval test \${$cacheid+y}
17345then :
17346  printf %s "(cached) " >&6
17347else $as_nop
17348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350int i;
17351int
17352main (void)
17353{
17354
17355  ;
17356  return 0;
17357}
17358_ACEOF
17359if ac_fn_c_try_link "$LINENO"
17360then :
17361  eval $cacheid=yes
17362else $as_nop
17363  eval $cacheid=no
17364fi
17365rm -f core conftest.err conftest.$ac_objext conftest.beam \
17366    conftest$ac_exeext conftest.$ac_ext
17367fi
17368
17369
17370		CFLAGS="$xorg_testset_save_CFLAGS"
17371
17372		eval supported=\$$cacheid
17373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17374printf "%s\n" "$supported" >&6; }
17375		if test "$supported" = "yes" ; then
17376			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17377			found="yes"
17378		fi
17379	fi
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395xorg_testset_save_CFLAGS="$CFLAGS"
17396
17397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17401if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17402then :
17403  printf %s "(cached) " >&6
17404else $as_nop
17405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406/* end confdefs.h.  */
17407int i;
17408_ACEOF
17409if ac_fn_c_try_compile "$LINENO"
17410then :
17411  xorg_cv_cc_flag_unknown_warning_option=yes
17412else $as_nop
17413  xorg_cv_cc_flag_unknown_warning_option=no
17414fi
17415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17416fi
17417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17420	CFLAGS="$xorg_testset_save_CFLAGS"
17421fi
17422
17423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17426	fi
17427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17431then :
17432  printf %s "(cached) " >&6
17433else $as_nop
17434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435/* end confdefs.h.  */
17436int i;
17437_ACEOF
17438if ac_fn_c_try_compile "$LINENO"
17439then :
17440  xorg_cv_cc_flag_unused_command_line_argument=yes
17441else $as_nop
17442  xorg_cv_cc_flag_unused_command_line_argument=no
17443fi
17444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17445fi
17446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17448	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17449	CFLAGS="$xorg_testset_save_CFLAGS"
17450fi
17451
17452found="no"
17453
17454	if test $found = "no" ; then
17455		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457		fi
17458
17459		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17460			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17461		fi
17462
17463		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17464
17465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17466printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17467		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17468		if eval test \${$cacheid+y}
17469then :
17470  printf %s "(cached) " >&6
17471else $as_nop
17472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474int i;
17475int
17476main (void)
17477{
17478
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_link "$LINENO"
17484then :
17485  eval $cacheid=yes
17486else $as_nop
17487  eval $cacheid=no
17488fi
17489rm -f core conftest.err conftest.$ac_objext conftest.beam \
17490    conftest$ac_exeext conftest.$ac_ext
17491fi
17492
17493
17494		CFLAGS="$xorg_testset_save_CFLAGS"
17495
17496		eval supported=\$$cacheid
17497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17498printf "%s\n" "$supported" >&6; }
17499		if test "$supported" = "yes" ; then
17500			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17501			found="yes"
17502		fi
17503	fi
17504
17505	if test $found = "no" ; then
17506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17508		fi
17509
17510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17512		fi
17513
17514		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17515
17516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17517printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17518		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17519		if eval test \${$cacheid+y}
17520then :
17521  printf %s "(cached) " >&6
17522else $as_nop
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525int i;
17526int
17527main (void)
17528{
17529
17530  ;
17531  return 0;
17532}
17533_ACEOF
17534if ac_fn_c_try_link "$LINENO"
17535then :
17536  eval $cacheid=yes
17537else $as_nop
17538  eval $cacheid=no
17539fi
17540rm -f core conftest.err conftest.$ac_objext conftest.beam \
17541    conftest$ac_exeext conftest.$ac_ext
17542fi
17543
17544
17545		CFLAGS="$xorg_testset_save_CFLAGS"
17546
17547		eval supported=\$$cacheid
17548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17549printf "%s\n" "$supported" >&6; }
17550		if test "$supported" = "yes" ; then
17551			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17552			found="yes"
17553		fi
17554	fi
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17577then :
17578  printf %s "(cached) " >&6
17579else $as_nop
17580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h.  */
17582int i;
17583_ACEOF
17584if ac_fn_c_try_compile "$LINENO"
17585then :
17586  xorg_cv_cc_flag_unknown_warning_option=yes
17587else $as_nop
17588  xorg_cv_cc_flag_unknown_warning_option=no
17589fi
17590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17591fi
17592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17593printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17595	CFLAGS="$xorg_testset_save_CFLAGS"
17596fi
17597
17598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17601	fi
17602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17604printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17605if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17606then :
17607  printf %s "(cached) " >&6
17608else $as_nop
17609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610/* end confdefs.h.  */
17611int i;
17612_ACEOF
17613if ac_fn_c_try_compile "$LINENO"
17614then :
17615  xorg_cv_cc_flag_unused_command_line_argument=yes
17616else $as_nop
17617  xorg_cv_cc_flag_unused_command_line_argument=no
17618fi
17619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17620fi
17621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17624	CFLAGS="$xorg_testset_save_CFLAGS"
17625fi
17626
17627found="no"
17628
17629	if test $found = "no" ; then
17630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17632		fi
17633
17634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17636		fi
17637
17638		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17639
17640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17641printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17642		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17643		if eval test \${$cacheid+y}
17644then :
17645  printf %s "(cached) " >&6
17646else $as_nop
17647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648/* end confdefs.h.  */
17649int i;
17650int
17651main (void)
17652{
17653
17654  ;
17655  return 0;
17656}
17657_ACEOF
17658if ac_fn_c_try_link "$LINENO"
17659then :
17660  eval $cacheid=yes
17661else $as_nop
17662  eval $cacheid=no
17663fi
17664rm -f core conftest.err conftest.$ac_objext conftest.beam \
17665    conftest$ac_exeext conftest.$ac_ext
17666fi
17667
17668
17669		CFLAGS="$xorg_testset_save_CFLAGS"
17670
17671		eval supported=\$$cacheid
17672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17673printf "%s\n" "$supported" >&6; }
17674		if test "$supported" = "yes" ; then
17675			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17676			found="yes"
17677		fi
17678	fi
17679
17680 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17681else
17682{ printf "%s\n" "$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
17683printf "%s\n" "$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;}
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697xorg_testset_save_CFLAGS="$CFLAGS"
17698
17699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17704then :
17705  printf %s "(cached) " >&6
17706else $as_nop
17707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708/* end confdefs.h.  */
17709int i;
17710_ACEOF
17711if ac_fn_c_try_compile "$LINENO"
17712then :
17713  xorg_cv_cc_flag_unknown_warning_option=yes
17714else $as_nop
17715  xorg_cv_cc_flag_unknown_warning_option=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17718fi
17719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17722	CFLAGS="$xorg_testset_save_CFLAGS"
17723fi
17724
17725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17728	fi
17729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17733then :
17734  printf %s "(cached) " >&6
17735else $as_nop
17736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737/* end confdefs.h.  */
17738int i;
17739_ACEOF
17740if ac_fn_c_try_compile "$LINENO"
17741then :
17742  xorg_cv_cc_flag_unused_command_line_argument=yes
17743else $as_nop
17744  xorg_cv_cc_flag_unused_command_line_argument=no
17745fi
17746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17747fi
17748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17751	CFLAGS="$xorg_testset_save_CFLAGS"
17752fi
17753
17754found="no"
17755
17756	if test $found = "no" ; then
17757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17759		fi
17760
17761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17763		fi
17764
17765		CFLAGS="$CFLAGS -Wimplicit"
17766
17767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17768printf %s "checking if $CC supports -Wimplicit... " >&6; }
17769		cacheid=xorg_cv_cc_flag__Wimplicit
17770		if eval test \${$cacheid+y}
17771then :
17772  printf %s "(cached) " >&6
17773else $as_nop
17774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h.  */
17776int i;
17777int
17778main (void)
17779{
17780
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785if ac_fn_c_try_link "$LINENO"
17786then :
17787  eval $cacheid=yes
17788else $as_nop
17789  eval $cacheid=no
17790fi
17791rm -f core conftest.err conftest.$ac_objext conftest.beam \
17792    conftest$ac_exeext conftest.$ac_ext
17793fi
17794
17795
17796		CFLAGS="$xorg_testset_save_CFLAGS"
17797
17798		eval supported=\$$cacheid
17799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17800printf "%s\n" "$supported" >&6; }
17801		if test "$supported" = "yes" ; then
17802			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17803			found="yes"
17804		fi
17805	fi
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821xorg_testset_save_CFLAGS="$CFLAGS"
17822
17823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17828then :
17829  printf %s "(cached) " >&6
17830else $as_nop
17831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832/* end confdefs.h.  */
17833int i;
17834_ACEOF
17835if ac_fn_c_try_compile "$LINENO"
17836then :
17837  xorg_cv_cc_flag_unknown_warning_option=yes
17838else $as_nop
17839  xorg_cv_cc_flag_unknown_warning_option=no
17840fi
17841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17842fi
17843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17846	CFLAGS="$xorg_testset_save_CFLAGS"
17847fi
17848
17849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17852	fi
17853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17857then :
17858  printf %s "(cached) " >&6
17859else $as_nop
17860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861/* end confdefs.h.  */
17862int i;
17863_ACEOF
17864if ac_fn_c_try_compile "$LINENO"
17865then :
17866  xorg_cv_cc_flag_unused_command_line_argument=yes
17867else $as_nop
17868  xorg_cv_cc_flag_unused_command_line_argument=no
17869fi
17870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17871fi
17872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17875	CFLAGS="$xorg_testset_save_CFLAGS"
17876fi
17877
17878found="no"
17879
17880	if test $found = "no" ; then
17881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883		fi
17884
17885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17887		fi
17888
17889		CFLAGS="$CFLAGS -Wnonnull"
17890
17891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17892printf %s "checking if $CC supports -Wnonnull... " >&6; }
17893		cacheid=xorg_cv_cc_flag__Wnonnull
17894		if eval test \${$cacheid+y}
17895then :
17896  printf %s "(cached) " >&6
17897else $as_nop
17898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899/* end confdefs.h.  */
17900int i;
17901int
17902main (void)
17903{
17904
17905  ;
17906  return 0;
17907}
17908_ACEOF
17909if ac_fn_c_try_link "$LINENO"
17910then :
17911  eval $cacheid=yes
17912else $as_nop
17913  eval $cacheid=no
17914fi
17915rm -f core conftest.err conftest.$ac_objext conftest.beam \
17916    conftest$ac_exeext conftest.$ac_ext
17917fi
17918
17919
17920		CFLAGS="$xorg_testset_save_CFLAGS"
17921
17922		eval supported=\$$cacheid
17923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17924printf "%s\n" "$supported" >&6; }
17925		if test "$supported" = "yes" ; then
17926			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17927			found="yes"
17928		fi
17929	fi
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945xorg_testset_save_CFLAGS="$CFLAGS"
17946
17947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17952then :
17953  printf %s "(cached) " >&6
17954else $as_nop
17955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956/* end confdefs.h.  */
17957int i;
17958_ACEOF
17959if ac_fn_c_try_compile "$LINENO"
17960then :
17961  xorg_cv_cc_flag_unknown_warning_option=yes
17962else $as_nop
17963  xorg_cv_cc_flag_unknown_warning_option=no
17964fi
17965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17966fi
17967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17970	CFLAGS="$xorg_testset_save_CFLAGS"
17971fi
17972
17973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976	fi
17977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17981then :
17982  printf %s "(cached) " >&6
17983else $as_nop
17984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985/* end confdefs.h.  */
17986int i;
17987_ACEOF
17988if ac_fn_c_try_compile "$LINENO"
17989then :
17990  xorg_cv_cc_flag_unused_command_line_argument=yes
17991else $as_nop
17992  xorg_cv_cc_flag_unused_command_line_argument=no
17993fi
17994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17995fi
17996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17999	CFLAGS="$xorg_testset_save_CFLAGS"
18000fi
18001
18002found="no"
18003
18004	if test $found = "no" ; then
18005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18007		fi
18008
18009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18011		fi
18012
18013		CFLAGS="$CFLAGS -Winit-self"
18014
18015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18016printf %s "checking if $CC supports -Winit-self... " >&6; }
18017		cacheid=xorg_cv_cc_flag__Winit_self
18018		if eval test \${$cacheid+y}
18019then :
18020  printf %s "(cached) " >&6
18021else $as_nop
18022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h.  */
18024int i;
18025int
18026main (void)
18027{
18028
18029  ;
18030  return 0;
18031}
18032_ACEOF
18033if ac_fn_c_try_link "$LINENO"
18034then :
18035  eval $cacheid=yes
18036else $as_nop
18037  eval $cacheid=no
18038fi
18039rm -f core conftest.err conftest.$ac_objext conftest.beam \
18040    conftest$ac_exeext conftest.$ac_ext
18041fi
18042
18043
18044		CFLAGS="$xorg_testset_save_CFLAGS"
18045
18046		eval supported=\$$cacheid
18047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18048printf "%s\n" "$supported" >&6; }
18049		if test "$supported" = "yes" ; then
18050			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18051			found="yes"
18052		fi
18053	fi
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069xorg_testset_save_CFLAGS="$CFLAGS"
18070
18071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18076then :
18077  printf %s "(cached) " >&6
18078else $as_nop
18079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080/* end confdefs.h.  */
18081int i;
18082_ACEOF
18083if ac_fn_c_try_compile "$LINENO"
18084then :
18085  xorg_cv_cc_flag_unknown_warning_option=yes
18086else $as_nop
18087  xorg_cv_cc_flag_unknown_warning_option=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18090fi
18091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18094	CFLAGS="$xorg_testset_save_CFLAGS"
18095fi
18096
18097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100	fi
18101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18105then :
18106  printf %s "(cached) " >&6
18107else $as_nop
18108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h.  */
18110int i;
18111_ACEOF
18112if ac_fn_c_try_compile "$LINENO"
18113then :
18114  xorg_cv_cc_flag_unused_command_line_argument=yes
18115else $as_nop
18116  xorg_cv_cc_flag_unused_command_line_argument=no
18117fi
18118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18119fi
18120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18123	CFLAGS="$xorg_testset_save_CFLAGS"
18124fi
18125
18126found="no"
18127
18128	if test $found = "no" ; then
18129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18131		fi
18132
18133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18135		fi
18136
18137		CFLAGS="$CFLAGS -Wmain"
18138
18139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18140printf %s "checking if $CC supports -Wmain... " >&6; }
18141		cacheid=xorg_cv_cc_flag__Wmain
18142		if eval test \${$cacheid+y}
18143then :
18144  printf %s "(cached) " >&6
18145else $as_nop
18146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147/* end confdefs.h.  */
18148int i;
18149int
18150main (void)
18151{
18152
18153  ;
18154  return 0;
18155}
18156_ACEOF
18157if ac_fn_c_try_link "$LINENO"
18158then :
18159  eval $cacheid=yes
18160else $as_nop
18161  eval $cacheid=no
18162fi
18163rm -f core conftest.err conftest.$ac_objext conftest.beam \
18164    conftest$ac_exeext conftest.$ac_ext
18165fi
18166
18167
18168		CFLAGS="$xorg_testset_save_CFLAGS"
18169
18170		eval supported=\$$cacheid
18171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18172printf "%s\n" "$supported" >&6; }
18173		if test "$supported" = "yes" ; then
18174			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18175			found="yes"
18176		fi
18177	fi
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193xorg_testset_save_CFLAGS="$CFLAGS"
18194
18195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18200then :
18201  printf %s "(cached) " >&6
18202else $as_nop
18203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204/* end confdefs.h.  */
18205int i;
18206_ACEOF
18207if ac_fn_c_try_compile "$LINENO"
18208then :
18209  xorg_cv_cc_flag_unknown_warning_option=yes
18210else $as_nop
18211  xorg_cv_cc_flag_unknown_warning_option=no
18212fi
18213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18214fi
18215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18218	CFLAGS="$xorg_testset_save_CFLAGS"
18219fi
18220
18221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18224	fi
18225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18229then :
18230  printf %s "(cached) " >&6
18231else $as_nop
18232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233/* end confdefs.h.  */
18234int i;
18235_ACEOF
18236if ac_fn_c_try_compile "$LINENO"
18237then :
18238  xorg_cv_cc_flag_unused_command_line_argument=yes
18239else $as_nop
18240  xorg_cv_cc_flag_unused_command_line_argument=no
18241fi
18242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18243fi
18244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18247	CFLAGS="$xorg_testset_save_CFLAGS"
18248fi
18249
18250found="no"
18251
18252	if test $found = "no" ; then
18253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18255		fi
18256
18257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18259		fi
18260
18261		CFLAGS="$CFLAGS -Wmissing-braces"
18262
18263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18264printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18265		cacheid=xorg_cv_cc_flag__Wmissing_braces
18266		if eval test \${$cacheid+y}
18267then :
18268  printf %s "(cached) " >&6
18269else $as_nop
18270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271/* end confdefs.h.  */
18272int i;
18273int
18274main (void)
18275{
18276
18277  ;
18278  return 0;
18279}
18280_ACEOF
18281if ac_fn_c_try_link "$LINENO"
18282then :
18283  eval $cacheid=yes
18284else $as_nop
18285  eval $cacheid=no
18286fi
18287rm -f core conftest.err conftest.$ac_objext conftest.beam \
18288    conftest$ac_exeext conftest.$ac_ext
18289fi
18290
18291
18292		CFLAGS="$xorg_testset_save_CFLAGS"
18293
18294		eval supported=\$$cacheid
18295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18296printf "%s\n" "$supported" >&6; }
18297		if test "$supported" = "yes" ; then
18298			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18299			found="yes"
18300		fi
18301	fi
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317xorg_testset_save_CFLAGS="$CFLAGS"
18318
18319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18323if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18324then :
18325  printf %s "(cached) " >&6
18326else $as_nop
18327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328/* end confdefs.h.  */
18329int i;
18330_ACEOF
18331if ac_fn_c_try_compile "$LINENO"
18332then :
18333  xorg_cv_cc_flag_unknown_warning_option=yes
18334else $as_nop
18335  xorg_cv_cc_flag_unknown_warning_option=no
18336fi
18337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18338fi
18339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18342	CFLAGS="$xorg_testset_save_CFLAGS"
18343fi
18344
18345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18348	fi
18349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18352if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18353then :
18354  printf %s "(cached) " >&6
18355else $as_nop
18356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357/* end confdefs.h.  */
18358int i;
18359_ACEOF
18360if ac_fn_c_try_compile "$LINENO"
18361then :
18362  xorg_cv_cc_flag_unused_command_line_argument=yes
18363else $as_nop
18364  xorg_cv_cc_flag_unused_command_line_argument=no
18365fi
18366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18367fi
18368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18371	CFLAGS="$xorg_testset_save_CFLAGS"
18372fi
18373
18374found="no"
18375
18376	if test $found = "no" ; then
18377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18379		fi
18380
18381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18383		fi
18384
18385		CFLAGS="$CFLAGS -Wsequence-point"
18386
18387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18388printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18389		cacheid=xorg_cv_cc_flag__Wsequence_point
18390		if eval test \${$cacheid+y}
18391then :
18392  printf %s "(cached) " >&6
18393else $as_nop
18394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395/* end confdefs.h.  */
18396int i;
18397int
18398main (void)
18399{
18400
18401  ;
18402  return 0;
18403}
18404_ACEOF
18405if ac_fn_c_try_link "$LINENO"
18406then :
18407  eval $cacheid=yes
18408else $as_nop
18409  eval $cacheid=no
18410fi
18411rm -f core conftest.err conftest.$ac_objext conftest.beam \
18412    conftest$ac_exeext conftest.$ac_ext
18413fi
18414
18415
18416		CFLAGS="$xorg_testset_save_CFLAGS"
18417
18418		eval supported=\$$cacheid
18419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18420printf "%s\n" "$supported" >&6; }
18421		if test "$supported" = "yes" ; then
18422			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18423			found="yes"
18424		fi
18425	fi
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441xorg_testset_save_CFLAGS="$CFLAGS"
18442
18443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18446printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18447if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18448then :
18449  printf %s "(cached) " >&6
18450else $as_nop
18451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452/* end confdefs.h.  */
18453int i;
18454_ACEOF
18455if ac_fn_c_try_compile "$LINENO"
18456then :
18457  xorg_cv_cc_flag_unknown_warning_option=yes
18458else $as_nop
18459  xorg_cv_cc_flag_unknown_warning_option=no
18460fi
18461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18462fi
18463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18466	CFLAGS="$xorg_testset_save_CFLAGS"
18467fi
18468
18469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18472	fi
18473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18476if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18477then :
18478  printf %s "(cached) " >&6
18479else $as_nop
18480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481/* end confdefs.h.  */
18482int i;
18483_ACEOF
18484if ac_fn_c_try_compile "$LINENO"
18485then :
18486  xorg_cv_cc_flag_unused_command_line_argument=yes
18487else $as_nop
18488  xorg_cv_cc_flag_unused_command_line_argument=no
18489fi
18490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18491fi
18492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18495	CFLAGS="$xorg_testset_save_CFLAGS"
18496fi
18497
18498found="no"
18499
18500	if test $found = "no" ; then
18501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18503		fi
18504
18505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18507		fi
18508
18509		CFLAGS="$CFLAGS -Wreturn-type"
18510
18511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18512printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18513		cacheid=xorg_cv_cc_flag__Wreturn_type
18514		if eval test \${$cacheid+y}
18515then :
18516  printf %s "(cached) " >&6
18517else $as_nop
18518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519/* end confdefs.h.  */
18520int i;
18521int
18522main (void)
18523{
18524
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529if ac_fn_c_try_link "$LINENO"
18530then :
18531  eval $cacheid=yes
18532else $as_nop
18533  eval $cacheid=no
18534fi
18535rm -f core conftest.err conftest.$ac_objext conftest.beam \
18536    conftest$ac_exeext conftest.$ac_ext
18537fi
18538
18539
18540		CFLAGS="$xorg_testset_save_CFLAGS"
18541
18542		eval supported=\$$cacheid
18543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18544printf "%s\n" "$supported" >&6; }
18545		if test "$supported" = "yes" ; then
18546			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18547			found="yes"
18548		fi
18549	fi
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565xorg_testset_save_CFLAGS="$CFLAGS"
18566
18567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18572then :
18573  printf %s "(cached) " >&6
18574else $as_nop
18575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576/* end confdefs.h.  */
18577int i;
18578_ACEOF
18579if ac_fn_c_try_compile "$LINENO"
18580then :
18581  xorg_cv_cc_flag_unknown_warning_option=yes
18582else $as_nop
18583  xorg_cv_cc_flag_unknown_warning_option=no
18584fi
18585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18586fi
18587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18590	CFLAGS="$xorg_testset_save_CFLAGS"
18591fi
18592
18593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18596	fi
18597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18600if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18601then :
18602  printf %s "(cached) " >&6
18603else $as_nop
18604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h.  */
18606int i;
18607_ACEOF
18608if ac_fn_c_try_compile "$LINENO"
18609then :
18610  xorg_cv_cc_flag_unused_command_line_argument=yes
18611else $as_nop
18612  xorg_cv_cc_flag_unused_command_line_argument=no
18613fi
18614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18615fi
18616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18619	CFLAGS="$xorg_testset_save_CFLAGS"
18620fi
18621
18622found="no"
18623
18624	if test $found = "no" ; then
18625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18627		fi
18628
18629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18631		fi
18632
18633		CFLAGS="$CFLAGS -Wtrigraphs"
18634
18635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18636printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18637		cacheid=xorg_cv_cc_flag__Wtrigraphs
18638		if eval test \${$cacheid+y}
18639then :
18640  printf %s "(cached) " >&6
18641else $as_nop
18642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643/* end confdefs.h.  */
18644int i;
18645int
18646main (void)
18647{
18648
18649  ;
18650  return 0;
18651}
18652_ACEOF
18653if ac_fn_c_try_link "$LINENO"
18654then :
18655  eval $cacheid=yes
18656else $as_nop
18657  eval $cacheid=no
18658fi
18659rm -f core conftest.err conftest.$ac_objext conftest.beam \
18660    conftest$ac_exeext conftest.$ac_ext
18661fi
18662
18663
18664		CFLAGS="$xorg_testset_save_CFLAGS"
18665
18666		eval supported=\$$cacheid
18667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18668printf "%s\n" "$supported" >&6; }
18669		if test "$supported" = "yes" ; then
18670			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18671			found="yes"
18672		fi
18673	fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689xorg_testset_save_CFLAGS="$CFLAGS"
18690
18691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18695if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18696then :
18697  printf %s "(cached) " >&6
18698else $as_nop
18699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h.  */
18701int i;
18702_ACEOF
18703if ac_fn_c_try_compile "$LINENO"
18704then :
18705  xorg_cv_cc_flag_unknown_warning_option=yes
18706else $as_nop
18707  xorg_cv_cc_flag_unknown_warning_option=no
18708fi
18709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18710fi
18711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18714	CFLAGS="$xorg_testset_save_CFLAGS"
18715fi
18716
18717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720	fi
18721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18724if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18725then :
18726  printf %s "(cached) " >&6
18727else $as_nop
18728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729/* end confdefs.h.  */
18730int i;
18731_ACEOF
18732if ac_fn_c_try_compile "$LINENO"
18733then :
18734  xorg_cv_cc_flag_unused_command_line_argument=yes
18735else $as_nop
18736  xorg_cv_cc_flag_unused_command_line_argument=no
18737fi
18738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18739fi
18740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18743	CFLAGS="$xorg_testset_save_CFLAGS"
18744fi
18745
18746found="no"
18747
18748	if test $found = "no" ; then
18749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18751		fi
18752
18753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18755		fi
18756
18757		CFLAGS="$CFLAGS -Warray-bounds"
18758
18759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18760printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18761		cacheid=xorg_cv_cc_flag__Warray_bounds
18762		if eval test \${$cacheid+y}
18763then :
18764  printf %s "(cached) " >&6
18765else $as_nop
18766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767/* end confdefs.h.  */
18768int i;
18769int
18770main (void)
18771{
18772
18773  ;
18774  return 0;
18775}
18776_ACEOF
18777if ac_fn_c_try_link "$LINENO"
18778then :
18779  eval $cacheid=yes
18780else $as_nop
18781  eval $cacheid=no
18782fi
18783rm -f core conftest.err conftest.$ac_objext conftest.beam \
18784    conftest$ac_exeext conftest.$ac_ext
18785fi
18786
18787
18788		CFLAGS="$xorg_testset_save_CFLAGS"
18789
18790		eval supported=\$$cacheid
18791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18792printf "%s\n" "$supported" >&6; }
18793		if test "$supported" = "yes" ; then
18794			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18795			found="yes"
18796		fi
18797	fi
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813xorg_testset_save_CFLAGS="$CFLAGS"
18814
18815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18820then :
18821  printf %s "(cached) " >&6
18822else $as_nop
18823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824/* end confdefs.h.  */
18825int i;
18826_ACEOF
18827if ac_fn_c_try_compile "$LINENO"
18828then :
18829  xorg_cv_cc_flag_unknown_warning_option=yes
18830else $as_nop
18831  xorg_cv_cc_flag_unknown_warning_option=no
18832fi
18833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18834fi
18835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18838	CFLAGS="$xorg_testset_save_CFLAGS"
18839fi
18840
18841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18844	fi
18845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18848if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18849then :
18850  printf %s "(cached) " >&6
18851else $as_nop
18852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854int i;
18855_ACEOF
18856if ac_fn_c_try_compile "$LINENO"
18857then :
18858  xorg_cv_cc_flag_unused_command_line_argument=yes
18859else $as_nop
18860  xorg_cv_cc_flag_unused_command_line_argument=no
18861fi
18862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18863fi
18864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18867	CFLAGS="$xorg_testset_save_CFLAGS"
18868fi
18869
18870found="no"
18871
18872	if test $found = "no" ; then
18873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18875		fi
18876
18877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18879		fi
18880
18881		CFLAGS="$CFLAGS -Wwrite-strings"
18882
18883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18884printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18885		cacheid=xorg_cv_cc_flag__Wwrite_strings
18886		if eval test \${$cacheid+y}
18887then :
18888  printf %s "(cached) " >&6
18889else $as_nop
18890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891/* end confdefs.h.  */
18892int i;
18893int
18894main (void)
18895{
18896
18897  ;
18898  return 0;
18899}
18900_ACEOF
18901if ac_fn_c_try_link "$LINENO"
18902then :
18903  eval $cacheid=yes
18904else $as_nop
18905  eval $cacheid=no
18906fi
18907rm -f core conftest.err conftest.$ac_objext conftest.beam \
18908    conftest$ac_exeext conftest.$ac_ext
18909fi
18910
18911
18912		CFLAGS="$xorg_testset_save_CFLAGS"
18913
18914		eval supported=\$$cacheid
18915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18916printf "%s\n" "$supported" >&6; }
18917		if test "$supported" = "yes" ; then
18918			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18919			found="yes"
18920		fi
18921	fi
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937xorg_testset_save_CFLAGS="$CFLAGS"
18938
18939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18944then :
18945  printf %s "(cached) " >&6
18946else $as_nop
18947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948/* end confdefs.h.  */
18949int i;
18950_ACEOF
18951if ac_fn_c_try_compile "$LINENO"
18952then :
18953  xorg_cv_cc_flag_unknown_warning_option=yes
18954else $as_nop
18955  xorg_cv_cc_flag_unknown_warning_option=no
18956fi
18957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18958fi
18959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18962	CFLAGS="$xorg_testset_save_CFLAGS"
18963fi
18964
18965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968	fi
18969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18973then :
18974  printf %s "(cached) " >&6
18975else $as_nop
18976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977/* end confdefs.h.  */
18978int i;
18979_ACEOF
18980if ac_fn_c_try_compile "$LINENO"
18981then :
18982  xorg_cv_cc_flag_unused_command_line_argument=yes
18983else $as_nop
18984  xorg_cv_cc_flag_unused_command_line_argument=no
18985fi
18986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18987fi
18988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18991	CFLAGS="$xorg_testset_save_CFLAGS"
18992fi
18993
18994found="no"
18995
18996	if test $found = "no" ; then
18997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18999		fi
19000
19001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19003		fi
19004
19005		CFLAGS="$CFLAGS -Waddress"
19006
19007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19008printf %s "checking if $CC supports -Waddress... " >&6; }
19009		cacheid=xorg_cv_cc_flag__Waddress
19010		if eval test \${$cacheid+y}
19011then :
19012  printf %s "(cached) " >&6
19013else $as_nop
19014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015/* end confdefs.h.  */
19016int i;
19017int
19018main (void)
19019{
19020
19021  ;
19022  return 0;
19023}
19024_ACEOF
19025if ac_fn_c_try_link "$LINENO"
19026then :
19027  eval $cacheid=yes
19028else $as_nop
19029  eval $cacheid=no
19030fi
19031rm -f core conftest.err conftest.$ac_objext conftest.beam \
19032    conftest$ac_exeext conftest.$ac_ext
19033fi
19034
19035
19036		CFLAGS="$xorg_testset_save_CFLAGS"
19037
19038		eval supported=\$$cacheid
19039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19040printf "%s\n" "$supported" >&6; }
19041		if test "$supported" = "yes" ; then
19042			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19043			found="yes"
19044		fi
19045	fi
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061xorg_testset_save_CFLAGS="$CFLAGS"
19062
19063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19068then :
19069  printf %s "(cached) " >&6
19070else $as_nop
19071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072/* end confdefs.h.  */
19073int i;
19074_ACEOF
19075if ac_fn_c_try_compile "$LINENO"
19076then :
19077  xorg_cv_cc_flag_unknown_warning_option=yes
19078else $as_nop
19079  xorg_cv_cc_flag_unknown_warning_option=no
19080fi
19081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19082fi
19083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19086	CFLAGS="$xorg_testset_save_CFLAGS"
19087fi
19088
19089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19092	fi
19093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19097then :
19098  printf %s "(cached) " >&6
19099else $as_nop
19100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101/* end confdefs.h.  */
19102int i;
19103_ACEOF
19104if ac_fn_c_try_compile "$LINENO"
19105then :
19106  xorg_cv_cc_flag_unused_command_line_argument=yes
19107else $as_nop
19108  xorg_cv_cc_flag_unused_command_line_argument=no
19109fi
19110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19111fi
19112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19115	CFLAGS="$xorg_testset_save_CFLAGS"
19116fi
19117
19118found="no"
19119
19120	if test $found = "no" ; then
19121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19123		fi
19124
19125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19127		fi
19128
19129		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19130
19131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19132printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19133		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19134		if eval test \${$cacheid+y}
19135then :
19136  printf %s "(cached) " >&6
19137else $as_nop
19138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139/* end confdefs.h.  */
19140int i;
19141int
19142main (void)
19143{
19144
19145  ;
19146  return 0;
19147}
19148_ACEOF
19149if ac_fn_c_try_link "$LINENO"
19150then :
19151  eval $cacheid=yes
19152else $as_nop
19153  eval $cacheid=no
19154fi
19155rm -f core conftest.err conftest.$ac_objext conftest.beam \
19156    conftest$ac_exeext conftest.$ac_ext
19157fi
19158
19159
19160		CFLAGS="$xorg_testset_save_CFLAGS"
19161
19162		eval supported=\$$cacheid
19163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19164printf "%s\n" "$supported" >&6; }
19165		if test "$supported" = "yes" ; then
19166			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19167			found="yes"
19168		fi
19169	fi
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185xorg_testset_save_CFLAGS="$CFLAGS"
19186
19187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19191if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19192then :
19193  printf %s "(cached) " >&6
19194else $as_nop
19195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19196/* end confdefs.h.  */
19197int i;
19198_ACEOF
19199if ac_fn_c_try_compile "$LINENO"
19200then :
19201  xorg_cv_cc_flag_unknown_warning_option=yes
19202else $as_nop
19203  xorg_cv_cc_flag_unknown_warning_option=no
19204fi
19205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19206fi
19207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19210	CFLAGS="$xorg_testset_save_CFLAGS"
19211fi
19212
19213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19216	fi
19217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19220if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19221then :
19222  printf %s "(cached) " >&6
19223else $as_nop
19224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225/* end confdefs.h.  */
19226int i;
19227_ACEOF
19228if ac_fn_c_try_compile "$LINENO"
19229then :
19230  xorg_cv_cc_flag_unused_command_line_argument=yes
19231else $as_nop
19232  xorg_cv_cc_flag_unused_command_line_argument=no
19233fi
19234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19235fi
19236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19239	CFLAGS="$xorg_testset_save_CFLAGS"
19240fi
19241
19242found="no"
19243
19244	if test $found = "no" ; then
19245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19247		fi
19248
19249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19251		fi
19252
19253		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19254
19255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19256printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19257		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19258		if eval test \${$cacheid+y}
19259then :
19260  printf %s "(cached) " >&6
19261else $as_nop
19262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263/* end confdefs.h.  */
19264int i;
19265int
19266main (void)
19267{
19268
19269  ;
19270  return 0;
19271}
19272_ACEOF
19273if ac_fn_c_try_link "$LINENO"
19274then :
19275  eval $cacheid=yes
19276else $as_nop
19277  eval $cacheid=no
19278fi
19279rm -f core conftest.err conftest.$ac_objext conftest.beam \
19280    conftest$ac_exeext conftest.$ac_ext
19281fi
19282
19283
19284		CFLAGS="$xorg_testset_save_CFLAGS"
19285
19286		eval supported=\$$cacheid
19287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19288printf "%s\n" "$supported" >&6; }
19289		if test "$supported" = "yes" ; then
19290			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19291			found="yes"
19292		fi
19293	fi
19294
19295
19296fi
19297
19298
19299
19300
19301
19302
19303
19304		CWARNFLAGS="$BASE_CFLAGS"
19305		if  test "x$GCC" = xyes ; then
19306		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19307		fi
19308
19309
19310
19311
19312
19313
19314
19315
19316# Check whether --enable-strict-compilation was given.
19317if test ${enable_strict_compilation+y}
19318then :
19319  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19320else $as_nop
19321  STRICT_COMPILE=no
19322fi
19323
19324
19325
19326
19327
19328
19329STRICT_CFLAGS=""
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343xorg_testset_save_CFLAGS="$CFLAGS"
19344
19345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19350then :
19351  printf %s "(cached) " >&6
19352else $as_nop
19353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354/* end confdefs.h.  */
19355int i;
19356_ACEOF
19357if ac_fn_c_try_compile "$LINENO"
19358then :
19359  xorg_cv_cc_flag_unknown_warning_option=yes
19360else $as_nop
19361  xorg_cv_cc_flag_unknown_warning_option=no
19362fi
19363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19364fi
19365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19368	CFLAGS="$xorg_testset_save_CFLAGS"
19369fi
19370
19371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19374	fi
19375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19378if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19379then :
19380  printf %s "(cached) " >&6
19381else $as_nop
19382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383/* end confdefs.h.  */
19384int i;
19385_ACEOF
19386if ac_fn_c_try_compile "$LINENO"
19387then :
19388  xorg_cv_cc_flag_unused_command_line_argument=yes
19389else $as_nop
19390  xorg_cv_cc_flag_unused_command_line_argument=no
19391fi
19392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19393fi
19394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19397	CFLAGS="$xorg_testset_save_CFLAGS"
19398fi
19399
19400found="no"
19401
19402	if test $found = "no" ; then
19403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19405		fi
19406
19407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19409		fi
19410
19411		CFLAGS="$CFLAGS -pedantic"
19412
19413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19414printf %s "checking if $CC supports -pedantic... " >&6; }
19415		cacheid=xorg_cv_cc_flag__pedantic
19416		if eval test \${$cacheid+y}
19417then :
19418  printf %s "(cached) " >&6
19419else $as_nop
19420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421/* end confdefs.h.  */
19422int i;
19423int
19424main (void)
19425{
19426
19427  ;
19428  return 0;
19429}
19430_ACEOF
19431if ac_fn_c_try_link "$LINENO"
19432then :
19433  eval $cacheid=yes
19434else $as_nop
19435  eval $cacheid=no
19436fi
19437rm -f core conftest.err conftest.$ac_objext conftest.beam \
19438    conftest$ac_exeext conftest.$ac_ext
19439fi
19440
19441
19442		CFLAGS="$xorg_testset_save_CFLAGS"
19443
19444		eval supported=\$$cacheid
19445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19446printf "%s\n" "$supported" >&6; }
19447		if test "$supported" = "yes" ; then
19448			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19449			found="yes"
19450		fi
19451	fi
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467xorg_testset_save_CFLAGS="$CFLAGS"
19468
19469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19473if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19474then :
19475  printf %s "(cached) " >&6
19476else $as_nop
19477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478/* end confdefs.h.  */
19479int i;
19480_ACEOF
19481if ac_fn_c_try_compile "$LINENO"
19482then :
19483  xorg_cv_cc_flag_unknown_warning_option=yes
19484else $as_nop
19485  xorg_cv_cc_flag_unknown_warning_option=no
19486fi
19487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19488fi
19489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19492	CFLAGS="$xorg_testset_save_CFLAGS"
19493fi
19494
19495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19498	fi
19499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19503then :
19504  printf %s "(cached) " >&6
19505else $as_nop
19506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507/* end confdefs.h.  */
19508int i;
19509_ACEOF
19510if ac_fn_c_try_compile "$LINENO"
19511then :
19512  xorg_cv_cc_flag_unused_command_line_argument=yes
19513else $as_nop
19514  xorg_cv_cc_flag_unused_command_line_argument=no
19515fi
19516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19517fi
19518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19521	CFLAGS="$xorg_testset_save_CFLAGS"
19522fi
19523
19524found="no"
19525
19526	if test $found = "no" ; then
19527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529		fi
19530
19531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19533		fi
19534
19535		CFLAGS="$CFLAGS -Werror"
19536
19537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19538printf %s "checking if $CC supports -Werror... " >&6; }
19539		cacheid=xorg_cv_cc_flag__Werror
19540		if eval test \${$cacheid+y}
19541then :
19542  printf %s "(cached) " >&6
19543else $as_nop
19544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546int i;
19547int
19548main (void)
19549{
19550
19551  ;
19552  return 0;
19553}
19554_ACEOF
19555if ac_fn_c_try_link "$LINENO"
19556then :
19557  eval $cacheid=yes
19558else $as_nop
19559  eval $cacheid=no
19560fi
19561rm -f core conftest.err conftest.$ac_objext conftest.beam \
19562    conftest$ac_exeext conftest.$ac_ext
19563fi
19564
19565
19566		CFLAGS="$xorg_testset_save_CFLAGS"
19567
19568		eval supported=\$$cacheid
19569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19570printf "%s\n" "$supported" >&6; }
19571		if test "$supported" = "yes" ; then
19572			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19573			found="yes"
19574		fi
19575	fi
19576
19577	if test $found = "no" ; then
19578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19580		fi
19581
19582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19584		fi
19585
19586		CFLAGS="$CFLAGS -errwarn"
19587
19588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19589printf %s "checking if $CC supports -errwarn... " >&6; }
19590		cacheid=xorg_cv_cc_flag__errwarn
19591		if eval test \${$cacheid+y}
19592then :
19593  printf %s "(cached) " >&6
19594else $as_nop
19595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596/* end confdefs.h.  */
19597int i;
19598int
19599main (void)
19600{
19601
19602  ;
19603  return 0;
19604}
19605_ACEOF
19606if ac_fn_c_try_link "$LINENO"
19607then :
19608  eval $cacheid=yes
19609else $as_nop
19610  eval $cacheid=no
19611fi
19612rm -f core conftest.err conftest.$ac_objext conftest.beam \
19613    conftest$ac_exeext conftest.$ac_ext
19614fi
19615
19616
19617		CFLAGS="$xorg_testset_save_CFLAGS"
19618
19619		eval supported=\$$cacheid
19620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19621printf "%s\n" "$supported" >&6; }
19622		if test "$supported" = "yes" ; then
19623			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19624			found="yes"
19625		fi
19626	fi
19627
19628
19629
19630# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19631# activate it with -Werror, so we add it here explicitly.
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645xorg_testset_save_CFLAGS="$CFLAGS"
19646
19647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19652then :
19653  printf %s "(cached) " >&6
19654else $as_nop
19655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656/* end confdefs.h.  */
19657int i;
19658_ACEOF
19659if ac_fn_c_try_compile "$LINENO"
19660then :
19661  xorg_cv_cc_flag_unknown_warning_option=yes
19662else $as_nop
19663  xorg_cv_cc_flag_unknown_warning_option=no
19664fi
19665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19666fi
19667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19670	CFLAGS="$xorg_testset_save_CFLAGS"
19671fi
19672
19673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19676	fi
19677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19681then :
19682  printf %s "(cached) " >&6
19683else $as_nop
19684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685/* end confdefs.h.  */
19686int i;
19687_ACEOF
19688if ac_fn_c_try_compile "$LINENO"
19689then :
19690  xorg_cv_cc_flag_unused_command_line_argument=yes
19691else $as_nop
19692  xorg_cv_cc_flag_unused_command_line_argument=no
19693fi
19694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19695fi
19696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19699	CFLAGS="$xorg_testset_save_CFLAGS"
19700fi
19701
19702found="no"
19703
19704	if test $found = "no" ; then
19705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19707		fi
19708
19709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19711		fi
19712
19713		CFLAGS="$CFLAGS -Werror=attributes"
19714
19715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19716printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19717		cacheid=xorg_cv_cc_flag__Werror_attributes
19718		if eval test \${$cacheid+y}
19719then :
19720  printf %s "(cached) " >&6
19721else $as_nop
19722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723/* end confdefs.h.  */
19724int i;
19725int
19726main (void)
19727{
19728
19729  ;
19730  return 0;
19731}
19732_ACEOF
19733if ac_fn_c_try_link "$LINENO"
19734then :
19735  eval $cacheid=yes
19736else $as_nop
19737  eval $cacheid=no
19738fi
19739rm -f core conftest.err conftest.$ac_objext conftest.beam \
19740    conftest$ac_exeext conftest.$ac_ext
19741fi
19742
19743
19744		CFLAGS="$xorg_testset_save_CFLAGS"
19745
19746		eval supported=\$$cacheid
19747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19748printf "%s\n" "$supported" >&6; }
19749		if test "$supported" = "yes" ; then
19750			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19751			found="yes"
19752		fi
19753	fi
19754
19755
19756
19757if test "x$STRICT_COMPILE" = "xyes"; then
19758    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19759    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19760fi
19761
19762
19763
19764
19765
19766
19767cat >>confdefs.h <<_ACEOF
19768#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19769_ACEOF
19770
19771	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19772	if test "x$PVM" = "x"; then
19773		PVM="0"
19774	fi
19775
19776printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19777
19778	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19779	if test "x$PVP" = "x"; then
19780		PVP="0"
19781	fi
19782
19783printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19784
19785
19786
19787CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19788mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19789|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19790touch \$(top_srcdir)/ChangeLog; \
19791echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19792
19793
19794
19795
19796macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19797INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19798mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19799|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19800touch \$(top_srcdir)/INSTALL; \
19801echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19802
19803
19804
19805
19806
19807
19808case $host_os in
19809    solaris*)
19810        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19811        # check for a man page file found in later versions that use
19812        # traditional section numbers instead
19813        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19814printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19815if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19816then :
19817  printf %s "(cached) " >&6
19818else $as_nop
19819  test "$cross_compiling" = yes &&
19820  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19821if test -r "/usr/share/man/man7/attributes.7"; then
19822  ac_cv_file__usr_share_man_man7_attributes_7=yes
19823else
19824  ac_cv_file__usr_share_man_man7_attributes_7=no
19825fi
19826fi
19827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19828printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19829if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19830then :
19831  SYSV_MAN_SECTIONS=false
19832else $as_nop
19833  SYSV_MAN_SECTIONS=true
19834fi
19835
19836        ;;
19837    *) SYSV_MAN_SECTIONS=false ;;
19838esac
19839
19840if test x$APP_MAN_SUFFIX = x    ; then
19841    APP_MAN_SUFFIX=1
19842fi
19843if test x$APP_MAN_DIR = x    ; then
19844    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19845fi
19846
19847if test x$LIB_MAN_SUFFIX = x    ; then
19848    LIB_MAN_SUFFIX=3
19849fi
19850if test x$LIB_MAN_DIR = x    ; then
19851    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19852fi
19853
19854if test x$FILE_MAN_SUFFIX = x    ; then
19855    case $SYSV_MAN_SECTIONS in
19856	true)				FILE_MAN_SUFFIX=4  ;;
19857	*)				FILE_MAN_SUFFIX=5  ;;
19858    esac
19859fi
19860if test x$FILE_MAN_DIR = x    ; then
19861    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19862fi
19863
19864if test x$MISC_MAN_SUFFIX = x    ; then
19865    case $SYSV_MAN_SECTIONS in
19866	true)				MISC_MAN_SUFFIX=5  ;;
19867	*)				MISC_MAN_SUFFIX=7  ;;
19868    esac
19869fi
19870if test x$MISC_MAN_DIR = x    ; then
19871    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19872fi
19873
19874if test x$DRIVER_MAN_SUFFIX = x    ; then
19875    case $SYSV_MAN_SECTIONS in
19876	true)				DRIVER_MAN_SUFFIX=7  ;;
19877	*)				DRIVER_MAN_SUFFIX=4  ;;
19878    esac
19879fi
19880if test x$DRIVER_MAN_DIR = x    ; then
19881    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19882fi
19883
19884if test x$ADMIN_MAN_SUFFIX = x    ; then
19885    case $SYSV_MAN_SECTIONS in
19886	true)				ADMIN_MAN_SUFFIX=1m ;;
19887	*)				ADMIN_MAN_SUFFIX=8  ;;
19888    esac
19889fi
19890if test x$ADMIN_MAN_DIR = x    ; then
19891    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19892fi
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908XORG_MAN_PAGE="X Version 11"
19909
19910MAN_SUBSTS="\
19911	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19912	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19913	-e 's|__xservername__|Xorg|g' \
19914	-e 's|__xconfigfile__|xorg.conf|g' \
19915	-e 's|__projectroot__|\$(prefix)|g' \
19916	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19917	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19918	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19919	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19920	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19921	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19922	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19923
19924
19925
19926# Check whether --enable-silent-rules was given.
19927if test ${enable_silent_rules+y}
19928then :
19929  enableval=$enable_silent_rules;
19930fi
19931
19932case $enable_silent_rules in # (((
19933  yes) AM_DEFAULT_VERBOSITY=0;;
19934   no) AM_DEFAULT_VERBOSITY=1;;
19935    *) AM_DEFAULT_VERBOSITY=0;;
19936esac
19937am_make=${MAKE-make}
19938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19939printf %s "checking whether $am_make supports nested variables... " >&6; }
19940if test ${am_cv_make_support_nested_variables+y}
19941then :
19942  printf %s "(cached) " >&6
19943else $as_nop
19944  if printf "%s\n" 'TRUE=$(BAR$(V))
19945BAR0=false
19946BAR1=true
19947V=1
19948am__doit:
19949	@$(TRUE)
19950.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19951  am_cv_make_support_nested_variables=yes
19952else
19953  am_cv_make_support_nested_variables=no
19954fi
19955fi
19956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19957printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19958if test $am_cv_make_support_nested_variables = yes; then
19959    AM_V='$(V)'
19960  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19961else
19962  AM_V=$AM_DEFAULT_VERBOSITY
19963  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19964fi
19965AM_BACKSLASH='\'
19966
19967
19968
19969
19970# Check whether --enable-specs was given.
19971if test ${enable_specs+y}
19972then :
19973  enableval=$enable_specs; build_specs=$enableval
19974else $as_nop
19975  build_specs=yes
19976fi
19977
19978
19979 if test x$build_specs = xyes; then
19980  ENABLE_SPECS_TRUE=
19981  ENABLE_SPECS_FALSE='#'
19982else
19983  ENABLE_SPECS_TRUE='#'
19984  ENABLE_SPECS_FALSE=
19985fi
19986
19987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19988printf %s "checking whether to build functional specifications... " >&6; }
19989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19990printf "%s\n" "$build_specs" >&6; }
19991
19992
19993
19994
19995
19996# Check whether --with-xmlto was given.
19997if test ${with_xmlto+y}
19998then :
19999  withval=$with_xmlto; use_xmlto=$withval
20000else $as_nop
20001  use_xmlto=auto
20002fi
20003
20004
20005
20006if test "x$use_xmlto" = x"auto"; then
20007   # Extract the first word of "xmlto", so it can be a program name with args.
20008set dummy xmlto; ac_word=$2
20009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20010printf %s "checking for $ac_word... " >&6; }
20011if test ${ac_cv_path_XMLTO+y}
20012then :
20013  printf %s "(cached) " >&6
20014else $as_nop
20015  case $XMLTO in
20016  [\\/]* | ?:[\\/]*)
20017  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20018  ;;
20019  *)
20020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20021for as_dir in $PATH
20022do
20023  IFS=$as_save_IFS
20024  case $as_dir in #(((
20025    '') as_dir=./ ;;
20026    */) ;;
20027    *) as_dir=$as_dir/ ;;
20028  esac
20029    for ac_exec_ext in '' $ac_executable_extensions; do
20030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20031    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20033    break 2
20034  fi
20035done
20036  done
20037IFS=$as_save_IFS
20038
20039  ;;
20040esac
20041fi
20042XMLTO=$ac_cv_path_XMLTO
20043if test -n "$XMLTO"; then
20044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20045printf "%s\n" "$XMLTO" >&6; }
20046else
20047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048printf "%s\n" "no" >&6; }
20049fi
20050
20051
20052   if test "x$XMLTO" = "x"; then
20053        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20054printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20055	have_xmlto=no
20056   else
20057        have_xmlto=yes
20058   fi
20059elif test "x$use_xmlto" = x"yes" ; then
20060   # Extract the first word of "xmlto", so it can be a program name with args.
20061set dummy xmlto; ac_word=$2
20062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20063printf %s "checking for $ac_word... " >&6; }
20064if test ${ac_cv_path_XMLTO+y}
20065then :
20066  printf %s "(cached) " >&6
20067else $as_nop
20068  case $XMLTO in
20069  [\\/]* | ?:[\\/]*)
20070  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20071  ;;
20072  *)
20073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074for as_dir in $PATH
20075do
20076  IFS=$as_save_IFS
20077  case $as_dir in #(((
20078    '') as_dir=./ ;;
20079    */) ;;
20080    *) as_dir=$as_dir/ ;;
20081  esac
20082    for ac_exec_ext in '' $ac_executable_extensions; do
20083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20084    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20086    break 2
20087  fi
20088done
20089  done
20090IFS=$as_save_IFS
20091
20092  ;;
20093esac
20094fi
20095XMLTO=$ac_cv_path_XMLTO
20096if test -n "$XMLTO"; then
20097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20098printf "%s\n" "$XMLTO" >&6; }
20099else
20100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101printf "%s\n" "no" >&6; }
20102fi
20103
20104
20105   if test "x$XMLTO" = "x"; then
20106        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20107   fi
20108   have_xmlto=yes
20109elif test "x$use_xmlto" = x"no" ; then
20110   if test "x$XMLTO" != "x"; then
20111      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20112printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20113   fi
20114   have_xmlto=no
20115else
20116   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20117fi
20118
20119# Test for a minimum version of xmlto, if provided.
20120if test "$have_xmlto" = yes; then
20121    # scrape the xmlto version
20122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20123printf %s "checking the xmlto version... " >&6; }
20124    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20126printf "%s\n" "$xmlto_version" >&6; }
20127    as_arg_v1=$xmlto_version
20128as_arg_v2=0.0.22
20129awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20130case $? in #(
20131  1) :
20132    if test "x$use_xmlto" = xauto; then
20133            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20134printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20135            have_xmlto=no
20136        else
20137            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20138        fi ;; #(
20139  0) :
20140     ;; #(
20141  2) :
20142     ;; #(
20143  *) :
20144     ;;
20145esac
20146fi
20147
20148# Test for the ability of xmlto to generate a text target
20149#
20150# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20151# following test for empty XML docbook files.
20152# For compatibility reasons use the following empty XML docbook file and if
20153# it fails try it again with a non-empty XML file.
20154have_xmlto_text=no
20155cat > conftest.xml << "EOF"
20156EOF
20157if test "$have_xmlto" = yes
20158then :
20159  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20160then :
20161  have_xmlto_text=yes
20162else $as_nop
20163  # Try it again with a non-empty XML file.
20164              cat > conftest.xml << "EOF"
20165<x></x>
20166EOF
20167              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20168then :
20169  have_xmlto_text=yes
20170else $as_nop
20171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20172printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
20173fi
20174fi
20175fi
20176rm -f conftest.xml
20177 if test $have_xmlto_text = yes; then
20178  HAVE_XMLTO_TEXT_TRUE=
20179  HAVE_XMLTO_TEXT_FALSE='#'
20180else
20181  HAVE_XMLTO_TEXT_TRUE='#'
20182  HAVE_XMLTO_TEXT_FALSE=
20183fi
20184
20185 if test "$have_xmlto" = yes; then
20186  HAVE_XMLTO_TRUE=
20187  HAVE_XMLTO_FALSE='#'
20188else
20189  HAVE_XMLTO_TRUE='#'
20190  HAVE_XMLTO_FALSE=
20191fi
20192
20193
20194
20195
20196
20197
20198# Check whether --with-fop was given.
20199if test ${with_fop+y}
20200then :
20201  withval=$with_fop; use_fop=$withval
20202else $as_nop
20203  use_fop=no
20204fi
20205
20206
20207
20208if test "x$use_fop" = x"auto"; then
20209   # Extract the first word of "fop", so it can be a program name with args.
20210set dummy fop; ac_word=$2
20211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20212printf %s "checking for $ac_word... " >&6; }
20213if test ${ac_cv_path_FOP+y}
20214then :
20215  printf %s "(cached) " >&6
20216else $as_nop
20217  case $FOP in
20218  [\\/]* | ?:[\\/]*)
20219  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20220  ;;
20221  *)
20222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223for as_dir in $PATH
20224do
20225  IFS=$as_save_IFS
20226  case $as_dir in #(((
20227    '') as_dir=./ ;;
20228    */) ;;
20229    *) as_dir=$as_dir/ ;;
20230  esac
20231    for ac_exec_ext in '' $ac_executable_extensions; do
20232  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20233    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20234    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20235    break 2
20236  fi
20237done
20238  done
20239IFS=$as_save_IFS
20240
20241  ;;
20242esac
20243fi
20244FOP=$ac_cv_path_FOP
20245if test -n "$FOP"; then
20246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20247printf "%s\n" "$FOP" >&6; }
20248else
20249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20250printf "%s\n" "no" >&6; }
20251fi
20252
20253
20254   if test "x$FOP" = "x"; then
20255        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20256printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20257	have_fop=no
20258   else
20259        have_fop=yes
20260   fi
20261elif test "x$use_fop" = x"yes" ; then
20262   # Extract the first word of "fop", so it can be a program name with args.
20263set dummy fop; ac_word=$2
20264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20265printf %s "checking for $ac_word... " >&6; }
20266if test ${ac_cv_path_FOP+y}
20267then :
20268  printf %s "(cached) " >&6
20269else $as_nop
20270  case $FOP in
20271  [\\/]* | ?:[\\/]*)
20272  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20273  ;;
20274  *)
20275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276for as_dir in $PATH
20277do
20278  IFS=$as_save_IFS
20279  case $as_dir in #(((
20280    '') as_dir=./ ;;
20281    */) ;;
20282    *) as_dir=$as_dir/ ;;
20283  esac
20284    for ac_exec_ext in '' $ac_executable_extensions; do
20285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20286    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20288    break 2
20289  fi
20290done
20291  done
20292IFS=$as_save_IFS
20293
20294  ;;
20295esac
20296fi
20297FOP=$ac_cv_path_FOP
20298if test -n "$FOP"; then
20299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20300printf "%s\n" "$FOP" >&6; }
20301else
20302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303printf "%s\n" "no" >&6; }
20304fi
20305
20306
20307   if test "x$FOP" = "x"; then
20308        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20309   fi
20310   have_fop=yes
20311elif test "x$use_fop" = x"no" ; then
20312   if test "x$FOP" != "x"; then
20313      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20314printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20315   fi
20316   have_fop=no
20317else
20318   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20319fi
20320
20321# Test for a minimum version of fop, if provided.
20322
20323 if test "$have_fop" = yes; then
20324  HAVE_FOP_TRUE=
20325  HAVE_FOP_FALSE='#'
20326else
20327  HAVE_FOP_TRUE='#'
20328  HAVE_FOP_FALSE=
20329fi
20330
20331
20332
20333
20334# Preserves the interface, should it be implemented later
20335
20336
20337
20338# Check whether --with-xsltproc was given.
20339if test ${with_xsltproc+y}
20340then :
20341  withval=$with_xsltproc; use_xsltproc=$withval
20342else $as_nop
20343  use_xsltproc=auto
20344fi
20345
20346
20347
20348if test "x$use_xsltproc" = x"auto"; then
20349   # Extract the first word of "xsltproc", so it can be a program name with args.
20350set dummy xsltproc; ac_word=$2
20351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20352printf %s "checking for $ac_word... " >&6; }
20353if test ${ac_cv_path_XSLTPROC+y}
20354then :
20355  printf %s "(cached) " >&6
20356else $as_nop
20357  case $XSLTPROC in
20358  [\\/]* | ?:[\\/]*)
20359  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20360  ;;
20361  *)
20362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20363for as_dir in $PATH
20364do
20365  IFS=$as_save_IFS
20366  case $as_dir in #(((
20367    '') as_dir=./ ;;
20368    */) ;;
20369    *) as_dir=$as_dir/ ;;
20370  esac
20371    for ac_exec_ext in '' $ac_executable_extensions; do
20372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20373    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20374    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20375    break 2
20376  fi
20377done
20378  done
20379IFS=$as_save_IFS
20380
20381  ;;
20382esac
20383fi
20384XSLTPROC=$ac_cv_path_XSLTPROC
20385if test -n "$XSLTPROC"; then
20386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20387printf "%s\n" "$XSLTPROC" >&6; }
20388else
20389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390printf "%s\n" "no" >&6; }
20391fi
20392
20393
20394   if test "x$XSLTPROC" = "x"; then
20395        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20396printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20397	have_xsltproc=no
20398   else
20399        have_xsltproc=yes
20400   fi
20401elif test "x$use_xsltproc" = x"yes" ; then
20402   # Extract the first word of "xsltproc", so it can be a program name with args.
20403set dummy xsltproc; ac_word=$2
20404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20405printf %s "checking for $ac_word... " >&6; }
20406if test ${ac_cv_path_XSLTPROC+y}
20407then :
20408  printf %s "(cached) " >&6
20409else $as_nop
20410  case $XSLTPROC in
20411  [\\/]* | ?:[\\/]*)
20412  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20413  ;;
20414  *)
20415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20416for as_dir in $PATH
20417do
20418  IFS=$as_save_IFS
20419  case $as_dir in #(((
20420    '') as_dir=./ ;;
20421    */) ;;
20422    *) as_dir=$as_dir/ ;;
20423  esac
20424    for ac_exec_ext in '' $ac_executable_extensions; do
20425  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20426    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20428    break 2
20429  fi
20430done
20431  done
20432IFS=$as_save_IFS
20433
20434  ;;
20435esac
20436fi
20437XSLTPROC=$ac_cv_path_XSLTPROC
20438if test -n "$XSLTPROC"; then
20439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20440printf "%s\n" "$XSLTPROC" >&6; }
20441else
20442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20443printf "%s\n" "no" >&6; }
20444fi
20445
20446
20447   if test "x$XSLTPROC" = "x"; then
20448        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20449   fi
20450   have_xsltproc=yes
20451elif test "x$use_xsltproc" = x"no" ; then
20452   if test "x$XSLTPROC" != "x"; then
20453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20454printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20455   fi
20456   have_xsltproc=no
20457else
20458   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20459fi
20460
20461 if test "$have_xsltproc" = yes; then
20462  HAVE_XSLTPROC_TRUE=
20463  HAVE_XSLTPROC_FALSE='#'
20464else
20465  HAVE_XSLTPROC_TRUE='#'
20466  HAVE_XSLTPROC_FALSE=
20467fi
20468
20469
20470
20471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
20472printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
20473XORG_SGML_PATH=
20474if test -n "$PKG_CONFIG" && \
20475    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
20476  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
20477  ac_status=$?
20478  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20479  test $ac_status = 0; }; then
20480  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20481else
20482  :
20483
20484fi
20485
20486# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20487# the path and the name of the doc stylesheet
20488if test "x$XORG_SGML_PATH" != "x" ; then
20489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20490printf "%s\n" "$XORG_SGML_PATH" >&6; }
20491   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20492   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20493else
20494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20495printf "%s\n" "no" >&6; }
20496fi
20497
20498
20499
20500
20501 if test "x$XSL_STYLESHEET" != "x"; then
20502  HAVE_STYLESHEETS_TRUE=
20503  HAVE_STYLESHEETS_FALSE='#'
20504else
20505  HAVE_STYLESHEETS_TRUE='#'
20506  HAVE_STYLESHEETS_FALSE=
20507fi
20508
20509
20510ac_ext=c
20511ac_cpp='$CPP $CPPFLAGS'
20512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20516printf %s "checking how to run the C preprocessor... " >&6; }
20517# On Suns, sometimes $CPP names a directory.
20518if test -n "$CPP" && test -d "$CPP"; then
20519  CPP=
20520fi
20521if test -z "$CPP"; then
20522  if test ${ac_cv_prog_CPP+y}
20523then :
20524  printf %s "(cached) " >&6
20525else $as_nop
20526      # Double quotes because $CC needs to be expanded
20527    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20528    do
20529      ac_preproc_ok=false
20530for ac_c_preproc_warn_flag in '' yes
20531do
20532  # Use a header file that comes with gcc, so configuring glibc
20533  # with a fresh cross-compiler works.
20534  # On the NeXT, cc -E runs the code through the compiler's parser,
20535  # not just through cpp. "Syntax error" is here to catch this case.
20536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537/* end confdefs.h.  */
20538#include <limits.h>
20539		     Syntax error
20540_ACEOF
20541if ac_fn_c_try_cpp "$LINENO"
20542then :
20543
20544else $as_nop
20545  # Broken: fails on valid input.
20546continue
20547fi
20548rm -f conftest.err conftest.i conftest.$ac_ext
20549
20550  # OK, works on sane cases.  Now check whether nonexistent headers
20551  # can be detected and how.
20552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553/* end confdefs.h.  */
20554#include <ac_nonexistent.h>
20555_ACEOF
20556if ac_fn_c_try_cpp "$LINENO"
20557then :
20558  # Broken: success on invalid input.
20559continue
20560else $as_nop
20561  # Passes both tests.
20562ac_preproc_ok=:
20563break
20564fi
20565rm -f conftest.err conftest.i conftest.$ac_ext
20566
20567done
20568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20569rm -f conftest.i conftest.err conftest.$ac_ext
20570if $ac_preproc_ok
20571then :
20572  break
20573fi
20574
20575    done
20576    ac_cv_prog_CPP=$CPP
20577
20578fi
20579  CPP=$ac_cv_prog_CPP
20580else
20581  ac_cv_prog_CPP=$CPP
20582fi
20583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20584printf "%s\n" "$CPP" >&6; }
20585ac_preproc_ok=false
20586for ac_c_preproc_warn_flag in '' yes
20587do
20588  # Use a header file that comes with gcc, so configuring glibc
20589  # with a fresh cross-compiler works.
20590  # On the NeXT, cc -E runs the code through the compiler's parser,
20591  # not just through cpp. "Syntax error" is here to catch this case.
20592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593/* end confdefs.h.  */
20594#include <limits.h>
20595		     Syntax error
20596_ACEOF
20597if ac_fn_c_try_cpp "$LINENO"
20598then :
20599
20600else $as_nop
20601  # Broken: fails on valid input.
20602continue
20603fi
20604rm -f conftest.err conftest.i conftest.$ac_ext
20605
20606  # OK, works on sane cases.  Now check whether nonexistent headers
20607  # can be detected and how.
20608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20609/* end confdefs.h.  */
20610#include <ac_nonexistent.h>
20611_ACEOF
20612if ac_fn_c_try_cpp "$LINENO"
20613then :
20614  # Broken: success on invalid input.
20615continue
20616else $as_nop
20617  # Passes both tests.
20618ac_preproc_ok=:
20619break
20620fi
20621rm -f conftest.err conftest.i conftest.$ac_ext
20622
20623done
20624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20625rm -f conftest.i conftest.err conftest.$ac_ext
20626if $ac_preproc_ok
20627then :
20628
20629else $as_nop
20630  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20633See \`config.log' for more details" "$LINENO" 5; }
20634fi
20635
20636ac_ext=c
20637ac_cpp='$CPP $CPPFLAGS'
20638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640ac_compiler_gnu=$ac_cv_c_compiler_gnu
20641
20642
20643
20644if test -n "$ac_tool_prefix"; then
20645  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20646set dummy ${ac_tool_prefix}cpp; ac_word=$2
20647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20648printf %s "checking for $ac_word... " >&6; }
20649if test ${ac_cv_path_RAWCPP+y}
20650then :
20651  printf %s "(cached) " >&6
20652else $as_nop
20653  case $RAWCPP in
20654  [\\/]* | ?:[\\/]*)
20655  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20656  ;;
20657  *)
20658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20659as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20660for as_dir in $as_dummy
20661do
20662  IFS=$as_save_IFS
20663  case $as_dir in #(((
20664    '') as_dir=./ ;;
20665    */) ;;
20666    *) as_dir=$as_dir/ ;;
20667  esac
20668    for ac_exec_ext in '' $ac_executable_extensions; do
20669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20670    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20672    break 2
20673  fi
20674done
20675  done
20676IFS=$as_save_IFS
20677
20678  ;;
20679esac
20680fi
20681RAWCPP=$ac_cv_path_RAWCPP
20682if test -n "$RAWCPP"; then
20683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20684printf "%s\n" "$RAWCPP" >&6; }
20685else
20686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20687printf "%s\n" "no" >&6; }
20688fi
20689
20690
20691fi
20692if test -z "$ac_cv_path_RAWCPP"; then
20693  ac_pt_RAWCPP=$RAWCPP
20694  # Extract the first word of "cpp", so it can be a program name with args.
20695set dummy cpp; ac_word=$2
20696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20697printf %s "checking for $ac_word... " >&6; }
20698if test ${ac_cv_path_ac_pt_RAWCPP+y}
20699then :
20700  printf %s "(cached) " >&6
20701else $as_nop
20702  case $ac_pt_RAWCPP in
20703  [\\/]* | ?:[\\/]*)
20704  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20705  ;;
20706  *)
20707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20709for as_dir in $as_dummy
20710do
20711  IFS=$as_save_IFS
20712  case $as_dir in #(((
20713    '') as_dir=./ ;;
20714    */) ;;
20715    *) as_dir=$as_dir/ ;;
20716  esac
20717    for ac_exec_ext in '' $ac_executable_extensions; do
20718  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20719    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20720    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20721    break 2
20722  fi
20723done
20724  done
20725IFS=$as_save_IFS
20726
20727  ;;
20728esac
20729fi
20730ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20731if test -n "$ac_pt_RAWCPP"; then
20732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20733printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20734else
20735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20736printf "%s\n" "no" >&6; }
20737fi
20738
20739  if test "x$ac_pt_RAWCPP" = x; then
20740    RAWCPP="${CPP}"
20741  else
20742    case $cross_compiling:$ac_tool_warned in
20743yes:)
20744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20745printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20746ac_tool_warned=yes ;;
20747esac
20748    RAWCPP=$ac_pt_RAWCPP
20749  fi
20750else
20751  RAWCPP="$ac_cv_path_RAWCPP"
20752fi
20753
20754
20755# Check for flag to avoid builtin definitions - assumes unix is predefined,
20756# which is not the best choice for supporting other OS'es, but covers most
20757# of the ones we need for now.
20758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20759printf %s "checking if $RAWCPP requires -undef... " >&6; }
20760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761/* end confdefs.h.  */
20762Does cpp redefine unix ?
20763_ACEOF
20764if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20766printf "%s\n" "no" >&6; }
20767else
20768	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20769		RAWCPPFLAGS=-undef
20770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20771printf "%s\n" "yes" >&6; }
20772	# under Cygwin unix is still defined even with -undef
20773	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20774		RAWCPPFLAGS="-undef -ansi"
20775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20776printf "%s\n" "yes, with -ansi" >&6; }
20777	else
20778		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20779	fi
20780fi
20781rm -f conftest.$ac_ext
20782
20783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20784printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786/* end confdefs.h.  */
20787Does cpp preserve   "whitespace"?
20788_ACEOF
20789if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791printf "%s\n" "no" >&6; }
20792else
20793	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20794		TRADITIONALCPPFLAGS="-traditional"
20795		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797printf "%s\n" "yes" >&6; }
20798	else
20799		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20800	fi
20801fi
20802rm -f conftest.$ac_ext
20803
20804
20805
20806
20807
20808# Preserves the interface, should it be implemented later
20809
20810
20811
20812# Check whether --with-perl was given.
20813if test ${with_perl+y}
20814then :
20815  withval=$with_perl; use_perl=$withval
20816else $as_nop
20817  use_perl=auto
20818fi
20819
20820
20821
20822if test "x$use_perl" = x"auto"; then
20823   # Extract the first word of "perl", so it can be a program name with args.
20824set dummy perl; ac_word=$2
20825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20826printf %s "checking for $ac_word... " >&6; }
20827if test ${ac_cv_path_PERL+y}
20828then :
20829  printf %s "(cached) " >&6
20830else $as_nop
20831  case $PERL in
20832  [\\/]* | ?:[\\/]*)
20833  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20834  ;;
20835  *)
20836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837for as_dir in $PATH
20838do
20839  IFS=$as_save_IFS
20840  case $as_dir in #(((
20841    '') as_dir=./ ;;
20842    */) ;;
20843    *) as_dir=$as_dir/ ;;
20844  esac
20845    for ac_exec_ext in '' $ac_executable_extensions; do
20846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20847    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20849    break 2
20850  fi
20851done
20852  done
20853IFS=$as_save_IFS
20854
20855  ;;
20856esac
20857fi
20858PERL=$ac_cv_path_PERL
20859if test -n "$PERL"; then
20860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20861printf "%s\n" "$PERL" >&6; }
20862else
20863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864printf "%s\n" "no" >&6; }
20865fi
20866
20867
20868   if test "x$PERL" = "x"; then
20869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20870printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20871	have_perl=no
20872   else
20873        have_perl=yes
20874   fi
20875elif test "x$use_perl" = x"yes" ; then
20876   # Extract the first word of "perl", so it can be a program name with args.
20877set dummy perl; ac_word=$2
20878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20879printf %s "checking for $ac_word... " >&6; }
20880if test ${ac_cv_path_PERL+y}
20881then :
20882  printf %s "(cached) " >&6
20883else $as_nop
20884  case $PERL in
20885  [\\/]* | ?:[\\/]*)
20886  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20887  ;;
20888  *)
20889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20890for as_dir in $PATH
20891do
20892  IFS=$as_save_IFS
20893  case $as_dir in #(((
20894    '') as_dir=./ ;;
20895    */) ;;
20896    *) as_dir=$as_dir/ ;;
20897  esac
20898    for ac_exec_ext in '' $ac_executable_extensions; do
20899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20900    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20902    break 2
20903  fi
20904done
20905  done
20906IFS=$as_save_IFS
20907
20908  ;;
20909esac
20910fi
20911PERL=$ac_cv_path_PERL
20912if test -n "$PERL"; then
20913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20914printf "%s\n" "$PERL" >&6; }
20915else
20916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20917printf "%s\n" "no" >&6; }
20918fi
20919
20920
20921   if test "x$PERL" = "x"; then
20922        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20923   fi
20924   have_perl=yes
20925elif test "x$use_perl" = x"no" ; then
20926   if test "x$PERL" != "x"; then
20927      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20928printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20929   fi
20930   have_perl=no
20931else
20932   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20933fi
20934
20935 if test "$have_perl" = yes; then
20936  HAVE_PERL_TRUE=
20937  HAVE_PERL_FALSE='#'
20938else
20939  HAVE_PERL_TRUE='#'
20940  HAVE_PERL_FALSE=
20941fi
20942
20943
20944
20945# Required when PKG_CHECK_MODULES called within an if statement
20946
20947
20948
20949
20950
20951
20952
20953if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20954	if test -n "$ac_tool_prefix"; then
20955  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20956set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20958printf %s "checking for $ac_word... " >&6; }
20959if test ${ac_cv_path_PKG_CONFIG+y}
20960then :
20961  printf %s "(cached) " >&6
20962else $as_nop
20963  case $PKG_CONFIG in
20964  [\\/]* | ?:[\\/]*)
20965  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20966  ;;
20967  *)
20968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969for as_dir in $PATH
20970do
20971  IFS=$as_save_IFS
20972  case $as_dir in #(((
20973    '') as_dir=./ ;;
20974    */) ;;
20975    *) as_dir=$as_dir/ ;;
20976  esac
20977    for ac_exec_ext in '' $ac_executable_extensions; do
20978  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20979    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20980    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20981    break 2
20982  fi
20983done
20984  done
20985IFS=$as_save_IFS
20986
20987  ;;
20988esac
20989fi
20990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20991if test -n "$PKG_CONFIG"; then
20992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20993printf "%s\n" "$PKG_CONFIG" >&6; }
20994else
20995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20996printf "%s\n" "no" >&6; }
20997fi
20998
20999
21000fi
21001if test -z "$ac_cv_path_PKG_CONFIG"; then
21002  ac_pt_PKG_CONFIG=$PKG_CONFIG
21003  # Extract the first word of "pkg-config", so it can be a program name with args.
21004set dummy pkg-config; ac_word=$2
21005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21006printf %s "checking for $ac_word... " >&6; }
21007if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21008then :
21009  printf %s "(cached) " >&6
21010else $as_nop
21011  case $ac_pt_PKG_CONFIG in
21012  [\\/]* | ?:[\\/]*)
21013  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21014  ;;
21015  *)
21016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21017for as_dir in $PATH
21018do
21019  IFS=$as_save_IFS
21020  case $as_dir in #(((
21021    '') as_dir=./ ;;
21022    */) ;;
21023    *) as_dir=$as_dir/ ;;
21024  esac
21025    for ac_exec_ext in '' $ac_executable_extensions; do
21026  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21027    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21029    break 2
21030  fi
21031done
21032  done
21033IFS=$as_save_IFS
21034
21035  ;;
21036esac
21037fi
21038ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21039if test -n "$ac_pt_PKG_CONFIG"; then
21040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21041printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21042else
21043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044printf "%s\n" "no" >&6; }
21045fi
21046
21047  if test "x$ac_pt_PKG_CONFIG" = x; then
21048    PKG_CONFIG=""
21049  else
21050    case $cross_compiling:$ac_tool_warned in
21051yes:)
21052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21054ac_tool_warned=yes ;;
21055esac
21056    PKG_CONFIG=$ac_pt_PKG_CONFIG
21057  fi
21058else
21059  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21060fi
21061
21062fi
21063if test -n "$PKG_CONFIG"; then
21064	_pkg_min_version=0.9.0
21065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21066printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21067	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21069printf "%s\n" "yes" >&6; }
21070	else
21071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072printf "%s\n" "no" >&6; }
21073		PKG_CONFIG=""
21074	fi
21075fi
21076
21077if test x"$CC_FOR_BUILD" = x; then
21078	if test x"$cross_compiling" = xyes; then
21079	       for ac_prog in gcc cc
21080do
21081  # Extract the first word of "$ac_prog", so it can be a program name with args.
21082set dummy $ac_prog; ac_word=$2
21083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21084printf %s "checking for $ac_word... " >&6; }
21085if test ${ac_cv_prog_CC_FOR_BUILD+y}
21086then :
21087  printf %s "(cached) " >&6
21088else $as_nop
21089  if test -n "$CC_FOR_BUILD"; then
21090  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
21091else
21092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21093for as_dir in $PATH
21094do
21095  IFS=$as_save_IFS
21096  case $as_dir in #(((
21097    '') as_dir=./ ;;
21098    */) ;;
21099    *) as_dir=$as_dir/ ;;
21100  esac
21101    for ac_exec_ext in '' $ac_executable_extensions; do
21102  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21103    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
21104    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21105    break 2
21106  fi
21107done
21108  done
21109IFS=$as_save_IFS
21110
21111fi
21112fi
21113CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
21114if test -n "$CC_FOR_BUILD"; then
21115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
21116printf "%s\n" "$CC_FOR_BUILD" >&6; }
21117else
21118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119printf "%s\n" "no" >&6; }
21120fi
21121
21122
21123  test -n "$CC_FOR_BUILD" && break
21124done
21125
21126	else
21127	       CC_FOR_BUILD="$CC"
21128	fi
21129fi
21130
21131
21132if test x"$CPPFLAGS_FOR_BUILD" = x; then
21133	if test ! x"$cross_compiling" = xyes; then
21134		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
21135	fi
21136fi
21137
21138
21139if test x"$CFLAGS_FOR_BUILD" = x; then
21140	if test ! x"$cross_compiling" = xyes; then
21141		CFLAGS_FOR_BUILD=${CFLAGS}
21142	fi
21143fi
21144
21145
21146if test x"$LDFLAGS_FOR_BUILD" = x; then
21147	if test ! x"$cross_compiling" = xyes; then
21148		LDFLAGS_FOR_BUILD=${LDFLAGS}
21149	fi
21150fi
21151
21152
21153if test x"$EXEEXT_FOR_BUILD" = x; then
21154	if test x"$cross_compiling" = xno; then
21155		EXEEXT_FOR_BUILD=${EXEEXT}
21156	fi
21157	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
21158fi
21159
21160
21161# Checks for pkg-config packages
21162
21163# Always required
21164X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
21165X11_EXTRA_DEPS="xcb >= 1.11.1"
21166
21167
21168
21169
21170
21171
21172
21173
21174if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21175	if test -n "$ac_tool_prefix"; then
21176  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21177set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21179printf %s "checking for $ac_word... " >&6; }
21180if test ${ac_cv_path_PKG_CONFIG+y}
21181then :
21182  printf %s "(cached) " >&6
21183else $as_nop
21184  case $PKG_CONFIG in
21185  [\\/]* | ?:[\\/]*)
21186  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21187  ;;
21188  *)
21189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21190for as_dir in $PATH
21191do
21192  IFS=$as_save_IFS
21193  case $as_dir in #(((
21194    '') as_dir=./ ;;
21195    */) ;;
21196    *) as_dir=$as_dir/ ;;
21197  esac
21198    for ac_exec_ext in '' $ac_executable_extensions; do
21199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21200    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21202    break 2
21203  fi
21204done
21205  done
21206IFS=$as_save_IFS
21207
21208  ;;
21209esac
21210fi
21211PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21212if test -n "$PKG_CONFIG"; then
21213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21214printf "%s\n" "$PKG_CONFIG" >&6; }
21215else
21216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217printf "%s\n" "no" >&6; }
21218fi
21219
21220
21221fi
21222if test -z "$ac_cv_path_PKG_CONFIG"; then
21223  ac_pt_PKG_CONFIG=$PKG_CONFIG
21224  # Extract the first word of "pkg-config", so it can be a program name with args.
21225set dummy pkg-config; ac_word=$2
21226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21227printf %s "checking for $ac_word... " >&6; }
21228if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21229then :
21230  printf %s "(cached) " >&6
21231else $as_nop
21232  case $ac_pt_PKG_CONFIG in
21233  [\\/]* | ?:[\\/]*)
21234  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21235  ;;
21236  *)
21237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21238for as_dir in $PATH
21239do
21240  IFS=$as_save_IFS
21241  case $as_dir in #(((
21242    '') as_dir=./ ;;
21243    */) ;;
21244    *) as_dir=$as_dir/ ;;
21245  esac
21246    for ac_exec_ext in '' $ac_executable_extensions; do
21247  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21248    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21249    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21250    break 2
21251  fi
21252done
21253  done
21254IFS=$as_save_IFS
21255
21256  ;;
21257esac
21258fi
21259ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21260if test -n "$ac_pt_PKG_CONFIG"; then
21261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21262printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21263else
21264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21265printf "%s\n" "no" >&6; }
21266fi
21267
21268  if test "x$ac_pt_PKG_CONFIG" = x; then
21269    PKG_CONFIG=""
21270  else
21271    case $cross_compiling:$ac_tool_warned in
21272yes:)
21273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21274printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21275ac_tool_warned=yes ;;
21276esac
21277    PKG_CONFIG=$ac_pt_PKG_CONFIG
21278  fi
21279else
21280  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21281fi
21282
21283fi
21284if test -n "$PKG_CONFIG"; then
21285	_pkg_min_version=0.9.0
21286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21287printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21288	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21290printf "%s\n" "yes" >&6; }
21291	else
21292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21293printf "%s\n" "no" >&6; }
21294		PKG_CONFIG=""
21295	fi
21296fi
21297
21298
21299
21300# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
21301# was not expanded, since libX11 with no transport types is rather useless.
21302#
21303# If you're seeing an error here, be sure you installed the lib/xtrans module
21304# first and if it's not in the default location, that you set the ACLOCAL
21305# environment variable to find it, such as:
21306#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
21307
21308
21309# Transport selection macro from xtrans.m4
21310
21311
21312 case $host_os in
21313	mingw*)	unixdef="no"   ;;
21314	*)	unixdef="yes"  ;;
21315 esac
21316 # Check whether --enable-unix-transport was given.
21317if test ${enable_unix_transport+y}
21318then :
21319  enableval=$enable_unix_transport; UNIXCONN=$enableval
21320else $as_nop
21321  UNIXCONN=$unixdef
21322fi
21323
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21325printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21326 if test "$UNIXCONN" = "yes"; then
21327
21328printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21329
21330 fi
21331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21332printf "%s\n" "$UNIXCONN" >&6; }
21333 # Check whether --enable-tcp-transport was given.
21334if test ${enable_tcp_transport+y}
21335then :
21336  enableval=$enable_tcp_transport; TCPCONN=$enableval
21337else $as_nop
21338  TCPCONN=yes
21339fi
21340
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21342printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21344printf "%s\n" "$TCPCONN" >&6; }
21345 if test "$TCPCONN" = "yes"; then
21346
21347printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21348
21349
21350 # SVR4 hides these in libraries other than libc
21351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21352printf %s "checking for library containing socket... " >&6; }
21353if test ${ac_cv_search_socket+y}
21354then :
21355  printf %s "(cached) " >&6
21356else $as_nop
21357  ac_func_search_save_LIBS=$LIBS
21358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359/* end confdefs.h.  */
21360
21361/* Override any GCC internal prototype to avoid an error.
21362   Use char because int might match the return type of a GCC
21363   builtin and then its argument prototype would still apply.  */
21364char socket ();
21365int
21366main (void)
21367{
21368return socket ();
21369  ;
21370  return 0;
21371}
21372_ACEOF
21373for ac_lib in '' socket
21374do
21375  if test -z "$ac_lib"; then
21376    ac_res="none required"
21377  else
21378    ac_res=-l$ac_lib
21379    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21380  fi
21381  if ac_fn_c_try_link "$LINENO"
21382then :
21383  ac_cv_search_socket=$ac_res
21384fi
21385rm -f core conftest.err conftest.$ac_objext conftest.beam \
21386    conftest$ac_exeext
21387  if test ${ac_cv_search_socket+y}
21388then :
21389  break
21390fi
21391done
21392if test ${ac_cv_search_socket+y}
21393then :
21394
21395else $as_nop
21396  ac_cv_search_socket=no
21397fi
21398rm conftest.$ac_ext
21399LIBS=$ac_func_search_save_LIBS
21400fi
21401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21402printf "%s\n" "$ac_cv_search_socket" >&6; }
21403ac_res=$ac_cv_search_socket
21404if test "$ac_res" != no
21405then :
21406  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21407
21408fi
21409
21410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21411printf %s "checking for library containing gethostbyname... " >&6; }
21412if test ${ac_cv_search_gethostbyname+y}
21413then :
21414  printf %s "(cached) " >&6
21415else $as_nop
21416  ac_func_search_save_LIBS=$LIBS
21417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418/* end confdefs.h.  */
21419
21420/* Override any GCC internal prototype to avoid an error.
21421   Use char because int might match the return type of a GCC
21422   builtin and then its argument prototype would still apply.  */
21423char gethostbyname ();
21424int
21425main (void)
21426{
21427return gethostbyname ();
21428  ;
21429  return 0;
21430}
21431_ACEOF
21432for ac_lib in '' nsl
21433do
21434  if test -z "$ac_lib"; then
21435    ac_res="none required"
21436  else
21437    ac_res=-l$ac_lib
21438    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21439  fi
21440  if ac_fn_c_try_link "$LINENO"
21441then :
21442  ac_cv_search_gethostbyname=$ac_res
21443fi
21444rm -f core conftest.err conftest.$ac_objext conftest.beam \
21445    conftest$ac_exeext
21446  if test ${ac_cv_search_gethostbyname+y}
21447then :
21448  break
21449fi
21450done
21451if test ${ac_cv_search_gethostbyname+y}
21452then :
21453
21454else $as_nop
21455  ac_cv_search_gethostbyname=no
21456fi
21457rm conftest.$ac_ext
21458LIBS=$ac_func_search_save_LIBS
21459fi
21460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21461printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21462ac_res=$ac_cv_search_gethostbyname
21463if test "$ac_res" != no
21464then :
21465  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21466
21467fi
21468
21469 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21471printf %s "checking for main in -lws2_32... " >&6; }
21472if test ${ac_cv_lib_ws2_32_main+y}
21473then :
21474  printf %s "(cached) " >&6
21475else $as_nop
21476  ac_check_lib_save_LIBS=$LIBS
21477LIBS="-lws2_32  $LIBS"
21478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479/* end confdefs.h.  */
21480
21481
21482int
21483main (void)
21484{
21485return main ();
21486  ;
21487  return 0;
21488}
21489_ACEOF
21490if ac_fn_c_try_link "$LINENO"
21491then :
21492  ac_cv_lib_ws2_32_main=yes
21493else $as_nop
21494  ac_cv_lib_ws2_32_main=no
21495fi
21496rm -f core conftest.err conftest.$ac_objext conftest.beam \
21497    conftest$ac_exeext conftest.$ac_ext
21498LIBS=$ac_check_lib_save_LIBS
21499fi
21500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21501printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21502if test "x$ac_cv_lib_ws2_32_main" = xyes
21503then :
21504  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21505
21506  LIBS="-lws2_32 $LIBS"
21507
21508fi
21509
21510 fi
21511
21512 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21513 # Check whether --enable-ipv6 was given.
21514if test ${enable_ipv6+y}
21515then :
21516  enableval=$enable_ipv6; IPV6CONN=$enableval
21517else $as_nop
21518  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21519if test "x$ac_cv_func_getaddrinfo" = xyes
21520then :
21521  IPV6CONN=yes
21522else $as_nop
21523  IPV6CONN=no
21524fi
21525
21526fi
21527
21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21529printf %s "checking if IPv6 support should be built... " >&6; }
21530 if test "$IPV6CONN" = "yes"; then
21531
21532printf "%s\n" "#define IPv6 1" >>confdefs.h
21533
21534 fi
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21536printf "%s\n" "$IPV6CONN" >&6; }
21537
21538 # 4.3BSD-Reno added a new member to struct sockaddr_in
21539 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21540#include <sys/types.h>
21541#include <sys/socket.h>
21542#include <netinet/in.h>
21543
21544"
21545if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21546then :
21547
21548printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21549
21550fi
21551
21552
21553 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21554 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21555$ac_includes_default
21556#include <sys/socket.h>
21557"
21558if test "x$ac_cv_type_socklen_t" = xyes
21559then :
21560
21561printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21562
21563
21564fi
21565
21566
21567 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21568 # _XOPEN_SOURCE to get it (such as on Solaris)
21569 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21570$ac_includes_default
21571#include <sys/socket.h>
21572
21573"
21574if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21575then :
21576
21577fi
21578
21579 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21580 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21581     unset ac_cv_member_struct_msghdr_msg_control
21582     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21583printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21584     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21585#define _XOPEN_SOURCE 600
21586$ac_includes_default
21587#include <sys/socket.h>
21588
21589"
21590if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21591then :
21592
21593printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21594
21595
21596fi
21597
21598 fi
21599 # If that didn't work, fall back to XPG5/UNIX98 with C89
21600 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21601     unset ac_cv_member_struct_msghdr_msg_control
21602     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21603printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21604     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21605#define _XOPEN_SOURCE 500
21606$ac_includes_default
21607#include <sys/socket.h>
21608
21609"
21610if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21611then :
21612
21613printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21614
21615
21616fi
21617
21618 fi
21619
21620
21621
21622 fi
21623 case $host_os in
21624	solaris*)		localdef="yes" ;;
21625	*)			localdef="no"  ;;
21626 esac
21627 # Check whether --enable-local-transport was given.
21628if test ${enable_local_transport+y}
21629then :
21630  enableval=$enable_local_transport; LOCALCONN=$enableval
21631else $as_nop
21632  LOCALCONN=$localdef
21633fi
21634
21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21636printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21638printf "%s\n" "$LOCALCONN" >&6; }
21639 if test "$LOCALCONN" = "yes"; then
21640
21641printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21642
21643 fi
21644
21645 # Other functions Xtrans may need
21646 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21647if test "x$ac_cv_func_strcasecmp" = xyes
21648then :
21649  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21650
21651fi
21652ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21653if test "x$ac_cv_func_strlcpy" = xyes
21654then :
21655  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21656
21657fi
21658
21659
21660
21661
21662# Check for dlopen
21663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
21664printf %s "checking if run-time linking is supported... " >&6; }
21665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21666printf %s "checking for library containing dlopen... " >&6; }
21667if test ${ac_cv_search_dlopen+y}
21668then :
21669  printf %s "(cached) " >&6
21670else $as_nop
21671  ac_func_search_save_LIBS=$LIBS
21672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673/* end confdefs.h.  */
21674
21675/* Override any GCC internal prototype to avoid an error.
21676   Use char because int might match the return type of a GCC
21677   builtin and then its argument prototype would still apply.  */
21678char dlopen ();
21679int
21680main (void)
21681{
21682return dlopen ();
21683  ;
21684  return 0;
21685}
21686_ACEOF
21687for ac_lib in '' dl svld
21688do
21689  if test -z "$ac_lib"; then
21690    ac_res="none required"
21691  else
21692    ac_res=-l$ac_lib
21693    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21694  fi
21695  if ac_fn_c_try_link "$LINENO"
21696then :
21697  ac_cv_search_dlopen=$ac_res
21698fi
21699rm -f core conftest.err conftest.$ac_objext conftest.beam \
21700    conftest$ac_exeext
21701  if test ${ac_cv_search_dlopen+y}
21702then :
21703  break
21704fi
21705done
21706if test ${ac_cv_search_dlopen+y}
21707then :
21708
21709else $as_nop
21710  ac_cv_search_dlopen=no
21711fi
21712rm conftest.$ac_ext
21713LIBS=$ac_func_search_save_LIBS
21714fi
21715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21716printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21717ac_res=$ac_cv_search_dlopen
21718if test "$ac_res" != no
21719then :
21720  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21721
21722fi
21723
21724if test "x$ac_cv_search_dlopen" = xno; then
21725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
21726printf %s "checking for library containing shl_load... " >&6; }
21727if test ${ac_cv_search_shl_load+y}
21728then :
21729  printf %s "(cached) " >&6
21730else $as_nop
21731  ac_func_search_save_LIBS=$LIBS
21732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733/* end confdefs.h.  */
21734
21735/* Override any GCC internal prototype to avoid an error.
21736   Use char because int might match the return type of a GCC
21737   builtin and then its argument prototype would still apply.  */
21738char shl_load ();
21739int
21740main (void)
21741{
21742return shl_load ();
21743  ;
21744  return 0;
21745}
21746_ACEOF
21747for ac_lib in '' dld
21748do
21749  if test -z "$ac_lib"; then
21750    ac_res="none required"
21751  else
21752    ac_res=-l$ac_lib
21753    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21754  fi
21755  if ac_fn_c_try_link "$LINENO"
21756then :
21757  ac_cv_search_shl_load=$ac_res
21758fi
21759rm -f core conftest.err conftest.$ac_objext conftest.beam \
21760    conftest$ac_exeext
21761  if test ${ac_cv_search_shl_load+y}
21762then :
21763  break
21764fi
21765done
21766if test ${ac_cv_search_shl_load+y}
21767then :
21768
21769else $as_nop
21770  ac_cv_search_shl_load=no
21771fi
21772rm conftest.$ac_ext
21773LIBS=$ac_func_search_save_LIBS
21774fi
21775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
21776printf "%s\n" "$ac_cv_search_shl_load" >&6; }
21777ac_res=$ac_cv_search_shl_load
21778if test "$ac_res" != no
21779then :
21780  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21781
21782fi
21783
21784	if test "x$ac_cv_search_shl_load" != xno; then
21785
21786printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
21787
21788		ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21789if test "x$ac_cv_header_dl_h" = xyes
21790then :
21791  printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21792
21793fi
21794
21795	fi
21796else
21797
21798printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
21799
21800	ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21801if test "x$ac_cv_header_dlfcn_h" = xyes
21802then :
21803  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
21804
21805fi
21806
21807fi
21808if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
21809	HAVE_LOADABLE_MODULES=yes
21810else
21811	HAVE_LOADABLE_MODULES=no
21812fi
21813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
21814printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
21815
21816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
21817printf %s "checking if loadable i18n module support should be enabled... " >&6; }
21818# Check whether --enable-loadable-i18n was given.
21819if test ${enable_loadable_i18n+y}
21820then :
21821  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
21822else $as_nop
21823  XLIB_LOADABLE_I18N="no"
21824fi
21825
21826if test x$XLIB_LOADABLE_I18N = xyes; then
21827	if test x$HAVE_LOADABLE_MODULES = xno; then
21828		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
21829	fi
21830
21831printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
21832
21833	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
21834
21835fi
21836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
21837printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
21838
21839 if test x$XLIB_LOADABLE_I18N = xyes; then
21840  XLIB_LOADABLE_I18N_TRUE=
21841  XLIB_LOADABLE_I18N_FALSE='#'
21842else
21843  XLIB_LOADABLE_I18N_TRUE='#'
21844  XLIB_LOADABLE_I18N_FALSE=
21845fi
21846
21847
21848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
21849printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
21850# Check whether --enable-loadable-xcursor was given.
21851if test ${enable_loadable_xcursor+y}
21852then :
21853  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
21854else $as_nop
21855  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
21856fi
21857
21858if test x$XLIB_LOADABLE_XCURSOR = xyes; then
21859
21860printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
21861
21862fi
21863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
21864printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
21865
21866# Check whether --enable-thread-safety-constructor was given.
21867if test ${enable_thread_safety_constructor+y}
21868then :
21869  enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
21870else $as_nop
21871  USE_THREAD_SAFETY_CONSTRUCTOR="yes"
21872fi
21873
21874if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
21875
21876printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
21877
21878fi
21879
21880# Checks for header files.
21881ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
21882if test "x$ac_cv_header_sys_filio_h" = xyes
21883then :
21884  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21885
21886fi
21887ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
21888if test "x$ac_cv_header_sys_select_h" = xyes
21889then :
21890  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21891
21892fi
21893ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21894if test "x$ac_cv_header_sys_ioctl_h" = xyes
21895then :
21896  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21897
21898fi
21899ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21900if test "x$ac_cv_header_sys_socket_h" = xyes
21901then :
21902  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21903
21904fi
21905
21906
21907# Checks for typedefs, structures, and compiler characteristics.
21908
21909
21910
21911    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
21912printf %s "checking for __builtin_popcountl... " >&6; }
21913if test ${ax_cv_have___builtin_popcountl+y}
21914then :
21915  printf %s "(cached) " >&6
21916else $as_nop
21917
21918        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919/* end confdefs.h.  */
21920
21921int
21922main (void)
21923{
21924
21925            __builtin_popcountl(0)
21926
21927  ;
21928  return 0;
21929}
21930_ACEOF
21931if ac_fn_c_try_link "$LINENO"
21932then :
21933  ax_cv_have___builtin_popcountl=yes
21934else $as_nop
21935  ax_cv_have___builtin_popcountl=no
21936fi
21937rm -f core conftest.err conftest.$ac_objext conftest.beam \
21938    conftest$ac_exeext conftest.$ac_ext
21939
21940fi
21941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
21942printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
21943
21944    if test yes = $ax_cv_have___builtin_popcountl
21945then :
21946
21947printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
21948
21949fi
21950
21951
21952
21953
21954# Checks for library functions.
21955ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
21956if test "x$ac_cv_func_strtol" = xyes
21957then :
21958  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
21959
21960fi
21961ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
21962if test "x$ac_cv_func_seteuid" = xyes
21963then :
21964  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
21965
21966fi
21967
21968ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21969if test "x$ac_cv_func_reallocarray" = xyes
21970then :
21971  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21972
21973else $as_nop
21974  case " $LIBOBJS " in
21975  *" reallocarray.$ac_objext "* ) ;;
21976  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21977 ;;
21978esac
21979
21980fi
21981
21982# Used in lcFile.c (see also --enable-xlocaledir settings below)
21983XLOCALEDIR_IS_SAFE="no"
21984ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21985if test "x$ac_cv_have_decl_issetugid" = xyes
21986then :
21987
21988fi
21989ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21990if test "x$ac_cv_func_issetugid" = xyes
21991then :
21992
21993fi
21994
21995if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
21996    XLOCALEDIR_IS_SAFE="yes"
21997
21998printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
21999
22000fi
22001ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
22002if test "x$ac_cv_func_getresuid" = xyes
22003then :
22004  XLOCALEDIR_IS_SAFE="yes"
22005
22006printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
22007
22008fi
22009
22010# Used in Font.c
22011ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22012if test "x$ac_cv_func_shmat" = xyes
22013then :
22014
22015printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
22016
22017fi
22018
22019
22020# Checks for system services
22021# AC_PATH_XTRA
22022
22023# arch specific things
22024WCHAR32="1"
22025case $host_os in
22026  os2*) os2="true" ; WCHAR32="0" ;;
22027  *) ;;
22028esac
22029
22030
22031 if test x$os2 = xtrue; then
22032  OS2_TRUE=
22033  OS2_FALSE='#'
22034else
22035  OS2_TRUE='#'
22036  OS2_FALSE=
22037fi
22038
22039
22040
22041# Check whether --with-launchd was given.
22042if test ${with_launchd+y}
22043then :
22044  withval=$with_launchd; LAUNCHD=$withval
22045else $as_nop
22046  LAUNCHD=auto
22047fi
22048
22049if test "x$LAUNCHD" = xauto; then
22050	unset LAUNCHD
22051	# Extract the first word of "launchd", so it can be a program name with args.
22052set dummy launchd; ac_word=$2
22053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22054printf %s "checking for $ac_word... " >&6; }
22055if test ${ac_cv_prog_LAUNCHD+y}
22056then :
22057  printf %s "(cached) " >&6
22058else $as_nop
22059  if test -n "$LAUNCHD"; then
22060  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22061else
22062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22063for as_dir in $PATH$PATH_SEPARATOR/sbin
22064do
22065  IFS=$as_save_IFS
22066  case $as_dir in #(((
22067    '') as_dir=./ ;;
22068    */) ;;
22069    *) as_dir=$as_dir/ ;;
22070  esac
22071    for ac_exec_ext in '' $ac_executable_extensions; do
22072  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22073    ac_cv_prog_LAUNCHD="yes"
22074    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22075    break 2
22076  fi
22077done
22078  done
22079IFS=$as_save_IFS
22080
22081  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22082fi
22083fi
22084LAUNCHD=$ac_cv_prog_LAUNCHD
22085if test -n "$LAUNCHD"; then
22086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
22087printf "%s\n" "$LAUNCHD" >&6; }
22088else
22089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22090printf "%s\n" "no" >&6; }
22091fi
22092
22093
22094fi
22095
22096if test "x$LAUNCHD" = xyes ; then
22097
22098printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
22099
22100
22101printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
22102
22103fi
22104
22105# Check whether --enable-xthreads was given.
22106if test ${enable_xthreads+y}
22107then :
22108  enableval=$enable_xthreads; xthreads=$enableval
22109else $as_nop
22110  xthreads=yes
22111fi
22112
22113
22114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
22115printf %s "checking for getpwuid_r in -lc... " >&6; }
22116if test ${ac_cv_lib_c_getpwuid_r+y}
22117then :
22118  printf %s "(cached) " >&6
22119else $as_nop
22120  ac_check_lib_save_LIBS=$LIBS
22121LIBS="-lc  $LIBS"
22122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123/* end confdefs.h.  */
22124
22125/* Override any GCC internal prototype to avoid an error.
22126   Use char because int might match the return type of a GCC
22127   builtin and then its argument prototype would still apply.  */
22128char getpwuid_r ();
22129int
22130main (void)
22131{
22132return getpwuid_r ();
22133  ;
22134  return 0;
22135}
22136_ACEOF
22137if ac_fn_c_try_link "$LINENO"
22138then :
22139  ac_cv_lib_c_getpwuid_r=yes
22140else $as_nop
22141  ac_cv_lib_c_getpwuid_r=no
22142fi
22143rm -f core conftest.err conftest.$ac_objext conftest.beam \
22144    conftest$ac_exeext conftest.$ac_ext
22145LIBS=$ac_check_lib_save_LIBS
22146fi
22147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
22148printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
22149if test "x$ac_cv_lib_c_getpwuid_r" = xyes
22150then :
22151  mtsafeapi="yes"
22152else $as_nop
22153  mtsafeapi="no"
22154fi
22155
22156
22157case x$xthreads in
22158xyes)
22159
22160printf "%s\n" "#define XTHREADS 1" >>confdefs.h
22161
22162	if test x$mtsafeapi = xyes
22163	then
22164
22165printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
22166
22167	fi
22168	;;
22169*)
22170	;;
22171esac
22172
22173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
22174printf %s "checking for pthread_self in -lc... " >&6; }
22175if test ${ac_cv_lib_c_pthread_self+y}
22176then :
22177  printf %s "(cached) " >&6
22178else $as_nop
22179  ac_check_lib_save_LIBS=$LIBS
22180LIBS="-lc  $LIBS"
22181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22182/* end confdefs.h.  */
22183
22184/* Override any GCC internal prototype to avoid an error.
22185   Use char because int might match the return type of a GCC
22186   builtin and then its argument prototype would still apply.  */
22187char pthread_self ();
22188int
22189main (void)
22190{
22191return pthread_self ();
22192  ;
22193  return 0;
22194}
22195_ACEOF
22196if ac_fn_c_try_link "$LINENO"
22197then :
22198  ac_cv_lib_c_pthread_self=yes
22199else $as_nop
22200  ac_cv_lib_c_pthread_self=no
22201fi
22202rm -f core conftest.err conftest.$ac_objext conftest.beam \
22203    conftest$ac_exeext conftest.$ac_ext
22204LIBS=$ac_check_lib_save_LIBS
22205fi
22206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
22207printf "%s\n" "$ac_cv_lib_c_pthread_self" >&6; }
22208if test "x$ac_cv_lib_c_pthread_self" = xyes
22209then :
22210  thrstubs="no"
22211else $as_nop
22212  thrstubs="yes"
22213fi
22214
22215 if test x$thrstubs = xyes; then
22216  THRSTUBS_TRUE=
22217  THRSTUBS_FALSE='#'
22218else
22219  THRSTUBS_TRUE='#'
22220  THRSTUBS_FALSE=
22221fi
22222
22223
22224# XXX incomplete, please fill this in
22225if test x$xthreads = xyes ; then
22226    case $host_os in
22227    linux*|gnu*|k*bsd*-gnu)
22228        XTHREADLIB=-lpthread ;;
22229    netbsd*)
22230	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22231	XTHREADLIB="-lpthread" ;;
22232    freebsd*)
22233        XTHREAD_CFLAGS="-D_THREAD_SAFE"
22234        XTHREADLIB="-pthread" ;;
22235    dragonfly*|openbsd*)
22236        XTHREADLIB="-pthread" ;;
22237    solaris*)
22238	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22239    esac
22240fi
22241
22242
22243
22244ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22245if test "x$ac_cv_func_poll" = xyes
22246then :
22247
22248printf "%s\n" "#define USE_POLL 1" >>confdefs.h
22249
22250fi
22251
22252
22253#
22254# Find keysymdef.h
22255#
22256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
22257printf %s "checking keysym definitions... " >&6; }
22258
22259# Check whether --with-keysymdefdir was given.
22260if test ${with_keysymdefdir+y}
22261then :
22262  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
22263else $as_nop
22264  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
22265fi
22266
22267
22268if test ! -d "$KEYSYMDEFDIR"; then
22269	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
22270fi
22271
22272FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
22273for i in $FILES; do
22274    if test -f "$KEYSYMDEFDIR/$i"; then
22275            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
22276    elif test "x$i" = "xkeysymdef.h"; then
22277	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
22278    fi
22279done
22280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
22281printf "%s\n" "$KEYSYMDEFS" >&6; }
22282
22283
22284# Check whether --enable-xcms was given.
22285if test ${enable_xcms+y}
22286then :
22287  enableval=$enable_xcms; XCMS=$enableval
22288else $as_nop
22289  XCMS=yes
22290fi
22291
22292 if test x$XCMS = xyes ; then
22293  XCMS_TRUE=
22294  XCMS_FALSE='#'
22295else
22296  XCMS_TRUE='#'
22297  XCMS_FALSE=
22298fi
22299
22300if test x"$XCMS" = "xyes"; then
22301
22302printf "%s\n" "#define XCMS 1" >>confdefs.h
22303
22304fi
22305
22306# Check whether --enable-xlocale was given.
22307if test ${enable_xlocale+y}
22308then :
22309  enableval=$enable_xlocale; XLOCALE=$enableval
22310else $as_nop
22311  XLOCALE=yes
22312fi
22313
22314
22315 if  test x$XLOCALE = xyes ; then
22316  XLOCALE_TRUE=
22317  XLOCALE_FALSE='#'
22318else
22319  XLOCALE_TRUE='#'
22320  XLOCALE_FALSE=
22321fi
22322
22323if test x"$XLOCALE" = "xyes"; then
22324
22325printf "%s\n" "#define XLOCALE 1" >>confdefs.h
22326
22327fi
22328
22329# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
22330# don't have either issetugid() or getresuid(), and you need to protect
22331# clients that are setgid or setuid to an id other than 0.
22332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
22333printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
22334# Check whether --enable-xlocaledir was given.
22335if test ${enable_xlocaledir+y}
22336then :
22337  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
22338else $as_nop
22339  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
22340fi
22341
22342if test "x$ENABLE_XLOCALEDIR" = "xno"; then
22343
22344printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
22345
22346fi
22347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
22348printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
22349
22350# Check whether --enable-xf86bigfont was given.
22351if test ${enable_xf86bigfont+y}
22352then :
22353  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
22354else $as_nop
22355  XF86BIGFONT="yes"
22356fi
22357
22358if test "x$XF86BIGFONT" = "xyes"; then
22359
22360pkg_failed=no
22361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
22362printf %s "checking for BIGFONT... " >&6; }
22363
22364if test -n "$BIGFONT_CFLAGS"; then
22365    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
22366 elif test -n "$PKG_CONFIG"; then
22367    if test -n "$PKG_CONFIG" && \
22368    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22369  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22370  ac_status=$?
22371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372  test $ac_status = 0; }; then
22373  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22374		      test "x$?" != "x0" && pkg_failed=yes
22375else
22376  pkg_failed=yes
22377fi
22378 else
22379    pkg_failed=untried
22380fi
22381if test -n "$BIGFONT_LIBS"; then
22382    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
22383 elif test -n "$PKG_CONFIG"; then
22384    if test -n "$PKG_CONFIG" && \
22385    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22386  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22387  ac_status=$?
22388  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22389  test $ac_status = 0; }; then
22390  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22391		      test "x$?" != "x0" && pkg_failed=yes
22392else
22393  pkg_failed=yes
22394fi
22395 else
22396    pkg_failed=untried
22397fi
22398
22399
22400
22401if test $pkg_failed = yes; then
22402   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403printf "%s\n" "no" >&6; }
22404
22405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22406        _pkg_short_errors_supported=yes
22407else
22408        _pkg_short_errors_supported=no
22409fi
22410        if test $_pkg_short_errors_supported = yes; then
22411	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22412        else
22413	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22414        fi
22415	# Put the nasty error message in config.log where it belongs
22416	echo "$BIGFONT_PKG_ERRORS" >&5
22417
22418	XF86BIGFONT="no"
22419elif test $pkg_failed = untried; then
22420     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22421printf "%s\n" "no" >&6; }
22422	XF86BIGFONT="no"
22423else
22424	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
22425	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
22426        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427printf "%s\n" "yes" >&6; }
22428
22429printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
22430
22431fi
22432fi
22433
22434# Check whether --enable-xkb was given.
22435if test ${enable_xkb+y}
22436then :
22437  enableval=$enable_xkb; XKB=$enableval
22438else $as_nop
22439  XKB=yes
22440fi
22441
22442
22443 if  test x$XKB = xyes ; then
22444  XKB_TRUE=
22445  XKB_FALSE='#'
22446else
22447  XKB_TRUE='#'
22448  XKB_FALSE=
22449fi
22450
22451if test x"$XKB" = "xyes"; then
22452   XKBPROTO_REQUIRES="kbproto"
22453   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
22454
22455printf "%s\n" "#define XKB 1" >>confdefs.h
22456
22457else
22458   XKBPROTO_REQUIRES=""
22459fi
22460
22461
22462
22463ac_func=
22464for ac_item in $ac_func_c_list
22465do
22466  if test $ac_func; then
22467    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22468    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22469      echo "#define $ac_item 1" >> confdefs.h
22470    fi
22471    ac_func=
22472  else
22473    ac_func=$ac_item
22474  fi
22475done
22476
22477
22478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22479printf %s "checking for working mmap... " >&6; }
22480if test ${ac_cv_func_mmap_fixed_mapped+y}
22481then :
22482  printf %s "(cached) " >&6
22483else $as_nop
22484  if test "$cross_compiling" = yes
22485then :
22486  case "$host_os" in # ((
22487			  # Guess yes on platforms where we know the result.
22488		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
22489			  # If we don't know, assume the worst.
22490		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
22491		esac
22492else $as_nop
22493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22494/* end confdefs.h.  */
22495$ac_includes_default
22496/* malloc might have been renamed as rpl_malloc. */
22497#undef malloc
22498
22499/* Thanks to Mike Haertel and Jim Avera for this test.
22500   Here is a matrix of mmap possibilities:
22501	mmap private not fixed
22502	mmap private fixed at somewhere currently unmapped
22503	mmap private fixed at somewhere already mapped
22504	mmap shared not fixed
22505	mmap shared fixed at somewhere currently unmapped
22506	mmap shared fixed at somewhere already mapped
22507   For private mappings, we should verify that changes cannot be read()
22508   back from the file, nor mmap's back from the file at a different
22509   address.  (There have been systems where private was not correctly
22510   implemented like the infamous i386 svr4.0, and systems where the
22511   VM page cache was not coherent with the file system buffer cache
22512   like early versions of FreeBSD and possibly contemporary NetBSD.)
22513   For shared mappings, we should conversely verify that changes get
22514   propagated back to all the places they're supposed to be.
22515
22516   Grep wants private fixed already mapped.
22517   The main things grep needs to know about mmap are:
22518   * does it exist and is it safe to write into the mmap'd area
22519   * how to use it (BSD variants)  */
22520
22521#include <fcntl.h>
22522#include <sys/mman.h>
22523
22524/* This mess was copied from the GNU getpagesize.h.  */
22525#ifndef HAVE_GETPAGESIZE
22526# ifdef _SC_PAGESIZE
22527#  define getpagesize() sysconf(_SC_PAGESIZE)
22528# else /* no _SC_PAGESIZE */
22529#  ifdef HAVE_SYS_PARAM_H
22530#   include <sys/param.h>
22531#   ifdef EXEC_PAGESIZE
22532#    define getpagesize() EXEC_PAGESIZE
22533#   else /* no EXEC_PAGESIZE */
22534#    ifdef NBPG
22535#     define getpagesize() NBPG * CLSIZE
22536#     ifndef CLSIZE
22537#      define CLSIZE 1
22538#     endif /* no CLSIZE */
22539#    else /* no NBPG */
22540#     ifdef NBPC
22541#      define getpagesize() NBPC
22542#     else /* no NBPC */
22543#      ifdef PAGESIZE
22544#       define getpagesize() PAGESIZE
22545#      endif /* PAGESIZE */
22546#     endif /* no NBPC */
22547#    endif /* no NBPG */
22548#   endif /* no EXEC_PAGESIZE */
22549#  else /* no HAVE_SYS_PARAM_H */
22550#   define getpagesize() 8192	/* punt totally */
22551#  endif /* no HAVE_SYS_PARAM_H */
22552# endif /* no _SC_PAGESIZE */
22553
22554#endif /* no HAVE_GETPAGESIZE */
22555
22556int
22557main (void)
22558{
22559  char *data, *data2, *data3;
22560  const char *cdata2;
22561  int i, pagesize;
22562  int fd, fd2;
22563
22564  pagesize = getpagesize ();
22565
22566  /* First, make a file with some known garbage in it. */
22567  data = (char *) malloc (pagesize);
22568  if (!data)
22569    return 1;
22570  for (i = 0; i < pagesize; ++i)
22571    *(data + i) = rand ();
22572  umask (0);
22573  fd = creat ("conftest.mmap", 0600);
22574  if (fd < 0)
22575    return 2;
22576  if (write (fd, data, pagesize) != pagesize)
22577    return 3;
22578  close (fd);
22579
22580  /* Next, check that the tail of a page is zero-filled.  File must have
22581     non-zero length, otherwise we risk SIGBUS for entire page.  */
22582  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22583  if (fd2 < 0)
22584    return 4;
22585  cdata2 = "";
22586  if (write (fd2, cdata2, 1) != 1)
22587    return 5;
22588  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22589  if (data2 == MAP_FAILED)
22590    return 6;
22591  for (i = 0; i < pagesize; ++i)
22592    if (*(data2 + i))
22593      return 7;
22594  close (fd2);
22595  if (munmap (data2, pagesize))
22596    return 8;
22597
22598  /* Next, try to mmap the file at a fixed address which already has
22599     something else allocated at it.  If we can, also make sure that
22600     we see the same garbage.  */
22601  fd = open ("conftest.mmap", O_RDWR);
22602  if (fd < 0)
22603    return 9;
22604  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22605		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22606    return 10;
22607  for (i = 0; i < pagesize; ++i)
22608    if (*(data + i) != *(data2 + i))
22609      return 11;
22610
22611  /* Finally, make sure that changes to the mapped area do not
22612     percolate back to the file as seen by read().  (This is a bug on
22613     some variants of i386 svr4.0.)  */
22614  for (i = 0; i < pagesize; ++i)
22615    *(data2 + i) = *(data2 + i) + 1;
22616  data3 = (char *) malloc (pagesize);
22617  if (!data3)
22618    return 12;
22619  if (read (fd, data3, pagesize) != pagesize)
22620    return 13;
22621  for (i = 0; i < pagesize; ++i)
22622    if (*(data + i) != *(data3 + i))
22623      return 14;
22624  close (fd);
22625  free (data);
22626  free (data3);
22627  return 0;
22628}
22629_ACEOF
22630if ac_fn_c_try_run "$LINENO"
22631then :
22632  ac_cv_func_mmap_fixed_mapped=yes
22633else $as_nop
22634  ac_cv_func_mmap_fixed_mapped=no
22635fi
22636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22637  conftest.$ac_objext conftest.beam conftest.$ac_ext
22638fi
22639
22640fi
22641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22642printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
22643if test $ac_cv_func_mmap_fixed_mapped = yes; then
22644
22645printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22646
22647fi
22648rm -f conftest.mmap conftest.txt
22649
22650composecache_default=$ac_cv_func_mmap_fixed_mapped
22651ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
22652if test "x$ac_cv_func_nl_langinfo" = xyes
22653then :
22654
22655else $as_nop
22656  composecache_default=no
22657fi
22658
22659# Check whether --enable-composecache was given.
22660if test ${enable_composecache+y}
22661then :
22662  enableval=$enable_composecache; COMPOSECACHE=$enableval
22663else $as_nop
22664  COMPOSECACHE=$composecache_default
22665fi
22666
22667if test x"$COMPOSECACHE" = "xyes"; then
22668
22669printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
22670
22671fi
22672
22673# Allow checking code with lint, sparse, etc.
22674
22675
22676
22677
22678
22679# Check whether --with-lint was given.
22680if test ${with_lint+y}
22681then :
22682  withval=$with_lint; use_lint=$withval
22683else $as_nop
22684  use_lint=no
22685fi
22686
22687
22688# Obtain platform specific info like program name and options
22689# The lint program on FreeBSD and NetBSD is different from the one on Solaris
22690case $host_os in
22691  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
22692	lint_name=splint
22693	lint_options="-badflag"
22694	;;
22695  *freebsd* | *netbsd*)
22696	lint_name=lint
22697	lint_options="-u -b"
22698	;;
22699  *solaris*)
22700	lint_name=lint
22701	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22702	;;
22703esac
22704
22705# Test for the presence of the program (either guessed by the code or spelled out by the user)
22706if test "x$use_lint" = x"yes" ; then
22707   # Extract the first word of "$lint_name", so it can be a program name with args.
22708set dummy $lint_name; ac_word=$2
22709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22710printf %s "checking for $ac_word... " >&6; }
22711if test ${ac_cv_path_LINT+y}
22712then :
22713  printf %s "(cached) " >&6
22714else $as_nop
22715  case $LINT in
22716  [\\/]* | ?:[\\/]*)
22717  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
22718  ;;
22719  *)
22720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22721for as_dir in $PATH
22722do
22723  IFS=$as_save_IFS
22724  case $as_dir in #(((
22725    '') as_dir=./ ;;
22726    */) ;;
22727    *) as_dir=$as_dir/ ;;
22728  esac
22729    for ac_exec_ext in '' $ac_executable_extensions; do
22730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22731    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
22732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22733    break 2
22734  fi
22735done
22736  done
22737IFS=$as_save_IFS
22738
22739  ;;
22740esac
22741fi
22742LINT=$ac_cv_path_LINT
22743if test -n "$LINT"; then
22744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
22745printf "%s\n" "$LINT" >&6; }
22746else
22747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22748printf "%s\n" "no" >&6; }
22749fi
22750
22751
22752   if test "x$LINT" = "x"; then
22753        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
22754   fi
22755elif test "x$use_lint" = x"no" ; then
22756   if test "x$LINT" != "x"; then
22757      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
22758printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
22759   fi
22760else
22761   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
22762fi
22763
22764# User supplied flags override default flags
22765if test "x$LINT_FLAGS" != "x"; then
22766   lint_options=$LINT_FLAGS
22767fi
22768
22769LINT_FLAGS=$lint_options
22770
22771 if test "x$LINT" != x; then
22772  LINT_TRUE=
22773  LINT_FALSE='#'
22774else
22775  LINT_TRUE='#'
22776  LINT_FALSE=
22777fi
22778
22779
22780
22781
22782
22783# Check whether --enable-lint-library was given.
22784if test ${enable_lint_library+y}
22785then :
22786  enableval=$enable_lint_library; make_lint_lib=$enableval
22787else $as_nop
22788  make_lint_lib=no
22789fi
22790
22791
22792if test "x$make_lint_lib" = x"yes" ; then
22793   LINTLIB=llib-lX11.ln
22794   if test "x$LINT" = "x"; then
22795        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
22796   fi
22797elif test "x$make_lint_lib" != x"no" ; then
22798   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
22799fi
22800
22801
22802 if test x$make_lint_lib != xno; then
22803  MAKE_LINT_LIB_TRUE=
22804  MAKE_LINT_LIB_FALSE='#'
22805else
22806  MAKE_LINT_LIB_TRUE='#'
22807  MAKE_LINT_LIB_FALSE=
22808fi
22809
22810
22811
22812
22813X11_DATADIR="${datadir}/X11"
22814
22815  prefix_NONE=
22816  exec_prefix_NONE=
22817  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22818  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22819  eval ax_define_dir="\"$X11_DATADIR\""
22820  eval ax_define_dir="\"$ax_define_dir\""
22821  X11_DATADIR="$ax_define_dir"
22822
22823
22824printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
22825
22826  test "$prefix_NONE" && prefix=NONE
22827  test "$exec_prefix_NONE" && exec_prefix=NONE
22828
22829
22830
22831X11_LIBDIR="${libdir}/X11"
22832
22833  prefix_NONE=
22834  exec_prefix_NONE=
22835  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22836  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22837  eval ax_define_dir="\"$X11_LIBDIR\""
22838  eval ax_define_dir="\"$ax_define_dir\""
22839  X11_LIBDIR="$ax_define_dir"
22840
22841
22842printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
22843
22844  test "$prefix_NONE" && prefix=NONE
22845  test "$exec_prefix_NONE" && exec_prefix=NONE
22846
22847
22848
22849
22850pkg_failed=no
22851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
22852printf %s "checking for X11... " >&6; }
22853
22854if test -n "$X11_CFLAGS"; then
22855    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
22856 elif test -n "$PKG_CONFIG"; then
22857    if test -n "$PKG_CONFIG" && \
22858    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22859  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22860  ac_status=$?
22861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862  test $ac_status = 0; }; then
22863  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
22864		      test "x$?" != "x0" && pkg_failed=yes
22865else
22866  pkg_failed=yes
22867fi
22868 else
22869    pkg_failed=untried
22870fi
22871if test -n "$X11_LIBS"; then
22872    pkg_cv_X11_LIBS="$X11_LIBS"
22873 elif test -n "$PKG_CONFIG"; then
22874    if test -n "$PKG_CONFIG" && \
22875    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22876  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22877  ac_status=$?
22878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879  test $ac_status = 0; }; then
22880  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
22881		      test "x$?" != "x0" && pkg_failed=yes
22882else
22883  pkg_failed=yes
22884fi
22885 else
22886    pkg_failed=untried
22887fi
22888
22889
22890
22891if test $pkg_failed = yes; then
22892   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22893printf "%s\n" "no" >&6; }
22894
22895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22896        _pkg_short_errors_supported=yes
22897else
22898        _pkg_short_errors_supported=no
22899fi
22900        if test $_pkg_short_errors_supported = yes; then
22901	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22902        else
22903	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22904        fi
22905	# Put the nasty error message in config.log where it belongs
22906	echo "$X11_PKG_ERRORS" >&5
22907
22908	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
22909
22910$X11_PKG_ERRORS
22911
22912Consider adjusting the PKG_CONFIG_PATH environment variable if you
22913installed software in a non-standard prefix.
22914
22915Alternatively, you may set the environment variables X11_CFLAGS
22916and X11_LIBS to avoid the need to call pkg-config.
22917See the pkg-config man page for more details." "$LINENO" 5
22918elif test $pkg_failed = untried; then
22919     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920printf "%s\n" "no" >&6; }
22921	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22922printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22923as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22924is in your PATH or set the PKG_CONFIG environment variable to the full
22925path to pkg-config.
22926
22927Alternatively, you may set the environment variables X11_CFLAGS
22928and X11_LIBS to avoid the need to call pkg-config.
22929See the pkg-config man page for more details.
22930
22931To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22932See \`config.log' for more details" "$LINENO" 5; }
22933else
22934	X11_CFLAGS=$pkg_cv_X11_CFLAGS
22935	X11_LIBS=$pkg_cv_X11_LIBS
22936        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937printf "%s\n" "yes" >&6; }
22938
22939fi
22940X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22941
22942#
22943# Yes, it would be nice to put the locale data in
22944# /usr/share, but the locale stuff includes loadable
22945# libraries which must be located in the same directory
22946# as the other locale data, so for now, everything lives
22947# in ${libdir}
22948#
22949
22950X11_LOCALEDATADIR="${X11_DATADIR}/locale"
22951
22952  prefix_NONE=
22953  exec_prefix_NONE=
22954  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22955  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22956  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
22957  eval ax_define_dir="\"$ax_define_dir\""
22958  XLOCALEDATADIR="$ax_define_dir"
22959
22960
22961printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
22962
22963  test "$prefix_NONE" && prefix=NONE
22964  test "$exec_prefix_NONE" && exec_prefix=NONE
22965
22966
22967
22968
22969# Check whether --with-locale-lib-dir was given.
22970if test ${with_locale_lib_dir+y}
22971then :
22972  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
22973else $as_nop
22974   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
22975fi
22976
22977
22978  prefix_NONE=
22979  exec_prefix_NONE=
22980  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22981  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22982  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
22983  eval ax_define_dir="\"$ax_define_dir\""
22984  XLOCALELIBDIR="$ax_define_dir"
22985
22986
22987printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
22988
22989  test "$prefix_NONE" && prefix=NONE
22990  test "$exec_prefix_NONE" && exec_prefix=NONE
22991
22992
22993
22994X11_LOCALEDIR="${X11_LOCALEDATADIR}"
22995
22996  prefix_NONE=
22997  exec_prefix_NONE=
22998  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22999  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23000  eval ax_define_dir="\"$X11_LOCALEDIR\""
23001  eval ax_define_dir="\"$ax_define_dir\""
23002  XLOCALEDIR="$ax_define_dir"
23003
23004
23005printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
23006
23007  test "$prefix_NONE" && prefix=NONE
23008  test "$exec_prefix_NONE" && exec_prefix=NONE
23009
23010
23011
23012locales="\
23013 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
23014 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
23015 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
23016 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
23017 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
23018 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
23019 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
23020 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
23021 ru_RU.UTF-8  sr_RS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
23022 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
23023 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
23024 zh_TW        zh_TW.big5  zh_TW.UTF-8"
23025
23026
23027XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
23028
23029  prefix_NONE=
23030  exec_prefix_NONE=
23031  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23032  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23033  eval ax_define_dir="\"$XKEYSYMDB\""
23034  eval ax_define_dir="\"$ax_define_dir\""
23035  XKEYSYMDB="$ax_define_dir"
23036
23037
23038printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
23039
23040  test "$prefix_NONE" && prefix=NONE
23041  test "$exec_prefix_NONE" && exec_prefix=NONE
23042
23043
23044XERRORDB="${X11_DATADIR}/XErrorDB"
23045
23046  prefix_NONE=
23047  exec_prefix_NONE=
23048  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23049  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23050  eval ax_define_dir="\"$XERRORDB\""
23051  eval ax_define_dir="\"$ax_define_dir\""
23052  XERRORDB="$ax_define_dir"
23053
23054
23055printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
23056
23057  test "$prefix_NONE" && prefix=NONE
23058  test "$exec_prefix_NONE" && exec_prefix=NONE
23059
23060
23061
23062# Check whether --enable-malloc0returnsnull was given.
23063if test ${enable_malloc0returnsnull+y}
23064then :
23065  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
23066else $as_nop
23067  MALLOC_ZERO_RETURNS_NULL=auto
23068fi
23069
23070
23071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
23072printf %s "checking whether malloc(0) returns NULL... " >&6; }
23073if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
23074if test ${xorg_cv_malloc0_returns_null+y}
23075then :
23076  printf %s "(cached) " >&6
23077else $as_nop
23078  if test "$cross_compiling" = yes
23079then :
23080  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23081printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23082as_fn_error $? "cannot run test program while cross compiling
23083See \`config.log' for more details" "$LINENO" 5; }
23084else $as_nop
23085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086/* end confdefs.h.  */
23087
23088#include <stdlib.h>
23089
23090int
23091main (void)
23092{
23093
23094    char *m0, *r0, *c0, *p;
23095    m0 = malloc(0);
23096    p = malloc(10);
23097    r0 = realloc(p,0);
23098    c0 = calloc(0,10);
23099    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
23100
23101  ;
23102  return 0;
23103}
23104_ACEOF
23105if ac_fn_c_try_run "$LINENO"
23106then :
23107  xorg_cv_malloc0_returns_null=yes
23108else $as_nop
23109  xorg_cv_malloc0_returns_null=no
23110fi
23111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23112  conftest.$ac_objext conftest.beam conftest.$ac_ext
23113fi
23114
23115fi
23116
23117MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
23118fi
23119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
23120printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
23121
23122if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
23123	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
23124	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
23125	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
23126else
23127	MALLOC_ZERO_CFLAGS=""
23128	XMALLOC_ZERO_CFLAGS=""
23129	XTMALLOC_ZERO_CFLAGS=""
23130fi
23131
23132
23133
23134
23135
23136
23137ac_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"
23138
23139cat >confcache <<\_ACEOF
23140# This file is a shell script that caches the results of configure
23141# tests run on this system so they can be shared between configure
23142# scripts and configure runs, see configure's option --config-cache.
23143# It is not useful on other systems.  If it contains results you don't
23144# want to keep, you may remove or edit it.
23145#
23146# config.status only pays attention to the cache file if you give it
23147# the --recheck option to rerun configure.
23148#
23149# `ac_cv_env_foo' variables (set or unset) will be overridden when
23150# loading this file, other *unset* `ac_cv_foo' will be assigned the
23151# following values.
23152
23153_ACEOF
23154
23155# The following way of writing the cache mishandles newlines in values,
23156# but we know of no workaround that is simple, portable, and efficient.
23157# So, we kill variables containing newlines.
23158# Ultrix sh set writes to stderr and can't be redirected directly,
23159# and sets the high bit in the cache file unless we assign to the vars.
23160(
23161  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23162    eval ac_val=\$$ac_var
23163    case $ac_val in #(
23164    *${as_nl}*)
23165      case $ac_var in #(
23166      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23167printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23168      esac
23169      case $ac_var in #(
23170      _ | IFS | as_nl) ;; #(
23171      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23172      *) { eval $ac_var=; unset $ac_var;} ;;
23173      esac ;;
23174    esac
23175  done
23176
23177  (set) 2>&1 |
23178    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23179    *${as_nl}ac_space=\ *)
23180      # `set' does not quote correctly, so add quotes: double-quote
23181      # substitution turns \\\\ into \\, and sed turns \\ into \.
23182      sed -n \
23183	"s/'/'\\\\''/g;
23184	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23185      ;; #(
23186    *)
23187      # `set' quotes correctly as required by POSIX, so do not add quotes.
23188      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23189      ;;
23190    esac |
23191    sort
23192) |
23193  sed '
23194     /^ac_cv_env_/b end
23195     t clear
23196     :clear
23197     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23198     t end
23199     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23200     :end' >>confcache
23201if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23202  if test -w "$cache_file"; then
23203    if test "x$cache_file" != "x/dev/null"; then
23204      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23205printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23206      if test ! -f "$cache_file" || test -h "$cache_file"; then
23207	cat confcache >"$cache_file"
23208      else
23209        case $cache_file in #(
23210        */* | ?:*)
23211	  mv -f confcache "$cache_file"$$ &&
23212	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23213        *)
23214	  mv -f confcache "$cache_file" ;;
23215	esac
23216      fi
23217    fi
23218  else
23219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23220printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23221  fi
23222fi
23223rm -f confcache
23224
23225test "x$prefix" = xNONE && prefix=$ac_default_prefix
23226# Let make expand exec_prefix.
23227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23228
23229DEFS=-DHAVE_CONFIG_H
23230
23231ac_libobjs=
23232ac_ltlibobjs=
23233U=
23234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23235  # 1. Remove the extension, and $U if already installed.
23236  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23237  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23238  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23239  #    will be set to the directory where LIBOBJS objects are built.
23240  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23241  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23242done
23243LIBOBJS=$ac_libobjs
23244
23245LTLIBOBJS=$ac_ltlibobjs
23246
23247
23248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23249printf %s "checking that generated files are newer than configure... " >&6; }
23250   if test -n "$am_sleep_pid"; then
23251     # Hide warnings about reused PIDs.
23252     wait $am_sleep_pid 2>/dev/null
23253   fi
23254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23255printf "%s\n" "done" >&6; }
23256if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23257  as_fn_error $? "conditional \"AMDEP\" was never defined.
23258Usually this means the macro was only invoked conditionally." "$LINENO" 5
23259fi
23260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23261  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23262Usually this means the macro was only invoked conditionally." "$LINENO" 5
23263fi
23264 if test -n "$EXEEXT"; then
23265  am__EXEEXT_TRUE=
23266  am__EXEEXT_FALSE='#'
23267else
23268  am__EXEEXT_TRUE='#'
23269  am__EXEEXT_FALSE=
23270fi
23271
23272if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
23273  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
23274Usually this means the macro was only invoked conditionally." "$LINENO" 5
23275fi
23276if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
23277  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
23278Usually this means the macro was only invoked conditionally." "$LINENO" 5
23279fi
23280if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
23281  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
23282Usually this means the macro was only invoked conditionally." "$LINENO" 5
23283fi
23284if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
23285  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
23286Usually this means the macro was only invoked conditionally." "$LINENO" 5
23287fi
23288if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
23289  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
23290Usually this means the macro was only invoked conditionally." "$LINENO" 5
23291fi
23292if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
23293  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
23294Usually this means the macro was only invoked conditionally." "$LINENO" 5
23295fi
23296if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
23297  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
23298Usually this means the macro was only invoked conditionally." "$LINENO" 5
23299fi
23300if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
23301  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
23302Usually this means the macro was only invoked conditionally." "$LINENO" 5
23303fi
23304if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
23305  as_fn_error $? "conditional \"OS2\" was never defined.
23306Usually this means the macro was only invoked conditionally." "$LINENO" 5
23307fi
23308if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
23309  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
23310Usually this means the macro was only invoked conditionally." "$LINENO" 5
23311fi
23312if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
23313  as_fn_error $? "conditional \"XCMS\" was never defined.
23314Usually this means the macro was only invoked conditionally." "$LINENO" 5
23315fi
23316if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
23317  as_fn_error $? "conditional \"XLOCALE\" was never defined.
23318Usually this means the macro was only invoked conditionally." "$LINENO" 5
23319fi
23320if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
23321  as_fn_error $? "conditional \"XKB\" was never defined.
23322Usually this means the macro was only invoked conditionally." "$LINENO" 5
23323fi
23324if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23325  as_fn_error $? "conditional \"LINT\" was never defined.
23326Usually this means the macro was only invoked conditionally." "$LINENO" 5
23327fi
23328if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
23329  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
23330Usually this means the macro was only invoked conditionally." "$LINENO" 5
23331fi
23332
23333: "${CONFIG_STATUS=./config.status}"
23334ac_write_fail=0
23335ac_clean_files_save=$ac_clean_files
23336ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23338printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23339as_write_fail=0
23340cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23341#! $SHELL
23342# Generated by $as_me.
23343# Run this file to recreate the current configuration.
23344# Compiler output produced by configure, useful for debugging
23345# configure, is in config.log if it exists.
23346
23347debug=false
23348ac_cs_recheck=false
23349ac_cs_silent=false
23350
23351SHELL=\${CONFIG_SHELL-$SHELL}
23352export SHELL
23353_ASEOF
23354cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23355## -------------------- ##
23356## M4sh Initialization. ##
23357## -------------------- ##
23358
23359# Be more Bourne compatible
23360DUALCASE=1; export DUALCASE # for MKS sh
23361as_nop=:
23362if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23363then :
23364  emulate sh
23365  NULLCMD=:
23366  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23367  # is contrary to our usage.  Disable this feature.
23368  alias -g '${1+"$@"}'='"$@"'
23369  setopt NO_GLOB_SUBST
23370else $as_nop
23371  case `(set -o) 2>/dev/null` in #(
23372  *posix*) :
23373    set -o posix ;; #(
23374  *) :
23375     ;;
23376esac
23377fi
23378
23379
23380
23381# Reset variables that may have inherited troublesome values from
23382# the environment.
23383
23384# IFS needs to be set, to space, tab, and newline, in precisely that order.
23385# (If _AS_PATH_WALK were called with IFS unset, it would have the
23386# side effect of setting IFS to empty, thus disabling word splitting.)
23387# Quoting is to prevent editors from complaining about space-tab.
23388as_nl='
23389'
23390export as_nl
23391IFS=" ""	$as_nl"
23392
23393PS1='$ '
23394PS2='> '
23395PS4='+ '
23396
23397# Ensure predictable behavior from utilities with locale-dependent output.
23398LC_ALL=C
23399export LC_ALL
23400LANGUAGE=C
23401export LANGUAGE
23402
23403# We cannot yet rely on "unset" to work, but we need these variables
23404# to be unset--not just set to an empty or harmless value--now, to
23405# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23406# also avoids known problems related to "unset" and subshell syntax
23407# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23408for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23409do eval test \${$as_var+y} \
23410  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23411done
23412
23413# Ensure that fds 0, 1, and 2 are open.
23414if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23415if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23416if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23417
23418# The user is always right.
23419if ${PATH_SEPARATOR+false} :; then
23420  PATH_SEPARATOR=:
23421  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23422    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23423      PATH_SEPARATOR=';'
23424  }
23425fi
23426
23427
23428# Find who we are.  Look in the path if we contain no directory separator.
23429as_myself=
23430case $0 in #((
23431  *[\\/]* ) as_myself=$0 ;;
23432  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23433for as_dir in $PATH
23434do
23435  IFS=$as_save_IFS
23436  case $as_dir in #(((
23437    '') as_dir=./ ;;
23438    */) ;;
23439    *) as_dir=$as_dir/ ;;
23440  esac
23441    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23442  done
23443IFS=$as_save_IFS
23444
23445     ;;
23446esac
23447# We did not find ourselves, most probably we were run as `sh COMMAND'
23448# in which case we are not to be found in the path.
23449if test "x$as_myself" = x; then
23450  as_myself=$0
23451fi
23452if test ! -f "$as_myself"; then
23453  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23454  exit 1
23455fi
23456
23457
23458
23459# as_fn_error STATUS ERROR [LINENO LOG_FD]
23460# ----------------------------------------
23461# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23462# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23463# script with STATUS, using 1 if that was 0.
23464as_fn_error ()
23465{
23466  as_status=$1; test $as_status -eq 0 && as_status=1
23467  if test "$4"; then
23468    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23470  fi
23471  printf "%s\n" "$as_me: error: $2" >&2
23472  as_fn_exit $as_status
23473} # as_fn_error
23474
23475
23476
23477# as_fn_set_status STATUS
23478# -----------------------
23479# Set $? to STATUS, without forking.
23480as_fn_set_status ()
23481{
23482  return $1
23483} # as_fn_set_status
23484
23485# as_fn_exit STATUS
23486# -----------------
23487# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23488as_fn_exit ()
23489{
23490  set +e
23491  as_fn_set_status $1
23492  exit $1
23493} # as_fn_exit
23494
23495# as_fn_unset VAR
23496# ---------------
23497# Portably unset VAR.
23498as_fn_unset ()
23499{
23500  { eval $1=; unset $1;}
23501}
23502as_unset=as_fn_unset
23503
23504# as_fn_append VAR VALUE
23505# ----------------------
23506# Append the text in VALUE to the end of the definition contained in VAR. Take
23507# advantage of any shell optimizations that allow amortized linear growth over
23508# repeated appends, instead of the typical quadratic growth present in naive
23509# implementations.
23510if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23511then :
23512  eval 'as_fn_append ()
23513  {
23514    eval $1+=\$2
23515  }'
23516else $as_nop
23517  as_fn_append ()
23518  {
23519    eval $1=\$$1\$2
23520  }
23521fi # as_fn_append
23522
23523# as_fn_arith ARG...
23524# ------------------
23525# Perform arithmetic evaluation on the ARGs, and store the result in the
23526# global $as_val. Take advantage of shells that can avoid forks. The arguments
23527# must be portable across $(()) and expr.
23528if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23529then :
23530  eval 'as_fn_arith ()
23531  {
23532    as_val=$(( $* ))
23533  }'
23534else $as_nop
23535  as_fn_arith ()
23536  {
23537    as_val=`expr "$@" || test $? -eq 1`
23538  }
23539fi # as_fn_arith
23540
23541
23542if expr a : '\(a\)' >/dev/null 2>&1 &&
23543   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23544  as_expr=expr
23545else
23546  as_expr=false
23547fi
23548
23549if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23550  as_basename=basename
23551else
23552  as_basename=false
23553fi
23554
23555if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23556  as_dirname=dirname
23557else
23558  as_dirname=false
23559fi
23560
23561as_me=`$as_basename -- "$0" ||
23562$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23563	 X"$0" : 'X\(//\)$' \| \
23564	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23565printf "%s\n" X/"$0" |
23566    sed '/^.*\/\([^/][^/]*\)\/*$/{
23567	    s//\1/
23568	    q
23569	  }
23570	  /^X\/\(\/\/\)$/{
23571	    s//\1/
23572	    q
23573	  }
23574	  /^X\/\(\/\).*/{
23575	    s//\1/
23576	    q
23577	  }
23578	  s/.*/./; q'`
23579
23580# Avoid depending upon Character Ranges.
23581as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23582as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23583as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23584as_cr_digits='0123456789'
23585as_cr_alnum=$as_cr_Letters$as_cr_digits
23586
23587
23588# Determine whether it's possible to make 'echo' print without a newline.
23589# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23590# for compatibility with existing Makefiles.
23591ECHO_C= ECHO_N= ECHO_T=
23592case `echo -n x` in #(((((
23593-n*)
23594  case `echo 'xy\c'` in
23595  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23596  xy)  ECHO_C='\c';;
23597  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23598       ECHO_T='	';;
23599  esac;;
23600*)
23601  ECHO_N='-n';;
23602esac
23603
23604# For backward compatibility with old third-party macros, we provide
23605# the shell variables $as_echo and $as_echo_n.  New code should use
23606# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23607as_echo='printf %s\n'
23608as_echo_n='printf %s'
23609
23610rm -f conf$$ conf$$.exe conf$$.file
23611if test -d conf$$.dir; then
23612  rm -f conf$$.dir/conf$$.file
23613else
23614  rm -f conf$$.dir
23615  mkdir conf$$.dir 2>/dev/null
23616fi
23617if (echo >conf$$.file) 2>/dev/null; then
23618  if ln -s conf$$.file conf$$ 2>/dev/null; then
23619    as_ln_s='ln -s'
23620    # ... but there are two gotchas:
23621    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23622    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23623    # In both cases, we have to default to `cp -pR'.
23624    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23625      as_ln_s='cp -pR'
23626  elif ln conf$$.file conf$$ 2>/dev/null; then
23627    as_ln_s=ln
23628  else
23629    as_ln_s='cp -pR'
23630  fi
23631else
23632  as_ln_s='cp -pR'
23633fi
23634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23635rmdir conf$$.dir 2>/dev/null
23636
23637
23638# as_fn_mkdir_p
23639# -------------
23640# Create "$as_dir" as a directory, including parents if necessary.
23641as_fn_mkdir_p ()
23642{
23643
23644  case $as_dir in #(
23645  -*) as_dir=./$as_dir;;
23646  esac
23647  test -d "$as_dir" || eval $as_mkdir_p || {
23648    as_dirs=
23649    while :; do
23650      case $as_dir in #(
23651      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23652      *) as_qdir=$as_dir;;
23653      esac
23654      as_dirs="'$as_qdir' $as_dirs"
23655      as_dir=`$as_dirname -- "$as_dir" ||
23656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657	 X"$as_dir" : 'X\(//\)[^/]' \| \
23658	 X"$as_dir" : 'X\(//\)$' \| \
23659	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23660printf "%s\n" X"$as_dir" |
23661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23662	    s//\1/
23663	    q
23664	  }
23665	  /^X\(\/\/\)[^/].*/{
23666	    s//\1/
23667	    q
23668	  }
23669	  /^X\(\/\/\)$/{
23670	    s//\1/
23671	    q
23672	  }
23673	  /^X\(\/\).*/{
23674	    s//\1/
23675	    q
23676	  }
23677	  s/.*/./; q'`
23678      test -d "$as_dir" && break
23679    done
23680    test -z "$as_dirs" || eval "mkdir $as_dirs"
23681  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23682
23683
23684} # as_fn_mkdir_p
23685if mkdir -p . 2>/dev/null; then
23686  as_mkdir_p='mkdir -p "$as_dir"'
23687else
23688  test -d ./-p && rmdir ./-p
23689  as_mkdir_p=false
23690fi
23691
23692
23693# as_fn_executable_p FILE
23694# -----------------------
23695# Test if FILE is an executable regular file.
23696as_fn_executable_p ()
23697{
23698  test -f "$1" && test -x "$1"
23699} # as_fn_executable_p
23700as_test_x='test -x'
23701as_executable_p=as_fn_executable_p
23702
23703# Sed expression to map a string onto a valid CPP name.
23704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23705
23706# Sed expression to map a string onto a valid variable name.
23707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23708
23709
23710exec 6>&1
23711## ----------------------------------- ##
23712## Main body of $CONFIG_STATUS script. ##
23713## ----------------------------------- ##
23714_ASEOF
23715test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23716
23717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23718# Save the log message, to keep $0 and so on meaningful, and to
23719# report actual input values of CONFIG_FILES etc. instead of their
23720# values after options handling.
23721ac_log="
23722This file was extended by libX11 $as_me 1.8.1, which was
23723generated by GNU Autoconf 2.71.  Invocation command line was
23724
23725  CONFIG_FILES    = $CONFIG_FILES
23726  CONFIG_HEADERS  = $CONFIG_HEADERS
23727  CONFIG_LINKS    = $CONFIG_LINKS
23728  CONFIG_COMMANDS = $CONFIG_COMMANDS
23729  $ $0 $@
23730
23731on `(hostname || uname -n) 2>/dev/null | sed 1q`
23732"
23733
23734_ACEOF
23735
23736case $ac_config_files in *"
23737"*) set x $ac_config_files; shift; ac_config_files=$*;;
23738esac
23739
23740case $ac_config_headers in *"
23741"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23742esac
23743
23744
23745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23746# Files that config.status was made for.
23747config_files="$ac_config_files"
23748config_headers="$ac_config_headers"
23749config_commands="$ac_config_commands"
23750
23751_ACEOF
23752
23753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23754ac_cs_usage="\
23755\`$as_me' instantiates files and other configuration actions
23756from templates according to the current configuration.  Unless the files
23757and actions are specified as TAGs, all are instantiated by default.
23758
23759Usage: $0 [OPTION]... [TAG]...
23760
23761  -h, --help       print this help, then exit
23762  -V, --version    print version number and configuration settings, then exit
23763      --config     print configuration, then exit
23764  -q, --quiet, --silent
23765                   do not print progress messages
23766  -d, --debug      don't remove temporary files
23767      --recheck    update $as_me by reconfiguring in the same conditions
23768      --file=FILE[:TEMPLATE]
23769                   instantiate the configuration file FILE
23770      --header=FILE[:TEMPLATE]
23771                   instantiate the configuration header FILE
23772
23773Configuration files:
23774$config_files
23775
23776Configuration headers:
23777$config_headers
23778
23779Configuration commands:
23780$config_commands
23781
23782Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
23783
23784_ACEOF
23785ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23786ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788ac_cs_config='$ac_cs_config_escaped'
23789ac_cs_version="\\
23790libX11 config.status 1.8.1
23791configured by $0, generated by GNU Autoconf 2.71,
23792  with options \\"\$ac_cs_config\\"
23793
23794Copyright (C) 2021 Free Software Foundation, Inc.
23795This config.status script is free software; the Free Software Foundation
23796gives unlimited permission to copy, distribute and modify it."
23797
23798ac_pwd='$ac_pwd'
23799srcdir='$srcdir'
23800INSTALL='$INSTALL'
23801MKDIR_P='$MKDIR_P'
23802AWK='$AWK'
23803test -n "\$AWK" || AWK=awk
23804_ACEOF
23805
23806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23807# The default lists apply if the user does not specify any file.
23808ac_need_defaults=:
23809while test $# != 0
23810do
23811  case $1 in
23812  --*=?*)
23813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23815    ac_shift=:
23816    ;;
23817  --*=)
23818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23819    ac_optarg=
23820    ac_shift=:
23821    ;;
23822  *)
23823    ac_option=$1
23824    ac_optarg=$2
23825    ac_shift=shift
23826    ;;
23827  esac
23828
23829  case $ac_option in
23830  # Handling of the options.
23831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23832    ac_cs_recheck=: ;;
23833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23834    printf "%s\n" "$ac_cs_version"; exit ;;
23835  --config | --confi | --conf | --con | --co | --c )
23836    printf "%s\n" "$ac_cs_config"; exit ;;
23837  --debug | --debu | --deb | --de | --d | -d )
23838    debug=: ;;
23839  --file | --fil | --fi | --f )
23840    $ac_shift
23841    case $ac_optarg in
23842    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23843    '') as_fn_error $? "missing file argument" ;;
23844    esac
23845    as_fn_append CONFIG_FILES " '$ac_optarg'"
23846    ac_need_defaults=false;;
23847  --header | --heade | --head | --hea )
23848    $ac_shift
23849    case $ac_optarg in
23850    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23851    esac
23852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23853    ac_need_defaults=false;;
23854  --he | --h)
23855    # Conflict between --help and --header
23856    as_fn_error $? "ambiguous option: \`$1'
23857Try \`$0 --help' for more information.";;
23858  --help | --hel | -h )
23859    printf "%s\n" "$ac_cs_usage"; exit ;;
23860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23862    ac_cs_silent=: ;;
23863
23864  # This is an error.
23865  -*) as_fn_error $? "unrecognized option: \`$1'
23866Try \`$0 --help' for more information." ;;
23867
23868  *) as_fn_append ac_config_targets " $1"
23869     ac_need_defaults=false ;;
23870
23871  esac
23872  shift
23873done
23874
23875ac_configure_extra_args=
23876
23877if $ac_cs_silent; then
23878  exec 6>/dev/null
23879  ac_configure_extra_args="$ac_configure_extra_args --silent"
23880fi
23881
23882_ACEOF
23883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23884if \$ac_cs_recheck; then
23885  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23886  shift
23887  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23888  CONFIG_SHELL='$SHELL'
23889  export CONFIG_SHELL
23890  exec "\$@"
23891fi
23892
23893_ACEOF
23894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895exec 5>>config.log
23896{
23897  echo
23898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23899## Running $as_me. ##
23900_ASBOX
23901  printf "%s\n" "$ac_log"
23902} >&5
23903
23904_ACEOF
23905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23906#
23907# INIT-COMMANDS
23908#
23909AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23910
23911
23912# The HP-UX ksh and POSIX shell print the target directory to stdout
23913# if CDPATH is set.
23914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23915
23916sed_quote_subst='$sed_quote_subst'
23917double_quote_subst='$double_quote_subst'
23918delay_variable_subst='$delay_variable_subst'
23919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23921enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23922enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23925shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23926SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23927ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23928PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23929host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23930host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23931host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23932build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23933build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23934build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23935SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23936Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23937GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23938EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23939FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23940LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23941NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23942LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23943max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23944ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23945exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23946lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23947lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23948lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23949lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23950lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23951reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23952reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23953FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23954OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23955deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23956file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23957file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23958want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23959DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23960sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23961AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23962lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23963AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23964archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23965STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23966RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23967old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23968old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23969old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23970lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23971CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23972CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23973compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23974GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23975lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23976lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23977lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23979lt_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"`'
23980lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23981nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23982lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23983lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23984objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23985MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23986lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23987lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23988lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23989lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23990lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23991need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23992MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23993DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23994NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23995LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23996OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23997OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23998libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23999shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24000extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24001archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24002enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24003export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24004whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24005compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24006old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24007old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24008archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24009archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24010module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24011module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24012with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24013allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24014no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24015hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24016hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24017hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24018hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24019hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24020hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24021hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24022inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24023link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24024always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24025export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24026exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24027include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24028prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24029postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24030file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24031variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24032need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24033need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24034version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24035runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24036shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24037shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24038libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24039library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24040soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24041install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24042postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24043postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24044finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24045finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24046hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24047sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24048configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24049configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24050hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24051enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24052enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24053enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24054old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24055striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24056
24057LTCC='$LTCC'
24058LTCFLAGS='$LTCFLAGS'
24059compiler='$compiler_DEFAULT'
24060
24061# A function that is used when there is no print builtin or printf.
24062func_fallback_echo ()
24063{
24064  eval 'cat <<_LTECHO_EOF
24065\$1
24066_LTECHO_EOF'
24067}
24068
24069# Quote evaled strings.
24070for var in SHELL \
24071ECHO \
24072PATH_SEPARATOR \
24073SED \
24074GREP \
24075EGREP \
24076FGREP \
24077LD \
24078NM \
24079LN_S \
24080lt_SP2NL \
24081lt_NL2SP \
24082reload_flag \
24083FILECMD \
24084OBJDUMP \
24085deplibs_check_method \
24086file_magic_cmd \
24087file_magic_glob \
24088want_nocaseglob \
24089DLLTOOL \
24090sharedlib_from_linklib_cmd \
24091AR \
24092archiver_list_spec \
24093STRIP \
24094RANLIB \
24095CC \
24096CFLAGS \
24097compiler \
24098lt_cv_sys_global_symbol_pipe \
24099lt_cv_sys_global_symbol_to_cdecl \
24100lt_cv_sys_global_symbol_to_import \
24101lt_cv_sys_global_symbol_to_c_name_address \
24102lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24103lt_cv_nm_interface \
24104nm_file_list_spec \
24105lt_cv_truncate_bin \
24106lt_prog_compiler_no_builtin_flag \
24107lt_prog_compiler_pic \
24108lt_prog_compiler_wl \
24109lt_prog_compiler_static \
24110lt_cv_prog_compiler_c_o \
24111need_locks \
24112MANIFEST_TOOL \
24113DSYMUTIL \
24114NMEDIT \
24115LIPO \
24116OTOOL \
24117OTOOL64 \
24118shrext_cmds \
24119export_dynamic_flag_spec \
24120whole_archive_flag_spec \
24121compiler_needs_object \
24122with_gnu_ld \
24123allow_undefined_flag \
24124no_undefined_flag \
24125hardcode_libdir_flag_spec \
24126hardcode_libdir_separator \
24127exclude_expsyms \
24128include_expsyms \
24129file_list_spec \
24130variables_saved_for_relink \
24131libname_spec \
24132library_names_spec \
24133soname_spec \
24134install_override_mode \
24135finish_eval \
24136old_striplib \
24137striplib; do
24138    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24139    *[\\\\\\\`\\"\\\$]*)
24140      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24141      ;;
24142    *)
24143      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24144      ;;
24145    esac
24146done
24147
24148# Double-quote double-evaled strings.
24149for var in reload_cmds \
24150old_postinstall_cmds \
24151old_postuninstall_cmds \
24152old_archive_cmds \
24153extract_expsyms_cmds \
24154old_archive_from_new_cmds \
24155old_archive_from_expsyms_cmds \
24156archive_cmds \
24157archive_expsym_cmds \
24158module_cmds \
24159module_expsym_cmds \
24160export_symbols_cmds \
24161prelink_cmds \
24162postlink_cmds \
24163postinstall_cmds \
24164postuninstall_cmds \
24165finish_cmds \
24166sys_lib_search_path_spec \
24167configure_time_dlsearch_path \
24168configure_time_lt_sys_library_path; do
24169    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24170    *[\\\\\\\`\\"\\\$]*)
24171      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24172      ;;
24173    *)
24174      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24175      ;;
24176    esac
24177done
24178
24179ac_aux_dir='$ac_aux_dir'
24180
24181# See if we are running on zsh, and set the options that allow our
24182# commands through without removal of \ escapes INIT.
24183if test -n "\${ZSH_VERSION+set}"; then
24184   setopt NO_GLOB_SUBST
24185fi
24186
24187
24188    PACKAGE='$PACKAGE'
24189    VERSION='$VERSION'
24190    RM='$RM'
24191    ofile='$ofile'
24192
24193
24194
24195
24196_ACEOF
24197
24198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24199
24200# Handling of arguments.
24201for ac_config_target in $ac_config_targets
24202do
24203  case $ac_config_target in
24204    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24205    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
24206    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24207    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24208    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24209    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24210    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24211    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
24212    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24213    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
24214    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
24215    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
24216    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24217    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
24218    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
24219    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
24220    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
24221    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
24222    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
24223    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
24224    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
24225    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
24226    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
24227    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
24228    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
24229    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
24230    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
24231    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
24232    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
24233    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
24234    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
24235    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
24236    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
24237    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
24238
24239  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24240  esac
24241done
24242
24243
24244# If the user did not use the arguments to specify the items to instantiate,
24245# then the envvar interface is used.  Set only those that are not.
24246# We use the long form for the default assignment because of an extremely
24247# bizarre bug on SunOS 4.1.3.
24248if $ac_need_defaults; then
24249  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24250  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24251  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24252fi
24253
24254# Have a temporary directory for convenience.  Make it in the build tree
24255# simply because there is no reason against having it here, and in addition,
24256# creating and moving files from /tmp can sometimes cause problems.
24257# Hook for its removal unless debugging.
24258# Note that there is a small window in which the directory will not be cleaned:
24259# after its creation but before its name has been assigned to `$tmp'.
24260$debug ||
24261{
24262  tmp= ac_tmp=
24263  trap 'exit_status=$?
24264  : "${ac_tmp:=$tmp}"
24265  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24266' 0
24267  trap 'as_fn_exit 1' 1 2 13 15
24268}
24269# Create a (secure) tmp directory for tmp files.
24270
24271{
24272  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24273  test -d "$tmp"
24274}  ||
24275{
24276  tmp=./conf$$-$RANDOM
24277  (umask 077 && mkdir "$tmp")
24278} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24279ac_tmp=$tmp
24280
24281# Set up the scripts for CONFIG_FILES section.
24282# No need to generate them if there are no CONFIG_FILES.
24283# This happens for instance with `./config.status config.h'.
24284if test -n "$CONFIG_FILES"; then
24285
24286
24287ac_cr=`echo X | tr X '\015'`
24288# On cygwin, bash can eat \r inside `` if the user requested igncr.
24289# But we know of no other shell where ac_cr would be empty at this
24290# point, so we can use a bashism as a fallback.
24291if test "x$ac_cr" = x; then
24292  eval ac_cr=\$\'\\r\'
24293fi
24294ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24295if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24296  ac_cs_awk_cr='\\r'
24297else
24298  ac_cs_awk_cr=$ac_cr
24299fi
24300
24301echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24302_ACEOF
24303
24304
24305{
24306  echo "cat >conf$$subs.awk <<_ACEOF" &&
24307  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24308  echo "_ACEOF"
24309} >conf$$subs.sh ||
24310  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24312ac_delim='%!_!# '
24313for ac_last_try in false false false false false :; do
24314  . ./conf$$subs.sh ||
24315    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24316
24317  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24318  if test $ac_delim_n = $ac_delim_num; then
24319    break
24320  elif $ac_last_try; then
24321    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24322  else
24323    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24324  fi
24325done
24326rm -f conf$$subs.sh
24327
24328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24330_ACEOF
24331sed -n '
24332h
24333s/^/S["/; s/!.*/"]=/
24334p
24335g
24336s/^[^!]*!//
24337:repl
24338t repl
24339s/'"$ac_delim"'$//
24340t delim
24341:nl
24342h
24343s/\(.\{148\}\)..*/\1/
24344t more1
24345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24346p
24347n
24348b repl
24349:more1
24350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24351p
24352g
24353s/.\{148\}//
24354t nl
24355:delim
24356h
24357s/\(.\{148\}\)..*/\1/
24358t more2
24359s/["\\]/\\&/g; s/^/"/; s/$/"/
24360p
24361b
24362:more2
24363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24364p
24365g
24366s/.\{148\}//
24367t delim
24368' <conf$$subs.awk | sed '
24369/^[^""]/{
24370  N
24371  s/\n//
24372}
24373' >>$CONFIG_STATUS || ac_write_fail=1
24374rm -f conf$$subs.awk
24375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24376_ACAWK
24377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24378  for (key in S) S_is_set[key] = 1
24379  FS = ""
24380
24381}
24382{
24383  line = $ 0
24384  nfields = split(line, field, "@")
24385  substed = 0
24386  len = length(field[1])
24387  for (i = 2; i < nfields; i++) {
24388    key = field[i]
24389    keylen = length(key)
24390    if (S_is_set[key]) {
24391      value = S[key]
24392      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24393      len += length(value) + length(field[++i])
24394      substed = 1
24395    } else
24396      len += 1 + keylen
24397  }
24398
24399  print line
24400}
24401
24402_ACAWK
24403_ACEOF
24404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24406  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24407else
24408  cat
24409fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24410  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24411_ACEOF
24412
24413# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24414# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24415# trailing colons and then remove the whole line if VPATH becomes empty
24416# (actually we leave an empty line to preserve line numbers).
24417if test "x$srcdir" = x.; then
24418  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24419h
24420s///
24421s/^/:/
24422s/[	 ]*$/:/
24423s/:\$(srcdir):/:/g
24424s/:\${srcdir}:/:/g
24425s/:@srcdir@:/:/g
24426s/^:*//
24427s/:*$//
24428x
24429s/\(=[	 ]*\).*/\1/
24430G
24431s/\n//
24432s/^[^=]*=[	 ]*$//
24433}'
24434fi
24435
24436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24437fi # test -n "$CONFIG_FILES"
24438
24439# Set up the scripts for CONFIG_HEADERS section.
24440# No need to generate them if there are no CONFIG_HEADERS.
24441# This happens for instance with `./config.status Makefile'.
24442if test -n "$CONFIG_HEADERS"; then
24443cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24444BEGIN {
24445_ACEOF
24446
24447# Transform confdefs.h into an awk script `defines.awk', embedded as
24448# here-document in config.status, that substitutes the proper values into
24449# config.h.in to produce config.h.
24450
24451# Create a delimiter string that does not exist in confdefs.h, to ease
24452# handling of long lines.
24453ac_delim='%!_!# '
24454for ac_last_try in false false :; do
24455  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24456  if test -z "$ac_tt"; then
24457    break
24458  elif $ac_last_try; then
24459    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24460  else
24461    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24462  fi
24463done
24464
24465# For the awk script, D is an array of macro values keyed by name,
24466# likewise P contains macro parameters if any.  Preserve backslash
24467# newline sequences.
24468
24469ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24470sed -n '
24471s/.\{148\}/&'"$ac_delim"'/g
24472t rset
24473:rset
24474s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24475t def
24476d
24477:def
24478s/\\$//
24479t bsnl
24480s/["\\]/\\&/g
24481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24482D["\1"]=" \3"/p
24483s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24484d
24485:bsnl
24486s/["\\]/\\&/g
24487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24488D["\1"]=" \3\\\\\\n"\\/p
24489t cont
24490s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24491t cont
24492d
24493:cont
24494n
24495s/.\{148\}/&'"$ac_delim"'/g
24496t clear
24497:clear
24498s/\\$//
24499t bsnlc
24500s/["\\]/\\&/g; s/^/"/; s/$/"/p
24501d
24502:bsnlc
24503s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24504b cont
24505' <confdefs.h | sed '
24506s/'"$ac_delim"'/"\\\
24507"/g' >>$CONFIG_STATUS || ac_write_fail=1
24508
24509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24510  for (key in D) D_is_set[key] = 1
24511  FS = ""
24512}
24513/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24514  line = \$ 0
24515  split(line, arg, " ")
24516  if (arg[1] == "#") {
24517    defundef = arg[2]
24518    mac1 = arg[3]
24519  } else {
24520    defundef = substr(arg[1], 2)
24521    mac1 = arg[2]
24522  }
24523  split(mac1, mac2, "(") #)
24524  macro = mac2[1]
24525  prefix = substr(line, 1, index(line, defundef) - 1)
24526  if (D_is_set[macro]) {
24527    # Preserve the white space surrounding the "#".
24528    print prefix "define", macro P[macro] D[macro]
24529    next
24530  } else {
24531    # Replace #undef with comments.  This is necessary, for example,
24532    # in the case of _POSIX_SOURCE, which is predefined and required
24533    # on some systems where configure will not decide to define it.
24534    if (defundef == "undef") {
24535      print "/*", prefix defundef, macro, "*/"
24536      next
24537    }
24538  }
24539}
24540{ print }
24541_ACAWK
24542_ACEOF
24543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24544  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24545fi # test -n "$CONFIG_HEADERS"
24546
24547
24548eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24549shift
24550for ac_tag
24551do
24552  case $ac_tag in
24553  :[FHLC]) ac_mode=$ac_tag; continue;;
24554  esac
24555  case $ac_mode$ac_tag in
24556  :[FHL]*:*);;
24557  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24558  :[FH]-) ac_tag=-:-;;
24559  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24560  esac
24561  ac_save_IFS=$IFS
24562  IFS=:
24563  set x $ac_tag
24564  IFS=$ac_save_IFS
24565  shift
24566  ac_file=$1
24567  shift
24568
24569  case $ac_mode in
24570  :L) ac_source=$1;;
24571  :[FH])
24572    ac_file_inputs=
24573    for ac_f
24574    do
24575      case $ac_f in
24576      -) ac_f="$ac_tmp/stdin";;
24577      *) # Look for the file first in the build tree, then in the source tree
24578	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24579	 # because $ac_f cannot contain `:'.
24580	 test -f "$ac_f" ||
24581	   case $ac_f in
24582	   [\\/$]*) false;;
24583	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24584	   esac ||
24585	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24586      esac
24587      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24588      as_fn_append ac_file_inputs " '$ac_f'"
24589    done
24590
24591    # Let's still pretend it is `configure' which instantiates (i.e., don't
24592    # use $as_me), people would be surprised to read:
24593    #    /* config.h.  Generated by config.status.  */
24594    configure_input='Generated from '`
24595	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24596	`' by configure.'
24597    if test x"$ac_file" != x-; then
24598      configure_input="$ac_file.  $configure_input"
24599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24600printf "%s\n" "$as_me: creating $ac_file" >&6;}
24601    fi
24602    # Neutralize special characters interpreted by sed in replacement strings.
24603    case $configure_input in #(
24604    *\&* | *\|* | *\\* )
24605       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24606       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24607    *) ac_sed_conf_input=$configure_input;;
24608    esac
24609
24610    case $ac_tag in
24611    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24612      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24613    esac
24614    ;;
24615  esac
24616
24617  ac_dir=`$as_dirname -- "$ac_file" ||
24618$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24619	 X"$ac_file" : 'X\(//\)[^/]' \| \
24620	 X"$ac_file" : 'X\(//\)$' \| \
24621	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24622printf "%s\n" X"$ac_file" |
24623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24624	    s//\1/
24625	    q
24626	  }
24627	  /^X\(\/\/\)[^/].*/{
24628	    s//\1/
24629	    q
24630	  }
24631	  /^X\(\/\/\)$/{
24632	    s//\1/
24633	    q
24634	  }
24635	  /^X\(\/\).*/{
24636	    s//\1/
24637	    q
24638	  }
24639	  s/.*/./; q'`
24640  as_dir="$ac_dir"; as_fn_mkdir_p
24641  ac_builddir=.
24642
24643case "$ac_dir" in
24644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24645*)
24646  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24647  # A ".." for each directory in $ac_dir_suffix.
24648  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24649  case $ac_top_builddir_sub in
24650  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24651  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24652  esac ;;
24653esac
24654ac_abs_top_builddir=$ac_pwd
24655ac_abs_builddir=$ac_pwd$ac_dir_suffix
24656# for backward compatibility:
24657ac_top_builddir=$ac_top_build_prefix
24658
24659case $srcdir in
24660  .)  # We are building in place.
24661    ac_srcdir=.
24662    ac_top_srcdir=$ac_top_builddir_sub
24663    ac_abs_top_srcdir=$ac_pwd ;;
24664  [\\/]* | ?:[\\/]* )  # Absolute name.
24665    ac_srcdir=$srcdir$ac_dir_suffix;
24666    ac_top_srcdir=$srcdir
24667    ac_abs_top_srcdir=$srcdir ;;
24668  *) # Relative name.
24669    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24670    ac_top_srcdir=$ac_top_build_prefix$srcdir
24671    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24672esac
24673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24674
24675
24676  case $ac_mode in
24677  :F)
24678  #
24679  # CONFIG_FILE
24680  #
24681
24682  case $INSTALL in
24683  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24684  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24685  esac
24686  ac_MKDIR_P=$MKDIR_P
24687  case $MKDIR_P in
24688  [\\/$]* | ?:[\\/]* ) ;;
24689  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24690  esac
24691_ACEOF
24692
24693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24694# If the template does not know about datarootdir, expand it.
24695# FIXME: This hack should be removed a few years after 2.60.
24696ac_datarootdir_hack=; ac_datarootdir_seen=
24697ac_sed_dataroot='
24698/datarootdir/ {
24699  p
24700  q
24701}
24702/@datadir@/p
24703/@docdir@/p
24704/@infodir@/p
24705/@localedir@/p
24706/@mandir@/p'
24707case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24708*datarootdir*) ac_datarootdir_seen=yes;;
24709*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24711printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24712_ACEOF
24713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24714  ac_datarootdir_hack='
24715  s&@datadir@&$datadir&g
24716  s&@docdir@&$docdir&g
24717  s&@infodir@&$infodir&g
24718  s&@localedir@&$localedir&g
24719  s&@mandir@&$mandir&g
24720  s&\\\${datarootdir}&$datarootdir&g' ;;
24721esac
24722_ACEOF
24723
24724# Neutralize VPATH when `$srcdir' = `.'.
24725# Shell code in configure.ac might set extrasub.
24726# FIXME: do we really want to maintain this feature?
24727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24728ac_sed_extra="$ac_vpsub
24729$extrasub
24730_ACEOF
24731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24732:t
24733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24734s|@configure_input@|$ac_sed_conf_input|;t t
24735s&@top_builddir@&$ac_top_builddir_sub&;t t
24736s&@top_build_prefix@&$ac_top_build_prefix&;t t
24737s&@srcdir@&$ac_srcdir&;t t
24738s&@abs_srcdir@&$ac_abs_srcdir&;t t
24739s&@top_srcdir@&$ac_top_srcdir&;t t
24740s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24741s&@builddir@&$ac_builddir&;t t
24742s&@abs_builddir@&$ac_abs_builddir&;t t
24743s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24744s&@INSTALL@&$ac_INSTALL&;t t
24745s&@MKDIR_P@&$ac_MKDIR_P&;t t
24746$ac_datarootdir_hack
24747"
24748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24749  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24750
24751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24752  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24753  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24754      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24756which seems to be undefined.  Please make sure it is defined" >&5
24757printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24758which seems to be undefined.  Please make sure it is defined" >&2;}
24759
24760  rm -f "$ac_tmp/stdin"
24761  case $ac_file in
24762  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24763  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24764  esac \
24765  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24766 ;;
24767  :H)
24768  #
24769  # CONFIG_HEADER
24770  #
24771  if test x"$ac_file" != x-; then
24772    {
24773      printf "%s\n" "/* $configure_input  */" >&1 \
24774      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24775    } >"$ac_tmp/config.h" \
24776      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24777    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24778      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24779printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24780    else
24781      rm -f "$ac_file"
24782      mv "$ac_tmp/config.h" "$ac_file" \
24783	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24784    fi
24785  else
24786    printf "%s\n" "/* $configure_input  */" >&1 \
24787      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24788      || as_fn_error $? "could not create -" "$LINENO" 5
24789  fi
24790# Compute "$ac_file"'s index in $config_headers.
24791_am_arg="$ac_file"
24792_am_stamp_count=1
24793for _am_header in $config_headers :; do
24794  case $_am_header in
24795    $_am_arg | $_am_arg:* )
24796      break ;;
24797    * )
24798      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24799  esac
24800done
24801echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24802$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24803	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24804	 X"$_am_arg" : 'X\(//\)$' \| \
24805	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24806printf "%s\n" X"$_am_arg" |
24807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24808	    s//\1/
24809	    q
24810	  }
24811	  /^X\(\/\/\)[^/].*/{
24812	    s//\1/
24813	    q
24814	  }
24815	  /^X\(\/\/\)$/{
24816	    s//\1/
24817	    q
24818	  }
24819	  /^X\(\/\).*/{
24820	    s//\1/
24821	    q
24822	  }
24823	  s/.*/./; q'`/stamp-h$_am_stamp_count
24824 ;;
24825
24826  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24827printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24828 ;;
24829  esac
24830
24831
24832  case $ac_file$ac_mode in
24833    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24834  # Older Autoconf quotes --file arguments for eval, but not when files
24835  # are listed without --file.  Let's play safe and only enable the eval
24836  # if we detect the quoting.
24837  # TODO: see whether this extra hack can be removed once we start
24838  # requiring Autoconf 2.70 or later.
24839  case $CONFIG_FILES in #(
24840  *\'*) :
24841    eval set x "$CONFIG_FILES" ;; #(
24842  *) :
24843    set x $CONFIG_FILES ;; #(
24844  *) :
24845     ;;
24846esac
24847  shift
24848  # Used to flag and report bootstrapping failures.
24849  am_rc=0
24850  for am_mf
24851  do
24852    # Strip MF so we end up with the name of the file.
24853    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24854    # Check whether this is an Automake generated Makefile which includes
24855    # dependency-tracking related rules and includes.
24856    # Grep'ing the whole file directly is not great: AIX grep has a line
24857    # limit of 2048, but all sed's we know have understand at least 4000.
24858    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24859      || continue
24860    am_dirpart=`$as_dirname -- "$am_mf" ||
24861$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24862	 X"$am_mf" : 'X\(//\)[^/]' \| \
24863	 X"$am_mf" : 'X\(//\)$' \| \
24864	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24865printf "%s\n" X"$am_mf" |
24866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24867	    s//\1/
24868	    q
24869	  }
24870	  /^X\(\/\/\)[^/].*/{
24871	    s//\1/
24872	    q
24873	  }
24874	  /^X\(\/\/\)$/{
24875	    s//\1/
24876	    q
24877	  }
24878	  /^X\(\/\).*/{
24879	    s//\1/
24880	    q
24881	  }
24882	  s/.*/./; q'`
24883    am_filepart=`$as_basename -- "$am_mf" ||
24884$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24885	 X"$am_mf" : 'X\(//\)$' \| \
24886	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24887printf "%s\n" X/"$am_mf" |
24888    sed '/^.*\/\([^/][^/]*\)\/*$/{
24889	    s//\1/
24890	    q
24891	  }
24892	  /^X\/\(\/\/\)$/{
24893	    s//\1/
24894	    q
24895	  }
24896	  /^X\/\(\/\).*/{
24897	    s//\1/
24898	    q
24899	  }
24900	  s/.*/./; q'`
24901    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24902      && sed -e '/# am--include-marker/d' "$am_filepart" \
24903        | $MAKE -f - am--depfiles" >&5
24904   (cd "$am_dirpart" \
24905      && sed -e '/# am--include-marker/d' "$am_filepart" \
24906        | $MAKE -f - am--depfiles) >&5 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } || am_rc=$?
24910  done
24911  if test $am_rc -ne 0; then
24912    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24913printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24914as_fn_error $? "Something went wrong bootstrapping makefile fragments
24915    for automatic dependency tracking.  If GNU make was not used, consider
24916    re-running the configure script with MAKE=\"gmake\" (or whatever is
24917    necessary).  You can also try re-running configure with the
24918    '--disable-dependency-tracking' option to at least be able to build
24919    the package (albeit without support for automatic dependency tracking).
24920See \`config.log' for more details" "$LINENO" 5; }
24921  fi
24922  { am_dirpart=; unset am_dirpart;}
24923  { am_filepart=; unset am_filepart;}
24924  { am_mf=; unset am_mf;}
24925  { am_rc=; unset am_rc;}
24926  rm -f conftest-deps.mk
24927}
24928 ;;
24929    "libtool":C)
24930
24931    # See if we are running on zsh, and set the options that allow our
24932    # commands through without removal of \ escapes.
24933    if test -n "${ZSH_VERSION+set}"; then
24934      setopt NO_GLOB_SUBST
24935    fi
24936
24937    cfgfile=${ofile}T
24938    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24939    $RM "$cfgfile"
24940
24941    cat <<_LT_EOF >> "$cfgfile"
24942#! $SHELL
24943# Generated automatically by $as_me ($PACKAGE) $VERSION
24944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24945# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24946
24947# Provide generalized library-building support services.
24948# Written by Gordon Matzigkeit, 1996
24949
24950# Copyright (C) 2014 Free Software Foundation, Inc.
24951# This is free software; see the source for copying conditions.  There is NO
24952# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24953
24954# GNU Libtool is free software; you can redistribute it and/or modify
24955# it under the terms of the GNU General Public License as published by
24956# the Free Software Foundation; either version 2 of of the License, or
24957# (at your option) any later version.
24958#
24959# As a special exception to the GNU General Public License, if you
24960# distribute this file as part of a program or library that is built
24961# using GNU Libtool, you may include this file under the  same
24962# distribution terms that you use for the rest of that program.
24963#
24964# GNU Libtool is distributed in the hope that it will be useful, but
24965# WITHOUT ANY WARRANTY; without even the implied warranty of
24966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24967# GNU General Public License for more details.
24968#
24969# You should have received a copy of the GNU General Public License
24970# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24971
24972
24973# The names of the tagged configurations supported by this script.
24974available_tags=''
24975
24976# Configured defaults for sys_lib_dlsearch_path munging.
24977: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24978
24979# ### BEGIN LIBTOOL CONFIG
24980
24981# Which release of libtool.m4 was used?
24982macro_version=$macro_version
24983macro_revision=$macro_revision
24984
24985# Whether or not to build shared libraries.
24986build_libtool_libs=$enable_shared
24987
24988# Whether or not to build static libraries.
24989build_old_libs=$enable_static
24990
24991# What type of objects to build.
24992pic_mode=$pic_mode
24993
24994# Whether or not to optimize for fast installation.
24995fast_install=$enable_fast_install
24996
24997# Shared archive member basename,for filename based shared library versioning on AIX.
24998shared_archive_member_spec=$shared_archive_member_spec
24999
25000# Shell to use when invoking shell scripts.
25001SHELL=$lt_SHELL
25002
25003# An echo program that protects backslashes.
25004ECHO=$lt_ECHO
25005
25006# The PATH separator for the build system.
25007PATH_SEPARATOR=$lt_PATH_SEPARATOR
25008
25009# The host system.
25010host_alias=$host_alias
25011host=$host
25012host_os=$host_os
25013
25014# The build system.
25015build_alias=$build_alias
25016build=$build
25017build_os=$build_os
25018
25019# A sed program that does not truncate output.
25020SED=$lt_SED
25021
25022# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25023Xsed="\$SED -e 1s/^X//"
25024
25025# A grep program that handles long lines.
25026GREP=$lt_GREP
25027
25028# An ERE matcher.
25029EGREP=$lt_EGREP
25030
25031# A literal string matcher.
25032FGREP=$lt_FGREP
25033
25034# A BSD- or MS-compatible name lister.
25035NM=$lt_NM
25036
25037# Whether we need soft or hard links.
25038LN_S=$lt_LN_S
25039
25040# What is the maximum length of a command?
25041max_cmd_len=$max_cmd_len
25042
25043# Object file suffix (normally "o").
25044objext=$ac_objext
25045
25046# Executable file suffix (normally "").
25047exeext=$exeext
25048
25049# whether the shell understands "unset".
25050lt_unset=$lt_unset
25051
25052# turn spaces into newlines.
25053SP2NL=$lt_lt_SP2NL
25054
25055# turn newlines into spaces.
25056NL2SP=$lt_lt_NL2SP
25057
25058# convert \$build file names to \$host format.
25059to_host_file_cmd=$lt_cv_to_host_file_cmd
25060
25061# convert \$build files to toolchain format.
25062to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25063
25064# A file(cmd) program that detects file types.
25065FILECMD=$lt_FILECMD
25066
25067# An object symbol dumper.
25068OBJDUMP=$lt_OBJDUMP
25069
25070# Method to check whether dependent libraries are shared objects.
25071deplibs_check_method=$lt_deplibs_check_method
25072
25073# Command to use when deplibs_check_method = "file_magic".
25074file_magic_cmd=$lt_file_magic_cmd
25075
25076# How to find potential files when deplibs_check_method = "file_magic".
25077file_magic_glob=$lt_file_magic_glob
25078
25079# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25080want_nocaseglob=$lt_want_nocaseglob
25081
25082# DLL creation program.
25083DLLTOOL=$lt_DLLTOOL
25084
25085# Command to associate shared and link libraries.
25086sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25087
25088# The archiver.
25089AR=$lt_AR
25090
25091# Flags to create an archive (by configure).
25092lt_ar_flags=$lt_ar_flags
25093
25094# Flags to create an archive.
25095AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25096
25097# How to feed a file listing to the archiver.
25098archiver_list_spec=$lt_archiver_list_spec
25099
25100# A symbol stripping program.
25101STRIP=$lt_STRIP
25102
25103# Commands used to install an old-style archive.
25104RANLIB=$lt_RANLIB
25105old_postinstall_cmds=$lt_old_postinstall_cmds
25106old_postuninstall_cmds=$lt_old_postuninstall_cmds
25107
25108# Whether to use a lock for old archive extraction.
25109lock_old_archive_extraction=$lock_old_archive_extraction
25110
25111# A C compiler.
25112LTCC=$lt_CC
25113
25114# LTCC compiler flags.
25115LTCFLAGS=$lt_CFLAGS
25116
25117# Take the output of nm and produce a listing of raw symbols and C names.
25118global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25119
25120# Transform the output of nm in a proper C declaration.
25121global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25122
25123# Transform the output of nm into a list of symbols to manually relocate.
25124global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25125
25126# Transform the output of nm in a C name address pair.
25127global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25128
25129# Transform the output of nm in a C name address pair when lib prefix is needed.
25130global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25131
25132# The name lister interface.
25133nm_interface=$lt_lt_cv_nm_interface
25134
25135# Specify filename containing input files for \$NM.
25136nm_file_list_spec=$lt_nm_file_list_spec
25137
25138# The root where to search for dependent libraries,and where our libraries should be installed.
25139lt_sysroot=$lt_sysroot
25140
25141# Command to truncate a binary pipe.
25142lt_truncate_bin=$lt_lt_cv_truncate_bin
25143
25144# The name of the directory that contains temporary libtool files.
25145objdir=$objdir
25146
25147# Used to examine libraries when file_magic_cmd begins with "file".
25148MAGIC_CMD=$MAGIC_CMD
25149
25150# Must we lock files when doing compilation?
25151need_locks=$lt_need_locks
25152
25153# Manifest tool.
25154MANIFEST_TOOL=$lt_MANIFEST_TOOL
25155
25156# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25157DSYMUTIL=$lt_DSYMUTIL
25158
25159# Tool to change global to local symbols on Mac OS X.
25160NMEDIT=$lt_NMEDIT
25161
25162# Tool to manipulate fat objects and archives on Mac OS X.
25163LIPO=$lt_LIPO
25164
25165# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25166OTOOL=$lt_OTOOL
25167
25168# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25169OTOOL64=$lt_OTOOL64
25170
25171# Old archive suffix (normally "a").
25172libext=$libext
25173
25174# Shared library suffix (normally ".so").
25175shrext_cmds=$lt_shrext_cmds
25176
25177# The commands to extract the exported symbol list from a shared archive.
25178extract_expsyms_cmds=$lt_extract_expsyms_cmds
25179
25180# Variables whose values should be saved in libtool wrapper scripts and
25181# restored at link time.
25182variables_saved_for_relink=$lt_variables_saved_for_relink
25183
25184# Do we need the "lib" prefix for modules?
25185need_lib_prefix=$need_lib_prefix
25186
25187# Do we need a version for libraries?
25188need_version=$need_version
25189
25190# Library versioning type.
25191version_type=$version_type
25192
25193# Shared library runtime path variable.
25194runpath_var=$runpath_var
25195
25196# Shared library path variable.
25197shlibpath_var=$shlibpath_var
25198
25199# Is shlibpath searched before the hard-coded library search path?
25200shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25201
25202# Format of library name prefix.
25203libname_spec=$lt_libname_spec
25204
25205# List of archive names.  First name is the real one, the rest are links.
25206# The last name is the one that the linker finds with -lNAME
25207library_names_spec=$lt_library_names_spec
25208
25209# The coded name of the library, if different from the real name.
25210soname_spec=$lt_soname_spec
25211
25212# Permission mode override for installation of shared libraries.
25213install_override_mode=$lt_install_override_mode
25214
25215# Command to use after installation of a shared archive.
25216postinstall_cmds=$lt_postinstall_cmds
25217
25218# Command to use after uninstallation of a shared archive.
25219postuninstall_cmds=$lt_postuninstall_cmds
25220
25221# Commands used to finish a libtool library installation in a directory.
25222finish_cmds=$lt_finish_cmds
25223
25224# As "finish_cmds", except a single script fragment to be evaled but
25225# not shown.
25226finish_eval=$lt_finish_eval
25227
25228# Whether we should hardcode library paths into libraries.
25229hardcode_into_libs=$hardcode_into_libs
25230
25231# Compile-time system search path for libraries.
25232sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25233
25234# Detected run-time system search path for libraries.
25235sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25236
25237# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25238configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25239
25240# Whether dlopen is supported.
25241dlopen_support=$enable_dlopen
25242
25243# Whether dlopen of programs is supported.
25244dlopen_self=$enable_dlopen_self
25245
25246# Whether dlopen of statically linked programs is supported.
25247dlopen_self_static=$enable_dlopen_self_static
25248
25249# Commands to strip libraries.
25250old_striplib=$lt_old_striplib
25251striplib=$lt_striplib
25252
25253
25254# The linker used to build libraries.
25255LD=$lt_LD
25256
25257# How to create reloadable object files.
25258reload_flag=$lt_reload_flag
25259reload_cmds=$lt_reload_cmds
25260
25261# Commands used to build an old-style archive.
25262old_archive_cmds=$lt_old_archive_cmds
25263
25264# A language specific compiler.
25265CC=$lt_compiler
25266
25267# Is the compiler the GNU compiler?
25268with_gcc=$GCC
25269
25270# Compiler flag to turn off builtin functions.
25271no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25272
25273# Additional compiler flags for building library objects.
25274pic_flag=$lt_lt_prog_compiler_pic
25275
25276# How to pass a linker flag through the compiler.
25277wl=$lt_lt_prog_compiler_wl
25278
25279# Compiler flag to prevent dynamic linking.
25280link_static_flag=$lt_lt_prog_compiler_static
25281
25282# Does compiler simultaneously support -c and -o options?
25283compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25284
25285# Whether or not to add -lc for building shared libraries.
25286build_libtool_need_lc=$archive_cmds_need_lc
25287
25288# Whether or not to disallow shared libs when runtime libs are static.
25289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25290
25291# Compiler flag to allow reflexive dlopens.
25292export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25293
25294# Compiler flag to generate shared objects directly from archives.
25295whole_archive_flag_spec=$lt_whole_archive_flag_spec
25296
25297# Whether the compiler copes with passing no objects directly.
25298compiler_needs_object=$lt_compiler_needs_object
25299
25300# Create an old-style archive from a shared archive.
25301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25302
25303# Create a temporary old-style archive to link instead of a shared archive.
25304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25305
25306# Commands used to build a shared archive.
25307archive_cmds=$lt_archive_cmds
25308archive_expsym_cmds=$lt_archive_expsym_cmds
25309
25310# Commands used to build a loadable module if different from building
25311# a shared archive.
25312module_cmds=$lt_module_cmds
25313module_expsym_cmds=$lt_module_expsym_cmds
25314
25315# Whether we are building with GNU ld or not.
25316with_gnu_ld=$lt_with_gnu_ld
25317
25318# Flag that allows shared libraries with undefined symbols to be built.
25319allow_undefined_flag=$lt_allow_undefined_flag
25320
25321# Flag that enforces no undefined symbols.
25322no_undefined_flag=$lt_no_undefined_flag
25323
25324# Flag to hardcode \$libdir into a binary during linking.
25325# This must work even if \$libdir does not exist
25326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25327
25328# Whether we need a single "-rpath" flag with a separated argument.
25329hardcode_libdir_separator=$lt_hardcode_libdir_separator
25330
25331# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25332# DIR into the resulting binary.
25333hardcode_direct=$hardcode_direct
25334
25335# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25336# DIR into the resulting binary and the resulting library dependency is
25337# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25338# library is relocated.
25339hardcode_direct_absolute=$hardcode_direct_absolute
25340
25341# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25342# into the resulting binary.
25343hardcode_minus_L=$hardcode_minus_L
25344
25345# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25346# into the resulting binary.
25347hardcode_shlibpath_var=$hardcode_shlibpath_var
25348
25349# Set to "yes" if building a shared library automatically hardcodes DIR
25350# into the library and all subsequent libraries and executables linked
25351# against it.
25352hardcode_automatic=$hardcode_automatic
25353
25354# Set to yes if linker adds runtime paths of dependent libraries
25355# to runtime path list.
25356inherit_rpath=$inherit_rpath
25357
25358# Whether libtool must link a program against all its dependency libraries.
25359link_all_deplibs=$link_all_deplibs
25360
25361# Set to "yes" if exported symbols are required.
25362always_export_symbols=$always_export_symbols
25363
25364# The commands to list exported symbols.
25365export_symbols_cmds=$lt_export_symbols_cmds
25366
25367# Symbols that should not be listed in the preloaded symbols.
25368exclude_expsyms=$lt_exclude_expsyms
25369
25370# Symbols that must always be exported.
25371include_expsyms=$lt_include_expsyms
25372
25373# Commands necessary for linking programs (against libraries) with templates.
25374prelink_cmds=$lt_prelink_cmds
25375
25376# Commands necessary for finishing linking programs.
25377postlink_cmds=$lt_postlink_cmds
25378
25379# Specify filename containing input files.
25380file_list_spec=$lt_file_list_spec
25381
25382# How to hardcode a shared library path into an executable.
25383hardcode_action=$hardcode_action
25384
25385# ### END LIBTOOL CONFIG
25386
25387_LT_EOF
25388
25389    cat <<'_LT_EOF' >> "$cfgfile"
25390
25391# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25392
25393# func_munge_path_list VARIABLE PATH
25394# -----------------------------------
25395# VARIABLE is name of variable containing _space_ separated list of
25396# directories to be munged by the contents of PATH, which is string
25397# having a format:
25398# "DIR[:DIR]:"
25399#       string "DIR[ DIR]" will be prepended to VARIABLE
25400# ":DIR[:DIR]"
25401#       string "DIR[ DIR]" will be appended to VARIABLE
25402# "DIRP[:DIRP]::[DIRA:]DIRA"
25403#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25404#       "DIRA[ DIRA]" will be appended to VARIABLE
25405# "DIR[:DIR]"
25406#       VARIABLE will be replaced by "DIR[ DIR]"
25407func_munge_path_list ()
25408{
25409    case x$2 in
25410    x)
25411        ;;
25412    *:)
25413        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25414        ;;
25415    x:*)
25416        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25417        ;;
25418    *::*)
25419        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25420        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25421        ;;
25422    *)
25423        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25424        ;;
25425    esac
25426}
25427
25428
25429# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25430func_cc_basename ()
25431{
25432    for cc_temp in $*""; do
25433      case $cc_temp in
25434        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25435        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25436        \-*) ;;
25437        *) break;;
25438      esac
25439    done
25440    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25441}
25442
25443
25444# ### END FUNCTIONS SHARED WITH CONFIGURE
25445
25446_LT_EOF
25447
25448  case $host_os in
25449  aix3*)
25450    cat <<\_LT_EOF >> "$cfgfile"
25451# AIX sometimes has problems with the GCC collect2 program.  For some
25452# reason, if we set the COLLECT_NAMES environment variable, the problems
25453# vanish in a puff of smoke.
25454if test set != "${COLLECT_NAMES+set}"; then
25455  COLLECT_NAMES=
25456  export COLLECT_NAMES
25457fi
25458_LT_EOF
25459    ;;
25460  esac
25461
25462
25463
25464ltmain=$ac_aux_dir/ltmain.sh
25465
25466
25467  # We use sed instead of cat because bash on DJGPP gets confused if
25468  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25469  # text mode, it properly converts lines to CR/LF.  This bash problem
25470  # is reportedly fixed, but why not run on old versions too?
25471  $SED '$q' "$ltmain" >> "$cfgfile" \
25472     || (rm -f "$cfgfile"; exit 1)
25473
25474   mv -f "$cfgfile" "$ofile" ||
25475    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25476  chmod +x "$ofile"
25477
25478 ;;
25479
25480  esac
25481done # for ac_tag
25482
25483
25484as_fn_exit 0
25485_ACEOF
25486ac_clean_files=$ac_clean_files_save
25487
25488test $ac_write_fail = 0 ||
25489  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25490
25491
25492# configure is writing to config.log, and then calls config.status.
25493# config.status does its own redirection, appending to config.log.
25494# Unfortunately, on DOS this fails, as config.log is still kept open
25495# by configure, so config.status won't be able to write to it; its
25496# output is simply discarded.  So we exec the FD to /dev/null,
25497# effectively closing config.log, so it can be properly (re)opened and
25498# appended to by config.status.  When coming back to configure, we
25499# need to make the FD available again.
25500if test "$no_create" != yes; then
25501  ac_cs_success=:
25502  ac_config_status_args=
25503  test "$silent" = yes &&
25504    ac_config_status_args="$ac_config_status_args --quiet"
25505  exec 5>/dev/null
25506  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25507  exec 5>>config.log
25508  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25509  # would make configure fail if this is the last instruction.
25510  $ac_cs_success || as_fn_exit 1
25511fi
25512if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25514printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25515fi
25516
25517
25518echo ""
25519echo "X11 will be built with the following settings:"
25520echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
25521echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
25522echo " Threading support:                       "$xthreads
25523echo " Use Threads safe API:                    "$mtsafeapi
25524echo " Threads stubs in libX11:                 "$thrstubs
25525echo " XCMS:                                    "$XCMS
25526echo " Internationalization support:            "$XLOCALE
25527echo " XF86BigFont support:                     "$XF86BIGFONT
25528echo " XKB support:                             "$XKB
25529echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
25530echo " Compose table cache enabled:             "$COMPOSECACHE
25531echo " Functional specs building enabled:       "$build_specs
25532echo ""
25533
25534