configure revision 5efbdfc3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libX11 1.8.2.
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.2'
686PACKAGE_STRING='libX11 1.8.2'
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
760USE_THREAD_LIBS
761XTHREAD_CFLAGS
762XTHREADLIB
763LAUNCHD
764OS2_FALSE
765OS2_TRUE
766WCHAR32
767LIBOBJS
768XLIB_LOADABLE_I18N_FALSE
769XLIB_LOADABLE_I18N_TRUE
770I18N_MODULE_LIBS
771X11_EXTRA_DEPS
772EXEEXT_FOR_BUILD
773LDFLAGS_FOR_BUILD
774CFLAGS_FOR_BUILD
775CPPFLAGS_FOR_BUILD
776CC_FOR_BUILD
777HAVE_PERL_FALSE
778HAVE_PERL_TRUE
779PERL
780TRADITIONALCPPFLAGS
781RAWCPPFLAGS
782RAWCPP
783CPP
784HAVE_STYLESHEETS_FALSE
785HAVE_STYLESHEETS_TRUE
786XSL_STYLESHEET
787STYLESHEET_SRCDIR
788XORG_SGML_PATH
789HAVE_XSLTPROC_FALSE
790HAVE_XSLTPROC_TRUE
791XSLTPROC
792HAVE_FOP_FALSE
793HAVE_FOP_TRUE
794FOP
795HAVE_XMLTO_FALSE
796HAVE_XMLTO_TRUE
797HAVE_XMLTO_TEXT_FALSE
798HAVE_XMLTO_TEXT_TRUE
799XMLTO
800ENABLE_SPECS_FALSE
801ENABLE_SPECS_TRUE
802MAN_SUBSTS
803XORG_MAN_PAGE
804ADMIN_MAN_DIR
805DRIVER_MAN_DIR
806MISC_MAN_DIR
807FILE_MAN_DIR
808LIB_MAN_DIR
809APP_MAN_DIR
810ADMIN_MAN_SUFFIX
811DRIVER_MAN_SUFFIX
812MISC_MAN_SUFFIX
813FILE_MAN_SUFFIX
814LIB_MAN_SUFFIX
815APP_MAN_SUFFIX
816INSTALL_CMD
817PKG_CONFIG_LIBDIR
818PKG_CONFIG_PATH
819PKG_CONFIG
820CHANGELOG_CMD
821STRICT_CFLAGS
822CWARNFLAGS
823BASE_CFLAGS
824LT_SYS_LIBRARY_PATH
825OTOOL64
826OTOOL
827LIPO
828NMEDIT
829DSYMUTIL
830MANIFEST_TOOL
831RANLIB
832ac_ct_AR
833AR
834DLLTOOL
835OBJDUMP
836FILECMD
837LN_S
838NM
839ac_ct_DUMPBIN
840DUMPBIN
841LD
842FGREP
843EGREP
844GREP
845SED
846LIBTOOL
847AM_BACKSLASH
848AM_DEFAULT_VERBOSITY
849AM_DEFAULT_V
850AM_V
851CSCOPE
852ETAGS
853CTAGS
854am__fastdepCC_FALSE
855am__fastdepCC_TRUE
856CCDEPMODE
857am__nodep
858AMDEPBACKSLASH
859AMDEP_FALSE
860AMDEP_TRUE
861am__include
862DEPDIR
863am__untar
864am__tar
865AMTAR
866am__leading_dot
867SET_MAKE
868AWK
869mkdir_p
870MKDIR_P
871INSTALL_STRIP_PROGRAM
872STRIP
873install_sh
874MAKEINFO
875AUTOHEADER
876AUTOMAKE
877AUTOCONF
878ACLOCAL
879VERSION
880PACKAGE
881CYGPATH_W
882am__isrc
883INSTALL_DATA
884INSTALL_SCRIPT
885INSTALL_PROGRAM
886OBJEXT
887EXEEXT
888ac_ct_CC
889CPPFLAGS
890LDFLAGS
891CFLAGS
892CC
893host_os
894host_vendor
895host_cpu
896host
897build_os
898build_vendor
899build_cpu
900build
901target_alias
902host_alias
903build_alias
904LIBS
905ECHO_T
906ECHO_N
907ECHO_C
908DEFS
909mandir
910localedir
911libdir
912psdir
913pdfdir
914dvidir
915htmldir
916infodir
917docdir
918oldincludedir
919includedir
920runstatedir
921localstatedir
922sharedstatedir
923sysconfdir
924datadir
925datarootdir
926libexecdir
927sbindir
928bindir
929program_transform_name
930prefix
931exec_prefix
932PACKAGE_URL
933PACKAGE_BUGREPORT
934PACKAGE_STRING
935PACKAGE_VERSION
936PACKAGE_TARNAME
937PACKAGE_NAME
938PATH_SEPARATOR
939SHELL
940am__quote'
941ac_subst_files=''
942ac_user_opts='
943enable_option_checking
944enable_dependency_tracking
945enable_silent_rules
946enable_shared
947enable_static
948with_pic
949enable_fast_install
950with_aix_soname
951with_gnu_ld
952with_sysroot
953enable_libtool_lock
954enable_largefile
955enable_selective_werror
956enable_strict_compilation
957enable_specs
958with_xmlto
959with_fop
960with_xsltproc
961with_perl
962enable_unix_transport
963enable_tcp_transport
964enable_ipv6
965enable_local_transport
966enable_loadable_i18n
967enable_loadable_xcursor
968enable_thread_safety_constructor
969with_launchd
970enable_xthreads
971with_keysymdefdir
972enable_xcms
973enable_xlocale
974enable_xlocaledir
975enable_xf86bigfont
976enable_xkb
977enable_composecache
978with_lint
979enable_lint_library
980with_locale_lib_dir
981enable_malloc0returnsnull
982'
983      ac_precious_vars='build_alias
984host_alias
985target_alias
986CC
987CFLAGS
988LDFLAGS
989LIBS
990CPPFLAGS
991LT_SYS_LIBRARY_PATH
992PKG_CONFIG
993PKG_CONFIG_PATH
994PKG_CONFIG_LIBDIR
995XMLTO
996FOP
997XSLTPROC
998CPP
999PERL
1000BIGFONT_CFLAGS
1001BIGFONT_LIBS
1002LINT
1003LINT_FLAGS
1004X11_CFLAGS
1005X11_LIBS'
1006
1007
1008# Initialize some variables set by options.
1009ac_init_help=
1010ac_init_version=false
1011ac_unrecognized_opts=
1012ac_unrecognized_sep=
1013# The variables have the same names as the options, with
1014# dashes changed to underlines.
1015cache_file=/dev/null
1016exec_prefix=NONE
1017no_create=
1018no_recursion=
1019prefix=NONE
1020program_prefix=NONE
1021program_suffix=NONE
1022program_transform_name=s,x,x,
1023silent=
1024site=
1025srcdir=
1026verbose=
1027x_includes=NONE
1028x_libraries=NONE
1029
1030# Installation directory options.
1031# These are left unexpanded so users can "make install exec_prefix=/foo"
1032# and all the variables that are supposed to be based on exec_prefix
1033# by default will actually change.
1034# Use braces instead of parens because sh, perl, etc. also accept them.
1035# (The list follows the same order as the GNU Coding Standards.)
1036bindir='${exec_prefix}/bin'
1037sbindir='${exec_prefix}/sbin'
1038libexecdir='${exec_prefix}/libexec'
1039datarootdir='${prefix}/share'
1040datadir='${datarootdir}'
1041sysconfdir='${prefix}/etc'
1042sharedstatedir='${prefix}/com'
1043localstatedir='${prefix}/var'
1044runstatedir='${localstatedir}/run'
1045includedir='${prefix}/include'
1046oldincludedir='/usr/include'
1047docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048infodir='${datarootdir}/info'
1049htmldir='${docdir}'
1050dvidir='${docdir}'
1051pdfdir='${docdir}'
1052psdir='${docdir}'
1053libdir='${exec_prefix}/lib'
1054localedir='${datarootdir}/locale'
1055mandir='${datarootdir}/man'
1056
1057ac_prev=
1058ac_dashdash=
1059for ac_option
1060do
1061  # If the previous option needs an argument, assign it.
1062  if test -n "$ac_prev"; then
1063    eval $ac_prev=\$ac_option
1064    ac_prev=
1065    continue
1066  fi
1067
1068  case $ac_option in
1069  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070  *=)   ac_optarg= ;;
1071  *)    ac_optarg=yes ;;
1072  esac
1073
1074  case $ac_dashdash$ac_option in
1075  --)
1076    ac_dashdash=yes ;;
1077
1078  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079    ac_prev=bindir ;;
1080  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081    bindir=$ac_optarg ;;
1082
1083  -build | --build | --buil | --bui | --bu)
1084    ac_prev=build_alias ;;
1085  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086    build_alias=$ac_optarg ;;
1087
1088  -cache-file | --cache-file | --cache-fil | --cache-fi \
1089  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090    ac_prev=cache_file ;;
1091  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093    cache_file=$ac_optarg ;;
1094
1095  --config-cache | -C)
1096    cache_file=config.cache ;;
1097
1098  -datadir | --datadir | --datadi | --datad)
1099    ac_prev=datadir ;;
1100  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101    datadir=$ac_optarg ;;
1102
1103  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104  | --dataroo | --dataro | --datar)
1105    ac_prev=datarootdir ;;
1106  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108    datarootdir=$ac_optarg ;;
1109
1110  -disable-* | --disable-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"enable_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval enable_$ac_useropt=no ;;
1125
1126  -docdir | --docdir | --docdi | --doc | --do)
1127    ac_prev=docdir ;;
1128  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129    docdir=$ac_optarg ;;
1130
1131  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132    ac_prev=dvidir ;;
1133  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134    dvidir=$ac_optarg ;;
1135
1136  -enable-* | --enable-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"enable_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval enable_$ac_useropt=\$ac_optarg ;;
1151
1152  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154  | --exec | --exe | --ex)
1155    ac_prev=exec_prefix ;;
1156  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158  | --exec=* | --exe=* | --ex=*)
1159    exec_prefix=$ac_optarg ;;
1160
1161  -gas | --gas | --ga | --g)
1162    # Obsolete; use --with-gas.
1163    with_gas=yes ;;
1164
1165  -help | --help | --hel | --he | -h)
1166    ac_init_help=long ;;
1167  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168    ac_init_help=recursive ;;
1169  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170    ac_init_help=short ;;
1171
1172  -host | --host | --hos | --ho)
1173    ac_prev=host_alias ;;
1174  -host=* | --host=* | --hos=* | --ho=*)
1175    host_alias=$ac_optarg ;;
1176
1177  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178    ac_prev=htmldir ;;
1179  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180  | --ht=*)
1181    htmldir=$ac_optarg ;;
1182
1183  -includedir | --includedir | --includedi | --included | --include \
1184  | --includ | --inclu | --incl | --inc)
1185    ac_prev=includedir ;;
1186  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187  | --includ=* | --inclu=* | --incl=* | --inc=*)
1188    includedir=$ac_optarg ;;
1189
1190  -infodir | --infodir | --infodi | --infod | --info | --inf)
1191    ac_prev=infodir ;;
1192  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193    infodir=$ac_optarg ;;
1194
1195  -libdir | --libdir | --libdi | --libd)
1196    ac_prev=libdir ;;
1197  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198    libdir=$ac_optarg ;;
1199
1200  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201  | --libexe | --libex | --libe)
1202    ac_prev=libexecdir ;;
1203  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204  | --libexe=* | --libex=* | --libe=*)
1205    libexecdir=$ac_optarg ;;
1206
1207  -localedir | --localedir | --localedi | --localed | --locale)
1208    ac_prev=localedir ;;
1209  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210    localedir=$ac_optarg ;;
1211
1212  -localstatedir | --localstatedir | --localstatedi | --localstated \
1213  | --localstate | --localstat | --localsta | --localst | --locals)
1214    ac_prev=localstatedir ;;
1215  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217    localstatedir=$ac_optarg ;;
1218
1219  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220    ac_prev=mandir ;;
1221  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222    mandir=$ac_optarg ;;
1223
1224  -nfp | --nfp | --nf)
1225    # Obsolete; use --without-fp.
1226    with_fp=no ;;
1227
1228  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229  | --no-cr | --no-c | -n)
1230    no_create=yes ;;
1231
1232  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234    no_recursion=yes ;;
1235
1236  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238  | --oldin | --oldi | --old | --ol | --o)
1239    ac_prev=oldincludedir ;;
1240  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243    oldincludedir=$ac_optarg ;;
1244
1245  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246    ac_prev=prefix ;;
1247  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248    prefix=$ac_optarg ;;
1249
1250  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251  | --program-pre | --program-pr | --program-p)
1252    ac_prev=program_prefix ;;
1253  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255    program_prefix=$ac_optarg ;;
1256
1257  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258  | --program-suf | --program-su | --program-s)
1259    ac_prev=program_suffix ;;
1260  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262    program_suffix=$ac_optarg ;;
1263
1264  -program-transform-name | --program-transform-name \
1265  | --program-transform-nam | --program-transform-na \
1266  | --program-transform-n | --program-transform- \
1267  | --program-transform | --program-transfor \
1268  | --program-transfo | --program-transf \
1269  | --program-trans | --program-tran \
1270  | --progr-tra | --program-tr | --program-t)
1271    ac_prev=program_transform_name ;;
1272  -program-transform-name=* | --program-transform-name=* \
1273  | --program-transform-nam=* | --program-transform-na=* \
1274  | --program-transform-n=* | --program-transform-=* \
1275  | --program-transform=* | --program-transfor=* \
1276  | --program-transfo=* | --program-transf=* \
1277  | --program-trans=* | --program-tran=* \
1278  | --progr-tra=* | --program-tr=* | --program-t=*)
1279    program_transform_name=$ac_optarg ;;
1280
1281  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282    ac_prev=pdfdir ;;
1283  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284    pdfdir=$ac_optarg ;;
1285
1286  -psdir | --psdir | --psdi | --psd | --ps)
1287    ac_prev=psdir ;;
1288  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289    psdir=$ac_optarg ;;
1290
1291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292  | -silent | --silent | --silen | --sile | --sil)
1293    silent=yes ;;
1294
1295  -runstatedir | --runstatedir | --runstatedi | --runstated \
1296  | --runstate | --runstat | --runsta | --runst | --runs \
1297  | --run | --ru | --r)
1298    ac_prev=runstatedir ;;
1299  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1300  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1301  | --run=* | --ru=* | --r=*)
1302    runstatedir=$ac_optarg ;;
1303
1304  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305    ac_prev=sbindir ;;
1306  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307  | --sbi=* | --sb=*)
1308    sbindir=$ac_optarg ;;
1309
1310  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1311  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1312  | --sharedst | --shareds | --shared | --share | --shar \
1313  | --sha | --sh)
1314    ac_prev=sharedstatedir ;;
1315  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1316  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1317  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318  | --sha=* | --sh=*)
1319    sharedstatedir=$ac_optarg ;;
1320
1321  -site | --site | --sit)
1322    ac_prev=site ;;
1323  -site=* | --site=* | --sit=*)
1324    site=$ac_optarg ;;
1325
1326  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327    ac_prev=srcdir ;;
1328  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1329    srcdir=$ac_optarg ;;
1330
1331  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1332  | --syscon | --sysco | --sysc | --sys | --sy)
1333    ac_prev=sysconfdir ;;
1334  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1335  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1336    sysconfdir=$ac_optarg ;;
1337
1338  -target | --target | --targe | --targ | --tar | --ta | --t)
1339    ac_prev=target_alias ;;
1340  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1341    target_alias=$ac_optarg ;;
1342
1343  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344    verbose=yes ;;
1345
1346  -version | --version | --versio | --versi | --vers | -V)
1347    ac_init_version=: ;;
1348
1349  -with-* | --with-*)
1350    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1351    # Reject names that are not valid shell variable names.
1352    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353      as_fn_error $? "invalid package name: \`$ac_useropt'"
1354    ac_useropt_orig=$ac_useropt
1355    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1356    case $ac_user_opts in
1357      *"
1358"with_$ac_useropt"
1359"*) ;;
1360      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1361	 ac_unrecognized_sep=', ';;
1362    esac
1363    eval with_$ac_useropt=\$ac_optarg ;;
1364
1365  -without-* | --without-*)
1366    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369      as_fn_error $? "invalid package name: \`$ac_useropt'"
1370    ac_useropt_orig=$ac_useropt
1371    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1372    case $ac_user_opts in
1373      *"
1374"with_$ac_useropt"
1375"*) ;;
1376      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377	 ac_unrecognized_sep=', ';;
1378    esac
1379    eval with_$ac_useropt=no ;;
1380
1381  --x)
1382    # Obsolete; use --with-x.
1383    with_x=yes ;;
1384
1385  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386  | --x-incl | --x-inc | --x-in | --x-i)
1387    ac_prev=x_includes ;;
1388  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390    x_includes=$ac_optarg ;;
1391
1392  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394    ac_prev=x_libraries ;;
1395  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397    x_libraries=$ac_optarg ;;
1398
1399  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1400Try \`$0 --help' for more information"
1401    ;;
1402
1403  *=*)
1404    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1405    # Reject names that are not valid shell variable names.
1406    case $ac_envvar in #(
1407      '' | [0-9]* | *[!_$as_cr_alnum]* )
1408      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1409    esac
1410    eval $ac_envvar=\$ac_optarg
1411    export $ac_envvar ;;
1412
1413  *)
1414    # FIXME: should be removed in autoconf 3.0.
1415    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1416    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1418    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1419    ;;
1420
1421  esac
1422done
1423
1424if test -n "$ac_prev"; then
1425  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426  as_fn_error $? "missing argument to $ac_option"
1427fi
1428
1429if test -n "$ac_unrecognized_opts"; then
1430  case $enable_option_checking in
1431    no) ;;
1432    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1433    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434  esac
1435fi
1436
1437# Check all directory arguments for consistency.
1438for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1439		datadir sysconfdir sharedstatedir localstatedir includedir \
1440		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1441		libdir localedir mandir runstatedir
1442do
1443  eval ac_val=\$$ac_var
1444  # Remove trailing slashes.
1445  case $ac_val in
1446    */ )
1447      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1448      eval $ac_var=\$ac_val;;
1449  esac
1450  # Be sure to have absolute directory names.
1451  case $ac_val in
1452    [\\/$]* | ?:[\\/]* )  continue;;
1453    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454  esac
1455  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1456done
1457
1458# There might be people who depend on the old broken behavior: `$host'
1459# used to hold the argument of --host etc.
1460# FIXME: To remove some day.
1461build=$build_alias
1462host=$host_alias
1463target=$target_alias
1464
1465# FIXME: To remove some day.
1466if test "x$host_alias" != x; then
1467  if test "x$build_alias" = x; then
1468    cross_compiling=maybe
1469  elif test "x$build_alias" != "x$host_alias"; then
1470    cross_compiling=yes
1471  fi
1472fi
1473
1474ac_tool_prefix=
1475test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476
1477test "$silent" = yes && exec 6>/dev/null
1478
1479
1480ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481ac_ls_di=`ls -di .` &&
1482ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483  as_fn_error $? "working directory cannot be determined"
1484test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1485  as_fn_error $? "pwd does not report name of working directory"
1486
1487
1488# Find the source files, if location was not specified.
1489if test -z "$srcdir"; then
1490  ac_srcdir_defaulted=yes
1491  # Try the directory containing this script, then the parent directory.
1492  ac_confdir=`$as_dirname -- "$as_myself" ||
1493$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1494	 X"$as_myself" : 'X\(//\)[^/]' \| \
1495	 X"$as_myself" : 'X\(//\)$' \| \
1496	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1497printf "%s\n" X"$as_myself" |
1498    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1499	    s//\1/
1500	    q
1501	  }
1502	  /^X\(\/\/\)[^/].*/{
1503	    s//\1/
1504	    q
1505	  }
1506	  /^X\(\/\/\)$/{
1507	    s//\1/
1508	    q
1509	  }
1510	  /^X\(\/\).*/{
1511	    s//\1/
1512	    q
1513	  }
1514	  s/.*/./; q'`
1515  srcdir=$ac_confdir
1516  if test ! -r "$srcdir/$ac_unique_file"; then
1517    srcdir=..
1518  fi
1519else
1520  ac_srcdir_defaulted=no
1521fi
1522if test ! -r "$srcdir/$ac_unique_file"; then
1523  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1524  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1525fi
1526ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527ac_abs_confdir=`(
1528	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1529	pwd)`
1530# When building in place, set srcdir=.
1531if test "$ac_abs_confdir" = "$ac_pwd"; then
1532  srcdir=.
1533fi
1534# Remove unnecessary trailing slashes from srcdir.
1535# Double slashes in file names in object file debugging info
1536# mess up M-x gdb in Emacs.
1537case $srcdir in
1538*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1539esac
1540for ac_var in $ac_precious_vars; do
1541  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1542  eval ac_env_${ac_var}_value=\$${ac_var}
1543  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1544  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1545done
1546
1547#
1548# Report the --help message.
1549#
1550if test "$ac_init_help" = "long"; then
1551  # Omit some internal or obsolete options to make the list less imposing.
1552  # This message is too long to be a string in the A/UX 3.1 sh.
1553  cat <<_ACEOF
1554\`configure' configures libX11 1.8.2 to adapt to many kinds of systems.
1555
1556Usage: $0 [OPTION]... [VAR=VALUE]...
1557
1558To assign environment variables (e.g., CC, CFLAGS...), specify them as
1559VAR=VALUE.  See below for descriptions of some of the useful variables.
1560
1561Defaults for the options are specified in brackets.
1562
1563Configuration:
1564  -h, --help              display this help and exit
1565      --help=short        display options specific to this package
1566      --help=recursive    display the short help of all the included packages
1567  -V, --version           display version information and exit
1568  -q, --quiet, --silent   do not print \`checking ...' messages
1569      --cache-file=FILE   cache test results in FILE [disabled]
1570  -C, --config-cache      alias for \`--cache-file=config.cache'
1571  -n, --no-create         do not create output files
1572      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1573
1574Installation directories:
1575  --prefix=PREFIX         install architecture-independent files in PREFIX
1576                          [$ac_default_prefix]
1577  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1578                          [PREFIX]
1579
1580By default, \`make install' will install all the files in
1581\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1582an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1583for instance \`--prefix=\$HOME'.
1584
1585For better control, use the options below.
1586
1587Fine tuning of the installation directories:
1588  --bindir=DIR            user executables [EPREFIX/bin]
1589  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1590  --libexecdir=DIR        program executables [EPREFIX/libexec]
1591  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1592  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1593  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1594  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1595  --libdir=DIR            object code libraries [EPREFIX/lib]
1596  --includedir=DIR        C header files [PREFIX/include]
1597  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1598  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1599  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1600  --infodir=DIR           info documentation [DATAROOTDIR/info]
1601  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1602  --mandir=DIR            man documentation [DATAROOTDIR/man]
1603  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1604  --htmldir=DIR           html documentation [DOCDIR]
1605  --dvidir=DIR            dvi documentation [DOCDIR]
1606  --pdfdir=DIR            pdf documentation [DOCDIR]
1607  --psdir=DIR             ps documentation [DOCDIR]
1608_ACEOF
1609
1610  cat <<\_ACEOF
1611
1612Program names:
1613  --program-prefix=PREFIX            prepend PREFIX to installed program names
1614  --program-suffix=SUFFIX            append SUFFIX to installed program names
1615  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1616
1617System types:
1618  --build=BUILD     configure for building on BUILD [guessed]
1619  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1620_ACEOF
1621fi
1622
1623if test -n "$ac_init_help"; then
1624  case $ac_init_help in
1625     short | recursive ) echo "Configuration of libX11 1.8.2:";;
1626   esac
1627  cat <<\_ACEOF
1628
1629Optional Features:
1630  --disable-option-checking  ignore unrecognized --enable/--with options
1631  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1632  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1633  --enable-dependency-tracking
1634                          do not reject slow dependency extractors
1635  --disable-dependency-tracking
1636                          speeds up one-time build
1637  --enable-silent-rules   less verbose build output (undo: "make V=1")
1638  --disable-silent-rules  verbose build output (undo: "make V=0")
1639  --enable-shared[=PKGS]  build shared libraries [default=yes]
1640  --enable-static[=PKGS]  build static libraries [default=yes]
1641  --enable-fast-install[=PKGS]
1642                          optimize for fast installation [default=yes]
1643  --disable-libtool-lock  avoid locking (might break parallel builds)
1644  --disable-largefile     omit support for large files
1645  --disable-selective-werror
1646                          Turn off selective compiler errors. (default:
1647                          enabled)
1648  --enable-strict-compilation
1649                          Enable all warnings from compiler and make them
1650                          errors (default: disabled)
1651  --enable-specs          Enable building the specs (default: yes)
1652  --enable-unix-transport Enable UNIX domain socket transport
1653  --enable-tcp-transport  Enable TCP socket transport
1654  --enable-ipv6           Enable IPv6 support
1655  --enable-local-transport
1656                          Enable os-specific local transport
1657  --enable-loadable-i18n  Controls loadable i18n module support
1658  --disable-loadable-xcursor
1659                          Controls loadable xcursor library support
1660  --disable-thread-safety-constructor
1661                          Controls mandatory thread safety support
1662  --disable-xthreads      Disable Xlib support for Multithreading
1663  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1664  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1665  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1666  --disable-xf86bigfont   Disable XF86BigFont extension support
1667  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1668  --disable-composecache  Disable compose table cache support
1669  --enable-lint-library   Create lint library (default: disabled)
1670  --enable-malloc0returnsnull
1671                          malloc(0) returns NULL (default: auto)
1672
1673Optional Packages:
1674  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1675  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1676  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1677                          both]
1678  --with-aix-soname=aix|svr4|both
1679                          shared library versioning (aka "SONAME") variant to
1680                          provide on AIX, [default=aix].
1681  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1682  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1683                          compiler's sysroot if not specified).
1684  --with-xmlto            Use xmlto to regenerate documentation (default:
1685                          auto)
1686  --with-fop              Use fop to regenerate documentation (default: no)
1687  --with-xsltproc         Use xsltproc for the transformation of XML documents
1688                          (default: auto)
1689  --with-perl             Use perl for extracting information from files
1690                          (default: auto)
1691  --with-launchd          Build with support for Apple's launchd (default:
1692                          auto)
1693  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1694                          include dir)
1695  --with-lint             Use a lint-style source code checker (default:
1696                          disabled)
1697  --with-locale-lib-dir=DIR
1698                          Directory where locale libraries files are installed
1699                          (default: $libdir/X11/locale)
1700
1701Some influential environment variables:
1702  CC          C compiler command
1703  CFLAGS      C compiler flags
1704  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1705              nonstandard directory <lib dir>
1706  LIBS        libraries to pass to the linker, e.g. -l<library>
1707  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1708              you have headers in a nonstandard directory <include dir>
1709  LT_SYS_LIBRARY_PATH
1710              User-defined run-time library search path.
1711  PKG_CONFIG  path to pkg-config utility
1712  PKG_CONFIG_PATH
1713              directories to add to pkg-config's search path
1714  PKG_CONFIG_LIBDIR
1715              path overriding pkg-config's built-in search path
1716  XMLTO       Path to xmlto command
1717  FOP         Path to fop command
1718  XSLTPROC    Path to xsltproc command
1719  CPP         C preprocessor
1720  PERL        Path to perl command
1721  BIGFONT_CFLAGS
1722              C compiler flags for BIGFONT, overriding pkg-config
1723  BIGFONT_LIBS
1724              linker flags for BIGFONT, overriding pkg-config
1725  LINT        Path to a lint-style command
1726  LINT_FLAGS  Flags for the lint-style command
1727  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1728  X11_LIBS    linker flags for X11, overriding pkg-config
1729
1730Use these variables to override the choices made by `configure' or to help
1731it to find libraries and programs with nonstandard names/locations.
1732
1733Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>.
1734_ACEOF
1735ac_status=$?
1736fi
1737
1738if test "$ac_init_help" = "recursive"; then
1739  # If there are subdirs, report their specific --help.
1740  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1741    test -d "$ac_dir" ||
1742      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743      continue
1744    ac_builddir=.
1745
1746case "$ac_dir" in
1747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748*)
1749  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1750  # A ".." for each directory in $ac_dir_suffix.
1751  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1752  case $ac_top_builddir_sub in
1753  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755  esac ;;
1756esac
1757ac_abs_top_builddir=$ac_pwd
1758ac_abs_builddir=$ac_pwd$ac_dir_suffix
1759# for backward compatibility:
1760ac_top_builddir=$ac_top_build_prefix
1761
1762case $srcdir in
1763  .)  # We are building in place.
1764    ac_srcdir=.
1765    ac_top_srcdir=$ac_top_builddir_sub
1766    ac_abs_top_srcdir=$ac_pwd ;;
1767  [\\/]* | ?:[\\/]* )  # Absolute name.
1768    ac_srcdir=$srcdir$ac_dir_suffix;
1769    ac_top_srcdir=$srcdir
1770    ac_abs_top_srcdir=$srcdir ;;
1771  *) # Relative name.
1772    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1773    ac_top_srcdir=$ac_top_build_prefix$srcdir
1774    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1775esac
1776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1777
1778    cd "$ac_dir" || { ac_status=$?; continue; }
1779    # Check for configure.gnu first; this name is used for a wrapper for
1780    # Metaconfig's "Configure" on case-insensitive file systems.
1781    if test -f "$ac_srcdir/configure.gnu"; then
1782      echo &&
1783      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784    elif test -f "$ac_srcdir/configure"; then
1785      echo &&
1786      $SHELL "$ac_srcdir/configure" --help=recursive
1787    else
1788      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789    fi || ac_status=$?
1790    cd "$ac_pwd" || { ac_status=$?; break; }
1791  done
1792fi
1793
1794test -n "$ac_init_help" && exit $ac_status
1795if $ac_init_version; then
1796  cat <<\_ACEOF
1797libX11 configure 1.8.2
1798generated by GNU Autoconf 2.71
1799
1800Copyright (C) 2021 Free Software Foundation, Inc.
1801This configure script is free software; the Free Software Foundation
1802gives unlimited permission to copy, distribute and modify it.
1803_ACEOF
1804  exit
1805fi
1806
1807## ------------------------ ##
1808## Autoconf initialization. ##
1809## ------------------------ ##
1810
1811# ac_fn_c_try_compile LINENO
1812# --------------------------
1813# Try to compile conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_compile ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  rm -f conftest.$ac_objext conftest.beam
1818  if { { ac_try="$ac_compile"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824printf "%s\n" "$ac_try_echo"; } >&5
1825  (eval "$ac_compile") 2>conftest.err
1826  ac_status=$?
1827  if test -s conftest.err; then
1828    grep -v '^ *+' conftest.err >conftest.er1
1829    cat conftest.er1 >&5
1830    mv -f conftest.er1 conftest.err
1831  fi
1832  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && {
1834	 test -z "$ac_c_werror_flag" ||
1835	 test ! -s conftest.err
1836       } && test -s conftest.$ac_objext
1837then :
1838  ac_retval=0
1839else $as_nop
1840  printf "%s\n" "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843	ac_retval=1
1844fi
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_compile
1849
1850# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851# -------------------------------------------------------
1852# Tests whether HEADER exists and can be compiled using the include files in
1853# INCLUDES, setting the cache variable VAR accordingly.
1854ac_fn_c_check_header_compile ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858printf %s "checking for $2... " >&6; }
1859if eval test \${$3+y}
1860then :
1861  printf %s "(cached) " >&6
1862else $as_nop
1863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"
1869then :
1870  eval "$3=yes"
1871else $as_nop
1872  eval "$3=no"
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878printf "%s\n" "$ac_res" >&6; }
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881} # ac_fn_c_check_header_compile
1882
1883# ac_fn_c_try_link LINENO
1884# -----------------------
1885# Try to link conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_c_try_link ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1890  if { { ac_try="$ac_link"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896printf "%s\n" "$ac_try_echo"; } >&5
1897  (eval "$ac_link") 2>conftest.err
1898  ac_status=$?
1899  if test -s conftest.err; then
1900    grep -v '^ *+' conftest.err >conftest.er1
1901    cat conftest.er1 >&5
1902    mv -f conftest.er1 conftest.err
1903  fi
1904  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905  test $ac_status = 0; } && {
1906	 test -z "$ac_c_werror_flag" ||
1907	 test ! -s conftest.err
1908       } && test -s conftest$ac_exeext && {
1909	 test "$cross_compiling" = yes ||
1910	 test -x conftest$ac_exeext
1911       }
1912then :
1913  ac_retval=0
1914else $as_nop
1915  printf "%s\n" "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918	ac_retval=1
1919fi
1920  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922  # interfere with the next link command; also delete a directory that is
1923  # left behind by Apple's compiler.  We do this before executing the actions.
1924  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_link
1929
1930# ac_fn_c_check_func LINENO FUNC VAR
1931# ----------------------------------
1932# Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937printf %s "checking for $2... " >&6; }
1938if eval test \${$3+y}
1939then :
1940  printf %s "(cached) " >&6
1941else $as_nop
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1946#define $2 innocuous_$2
1947
1948/* System header to define __stub macros and hopefully few prototypes,
1949   which can conflict with char $2 (); below.  */
1950
1951#include <limits.h>
1952#undef $2
1953
1954/* Override any GCC internal prototype to avoid an error.
1955   Use char because int might match the return type of a GCC
1956   builtin and then its argument prototype would still apply.  */
1957#ifdef __cplusplus
1958extern "C"
1959#endif
1960char $2 ();
1961/* The GNU C library defines this for functions which it implements
1962    to always fail with ENOSYS.  Some functions are actually named
1963    something starting with __ and the normal name is an alias.  */
1964#if defined __stub_$2 || defined __stub___$2
1965choke me
1966#endif
1967
1968int
1969main (void)
1970{
1971return $2 ();
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_link "$LINENO"
1977then :
1978  eval "$3=yes"
1979else $as_nop
1980  eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.beam \
1983    conftest$ac_exeext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987printf "%s\n" "$ac_res" >&6; }
1988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_func
1991
1992# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1993# ------------------------------------------------------------------
1994# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1996ac_fn_check_decl ()
1997{
1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999  as_decl_name=`echo $2|sed 's/ *(.*//'`
2000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2001printf %s "checking whether $as_decl_name is declared... " >&6; }
2002if eval test \${$3+y}
2003then :
2004  printf %s "(cached) " >&6
2005else $as_nop
2006  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2007  eval ac_save_FLAGS=\$$6
2008  as_fn_append $6 " $5"
2009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h.  */
2011$4
2012int
2013main (void)
2014{
2015#ifndef $as_decl_name
2016#ifdef __cplusplus
2017  (void) $as_decl_use;
2018#else
2019  (void) $as_decl_name;
2020#endif
2021#endif
2022
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"
2028then :
2029  eval "$3=yes"
2030else $as_nop
2031  eval "$3=no"
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2034  eval $6=\$ac_save_FLAGS
2035
2036fi
2037eval ac_res=\$$3
2038	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039printf "%s\n" "$ac_res" >&6; }
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_check_decl
2043
2044# ac_fn_c_try_cpp LINENO
2045# ----------------------
2046# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_cpp ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  if { { ac_try="$ac_cpp conftest.$ac_ext"
2051case "(($ac_try" in
2052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053  *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056printf "%s\n" "$ac_try_echo"; } >&5
2057  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2058  ac_status=$?
2059  if test -s conftest.err; then
2060    grep -v '^ *+' conftest.err >conftest.er1
2061    cat conftest.er1 >&5
2062    mv -f conftest.er1 conftest.err
2063  fi
2064  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065  test $ac_status = 0; } > conftest.i && {
2066	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2067	 test ! -s conftest.err
2068       }
2069then :
2070  ac_retval=0
2071else $as_nop
2072  printf "%s\n" "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075    ac_retval=1
2076fi
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078  as_fn_set_status $ac_retval
2079
2080} # ac_fn_c_try_cpp
2081
2082# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2083# ----------------------------------------------------
2084# Tries to find if the field MEMBER exists in type AGGR, after including
2085# INCLUDES, setting cache variable VAR accordingly.
2086ac_fn_c_check_member ()
2087{
2088  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2090printf %s "checking for $2.$3... " >&6; }
2091if eval test \${$4+y}
2092then :
2093  printf %s "(cached) " >&6
2094else $as_nop
2095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h.  */
2097$5
2098int
2099main (void)
2100{
2101static $2 ac_aggr;
2102if (ac_aggr.$3)
2103return 0;
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"
2109then :
2110  eval "$4=yes"
2111else $as_nop
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$5
2115int
2116main (void)
2117{
2118static $2 ac_aggr;
2119if (sizeof ac_aggr.$3)
2120return 0;
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"
2126then :
2127  eval "$4=yes"
2128else $as_nop
2129  eval "$4=no"
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2134fi
2135eval ac_res=\$$4
2136	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137printf "%s\n" "$ac_res" >&6; }
2138  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140} # ac_fn_c_check_member
2141
2142# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2143# -------------------------------------------
2144# Tests whether TYPE exists after having included INCLUDES, setting cache
2145# variable VAR accordingly.
2146ac_fn_c_check_type ()
2147{
2148  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150printf %s "checking for $2... " >&6; }
2151if eval test \${$3+y}
2152then :
2153  printf %s "(cached) " >&6
2154else $as_nop
2155  eval "$3=no"
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159int
2160main (void)
2161{
2162if (sizeof ($2))
2163	 return 0;
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"
2169then :
2170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173int
2174main (void)
2175{
2176if (sizeof (($2)))
2177	    return 0;
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"
2183then :
2184
2185else $as_nop
2186  eval "$3=yes"
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2191fi
2192eval ac_res=\$$3
2193	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194printf "%s\n" "$ac_res" >&6; }
2195  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197} # ac_fn_c_check_type
2198
2199# ac_fn_c_try_run LINENO
2200# ----------------------
2201# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2202# executables *can* be run.
2203ac_fn_c_try_run ()
2204{
2205  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206  if { { ac_try="$ac_link"
2207case "(($ac_try" in
2208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209  *) ac_try_echo=$ac_try;;
2210esac
2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212printf "%s\n" "$ac_try_echo"; } >&5
2213  (eval "$ac_link") 2>&5
2214  ac_status=$?
2215  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2217  { { case "(($ac_try" in
2218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219  *) ac_try_echo=$ac_try;;
2220esac
2221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222printf "%s\n" "$ac_try_echo"; } >&5
2223  (eval "$ac_try") 2>&5
2224  ac_status=$?
2225  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226  test $ac_status = 0; }; }
2227then :
2228  ac_retval=0
2229else $as_nop
2230  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2231       printf "%s\n" "$as_me: failed program was:" >&5
2232sed 's/^/| /' conftest.$ac_ext >&5
2233
2234       ac_retval=$ac_status
2235fi
2236  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238  as_fn_set_status $ac_retval
2239
2240} # ac_fn_c_try_run
2241ac_configure_args_raw=
2242for ac_arg
2243do
2244  case $ac_arg in
2245  *\'*)
2246    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247  esac
2248  as_fn_append ac_configure_args_raw " '$ac_arg'"
2249done
2250
2251case $ac_configure_args_raw in
2252  *$as_nl*)
2253    ac_safe_unquote= ;;
2254  *)
2255    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2256    ac_unsafe_a="$ac_unsafe_z#~"
2257    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2258    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2259esac
2260
2261cat >config.log <<_ACEOF
2262This file contains any messages produced by compilers while
2263running configure, to aid debugging if configure makes a mistake.
2264
2265It was created by libX11 $as_me 1.8.2, which was
2266generated by GNU Autoconf 2.71.  Invocation command line was
2267
2268  $ $0$ac_configure_args_raw
2269
2270_ACEOF
2271exec 5>>config.log
2272{
2273cat <<_ASUNAME
2274## --------- ##
2275## Platform. ##
2276## --------- ##
2277
2278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283
2284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2286
2287/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2288/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2291/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2292/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2293/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2294
2295_ASUNAME
2296
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  case $as_dir in #(((
2302    '') as_dir=./ ;;
2303    */) ;;
2304    *) as_dir=$as_dir/ ;;
2305  esac
2306    printf "%s\n" "PATH: $as_dir"
2307  done
2308IFS=$as_save_IFS
2309
2310} >&5
2311
2312cat >&5 <<_ACEOF
2313
2314
2315## ----------- ##
2316## Core tests. ##
2317## ----------- ##
2318
2319_ACEOF
2320
2321
2322# Keep a trace of the command line.
2323# Strip out --no-create and --no-recursion so they do not pile up.
2324# Strip out --silent because we don't want to record it for future runs.
2325# Also quote any args containing shell meta-characters.
2326# Make two passes to allow for proper duplicate-argument suppression.
2327ac_configure_args=
2328ac_configure_args0=
2329ac_configure_args1=
2330ac_must_keep_next=false
2331for ac_pass in 1 2
2332do
2333  for ac_arg
2334  do
2335    case $ac_arg in
2336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338    | -silent | --silent | --silen | --sile | --sil)
2339      continue ;;
2340    *\'*)
2341      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342    esac
2343    case $ac_pass in
2344    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345    2)
2346      as_fn_append ac_configure_args1 " '$ac_arg'"
2347      if test $ac_must_keep_next = true; then
2348	ac_must_keep_next=false # Got value, back to normal.
2349      else
2350	case $ac_arg in
2351	  *=* | --config-cache | -C | -disable-* | --disable-* \
2352	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354	  | -with-* | --with-* | -without-* | --without-* | --x)
2355	    case "$ac_configure_args0 " in
2356	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357	    esac
2358	    ;;
2359	  -* ) ac_must_keep_next=true ;;
2360	esac
2361      fi
2362      as_fn_append ac_configure_args " '$ac_arg'"
2363      ;;
2364    esac
2365  done
2366done
2367{ ac_configure_args0=; unset ac_configure_args0;}
2368{ ac_configure_args1=; unset ac_configure_args1;}
2369
2370# When interrupted or exit'd, cleanup temporary files, and complete
2371# config.log.  We remove comments because anyway the quotes in there
2372# would cause problems or look ugly.
2373# WARNING: Use '\'' to represent an apostrophe within the trap.
2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375trap 'exit_status=$?
2376  # Sanitize IFS.
2377  IFS=" ""	$as_nl"
2378  # Save into config.log some information that might help in debugging.
2379  {
2380    echo
2381
2382    printf "%s\n" "## ---------------- ##
2383## Cache variables. ##
2384## ---------------- ##"
2385    echo
2386    # The following way of writing the cache mishandles newlines in values,
2387(
2388  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389    eval ac_val=\$$ac_var
2390    case $ac_val in #(
2391    *${as_nl}*)
2392      case $ac_var in #(
2393      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395      esac
2396      case $ac_var in #(
2397      _ | IFS | as_nl) ;; #(
2398      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399      *) { eval $ac_var=; unset $ac_var;} ;;
2400      esac ;;
2401    esac
2402  done
2403  (set) 2>&1 |
2404    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405    *${as_nl}ac_space=\ *)
2406      sed -n \
2407	"s/'\''/'\''\\\\'\'''\''/g;
2408	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409      ;; #(
2410    *)
2411      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412      ;;
2413    esac |
2414    sort
2415)
2416    echo
2417
2418    printf "%s\n" "## ----------------- ##
2419## Output variables. ##
2420## ----------------- ##"
2421    echo
2422    for ac_var in $ac_subst_vars
2423    do
2424      eval ac_val=\$$ac_var
2425      case $ac_val in
2426      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427      esac
2428      printf "%s\n" "$ac_var='\''$ac_val'\''"
2429    done | sort
2430    echo
2431
2432    if test -n "$ac_subst_files"; then
2433      printf "%s\n" "## ------------------- ##
2434## File substitutions. ##
2435## ------------------- ##"
2436      echo
2437      for ac_var in $ac_subst_files
2438      do
2439	eval ac_val=\$$ac_var
2440	case $ac_val in
2441	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442	esac
2443	printf "%s\n" "$ac_var='\''$ac_val'\''"
2444      done | sort
2445      echo
2446    fi
2447
2448    if test -s confdefs.h; then
2449      printf "%s\n" "## ----------- ##
2450## confdefs.h. ##
2451## ----------- ##"
2452      echo
2453      cat confdefs.h
2454      echo
2455    fi
2456    test "$ac_signal" != 0 &&
2457      printf "%s\n" "$as_me: caught signal $ac_signal"
2458    printf "%s\n" "$as_me: exit $exit_status"
2459  } >&5
2460  rm -f core *.core core.conftest.* &&
2461    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462    exit $exit_status
2463' 0
2464for ac_signal in 1 2 13 15; do
2465  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466done
2467ac_signal=0
2468
2469# confdefs.h avoids OS command line length limits that DEFS can exceed.
2470rm -f -r conftest* confdefs.h
2471
2472printf "%s\n" "/* confdefs.h */" > confdefs.h
2473
2474# Predefined preprocessor variables.
2475
2476printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2477
2478printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2479
2480printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2481
2482printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2483
2484printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2485
2486printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2487
2488
2489# Let the site file select an alternate cache file if it wants to.
2490# Prefer an explicitly selected file to automatically selected ones.
2491if test -n "$CONFIG_SITE"; then
2492  ac_site_files="$CONFIG_SITE"
2493elif test "x$prefix" != xNONE; then
2494  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2495else
2496  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2497fi
2498
2499for ac_site_file in $ac_site_files
2500do
2501  case $ac_site_file in #(
2502  */*) :
2503     ;; #(
2504  *) :
2505    ac_site_file=./$ac_site_file ;;
2506esac
2507  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2510    sed 's/^/| /' "$ac_site_file" >&5
2511    . "$ac_site_file" \
2512      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2514as_fn_error $? "failed to load site script $ac_site_file
2515See \`config.log' for more details" "$LINENO" 5; }
2516  fi
2517done
2518
2519if test -r "$cache_file"; then
2520  # Some versions of bash will fail to source /dev/null (special files
2521  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2522  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2525    case $cache_file in
2526      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527      *)                      . "./$cache_file";;
2528    esac
2529  fi
2530else
2531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2533  >$cache_file
2534fi
2535
2536as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2537# Test code for whether the C compiler supports C89 (global declarations)
2538ac_c_conftest_c89_globals='
2539/* Does the compiler advertise C89 conformance?
2540   Do not test the value of __STDC__, because some compilers set it to 0
2541   while being otherwise adequately conformant. */
2542#if !defined __STDC__
2543# error "Compiler does not advertise C89 conformance"
2544#endif
2545
2546#include <stddef.h>
2547#include <stdarg.h>
2548struct stat;
2549/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2550struct buf { int x; };
2551struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2552static char *e (p, i)
2553     char **p;
2554     int i;
2555{
2556  return p[i];
2557}
2558static char *f (char * (*g) (char **, int), char **p, ...)
2559{
2560  char *s;
2561  va_list v;
2562  va_start (v,p);
2563  s = g (p, va_arg (v,int));
2564  va_end (v);
2565  return s;
2566}
2567
2568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2569   function prototypes and stuff, but not \xHH hex character constants.
2570   These do not provoke an error unfortunately, instead are silently treated
2571   as an "x".  The following induces an error, until -std is added to get
2572   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2573   array size at least.  It is necessary to write \x00 == 0 to get something
2574   that is true only with -std.  */
2575int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2576
2577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2578   inside strings and character constants.  */
2579#define FOO(x) '\''x'\''
2580int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2581
2582int test (int i, double x);
2583struct s1 {int (*f) (int a);};
2584struct s2 {int (*f) (double a);};
2585int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2586               int, int);'
2587
2588# Test code for whether the C compiler supports C89 (body of main).
2589ac_c_conftest_c89_main='
2590ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2591'
2592
2593# Test code for whether the C compiler supports C99 (global declarations)
2594ac_c_conftest_c99_globals='
2595// Does the compiler advertise C99 conformance?
2596#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2597# error "Compiler does not advertise C99 conformance"
2598#endif
2599
2600#include <stdbool.h>
2601extern int puts (const char *);
2602extern int printf (const char *, ...);
2603extern int dprintf (int, const char *, ...);
2604extern void *malloc (size_t);
2605
2606// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2607// dprintf is used instead of fprintf to avoid needing to declare
2608// FILE and stderr.
2609#define debug(...) dprintf (2, __VA_ARGS__)
2610#define showlist(...) puts (#__VA_ARGS__)
2611#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2612static void
2613test_varargs_macros (void)
2614{
2615  int x = 1234;
2616  int y = 5678;
2617  debug ("Flag");
2618  debug ("X = %d\n", x);
2619  showlist (The first, second, and third items.);
2620  report (x>y, "x is %d but y is %d", x, y);
2621}
2622
2623// Check long long types.
2624#define BIG64 18446744073709551615ull
2625#define BIG32 4294967295ul
2626#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2627#if !BIG_OK
2628  #error "your preprocessor is broken"
2629#endif
2630#if BIG_OK
2631#else
2632  #error "your preprocessor is broken"
2633#endif
2634static long long int bignum = -9223372036854775807LL;
2635static unsigned long long int ubignum = BIG64;
2636
2637struct incomplete_array
2638{
2639  int datasize;
2640  double data[];
2641};
2642
2643struct named_init {
2644  int number;
2645  const wchar_t *name;
2646  double average;
2647};
2648
2649typedef const char *ccp;
2650
2651static inline int
2652test_restrict (ccp restrict text)
2653{
2654  // See if C++-style comments work.
2655  // Iterate through items via the restricted pointer.
2656  // Also check for declarations in for loops.
2657  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2658    continue;
2659  return 0;
2660}
2661
2662// Check varargs and va_copy.
2663static bool
2664test_varargs (const char *format, ...)
2665{
2666  va_list args;
2667  va_start (args, format);
2668  va_list args_copy;
2669  va_copy (args_copy, args);
2670
2671  const char *str = "";
2672  int number = 0;
2673  float fnumber = 0;
2674
2675  while (*format)
2676    {
2677      switch (*format++)
2678	{
2679	case '\''s'\'': // string
2680	  str = va_arg (args_copy, const char *);
2681	  break;
2682	case '\''d'\'': // int
2683	  number = va_arg (args_copy, int);
2684	  break;
2685	case '\''f'\'': // float
2686	  fnumber = va_arg (args_copy, double);
2687	  break;
2688	default:
2689	  break;
2690	}
2691    }
2692  va_end (args_copy);
2693  va_end (args);
2694
2695  return *str && number && fnumber;
2696}
2697'
2698
2699# Test code for whether the C compiler supports C99 (body of main).
2700ac_c_conftest_c99_main='
2701  // Check bool.
2702  _Bool success = false;
2703  success |= (argc != 0);
2704
2705  // Check restrict.
2706  if (test_restrict ("String literal") == 0)
2707    success = true;
2708  char *restrict newvar = "Another string";
2709
2710  // Check varargs.
2711  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2712  test_varargs_macros ();
2713
2714  // Check flexible array members.
2715  struct incomplete_array *ia =
2716    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2717  ia->datasize = 10;
2718  for (int i = 0; i < ia->datasize; ++i)
2719    ia->data[i] = i * 1.234;
2720
2721  // Check named initializers.
2722  struct named_init ni = {
2723    .number = 34,
2724    .name = L"Test wide string",
2725    .average = 543.34343,
2726  };
2727
2728  ni.number = 58;
2729
2730  int dynamic_array[ni.number];
2731  dynamic_array[0] = argv[0][0];
2732  dynamic_array[ni.number - 1] = 543;
2733
2734  // work around unused variable warnings
2735  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2736	 || dynamic_array[ni.number - 1] != 543);
2737'
2738
2739# Test code for whether the C compiler supports C11 (global declarations)
2740ac_c_conftest_c11_globals='
2741// Does the compiler advertise C11 conformance?
2742#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2743# error "Compiler does not advertise C11 conformance"
2744#endif
2745
2746// Check _Alignas.
2747char _Alignas (double) aligned_as_double;
2748char _Alignas (0) no_special_alignment;
2749extern char aligned_as_int;
2750char _Alignas (0) _Alignas (int) aligned_as_int;
2751
2752// Check _Alignof.
2753enum
2754{
2755  int_alignment = _Alignof (int),
2756  int_array_alignment = _Alignof (int[100]),
2757  char_alignment = _Alignof (char)
2758};
2759_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2760
2761// Check _Noreturn.
2762int _Noreturn does_not_return (void) { for (;;) continue; }
2763
2764// Check _Static_assert.
2765struct test_static_assert
2766{
2767  int x;
2768  _Static_assert (sizeof (int) <= sizeof (long int),
2769                  "_Static_assert does not work in struct");
2770  long int y;
2771};
2772
2773// Check UTF-8 literals.
2774#define u8 syntax error!
2775char const utf8_literal[] = u8"happens to be ASCII" "another string";
2776
2777// Check duplicate typedefs.
2778typedef long *long_ptr;
2779typedef long int *long_ptr;
2780typedef long_ptr long_ptr;
2781
2782// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2783struct anonymous
2784{
2785  union {
2786    struct { int i; int j; };
2787    struct { int k; long int l; } w;
2788  };
2789  int m;
2790} v1;
2791'
2792
2793# Test code for whether the C compiler supports C11 (body of main).
2794ac_c_conftest_c11_main='
2795  _Static_assert ((offsetof (struct anonymous, i)
2796		   == offsetof (struct anonymous, w.k)),
2797		  "Anonymous union alignment botch");
2798  v1.i = 2;
2799  v1.w.k = 5;
2800  ok |= v1.i != 5;
2801'
2802
2803# Test code for whether the C compiler supports C11 (complete).
2804ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2805${ac_c_conftest_c99_globals}
2806${ac_c_conftest_c11_globals}
2807
2808int
2809main (int argc, char **argv)
2810{
2811  int ok = 0;
2812  ${ac_c_conftest_c89_main}
2813  ${ac_c_conftest_c99_main}
2814  ${ac_c_conftest_c11_main}
2815  return ok;
2816}
2817"
2818
2819# Test code for whether the C compiler supports C99 (complete).
2820ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2821${ac_c_conftest_c99_globals}
2822
2823int
2824main (int argc, char **argv)
2825{
2826  int ok = 0;
2827  ${ac_c_conftest_c89_main}
2828  ${ac_c_conftest_c99_main}
2829  return ok;
2830}
2831"
2832
2833# Test code for whether the C compiler supports C89 (complete).
2834ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2835
2836int
2837main (int argc, char **argv)
2838{
2839  int ok = 0;
2840  ${ac_c_conftest_c89_main}
2841  return ok;
2842}
2843"
2844
2845as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2846as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2847as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2848as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2849as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2850as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2851as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2852as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2853as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2854as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2855as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2856as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2857
2858# Auxiliary files required by this configure script.
2859ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2860
2861# Locations in which to look for auxiliary files.
2862ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2863
2864# Search for a directory containing all of the required auxiliary files,
2865# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2866# If we don't find one directory that contains all the files we need,
2867# we report the set of missing files from the *first* directory in
2868# $ac_aux_dir_candidates and give up.
2869ac_missing_aux_files=""
2870ac_first_candidate=:
2871printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873as_found=false
2874for as_dir in $ac_aux_dir_candidates
2875do
2876  IFS=$as_save_IFS
2877  case $as_dir in #(((
2878    '') as_dir=./ ;;
2879    */) ;;
2880    *) as_dir=$as_dir/ ;;
2881  esac
2882  as_found=:
2883
2884  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2885  ac_aux_dir_found=yes
2886  ac_install_sh=
2887  for ac_aux in $ac_aux_files
2888  do
2889    # As a special case, if "install-sh" is required, that requirement
2890    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2891    # and $ac_install_sh is set appropriately for whichever one is found.
2892    if test x"$ac_aux" = x"install-sh"
2893    then
2894      if test -f "${as_dir}install-sh"; then
2895        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2896        ac_install_sh="${as_dir}install-sh -c"
2897      elif test -f "${as_dir}install.sh"; then
2898        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2899        ac_install_sh="${as_dir}install.sh -c"
2900      elif test -f "${as_dir}shtool"; then
2901        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2902        ac_install_sh="${as_dir}shtool install -c"
2903      else
2904        ac_aux_dir_found=no
2905        if $ac_first_candidate; then
2906          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2907        else
2908          break
2909        fi
2910      fi
2911    else
2912      if test -f "${as_dir}${ac_aux}"; then
2913        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2914      else
2915        ac_aux_dir_found=no
2916        if $ac_first_candidate; then
2917          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2918        else
2919          break
2920        fi
2921      fi
2922    fi
2923  done
2924  if test "$ac_aux_dir_found" = yes; then
2925    ac_aux_dir="$as_dir"
2926    break
2927  fi
2928  ac_first_candidate=false
2929
2930  as_found=false
2931done
2932IFS=$as_save_IFS
2933if $as_found
2934then :
2935
2936else $as_nop
2937  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2938fi
2939
2940
2941# These three variables are undocumented and unsupported,
2942# and are intended to be withdrawn in a future Autoconf release.
2943# They can cause serious problems if a builder's source tree is in a directory
2944# whose full name contains unusual characters.
2945if test -f "${ac_aux_dir}config.guess"; then
2946  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2947fi
2948if test -f "${ac_aux_dir}config.sub"; then
2949  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2950fi
2951if test -f "$ac_aux_dir/configure"; then
2952  ac_configure="$SHELL ${ac_aux_dir}configure"
2953fi
2954
2955# Check that the precious variables saved in the cache have kept the same
2956# value.
2957ac_cache_corrupted=false
2958for ac_var in $ac_precious_vars; do
2959  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2960  eval ac_new_set=\$ac_env_${ac_var}_set
2961  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2962  eval ac_new_val=\$ac_env_${ac_var}_value
2963  case $ac_old_set,$ac_new_set in
2964    set,)
2965      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2966printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2967      ac_cache_corrupted=: ;;
2968    ,set)
2969      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2970printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2971      ac_cache_corrupted=: ;;
2972    ,);;
2973    *)
2974      if test "x$ac_old_val" != "x$ac_new_val"; then
2975	# differences in whitespace do not lead to failure.
2976	ac_old_val_w=`echo x $ac_old_val`
2977	ac_new_val_w=`echo x $ac_new_val`
2978	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2979	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2980printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2981	  ac_cache_corrupted=:
2982	else
2983	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2984printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2985	  eval $ac_var=\$ac_old_val
2986	fi
2987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2988printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2990printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2991      fi;;
2992  esac
2993  # Pass precious variables to config.status.
2994  if test "$ac_new_set" = set; then
2995    case $ac_new_val in
2996    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2997    *) ac_arg=$ac_var=$ac_new_val ;;
2998    esac
2999    case " $ac_configure_args " in
3000      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3001      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3002    esac
3003  fi
3004done
3005if $ac_cache_corrupted; then
3006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3009printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3010  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3011	    and start over" "$LINENO" 5
3012fi
3013## -------------------- ##
3014## Main body of script. ##
3015## -------------------- ##
3016
3017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023
3024
3025ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3026
3027
3028
3029
3030
3031  # Make sure we can run config.sub.
3032$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3033  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3034
3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3036printf %s "checking build system type... " >&6; }
3037if test ${ac_cv_build+y}
3038then :
3039  printf %s "(cached) " >&6
3040else $as_nop
3041  ac_build_alias=$build_alias
3042test "x$ac_build_alias" = x &&
3043  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3044test "x$ac_build_alias" = x &&
3045  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3046ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3047  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3048
3049fi
3050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3051printf "%s\n" "$ac_cv_build" >&6; }
3052case $ac_cv_build in
3053*-*-*) ;;
3054*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3055esac
3056build=$ac_cv_build
3057ac_save_IFS=$IFS; IFS='-'
3058set x $ac_cv_build
3059shift
3060build_cpu=$1
3061build_vendor=$2
3062shift; shift
3063# Remember, the first character of IFS is used to create $*,
3064# except with old shells:
3065build_os=$*
3066IFS=$ac_save_IFS
3067case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3068
3069
3070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3071printf %s "checking host system type... " >&6; }
3072if test ${ac_cv_host+y}
3073then :
3074  printf %s "(cached) " >&6
3075else $as_nop
3076  if test "x$host_alias" = x; then
3077  ac_cv_host=$ac_cv_build
3078else
3079  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3080    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3081fi
3082
3083fi
3084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3085printf "%s\n" "$ac_cv_host" >&6; }
3086case $ac_cv_host in
3087*-*-*) ;;
3088*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3089esac
3090host=$ac_cv_host
3091ac_save_IFS=$IFS; IFS='-'
3092set x $ac_cv_host
3093shift
3094host_cpu=$1
3095host_vendor=$2
3096shift; shift
3097# Remember, the first character of IFS is used to create $*,
3098# except with old shells:
3099host_os=$*
3100IFS=$ac_save_IFS
3101case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3102
3103
3104# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3105# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3106# to avoid autoconf errors.
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117# Expand $ac_aux_dir to an absolute path.
3118am_aux_dir=`cd "$ac_aux_dir" && pwd`
3119
3120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125if test -n "$ac_tool_prefix"; then
3126  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129printf %s "checking for $ac_word... " >&6; }
3130if test ${ac_cv_prog_CC+y}
3131then :
3132  printf %s "(cached) " >&6
3133else $as_nop
3134  if test -n "$CC"; then
3135  ac_cv_prog_CC="$CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  case $as_dir in #(((
3142    '') as_dir=./ ;;
3143    */) ;;
3144    *) as_dir=$as_dir/ ;;
3145  esac
3146    for ac_exec_ext in '' $ac_executable_extensions; do
3147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158CC=$ac_cv_prog_CC
3159if test -n "$CC"; then
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161printf "%s\n" "$CC" >&6; }
3162else
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164printf "%s\n" "no" >&6; }
3165fi
3166
3167
3168fi
3169if test -z "$ac_cv_prog_CC"; then
3170  ac_ct_CC=$CC
3171  # Extract the first word of "gcc", so it can be a program name with args.
3172set dummy gcc; ac_word=$2
3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174printf %s "checking for $ac_word... " >&6; }
3175if test ${ac_cv_prog_ac_ct_CC+y}
3176then :
3177  printf %s "(cached) " >&6
3178else $as_nop
3179  if test -n "$ac_ct_CC"; then
3180  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185  IFS=$as_save_IFS
3186  case $as_dir in #(((
3187    '') as_dir=./ ;;
3188    */) ;;
3189    *) as_dir=$as_dir/ ;;
3190  esac
3191    for ac_exec_ext in '' $ac_executable_extensions; do
3192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3193    ac_cv_prog_ac_ct_CC="gcc"
3194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195    break 2
3196  fi
3197done
3198  done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
3203ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204if test -n "$ac_ct_CC"; then
3205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206printf "%s\n" "$ac_ct_CC" >&6; }
3207else
3208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209printf "%s\n" "no" >&6; }
3210fi
3211
3212  if test "x$ac_ct_CC" = x; then
3213    CC=""
3214  else
3215    case $cross_compiling:$ac_tool_warned in
3216yes:)
3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219ac_tool_warned=yes ;;
3220esac
3221    CC=$ac_ct_CC
3222  fi
3223else
3224  CC="$ac_cv_prog_CC"
3225fi
3226
3227if test -z "$CC"; then
3228          if test -n "$ac_tool_prefix"; then
3229    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3230set dummy ${ac_tool_prefix}cc; ac_word=$2
3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232printf %s "checking for $ac_word... " >&6; }
3233if test ${ac_cv_prog_CC+y}
3234then :
3235  printf %s "(cached) " >&6
3236else $as_nop
3237  if test -n "$CC"; then
3238  ac_cv_prog_CC="$CC" # Let the user override the test.
3239else
3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241for as_dir in $PATH
3242do
3243  IFS=$as_save_IFS
3244  case $as_dir in #(((
3245    '') as_dir=./ ;;
3246    */) ;;
3247    *) as_dir=$as_dir/ ;;
3248  esac
3249    for ac_exec_ext in '' $ac_executable_extensions; do
3250  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_CC="${ac_tool_prefix}cc"
3252    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256  done
3257IFS=$as_save_IFS
3258
3259fi
3260fi
3261CC=$ac_cv_prog_CC
3262if test -n "$CC"; then
3263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264printf "%s\n" "$CC" >&6; }
3265else
3266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267printf "%s\n" "no" >&6; }
3268fi
3269
3270
3271  fi
3272fi
3273if test -z "$CC"; then
3274  # Extract the first word of "cc", so it can be a program name with args.
3275set dummy cc; ac_word=$2
3276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277printf %s "checking for $ac_word... " >&6; }
3278if test ${ac_cv_prog_CC+y}
3279then :
3280  printf %s "(cached) " >&6
3281else $as_nop
3282  if test -n "$CC"; then
3283  ac_cv_prog_CC="$CC" # Let the user override the test.
3284else
3285  ac_prog_rejected=no
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289  IFS=$as_save_IFS
3290  case $as_dir in #(((
3291    '') as_dir=./ ;;
3292    */) ;;
3293    *) as_dir=$as_dir/ ;;
3294  esac
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3297    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298       ac_prog_rejected=yes
3299       continue
3300     fi
3301    ac_cv_prog_CC="cc"
3302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306  done
3307IFS=$as_save_IFS
3308
3309if test $ac_prog_rejected = yes; then
3310  # We found a bogon in the path, so make sure we never use it.
3311  set dummy $ac_cv_prog_CC
3312  shift
3313  if test $# != 0; then
3314    # We chose a different compiler from the bogus one.
3315    # However, it has the same basename, so the bogon will be chosen
3316    # first if we set CC to just the basename; use the full file name.
3317    shift
3318    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3319  fi
3320fi
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326printf "%s\n" "$CC" >&6; }
3327else
3328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329printf "%s\n" "no" >&6; }
3330fi
3331
3332
3333fi
3334if test -z "$CC"; then
3335  if test -n "$ac_tool_prefix"; then
3336  for ac_prog in cl.exe
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341printf %s "checking for $ac_word... " >&6; }
3342if test ${ac_cv_prog_CC+y}
3343then :
3344  printf %s "(cached) " >&6
3345else $as_nop
3346  if test -n "$CC"; then
3347  ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  case $as_dir in #(((
3354    '') as_dir=./ ;;
3355    */) ;;
3356    *) as_dir=$as_dir/ ;;
3357  esac
3358    for ac_exec_ext in '' $ac_executable_extensions; do
3359  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362    break 2
3363  fi
3364done
3365  done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370CC=$ac_cv_prog_CC
3371if test -n "$CC"; then
3372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373printf "%s\n" "$CC" >&6; }
3374else
3375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376printf "%s\n" "no" >&6; }
3377fi
3378
3379
3380    test -n "$CC" && break
3381  done
3382fi
3383if test -z "$CC"; then
3384  ac_ct_CC=$CC
3385  for ac_prog in cl.exe
3386do
3387  # Extract the first word of "$ac_prog", so it can be a program name with args.
3388set dummy $ac_prog; ac_word=$2
3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390printf %s "checking for $ac_word... " >&6; }
3391if test ${ac_cv_prog_ac_ct_CC+y}
3392then :
3393  printf %s "(cached) " >&6
3394else $as_nop
3395  if test -n "$ac_ct_CC"; then
3396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  case $as_dir in #(((
3403    '') as_dir=./ ;;
3404    */) ;;
3405    *) as_dir=$as_dir/ ;;
3406  esac
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409    ac_cv_prog_ac_ct_CC="$ac_prog"
3410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422printf "%s\n" "$ac_ct_CC" >&6; }
3423else
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425printf "%s\n" "no" >&6; }
3426fi
3427
3428
3429  test -n "$ac_ct_CC" && break
3430done
3431
3432  if test "x$ac_ct_CC" = x; then
3433    CC=""
3434  else
3435    case $cross_compiling:$ac_tool_warned in
3436yes:)
3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439ac_tool_warned=yes ;;
3440esac
3441    CC=$ac_ct_CC
3442  fi
3443fi
3444
3445fi
3446if test -z "$CC"; then
3447  if test -n "$ac_tool_prefix"; then
3448  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3449set dummy ${ac_tool_prefix}clang; ac_word=$2
3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451printf %s "checking for $ac_word... " >&6; }
3452if test ${ac_cv_prog_CC+y}
3453then :
3454  printf %s "(cached) " >&6
3455else $as_nop
3456  if test -n "$CC"; then
3457  ac_cv_prog_CC="$CC" # Let the user override the test.
3458else
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
3462  IFS=$as_save_IFS
3463  case $as_dir in #(((
3464    '') as_dir=./ ;;
3465    */) ;;
3466    *) as_dir=$as_dir/ ;;
3467  esac
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470    ac_cv_prog_CC="${ac_tool_prefix}clang"
3471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483printf "%s\n" "$CC" >&6; }
3484else
3485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486printf "%s\n" "no" >&6; }
3487fi
3488
3489
3490fi
3491if test -z "$ac_cv_prog_CC"; then
3492  ac_ct_CC=$CC
3493  # Extract the first word of "clang", so it can be a program name with args.
3494set dummy clang; ac_word=$2
3495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496printf %s "checking for $ac_word... " >&6; }
3497if test ${ac_cv_prog_ac_ct_CC+y}
3498then :
3499  printf %s "(cached) " >&6
3500else $as_nop
3501  if test -n "$ac_ct_CC"; then
3502  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503else
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  case $as_dir in #(((
3509    '') as_dir=./ ;;
3510    */) ;;
3511    *) as_dir=$as_dir/ ;;
3512  esac
3513    for ac_exec_ext in '' $ac_executable_extensions; do
3514  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515    ac_cv_prog_ac_ct_CC="clang"
3516    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517    break 2
3518  fi
3519done
3520  done
3521IFS=$as_save_IFS
3522
3523fi
3524fi
3525ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526if test -n "$ac_ct_CC"; then
3527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528printf "%s\n" "$ac_ct_CC" >&6; }
3529else
3530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531printf "%s\n" "no" >&6; }
3532fi
3533
3534  if test "x$ac_ct_CC" = x; then
3535    CC=""
3536  else
3537    case $cross_compiling:$ac_tool_warned in
3538yes:)
3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541ac_tool_warned=yes ;;
3542esac
3543    CC=$ac_ct_CC
3544  fi
3545else
3546  CC="$ac_cv_prog_CC"
3547fi
3548
3549fi
3550
3551
3552test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3554as_fn_error $? "no acceptable C compiler found in \$PATH
3555See \`config.log' for more details" "$LINENO" 5; }
3556
3557# Provide some information about the compiler.
3558printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559set X $ac_compile
3560ac_compiler=$2
3561for ac_option in --version -v -V -qversion -version; do
3562  { { ac_try="$ac_compiler $ac_option >&5"
3563case "(($ac_try" in
3564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565  *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568printf "%s\n" "$ac_try_echo"; } >&5
3569  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570  ac_status=$?
3571  if test -s conftest.err; then
3572    sed '10a\
3573... rest of stderr output deleted ...
3574         10q' conftest.err >conftest.er1
3575    cat conftest.er1 >&5
3576  fi
3577  rm -f conftest.er1 conftest.err
3578  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579  test $ac_status = 0; }
3580done
3581
3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584
3585int
3586main (void)
3587{
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593ac_clean_files_save=$ac_clean_files
3594ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595# Try to create an executable without -o first, disregard a.out.
3596# It will help us diagnose broken compilers, and finding out an intuition
3597# of exeext.
3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599printf %s "checking whether the C compiler works... " >&6; }
3600ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3601
3602# The possible output files:
3603ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604
3605ac_rmfiles=
3606for ac_file in $ac_files
3607do
3608  case $ac_file in
3609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611  esac
3612done
3613rm -f $ac_rmfiles
3614
3615if { { ac_try="$ac_link_default"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621printf "%s\n" "$ac_try_echo"; } >&5
3622  (eval "$ac_link_default") 2>&5
3623  ac_status=$?
3624  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625  test $ac_status = 0; }
3626then :
3627  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3630# so that the user can short-circuit this test for compilers unknown to
3631# Autoconf.
3632for ac_file in $ac_files ''
3633do
3634  test -f "$ac_file" || continue
3635  case $ac_file in
3636    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3637	;;
3638    [ab].out )
3639	# We found the default executable, but exeext='' is most
3640	# certainly right.
3641	break;;
3642    *.* )
3643	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3644	then :; else
3645	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646	fi
3647	# We set ac_cv_exeext here because the later test for it is not
3648	# safe: cross compilers may not add the suffix if given an `-o'
3649	# argument, so we may need to know it at that point already.
3650	# Even if this section looks crufty: it has the advantage of
3651	# actually working.
3652	break;;
3653    * )
3654	break;;
3655  esac
3656done
3657test "$ac_cv_exeext" = no && ac_cv_exeext=
3658
3659else $as_nop
3660  ac_file=''
3661fi
3662if test -z "$ac_file"
3663then :
3664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665printf "%s\n" "no" >&6; }
3666printf "%s\n" "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3671as_fn_error 77 "C compiler cannot create executables
3672See \`config.log' for more details" "$LINENO" 5; }
3673else $as_nop
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675printf "%s\n" "yes" >&6; }
3676fi
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678printf %s "checking for C compiler default output file name... " >&6; }
3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680printf "%s\n" "$ac_file" >&6; }
3681ac_exeext=$ac_cv_exeext
3682
3683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684ac_clean_files=$ac_clean_files_save
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686printf %s "checking for suffix of executables... " >&6; }
3687if { { ac_try="$ac_link"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693printf "%s\n" "$ac_try_echo"; } >&5
3694  (eval "$ac_link") 2>&5
3695  ac_status=$?
3696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697  test $ac_status = 0; }
3698then :
3699  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3701# work properly (i.e., refer to `conftest.exe'), while it won't with
3702# `rm'.
3703for ac_file in conftest.exe conftest conftest.*; do
3704  test -f "$ac_file" || continue
3705  case $ac_file in
3706    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708	  break;;
3709    * ) break;;
3710  esac
3711done
3712else $as_nop
3713  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716See \`config.log' for more details" "$LINENO" 5; }
3717fi
3718rm -f conftest conftest$ac_cv_exeext
3719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720printf "%s\n" "$ac_cv_exeext" >&6; }
3721
3722rm -f conftest.$ac_ext
3723EXEEXT=$ac_cv_exeext
3724ac_exeext=$EXEEXT
3725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#include <stdio.h>
3728int
3729main (void)
3730{
3731FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738ac_clean_files="$ac_clean_files conftest.out"
3739# Check that the compiler produces executables we can run.  If not, either
3740# the compiler is broken, or we cross compile.
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742printf %s "checking whether we are cross compiling... " >&6; }
3743if test "$cross_compiling" != yes; then
3744  { { ac_try="$ac_link"
3745case "(($ac_try" in
3746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747  *) ac_try_echo=$ac_try;;
3748esac
3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750printf "%s\n" "$ac_try_echo"; } >&5
3751  (eval "$ac_link") 2>&5
3752  ac_status=$?
3753  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754  test $ac_status = 0; }
3755  if { ac_try='./conftest$ac_cv_exeext'
3756  { { case "(($ac_try" in
3757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758  *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761printf "%s\n" "$ac_try_echo"; } >&5
3762  (eval "$ac_try") 2>&5
3763  ac_status=$?
3764  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765  test $ac_status = 0; }; }; then
3766    cross_compiling=no
3767  else
3768    if test "$cross_compiling" = maybe; then
3769	cross_compiling=yes
3770    else
3771	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3773as_fn_error 77 "cannot run C compiled programs.
3774If you meant to cross compile, use \`--host'.
3775See \`config.log' for more details" "$LINENO" 5; }
3776    fi
3777  fi
3778fi
3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780printf "%s\n" "$cross_compiling" >&6; }
3781
3782rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783ac_clean_files=$ac_clean_files_save
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785printf %s "checking for suffix of object files... " >&6; }
3786if test ${ac_cv_objext+y}
3787then :
3788  printf %s "(cached) " >&6
3789else $as_nop
3790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792
3793int
3794main (void)
3795{
3796
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801rm -f conftest.o conftest.obj
3802if { { ac_try="$ac_compile"
3803case "(($ac_try" in
3804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805  *) ac_try_echo=$ac_try;;
3806esac
3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808printf "%s\n" "$ac_try_echo"; } >&5
3809  (eval "$ac_compile") 2>&5
3810  ac_status=$?
3811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812  test $ac_status = 0; }
3813then :
3814  for ac_file in conftest.o conftest.obj conftest.*; do
3815  test -f "$ac_file" || continue;
3816  case $ac_file in
3817    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3818    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819       break;;
3820  esac
3821done
3822else $as_nop
3823  printf "%s\n" "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828as_fn_error $? "cannot compute suffix of object files: cannot compile
3829See \`config.log' for more details" "$LINENO" 5; }
3830fi
3831rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832fi
3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3834printf "%s\n" "$ac_cv_objext" >&6; }
3835OBJEXT=$ac_cv_objext
3836ac_objext=$OBJEXT
3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3838printf %s "checking whether the compiler supports GNU C... " >&6; }
3839if test ${ac_cv_c_compiler_gnu+y}
3840then :
3841  printf %s "(cached) " >&6
3842else $as_nop
3843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h.  */
3845
3846int
3847main (void)
3848{
3849#ifndef __GNUC__
3850       choke me
3851#endif
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857if ac_fn_c_try_compile "$LINENO"
3858then :
3859  ac_compiler_gnu=yes
3860else $as_nop
3861  ac_compiler_gnu=no
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3864ac_cv_c_compiler_gnu=$ac_compiler_gnu
3865
3866fi
3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3868printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871if test $ac_compiler_gnu = yes; then
3872  GCC=yes
3873else
3874  GCC=
3875fi
3876ac_test_CFLAGS=${CFLAGS+y}
3877ac_save_CFLAGS=$CFLAGS
3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879printf %s "checking whether $CC accepts -g... " >&6; }
3880if test ${ac_cv_prog_cc_g+y}
3881then :
3882  printf %s "(cached) " >&6
3883else $as_nop
3884  ac_save_c_werror_flag=$ac_c_werror_flag
3885   ac_c_werror_flag=yes
3886   ac_cv_prog_cc_g=no
3887   CFLAGS="-g"
3888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890
3891int
3892main (void)
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899if ac_fn_c_try_compile "$LINENO"
3900then :
3901  ac_cv_prog_cc_g=yes
3902else $as_nop
3903  CFLAGS=""
3904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906
3907int
3908main (void)
3909{
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915if ac_fn_c_try_compile "$LINENO"
3916then :
3917
3918else $as_nop
3919  ac_c_werror_flag=$ac_save_c_werror_flag
3920	 CFLAGS="-g"
3921	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h.  */
3923
3924int
3925main (void)
3926{
3927
3928  ;
3929  return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_compile "$LINENO"
3933then :
3934  ac_cv_prog_cc_g=yes
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3937fi
3938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3939fi
3940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3941   ac_c_werror_flag=$ac_save_c_werror_flag
3942fi
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3944printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3945if test $ac_test_CFLAGS; then
3946  CFLAGS=$ac_save_CFLAGS
3947elif test $ac_cv_prog_cc_g = yes; then
3948  if test "$GCC" = yes; then
3949    CFLAGS="-g -O2"
3950  else
3951    CFLAGS="-g"
3952  fi
3953else
3954  if test "$GCC" = yes; then
3955    CFLAGS="-O2"
3956  else
3957    CFLAGS=
3958  fi
3959fi
3960ac_prog_cc_stdc=no
3961if test x$ac_prog_cc_stdc = xno
3962then :
3963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3964printf %s "checking for $CC option to enable C11 features... " >&6; }
3965if test ${ac_cv_prog_cc_c11+y}
3966then :
3967  printf %s "(cached) " >&6
3968else $as_nop
3969  ac_cv_prog_cc_c11=no
3970ac_save_CC=$CC
3971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h.  */
3973$ac_c_conftest_c11_program
3974_ACEOF
3975for ac_arg in '' -std=gnu11
3976do
3977  CC="$ac_save_CC $ac_arg"
3978  if ac_fn_c_try_compile "$LINENO"
3979then :
3980  ac_cv_prog_cc_c11=$ac_arg
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.beam
3983  test "x$ac_cv_prog_cc_c11" != "xno" && break
3984done
3985rm -f conftest.$ac_ext
3986CC=$ac_save_CC
3987fi
3988
3989if test "x$ac_cv_prog_cc_c11" = xno
3990then :
3991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3992printf "%s\n" "unsupported" >&6; }
3993else $as_nop
3994  if test "x$ac_cv_prog_cc_c11" = x
3995then :
3996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997printf "%s\n" "none needed" >&6; }
3998else $as_nop
3999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4000printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4001     CC="$CC $ac_cv_prog_cc_c11"
4002fi
4003  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4004  ac_prog_cc_stdc=c11
4005fi
4006fi
4007if test x$ac_prog_cc_stdc = xno
4008then :
4009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4010printf %s "checking for $CC option to enable C99 features... " >&6; }
4011if test ${ac_cv_prog_cc_c99+y}
4012then :
4013  printf %s "(cached) " >&6
4014else $as_nop
4015  ac_cv_prog_cc_c99=no
4016ac_save_CC=$CC
4017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019$ac_c_conftest_c99_program
4020_ACEOF
4021for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4022do
4023  CC="$ac_save_CC $ac_arg"
4024  if ac_fn_c_try_compile "$LINENO"
4025then :
4026  ac_cv_prog_cc_c99=$ac_arg
4027fi
4028rm -f core conftest.err conftest.$ac_objext conftest.beam
4029  test "x$ac_cv_prog_cc_c99" != "xno" && break
4030done
4031rm -f conftest.$ac_ext
4032CC=$ac_save_CC
4033fi
4034
4035if test "x$ac_cv_prog_cc_c99" = xno
4036then :
4037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038printf "%s\n" "unsupported" >&6; }
4039else $as_nop
4040  if test "x$ac_cv_prog_cc_c99" = x
4041then :
4042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043printf "%s\n" "none needed" >&6; }
4044else $as_nop
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4046printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4047     CC="$CC $ac_cv_prog_cc_c99"
4048fi
4049  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4050  ac_prog_cc_stdc=c99
4051fi
4052fi
4053if test x$ac_prog_cc_stdc = xno
4054then :
4055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4056printf %s "checking for $CC option to enable C89 features... " >&6; }
4057if test ${ac_cv_prog_cc_c89+y}
4058then :
4059  printf %s "(cached) " >&6
4060else $as_nop
4061  ac_cv_prog_cc_c89=no
4062ac_save_CC=$CC
4063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065$ac_c_conftest_c89_program
4066_ACEOF
4067for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068do
4069  CC="$ac_save_CC $ac_arg"
4070  if ac_fn_c_try_compile "$LINENO"
4071then :
4072  ac_cv_prog_cc_c89=$ac_arg
4073fi
4074rm -f core conftest.err conftest.$ac_objext conftest.beam
4075  test "x$ac_cv_prog_cc_c89" != "xno" && break
4076done
4077rm -f conftest.$ac_ext
4078CC=$ac_save_CC
4079fi
4080
4081if test "x$ac_cv_prog_cc_c89" = xno
4082then :
4083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4084printf "%s\n" "unsupported" >&6; }
4085else $as_nop
4086  if test "x$ac_cv_prog_cc_c89" = x
4087then :
4088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4089printf "%s\n" "none needed" >&6; }
4090else $as_nop
4091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4092printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4093     CC="$CC $ac_cv_prog_cc_c89"
4094fi
4095  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4096  ac_prog_cc_stdc=c89
4097fi
4098fi
4099
4100ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107  ac_ext=c
4108ac_cpp='$CPP $CPPFLAGS'
4109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4113printf %s "checking whether $CC understands -c and -o together... " >&6; }
4114if test ${am_cv_prog_cc_c_o+y}
4115then :
4116  printf %s "(cached) " >&6
4117else $as_nop
4118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120
4121int
4122main (void)
4123{
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129  # Make sure it works both with $CC and with simple cc.
4130  # Following AC_PROG_CC_C_O, we do the test twice because some
4131  # compilers refuse to overwrite an existing .o file with -o,
4132  # though they will create one.
4133  am_cv_prog_cc_c_o=yes
4134  for am_i in 1 2; do
4135    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4136   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); } \
4140         && test -f conftest2.$ac_objext; then
4141      : OK
4142    else
4143      am_cv_prog_cc_c_o=no
4144      break
4145    fi
4146  done
4147  rm -f core conftest*
4148  unset am_i
4149fi
4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4151printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4152if test "$am_cv_prog_cc_c_o" != yes; then
4153   # Losing compiler, so override with the script.
4154   # FIXME: It is wrong to rewrite CC.
4155   # But if we don't then we get into trouble of one sort or another.
4156   # A longer-term fix would be to have automake use am__CC in this case,
4157   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4158   CC="$am_aux_dir/compile $CC"
4159fi
4160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167
4168ac_header= ac_cache=
4169for ac_item in $ac_header_c_list
4170do
4171  if test $ac_cache; then
4172    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4173    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4174      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4175    fi
4176    ac_header= ac_cache=
4177  elif test $ac_header; then
4178    ac_cache=$ac_item
4179  else
4180    ac_header=$ac_item
4181  fi
4182done
4183
4184
4185
4186
4187
4188
4189
4190
4191if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4192then :
4193
4194printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4195
4196fi
4197
4198
4199
4200
4201
4202
4203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4204printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4205if test ${ac_cv_safe_to_define___extensions__+y}
4206then :
4207  printf %s "(cached) " >&6
4208else $as_nop
4209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212#         define __EXTENSIONS__ 1
4213          $ac_includes_default
4214int
4215main (void)
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"
4223then :
4224  ac_cv_safe_to_define___extensions__=yes
4225else $as_nop
4226  ac_cv_safe_to_define___extensions__=no
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4229fi
4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4231printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4232
4233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4234printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4235if test ${ac_cv_should_define__xopen_source+y}
4236then :
4237  printf %s "(cached) " >&6
4238else $as_nop
4239  ac_cv_should_define__xopen_source=no
4240    if test $ac_cv_header_wchar_h = yes
4241then :
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244
4245          #include <wchar.h>
4246          mbstate_t x;
4247int
4248main (void)
4249{
4250
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"
4256then :
4257
4258else $as_nop
4259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262            #define _XOPEN_SOURCE 500
4263            #include <wchar.h>
4264            mbstate_t x;
4265int
4266main (void)
4267{
4268
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273if ac_fn_c_try_compile "$LINENO"
4274then :
4275  ac_cv_should_define__xopen_source=yes
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278fi
4279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280fi
4281fi
4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4283printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4284
4285  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4286
4287  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4288
4289  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4290
4291  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4292
4293  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4294
4295  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4296
4297  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4298
4299  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4300
4301  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4302
4303  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4304
4305  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4306
4307  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4308
4309  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4310
4311  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4312
4313  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4314
4315  if test $ac_cv_header_minix_config_h = yes
4316then :
4317  MINIX=yes
4318    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4319
4320    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4321
4322    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4323
4324else $as_nop
4325  MINIX=
4326fi
4327  if test $ac_cv_safe_to_define___extensions__ = yes
4328then :
4329  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4330
4331fi
4332  if test $ac_cv_should_define__xopen_source = yes
4333then :
4334  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4335
4336fi
4337
4338
4339# Initialize Automake
4340am__api_version='1.16'
4341
4342
4343  # Find a good install program.  We prefer a C program (faster),
4344# so one script is as good as another.  But avoid the broken or
4345# incompatible versions:
4346# SysV /etc/install, /usr/sbin/install
4347# SunOS /usr/etc/install
4348# IRIX /sbin/install
4349# AIX /bin/install
4350# AmigaOS /C/install, which installs bootblocks on floppy discs
4351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4354# OS/2's system install, which has a completely different semantic
4355# ./install, which can be erroneously created by make from ./install.sh.
4356# Reject install programs that cannot install multiple files.
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4358printf %s "checking for a BSD-compatible install... " >&6; }
4359if test -z "$INSTALL"; then
4360if test ${ac_cv_path_install+y}
4361then :
4362  printf %s "(cached) " >&6
4363else $as_nop
4364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  case $as_dir in #(((
4369    '') as_dir=./ ;;
4370    */) ;;
4371    *) as_dir=$as_dir/ ;;
4372  esac
4373    # Account for fact that we put trailing slashes in our PATH walk.
4374case $as_dir in #((
4375  ./ | /[cC]/* | \
4376  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4377  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4378  /usr/ucb/* ) ;;
4379  *)
4380    # OSF1 and SCO ODT 3.0 have their own names for install.
4381    # Don't use installbsd from OSF since it installs stuff as root
4382    # by default.
4383    for ac_prog in ginstall scoinst install; do
4384      for ac_exec_ext in '' $ac_executable_extensions; do
4385	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4386	  if test $ac_prog = install &&
4387	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388	    # AIX install.  It has an incompatible calling convention.
4389	    :
4390	  elif test $ac_prog = install &&
4391	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392	    # program-specific install script used by HP pwplus--don't use.
4393	    :
4394	  else
4395	    rm -rf conftest.one conftest.two conftest.dir
4396	    echo one > conftest.one
4397	    echo two > conftest.two
4398	    mkdir conftest.dir
4399	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4400	      test -s conftest.one && test -s conftest.two &&
4401	      test -s conftest.dir/conftest.one &&
4402	      test -s conftest.dir/conftest.two
4403	    then
4404	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4405	      break 3
4406	    fi
4407	  fi
4408	fi
4409      done
4410    done
4411    ;;
4412esac
4413
4414  done
4415IFS=$as_save_IFS
4416
4417rm -rf conftest.one conftest.two conftest.dir
4418
4419fi
4420  if test ${ac_cv_path_install+y}; then
4421    INSTALL=$ac_cv_path_install
4422  else
4423    # As a last resort, use the slow shell script.  Don't cache a
4424    # value for INSTALL within a source directory, because that will
4425    # break other packages using the cache if that directory is
4426    # removed, or if the value is a relative name.
4427    INSTALL=$ac_install_sh
4428  fi
4429fi
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4431printf "%s\n" "$INSTALL" >&6; }
4432
4433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434# It thinks the first close brace ends the variable substitution.
4435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4436
4437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4438
4439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4440
4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4442printf %s "checking whether build environment is sane... " >&6; }
4443# Reject unsafe characters in $srcdir or the absolute working directory
4444# name.  Accept space and tab only in the latter.
4445am_lf='
4446'
4447case `pwd` in
4448  *[\\\"\#\$\&\'\`$am_lf]*)
4449    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4450esac
4451case $srcdir in
4452  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4453    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4454esac
4455
4456# Do 'set' in a subshell so we don't clobber the current shell's
4457# arguments.  Must try -L first in case configure is actually a
4458# symlink; some systems play weird games with the mod time of symlinks
4459# (eg FreeBSD returns the mod time of the symlink's containing
4460# directory).
4461if (
4462   am_has_slept=no
4463   for am_try in 1 2; do
4464     echo "timestamp, slept: $am_has_slept" > conftest.file
4465     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4466     if test "$*" = "X"; then
4467	# -L didn't work.
4468	set X `ls -t "$srcdir/configure" conftest.file`
4469     fi
4470     if test "$*" != "X $srcdir/configure conftest.file" \
4471	&& test "$*" != "X conftest.file $srcdir/configure"; then
4472
4473	# If neither matched, then we have a broken ls.  This can happen
4474	# if, for instance, CONFIG_SHELL is bash and it inherits a
4475	# broken ls alias from the environment.  This has actually
4476	# happened.  Such a system could not be considered "sane".
4477	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4478  alias in your environment" "$LINENO" 5
4479     fi
4480     if test "$2" = conftest.file || test $am_try -eq 2; then
4481       break
4482     fi
4483     # Just in case.
4484     sleep 1
4485     am_has_slept=yes
4486   done
4487   test "$2" = conftest.file
4488   )
4489then
4490   # Ok.
4491   :
4492else
4493   as_fn_error $? "newly created file is older than distributed files!
4494Check your system clock" "$LINENO" 5
4495fi
4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497printf "%s\n" "yes" >&6; }
4498# If we didn't sleep, we still need to ensure time stamps of config.status and
4499# generated files are strictly newer.
4500am_sleep_pid=
4501if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4502  ( sleep 1 ) &
4503  am_sleep_pid=$!
4504fi
4505
4506rm -f conftest.file
4507
4508test "$program_prefix" != NONE &&
4509  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4510# Use a double $ so make ignores it.
4511test "$program_suffix" != NONE &&
4512  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4513# Double any \ or $.
4514# By default was `s,x,x', remove it if useless.
4515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4516program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4517
4518
4519  if test x"${MISSING+set}" != xset; then
4520  MISSING="\${SHELL} '$am_aux_dir/missing'"
4521fi
4522# Use eval to expand $SHELL
4523if eval "$MISSING --is-lightweight"; then
4524  am_missing_run="$MISSING "
4525else
4526  am_missing_run=
4527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4528printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4529fi
4530
4531if test x"${install_sh+set}" != xset; then
4532  case $am_aux_dir in
4533  *\ * | *\	*)
4534    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4535  *)
4536    install_sh="\${SHELL} $am_aux_dir/install-sh"
4537  esac
4538fi
4539
4540# Installed binaries are usually stripped using 'strip' when the user
4541# run "make install-strip".  However 'strip' might not be the right
4542# tool to use in cross-compilation environments, therefore Automake
4543# will honor the 'STRIP' environment variable to overrule this program.
4544if test "$cross_compiling" != no; then
4545  if test -n "$ac_tool_prefix"; then
4546  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4547set dummy ${ac_tool_prefix}strip; ac_word=$2
4548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549printf %s "checking for $ac_word... " >&6; }
4550if test ${ac_cv_prog_STRIP+y}
4551then :
4552  printf %s "(cached) " >&6
4553else $as_nop
4554  if test -n "$STRIP"; then
4555  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  case $as_dir in #(((
4562    '') as_dir=./ ;;
4563    */) ;;
4564    *) as_dir=$as_dir/ ;;
4565  esac
4566    for ac_exec_ext in '' $ac_executable_extensions; do
4567  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4568    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4569    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4570    break 2
4571  fi
4572done
4573  done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578STRIP=$ac_cv_prog_STRIP
4579if test -n "$STRIP"; then
4580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4581printf "%s\n" "$STRIP" >&6; }
4582else
4583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584printf "%s\n" "no" >&6; }
4585fi
4586
4587
4588fi
4589if test -z "$ac_cv_prog_STRIP"; then
4590  ac_ct_STRIP=$STRIP
4591  # Extract the first word of "strip", so it can be a program name with args.
4592set dummy strip; ac_word=$2
4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594printf %s "checking for $ac_word... " >&6; }
4595if test ${ac_cv_prog_ac_ct_STRIP+y}
4596then :
4597  printf %s "(cached) " >&6
4598else $as_nop
4599  if test -n "$ac_ct_STRIP"; then
4600  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605  IFS=$as_save_IFS
4606  case $as_dir in #(((
4607    '') as_dir=./ ;;
4608    */) ;;
4609    *) as_dir=$as_dir/ ;;
4610  esac
4611    for ac_exec_ext in '' $ac_executable_extensions; do
4612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4613    ac_cv_prog_ac_ct_STRIP="strip"
4614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4615    break 2
4616  fi
4617done
4618  done
4619IFS=$as_save_IFS
4620
4621fi
4622fi
4623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4624if test -n "$ac_ct_STRIP"; then
4625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4626printf "%s\n" "$ac_ct_STRIP" >&6; }
4627else
4628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629printf "%s\n" "no" >&6; }
4630fi
4631
4632  if test "x$ac_ct_STRIP" = x; then
4633    STRIP=":"
4634  else
4635    case $cross_compiling:$ac_tool_warned in
4636yes:)
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639ac_tool_warned=yes ;;
4640esac
4641    STRIP=$ac_ct_STRIP
4642  fi
4643else
4644  STRIP="$ac_cv_prog_STRIP"
4645fi
4646
4647fi
4648INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4649
4650
4651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4652printf %s "checking for a race-free mkdir -p... " >&6; }
4653if test -z "$MKDIR_P"; then
4654  if test ${ac_cv_path_mkdir+y}
4655then :
4656  printf %s "(cached) " >&6
4657else $as_nop
4658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4660do
4661  IFS=$as_save_IFS
4662  case $as_dir in #(((
4663    '') as_dir=./ ;;
4664    */) ;;
4665    *) as_dir=$as_dir/ ;;
4666  esac
4667    for ac_prog in mkdir gmkdir; do
4668	 for ac_exec_ext in '' $ac_executable_extensions; do
4669	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4670	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4671	     'mkdir ('*'coreutils) '* | \
4672	     'BusyBox '* | \
4673	     'mkdir (fileutils) '4.1*)
4674	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4675	       break 3;;
4676	   esac
4677	 done
4678       done
4679  done
4680IFS=$as_save_IFS
4681
4682fi
4683
4684  test -d ./--version && rmdir ./--version
4685  if test ${ac_cv_path_mkdir+y}; then
4686    MKDIR_P="$ac_cv_path_mkdir -p"
4687  else
4688    # As a last resort, use the slow shell script.  Don't cache a
4689    # value for MKDIR_P within a source directory, because that will
4690    # break other packages using the cache if that directory is
4691    # removed, or if the value is a relative name.
4692    MKDIR_P="$ac_install_sh -d"
4693  fi
4694fi
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4696printf "%s\n" "$MKDIR_P" >&6; }
4697
4698for ac_prog in gawk mawk nawk awk
4699do
4700  # Extract the first word of "$ac_prog", so it can be a program name with args.
4701set dummy $ac_prog; ac_word=$2
4702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703printf %s "checking for $ac_word... " >&6; }
4704if test ${ac_cv_prog_AWK+y}
4705then :
4706  printf %s "(cached) " >&6
4707else $as_nop
4708  if test -n "$AWK"; then
4709  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714  IFS=$as_save_IFS
4715  case $as_dir in #(((
4716    '') as_dir=./ ;;
4717    */) ;;
4718    *) as_dir=$as_dir/ ;;
4719  esac
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_AWK="$ac_prog"
4723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732AWK=$ac_cv_prog_AWK
4733if test -n "$AWK"; then
4734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4735printf "%s\n" "$AWK" >&6; }
4736else
4737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738printf "%s\n" "no" >&6; }
4739fi
4740
4741
4742  test -n "$AWK" && break
4743done
4744
4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4746printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4747set x ${MAKE-make}
4748ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4749if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4750then :
4751  printf %s "(cached) " >&6
4752else $as_nop
4753  cat >conftest.make <<\_ACEOF
4754SHELL = /bin/sh
4755all:
4756	@echo '@@@%%%=$(MAKE)=@@@%%%'
4757_ACEOF
4758# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4759case `${MAKE-make} -f conftest.make 2>/dev/null` in
4760  *@@@%%%=?*=@@@%%%*)
4761    eval ac_cv_prog_make_${ac_make}_set=yes;;
4762  *)
4763    eval ac_cv_prog_make_${ac_make}_set=no;;
4764esac
4765rm -f conftest.make
4766fi
4767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769printf "%s\n" "yes" >&6; }
4770  SET_MAKE=
4771else
4772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773printf "%s\n" "no" >&6; }
4774  SET_MAKE="MAKE=${MAKE-make}"
4775fi
4776
4777rm -rf .tst 2>/dev/null
4778mkdir .tst 2>/dev/null
4779if test -d .tst; then
4780  am__leading_dot=.
4781else
4782  am__leading_dot=_
4783fi
4784rmdir .tst 2>/dev/null
4785
4786DEPDIR="${am__leading_dot}deps"
4787
4788ac_config_commands="$ac_config_commands depfiles"
4789
4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4791printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4792cat > confinc.mk << 'END'
4793am__doit:
4794	@echo this is the am__doit target >confinc.out
4795.PHONY: am__doit
4796END
4797am__include="#"
4798am__quote=
4799# BSD make does it like this.
4800echo '.include "confinc.mk" # ignored' > confmf.BSD
4801# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4802echo 'include confinc.mk # ignored' > confmf.GNU
4803_am_result=no
4804for s in GNU BSD; do
4805  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4806   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }
4810  case $?:`cat confinc.out 2>/dev/null` in #(
4811  '0:this is the am__doit target') :
4812    case $s in #(
4813  BSD) :
4814    am__include='.include' am__quote='"' ;; #(
4815  *) :
4816    am__include='include' am__quote='' ;;
4817esac ;; #(
4818  *) :
4819     ;;
4820esac
4821  if test "$am__include" != "#"; then
4822    _am_result="yes ($s style)"
4823    break
4824  fi
4825done
4826rm -f confinc.* confmf.*
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4828printf "%s\n" "${_am_result}" >&6; }
4829
4830# Check whether --enable-dependency-tracking was given.
4831if test ${enable_dependency_tracking+y}
4832then :
4833  enableval=$enable_dependency_tracking;
4834fi
4835
4836if test "x$enable_dependency_tracking" != xno; then
4837  am_depcomp="$ac_aux_dir/depcomp"
4838  AMDEPBACKSLASH='\'
4839  am__nodep='_no'
4840fi
4841 if test "x$enable_dependency_tracking" != xno; then
4842  AMDEP_TRUE=
4843  AMDEP_FALSE='#'
4844else
4845  AMDEP_TRUE='#'
4846  AMDEP_FALSE=
4847fi
4848
4849
4850# Check whether --enable-silent-rules was given.
4851if test ${enable_silent_rules+y}
4852then :
4853  enableval=$enable_silent_rules;
4854fi
4855
4856case $enable_silent_rules in # (((
4857  yes) AM_DEFAULT_VERBOSITY=0;;
4858   no) AM_DEFAULT_VERBOSITY=1;;
4859    *) AM_DEFAULT_VERBOSITY=1;;
4860esac
4861am_make=${MAKE-make}
4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4863printf %s "checking whether $am_make supports nested variables... " >&6; }
4864if test ${am_cv_make_support_nested_variables+y}
4865then :
4866  printf %s "(cached) " >&6
4867else $as_nop
4868  if printf "%s\n" 'TRUE=$(BAR$(V))
4869BAR0=false
4870BAR1=true
4871V=1
4872am__doit:
4873	@$(TRUE)
4874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4875  am_cv_make_support_nested_variables=yes
4876else
4877  am_cv_make_support_nested_variables=no
4878fi
4879fi
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4881printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4882if test $am_cv_make_support_nested_variables = yes; then
4883    AM_V='$(V)'
4884  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4885else
4886  AM_V=$AM_DEFAULT_VERBOSITY
4887  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4888fi
4889AM_BACKSLASH='\'
4890
4891if test "`cd $srcdir && pwd`" != "`pwd`"; then
4892  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4893  # is not polluted with repeated "-I."
4894  am__isrc=' -I$(srcdir)'
4895  # test to see if srcdir already configured
4896  if test -f $srcdir/config.status; then
4897    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4898  fi
4899fi
4900
4901# test whether we have cygpath
4902if test -z "$CYGPATH_W"; then
4903  if (cygpath --version) >/dev/null 2>/dev/null; then
4904    CYGPATH_W='cygpath -w'
4905  else
4906    CYGPATH_W=echo
4907  fi
4908fi
4909
4910
4911# Define the identity of the package.
4912 PACKAGE='libX11'
4913 VERSION='1.8.2'
4914
4915
4916printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4917
4918
4919printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4920
4921# Some tools Automake needs.
4922
4923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4924
4925
4926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4927
4928
4929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4930
4931
4932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4933
4934
4935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4936
4937# For better backward compatibility.  To be removed once Automake 1.9.x
4938# dies out for good.  For more background, see:
4939# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4940# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4941mkdir_p='$(MKDIR_P)'
4942
4943# We need awk for the "check" target (and possibly the TAP driver).  The
4944# system "awk" is bad on some platforms.
4945# Always define AMTAR for backward compatibility.  Yes, it's still used
4946# in the wild :-(  We should find a proper way to deprecate it ...
4947AMTAR='$${TAR-tar}'
4948
4949
4950# We'll loop over all known methods to create a tar archive until one works.
4951_am_tools='gnutar  pax cpio none'
4952
4953am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4954
4955
4956
4957
4958
4959depcc="$CC"   am_compiler_list=
4960
4961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962printf %s "checking dependency style of $depcc... " >&6; }
4963if test ${am_cv_CC_dependencies_compiler_type+y}
4964then :
4965  printf %s "(cached) " >&6
4966else $as_nop
4967  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968  # We make a subdir and do the tests there.  Otherwise we can end up
4969  # making bogus files that we don't know about and never remove.  For
4970  # instance it was reported that on HP-UX the gcc test will end up
4971  # making a dummy file named 'D' -- because '-MD' means "put the output
4972  # in D".
4973  rm -rf conftest.dir
4974  mkdir conftest.dir
4975  # Copy depcomp to subdir because otherwise we won't find it if we're
4976  # using a relative directory.
4977  cp "$am_depcomp" conftest.dir
4978  cd conftest.dir
4979  # We will build objects and dependencies in a subdirectory because
4980  # it helps to detect inapplicable dependency modes.  For instance
4981  # both Tru64's cc and ICC support -MD to output dependencies as a
4982  # side effect of compilation, but ICC will put the dependencies in
4983  # the current directory while Tru64 will put them in the object
4984  # directory.
4985  mkdir sub
4986
4987  am_cv_CC_dependencies_compiler_type=none
4988  if test "$am_compiler_list" = ""; then
4989     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990  fi
4991  am__universal=false
4992  case " $depcc " in #(
4993     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994     esac
4995
4996  for depmode in $am_compiler_list; do
4997    # Setup a source with many dependencies, because some compilers
4998    # like to wrap large dependency lists on column 80 (with \), and
4999    # we should not choose a depcomp mode which is confused by this.
5000    #
5001    # We need to recreate these files for each test, as the compiler may
5002    # overwrite some of them when testing with obscure command lines.
5003    # This happens at least with the AIX C compiler.
5004    : > sub/conftest.c
5005    for i in 1 2 3 4 5 6; do
5006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5008      # Solaris 10 /bin/sh.
5009      echo '/* dummy */' > sub/conftst$i.h
5010    done
5011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5014    # mode.  It turns out that the SunPro C++ compiler does not properly
5015    # handle '-M -o', and we need to detect this.  Also, some Intel
5016    # versions had trouble with output in subdirs.
5017    am__obj=sub/conftest.${OBJEXT-o}
5018    am__minus_obj="-o $am__obj"
5019    case $depmode in
5020    gcc)
5021      # This depmode causes a compiler race in universal mode.
5022      test "$am__universal" = false || continue
5023      ;;
5024    nosideeffect)
5025      # After this tag, mechanisms are not by side-effect, so they'll
5026      # only be used when explicitly requested.
5027      if test "x$enable_dependency_tracking" = xyes; then
5028	continue
5029      else
5030	break
5031      fi
5032      ;;
5033    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5034      # This compiler won't grok '-c -o', but also, the minuso test has
5035      # not run yet.  These depmodes are late enough in the game, and
5036      # so weak that their functioning should not be impacted.
5037      am__obj=conftest.${OBJEXT-o}
5038      am__minus_obj=
5039      ;;
5040    none) break ;;
5041    esac
5042    if depmode=$depmode \
5043       source=sub/conftest.c object=$am__obj \
5044       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046         >/dev/null 2>conftest.err &&
5047       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051      # icc doesn't choke on unknown options, it will just issue warnings
5052      # or remarks (even with -Werror).  So we grep stderr for any message
5053      # that says an option was ignored or not supported.
5054      # When given -MP, icc 7.0 and 7.1 complain thusly:
5055      #   icc: Command line warning: ignoring option '-M'; no argument required
5056      # The diagnosis changed in icc 8.0:
5057      #   icc: Command line remark: option '-MP' not supported
5058      if (grep 'ignoring option' conftest.err ||
5059          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060        am_cv_CC_dependencies_compiler_type=$depmode
5061        break
5062      fi
5063    fi
5064  done
5065
5066  cd ..
5067  rm -rf conftest.dir
5068else
5069  am_cv_CC_dependencies_compiler_type=none
5070fi
5071
5072fi
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077 if
5078  test "x$enable_dependency_tracking" != xno \
5079  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080  am__fastdepCC_TRUE=
5081  am__fastdepCC_FALSE='#'
5082else
5083  am__fastdepCC_TRUE='#'
5084  am__fastdepCC_FALSE=
5085fi
5086
5087
5088# Variables for tags utilities; see am/tags.am
5089if test -z "$CTAGS"; then
5090  CTAGS=ctags
5091fi
5092
5093if test -z "$ETAGS"; then
5094  ETAGS=etags
5095fi
5096
5097if test -z "$CSCOPE"; then
5098  CSCOPE=cscope
5099fi
5100
5101
5102
5103# POSIX will say in a future version that running "rm -f" with no argument
5104# is OK; and we want to be able to make that assumption in our Makefile
5105# recipes.  So use an aggressive probe to check that the usage we want is
5106# actually supported "in the wild" to an acceptable degree.
5107# See automake bug#10828.
5108# To make any issue more visible, cause the running configure to be aborted
5109# by default if the 'rm' program in use doesn't match our expectations; the
5110# user can still override this though.
5111if rm -f && rm -fr && rm -rf; then : OK; else
5112  cat >&2 <<'END'
5113Oops!
5114
5115Your 'rm' program seems unable to run without file operands specified
5116on the command line, even when the '-f' option is present.  This is contrary
5117to the behaviour of most rm programs out there, and not conforming with
5118the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5119
5120Please tell bug-automake@gnu.org about your system, including the value
5121of your $PATH and any error possibly output before this message.  This
5122can help us improve future automake versions.
5123
5124END
5125  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5126    echo 'Configuration will proceed anyway, since you have set the' >&2
5127    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5128    echo >&2
5129  else
5130    cat >&2 <<'END'
5131Aborting the configuration process, to ensure you take notice of the issue.
5132
5133You can download and install GNU coreutils to get an 'rm' implementation
5134that behaves properly: <https://www.gnu.org/software/coreutils/>.
5135
5136If you want to complete the configuration process using your problematic
5137'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5138to "yes", and re-run configure.
5139
5140END
5141    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5142  fi
5143fi
5144
5145
5146# Initialize libtool
5147case `pwd` in
5148  *\ * | *\	*)
5149    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5150printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5151esac
5152
5153
5154
5155macro_version='2.4.7'
5156macro_revision='2.4.7'
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171ltmain=$ac_aux_dir/ltmain.sh
5172
5173# Backslashify metacharacters that are still active within
5174# double-quoted strings.
5175sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5176
5177# Same as above, but do not quote variable references.
5178double_quote_subst='s/\(["`\\]\)/\\\1/g'
5179
5180# Sed substitution to delay expansion of an escaped shell variable in a
5181# double_quote_subst'ed string.
5182delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5183
5184# Sed substitution to delay expansion of an escaped single quote.
5185delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5186
5187# Sed substitution to avoid accidental globbing in evaled expressions
5188no_glob_subst='s/\*/\\\*/g'
5189
5190ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5191ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5192ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5193
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5195printf %s "checking how to print strings... " >&6; }
5196# Test print first, because it will be a builtin if present.
5197if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5198   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5199  ECHO='print -r --'
5200elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5201  ECHO='printf %s\n'
5202else
5203  # Use this function as a fallback that always works.
5204  func_fallback_echo ()
5205  {
5206    eval 'cat <<_LTECHO_EOF
5207$1
5208_LTECHO_EOF'
5209  }
5210  ECHO='func_fallback_echo'
5211fi
5212
5213# func_echo_all arg...
5214# Invoke $ECHO with all args, space-separated.
5215func_echo_all ()
5216{
5217    $ECHO ""
5218}
5219
5220case $ECHO in
5221  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5222printf "%s\n" "printf" >&6; } ;;
5223  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5224printf "%s\n" "print -r" >&6; } ;;
5225  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5226printf "%s\n" "cat" >&6; } ;;
5227esac
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5243printf %s "checking for a sed that does not truncate output... " >&6; }
5244if test ${ac_cv_path_SED+y}
5245then :
5246  printf %s "(cached) " >&6
5247else $as_nop
5248            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5249     for ac_i in 1 2 3 4 5 6 7; do
5250       ac_script="$ac_script$as_nl$ac_script"
5251     done
5252     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5253     { ac_script=; unset ac_script;}
5254     if test -z "$SED"; then
5255  ac_path_SED_found=false
5256  # Loop through the user's path and test for each of PROGNAME-LIST
5257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260  IFS=$as_save_IFS
5261  case $as_dir in #(((
5262    '') as_dir=./ ;;
5263    */) ;;
5264    *) as_dir=$as_dir/ ;;
5265  esac
5266    for ac_prog in sed gsed
5267   do
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5270      as_fn_executable_p "$ac_path_SED" || continue
5271# Check for GNU ac_path_SED and select it if it is found.
5272  # Check for GNU $ac_path_SED
5273case `"$ac_path_SED" --version 2>&1` in
5274*GNU*)
5275  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276*)
5277  ac_count=0
5278  printf %s 0123456789 >"conftest.in"
5279  while :
5280  do
5281    cat "conftest.in" "conftest.in" >"conftest.tmp"
5282    mv "conftest.tmp" "conftest.in"
5283    cp "conftest.in" "conftest.nl"
5284    printf "%s\n" '' >> "conftest.nl"
5285    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287    as_fn_arith $ac_count + 1 && ac_count=$as_val
5288    if test $ac_count -gt ${ac_path_SED_max-0}; then
5289      # Best one so far, save it but keep looking for a better one
5290      ac_cv_path_SED="$ac_path_SED"
5291      ac_path_SED_max=$ac_count
5292    fi
5293    # 10*(2^10) chars as input seems more than enough
5294    test $ac_count -gt 10 && break
5295  done
5296  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297esac
5298
5299      $ac_path_SED_found && break 3
5300    done
5301  done
5302  done
5303IFS=$as_save_IFS
5304  if test -z "$ac_cv_path_SED"; then
5305    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306  fi
5307else
5308  ac_cv_path_SED=$SED
5309fi
5310
5311fi
5312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313printf "%s\n" "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5315  rm -f conftest.sed
5316
5317test -z "$SED" && SED=sed
5318Xsed="$SED -e 1s/^X//"
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5331printf %s "checking for grep that handles long lines and -e... " >&6; }
5332if test ${ac_cv_path_GREP+y}
5333then :
5334  printf %s "(cached) " >&6
5335else $as_nop
5336  if test -z "$GREP"; then
5337  ac_path_GREP_found=false
5338  # Loop through the user's path and test for each of PROGNAME-LIST
5339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5341do
5342  IFS=$as_save_IFS
5343  case $as_dir in #(((
5344    '') as_dir=./ ;;
5345    */) ;;
5346    *) as_dir=$as_dir/ ;;
5347  esac
5348    for ac_prog in grep ggrep
5349   do
5350    for ac_exec_ext in '' $ac_executable_extensions; do
5351      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5352      as_fn_executable_p "$ac_path_GREP" || continue
5353# Check for GNU ac_path_GREP and select it if it is found.
5354  # Check for GNU $ac_path_GREP
5355case `"$ac_path_GREP" --version 2>&1` in
5356*GNU*)
5357  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5358*)
5359  ac_count=0
5360  printf %s 0123456789 >"conftest.in"
5361  while :
5362  do
5363    cat "conftest.in" "conftest.in" >"conftest.tmp"
5364    mv "conftest.tmp" "conftest.in"
5365    cp "conftest.in" "conftest.nl"
5366    printf "%s\n" 'GREP' >> "conftest.nl"
5367    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5369    as_fn_arith $ac_count + 1 && ac_count=$as_val
5370    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5371      # Best one so far, save it but keep looking for a better one
5372      ac_cv_path_GREP="$ac_path_GREP"
5373      ac_path_GREP_max=$ac_count
5374    fi
5375    # 10*(2^10) chars as input seems more than enough
5376    test $ac_count -gt 10 && break
5377  done
5378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5379esac
5380
5381      $ac_path_GREP_found && break 3
5382    done
5383  done
5384  done
5385IFS=$as_save_IFS
5386  if test -z "$ac_cv_path_GREP"; then
5387    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5388  fi
5389else
5390  ac_cv_path_GREP=$GREP
5391fi
5392
5393fi
5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5395printf "%s\n" "$ac_cv_path_GREP" >&6; }
5396 GREP="$ac_cv_path_GREP"
5397
5398
5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5400printf %s "checking for egrep... " >&6; }
5401if test ${ac_cv_path_EGREP+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5406   then ac_cv_path_EGREP="$GREP -E"
5407   else
5408     if test -z "$EGREP"; then
5409  ac_path_EGREP_found=false
5410  # Loop through the user's path and test for each of PROGNAME-LIST
5411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5413do
5414  IFS=$as_save_IFS
5415  case $as_dir in #(((
5416    '') as_dir=./ ;;
5417    */) ;;
5418    *) as_dir=$as_dir/ ;;
5419  esac
5420    for ac_prog in egrep
5421   do
5422    for ac_exec_ext in '' $ac_executable_extensions; do
5423      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5424      as_fn_executable_p "$ac_path_EGREP" || continue
5425# Check for GNU ac_path_EGREP and select it if it is found.
5426  # Check for GNU $ac_path_EGREP
5427case `"$ac_path_EGREP" --version 2>&1` in
5428*GNU*)
5429  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5430*)
5431  ac_count=0
5432  printf %s 0123456789 >"conftest.in"
5433  while :
5434  do
5435    cat "conftest.in" "conftest.in" >"conftest.tmp"
5436    mv "conftest.tmp" "conftest.in"
5437    cp "conftest.in" "conftest.nl"
5438    printf "%s\n" 'EGREP' >> "conftest.nl"
5439    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5440    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5441    as_fn_arith $ac_count + 1 && ac_count=$as_val
5442    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5443      # Best one so far, save it but keep looking for a better one
5444      ac_cv_path_EGREP="$ac_path_EGREP"
5445      ac_path_EGREP_max=$ac_count
5446    fi
5447    # 10*(2^10) chars as input seems more than enough
5448    test $ac_count -gt 10 && break
5449  done
5450  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5451esac
5452
5453      $ac_path_EGREP_found && break 3
5454    done
5455  done
5456  done
5457IFS=$as_save_IFS
5458  if test -z "$ac_cv_path_EGREP"; then
5459    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5460  fi
5461else
5462  ac_cv_path_EGREP=$EGREP
5463fi
5464
5465   fi
5466fi
5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5468printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5469 EGREP="$ac_cv_path_EGREP"
5470
5471
5472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5473printf %s "checking for fgrep... " >&6; }
5474if test ${ac_cv_path_FGREP+y}
5475then :
5476  printf %s "(cached) " >&6
5477else $as_nop
5478  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5479   then ac_cv_path_FGREP="$GREP -F"
5480   else
5481     if test -z "$FGREP"; then
5482  ac_path_FGREP_found=false
5483  # Loop through the user's path and test for each of PROGNAME-LIST
5484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5486do
5487  IFS=$as_save_IFS
5488  case $as_dir in #(((
5489    '') as_dir=./ ;;
5490    */) ;;
5491    *) as_dir=$as_dir/ ;;
5492  esac
5493    for ac_prog in fgrep
5494   do
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5497      as_fn_executable_p "$ac_path_FGREP" || continue
5498# Check for GNU ac_path_FGREP and select it if it is found.
5499  # Check for GNU $ac_path_FGREP
5500case `"$ac_path_FGREP" --version 2>&1` in
5501*GNU*)
5502  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5503*)
5504  ac_count=0
5505  printf %s 0123456789 >"conftest.in"
5506  while :
5507  do
5508    cat "conftest.in" "conftest.in" >"conftest.tmp"
5509    mv "conftest.tmp" "conftest.in"
5510    cp "conftest.in" "conftest.nl"
5511    printf "%s\n" 'FGREP' >> "conftest.nl"
5512    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5513    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5514    as_fn_arith $ac_count + 1 && ac_count=$as_val
5515    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5516      # Best one so far, save it but keep looking for a better one
5517      ac_cv_path_FGREP="$ac_path_FGREP"
5518      ac_path_FGREP_max=$ac_count
5519    fi
5520    # 10*(2^10) chars as input seems more than enough
5521    test $ac_count -gt 10 && break
5522  done
5523  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5524esac
5525
5526      $ac_path_FGREP_found && break 3
5527    done
5528  done
5529  done
5530IFS=$as_save_IFS
5531  if test -z "$ac_cv_path_FGREP"; then
5532    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5533  fi
5534else
5535  ac_cv_path_FGREP=$FGREP
5536fi
5537
5538   fi
5539fi
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5541printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5542 FGREP="$ac_cv_path_FGREP"
5543
5544
5545test -z "$GREP" && GREP=grep
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565# Check whether --with-gnu-ld was given.
5566if test ${with_gnu_ld+y}
5567then :
5568  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5569else $as_nop
5570  with_gnu_ld=no
5571fi
5572
5573ac_prog=ld
5574if test yes = "$GCC"; then
5575  # Check if gcc -print-prog-name=ld gives a path.
5576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5577printf %s "checking for ld used by $CC... " >&6; }
5578  case $host in
5579  *-*-mingw*)
5580    # gcc leaves a trailing carriage return, which upsets mingw
5581    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5582  *)
5583    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5584  esac
5585  case $ac_prog in
5586    # Accept absolute paths.
5587    [\\/]* | ?:[\\/]*)
5588      re_direlt='/[^/][^/]*/\.\./'
5589      # Canonicalize the pathname of ld
5590      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5591      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5592	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5593      done
5594      test -z "$LD" && LD=$ac_prog
5595      ;;
5596  "")
5597    # If it fails, then pretend we aren't using GCC.
5598    ac_prog=ld
5599    ;;
5600  *)
5601    # If it is relative, then search for the first ld in PATH.
5602    with_gnu_ld=unknown
5603    ;;
5604  esac
5605elif test yes = "$with_gnu_ld"; then
5606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5607printf %s "checking for GNU ld... " >&6; }
5608else
5609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5610printf %s "checking for non-GNU ld... " >&6; }
5611fi
5612if test ${lt_cv_path_LD+y}
5613then :
5614  printf %s "(cached) " >&6
5615else $as_nop
5616  if test -z "$LD"; then
5617  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5618  for ac_dir in $PATH; do
5619    IFS=$lt_save_ifs
5620    test -z "$ac_dir" && ac_dir=.
5621    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5622      lt_cv_path_LD=$ac_dir/$ac_prog
5623      # Check to see if the program is GNU ld.  I'd rather use --version,
5624      # but apparently some variants of GNU ld only accept -v.
5625      # Break only if it was the GNU/non-GNU ld that we prefer.
5626      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5627      *GNU* | *'with BFD'*)
5628	test no != "$with_gnu_ld" && break
5629	;;
5630      *)
5631	test yes != "$with_gnu_ld" && break
5632	;;
5633      esac
5634    fi
5635  done
5636  IFS=$lt_save_ifs
5637else
5638  lt_cv_path_LD=$LD # Let the user override the test with a path.
5639fi
5640fi
5641
5642LD=$lt_cv_path_LD
5643if test -n "$LD"; then
5644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5645printf "%s\n" "$LD" >&6; }
5646else
5647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648printf "%s\n" "no" >&6; }
5649fi
5650test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5652printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5653if test ${lt_cv_prog_gnu_ld+y}
5654then :
5655  printf %s "(cached) " >&6
5656else $as_nop
5657  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5658case `$LD -v 2>&1 </dev/null` in
5659*GNU* | *'with BFD'*)
5660  lt_cv_prog_gnu_ld=yes
5661  ;;
5662*)
5663  lt_cv_prog_gnu_ld=no
5664  ;;
5665esac
5666fi
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5668printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5669with_gnu_ld=$lt_cv_prog_gnu_ld
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5680printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5681if test ${lt_cv_path_NM+y}
5682then :
5683  printf %s "(cached) " >&6
5684else $as_nop
5685  if test -n "$NM"; then
5686  # Let the user override the test.
5687  lt_cv_path_NM=$NM
5688else
5689  lt_nm_to_check=${ac_tool_prefix}nm
5690  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5691    lt_nm_to_check="$lt_nm_to_check nm"
5692  fi
5693  for lt_tmp_nm in $lt_nm_to_check; do
5694    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5695    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5696      IFS=$lt_save_ifs
5697      test -z "$ac_dir" && ac_dir=.
5698      tmp_nm=$ac_dir/$lt_tmp_nm
5699      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5700	# Check to see if the nm accepts a BSD-compat flag.
5701	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5702	#   nm: unknown option "B" ignored
5703	# Tru64's nm complains that /dev/null is an invalid object file
5704	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5705	case $build_os in
5706	mingw*) lt_bad_file=conftest.nm/nofile ;;
5707	*) lt_bad_file=/dev/null ;;
5708	esac
5709	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5710	*$lt_bad_file* | *'Invalid file or object type'*)
5711	  lt_cv_path_NM="$tmp_nm -B"
5712	  break 2
5713	  ;;
5714	*)
5715	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5716	  */dev/null*)
5717	    lt_cv_path_NM="$tmp_nm -p"
5718	    break 2
5719	    ;;
5720	  *)
5721	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722	    continue # so that we can try to find one that supports BSD flags
5723	    ;;
5724	  esac
5725	  ;;
5726	esac
5727      fi
5728    done
5729    IFS=$lt_save_ifs
5730  done
5731  : ${lt_cv_path_NM=no}
5732fi
5733fi
5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5735printf "%s\n" "$lt_cv_path_NM" >&6; }
5736if test no != "$lt_cv_path_NM"; then
5737  NM=$lt_cv_path_NM
5738else
5739  # Didn't find any BSD compatible name lister, look for dumpbin.
5740  if test -n "$DUMPBIN"; then :
5741    # Let the user override the test.
5742  else
5743    if test -n "$ac_tool_prefix"; then
5744  for ac_prog in dumpbin "link -dump"
5745  do
5746    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749printf %s "checking for $ac_word... " >&6; }
5750if test ${ac_cv_prog_DUMPBIN+y}
5751then :
5752  printf %s "(cached) " >&6
5753else $as_nop
5754  if test -n "$DUMPBIN"; then
5755  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760  IFS=$as_save_IFS
5761  case $as_dir in #(((
5762    '') as_dir=./ ;;
5763    */) ;;
5764    *) as_dir=$as_dir/ ;;
5765  esac
5766    for ac_exec_ext in '' $ac_executable_extensions; do
5767  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5768    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5769    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5770    break 2
5771  fi
5772done
5773  done
5774IFS=$as_save_IFS
5775
5776fi
5777fi
5778DUMPBIN=$ac_cv_prog_DUMPBIN
5779if test -n "$DUMPBIN"; then
5780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5781printf "%s\n" "$DUMPBIN" >&6; }
5782else
5783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784printf "%s\n" "no" >&6; }
5785fi
5786
5787
5788    test -n "$DUMPBIN" && break
5789  done
5790fi
5791if test -z "$DUMPBIN"; then
5792  ac_ct_DUMPBIN=$DUMPBIN
5793  for ac_prog in dumpbin "link -dump"
5794do
5795  # Extract the first word of "$ac_prog", so it can be a program name with args.
5796set dummy $ac_prog; ac_word=$2
5797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798printf %s "checking for $ac_word... " >&6; }
5799if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5800then :
5801  printf %s "(cached) " >&6
5802else $as_nop
5803  if test -n "$ac_ct_DUMPBIN"; then
5804  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  case $as_dir in #(((
5811    '') as_dir=./ ;;
5812    */) ;;
5813    *) as_dir=$as_dir/ ;;
5814  esac
5815    for ac_exec_ext in '' $ac_executable_extensions; do
5816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5817    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5819    break 2
5820  fi
5821done
5822  done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5828if test -n "$ac_ct_DUMPBIN"; then
5829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5830printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5831else
5832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833printf "%s\n" "no" >&6; }
5834fi
5835
5836
5837  test -n "$ac_ct_DUMPBIN" && break
5838done
5839
5840  if test "x$ac_ct_DUMPBIN" = x; then
5841    DUMPBIN=":"
5842  else
5843    case $cross_compiling:$ac_tool_warned in
5844yes:)
5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847ac_tool_warned=yes ;;
5848esac
5849    DUMPBIN=$ac_ct_DUMPBIN
5850  fi
5851fi
5852
5853    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5854    *COFF*)
5855      DUMPBIN="$DUMPBIN -symbols -headers"
5856      ;;
5857    *)
5858      DUMPBIN=:
5859      ;;
5860    esac
5861  fi
5862
5863  if test : != "$DUMPBIN"; then
5864    NM=$DUMPBIN
5865  fi
5866fi
5867test -z "$NM" && NM=nm
5868
5869
5870
5871
5872
5873
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5875printf %s "checking the name lister ($NM) interface... " >&6; }
5876if test ${lt_cv_nm_interface+y}
5877then :
5878  printf %s "(cached) " >&6
5879else $as_nop
5880  lt_cv_nm_interface="BSD nm"
5881  echo "int some_variable = 0;" > conftest.$ac_ext
5882  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5883  (eval "$ac_compile" 2>conftest.err)
5884  cat conftest.err >&5
5885  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5886  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5887  cat conftest.err >&5
5888  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5889  cat conftest.out >&5
5890  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5891    lt_cv_nm_interface="MS dumpbin"
5892  fi
5893  rm -f conftest*
5894fi
5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5896printf "%s\n" "$lt_cv_nm_interface" >&6; }
5897
5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5899printf %s "checking whether ln -s works... " >&6; }
5900LN_S=$as_ln_s
5901if test "$LN_S" = "ln -s"; then
5902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5903printf "%s\n" "yes" >&6; }
5904else
5905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5906printf "%s\n" "no, using $LN_S" >&6; }
5907fi
5908
5909# find the maximum length of command line arguments
5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5911printf %s "checking the maximum length of command line arguments... " >&6; }
5912if test ${lt_cv_sys_max_cmd_len+y}
5913then :
5914  printf %s "(cached) " >&6
5915else $as_nop
5916    i=0
5917  teststring=ABCD
5918
5919  case $build_os in
5920  msdosdjgpp*)
5921    # On DJGPP, this test can blow up pretty badly due to problems in libc
5922    # (any single argument exceeding 2000 bytes causes a buffer overrun
5923    # during glob expansion).  Even if it were fixed, the result of this
5924    # check would be larger than it should be.
5925    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5926    ;;
5927
5928  gnu*)
5929    # Under GNU Hurd, this test is not required because there is
5930    # no limit to the length of command line arguments.
5931    # Libtool will interpret -1 as no limit whatsoever
5932    lt_cv_sys_max_cmd_len=-1;
5933    ;;
5934
5935  cygwin* | mingw* | cegcc*)
5936    # On Win9x/ME, this test blows up -- it succeeds, but takes
5937    # about 5 minutes as the teststring grows exponentially.
5938    # Worse, since 9x/ME are not pre-emptively multitasking,
5939    # you end up with a "frozen" computer, even though with patience
5940    # the test eventually succeeds (with a max line length of 256k).
5941    # Instead, let's just punt: use the minimum linelength reported by
5942    # all of the supported platforms: 8192 (on NT/2K/XP).
5943    lt_cv_sys_max_cmd_len=8192;
5944    ;;
5945
5946  mint*)
5947    # On MiNT this can take a long time and run out of memory.
5948    lt_cv_sys_max_cmd_len=8192;
5949    ;;
5950
5951  amigaos*)
5952    # On AmigaOS with pdksh, this test takes hours, literally.
5953    # So we just punt and use a minimum line length of 8192.
5954    lt_cv_sys_max_cmd_len=8192;
5955    ;;
5956
5957  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5958    # This has been around since 386BSD, at least.  Likely further.
5959    if test -x /sbin/sysctl; then
5960      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961    elif test -x /usr/sbin/sysctl; then
5962      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963    else
5964      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5965    fi
5966    # And add a safety zone
5967    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969    ;;
5970
5971  interix*)
5972    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973    lt_cv_sys_max_cmd_len=196608
5974    ;;
5975
5976  os2*)
5977    # The test takes a long time on OS/2.
5978    lt_cv_sys_max_cmd_len=8192
5979    ;;
5980
5981  osf*)
5982    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984    # nice to cause kernel panics so lets avoid the loop below.
5985    # First set a reasonable default.
5986    lt_cv_sys_max_cmd_len=16384
5987    #
5988    if test -x /sbin/sysconfig; then
5989      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991      esac
5992    fi
5993    ;;
5994  sco3.2v5*)
5995    lt_cv_sys_max_cmd_len=102400
5996    ;;
5997  sysv5* | sco5v6* | sysv4.2uw2*)
5998    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999    if test -n "$kargmax"; then
6000      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6001    else
6002      lt_cv_sys_max_cmd_len=32768
6003    fi
6004    ;;
6005  *)
6006    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007    if test -n "$lt_cv_sys_max_cmd_len" && \
6008       test undefined != "$lt_cv_sys_max_cmd_len"; then
6009      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6010      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6011    else
6012      # Make teststring a little bigger before we do anything with it.
6013      # a 1K string should be a reasonable start.
6014      for i in 1 2 3 4 5 6 7 8; do
6015        teststring=$teststring$teststring
6016      done
6017      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6018      # If test is not a shell built-in, we'll probably end up computing a
6019      # maximum length that is only half of the actual maximum length, but
6020      # we can't tell.
6021      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6022	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6023	      test 17 != "$i" # 1/2 MB should be enough
6024      do
6025        i=`expr $i + 1`
6026        teststring=$teststring$teststring
6027      done
6028      # Only check the string length outside the loop.
6029      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6030      teststring=
6031      # Add a significant safety factor because C++ compilers can tack on
6032      # massive amounts of additional arguments before passing them to the
6033      # linker.  It appears as though 1/2 is a usable value.
6034      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6035    fi
6036    ;;
6037  esac
6038
6039fi
6040
6041if test -n "$lt_cv_sys_max_cmd_len"; then
6042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6044else
6045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046printf "%s\n" "none" >&6; }
6047fi
6048max_cmd_len=$lt_cv_sys_max_cmd_len
6049
6050
6051
6052
6053
6054
6055: ${CP="cp -f"}
6056: ${MV="mv -f"}
6057: ${RM="rm -f"}
6058
6059if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6060  lt_unset=unset
6061else
6062  lt_unset=false
6063fi
6064
6065
6066
6067
6068
6069# test EBCDIC or ASCII
6070case `echo X|tr X '\101'` in
6071 A) # ASCII based system
6072    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6073  lt_SP2NL='tr \040 \012'
6074  lt_NL2SP='tr \015\012 \040\040'
6075  ;;
6076 *) # EBCDIC based system
6077  lt_SP2NL='tr \100 \n'
6078  lt_NL2SP='tr \r\n \100\100'
6079  ;;
6080esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6091printf %s "checking how to convert $build file names to $host format... " >&6; }
6092if test ${lt_cv_to_host_file_cmd+y}
6093then :
6094  printf %s "(cached) " >&6
6095else $as_nop
6096  case $host in
6097  *-*-mingw* )
6098    case $build in
6099      *-*-mingw* ) # actually msys
6100        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6101        ;;
6102      *-*-cygwin* )
6103        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6104        ;;
6105      * ) # otherwise, assume *nix
6106        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6107        ;;
6108    esac
6109    ;;
6110  *-*-cygwin* )
6111    case $build in
6112      *-*-mingw* ) # actually msys
6113        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6114        ;;
6115      *-*-cygwin* )
6116        lt_cv_to_host_file_cmd=func_convert_file_noop
6117        ;;
6118      * ) # otherwise, assume *nix
6119        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6120        ;;
6121    esac
6122    ;;
6123  * ) # unhandled hosts (and "normal" native builds)
6124    lt_cv_to_host_file_cmd=func_convert_file_noop
6125    ;;
6126esac
6127
6128fi
6129
6130to_host_file_cmd=$lt_cv_to_host_file_cmd
6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6132printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6133
6134
6135
6136
6137
6138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6139printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6140if test ${lt_cv_to_tool_file_cmd+y}
6141then :
6142  printf %s "(cached) " >&6
6143else $as_nop
6144  #assume ordinary cross tools, or native build.
6145lt_cv_to_tool_file_cmd=func_convert_file_noop
6146case $host in
6147  *-*-mingw* )
6148    case $build in
6149      *-*-mingw* ) # actually msys
6150        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6151        ;;
6152    esac
6153    ;;
6154esac
6155
6156fi
6157
6158to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6160printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6161
6162
6163
6164
6165
6166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6167printf %s "checking for $LD option to reload object files... " >&6; }
6168if test ${lt_cv_ld_reload_flag+y}
6169then :
6170  printf %s "(cached) " >&6
6171else $as_nop
6172  lt_cv_ld_reload_flag='-r'
6173fi
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6175printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6176reload_flag=$lt_cv_ld_reload_flag
6177case $reload_flag in
6178"" | " "*) ;;
6179*) reload_flag=" $reload_flag" ;;
6180esac
6181reload_cmds='$LD$reload_flag -o $output$reload_objs'
6182case $host_os in
6183  cygwin* | mingw* | pw32* | cegcc*)
6184    if test yes != "$GCC"; then
6185      reload_cmds=false
6186    fi
6187    ;;
6188  darwin*)
6189    if test yes = "$GCC"; then
6190      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6191    else
6192      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193    fi
6194    ;;
6195esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205if test -n "$ac_tool_prefix"; then
6206  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}file; ac_word=$2
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209printf %s "checking for $ac_word... " >&6; }
6210if test ${ac_cv_prog_FILECMD+y}
6211then :
6212  printf %s "(cached) " >&6
6213else $as_nop
6214  if test -n "$FILECMD"; then
6215  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  case $as_dir in #(((
6222    '') as_dir=./ ;;
6223    */) ;;
6224    *) as_dir=$as_dir/ ;;
6225  esac
6226    for ac_exec_ext in '' $ac_executable_extensions; do
6227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233  done
6234IFS=$as_save_IFS
6235
6236fi
6237fi
6238FILECMD=$ac_cv_prog_FILECMD
6239if test -n "$FILECMD"; then
6240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6241printf "%s\n" "$FILECMD" >&6; }
6242else
6243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244printf "%s\n" "no" >&6; }
6245fi
6246
6247
6248fi
6249if test -z "$ac_cv_prog_FILECMD"; then
6250  ac_ct_FILECMD=$FILECMD
6251  # Extract the first word of "file", so it can be a program name with args.
6252set dummy file; ac_word=$2
6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254printf %s "checking for $ac_word... " >&6; }
6255if test ${ac_cv_prog_ac_ct_FILECMD+y}
6256then :
6257  printf %s "(cached) " >&6
6258else $as_nop
6259  if test -n "$ac_ct_FILECMD"; then
6260  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265  IFS=$as_save_IFS
6266  case $as_dir in #(((
6267    '') as_dir=./ ;;
6268    */) ;;
6269    *) as_dir=$as_dir/ ;;
6270  esac
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273    ac_cv_prog_ac_ct_FILECMD="file"
6274    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6284if test -n "$ac_ct_FILECMD"; then
6285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6286printf "%s\n" "$ac_ct_FILECMD" >&6; }
6287else
6288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289printf "%s\n" "no" >&6; }
6290fi
6291
6292  if test "x$ac_ct_FILECMD" = x; then
6293    FILECMD=":"
6294  else
6295    case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301    FILECMD=$ac_ct_FILECMD
6302  fi
6303else
6304  FILECMD="$ac_cv_prog_FILECMD"
6305fi
6306
6307
6308
6309
6310
6311
6312
6313if test -n "$ac_tool_prefix"; then
6314  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6315set dummy ${ac_tool_prefix}objdump; ac_word=$2
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317printf %s "checking for $ac_word... " >&6; }
6318if test ${ac_cv_prog_OBJDUMP+y}
6319then :
6320  printf %s "(cached) " >&6
6321else $as_nop
6322  if test -n "$OBJDUMP"; then
6323  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  case $as_dir in #(((
6330    '') as_dir=./ ;;
6331    */) ;;
6332    *) as_dir=$as_dir/ ;;
6333  esac
6334    for ac_exec_ext in '' $ac_executable_extensions; do
6335  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6336    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6337    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6338    break 2
6339  fi
6340done
6341  done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346OBJDUMP=$ac_cv_prog_OBJDUMP
6347if test -n "$OBJDUMP"; then
6348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6349printf "%s\n" "$OBJDUMP" >&6; }
6350else
6351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352printf "%s\n" "no" >&6; }
6353fi
6354
6355
6356fi
6357if test -z "$ac_cv_prog_OBJDUMP"; then
6358  ac_ct_OBJDUMP=$OBJDUMP
6359  # Extract the first word of "objdump", so it can be a program name with args.
6360set dummy objdump; ac_word=$2
6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362printf %s "checking for $ac_word... " >&6; }
6363if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6364then :
6365  printf %s "(cached) " >&6
6366else $as_nop
6367  if test -n "$ac_ct_OBJDUMP"; then
6368  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  case $as_dir in #(((
6375    '') as_dir=./ ;;
6376    */) ;;
6377    *) as_dir=$as_dir/ ;;
6378  esac
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6381    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6382    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6392if test -n "$ac_ct_OBJDUMP"; then
6393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6394printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6395else
6396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397printf "%s\n" "no" >&6; }
6398fi
6399
6400  if test "x$ac_ct_OBJDUMP" = x; then
6401    OBJDUMP="false"
6402  else
6403    case $cross_compiling:$ac_tool_warned in
6404yes:)
6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407ac_tool_warned=yes ;;
6408esac
6409    OBJDUMP=$ac_ct_OBJDUMP
6410  fi
6411else
6412  OBJDUMP="$ac_cv_prog_OBJDUMP"
6413fi
6414
6415test -z "$OBJDUMP" && OBJDUMP=objdump
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6426printf %s "checking how to recognize dependent libraries... " >&6; }
6427if test ${lt_cv_deplibs_check_method+y}
6428then :
6429  printf %s "(cached) " >&6
6430else $as_nop
6431  lt_cv_file_magic_cmd='$MAGIC_CMD'
6432lt_cv_file_magic_test_file=
6433lt_cv_deplibs_check_method='unknown'
6434# Need to set the preceding variable on all platforms that support
6435# interlibrary dependencies.
6436# 'none' -- dependencies not supported.
6437# 'unknown' -- same as none, but documents that we really don't know.
6438# 'pass_all' -- all dependencies passed with no checks.
6439# 'test_compile' -- check by making test program.
6440# 'file_magic [[regex]]' -- check by looking for files in library path
6441# that responds to the $file_magic_cmd with a given extended regex.
6442# If you have 'file' or equivalent on your system and you're not sure
6443# whether 'pass_all' will *always* work, you probably want this one.
6444
6445case $host_os in
6446aix[4-9]*)
6447  lt_cv_deplibs_check_method=pass_all
6448  ;;
6449
6450beos*)
6451  lt_cv_deplibs_check_method=pass_all
6452  ;;
6453
6454bsdi[45]*)
6455  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6456  lt_cv_file_magic_cmd='$FILECMD -L'
6457  lt_cv_file_magic_test_file=/shlib/libc.so
6458  ;;
6459
6460cygwin*)
6461  # func_win32_libid is a shell function defined in ltmain.sh
6462  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6463  lt_cv_file_magic_cmd='func_win32_libid'
6464  ;;
6465
6466mingw* | pw32*)
6467  # Base MSYS/MinGW do not provide the 'file' command needed by
6468  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6469  # unless we find 'file', for example because we are cross-compiling.
6470  if ( file / ) >/dev/null 2>&1; then
6471    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6472    lt_cv_file_magic_cmd='func_win32_libid'
6473  else
6474    # Keep this pattern in sync with the one in func_win32_libid.
6475    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6476    lt_cv_file_magic_cmd='$OBJDUMP -f'
6477  fi
6478  ;;
6479
6480cegcc*)
6481  # use the weaker test based on 'objdump'. See mingw*.
6482  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6483  lt_cv_file_magic_cmd='$OBJDUMP -f'
6484  ;;
6485
6486darwin* | rhapsody*)
6487  lt_cv_deplibs_check_method=pass_all
6488  ;;
6489
6490freebsd* | dragonfly* | midnightbsd*)
6491  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492    case $host_cpu in
6493    i*86 )
6494      # Not sure whether the presence of OpenBSD here was a mistake.
6495      # Let's accept both of them until this is cleared up.
6496      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6497      lt_cv_file_magic_cmd=$FILECMD
6498      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6499      ;;
6500    esac
6501  else
6502    lt_cv_deplibs_check_method=pass_all
6503  fi
6504  ;;
6505
6506haiku*)
6507  lt_cv_deplibs_check_method=pass_all
6508  ;;
6509
6510hpux10.20* | hpux11*)
6511  lt_cv_file_magic_cmd=$FILECMD
6512  case $host_cpu in
6513  ia64*)
6514    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6515    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6516    ;;
6517  hppa*64*)
6518    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]'
6519    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6520    ;;
6521  *)
6522    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6523    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6524    ;;
6525  esac
6526  ;;
6527
6528interix[3-9]*)
6529  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6530  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6531  ;;
6532
6533irix5* | irix6* | nonstopux*)
6534  case $LD in
6535  *-32|*"-32 ") libmagic=32-bit;;
6536  *-n32|*"-n32 ") libmagic=N32;;
6537  *-64|*"-64 ") libmagic=64-bit;;
6538  *) libmagic=never-match;;
6539  esac
6540  lt_cv_deplibs_check_method=pass_all
6541  ;;
6542
6543# This must be glibc/ELF.
6544linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6545  lt_cv_deplibs_check_method=pass_all
6546  ;;
6547
6548netbsd*)
6549  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6551  else
6552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6553  fi
6554  ;;
6555
6556newos6*)
6557  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6558  lt_cv_file_magic_cmd=$FILECMD
6559  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6560  ;;
6561
6562*nto* | *qnx*)
6563  lt_cv_deplibs_check_method=pass_all
6564  ;;
6565
6566openbsd* | bitrig*)
6567  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6569  else
6570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571  fi
6572  ;;
6573
6574osf3* | osf4* | osf5*)
6575  lt_cv_deplibs_check_method=pass_all
6576  ;;
6577
6578rdos*)
6579  lt_cv_deplibs_check_method=pass_all
6580  ;;
6581
6582solaris*)
6583  lt_cv_deplibs_check_method=pass_all
6584  ;;
6585
6586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6587  lt_cv_deplibs_check_method=pass_all
6588  ;;
6589
6590sysv4 | sysv4.3*)
6591  case $host_vendor in
6592  motorola)
6593    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]'
6594    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6595    ;;
6596  ncr)
6597    lt_cv_deplibs_check_method=pass_all
6598    ;;
6599  sequent)
6600    lt_cv_file_magic_cmd='/bin/file'
6601    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6602    ;;
6603  sni)
6604    lt_cv_file_magic_cmd='/bin/file'
6605    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6606    lt_cv_file_magic_test_file=/lib/libc.so
6607    ;;
6608  siemens)
6609    lt_cv_deplibs_check_method=pass_all
6610    ;;
6611  pc)
6612    lt_cv_deplibs_check_method=pass_all
6613    ;;
6614  esac
6615  ;;
6616
6617tpf*)
6618  lt_cv_deplibs_check_method=pass_all
6619  ;;
6620os2*)
6621  lt_cv_deplibs_check_method=pass_all
6622  ;;
6623esac
6624
6625fi
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6627printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6628
6629file_magic_glob=
6630want_nocaseglob=no
6631if test "$build" = "$host"; then
6632  case $host_os in
6633  mingw* | pw32*)
6634    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6635      want_nocaseglob=yes
6636    else
6637      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6638    fi
6639    ;;
6640  esac
6641fi
6642
6643file_magic_cmd=$lt_cv_file_magic_cmd
6644deplibs_check_method=$lt_cv_deplibs_check_method
6645test -z "$deplibs_check_method" && deplibs_check_method=unknown
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668if test -n "$ac_tool_prefix"; then
6669  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6670set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672printf %s "checking for $ac_word... " >&6; }
6673if test ${ac_cv_prog_DLLTOOL+y}
6674then :
6675  printf %s "(cached) " >&6
6676else $as_nop
6677  if test -n "$DLLTOOL"; then
6678  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683  IFS=$as_save_IFS
6684  case $as_dir in #(((
6685    '') as_dir=./ ;;
6686    */) ;;
6687    *) as_dir=$as_dir/ ;;
6688  esac
6689    for ac_exec_ext in '' $ac_executable_extensions; do
6690  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6691    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6692    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6693    break 2
6694  fi
6695done
6696  done
6697IFS=$as_save_IFS
6698
6699fi
6700fi
6701DLLTOOL=$ac_cv_prog_DLLTOOL
6702if test -n "$DLLTOOL"; then
6703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6704printf "%s\n" "$DLLTOOL" >&6; }
6705else
6706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707printf "%s\n" "no" >&6; }
6708fi
6709
6710
6711fi
6712if test -z "$ac_cv_prog_DLLTOOL"; then
6713  ac_ct_DLLTOOL=$DLLTOOL
6714  # Extract the first word of "dlltool", so it can be a program name with args.
6715set dummy dlltool; ac_word=$2
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717printf %s "checking for $ac_word... " >&6; }
6718if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6719then :
6720  printf %s "(cached) " >&6
6721else $as_nop
6722  if test -n "$ac_ct_DLLTOOL"; then
6723  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728  IFS=$as_save_IFS
6729  case $as_dir in #(((
6730    '') as_dir=./ ;;
6731    */) ;;
6732    *) as_dir=$as_dir/ ;;
6733  esac
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6736    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6747if test -n "$ac_ct_DLLTOOL"; then
6748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6749printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6750else
6751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752printf "%s\n" "no" >&6; }
6753fi
6754
6755  if test "x$ac_ct_DLLTOOL" = x; then
6756    DLLTOOL="false"
6757  else
6758    case $cross_compiling:$ac_tool_warned in
6759yes:)
6760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762ac_tool_warned=yes ;;
6763esac
6764    DLLTOOL=$ac_ct_DLLTOOL
6765  fi
6766else
6767  DLLTOOL="$ac_cv_prog_DLLTOOL"
6768fi
6769
6770test -z "$DLLTOOL" && DLLTOOL=dlltool
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6782printf %s "checking how to associate runtime and link libraries... " >&6; }
6783if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6784then :
6785  printf %s "(cached) " >&6
6786else $as_nop
6787  lt_cv_sharedlib_from_linklib_cmd='unknown'
6788
6789case $host_os in
6790cygwin* | mingw* | pw32* | cegcc*)
6791  # two different shell functions defined in ltmain.sh;
6792  # decide which one to use based on capabilities of $DLLTOOL
6793  case `$DLLTOOL --help 2>&1` in
6794  *--identify-strict*)
6795    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6796    ;;
6797  *)
6798    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6799    ;;
6800  esac
6801  ;;
6802*)
6803  # fallback: assume linklib IS sharedlib
6804  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6805  ;;
6806esac
6807
6808fi
6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6810printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6811sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6812test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6813
6814
6815
6816
6817
6818
6819
6820if test -n "$ac_tool_prefix"; then
6821  for ac_prog in ar
6822  do
6823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826printf %s "checking for $ac_word... " >&6; }
6827if test ${ac_cv_prog_AR+y}
6828then :
6829  printf %s "(cached) " >&6
6830else $as_nop
6831  if test -n "$AR"; then
6832  ac_cv_prog_AR="$AR" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837  IFS=$as_save_IFS
6838  case $as_dir in #(((
6839    '') as_dir=./ ;;
6840    */) ;;
6841    *) as_dir=$as_dir/ ;;
6842  esac
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6845    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855AR=$ac_cv_prog_AR
6856if test -n "$AR"; then
6857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6858printf "%s\n" "$AR" >&6; }
6859else
6860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861printf "%s\n" "no" >&6; }
6862fi
6863
6864
6865    test -n "$AR" && break
6866  done
6867fi
6868if test -z "$AR"; then
6869  ac_ct_AR=$AR
6870  for ac_prog in ar
6871do
6872  # Extract the first word of "$ac_prog", so it can be a program name with args.
6873set dummy $ac_prog; ac_word=$2
6874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875printf %s "checking for $ac_word... " >&6; }
6876if test ${ac_cv_prog_ac_ct_AR+y}
6877then :
6878  printf %s "(cached) " >&6
6879else $as_nop
6880  if test -n "$ac_ct_AR"; then
6881  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886  IFS=$as_save_IFS
6887  case $as_dir in #(((
6888    '') as_dir=./ ;;
6889    */) ;;
6890    *) as_dir=$as_dir/ ;;
6891  esac
6892    for ac_exec_ext in '' $ac_executable_extensions; do
6893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894    ac_cv_prog_ac_ct_AR="$ac_prog"
6895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899  done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904ac_ct_AR=$ac_cv_prog_ac_ct_AR
6905if test -n "$ac_ct_AR"; then
6906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6907printf "%s\n" "$ac_ct_AR" >&6; }
6908else
6909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910printf "%s\n" "no" >&6; }
6911fi
6912
6913
6914  test -n "$ac_ct_AR" && break
6915done
6916
6917  if test "x$ac_ct_AR" = x; then
6918    AR="false"
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    AR=$ac_ct_AR
6927  fi
6928fi
6929
6930: ${AR=ar}
6931
6932
6933
6934
6935
6936
6937# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6938# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6939# higher priority because thats what people were doing historically (setting
6940# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6941# variable obsoleted/removed.
6942
6943test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6944lt_ar_flags=$AR_FLAGS
6945
6946
6947
6948
6949
6950
6951# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6952# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6953
6954
6955
6956
6957
6958
6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6960printf %s "checking for archiver @FILE support... " >&6; }
6961if test ${lt_cv_ar_at_file+y}
6962then :
6963  printf %s "(cached) " >&6
6964else $as_nop
6965  lt_cv_ar_at_file=no
6966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h.  */
6968
6969int
6970main (void)
6971{
6972
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"
6978then :
6979  echo conftest.$ac_objext > conftest.lst
6980      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6981      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6982  (eval $lt_ar_try) 2>&5
6983  ac_status=$?
6984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985  test $ac_status = 0; }
6986      if test 0 -eq "$ac_status"; then
6987	# Ensure the archiver fails upon bogus file names.
6988	rm -f conftest.$ac_objext libconftest.a
6989	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6990  (eval $lt_ar_try) 2>&5
6991  ac_status=$?
6992  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993  test $ac_status = 0; }
6994	if test 0 -ne "$ac_status"; then
6995          lt_cv_ar_at_file=@
6996        fi
6997      fi
6998      rm -f conftest.* libconftest.a
6999
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002
7003fi
7004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7005printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7006
7007if test no = "$lt_cv_ar_at_file"; then
7008  archiver_list_spec=
7009else
7010  archiver_list_spec=$lt_cv_ar_at_file
7011fi
7012
7013
7014
7015
7016
7017
7018
7019if test -n "$ac_tool_prefix"; then
7020  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7021set dummy ${ac_tool_prefix}strip; ac_word=$2
7022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023printf %s "checking for $ac_word... " >&6; }
7024if test ${ac_cv_prog_STRIP+y}
7025then :
7026  printf %s "(cached) " >&6
7027else $as_nop
7028  if test -n "$STRIP"; then
7029  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  case $as_dir in #(((
7036    '') as_dir=./ ;;
7037    */) ;;
7038    *) as_dir=$as_dir/ ;;
7039  esac
7040    for ac_exec_ext in '' $ac_executable_extensions; do
7041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7042    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7044    break 2
7045  fi
7046done
7047  done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052STRIP=$ac_cv_prog_STRIP
7053if test -n "$STRIP"; then
7054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7055printf "%s\n" "$STRIP" >&6; }
7056else
7057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058printf "%s\n" "no" >&6; }
7059fi
7060
7061
7062fi
7063if test -z "$ac_cv_prog_STRIP"; then
7064  ac_ct_STRIP=$STRIP
7065  # Extract the first word of "strip", so it can be a program name with args.
7066set dummy strip; ac_word=$2
7067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068printf %s "checking for $ac_word... " >&6; }
7069if test ${ac_cv_prog_ac_ct_STRIP+y}
7070then :
7071  printf %s "(cached) " >&6
7072else $as_nop
7073  if test -n "$ac_ct_STRIP"; then
7074  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  case $as_dir in #(((
7081    '') as_dir=./ ;;
7082    */) ;;
7083    *) as_dir=$as_dir/ ;;
7084  esac
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7087    ac_cv_prog_ac_ct_STRIP="strip"
7088    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7098if test -n "$ac_ct_STRIP"; then
7099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7100printf "%s\n" "$ac_ct_STRIP" >&6; }
7101else
7102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103printf "%s\n" "no" >&6; }
7104fi
7105
7106  if test "x$ac_ct_STRIP" = x; then
7107    STRIP=":"
7108  else
7109    case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115    STRIP=$ac_ct_STRIP
7116  fi
7117else
7118  STRIP="$ac_cv_prog_STRIP"
7119fi
7120
7121test -z "$STRIP" && STRIP=:
7122
7123
7124
7125
7126
7127
7128if test -n "$ac_tool_prefix"; then
7129  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132printf %s "checking for $ac_word... " >&6; }
7133if test ${ac_cv_prog_RANLIB+y}
7134then :
7135  printf %s "(cached) " >&6
7136else $as_nop
7137  if test -n "$RANLIB"; then
7138  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  case $as_dir in #(((
7145    '') as_dir=./ ;;
7146    */) ;;
7147    *) as_dir=$as_dir/ ;;
7148  esac
7149    for ac_exec_ext in '' $ac_executable_extensions; do
7150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7151    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7153    break 2
7154  fi
7155done
7156  done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161RANLIB=$ac_cv_prog_RANLIB
7162if test -n "$RANLIB"; then
7163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7164printf "%s\n" "$RANLIB" >&6; }
7165else
7166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167printf "%s\n" "no" >&6; }
7168fi
7169
7170
7171fi
7172if test -z "$ac_cv_prog_RANLIB"; then
7173  ac_ct_RANLIB=$RANLIB
7174  # Extract the first word of "ranlib", so it can be a program name with args.
7175set dummy ranlib; ac_word=$2
7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177printf %s "checking for $ac_word... " >&6; }
7178if test ${ac_cv_prog_ac_ct_RANLIB+y}
7179then :
7180  printf %s "(cached) " >&6
7181else $as_nop
7182  if test -n "$ac_ct_RANLIB"; then
7183  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  case $as_dir in #(((
7190    '') as_dir=./ ;;
7191    */) ;;
7192    *) as_dir=$as_dir/ ;;
7193  esac
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_ac_ct_RANLIB="ranlib"
7197    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207if test -n "$ac_ct_RANLIB"; then
7208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7209printf "%s\n" "$ac_ct_RANLIB" >&6; }
7210else
7211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212printf "%s\n" "no" >&6; }
7213fi
7214
7215  if test "x$ac_ct_RANLIB" = x; then
7216    RANLIB=":"
7217  else
7218    case $cross_compiling:$ac_tool_warned in
7219yes:)
7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222ac_tool_warned=yes ;;
7223esac
7224    RANLIB=$ac_ct_RANLIB
7225  fi
7226else
7227  RANLIB="$ac_cv_prog_RANLIB"
7228fi
7229
7230test -z "$RANLIB" && RANLIB=:
7231
7232
7233
7234
7235
7236
7237# Determine commands to create old-style static archives.
7238old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7239old_postinstall_cmds='chmod 644 $oldlib'
7240old_postuninstall_cmds=
7241
7242if test -n "$RANLIB"; then
7243  case $host_os in
7244  bitrig* | openbsd*)
7245    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7246    ;;
7247  *)
7248    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7249    ;;
7250  esac
7251  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7252fi
7253
7254case $host_os in
7255  darwin*)
7256    lock_old_archive_extraction=yes ;;
7257  *)
7258    lock_old_archive_extraction=no ;;
7259esac
7260
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# If no C compiler was specified, use CC.
7300LTCC=${LTCC-"$CC"}
7301
7302# If no C compiler flags were specified, use CFLAGS.
7303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7304
7305# Allow CC to be a program name with arguments.
7306compiler=$CC
7307
7308
7309# Check for command to grab the raw symbol name followed by C symbol from nm.
7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7311printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7312if test ${lt_cv_sys_global_symbol_pipe+y}
7313then :
7314  printf %s "(cached) " >&6
7315else $as_nop
7316
7317# These are sane defaults that work on at least a few old systems.
7318# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7319
7320# Character class describing NM global symbol codes.
7321symcode='[BCDEGRST]'
7322
7323# Regexp to match symbols that can be accessed directly from C.
7324sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7325
7326# Define system-specific variables.
7327case $host_os in
7328aix*)
7329  symcode='[BCDT]'
7330  ;;
7331cygwin* | mingw* | pw32* | cegcc*)
7332  symcode='[ABCDGISTW]'
7333  ;;
7334hpux*)
7335  if test ia64 = "$host_cpu"; then
7336    symcode='[ABCDEGRST]'
7337  fi
7338  ;;
7339irix* | nonstopux*)
7340  symcode='[BCDEGRST]'
7341  ;;
7342osf*)
7343  symcode='[BCDEGQRST]'
7344  ;;
7345solaris*)
7346  symcode='[BDRT]'
7347  ;;
7348sco3.2v5*)
7349  symcode='[DT]'
7350  ;;
7351sysv4.2uw2*)
7352  symcode='[DT]'
7353  ;;
7354sysv5* | sco5v6* | unixware* | OpenUNIX*)
7355  symcode='[ABDT]'
7356  ;;
7357sysv4)
7358  symcode='[DFNSTU]'
7359  ;;
7360esac
7361
7362# If we're using GNU nm, then use its standard symbol codes.
7363case `$NM -V 2>&1` in
7364*GNU* | *'with BFD'*)
7365  symcode='[ABCDGIRSTW]' ;;
7366esac
7367
7368if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369  # Gets list of data symbols to import.
7370  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7371  # Adjust the below global symbol transforms to fixup imported variables.
7372  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7373  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7374  lt_c_name_lib_hook="\
7375  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7376  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7377else
7378  # Disable hooks by default.
7379  lt_cv_sys_global_symbol_to_import=
7380  lt_cdecl_hook=
7381  lt_c_name_hook=
7382  lt_c_name_lib_hook=
7383fi
7384
7385# Transform an extracted symbol line into a proper C declaration.
7386# Some systems (esp. on ia64) link data and code symbols differently,
7387# so use this general approach.
7388lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7389$lt_cdecl_hook\
7390" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7391" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7392
7393# Transform an extracted symbol line into symbol name and symbol address
7394lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7395$lt_c_name_hook\
7396" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7397" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7398
7399# Transform an extracted symbol line into symbol name with lib prefix and
7400# symbol address.
7401lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7402$lt_c_name_lib_hook\
7403" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7404" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7405" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7406
7407# Handle CRLF in mingw tool chain
7408opt_cr=
7409case $build_os in
7410mingw*)
7411  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7412  ;;
7413esac
7414
7415# Try without a prefix underscore, then with it.
7416for ac_symprfx in "" "_"; do
7417
7418  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7419  symxfrm="\\1 $ac_symprfx\\2 \\2"
7420
7421  # Write the raw and C identifiers.
7422  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423    # Fake it for dumpbin and say T for any non-static function,
7424    # D for any global variable and I for any imported variable.
7425    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7426    # which start with @ or ?.
7427    lt_cv_sys_global_symbol_pipe="$AWK '"\
7428"     {last_section=section; section=\$ 3};"\
7429"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7430"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7431"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7432"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7433"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7434"     \$ 0!~/External *\|/{next};"\
7435"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7436"     {if(hide[section]) next};"\
7437"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7438"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7439"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7440"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7441"     ' prfx=^$ac_symprfx"
7442  else
7443    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7444  fi
7445  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7446
7447  # Check to see that the pipe works correctly.
7448  pipe_works=no
7449
7450  rm -f conftest*
7451  cat > conftest.$ac_ext <<_LT_EOF
7452#ifdef __cplusplus
7453extern "C" {
7454#endif
7455char nm_test_var;
7456void nm_test_func(void);
7457void nm_test_func(void){}
7458#ifdef __cplusplus
7459}
7460#endif
7461int main(){nm_test_var='a';nm_test_func();return(0);}
7462_LT_EOF
7463
7464  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7465  (eval $ac_compile) 2>&5
7466  ac_status=$?
7467  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468  test $ac_status = 0; }; then
7469    # Now try to grab the symbols.
7470    nlist=conftest.nm
7471    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7472  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7473  ac_status=$?
7474  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475  test $ac_status = 0; } && test -s "$nlist"; then
7476      # Try sorting and uniquifying the output.
7477      if sort "$nlist" | uniq > "$nlist"T; then
7478	mv -f "$nlist"T "$nlist"
7479      else
7480	rm -f "$nlist"T
7481      fi
7482
7483      # Make sure that we snagged all the symbols we need.
7484      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7485	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7486	  cat <<_LT_EOF > conftest.$ac_ext
7487/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7488#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7489/* DATA imports from DLLs on WIN32 can't be const, because runtime
7490   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7491# define LT_DLSYM_CONST
7492#elif defined __osf__
7493/* This system does not cope well with relocations in const data.  */
7494# define LT_DLSYM_CONST
7495#else
7496# define LT_DLSYM_CONST const
7497#endif
7498
7499#ifdef __cplusplus
7500extern "C" {
7501#endif
7502
7503_LT_EOF
7504	  # Now generate the symbol file.
7505	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7506
7507	  cat <<_LT_EOF >> conftest.$ac_ext
7508
7509/* The mapping between symbol names and symbols.  */
7510LT_DLSYM_CONST struct {
7511  const char *name;
7512  void       *address;
7513}
7514lt__PROGRAM__LTX_preloaded_symbols[] =
7515{
7516  { "@PROGRAM@", (void *) 0 },
7517_LT_EOF
7518	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7519	  cat <<\_LT_EOF >> conftest.$ac_ext
7520  {0, (void *) 0}
7521};
7522
7523/* This works around a problem in FreeBSD linker */
7524#ifdef FREEBSD_WORKAROUND
7525static const void *lt_preloaded_setup() {
7526  return lt__PROGRAM__LTX_preloaded_symbols;
7527}
7528#endif
7529
7530#ifdef __cplusplus
7531}
7532#endif
7533_LT_EOF
7534	  # Now try linking the two files.
7535	  mv conftest.$ac_objext conftstm.$ac_objext
7536	  lt_globsym_save_LIBS=$LIBS
7537	  lt_globsym_save_CFLAGS=$CFLAGS
7538	  LIBS=conftstm.$ac_objext
7539	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7540	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7541  (eval $ac_link) 2>&5
7542  ac_status=$?
7543  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7545	    pipe_works=yes
7546	  fi
7547	  LIBS=$lt_globsym_save_LIBS
7548	  CFLAGS=$lt_globsym_save_CFLAGS
7549	else
7550	  echo "cannot find nm_test_func in $nlist" >&5
7551	fi
7552      else
7553	echo "cannot find nm_test_var in $nlist" >&5
7554      fi
7555    else
7556      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7557    fi
7558  else
7559    echo "$progname: failed program was:" >&5
7560    cat conftest.$ac_ext >&5
7561  fi
7562  rm -rf conftest* conftst*
7563
7564  # Do not use the global_symbol_pipe unless it works.
7565  if test yes = "$pipe_works"; then
7566    break
7567  else
7568    lt_cv_sys_global_symbol_pipe=
7569  fi
7570done
7571
7572fi
7573
7574if test -z "$lt_cv_sys_global_symbol_pipe"; then
7575  lt_cv_sys_global_symbol_to_cdecl=
7576fi
7577if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7579printf "%s\n" "failed" >&6; }
7580else
7581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7582printf "%s\n" "ok" >&6; }
7583fi
7584
7585# Response file support.
7586if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7587  nm_file_list_spec='@'
7588elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7589  nm_file_list_spec='@'
7590fi
7591
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7629printf %s "checking for sysroot... " >&6; }
7630
7631# Check whether --with-sysroot was given.
7632if test ${with_sysroot+y}
7633then :
7634  withval=$with_sysroot;
7635else $as_nop
7636  with_sysroot=no
7637fi
7638
7639
7640lt_sysroot=
7641case $with_sysroot in #(
7642 yes)
7643   if test yes = "$GCC"; then
7644     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7645   fi
7646   ;; #(
7647 /*)
7648   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7649   ;; #(
7650 no|'')
7651   ;; #(
7652 *)
7653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7654printf "%s\n" "$with_sysroot" >&6; }
7655   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7656   ;;
7657esac
7658
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7660printf "%s\n" "${lt_sysroot:-no}" >&6; }
7661
7662
7663
7664
7665
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7667printf %s "checking for a working dd... " >&6; }
7668if test ${ac_cv_path_lt_DD+y}
7669then :
7670  printf %s "(cached) " >&6
7671else $as_nop
7672  printf 0123456789abcdef0123456789abcdef >conftest.i
7673cat conftest.i conftest.i >conftest2.i
7674: ${lt_DD:=$DD}
7675if test -z "$lt_DD"; then
7676  ac_path_lt_DD_found=false
7677  # Loop through the user's path and test for each of PROGNAME-LIST
7678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681  IFS=$as_save_IFS
7682  case $as_dir in #(((
7683    '') as_dir=./ ;;
7684    */) ;;
7685    *) as_dir=$as_dir/ ;;
7686  esac
7687    for ac_prog in dd
7688   do
7689    for ac_exec_ext in '' $ac_executable_extensions; do
7690      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7691      as_fn_executable_p "$ac_path_lt_DD" || continue
7692if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7693  cmp -s conftest.i conftest.out \
7694  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7695fi
7696      $ac_path_lt_DD_found && break 3
7697    done
7698  done
7699  done
7700IFS=$as_save_IFS
7701  if test -z "$ac_cv_path_lt_DD"; then
7702    :
7703  fi
7704else
7705  ac_cv_path_lt_DD=$lt_DD
7706fi
7707
7708rm -f conftest.i conftest2.i conftest.out
7709fi
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7711printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7712
7713
7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7715printf %s "checking how to truncate binary pipes... " >&6; }
7716if test ${lt_cv_truncate_bin+y}
7717then :
7718  printf %s "(cached) " >&6
7719else $as_nop
7720  printf 0123456789abcdef0123456789abcdef >conftest.i
7721cat conftest.i conftest.i >conftest2.i
7722lt_cv_truncate_bin=
7723if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7724  cmp -s conftest.i conftest.out \
7725  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7726fi
7727rm -f conftest.i conftest2.i conftest.out
7728test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7729fi
7730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7731printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7732
7733
7734
7735
7736
7737
7738
7739# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7740func_cc_basename ()
7741{
7742    for cc_temp in $*""; do
7743      case $cc_temp in
7744        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7745        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7746        \-*) ;;
7747        *) break;;
7748      esac
7749    done
7750    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7751}
7752
7753# Check whether --enable-libtool-lock was given.
7754if test ${enable_libtool_lock+y}
7755then :
7756  enableval=$enable_libtool_lock;
7757fi
7758
7759test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7760
7761# Some flags need to be propagated to the compiler or linker for good
7762# libtool support.
7763case $host in
7764ia64-*-hpux*)
7765  # Find out what ABI is being produced by ac_compile, and set mode
7766  # options accordingly.
7767  echo 'int i;' > conftest.$ac_ext
7768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769  (eval $ac_compile) 2>&5
7770  ac_status=$?
7771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772  test $ac_status = 0; }; then
7773    case `$FILECMD conftest.$ac_objext` in
7774      *ELF-32*)
7775	HPUX_IA64_MODE=32
7776	;;
7777      *ELF-64*)
7778	HPUX_IA64_MODE=64
7779	;;
7780    esac
7781  fi
7782  rm -rf conftest*
7783  ;;
7784*-*-irix6*)
7785  # Find out what ABI is being produced by ac_compile, and set linker
7786  # options accordingly.
7787  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7788  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7789  (eval $ac_compile) 2>&5
7790  ac_status=$?
7791  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792  test $ac_status = 0; }; then
7793    if test yes = "$lt_cv_prog_gnu_ld"; then
7794      case `$FILECMD conftest.$ac_objext` in
7795	*32-bit*)
7796	  LD="${LD-ld} -melf32bsmip"
7797	  ;;
7798	*N32*)
7799	  LD="${LD-ld} -melf32bmipn32"
7800	  ;;
7801	*64-bit*)
7802	  LD="${LD-ld} -melf64bmip"
7803	;;
7804      esac
7805    else
7806      case `$FILECMD conftest.$ac_objext` in
7807	*32-bit*)
7808	  LD="${LD-ld} -32"
7809	  ;;
7810	*N32*)
7811	  LD="${LD-ld} -n32"
7812	  ;;
7813	*64-bit*)
7814	  LD="${LD-ld} -64"
7815	  ;;
7816      esac
7817    fi
7818  fi
7819  rm -rf conftest*
7820  ;;
7821
7822mips64*-*linux*)
7823  # Find out what ABI is being produced by ac_compile, and set linker
7824  # options accordingly.
7825  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7826  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827  (eval $ac_compile) 2>&5
7828  ac_status=$?
7829  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830  test $ac_status = 0; }; then
7831    emul=elf
7832    case `$FILECMD conftest.$ac_objext` in
7833      *32-bit*)
7834	emul="${emul}32"
7835	;;
7836      *64-bit*)
7837	emul="${emul}64"
7838	;;
7839    esac
7840    case `$FILECMD conftest.$ac_objext` in
7841      *MSB*)
7842	emul="${emul}btsmip"
7843	;;
7844      *LSB*)
7845	emul="${emul}ltsmip"
7846	;;
7847    esac
7848    case `$FILECMD conftest.$ac_objext` in
7849      *N32*)
7850	emul="${emul}n32"
7851	;;
7852    esac
7853    LD="${LD-ld} -m $emul"
7854  fi
7855  rm -rf conftest*
7856  ;;
7857
7858x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7859s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7860  # Find out what ABI is being produced by ac_compile, and set linker
7861  # options accordingly.  Note that the listed cases only cover the
7862  # situations where additional linker options are needed (such as when
7863  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7864  # vice versa); the common cases where no linker options are needed do
7865  # not appear in the list.
7866  echo 'int i;' > conftest.$ac_ext
7867  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868  (eval $ac_compile) 2>&5
7869  ac_status=$?
7870  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871  test $ac_status = 0; }; then
7872    case `$FILECMD conftest.o` in
7873      *32-bit*)
7874	case $host in
7875	  x86_64-*kfreebsd*-gnu)
7876	    LD="${LD-ld} -m elf_i386_fbsd"
7877	    ;;
7878	  x86_64-*linux*)
7879	    case `$FILECMD conftest.o` in
7880	      *x86-64*)
7881		LD="${LD-ld} -m elf32_x86_64"
7882		;;
7883	      *)
7884		LD="${LD-ld} -m elf_i386"
7885		;;
7886	    esac
7887	    ;;
7888	  powerpc64le-*linux*)
7889	    LD="${LD-ld} -m elf32lppclinux"
7890	    ;;
7891	  powerpc64-*linux*)
7892	    LD="${LD-ld} -m elf32ppclinux"
7893	    ;;
7894	  s390x-*linux*)
7895	    LD="${LD-ld} -m elf_s390"
7896	    ;;
7897	  sparc64-*linux*)
7898	    LD="${LD-ld} -m elf32_sparc"
7899	    ;;
7900	esac
7901	;;
7902      *64-bit*)
7903	case $host in
7904	  x86_64-*kfreebsd*-gnu)
7905	    LD="${LD-ld} -m elf_x86_64_fbsd"
7906	    ;;
7907	  x86_64-*linux*)
7908	    LD="${LD-ld} -m elf_x86_64"
7909	    ;;
7910	  powerpcle-*linux*)
7911	    LD="${LD-ld} -m elf64lppc"
7912	    ;;
7913	  powerpc-*linux*)
7914	    LD="${LD-ld} -m elf64ppc"
7915	    ;;
7916	  s390*-*linux*|s390*-*tpf*)
7917	    LD="${LD-ld} -m elf64_s390"
7918	    ;;
7919	  sparc*-*linux*)
7920	    LD="${LD-ld} -m elf64_sparc"
7921	    ;;
7922	esac
7923	;;
7924    esac
7925  fi
7926  rm -rf conftest*
7927  ;;
7928
7929*-*-sco3.2v5*)
7930  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7931  SAVE_CFLAGS=$CFLAGS
7932  CFLAGS="$CFLAGS -belf"
7933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7934printf %s "checking whether the C compiler needs -belf... " >&6; }
7935if test ${lt_cv_cc_needs_belf+y}
7936then :
7937  printf %s "(cached) " >&6
7938else $as_nop
7939  ac_ext=c
7940ac_cpp='$CPP $CPPFLAGS'
7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h.  */
7947
7948int
7949main (void)
7950{
7951
7952  ;
7953  return 0;
7954}
7955_ACEOF
7956if ac_fn_c_try_link "$LINENO"
7957then :
7958  lt_cv_cc_needs_belf=yes
7959else $as_nop
7960  lt_cv_cc_needs_belf=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.beam \
7963    conftest$ac_exeext conftest.$ac_ext
7964     ac_ext=c
7965ac_cpp='$CPP $CPPFLAGS'
7966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970fi
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7972printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7973  if test yes != "$lt_cv_cc_needs_belf"; then
7974    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7975    CFLAGS=$SAVE_CFLAGS
7976  fi
7977  ;;
7978*-*solaris*)
7979  # Find out what ABI is being produced by ac_compile, and set linker
7980  # options accordingly.
7981  echo 'int i;' > conftest.$ac_ext
7982  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983  (eval $ac_compile) 2>&5
7984  ac_status=$?
7985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986  test $ac_status = 0; }; then
7987    case `$FILECMD conftest.o` in
7988    *64-bit*)
7989      case $lt_cv_prog_gnu_ld in
7990      yes*)
7991        case $host in
7992        i?86-*-solaris*|x86_64-*-solaris*)
7993          LD="${LD-ld} -m elf_x86_64"
7994          ;;
7995        sparc*-*-solaris*)
7996          LD="${LD-ld} -m elf64_sparc"
7997          ;;
7998        esac
7999        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8000        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8001          LD=${LD-ld}_sol2
8002        fi
8003        ;;
8004      *)
8005	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8006	  LD="${LD-ld} -64"
8007	fi
8008	;;
8009      esac
8010      ;;
8011    esac
8012  fi
8013  rm -rf conftest*
8014  ;;
8015esac
8016
8017need_locks=$enable_libtool_lock
8018
8019if test -n "$ac_tool_prefix"; then
8020  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8021set dummy ${ac_tool_prefix}mt; ac_word=$2
8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023printf %s "checking for $ac_word... " >&6; }
8024if test ${ac_cv_prog_MANIFEST_TOOL+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  if test -n "$MANIFEST_TOOL"; then
8029  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  case $as_dir in #(((
8036    '') as_dir=./ ;;
8037    */) ;;
8038    *) as_dir=$as_dir/ ;;
8039  esac
8040    for ac_exec_ext in '' $ac_executable_extensions; do
8041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047  done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8053if test -n "$MANIFEST_TOOL"; then
8054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8055printf "%s\n" "$MANIFEST_TOOL" >&6; }
8056else
8057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058printf "%s\n" "no" >&6; }
8059fi
8060
8061
8062fi
8063if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8064  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8065  # Extract the first word of "mt", so it can be a program name with args.
8066set dummy mt; ac_word=$2
8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068printf %s "checking for $ac_word... " >&6; }
8069if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8070then :
8071  printf %s "(cached) " >&6
8072else $as_nop
8073  if test -n "$ac_ct_MANIFEST_TOOL"; then
8074  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079  IFS=$as_save_IFS
8080  case $as_dir in #(((
8081    '') as_dir=./ ;;
8082    */) ;;
8083    *) as_dir=$as_dir/ ;;
8084  esac
8085    for ac_exec_ext in '' $ac_executable_extensions; do
8086  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8088    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089    break 2
8090  fi
8091done
8092  done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8098if test -n "$ac_ct_MANIFEST_TOOL"; then
8099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8100printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8101else
8102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103printf "%s\n" "no" >&6; }
8104fi
8105
8106  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8107    MANIFEST_TOOL=":"
8108  else
8109    case $cross_compiling:$ac_tool_warned in
8110yes:)
8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8112printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8113ac_tool_warned=yes ;;
8114esac
8115    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8116  fi
8117else
8118  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8119fi
8120
8121test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8123printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8124if test ${lt_cv_path_mainfest_tool+y}
8125then :
8126  printf %s "(cached) " >&6
8127else $as_nop
8128  lt_cv_path_mainfest_tool=no
8129  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8130  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8131  cat conftest.err >&5
8132  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8133    lt_cv_path_mainfest_tool=yes
8134  fi
8135  rm -f conftest*
8136fi
8137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8138printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8139if test yes != "$lt_cv_path_mainfest_tool"; then
8140  MANIFEST_TOOL=:
8141fi
8142
8143
8144
8145
8146
8147
8148  case $host_os in
8149    rhapsody* | darwin*)
8150    if test -n "$ac_tool_prefix"; then
8151  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154printf %s "checking for $ac_word... " >&6; }
8155if test ${ac_cv_prog_DSYMUTIL+y}
8156then :
8157  printf %s "(cached) " >&6
8158else $as_nop
8159  if test -n "$DSYMUTIL"; then
8160  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  case $as_dir in #(((
8167    '') as_dir=./ ;;
8168    */) ;;
8169    *) as_dir=$as_dir/ ;;
8170  esac
8171    for ac_exec_ext in '' $ac_executable_extensions; do
8172  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175    break 2
8176  fi
8177done
8178  done
8179IFS=$as_save_IFS
8180
8181fi
8182fi
8183DSYMUTIL=$ac_cv_prog_DSYMUTIL
8184if test -n "$DSYMUTIL"; then
8185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8186printf "%s\n" "$DSYMUTIL" >&6; }
8187else
8188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189printf "%s\n" "no" >&6; }
8190fi
8191
8192
8193fi
8194if test -z "$ac_cv_prog_DSYMUTIL"; then
8195  ac_ct_DSYMUTIL=$DSYMUTIL
8196  # Extract the first word of "dsymutil", so it can be a program name with args.
8197set dummy dsymutil; ac_word=$2
8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199printf %s "checking for $ac_word... " >&6; }
8200if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8201then :
8202  printf %s "(cached) " >&6
8203else $as_nop
8204  if test -n "$ac_ct_DSYMUTIL"; then
8205  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8206else
8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208for as_dir in $PATH
8209do
8210  IFS=$as_save_IFS
8211  case $as_dir in #(((
8212    '') as_dir=./ ;;
8213    */) ;;
8214    *) as_dir=$as_dir/ ;;
8215  esac
8216    for ac_exec_ext in '' $ac_executable_extensions; do
8217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8220    break 2
8221  fi
8222done
8223  done
8224IFS=$as_save_IFS
8225
8226fi
8227fi
8228ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8229if test -n "$ac_ct_DSYMUTIL"; then
8230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8231printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8232else
8233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234printf "%s\n" "no" >&6; }
8235fi
8236
8237  if test "x$ac_ct_DSYMUTIL" = x; then
8238    DSYMUTIL=":"
8239  else
8240    case $cross_compiling:$ac_tool_warned in
8241yes:)
8242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244ac_tool_warned=yes ;;
8245esac
8246    DSYMUTIL=$ac_ct_DSYMUTIL
8247  fi
8248else
8249  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8250fi
8251
8252    if test -n "$ac_tool_prefix"; then
8253  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8254set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256printf %s "checking for $ac_word... " >&6; }
8257if test ${ac_cv_prog_NMEDIT+y}
8258then :
8259  printf %s "(cached) " >&6
8260else $as_nop
8261  if test -n "$NMEDIT"; then
8262  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8263else
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267  IFS=$as_save_IFS
8268  case $as_dir in #(((
8269    '') as_dir=./ ;;
8270    */) ;;
8271    *) as_dir=$as_dir/ ;;
8272  esac
8273    for ac_exec_ext in '' $ac_executable_extensions; do
8274  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8275    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8276    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8277    break 2
8278  fi
8279done
8280  done
8281IFS=$as_save_IFS
8282
8283fi
8284fi
8285NMEDIT=$ac_cv_prog_NMEDIT
8286if test -n "$NMEDIT"; then
8287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8288printf "%s\n" "$NMEDIT" >&6; }
8289else
8290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291printf "%s\n" "no" >&6; }
8292fi
8293
8294
8295fi
8296if test -z "$ac_cv_prog_NMEDIT"; then
8297  ac_ct_NMEDIT=$NMEDIT
8298  # Extract the first word of "nmedit", so it can be a program name with args.
8299set dummy nmedit; ac_word=$2
8300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301printf %s "checking for $ac_word... " >&6; }
8302if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8303then :
8304  printf %s "(cached) " >&6
8305else $as_nop
8306  if test -n "$ac_ct_NMEDIT"; then
8307  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312  IFS=$as_save_IFS
8313  case $as_dir in #(((
8314    '') as_dir=./ ;;
8315    */) ;;
8316    *) as_dir=$as_dir/ ;;
8317  esac
8318    for ac_exec_ext in '' $ac_executable_extensions; do
8319  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8321    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322    break 2
8323  fi
8324done
8325  done
8326IFS=$as_save_IFS
8327
8328fi
8329fi
8330ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8331if test -n "$ac_ct_NMEDIT"; then
8332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8333printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8334else
8335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336printf "%s\n" "no" >&6; }
8337fi
8338
8339  if test "x$ac_ct_NMEDIT" = x; then
8340    NMEDIT=":"
8341  else
8342    case $cross_compiling:$ac_tool_warned in
8343yes:)
8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8345printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8346ac_tool_warned=yes ;;
8347esac
8348    NMEDIT=$ac_ct_NMEDIT
8349  fi
8350else
8351  NMEDIT="$ac_cv_prog_NMEDIT"
8352fi
8353
8354    if test -n "$ac_tool_prefix"; then
8355  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8356set dummy ${ac_tool_prefix}lipo; ac_word=$2
8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358printf %s "checking for $ac_word... " >&6; }
8359if test ${ac_cv_prog_LIPO+y}
8360then :
8361  printf %s "(cached) " >&6
8362else $as_nop
8363  if test -n "$LIPO"; then
8364  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369  IFS=$as_save_IFS
8370  case $as_dir in #(((
8371    '') as_dir=./ ;;
8372    */) ;;
8373    *) as_dir=$as_dir/ ;;
8374  esac
8375    for ac_exec_ext in '' $ac_executable_extensions; do
8376  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8378    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379    break 2
8380  fi
8381done
8382  done
8383IFS=$as_save_IFS
8384
8385fi
8386fi
8387LIPO=$ac_cv_prog_LIPO
8388if test -n "$LIPO"; then
8389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8390printf "%s\n" "$LIPO" >&6; }
8391else
8392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393printf "%s\n" "no" >&6; }
8394fi
8395
8396
8397fi
8398if test -z "$ac_cv_prog_LIPO"; then
8399  ac_ct_LIPO=$LIPO
8400  # Extract the first word of "lipo", so it can be a program name with args.
8401set dummy lipo; ac_word=$2
8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403printf %s "checking for $ac_word... " >&6; }
8404if test ${ac_cv_prog_ac_ct_LIPO+y}
8405then :
8406  printf %s "(cached) " >&6
8407else $as_nop
8408  if test -n "$ac_ct_LIPO"; then
8409  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414  IFS=$as_save_IFS
8415  case $as_dir in #(((
8416    '') as_dir=./ ;;
8417    */) ;;
8418    *) as_dir=$as_dir/ ;;
8419  esac
8420    for ac_exec_ext in '' $ac_executable_extensions; do
8421  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8422    ac_cv_prog_ac_ct_LIPO="lipo"
8423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8424    break 2
8425  fi
8426done
8427  done
8428IFS=$as_save_IFS
8429
8430fi
8431fi
8432ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8433if test -n "$ac_ct_LIPO"; then
8434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8435printf "%s\n" "$ac_ct_LIPO" >&6; }
8436else
8437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438printf "%s\n" "no" >&6; }
8439fi
8440
8441  if test "x$ac_ct_LIPO" = x; then
8442    LIPO=":"
8443  else
8444    case $cross_compiling:$ac_tool_warned in
8445yes:)
8446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8447printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8448ac_tool_warned=yes ;;
8449esac
8450    LIPO=$ac_ct_LIPO
8451  fi
8452else
8453  LIPO="$ac_cv_prog_LIPO"
8454fi
8455
8456    if test -n "$ac_tool_prefix"; then
8457  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8458set dummy ${ac_tool_prefix}otool; ac_word=$2
8459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460printf %s "checking for $ac_word... " >&6; }
8461if test ${ac_cv_prog_OTOOL+y}
8462then :
8463  printf %s "(cached) " >&6
8464else $as_nop
8465  if test -n "$OTOOL"; then
8466  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8467else
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471  IFS=$as_save_IFS
8472  case $as_dir in #(((
8473    '') as_dir=./ ;;
8474    */) ;;
8475    *) as_dir=$as_dir/ ;;
8476  esac
8477    for ac_exec_ext in '' $ac_executable_extensions; do
8478  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8479    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8480    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8481    break 2
8482  fi
8483done
8484  done
8485IFS=$as_save_IFS
8486
8487fi
8488fi
8489OTOOL=$ac_cv_prog_OTOOL
8490if test -n "$OTOOL"; then
8491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8492printf "%s\n" "$OTOOL" >&6; }
8493else
8494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495printf "%s\n" "no" >&6; }
8496fi
8497
8498
8499fi
8500if test -z "$ac_cv_prog_OTOOL"; then
8501  ac_ct_OTOOL=$OTOOL
8502  # Extract the first word of "otool", so it can be a program name with args.
8503set dummy otool; ac_word=$2
8504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505printf %s "checking for $ac_word... " >&6; }
8506if test ${ac_cv_prog_ac_ct_OTOOL+y}
8507then :
8508  printf %s "(cached) " >&6
8509else $as_nop
8510  if test -n "$ac_ct_OTOOL"; then
8511  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516  IFS=$as_save_IFS
8517  case $as_dir in #(((
8518    '') as_dir=./ ;;
8519    */) ;;
8520    *) as_dir=$as_dir/ ;;
8521  esac
8522    for ac_exec_ext in '' $ac_executable_extensions; do
8523  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8524    ac_cv_prog_ac_ct_OTOOL="otool"
8525    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8526    break 2
8527  fi
8528done
8529  done
8530IFS=$as_save_IFS
8531
8532fi
8533fi
8534ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8535if test -n "$ac_ct_OTOOL"; then
8536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8537printf "%s\n" "$ac_ct_OTOOL" >&6; }
8538else
8539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540printf "%s\n" "no" >&6; }
8541fi
8542
8543  if test "x$ac_ct_OTOOL" = x; then
8544    OTOOL=":"
8545  else
8546    case $cross_compiling:$ac_tool_warned in
8547yes:)
8548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8549printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8550ac_tool_warned=yes ;;
8551esac
8552    OTOOL=$ac_ct_OTOOL
8553  fi
8554else
8555  OTOOL="$ac_cv_prog_OTOOL"
8556fi
8557
8558    if test -n "$ac_tool_prefix"; then
8559  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8560set dummy ${ac_tool_prefix}otool64; ac_word=$2
8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562printf %s "checking for $ac_word... " >&6; }
8563if test ${ac_cv_prog_OTOOL64+y}
8564then :
8565  printf %s "(cached) " >&6
8566else $as_nop
8567  if test -n "$OTOOL64"; then
8568  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8569else
8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573  IFS=$as_save_IFS
8574  case $as_dir in #(((
8575    '') as_dir=./ ;;
8576    */) ;;
8577    *) as_dir=$as_dir/ ;;
8578  esac
8579    for ac_exec_ext in '' $ac_executable_extensions; do
8580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8581    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8583    break 2
8584  fi
8585done
8586  done
8587IFS=$as_save_IFS
8588
8589fi
8590fi
8591OTOOL64=$ac_cv_prog_OTOOL64
8592if test -n "$OTOOL64"; then
8593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8594printf "%s\n" "$OTOOL64" >&6; }
8595else
8596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597printf "%s\n" "no" >&6; }
8598fi
8599
8600
8601fi
8602if test -z "$ac_cv_prog_OTOOL64"; then
8603  ac_ct_OTOOL64=$OTOOL64
8604  # Extract the first word of "otool64", so it can be a program name with args.
8605set dummy otool64; ac_word=$2
8606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607printf %s "checking for $ac_word... " >&6; }
8608if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8609then :
8610  printf %s "(cached) " >&6
8611else $as_nop
8612  if test -n "$ac_ct_OTOOL64"; then
8613  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8614else
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618  IFS=$as_save_IFS
8619  case $as_dir in #(((
8620    '') as_dir=./ ;;
8621    */) ;;
8622    *) as_dir=$as_dir/ ;;
8623  esac
8624    for ac_exec_ext in '' $ac_executable_extensions; do
8625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8626    ac_cv_prog_ac_ct_OTOOL64="otool64"
8627    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8628    break 2
8629  fi
8630done
8631  done
8632IFS=$as_save_IFS
8633
8634fi
8635fi
8636ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8637if test -n "$ac_ct_OTOOL64"; then
8638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8639printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8640else
8641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642printf "%s\n" "no" >&6; }
8643fi
8644
8645  if test "x$ac_ct_OTOOL64" = x; then
8646    OTOOL64=":"
8647  else
8648    case $cross_compiling:$ac_tool_warned in
8649yes:)
8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652ac_tool_warned=yes ;;
8653esac
8654    OTOOL64=$ac_ct_OTOOL64
8655  fi
8656else
8657  OTOOL64="$ac_cv_prog_OTOOL64"
8658fi
8659
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    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8687printf %s "checking for -single_module linker flag... " >&6; }
8688if test ${lt_cv_apple_cc_single_mod+y}
8689then :
8690  printf %s "(cached) " >&6
8691else $as_nop
8692  lt_cv_apple_cc_single_mod=no
8693      if test -z "$LT_MULTI_MODULE"; then
8694	# By default we will add the -single_module flag. You can override
8695	# by either setting the environment variable LT_MULTI_MODULE
8696	# non-empty at configure time, or by adding -multi_module to the
8697	# link flags.
8698	rm -rf libconftest.dylib*
8699	echo "int foo(void){return 1;}" > conftest.c
8700	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8701-dynamiclib -Wl,-single_module conftest.c" >&5
8702	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8704        _lt_result=$?
8705	# If there is a non-empty error log, and "single_module"
8706	# appears in it, assume the flag caused a linker warning
8707        if test -s conftest.err && $GREP single_module conftest.err; then
8708	  cat conftest.err >&5
8709	# Otherwise, if the output was created with a 0 exit code from
8710	# the compiler, it worked.
8711	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8712	  lt_cv_apple_cc_single_mod=yes
8713	else
8714	  cat conftest.err >&5
8715	fi
8716	rm -rf libconftest.dylib*
8717	rm -f conftest.*
8718      fi
8719fi
8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8721printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8722
8723    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8724printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8725if test ${lt_cv_ld_exported_symbols_list+y}
8726then :
8727  printf %s "(cached) " >&6
8728else $as_nop
8729  lt_cv_ld_exported_symbols_list=no
8730      save_LDFLAGS=$LDFLAGS
8731      echo "_main" > conftest.sym
8732      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8733      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h.  */
8735
8736int
8737main (void)
8738{
8739
8740  ;
8741  return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"
8745then :
8746  lt_cv_ld_exported_symbols_list=yes
8747else $as_nop
8748  lt_cv_ld_exported_symbols_list=no
8749fi
8750rm -f core conftest.err conftest.$ac_objext conftest.beam \
8751    conftest$ac_exeext conftest.$ac_ext
8752	LDFLAGS=$save_LDFLAGS
8753
8754fi
8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8756printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8757
8758    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8759printf %s "checking for -force_load linker flag... " >&6; }
8760if test ${lt_cv_ld_force_load+y}
8761then :
8762  printf %s "(cached) " >&6
8763else $as_nop
8764  lt_cv_ld_force_load=no
8765      cat > conftest.c << _LT_EOF
8766int forced_loaded() { return 2;}
8767_LT_EOF
8768      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8769      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8770      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8771      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8772      echo "$RANLIB libconftest.a" >&5
8773      $RANLIB libconftest.a 2>&5
8774      cat > conftest.c << _LT_EOF
8775int main() { return 0;}
8776_LT_EOF
8777      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8778      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8779      _lt_result=$?
8780      if test -s conftest.err && $GREP force_load conftest.err; then
8781	cat conftest.err >&5
8782      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8783	lt_cv_ld_force_load=yes
8784      else
8785	cat conftest.err >&5
8786      fi
8787        rm -f conftest.err libconftest.a conftest conftest.c
8788        rm -rf conftest.dSYM
8789
8790fi
8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8792printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8793    case $host_os in
8794    rhapsody* | darwin1.[012])
8795      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8796    darwin1.*)
8797      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8798    darwin*)
8799      case $MACOSX_DEPLOYMENT_TARGET,$host in
8800        10.[012],*|,*powerpc*-darwin[5-8]*)
8801          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8802        *)
8803          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8804      esac
8805    ;;
8806  esac
8807    if test yes = "$lt_cv_apple_cc_single_mod"; then
8808      _lt_dar_single_mod='$single_module'
8809    fi
8810    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8811      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8812    else
8813      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8814    fi
8815    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8816      _lt_dsymutil='~$DSYMUTIL $lib || :'
8817    else
8818      _lt_dsymutil=
8819    fi
8820    ;;
8821  esac
8822
8823# func_munge_path_list VARIABLE PATH
8824# -----------------------------------
8825# VARIABLE is name of variable containing _space_ separated list of
8826# directories to be munged by the contents of PATH, which is string
8827# having a format:
8828# "DIR[:DIR]:"
8829#       string "DIR[ DIR]" will be prepended to VARIABLE
8830# ":DIR[:DIR]"
8831#       string "DIR[ DIR]" will be appended to VARIABLE
8832# "DIRP[:DIRP]::[DIRA:]DIRA"
8833#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8834#       "DIRA[ DIRA]" will be appended to VARIABLE
8835# "DIR[:DIR]"
8836#       VARIABLE will be replaced by "DIR[ DIR]"
8837func_munge_path_list ()
8838{
8839    case x$2 in
8840    x)
8841        ;;
8842    *:)
8843        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8844        ;;
8845    x:*)
8846        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8847        ;;
8848    *::*)
8849        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8850        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8851        ;;
8852    *)
8853        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8854        ;;
8855    esac
8856}
8857
8858ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8859"
8860if test "x$ac_cv_header_dlfcn_h" = xyes
8861then :
8862  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8863
8864fi
8865
8866
8867
8868
8869
8870# Set options
8871
8872
8873
8874        enable_dlopen=no
8875
8876
8877  enable_win32_dll=no
8878
8879
8880            # Check whether --enable-shared was given.
8881if test ${enable_shared+y}
8882then :
8883  enableval=$enable_shared; p=${PACKAGE-default}
8884    case $enableval in
8885    yes) enable_shared=yes ;;
8886    no) enable_shared=no ;;
8887    *)
8888      enable_shared=no
8889      # Look at the argument we got.  We use all the common list separators.
8890      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8891      for pkg in $enableval; do
8892	IFS=$lt_save_ifs
8893	if test "X$pkg" = "X$p"; then
8894	  enable_shared=yes
8895	fi
8896      done
8897      IFS=$lt_save_ifs
8898      ;;
8899    esac
8900else $as_nop
8901  enable_shared=yes
8902fi
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912  # Check whether --enable-static was given.
8913if test ${enable_static+y}
8914then :
8915  enableval=$enable_static; p=${PACKAGE-default}
8916    case $enableval in
8917    yes) enable_static=yes ;;
8918    no) enable_static=no ;;
8919    *)
8920     enable_static=no
8921      # Look at the argument we got.  We use all the common list separators.
8922      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8923      for pkg in $enableval; do
8924	IFS=$lt_save_ifs
8925	if test "X$pkg" = "X$p"; then
8926	  enable_static=yes
8927	fi
8928      done
8929      IFS=$lt_save_ifs
8930      ;;
8931    esac
8932else $as_nop
8933  enable_static=yes
8934fi
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945# Check whether --with-pic was given.
8946if test ${with_pic+y}
8947then :
8948  withval=$with_pic; lt_p=${PACKAGE-default}
8949    case $withval in
8950    yes|no) pic_mode=$withval ;;
8951    *)
8952      pic_mode=default
8953      # Look at the argument we got.  We use all the common list separators.
8954      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8955      for lt_pkg in $withval; do
8956	IFS=$lt_save_ifs
8957	if test "X$lt_pkg" = "X$lt_p"; then
8958	  pic_mode=yes
8959	fi
8960      done
8961      IFS=$lt_save_ifs
8962      ;;
8963    esac
8964else $as_nop
8965  pic_mode=default
8966fi
8967
8968
8969
8970
8971
8972
8973
8974
8975  # Check whether --enable-fast-install was given.
8976if test ${enable_fast_install+y}
8977then :
8978  enableval=$enable_fast_install; p=${PACKAGE-default}
8979    case $enableval in
8980    yes) enable_fast_install=yes ;;
8981    no) enable_fast_install=no ;;
8982    *)
8983      enable_fast_install=no
8984      # Look at the argument we got.  We use all the common list separators.
8985      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8986      for pkg in $enableval; do
8987	IFS=$lt_save_ifs
8988	if test "X$pkg" = "X$p"; then
8989	  enable_fast_install=yes
8990	fi
8991      done
8992      IFS=$lt_save_ifs
8993      ;;
8994    esac
8995else $as_nop
8996  enable_fast_install=yes
8997fi
8998
8999
9000
9001
9002
9003
9004
9005
9006  shared_archive_member_spec=
9007case $host,$enable_shared in
9008power*-*-aix[5-9]*,yes)
9009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9010printf %s "checking which variant of shared library versioning to provide... " >&6; }
9011
9012# Check whether --with-aix-soname was given.
9013if test ${with_aix_soname+y}
9014then :
9015  withval=$with_aix_soname; case $withval in
9016    aix|svr4|both)
9017      ;;
9018    *)
9019      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9020      ;;
9021    esac
9022    lt_cv_with_aix_soname=$with_aix_soname
9023else $as_nop
9024  if test ${lt_cv_with_aix_soname+y}
9025then :
9026  printf %s "(cached) " >&6
9027else $as_nop
9028  lt_cv_with_aix_soname=aix
9029fi
9030
9031    with_aix_soname=$lt_cv_with_aix_soname
9032fi
9033
9034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9035printf "%s\n" "$with_aix_soname" >&6; }
9036  if test aix != "$with_aix_soname"; then
9037    # For the AIX way of multilib, we name the shared archive member
9038    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9039    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9040    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9041    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9042    if test 64 = "${OBJECT_MODE-32}"; then
9043      shared_archive_member_spec=shr_64
9044    else
9045      shared_archive_member_spec=shr
9046    fi
9047  fi
9048  ;;
9049*)
9050  with_aix_soname=aix
9051  ;;
9052esac
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063# This can be used to rebuild libtool when needed
9064LIBTOOL_DEPS=$ltmain
9065
9066# Always use our own libtool.
9067LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9068
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
9098test -z "$LN_S" && LN_S="ln -s"
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113if test -n "${ZSH_VERSION+set}"; then
9114   setopt NO_GLOB_SUBST
9115fi
9116
9117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9118printf %s "checking for objdir... " >&6; }
9119if test ${lt_cv_objdir+y}
9120then :
9121  printf %s "(cached) " >&6
9122else $as_nop
9123  rm -f .libs 2>/dev/null
9124mkdir .libs 2>/dev/null
9125if test -d .libs; then
9126  lt_cv_objdir=.libs
9127else
9128  # MS-DOS does not allow filenames that begin with a dot.
9129  lt_cv_objdir=_libs
9130fi
9131rmdir .libs 2>/dev/null
9132fi
9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9134printf "%s\n" "$lt_cv_objdir" >&6; }
9135objdir=$lt_cv_objdir
9136
9137
9138
9139
9140
9141printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9142
9143
9144
9145
9146case $host_os in
9147aix3*)
9148  # AIX sometimes has problems with the GCC collect2 program.  For some
9149  # reason, if we set the COLLECT_NAMES environment variable, the problems
9150  # vanish in a puff of smoke.
9151  if test set != "${COLLECT_NAMES+set}"; then
9152    COLLECT_NAMES=
9153    export COLLECT_NAMES
9154  fi
9155  ;;
9156esac
9157
9158# Global variables:
9159ofile=libtool
9160can_build_shared=yes
9161
9162# All known linkers require a '.a' archive for static linking (except MSVC and
9163# ICC, which need '.lib').
9164libext=a
9165
9166with_gnu_ld=$lt_cv_prog_gnu_ld
9167
9168old_CC=$CC
9169old_CFLAGS=$CFLAGS
9170
9171# Set sane defaults for various variables
9172test -z "$CC" && CC=cc
9173test -z "$LTCC" && LTCC=$CC
9174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9175test -z "$LD" && LD=ld
9176test -z "$ac_objext" && ac_objext=o
9177
9178func_cc_basename $compiler
9179cc_basename=$func_cc_basename_result
9180
9181
9182# Only perform the check for file, if the check method requires it
9183test -z "$MAGIC_CMD" && MAGIC_CMD=file
9184case $deplibs_check_method in
9185file_magic*)
9186  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9187    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9188printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9189if test ${lt_cv_path_MAGIC_CMD+y}
9190then :
9191  printf %s "(cached) " >&6
9192else $as_nop
9193  case $MAGIC_CMD in
9194[\\/*] |  ?:[\\/]*)
9195  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9196  ;;
9197*)
9198  lt_save_MAGIC_CMD=$MAGIC_CMD
9199  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9200  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9201  for ac_dir in $ac_dummy; do
9202    IFS=$lt_save_ifs
9203    test -z "$ac_dir" && ac_dir=.
9204    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9205      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9206      if test -n "$file_magic_test_file"; then
9207	case $deplibs_check_method in
9208	"file_magic "*)
9209	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9210	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9211	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9212	    $EGREP "$file_magic_regex" > /dev/null; then
9213	    :
9214	  else
9215	    cat <<_LT_EOF 1>&2
9216
9217*** Warning: the command libtool uses to detect shared libraries,
9218*** $file_magic_cmd, produces output that libtool cannot recognize.
9219*** The result is that libtool may fail to recognize shared libraries
9220*** as such.  This will affect the creation of libtool libraries that
9221*** depend on shared libraries, but programs linked with such libtool
9222*** libraries will work regardless of this problem.  Nevertheless, you
9223*** may want to report the problem to your system manager and/or to
9224*** bug-libtool@gnu.org
9225
9226_LT_EOF
9227	  fi ;;
9228	esac
9229      fi
9230      break
9231    fi
9232  done
9233  IFS=$lt_save_ifs
9234  MAGIC_CMD=$lt_save_MAGIC_CMD
9235  ;;
9236esac
9237fi
9238
9239MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9240if test -n "$MAGIC_CMD"; then
9241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9242printf "%s\n" "$MAGIC_CMD" >&6; }
9243else
9244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245printf "%s\n" "no" >&6; }
9246fi
9247
9248
9249
9250
9251
9252if test -z "$lt_cv_path_MAGIC_CMD"; then
9253  if test -n "$ac_tool_prefix"; then
9254    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9255printf %s "checking for file... " >&6; }
9256if test ${lt_cv_path_MAGIC_CMD+y}
9257then :
9258  printf %s "(cached) " >&6
9259else $as_nop
9260  case $MAGIC_CMD in
9261[\\/*] |  ?:[\\/]*)
9262  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9263  ;;
9264*)
9265  lt_save_MAGIC_CMD=$MAGIC_CMD
9266  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9267  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9268  for ac_dir in $ac_dummy; do
9269    IFS=$lt_save_ifs
9270    test -z "$ac_dir" && ac_dir=.
9271    if test -f "$ac_dir/file"; then
9272      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9273      if test -n "$file_magic_test_file"; then
9274	case $deplibs_check_method in
9275	"file_magic "*)
9276	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9277	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9278	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9279	    $EGREP "$file_magic_regex" > /dev/null; then
9280	    :
9281	  else
9282	    cat <<_LT_EOF 1>&2
9283
9284*** Warning: the command libtool uses to detect shared libraries,
9285*** $file_magic_cmd, produces output that libtool cannot recognize.
9286*** The result is that libtool may fail to recognize shared libraries
9287*** as such.  This will affect the creation of libtool libraries that
9288*** depend on shared libraries, but programs linked with such libtool
9289*** libraries will work regardless of this problem.  Nevertheless, you
9290*** may want to report the problem to your system manager and/or to
9291*** bug-libtool@gnu.org
9292
9293_LT_EOF
9294	  fi ;;
9295	esac
9296      fi
9297      break
9298    fi
9299  done
9300  IFS=$lt_save_ifs
9301  MAGIC_CMD=$lt_save_MAGIC_CMD
9302  ;;
9303esac
9304fi
9305
9306MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9307if test -n "$MAGIC_CMD"; then
9308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9309printf "%s\n" "$MAGIC_CMD" >&6; }
9310else
9311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312printf "%s\n" "no" >&6; }
9313fi
9314
9315
9316  else
9317    MAGIC_CMD=:
9318  fi
9319fi
9320
9321  fi
9322  ;;
9323esac
9324
9325# Use C for the default configuration in the libtool script
9326
9327lt_save_CC=$CC
9328ac_ext=c
9329ac_cpp='$CPP $CPPFLAGS'
9330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332ac_compiler_gnu=$ac_cv_c_compiler_gnu
9333
9334
9335# Source file extension for C test sources.
9336ac_ext=c
9337
9338# Object file extension for compiled C test sources.
9339objext=o
9340objext=$objext
9341
9342# Code to be used in simple compile tests
9343lt_simple_compile_test_code="int some_variable = 0;"
9344
9345# Code to be used in simple link tests
9346lt_simple_link_test_code='int main(){return(0);}'
9347
9348
9349
9350
9351
9352
9353
9354# If no C compiler was specified, use CC.
9355LTCC=${LTCC-"$CC"}
9356
9357# If no C compiler flags were specified, use CFLAGS.
9358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9359
9360# Allow CC to be a program name with arguments.
9361compiler=$CC
9362
9363# Save the default compiler, since it gets overwritten when the other
9364# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9365compiler_DEFAULT=$CC
9366
9367# save warnings/boilerplate of simple test code
9368ac_outfile=conftest.$ac_objext
9369echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9371_lt_compiler_boilerplate=`cat conftest.err`
9372$RM conftest*
9373
9374ac_outfile=conftest.$ac_objext
9375echo "$lt_simple_link_test_code" >conftest.$ac_ext
9376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9377_lt_linker_boilerplate=`cat conftest.err`
9378$RM -r conftest*
9379
9380
9381## CAVEAT EMPTOR:
9382## There is no encapsulation within the following macros, do not change
9383## the running order or otherwise move them around unless you know exactly
9384## what you are doing...
9385if test -n "$compiler"; then
9386
9387lt_prog_compiler_no_builtin_flag=
9388
9389if test yes = "$GCC"; then
9390  case $cc_basename in
9391  nvcc*)
9392    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9393  *)
9394    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9395  esac
9396
9397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9398printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9399if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9400then :
9401  printf %s "(cached) " >&6
9402else $as_nop
9403  lt_cv_prog_compiler_rtti_exceptions=no
9404   ac_outfile=conftest.$ac_objext
9405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9406   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9407   # Insert the option either (1) after the last *FLAGS variable, or
9408   # (2) before a word containing "conftest.", or (3) at the end.
9409   # Note that $ac_compile itself does not contain backslashes and begins
9410   # with a dollar sign (not a hyphen), so the echo should work correctly.
9411   # The option is referenced via a variable to avoid confusing sed.
9412   lt_compile=`echo "$ac_compile" | $SED \
9413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415   -e 's:$: $lt_compiler_flag:'`
9416   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9417   (eval "$lt_compile" 2>conftest.err)
9418   ac_status=$?
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   if (exit $ac_status) && test -s "$ac_outfile"; then
9422     # The compiler can only warn and ignore the option if not recognized
9423     # So say no if there are warnings other than the usual output.
9424     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9427       lt_cv_prog_compiler_rtti_exceptions=yes
9428     fi
9429   fi
9430   $RM conftest*
9431
9432fi
9433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9434printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9435
9436if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9437    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9438else
9439    :
9440fi
9441
9442fi
9443
9444
9445
9446
9447
9448
9449  lt_prog_compiler_wl=
9450lt_prog_compiler_pic=
9451lt_prog_compiler_static=
9452
9453
9454  if test yes = "$GCC"; then
9455    lt_prog_compiler_wl='-Wl,'
9456    lt_prog_compiler_static='-static'
9457
9458    case $host_os in
9459      aix*)
9460      # All AIX code is PIC.
9461      if test ia64 = "$host_cpu"; then
9462	# AIX 5 now supports IA64 processor
9463	lt_prog_compiler_static='-Bstatic'
9464      fi
9465      lt_prog_compiler_pic='-fPIC'
9466      ;;
9467
9468    amigaos*)
9469      case $host_cpu in
9470      powerpc)
9471            # see comment about AmigaOS4 .so support
9472            lt_prog_compiler_pic='-fPIC'
9473        ;;
9474      m68k)
9475            # FIXME: we need at least 68020 code to build shared libraries, but
9476            # adding the '-m68020' flag to GCC prevents building anything better,
9477            # like '-m68040'.
9478            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9479        ;;
9480      esac
9481      ;;
9482
9483    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9484      # PIC is the default for these OSes.
9485      ;;
9486
9487    mingw* | cygwin* | pw32* | os2* | cegcc*)
9488      # This hack is so that the source file can tell whether it is being
9489      # built for inclusion in a dll (and should export symbols for example).
9490      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9491      # (--disable-auto-import) libraries
9492      lt_prog_compiler_pic='-DDLL_EXPORT'
9493      case $host_os in
9494      os2*)
9495	lt_prog_compiler_static='$wl-static'
9496	;;
9497      esac
9498      ;;
9499
9500    darwin* | rhapsody*)
9501      # PIC is the default on this platform
9502      # Common symbols not allowed in MH_DYLIB files
9503      lt_prog_compiler_pic='-fno-common'
9504      ;;
9505
9506    haiku*)
9507      # PIC is the default for Haiku.
9508      # The "-static" flag exists, but is broken.
9509      lt_prog_compiler_static=
9510      ;;
9511
9512    hpux*)
9513      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9514      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9515      # sets the default TLS model and affects inlining.
9516      case $host_cpu in
9517      hppa*64*)
9518	# +Z the default
9519	;;
9520      *)
9521	lt_prog_compiler_pic='-fPIC'
9522	;;
9523      esac
9524      ;;
9525
9526    interix[3-9]*)
9527      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9528      # Instead, we relocate shared libraries at runtime.
9529      ;;
9530
9531    msdosdjgpp*)
9532      # Just because we use GCC doesn't mean we suddenly get shared libraries
9533      # on systems that don't support them.
9534      lt_prog_compiler_can_build_shared=no
9535      enable_shared=no
9536      ;;
9537
9538    *nto* | *qnx*)
9539      # QNX uses GNU C++, but need to define -shared option too, otherwise
9540      # it will coredump.
9541      lt_prog_compiler_pic='-fPIC -shared'
9542      ;;
9543
9544    sysv4*MP*)
9545      if test -d /usr/nec; then
9546	lt_prog_compiler_pic=-Kconform_pic
9547      fi
9548      ;;
9549
9550    *)
9551      lt_prog_compiler_pic='-fPIC'
9552      ;;
9553    esac
9554
9555    case $cc_basename in
9556    nvcc*) # Cuda Compiler Driver 2.2
9557      lt_prog_compiler_wl='-Xlinker '
9558      if test -n "$lt_prog_compiler_pic"; then
9559        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9560      fi
9561      ;;
9562    esac
9563  else
9564    # PORTME Check for flag to pass linker flags through the system compiler.
9565    case $host_os in
9566    aix*)
9567      lt_prog_compiler_wl='-Wl,'
9568      if test ia64 = "$host_cpu"; then
9569	# AIX 5 now supports IA64 processor
9570	lt_prog_compiler_static='-Bstatic'
9571      else
9572	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9573      fi
9574      ;;
9575
9576    darwin* | rhapsody*)
9577      # PIC is the default on this platform
9578      # Common symbols not allowed in MH_DYLIB files
9579      lt_prog_compiler_pic='-fno-common'
9580      case $cc_basename in
9581      nagfor*)
9582        # NAG Fortran compiler
9583        lt_prog_compiler_wl='-Wl,-Wl,,'
9584        lt_prog_compiler_pic='-PIC'
9585        lt_prog_compiler_static='-Bstatic'
9586        ;;
9587      esac
9588      ;;
9589
9590    mingw* | cygwin* | pw32* | os2* | cegcc*)
9591      # This hack is so that the source file can tell whether it is being
9592      # built for inclusion in a dll (and should export symbols for example).
9593      lt_prog_compiler_pic='-DDLL_EXPORT'
9594      case $host_os in
9595      os2*)
9596	lt_prog_compiler_static='$wl-static'
9597	;;
9598      esac
9599      ;;
9600
9601    hpux9* | hpux10* | hpux11*)
9602      lt_prog_compiler_wl='-Wl,'
9603      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9604      # not for PA HP-UX.
9605      case $host_cpu in
9606      hppa*64*|ia64*)
9607	# +Z the default
9608	;;
9609      *)
9610	lt_prog_compiler_pic='+Z'
9611	;;
9612      esac
9613      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9614      lt_prog_compiler_static='$wl-a ${wl}archive'
9615      ;;
9616
9617    irix5* | irix6* | nonstopux*)
9618      lt_prog_compiler_wl='-Wl,'
9619      # PIC (with -KPIC) is the default.
9620      lt_prog_compiler_static='-non_shared'
9621      ;;
9622
9623    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9624      case $cc_basename in
9625      # old Intel for x86_64, which still supported -KPIC.
9626      ecc*)
9627	lt_prog_compiler_wl='-Wl,'
9628	lt_prog_compiler_pic='-KPIC'
9629	lt_prog_compiler_static='-static'
9630        ;;
9631      # icc used to be incompatible with GCC.
9632      # ICC 10 doesn't accept -KPIC any more.
9633      icc* | ifort*)
9634	lt_prog_compiler_wl='-Wl,'
9635	lt_prog_compiler_pic='-fPIC'
9636	lt_prog_compiler_static='-static'
9637        ;;
9638      # Lahey Fortran 8.1.
9639      lf95*)
9640	lt_prog_compiler_wl='-Wl,'
9641	lt_prog_compiler_pic='--shared'
9642	lt_prog_compiler_static='--static'
9643	;;
9644      nagfor*)
9645	# NAG Fortran compiler
9646	lt_prog_compiler_wl='-Wl,-Wl,,'
9647	lt_prog_compiler_pic='-PIC'
9648	lt_prog_compiler_static='-Bstatic'
9649	;;
9650      tcc*)
9651	# Fabrice Bellard et al's Tiny C Compiler
9652	lt_prog_compiler_wl='-Wl,'
9653	lt_prog_compiler_pic='-fPIC'
9654	lt_prog_compiler_static='-static'
9655	;;
9656      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9657        # Portland Group compilers (*not* the Pentium gcc compiler,
9658	# which looks to be a dead project)
9659	lt_prog_compiler_wl='-Wl,'
9660	lt_prog_compiler_pic='-fpic'
9661	lt_prog_compiler_static='-Bstatic'
9662        ;;
9663      ccc*)
9664        lt_prog_compiler_wl='-Wl,'
9665        # All Alpha code is PIC.
9666        lt_prog_compiler_static='-non_shared'
9667        ;;
9668      xl* | bgxl* | bgf* | mpixl*)
9669	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9670	lt_prog_compiler_wl='-Wl,'
9671	lt_prog_compiler_pic='-qpic'
9672	lt_prog_compiler_static='-qstaticlink'
9673	;;
9674      *)
9675	case `$CC -V 2>&1 | $SED 5q` in
9676	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9677	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9678	  lt_prog_compiler_pic='-KPIC'
9679	  lt_prog_compiler_static='-Bstatic'
9680	  lt_prog_compiler_wl=''
9681	  ;;
9682	*Sun\ F* | *Sun*Fortran*)
9683	  lt_prog_compiler_pic='-KPIC'
9684	  lt_prog_compiler_static='-Bstatic'
9685	  lt_prog_compiler_wl='-Qoption ld '
9686	  ;;
9687	*Sun\ C*)
9688	  # Sun C 5.9
9689	  lt_prog_compiler_pic='-KPIC'
9690	  lt_prog_compiler_static='-Bstatic'
9691	  lt_prog_compiler_wl='-Wl,'
9692	  ;;
9693        *Intel*\ [CF]*Compiler*)
9694	  lt_prog_compiler_wl='-Wl,'
9695	  lt_prog_compiler_pic='-fPIC'
9696	  lt_prog_compiler_static='-static'
9697	  ;;
9698	*Portland\ Group*)
9699	  lt_prog_compiler_wl='-Wl,'
9700	  lt_prog_compiler_pic='-fpic'
9701	  lt_prog_compiler_static='-Bstatic'
9702	  ;;
9703	esac
9704	;;
9705      esac
9706      ;;
9707
9708    newsos6)
9709      lt_prog_compiler_pic='-KPIC'
9710      lt_prog_compiler_static='-Bstatic'
9711      ;;
9712
9713    *nto* | *qnx*)
9714      # QNX uses GNU C++, but need to define -shared option too, otherwise
9715      # it will coredump.
9716      lt_prog_compiler_pic='-fPIC -shared'
9717      ;;
9718
9719    osf3* | osf4* | osf5*)
9720      lt_prog_compiler_wl='-Wl,'
9721      # All OSF/1 code is PIC.
9722      lt_prog_compiler_static='-non_shared'
9723      ;;
9724
9725    rdos*)
9726      lt_prog_compiler_static='-non_shared'
9727      ;;
9728
9729    solaris*)
9730      lt_prog_compiler_pic='-KPIC'
9731      lt_prog_compiler_static='-Bstatic'
9732      case $cc_basename in
9733      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9734	lt_prog_compiler_wl='-Qoption ld ';;
9735      *)
9736	lt_prog_compiler_wl='-Wl,';;
9737      esac
9738      ;;
9739
9740    sunos4*)
9741      lt_prog_compiler_wl='-Qoption ld '
9742      lt_prog_compiler_pic='-PIC'
9743      lt_prog_compiler_static='-Bstatic'
9744      ;;
9745
9746    sysv4 | sysv4.2uw2* | sysv4.3*)
9747      lt_prog_compiler_wl='-Wl,'
9748      lt_prog_compiler_pic='-KPIC'
9749      lt_prog_compiler_static='-Bstatic'
9750      ;;
9751
9752    sysv4*MP*)
9753      if test -d /usr/nec; then
9754	lt_prog_compiler_pic='-Kconform_pic'
9755	lt_prog_compiler_static='-Bstatic'
9756      fi
9757      ;;
9758
9759    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9760      lt_prog_compiler_wl='-Wl,'
9761      lt_prog_compiler_pic='-KPIC'
9762      lt_prog_compiler_static='-Bstatic'
9763      ;;
9764
9765    unicos*)
9766      lt_prog_compiler_wl='-Wl,'
9767      lt_prog_compiler_can_build_shared=no
9768      ;;
9769
9770    uts4*)
9771      lt_prog_compiler_pic='-pic'
9772      lt_prog_compiler_static='-Bstatic'
9773      ;;
9774
9775    *)
9776      lt_prog_compiler_can_build_shared=no
9777      ;;
9778    esac
9779  fi
9780
9781case $host_os in
9782  # For platforms that do not support PIC, -DPIC is meaningless:
9783  *djgpp*)
9784    lt_prog_compiler_pic=
9785    ;;
9786  *)
9787    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9788    ;;
9789esac
9790
9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9792printf %s "checking for $compiler option to produce PIC... " >&6; }
9793if test ${lt_cv_prog_compiler_pic+y}
9794then :
9795  printf %s "(cached) " >&6
9796else $as_nop
9797  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9798fi
9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9800printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9801lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9802
9803#
9804# Check to make sure the PIC flag actually works.
9805#
9806if test -n "$lt_prog_compiler_pic"; then
9807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9808printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9809if test ${lt_cv_prog_compiler_pic_works+y}
9810then :
9811  printf %s "(cached) " >&6
9812else $as_nop
9813  lt_cv_prog_compiler_pic_works=no
9814   ac_outfile=conftest.$ac_objext
9815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9817   # Insert the option either (1) after the last *FLAGS variable, or
9818   # (2) before a word containing "conftest.", or (3) at the end.
9819   # Note that $ac_compile itself does not contain backslashes and begins
9820   # with a dollar sign (not a hyphen), so the echo should work correctly.
9821   # The option is referenced via a variable to avoid confusing sed.
9822   lt_compile=`echo "$ac_compile" | $SED \
9823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9825   -e 's:$: $lt_compiler_flag:'`
9826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9827   (eval "$lt_compile" 2>conftest.err)
9828   ac_status=$?
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   if (exit $ac_status) && test -s "$ac_outfile"; then
9832     # The compiler can only warn and ignore the option if not recognized
9833     # So say no if there are warnings other than the usual output.
9834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9837       lt_cv_prog_compiler_pic_works=yes
9838     fi
9839   fi
9840   $RM conftest*
9841
9842fi
9843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9844printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9845
9846if test yes = "$lt_cv_prog_compiler_pic_works"; then
9847    case $lt_prog_compiler_pic in
9848     "" | " "*) ;;
9849     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9850     esac
9851else
9852    lt_prog_compiler_pic=
9853     lt_prog_compiler_can_build_shared=no
9854fi
9855
9856fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868#
9869# Check to make sure the static flag actually works.
9870#
9871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9873printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9874if test ${lt_cv_prog_compiler_static_works+y}
9875then :
9876  printf %s "(cached) " >&6
9877else $as_nop
9878  lt_cv_prog_compiler_static_works=no
9879   save_LDFLAGS=$LDFLAGS
9880   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9881   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9882   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9883     # The linker can only warn and ignore the option if not recognized
9884     # So say no if there are warnings
9885     if test -s conftest.err; then
9886       # Append any errors to the config.log.
9887       cat conftest.err 1>&5
9888       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9889       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9890       if diff conftest.exp conftest.er2 >/dev/null; then
9891         lt_cv_prog_compiler_static_works=yes
9892       fi
9893     else
9894       lt_cv_prog_compiler_static_works=yes
9895     fi
9896   fi
9897   $RM -r conftest*
9898   LDFLAGS=$save_LDFLAGS
9899
9900fi
9901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9902printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9903
9904if test yes = "$lt_cv_prog_compiler_static_works"; then
9905    :
9906else
9907    lt_prog_compiler_static=
9908fi
9909
9910
9911
9912
9913
9914
9915
9916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9917printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9918if test ${lt_cv_prog_compiler_c_o+y}
9919then :
9920  printf %s "(cached) " >&6
9921else $as_nop
9922  lt_cv_prog_compiler_c_o=no
9923   $RM -r conftest 2>/dev/null
9924   mkdir conftest
9925   cd conftest
9926   mkdir out
9927   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929   lt_compiler_flag="-o out/conftest2.$ac_objext"
9930   # Insert the option either (1) after the last *FLAGS variable, or
9931   # (2) before a word containing "conftest.", or (3) at the end.
9932   # Note that $ac_compile itself does not contain backslashes and begins
9933   # with a dollar sign (not a hyphen), so the echo should work correctly.
9934   lt_compile=`echo "$ac_compile" | $SED \
9935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937   -e 's:$: $lt_compiler_flag:'`
9938   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9939   (eval "$lt_compile" 2>out/conftest.err)
9940   ac_status=$?
9941   cat out/conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9944   then
9945     # The compiler can only warn and ignore the option if not recognized
9946     # So say no if there are warnings
9947     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9948     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950       lt_cv_prog_compiler_c_o=yes
9951     fi
9952   fi
9953   chmod u+w . 2>&5
9954   $RM conftest*
9955   # SGI C++ compiler will create directory out/ii_files/ for
9956   # template instantiation
9957   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958   $RM out/* && rmdir out
9959   cd ..
9960   $RM -r conftest
9961   $RM conftest*
9962
9963fi
9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9965printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9966
9967
9968
9969
9970
9971
9972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9973printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9974if test ${lt_cv_prog_compiler_c_o+y}
9975then :
9976  printf %s "(cached) " >&6
9977else $as_nop
9978  lt_cv_prog_compiler_c_o=no
9979   $RM -r conftest 2>/dev/null
9980   mkdir conftest
9981   cd conftest
9982   mkdir out
9983   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9984
9985   lt_compiler_flag="-o out/conftest2.$ac_objext"
9986   # Insert the option either (1) after the last *FLAGS variable, or
9987   # (2) before a word containing "conftest.", or (3) at the end.
9988   # Note that $ac_compile itself does not contain backslashes and begins
9989   # with a dollar sign (not a hyphen), so the echo should work correctly.
9990   lt_compile=`echo "$ac_compile" | $SED \
9991   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9992   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9993   -e 's:$: $lt_compiler_flag:'`
9994   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9995   (eval "$lt_compile" 2>out/conftest.err)
9996   ac_status=$?
9997   cat out/conftest.err >&5
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10000   then
10001     # The compiler can only warn and ignore the option if not recognized
10002     # So say no if there are warnings
10003     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10004     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10005     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10006       lt_cv_prog_compiler_c_o=yes
10007     fi
10008   fi
10009   chmod u+w . 2>&5
10010   $RM conftest*
10011   # SGI C++ compiler will create directory out/ii_files/ for
10012   # template instantiation
10013   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10014   $RM out/* && rmdir out
10015   cd ..
10016   $RM -r conftest
10017   $RM conftest*
10018
10019fi
10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10021printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10022
10023
10024
10025
10026hard_links=nottested
10027if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10028  # do not overwrite the value of need_locks provided by the user
10029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10030printf %s "checking if we can lock with hard links... " >&6; }
10031  hard_links=yes
10032  $RM conftest*
10033  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10034  touch conftest.a
10035  ln conftest.a conftest.b 2>&5 || hard_links=no
10036  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10038printf "%s\n" "$hard_links" >&6; }
10039  if test no = "$hard_links"; then
10040    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10041printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10042    need_locks=warn
10043  fi
10044else
10045  need_locks=no
10046fi
10047
10048
10049
10050
10051
10052
10053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10054printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10055
10056  runpath_var=
10057  allow_undefined_flag=
10058  always_export_symbols=no
10059  archive_cmds=
10060  archive_expsym_cmds=
10061  compiler_needs_object=no
10062  enable_shared_with_static_runtimes=no
10063  export_dynamic_flag_spec=
10064  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10065  hardcode_automatic=no
10066  hardcode_direct=no
10067  hardcode_direct_absolute=no
10068  hardcode_libdir_flag_spec=
10069  hardcode_libdir_separator=
10070  hardcode_minus_L=no
10071  hardcode_shlibpath_var=unsupported
10072  inherit_rpath=no
10073  link_all_deplibs=unknown
10074  module_cmds=
10075  module_expsym_cmds=
10076  old_archive_from_new_cmds=
10077  old_archive_from_expsyms_cmds=
10078  thread_safe_flag_spec=
10079  whole_archive_flag_spec=
10080  # include_expsyms should be a list of space-separated symbols to be *always*
10081  # included in the symbol list
10082  include_expsyms=
10083  # exclude_expsyms can be an extended regexp of symbols to exclude
10084  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10085  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10086  # as well as any symbol that contains 'd'.
10087  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10088  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10089  # platforms (ab)use it in PIC code, but their linkers get confused if
10090  # the symbol is explicitly referenced.  Since portable code cannot
10091  # rely on this symbol name, it's probably fine to never include it in
10092  # preloaded symbol tables.
10093  # Exclude shared library initialization/finalization symbols.
10094  extract_expsyms_cmds=
10095
10096  case $host_os in
10097  cygwin* | mingw* | pw32* | cegcc*)
10098    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10099    # When not using gcc, we currently assume that we are using
10100    # Microsoft Visual C++ or Intel C++ Compiler.
10101    if test yes != "$GCC"; then
10102      with_gnu_ld=no
10103    fi
10104    ;;
10105  interix*)
10106    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10107    with_gnu_ld=yes
10108    ;;
10109  openbsd* | bitrig*)
10110    with_gnu_ld=no
10111    ;;
10112  esac
10113
10114  ld_shlibs=yes
10115
10116  # On some targets, GNU ld is compatible enough with the native linker
10117  # that we're better off using the native interface for both.
10118  lt_use_gnu_ld_interface=no
10119  if test yes = "$with_gnu_ld"; then
10120    case $host_os in
10121      aix*)
10122	# The AIX port of GNU ld has always aspired to compatibility
10123	# with the native linker.  However, as the warning in the GNU ld
10124	# block says, versions before 2.19.5* couldn't really create working
10125	# shared libraries, regardless of the interface used.
10126	case `$LD -v 2>&1` in
10127	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10128	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10129	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10130	  *)
10131	    lt_use_gnu_ld_interface=yes
10132	    ;;
10133	esac
10134	;;
10135      *)
10136	lt_use_gnu_ld_interface=yes
10137	;;
10138    esac
10139  fi
10140
10141  if test yes = "$lt_use_gnu_ld_interface"; then
10142    # If archive_cmds runs LD, not CC, wlarc should be empty
10143    wlarc='$wl'
10144
10145    # Set some defaults for GNU ld with shared library support. These
10146    # are reset later if shared libraries are not supported. Putting them
10147    # here allows them to be overridden if necessary.
10148    runpath_var=LD_RUN_PATH
10149    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10150    export_dynamic_flag_spec='$wl--export-dynamic'
10151    # ancient GNU ld didn't support --whole-archive et. al.
10152    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10153      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10154    else
10155      whole_archive_flag_spec=
10156    fi
10157    supports_anon_versioning=no
10158    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10159      *GNU\ gold*) supports_anon_versioning=yes ;;
10160      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10161      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10162      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10163      *\ 2.11.*) ;; # other 2.11 versions
10164      *) supports_anon_versioning=yes ;;
10165    esac
10166
10167    # See if GNU ld supports shared libraries.
10168    case $host_os in
10169    aix[3-9]*)
10170      # On AIX/PPC, the GNU linker is very broken
10171      if test ia64 != "$host_cpu"; then
10172	ld_shlibs=no
10173	cat <<_LT_EOF 1>&2
10174
10175*** Warning: the GNU linker, at least up to release 2.19, is reported
10176*** to be unable to reliably create shared libraries on AIX.
10177*** Therefore, libtool is disabling shared libraries support.  If you
10178*** really care for shared libraries, you may want to install binutils
10179*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10180*** You will then need to restart the configuration process.
10181
10182_LT_EOF
10183      fi
10184      ;;
10185
10186    amigaos*)
10187      case $host_cpu in
10188      powerpc)
10189            # see comment about AmigaOS4 .so support
10190            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191            archive_expsym_cmds=''
10192        ;;
10193      m68k)
10194            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)'
10195            hardcode_libdir_flag_spec='-L$libdir'
10196            hardcode_minus_L=yes
10197        ;;
10198      esac
10199      ;;
10200
10201    beos*)
10202      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10203	allow_undefined_flag=unsupported
10204	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10205	# support --undefined.  This deserves some investigation.  FIXME
10206	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10207      else
10208	ld_shlibs=no
10209      fi
10210      ;;
10211
10212    cygwin* | mingw* | pw32* | cegcc*)
10213      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10214      # as there is no search path for DLLs.
10215      hardcode_libdir_flag_spec='-L$libdir'
10216      export_dynamic_flag_spec='$wl--export-all-symbols'
10217      allow_undefined_flag=unsupported
10218      always_export_symbols=no
10219      enable_shared_with_static_runtimes=yes
10220      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'
10221      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10222
10223      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10224        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225	# If the export-symbols file already is a .def file, use it as
10226	# is; otherwise, prepend EXPORTS...
10227	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10228          cp $export_symbols $output_objdir/$soname.def;
10229        else
10230          echo EXPORTS > $output_objdir/$soname.def;
10231          cat $export_symbols >> $output_objdir/$soname.def;
10232        fi~
10233        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10234      else
10235	ld_shlibs=no
10236      fi
10237      ;;
10238
10239    haiku*)
10240      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10241      link_all_deplibs=yes
10242      ;;
10243
10244    os2*)
10245      hardcode_libdir_flag_spec='-L$libdir'
10246      hardcode_minus_L=yes
10247      allow_undefined_flag=unsupported
10248      shrext_cmds=.dll
10249      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10250	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10251	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10252	$ECHO EXPORTS >> $output_objdir/$libname.def~
10253	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10254	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10255	emximp -o $lib $output_objdir/$libname.def'
10256      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10257	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10258	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10259	$ECHO EXPORTS >> $output_objdir/$libname.def~
10260	prefix_cmds="$SED"~
10261	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10262	  prefix_cmds="$prefix_cmds -e 1d";
10263	fi~
10264	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10265	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10266	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10267	emximp -o $lib $output_objdir/$libname.def'
10268      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10269      enable_shared_with_static_runtimes=yes
10270      file_list_spec='@'
10271      ;;
10272
10273    interix[3-9]*)
10274      hardcode_direct=no
10275      hardcode_shlibpath_var=no
10276      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10277      export_dynamic_flag_spec='$wl-E'
10278      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10279      # Instead, shared libraries are loaded at an image base (0x10000000 by
10280      # default) and relocated if they conflict, which is a slow very memory
10281      # consuming and fragmenting process.  To avoid this, we pick a random,
10282      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10283      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10284      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10285      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'
10286      ;;
10287
10288    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10289      tmp_diet=no
10290      if test linux-dietlibc = "$host_os"; then
10291	case $cc_basename in
10292	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10293	esac
10294      fi
10295      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10296	 && test no = "$tmp_diet"
10297      then
10298	tmp_addflag=' $pic_flag'
10299	tmp_sharedflag='-shared'
10300	case $cc_basename,$host_cpu in
10301        pgcc*)				# Portland Group C compiler
10302	  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'
10303	  tmp_addflag=' $pic_flag'
10304	  ;;
10305	pgf77* | pgf90* | pgf95* | pgfortran*)
10306					# Portland Group f77 and f90 compilers
10307	  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'
10308	  tmp_addflag=' $pic_flag -Mnomain' ;;
10309	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10310	  tmp_addflag=' -i_dynamic' ;;
10311	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10312	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10313	ifc* | ifort*)			# Intel Fortran compiler
10314	  tmp_addflag=' -nofor_main' ;;
10315	lf95*)				# Lahey Fortran 8.1
10316	  whole_archive_flag_spec=
10317	  tmp_sharedflag='--shared' ;;
10318        nagfor*)                        # NAGFOR 5.3
10319          tmp_sharedflag='-Wl,-shared' ;;
10320	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10321	  tmp_sharedflag='-qmkshrobj'
10322	  tmp_addflag= ;;
10323	nvcc*)	# Cuda Compiler Driver 2.2
10324	  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'
10325	  compiler_needs_object=yes
10326	  ;;
10327	esac
10328	case `$CC -V 2>&1 | $SED 5q` in
10329	*Sun\ C*)			# Sun C 5.9
10330	  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'
10331	  compiler_needs_object=yes
10332	  tmp_sharedflag='-G' ;;
10333	*Sun\ F*)			# Sun Fortran 8.3
10334	  tmp_sharedflag='-G' ;;
10335	esac
10336	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10337
10338        if test yes = "$supports_anon_versioning"; then
10339          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341            echo "local: *; };" >> $output_objdir/$libname.ver~
10342            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10343        fi
10344
10345	case $cc_basename in
10346	tcc*)
10347	  export_dynamic_flag_spec='-rdynamic'
10348	  ;;
10349	xlf* | bgf* | bgxlf* | mpixlf*)
10350	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10351	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10352	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10353	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10354	  if test yes = "$supports_anon_versioning"; then
10355	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10356              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10357              echo "local: *; };" >> $output_objdir/$libname.ver~
10358              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10359	  fi
10360	  ;;
10361	esac
10362      else
10363        ld_shlibs=no
10364      fi
10365      ;;
10366
10367    netbsd*)
10368      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10369	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10370	wlarc=
10371      else
10372	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10373	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10374      fi
10375      ;;
10376
10377    solaris*)
10378      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10379	ld_shlibs=no
10380	cat <<_LT_EOF 1>&2
10381
10382*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10383*** create shared libraries on Solaris systems.  Therefore, libtool
10384*** is disabling shared libraries support.  We urge you to upgrade GNU
10385*** binutils to release 2.9.1 or newer.  Another option is to modify
10386*** your PATH or compiler configuration so that the native linker is
10387*** used, and then restart.
10388
10389_LT_EOF
10390      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10391	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10392	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10393      else
10394	ld_shlibs=no
10395      fi
10396      ;;
10397
10398    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10399      case `$LD -v 2>&1` in
10400        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10401	ld_shlibs=no
10402	cat <<_LT_EOF 1>&2
10403
10404*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10405*** reliably create shared libraries on SCO systems.  Therefore, libtool
10406*** is disabling shared libraries support.  We urge you to upgrade GNU
10407*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10408*** your PATH or compiler configuration so that the native linker is
10409*** used, and then restart.
10410
10411_LT_EOF
10412	;;
10413	*)
10414	  # For security reasons, it is highly recommended that you always
10415	  # use absolute paths for naming shared libraries, and exclude the
10416	  # DT_RUNPATH tag from executables and libraries.  But doing so
10417	  # requires that you compile everything twice, which is a pain.
10418	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10419	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10422	  else
10423	    ld_shlibs=no
10424	  fi
10425	;;
10426      esac
10427      ;;
10428
10429    sunos4*)
10430      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10431      wlarc=
10432      hardcode_direct=yes
10433      hardcode_shlibpath_var=no
10434      ;;
10435
10436    *)
10437      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10440      else
10441	ld_shlibs=no
10442      fi
10443      ;;
10444    esac
10445
10446    if test no = "$ld_shlibs"; then
10447      runpath_var=
10448      hardcode_libdir_flag_spec=
10449      export_dynamic_flag_spec=
10450      whole_archive_flag_spec=
10451    fi
10452  else
10453    # PORTME fill in a description of your system's linker (not GNU ld)
10454    case $host_os in
10455    aix3*)
10456      allow_undefined_flag=unsupported
10457      always_export_symbols=yes
10458      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'
10459      # Note: this linker hardcodes the directories in LIBPATH if there
10460      # are no directories specified by -L.
10461      hardcode_minus_L=yes
10462      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10463	# Neither direct hardcoding nor static linking is supported with a
10464	# broken collect2.
10465	hardcode_direct=unsupported
10466      fi
10467      ;;
10468
10469    aix[4-9]*)
10470      if test ia64 = "$host_cpu"; then
10471	# On IA64, the linker does run time linking by default, so we don't
10472	# have to do anything special.
10473	aix_use_runtimelinking=no
10474	exp_sym_flag='-Bexport'
10475	no_entry_flag=
10476      else
10477	# If we're using GNU nm, then we don't want the "-C" option.
10478	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10479	# Without the "-l" option, or with the "-B" option, AIX nm treats
10480	# weak defined symbols like other global defined symbols, whereas
10481	# GNU nm marks them as "W".
10482	# While the 'weak' keyword is ignored in the Export File, we need
10483	# it in the Import File for the 'aix-soname' feature, so we have
10484	# to replace the "-B" option with "-P" for AIX nm.
10485	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10486	  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'
10487	else
10488	  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'
10489	fi
10490	aix_use_runtimelinking=no
10491
10492	# Test if we are trying to use run time linking or normal
10493	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10494	# have runtime linking enabled, and use it for executables.
10495	# For shared libraries, we enable/disable runtime linking
10496	# depending on the kind of the shared library created -
10497	# when "with_aix_soname,aix_use_runtimelinking" is:
10498	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10499	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10500	#            lib.a           static archive
10501	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10502	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10503	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10504	#            lib.a(lib.so.V) shared, rtl:no
10505	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10506	#            lib.a           static archive
10507	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10508	  for ld_flag in $LDFLAGS; do
10509	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10510	    aix_use_runtimelinking=yes
10511	    break
10512	  fi
10513	  done
10514	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10515	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10516	    # so we don't have lib.a shared libs to link our executables.
10517	    # We have to force runtime linking in this case.
10518	    aix_use_runtimelinking=yes
10519	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10520	  fi
10521	  ;;
10522	esac
10523
10524	exp_sym_flag='-bexport'
10525	no_entry_flag='-bnoentry'
10526      fi
10527
10528      # When large executables or shared objects are built, AIX ld can
10529      # have problems creating the table of contents.  If linking a library
10530      # or program results in "error TOC overflow" add -mminimal-toc to
10531      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10532      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10533
10534      archive_cmds=''
10535      hardcode_direct=yes
10536      hardcode_direct_absolute=yes
10537      hardcode_libdir_separator=':'
10538      link_all_deplibs=yes
10539      file_list_spec='$wl-f,'
10540      case $with_aix_soname,$aix_use_runtimelinking in
10541      aix,*) ;; # traditional, no import file
10542      svr4,* | *,yes) # use import file
10543	# The Import File defines what to hardcode.
10544	hardcode_direct=no
10545	hardcode_direct_absolute=no
10546	;;
10547      esac
10548
10549      if test yes = "$GCC"; then
10550	case $host_os in aix4.[012]|aix4.[012].*)
10551	# We only want to do this on AIX 4.2 and lower, the check
10552	# below for broken collect2 doesn't work under 4.3+
10553	  collect2name=`$CC -print-prog-name=collect2`
10554	  if test -f "$collect2name" &&
10555	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10556	  then
10557	  # We have reworked collect2
10558	  :
10559	  else
10560	  # We have old collect2
10561	  hardcode_direct=unsupported
10562	  # It fails to find uninstalled libraries when the uninstalled
10563	  # path is not listed in the libpath.  Setting hardcode_minus_L
10564	  # to unsupported forces relinking
10565	  hardcode_minus_L=yes
10566	  hardcode_libdir_flag_spec='-L$libdir'
10567	  hardcode_libdir_separator=
10568	  fi
10569	  ;;
10570	esac
10571	shared_flag='-shared'
10572	if test yes = "$aix_use_runtimelinking"; then
10573	  shared_flag="$shared_flag "'$wl-G'
10574	fi
10575	# Need to ensure runtime linking is disabled for the traditional
10576	# shared library, or the linker may eventually find shared libraries
10577	# /with/ Import File - we do not want to mix them.
10578	shared_flag_aix='-shared'
10579	shared_flag_svr4='-shared $wl-G'
10580      else
10581	# not using gcc
10582	if test ia64 = "$host_cpu"; then
10583	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10584	# chokes on -Wl,-G. The following line is correct:
10585	  shared_flag='-G'
10586	else
10587	  if test yes = "$aix_use_runtimelinking"; then
10588	    shared_flag='$wl-G'
10589	  else
10590	    shared_flag='$wl-bM:SRE'
10591	  fi
10592	  shared_flag_aix='$wl-bM:SRE'
10593	  shared_flag_svr4='$wl-G'
10594	fi
10595      fi
10596
10597      export_dynamic_flag_spec='$wl-bexpall'
10598      # It seems that -bexpall does not export symbols beginning with
10599      # underscore (_), so it is better to generate a list of symbols to export.
10600      always_export_symbols=yes
10601      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10602	# Warning - without using the other runtime loading flags (-brtl),
10603	# -berok will link without error, but may produce a broken library.
10604	allow_undefined_flag='-berok'
10605        # Determine the default libpath from the value encoded in an
10606        # empty executable.
10607        if test set = "${lt_cv_aix_libpath+set}"; then
10608  aix_libpath=$lt_cv_aix_libpath
10609else
10610  if test ${lt_cv_aix_libpath_+y}
10611then :
10612  printf %s "(cached) " >&6
10613else $as_nop
10614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615/* end confdefs.h.  */
10616
10617int
10618main (void)
10619{
10620
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625if ac_fn_c_try_link "$LINENO"
10626then :
10627
10628  lt_aix_libpath_sed='
10629      /Import File Strings/,/^$/ {
10630	  /^0/ {
10631	      s/^0  *\([^ ]*\) *$/\1/
10632	      p
10633	  }
10634      }'
10635  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10636  # Check for a 64-bit object if we didn't find anything.
10637  if test -z "$lt_cv_aix_libpath_"; then
10638    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10639  fi
10640fi
10641rm -f core conftest.err conftest.$ac_objext conftest.beam \
10642    conftest$ac_exeext conftest.$ac_ext
10643  if test -z "$lt_cv_aix_libpath_"; then
10644    lt_cv_aix_libpath_=/usr/lib:/lib
10645  fi
10646
10647fi
10648
10649  aix_libpath=$lt_cv_aix_libpath_
10650fi
10651
10652        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10653        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
10654      else
10655	if test ia64 = "$host_cpu"; then
10656	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10657	  allow_undefined_flag="-z nodefs"
10658	  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"
10659	else
10660	 # Determine the default libpath from the value encoded in an
10661	 # empty executable.
10662	 if test set = "${lt_cv_aix_libpath+set}"; then
10663  aix_libpath=$lt_cv_aix_libpath
10664else
10665  if test ${lt_cv_aix_libpath_+y}
10666then :
10667  printf %s "(cached) " >&6
10668else $as_nop
10669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670/* end confdefs.h.  */
10671
10672int
10673main (void)
10674{
10675
10676  ;
10677  return 0;
10678}
10679_ACEOF
10680if ac_fn_c_try_link "$LINENO"
10681then :
10682
10683  lt_aix_libpath_sed='
10684      /Import File Strings/,/^$/ {
10685	  /^0/ {
10686	      s/^0  *\([^ ]*\) *$/\1/
10687	      p
10688	  }
10689      }'
10690  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10691  # Check for a 64-bit object if we didn't find anything.
10692  if test -z "$lt_cv_aix_libpath_"; then
10693    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10694  fi
10695fi
10696rm -f core conftest.err conftest.$ac_objext conftest.beam \
10697    conftest$ac_exeext conftest.$ac_ext
10698  if test -z "$lt_cv_aix_libpath_"; then
10699    lt_cv_aix_libpath_=/usr/lib:/lib
10700  fi
10701
10702fi
10703
10704  aix_libpath=$lt_cv_aix_libpath_
10705fi
10706
10707	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10708	  # Warning - without using the other run time loading flags,
10709	  # -berok will link without error, but may produce a broken library.
10710	  no_undefined_flag=' $wl-bernotok'
10711	  allow_undefined_flag=' $wl-berok'
10712	  if test yes = "$with_gnu_ld"; then
10713	    # We only use this code for GNU lds that support --whole-archive.
10714	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10715	  else
10716	    # Exported symbols can be pulled into shared objects from archives
10717	    whole_archive_flag_spec='$convenience'
10718	  fi
10719	  archive_cmds_need_lc=yes
10720	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10721	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10722	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10723	  if test svr4 != "$with_aix_soname"; then
10724	    # This is similar to how AIX traditionally builds its shared libraries.
10725	    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'
10726	  fi
10727	  if test aix != "$with_aix_soname"; then
10728	    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'
10729	  else
10730	    # used by -dlpreopen to get the symbols
10731	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10732	  fi
10733	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10734	fi
10735      fi
10736      ;;
10737
10738    amigaos*)
10739      case $host_cpu in
10740      powerpc)
10741            # see comment about AmigaOS4 .so support
10742            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10743            archive_expsym_cmds=''
10744        ;;
10745      m68k)
10746            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)'
10747            hardcode_libdir_flag_spec='-L$libdir'
10748            hardcode_minus_L=yes
10749        ;;
10750      esac
10751      ;;
10752
10753    bsdi[45]*)
10754      export_dynamic_flag_spec=-rdynamic
10755      ;;
10756
10757    cygwin* | mingw* | pw32* | cegcc*)
10758      # When not using gcc, we currently assume that we are using
10759      # Microsoft Visual C++ or Intel C++ Compiler.
10760      # hardcode_libdir_flag_spec is actually meaningless, as there is
10761      # no search path for DLLs.
10762      case $cc_basename in
10763      cl* | icl*)
10764	# Native MSVC or ICC
10765	hardcode_libdir_flag_spec=' '
10766	allow_undefined_flag=unsupported
10767	always_export_symbols=yes
10768	file_list_spec='@'
10769	# Tell ltmain to make .lib files, not .a files.
10770	libext=lib
10771	# Tell ltmain to make .dll files, not .so files.
10772	shrext_cmds=.dll
10773	# FIXME: Setting linknames here is a bad hack.
10774	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10775	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10776            cp "$export_symbols" "$output_objdir/$soname.def";
10777            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10778          else
10779            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10780          fi~
10781          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10782          linknames='
10783	# The linker will not automatically build a static lib if we build a DLL.
10784	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10785	enable_shared_with_static_runtimes=yes
10786	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10787	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10788	# Don't use ranlib
10789	old_postinstall_cmds='chmod 644 $oldlib'
10790	postlink_cmds='lt_outputfile="@OUTPUT@"~
10791          lt_tool_outputfile="@TOOL_OUTPUT@"~
10792          case $lt_outputfile in
10793            *.exe|*.EXE) ;;
10794            *)
10795              lt_outputfile=$lt_outputfile.exe
10796              lt_tool_outputfile=$lt_tool_outputfile.exe
10797              ;;
10798          esac~
10799          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10800            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10801            $RM "$lt_outputfile.manifest";
10802          fi'
10803	;;
10804      *)
10805	# Assume MSVC and ICC wrapper
10806	hardcode_libdir_flag_spec=' '
10807	allow_undefined_flag=unsupported
10808	# Tell ltmain to make .lib files, not .a files.
10809	libext=lib
10810	# Tell ltmain to make .dll files, not .so files.
10811	shrext_cmds=.dll
10812	# FIXME: Setting linknames here is a bad hack.
10813	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10814	# The linker will automatically build a .lib file if we build a DLL.
10815	old_archive_from_new_cmds='true'
10816	# FIXME: Should let the user specify the lib program.
10817	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10818	enable_shared_with_static_runtimes=yes
10819	;;
10820      esac
10821      ;;
10822
10823    darwin* | rhapsody*)
10824
10825
10826  archive_cmds_need_lc=no
10827  hardcode_direct=no
10828  hardcode_automatic=yes
10829  hardcode_shlibpath_var=unsupported
10830  if test yes = "$lt_cv_ld_force_load"; then
10831    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\"`'
10832
10833  else
10834    whole_archive_flag_spec=''
10835  fi
10836  link_all_deplibs=yes
10837  allow_undefined_flag=$_lt_dar_allow_undefined
10838  case $cc_basename in
10839     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10840     *) _lt_dar_can_shared=$GCC ;;
10841  esac
10842  if test yes = "$_lt_dar_can_shared"; then
10843    output_verbose_link_cmd=func_echo_all
10844    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10845    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10846    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"
10847    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"
10848
10849  else
10850  ld_shlibs=no
10851  fi
10852
10853      ;;
10854
10855    dgux*)
10856      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857      hardcode_libdir_flag_spec='-L$libdir'
10858      hardcode_shlibpath_var=no
10859      ;;
10860
10861    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10862    # support.  Future versions do this automatically, but an explicit c++rt0.o
10863    # does not break anything, and helps significantly (at the cost of a little
10864    # extra space).
10865    freebsd2.2*)
10866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10867      hardcode_libdir_flag_spec='-R$libdir'
10868      hardcode_direct=yes
10869      hardcode_shlibpath_var=no
10870      ;;
10871
10872    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10873    freebsd2.*)
10874      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10875      hardcode_direct=yes
10876      hardcode_minus_L=yes
10877      hardcode_shlibpath_var=no
10878      ;;
10879
10880    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10881    freebsd* | dragonfly* | midnightbsd*)
10882      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10883      hardcode_libdir_flag_spec='-R$libdir'
10884      hardcode_direct=yes
10885      hardcode_shlibpath_var=no
10886      ;;
10887
10888    hpux9*)
10889      if test yes = "$GCC"; then
10890	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'
10891      else
10892	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'
10893      fi
10894      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10895      hardcode_libdir_separator=:
10896      hardcode_direct=yes
10897
10898      # hardcode_minus_L: Not really in the search PATH,
10899      # but as the default location of the library.
10900      hardcode_minus_L=yes
10901      export_dynamic_flag_spec='$wl-E'
10902      ;;
10903
10904    hpux10*)
10905      if test yes,no = "$GCC,$with_gnu_ld"; then
10906	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10907      else
10908	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10909      fi
10910      if test no = "$with_gnu_ld"; then
10911	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10912	hardcode_libdir_separator=:
10913	hardcode_direct=yes
10914	hardcode_direct_absolute=yes
10915	export_dynamic_flag_spec='$wl-E'
10916	# hardcode_minus_L: Not really in the search PATH,
10917	# but as the default location of the library.
10918	hardcode_minus_L=yes
10919      fi
10920      ;;
10921
10922    hpux11*)
10923      if test yes,no = "$GCC,$with_gnu_ld"; then
10924	case $host_cpu in
10925	hppa*64*)
10926	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10927	  ;;
10928	ia64*)
10929	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10930	  ;;
10931	*)
10932	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10933	  ;;
10934	esac
10935      else
10936	case $host_cpu in
10937	hppa*64*)
10938	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10939	  ;;
10940	ia64*)
10941	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10942	  ;;
10943	*)
10944
10945	  # Older versions of the 11.00 compiler do not understand -b yet
10946	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10947	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10948printf %s "checking if $CC understands -b... " >&6; }
10949if test ${lt_cv_prog_compiler__b+y}
10950then :
10951  printf %s "(cached) " >&6
10952else $as_nop
10953  lt_cv_prog_compiler__b=no
10954   save_LDFLAGS=$LDFLAGS
10955   LDFLAGS="$LDFLAGS -b"
10956   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10957   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10958     # The linker can only warn and ignore the option if not recognized
10959     # So say no if there are warnings
10960     if test -s conftest.err; then
10961       # Append any errors to the config.log.
10962       cat conftest.err 1>&5
10963       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10964       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10965       if diff conftest.exp conftest.er2 >/dev/null; then
10966         lt_cv_prog_compiler__b=yes
10967       fi
10968     else
10969       lt_cv_prog_compiler__b=yes
10970     fi
10971   fi
10972   $RM -r conftest*
10973   LDFLAGS=$save_LDFLAGS
10974
10975fi
10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10977printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10978
10979if test yes = "$lt_cv_prog_compiler__b"; then
10980    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10981else
10982    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10983fi
10984
10985	  ;;
10986	esac
10987      fi
10988      if test no = "$with_gnu_ld"; then
10989	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10990	hardcode_libdir_separator=:
10991
10992	case $host_cpu in
10993	hppa*64*|ia64*)
10994	  hardcode_direct=no
10995	  hardcode_shlibpath_var=no
10996	  ;;
10997	*)
10998	  hardcode_direct=yes
10999	  hardcode_direct_absolute=yes
11000	  export_dynamic_flag_spec='$wl-E'
11001
11002	  # hardcode_minus_L: Not really in the search PATH,
11003	  # but as the default location of the library.
11004	  hardcode_minus_L=yes
11005	  ;;
11006	esac
11007      fi
11008      ;;
11009
11010    irix5* | irix6* | nonstopux*)
11011      if test yes = "$GCC"; then
11012	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'
11013	# Try to use the -exported_symbol ld option, if it does not
11014	# work, assume that -exports_file does not work either and
11015	# implicitly export all symbols.
11016	# This should be the same for all languages, so no per-tag cache variable.
11017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11018printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11019if test ${lt_cv_irix_exported_symbol+y}
11020then :
11021  printf %s "(cached) " >&6
11022else $as_nop
11023  save_LDFLAGS=$LDFLAGS
11024	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11025	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026/* end confdefs.h.  */
11027int foo (void) { return 0; }
11028_ACEOF
11029if ac_fn_c_try_link "$LINENO"
11030then :
11031  lt_cv_irix_exported_symbol=yes
11032else $as_nop
11033  lt_cv_irix_exported_symbol=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext conftest.beam \
11036    conftest$ac_exeext conftest.$ac_ext
11037           LDFLAGS=$save_LDFLAGS
11038fi
11039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11040printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11041	if test yes = "$lt_cv_irix_exported_symbol"; then
11042          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'
11043	fi
11044      else
11045	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'
11046	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'
11047      fi
11048      archive_cmds_need_lc='no'
11049      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11050      hardcode_libdir_separator=:
11051      inherit_rpath=yes
11052      link_all_deplibs=yes
11053      ;;
11054
11055    linux*)
11056      case $cc_basename in
11057      tcc*)
11058	# Fabrice Bellard et al's Tiny C Compiler
11059	ld_shlibs=yes
11060	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11061	;;
11062      esac
11063      ;;
11064
11065    netbsd*)
11066      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11067	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11068      else
11069	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11070      fi
11071      hardcode_libdir_flag_spec='-R$libdir'
11072      hardcode_direct=yes
11073      hardcode_shlibpath_var=no
11074      ;;
11075
11076    newsos6)
11077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078      hardcode_direct=yes
11079      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11080      hardcode_libdir_separator=:
11081      hardcode_shlibpath_var=no
11082      ;;
11083
11084    *nto* | *qnx*)
11085      ;;
11086
11087    openbsd* | bitrig*)
11088      if test -f /usr/libexec/ld.so; then
11089	hardcode_direct=yes
11090	hardcode_shlibpath_var=no
11091	hardcode_direct_absolute=yes
11092	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11093	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11094	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11095	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11096	  export_dynamic_flag_spec='$wl-E'
11097	else
11098	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11099	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11100	fi
11101      else
11102	ld_shlibs=no
11103      fi
11104      ;;
11105
11106    os2*)
11107      hardcode_libdir_flag_spec='-L$libdir'
11108      hardcode_minus_L=yes
11109      allow_undefined_flag=unsupported
11110      shrext_cmds=.dll
11111      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11112	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11113	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11114	$ECHO EXPORTS >> $output_objdir/$libname.def~
11115	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11116	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11117	emximp -o $lib $output_objdir/$libname.def'
11118      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11119	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11120	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11121	$ECHO EXPORTS >> $output_objdir/$libname.def~
11122	prefix_cmds="$SED"~
11123	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11124	  prefix_cmds="$prefix_cmds -e 1d";
11125	fi~
11126	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11127	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11128	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11129	emximp -o $lib $output_objdir/$libname.def'
11130      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11131      enable_shared_with_static_runtimes=yes
11132      file_list_spec='@'
11133      ;;
11134
11135    osf3*)
11136      if test yes = "$GCC"; then
11137	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11138	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'
11139      else
11140	allow_undefined_flag=' -expect_unresolved \*'
11141	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'
11142      fi
11143      archive_cmds_need_lc='no'
11144      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11145      hardcode_libdir_separator=:
11146      ;;
11147
11148    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11149      if test yes = "$GCC"; then
11150	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11151	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'
11152	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11153      else
11154	allow_undefined_flag=' -expect_unresolved \*'
11155	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'
11156	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~
11157          $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'
11158
11159	# Both c and cxx compiler support -rpath directly
11160	hardcode_libdir_flag_spec='-rpath $libdir'
11161      fi
11162      archive_cmds_need_lc='no'
11163      hardcode_libdir_separator=:
11164      ;;
11165
11166    solaris*)
11167      no_undefined_flag=' -z defs'
11168      if test yes = "$GCC"; then
11169	wlarc='$wl'
11170	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11171	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11172          $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'
11173      else
11174	case `$CC -V 2>&1` in
11175	*"Compilers 5.0"*)
11176	  wlarc=''
11177	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11179            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11180	  ;;
11181	*)
11182	  wlarc='$wl'
11183	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11184	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11185            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11186	  ;;
11187	esac
11188      fi
11189      hardcode_libdir_flag_spec='-R$libdir'
11190      hardcode_shlibpath_var=no
11191      case $host_os in
11192      solaris2.[0-5] | solaris2.[0-5].*) ;;
11193      *)
11194	# The compiler driver will combine and reorder linker options,
11195	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11196	# but is careful enough not to reorder.
11197	# Supported since Solaris 2.6 (maybe 2.5.1?)
11198	if test yes = "$GCC"; then
11199	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11200	else
11201	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11202	fi
11203	;;
11204      esac
11205      link_all_deplibs=yes
11206      ;;
11207
11208    sunos4*)
11209      if test sequent = "$host_vendor"; then
11210	# Use $CC to link under sequent, because it throws in some extra .o
11211	# files that make .init and .fini sections work.
11212	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11213      else
11214	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11215      fi
11216      hardcode_libdir_flag_spec='-L$libdir'
11217      hardcode_direct=yes
11218      hardcode_minus_L=yes
11219      hardcode_shlibpath_var=no
11220      ;;
11221
11222    sysv4)
11223      case $host_vendor in
11224	sni)
11225	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11226	  hardcode_direct=yes # is this really true???
11227	;;
11228	siemens)
11229	  ## LD is ld it makes a PLAMLIB
11230	  ## CC just makes a GrossModule.
11231	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11232	  reload_cmds='$CC -r -o $output$reload_objs'
11233	  hardcode_direct=no
11234        ;;
11235	motorola)
11236	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11237	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11238	;;
11239      esac
11240      runpath_var='LD_RUN_PATH'
11241      hardcode_shlibpath_var=no
11242      ;;
11243
11244    sysv4.3*)
11245      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11246      hardcode_shlibpath_var=no
11247      export_dynamic_flag_spec='-Bexport'
11248      ;;
11249
11250    sysv4*MP*)
11251      if test -d /usr/nec; then
11252	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11253	hardcode_shlibpath_var=no
11254	runpath_var=LD_RUN_PATH
11255	hardcode_runpath_var=yes
11256	ld_shlibs=yes
11257      fi
11258      ;;
11259
11260    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11261      no_undefined_flag='$wl-z,text'
11262      archive_cmds_need_lc=no
11263      hardcode_shlibpath_var=no
11264      runpath_var='LD_RUN_PATH'
11265
11266      if test yes = "$GCC"; then
11267	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269      else
11270	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11271	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272      fi
11273      ;;
11274
11275    sysv5* | sco3.2v5* | sco5v6*)
11276      # Note: We CANNOT use -z defs as we might desire, because we do not
11277      # link with -lc, and that would cause any symbols used from libc to
11278      # always be unresolved, which means just about no library would
11279      # ever link correctly.  If we're not using GNU ld we use -z text
11280      # though, which does catch some bad symbols but isn't as heavy-handed
11281      # as -z defs.
11282      no_undefined_flag='$wl-z,text'
11283      allow_undefined_flag='$wl-z,nodefs'
11284      archive_cmds_need_lc=no
11285      hardcode_shlibpath_var=no
11286      hardcode_libdir_flag_spec='$wl-R,$libdir'
11287      hardcode_libdir_separator=':'
11288      link_all_deplibs=yes
11289      export_dynamic_flag_spec='$wl-Bexport'
11290      runpath_var='LD_RUN_PATH'
11291
11292      if test yes = "$GCC"; then
11293	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295      else
11296	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298      fi
11299      ;;
11300
11301    uts4*)
11302      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303      hardcode_libdir_flag_spec='-L$libdir'
11304      hardcode_shlibpath_var=no
11305      ;;
11306
11307    *)
11308      ld_shlibs=no
11309      ;;
11310    esac
11311
11312    if test sni = "$host_vendor"; then
11313      case $host in
11314      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11315	export_dynamic_flag_spec='$wl-Blargedynsym'
11316	;;
11317      esac
11318    fi
11319  fi
11320
11321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11322printf "%s\n" "$ld_shlibs" >&6; }
11323test no = "$ld_shlibs" && can_build_shared=no
11324
11325with_gnu_ld=$with_gnu_ld
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341#
11342# Do we need to explicitly link libc?
11343#
11344case "x$archive_cmds_need_lc" in
11345x|xyes)
11346  # Assume -lc should be added
11347  archive_cmds_need_lc=yes
11348
11349  if test yes,yes = "$GCC,$enable_shared"; then
11350    case $archive_cmds in
11351    *'~'*)
11352      # FIXME: we may have to deal with multi-command sequences.
11353      ;;
11354    '$CC '*)
11355      # Test whether the compiler implicitly links with -lc since on some
11356      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11357      # to ld, don't add -lc before -lgcc.
11358      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11359printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11360if test ${lt_cv_archive_cmds_need_lc+y}
11361then :
11362  printf %s "(cached) " >&6
11363else $as_nop
11364  $RM conftest*
11365	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11366
11367	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11368  (eval $ac_compile) 2>&5
11369  ac_status=$?
11370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371  test $ac_status = 0; } 2>conftest.err; then
11372	  soname=conftest
11373	  lib=conftest
11374	  libobjs=conftest.$ac_objext
11375	  deplibs=
11376	  wl=$lt_prog_compiler_wl
11377	  pic_flag=$lt_prog_compiler_pic
11378	  compiler_flags=-v
11379	  linker_flags=-v
11380	  verstring=
11381	  output_objdir=.
11382	  libname=conftest
11383	  lt_save_allow_undefined_flag=$allow_undefined_flag
11384	  allow_undefined_flag=
11385	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11386  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11387  ac_status=$?
11388  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11389  test $ac_status = 0; }
11390	  then
11391	    lt_cv_archive_cmds_need_lc=no
11392	  else
11393	    lt_cv_archive_cmds_need_lc=yes
11394	  fi
11395	  allow_undefined_flag=$lt_save_allow_undefined_flag
11396	else
11397	  cat conftest.err 1>&5
11398	fi
11399	$RM conftest*
11400
11401fi
11402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11403printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11404      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11405      ;;
11406    esac
11407  fi
11408  ;;
11409esac
11410
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11563printf %s "checking dynamic linker characteristics... " >&6; }
11564
11565if test yes = "$GCC"; then
11566  case $host_os in
11567    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11568    *) lt_awk_arg='/^libraries:/' ;;
11569  esac
11570  case $host_os in
11571    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11572    *) lt_sed_strip_eq='s|=/|/|g' ;;
11573  esac
11574  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11575  case $lt_search_path_spec in
11576  *\;*)
11577    # if the path contains ";" then we assume it to be the separator
11578    # otherwise default to the standard path separator (i.e. ":") - it is
11579    # assumed that no part of a normal pathname contains ";" but that should
11580    # okay in the real world where ";" in dirpaths is itself problematic.
11581    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11582    ;;
11583  *)
11584    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11585    ;;
11586  esac
11587  # Ok, now we have the path, separated by spaces, we can step through it
11588  # and add multilib dir if necessary...
11589  lt_tmp_lt_search_path_spec=
11590  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11591  # ...but if some path component already ends with the multilib dir we assume
11592  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11593  case "$lt_multi_os_dir; $lt_search_path_spec " in
11594  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11595    lt_multi_os_dir=
11596    ;;
11597  esac
11598  for lt_sys_path in $lt_search_path_spec; do
11599    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11600      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11601    elif test -n "$lt_multi_os_dir"; then
11602      test -d "$lt_sys_path" && \
11603	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11604    fi
11605  done
11606  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11607BEGIN {RS = " "; FS = "/|\n";} {
11608  lt_foo = "";
11609  lt_count = 0;
11610  for (lt_i = NF; lt_i > 0; lt_i--) {
11611    if ($lt_i != "" && $lt_i != ".") {
11612      if ($lt_i == "..") {
11613        lt_count++;
11614      } else {
11615        if (lt_count == 0) {
11616          lt_foo = "/" $lt_i lt_foo;
11617        } else {
11618          lt_count--;
11619        }
11620      }
11621    }
11622  }
11623  if (lt_foo != "") { lt_freq[lt_foo]++; }
11624  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11625}'`
11626  # AWK program above erroneously prepends '/' to C:/dos/paths
11627  # for these hosts.
11628  case $host_os in
11629    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11630      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11631  esac
11632  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11633else
11634  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11635fi
11636library_names_spec=
11637libname_spec='lib$name'
11638soname_spec=
11639shrext_cmds=.so
11640postinstall_cmds=
11641postuninstall_cmds=
11642finish_cmds=
11643finish_eval=
11644shlibpath_var=
11645shlibpath_overrides_runpath=unknown
11646version_type=none
11647dynamic_linker="$host_os ld.so"
11648sys_lib_dlsearch_path_spec="/lib /usr/lib"
11649need_lib_prefix=unknown
11650hardcode_into_libs=no
11651
11652# when you set need_version to no, make sure it does not cause -set_version
11653# flags to be left without arguments
11654need_version=unknown
11655
11656
11657
11658case $host_os in
11659aix3*)
11660  version_type=linux # correct to gnu/linux during the next big refactor
11661  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11662  shlibpath_var=LIBPATH
11663
11664  # AIX 3 has no versioning support, so we append a major version to the name.
11665  soname_spec='$libname$release$shared_ext$major'
11666  ;;
11667
11668aix[4-9]*)
11669  version_type=linux # correct to gnu/linux during the next big refactor
11670  need_lib_prefix=no
11671  need_version=no
11672  hardcode_into_libs=yes
11673  if test ia64 = "$host_cpu"; then
11674    # AIX 5 supports IA64
11675    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11676    shlibpath_var=LD_LIBRARY_PATH
11677  else
11678    # With GCC up to 2.95.x, collect2 would create an import file
11679    # for dependence libraries.  The import file would start with
11680    # the line '#! .'.  This would cause the generated library to
11681    # depend on '.', always an invalid library.  This was fixed in
11682    # development snapshots of GCC prior to 3.0.
11683    case $host_os in
11684      aix4 | aix4.[01] | aix4.[01].*)
11685      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11686	   echo ' yes '
11687	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11688	:
11689      else
11690	can_build_shared=no
11691      fi
11692      ;;
11693    esac
11694    # Using Import Files as archive members, it is possible to support
11695    # filename-based versioning of shared library archives on AIX. While
11696    # this would work for both with and without runtime linking, it will
11697    # prevent static linking of such archives. So we do filename-based
11698    # shared library versioning with .so extension only, which is used
11699    # when both runtime linking and shared linking is enabled.
11700    # Unfortunately, runtime linking may impact performance, so we do
11701    # not want this to be the default eventually. Also, we use the
11702    # versioned .so libs for executables only if there is the -brtl
11703    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11704    # To allow for filename-based versioning support, we need to create
11705    # libNAME.so.V as an archive file, containing:
11706    # *) an Import File, referring to the versioned filename of the
11707    #    archive as well as the shared archive member, telling the
11708    #    bitwidth (32 or 64) of that shared object, and providing the
11709    #    list of exported symbols of that shared object, eventually
11710    #    decorated with the 'weak' keyword
11711    # *) the shared object with the F_LOADONLY flag set, to really avoid
11712    #    it being seen by the linker.
11713    # At run time we better use the real file rather than another symlink,
11714    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11715
11716    case $with_aix_soname,$aix_use_runtimelinking in
11717    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11718    # soname into executable. Probably we can add versioning support to
11719    # collect2, so additional links can be useful in future.
11720    aix,yes) # traditional libtool
11721      dynamic_linker='AIX unversionable lib.so'
11722      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11723      # instead of lib<name>.a to let people know that these are not
11724      # typical AIX shared libraries.
11725      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726      ;;
11727    aix,no) # traditional AIX only
11728      dynamic_linker='AIX lib.a(lib.so.V)'
11729      # We preserve .a as extension for shared libraries through AIX4.2
11730      # and later when we are not doing run time linking.
11731      library_names_spec='$libname$release.a $libname.a'
11732      soname_spec='$libname$release$shared_ext$major'
11733      ;;
11734    svr4,*) # full svr4 only
11735      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11736      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11737      # We do not specify a path in Import Files, so LIBPATH fires.
11738      shlibpath_overrides_runpath=yes
11739      ;;
11740    *,yes) # both, prefer svr4
11741      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11742      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11743      # unpreferred sharedlib libNAME.a needs extra handling
11744      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"'
11745      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"'
11746      # We do not specify a path in Import Files, so LIBPATH fires.
11747      shlibpath_overrides_runpath=yes
11748      ;;
11749    *,no) # both, prefer aix
11750      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11751      library_names_spec='$libname$release.a $libname.a'
11752      soname_spec='$libname$release$shared_ext$major'
11753      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11754      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)'
11755      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"'
11756      ;;
11757    esac
11758    shlibpath_var=LIBPATH
11759  fi
11760  ;;
11761
11762amigaos*)
11763  case $host_cpu in
11764  powerpc)
11765    # Since July 2007 AmigaOS4 officially supports .so libraries.
11766    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11767    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768    ;;
11769  m68k)
11770    library_names_spec='$libname.ixlibrary $libname.a'
11771    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11772    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'
11773    ;;
11774  esac
11775  ;;
11776
11777beos*)
11778  library_names_spec='$libname$shared_ext'
11779  dynamic_linker="$host_os ld.so"
11780  shlibpath_var=LIBRARY_PATH
11781  ;;
11782
11783bsdi[45]*)
11784  version_type=linux # correct to gnu/linux during the next big refactor
11785  need_version=no
11786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787  soname_spec='$libname$release$shared_ext$major'
11788  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11791  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11792  # the default ld.so.conf also contains /usr/contrib/lib and
11793  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11794  # libtool to hard-code these into programs
11795  ;;
11796
11797cygwin* | mingw* | pw32* | cegcc*)
11798  version_type=windows
11799  shrext_cmds=.dll
11800  need_version=no
11801  need_lib_prefix=no
11802
11803  case $GCC,$cc_basename in
11804  yes,*)
11805    # gcc
11806    library_names_spec='$libname.dll.a'
11807    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11808    postinstall_cmds='base_file=`basename \$file`~
11809      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11810      dldir=$destdir/`dirname \$dlpath`~
11811      test -d \$dldir || mkdir -p \$dldir~
11812      $install_prog $dir/$dlname \$dldir/$dlname~
11813      chmod a+x \$dldir/$dlname~
11814      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11815        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11816      fi'
11817    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11818      dlpath=$dir/\$dldll~
11819       $RM \$dlpath'
11820    shlibpath_overrides_runpath=yes
11821
11822    case $host_os in
11823    cygwin*)
11824      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11825      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11826
11827      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11828      ;;
11829    mingw* | cegcc*)
11830      # MinGW DLLs use traditional 'lib' prefix
11831      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11832      ;;
11833    pw32*)
11834      # pw32 DLLs use 'pw' prefix rather than 'lib'
11835      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11836      ;;
11837    esac
11838    dynamic_linker='Win32 ld.exe'
11839    ;;
11840
11841  *,cl* | *,icl*)
11842    # Native MSVC or ICC
11843    libname_spec='$name'
11844    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11845    library_names_spec='$libname.dll.lib'
11846
11847    case $build_os in
11848    mingw*)
11849      sys_lib_search_path_spec=
11850      lt_save_ifs=$IFS
11851      IFS=';'
11852      for lt_path in $LIB
11853      do
11854        IFS=$lt_save_ifs
11855        # Let DOS variable expansion print the short 8.3 style file name.
11856        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11857        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11858      done
11859      IFS=$lt_save_ifs
11860      # Convert to MSYS style.
11861      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11862      ;;
11863    cygwin*)
11864      # Convert to unix form, then to dos form, then back to unix form
11865      # but this time dos style (no spaces!) so that the unix form looks
11866      # like /cygdrive/c/PROGRA~1:/cygdr...
11867      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11868      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11869      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11870      ;;
11871    *)
11872      sys_lib_search_path_spec=$LIB
11873      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11874        # It is most probably a Windows format PATH.
11875        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11876      else
11877        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11878      fi
11879      # FIXME: find the short name or the path components, as spaces are
11880      # common. (e.g. "Program Files" -> "PROGRA~1")
11881      ;;
11882    esac
11883
11884    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885    postinstall_cmds='base_file=`basename \$file`~
11886      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11887      dldir=$destdir/`dirname \$dlpath`~
11888      test -d \$dldir || mkdir -p \$dldir~
11889      $install_prog $dir/$dlname \$dldir/$dlname'
11890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11891      dlpath=$dir/\$dldll~
11892       $RM \$dlpath'
11893    shlibpath_overrides_runpath=yes
11894    dynamic_linker='Win32 link.exe'
11895    ;;
11896
11897  *)
11898    # Assume MSVC and ICC wrapper
11899    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11900    dynamic_linker='Win32 ld.exe'
11901    ;;
11902  esac
11903  # FIXME: first we should search . and the directory the executable is in
11904  shlibpath_var=PATH
11905  ;;
11906
11907darwin* | rhapsody*)
11908  dynamic_linker="$host_os dyld"
11909  version_type=darwin
11910  need_lib_prefix=no
11911  need_version=no
11912  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11913  soname_spec='$libname$release$major$shared_ext'
11914  shlibpath_overrides_runpath=yes
11915  shlibpath_var=DYLD_LIBRARY_PATH
11916  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11917
11918  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11919  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11920  ;;
11921
11922dgux*)
11923  version_type=linux # correct to gnu/linux during the next big refactor
11924  need_lib_prefix=no
11925  need_version=no
11926  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927  soname_spec='$libname$release$shared_ext$major'
11928  shlibpath_var=LD_LIBRARY_PATH
11929  ;;
11930
11931freebsd* | dragonfly* | midnightbsd*)
11932  # DragonFly does not have aout.  When/if they implement a new
11933  # versioning mechanism, adjust this.
11934  if test -x /usr/bin/objformat; then
11935    objformat=`/usr/bin/objformat`
11936  else
11937    case $host_os in
11938    freebsd[23].*) objformat=aout ;;
11939    *) objformat=elf ;;
11940    esac
11941  fi
11942  version_type=freebsd-$objformat
11943  case $version_type in
11944    freebsd-elf*)
11945      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946      soname_spec='$libname$release$shared_ext$major'
11947      need_version=no
11948      need_lib_prefix=no
11949      ;;
11950    freebsd-*)
11951      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11952      need_version=yes
11953      ;;
11954  esac
11955  shlibpath_var=LD_LIBRARY_PATH
11956  case $host_os in
11957  freebsd2.*)
11958    shlibpath_overrides_runpath=yes
11959    ;;
11960  freebsd3.[01]* | freebsdelf3.[01]*)
11961    shlibpath_overrides_runpath=yes
11962    hardcode_into_libs=yes
11963    ;;
11964  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11965  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11966    shlibpath_overrides_runpath=no
11967    hardcode_into_libs=yes
11968    ;;
11969  *) # from 4.6 on, and DragonFly
11970    shlibpath_overrides_runpath=yes
11971    hardcode_into_libs=yes
11972    ;;
11973  esac
11974  ;;
11975
11976haiku*)
11977  version_type=linux # correct to gnu/linux during the next big refactor
11978  need_lib_prefix=no
11979  need_version=no
11980  dynamic_linker="$host_os runtime_loader"
11981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11982  soname_spec='$libname$release$shared_ext$major'
11983  shlibpath_var=LIBRARY_PATH
11984  shlibpath_overrides_runpath=no
11985  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11986  hardcode_into_libs=yes
11987  ;;
11988
11989hpux9* | hpux10* | hpux11*)
11990  # Give a soname corresponding to the major version so that dld.sl refuses to
11991  # link against other versions.
11992  version_type=sunos
11993  need_lib_prefix=no
11994  need_version=no
11995  case $host_cpu in
11996  ia64*)
11997    shrext_cmds='.so'
11998    hardcode_into_libs=yes
11999    dynamic_linker="$host_os dld.so"
12000    shlibpath_var=LD_LIBRARY_PATH
12001    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12002    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12003    soname_spec='$libname$release$shared_ext$major'
12004    if test 32 = "$HPUX_IA64_MODE"; then
12005      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12006      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12007    else
12008      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12009      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12010    fi
12011    ;;
12012  hppa*64*)
12013    shrext_cmds='.sl'
12014    hardcode_into_libs=yes
12015    dynamic_linker="$host_os dld.sl"
12016    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12018    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019    soname_spec='$libname$release$shared_ext$major'
12020    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12021    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12022    ;;
12023  *)
12024    shrext_cmds='.sl'
12025    dynamic_linker="$host_os dld.sl"
12026    shlibpath_var=SHLIB_PATH
12027    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12028    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029    soname_spec='$libname$release$shared_ext$major'
12030    ;;
12031  esac
12032  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12033  postinstall_cmds='chmod 555 $lib'
12034  # or fails outright, so override atomically:
12035  install_override_mode=555
12036  ;;
12037
12038interix[3-9]*)
12039  version_type=linux # correct to gnu/linux during the next big refactor
12040  need_lib_prefix=no
12041  need_version=no
12042  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12043  soname_spec='$libname$release$shared_ext$major'
12044  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12045  shlibpath_var=LD_LIBRARY_PATH
12046  shlibpath_overrides_runpath=no
12047  hardcode_into_libs=yes
12048  ;;
12049
12050irix5* | irix6* | nonstopux*)
12051  case $host_os in
12052    nonstopux*) version_type=nonstopux ;;
12053    *)
12054	if test yes = "$lt_cv_prog_gnu_ld"; then
12055		version_type=linux # correct to gnu/linux during the next big refactor
12056	else
12057		version_type=irix
12058	fi ;;
12059  esac
12060  need_lib_prefix=no
12061  need_version=no
12062  soname_spec='$libname$release$shared_ext$major'
12063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12064  case $host_os in
12065  irix5* | nonstopux*)
12066    libsuff= shlibsuff=
12067    ;;
12068  *)
12069    case $LD in # libtool.m4 will add one of these switches to LD
12070    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12071      libsuff= shlibsuff= libmagic=32-bit;;
12072    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12073      libsuff=32 shlibsuff=N32 libmagic=N32;;
12074    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12075      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12076    *) libsuff= shlibsuff= libmagic=never-match;;
12077    esac
12078    ;;
12079  esac
12080  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12081  shlibpath_overrides_runpath=no
12082  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12083  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12084  hardcode_into_libs=yes
12085  ;;
12086
12087# No shared lib support for Linux oldld, aout, or coff.
12088linux*oldld* | linux*aout* | linux*coff*)
12089  dynamic_linker=no
12090  ;;
12091
12092linux*android*)
12093  version_type=none # Android doesn't support versioned libraries.
12094  need_lib_prefix=no
12095  need_version=no
12096  library_names_spec='$libname$release$shared_ext'
12097  soname_spec='$libname$release$shared_ext'
12098  finish_cmds=
12099  shlibpath_var=LD_LIBRARY_PATH
12100  shlibpath_overrides_runpath=yes
12101
12102  # This implies no fast_install, which is unacceptable.
12103  # Some rework will be needed to allow for fast_install
12104  # before this can be enabled.
12105  hardcode_into_libs=yes
12106
12107  dynamic_linker='Android linker'
12108  # Don't embed -rpath directories since the linker doesn't support them.
12109  hardcode_libdir_flag_spec='-L$libdir'
12110  ;;
12111
12112# This must be glibc/ELF.
12113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12114  version_type=linux # correct to gnu/linux during the next big refactor
12115  need_lib_prefix=no
12116  need_version=no
12117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118  soname_spec='$libname$release$shared_ext$major'
12119  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12120  shlibpath_var=LD_LIBRARY_PATH
12121  shlibpath_overrides_runpath=no
12122
12123  # Some binutils ld are patched to set DT_RUNPATH
12124  if test ${lt_cv_shlibpath_overrides_runpath+y}
12125then :
12126  printf %s "(cached) " >&6
12127else $as_nop
12128  lt_cv_shlibpath_overrides_runpath=no
12129    save_LDFLAGS=$LDFLAGS
12130    save_libdir=$libdir
12131    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12132	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h.  */
12135
12136int
12137main (void)
12138{
12139
12140  ;
12141  return 0;
12142}
12143_ACEOF
12144if ac_fn_c_try_link "$LINENO"
12145then :
12146  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12147then :
12148  lt_cv_shlibpath_overrides_runpath=yes
12149fi
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152    conftest$ac_exeext conftest.$ac_ext
12153    LDFLAGS=$save_LDFLAGS
12154    libdir=$save_libdir
12155
12156fi
12157
12158  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12159
12160  # This implies no fast_install, which is unacceptable.
12161  # Some rework will be needed to allow for fast_install
12162  # before this can be enabled.
12163  hardcode_into_libs=yes
12164
12165  # Ideally, we could use ldconfig to report *all* directores which are
12166  # searched for libraries, however this is still not possible.  Aside from not
12167  # being certain /sbin/ldconfig is available, command
12168  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12169  # even though it is searched at run-time.  Try to do the best guess by
12170  # appending ld.so.conf contents (and includes) to the search path.
12171  if test -f /etc/ld.so.conf; then
12172    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' ' '`
12173    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12174  fi
12175
12176  # We used to test for /lib/ld.so.1 and disable shared libraries on
12177  # powerpc, because MkLinux only supported shared libraries with the
12178  # GNU dynamic linker.  Since this was broken with cross compilers,
12179  # most powerpc-linux boxes support dynamic linking these days and
12180  # people can always --disable-shared, the test was removed, and we
12181  # assume the GNU/Linux dynamic linker is in use.
12182  dynamic_linker='GNU/Linux ld.so'
12183  ;;
12184
12185netbsd*)
12186  version_type=sunos
12187  need_lib_prefix=no
12188  need_version=no
12189  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12191    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12192    dynamic_linker='NetBSD (a.out) ld.so'
12193  else
12194    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195    soname_spec='$libname$release$shared_ext$major'
12196    dynamic_linker='NetBSD ld.elf_so'
12197  fi
12198  shlibpath_var=LD_LIBRARY_PATH
12199  shlibpath_overrides_runpath=yes
12200  hardcode_into_libs=yes
12201  ;;
12202
12203newsos6)
12204  version_type=linux # correct to gnu/linux during the next big refactor
12205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206  shlibpath_var=LD_LIBRARY_PATH
12207  shlibpath_overrides_runpath=yes
12208  ;;
12209
12210*nto* | *qnx*)
12211  version_type=qnx
12212  need_lib_prefix=no
12213  need_version=no
12214  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12215  soname_spec='$libname$release$shared_ext$major'
12216  shlibpath_var=LD_LIBRARY_PATH
12217  shlibpath_overrides_runpath=no
12218  hardcode_into_libs=yes
12219  dynamic_linker='ldqnx.so'
12220  ;;
12221
12222openbsd* | bitrig*)
12223  version_type=sunos
12224  sys_lib_dlsearch_path_spec=/usr/lib
12225  need_lib_prefix=no
12226  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12227    need_version=no
12228  else
12229    need_version=yes
12230  fi
12231  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233  shlibpath_var=LD_LIBRARY_PATH
12234  shlibpath_overrides_runpath=yes
12235  ;;
12236
12237os2*)
12238  libname_spec='$name'
12239  version_type=windows
12240  shrext_cmds=.dll
12241  need_version=no
12242  need_lib_prefix=no
12243  # OS/2 can only load a DLL with a base name of 8 characters or less.
12244  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12245    v=$($ECHO $release$versuffix | tr -d .-);
12246    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12247    $ECHO $n$v`$shared_ext'
12248  library_names_spec='${libname}_dll.$libext'
12249  dynamic_linker='OS/2 ld.exe'
12250  shlibpath_var=BEGINLIBPATH
12251  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12252  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12253  postinstall_cmds='base_file=`basename \$file`~
12254    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12255    dldir=$destdir/`dirname \$dlpath`~
12256    test -d \$dldir || mkdir -p \$dldir~
12257    $install_prog $dir/$dlname \$dldir/$dlname~
12258    chmod a+x \$dldir/$dlname~
12259    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12260      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12261    fi'
12262  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12263    dlpath=$dir/\$dldll~
12264    $RM \$dlpath'
12265  ;;
12266
12267osf3* | osf4* | osf5*)
12268  version_type=osf
12269  need_lib_prefix=no
12270  need_version=no
12271  soname_spec='$libname$release$shared_ext$major'
12272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12273  shlibpath_var=LD_LIBRARY_PATH
12274  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12275  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12276  ;;
12277
12278rdos*)
12279  dynamic_linker=no
12280  ;;
12281
12282solaris*)
12283  version_type=linux # correct to gnu/linux during the next big refactor
12284  need_lib_prefix=no
12285  need_version=no
12286  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287  soname_spec='$libname$release$shared_ext$major'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  shlibpath_overrides_runpath=yes
12290  hardcode_into_libs=yes
12291  # ldd complains unless libraries are executable
12292  postinstall_cmds='chmod +x $lib'
12293  ;;
12294
12295sunos4*)
12296  version_type=sunos
12297  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12298  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12299  shlibpath_var=LD_LIBRARY_PATH
12300  shlibpath_overrides_runpath=yes
12301  if test yes = "$with_gnu_ld"; then
12302    need_lib_prefix=no
12303  fi
12304  need_version=yes
12305  ;;
12306
12307sysv4 | sysv4.3*)
12308  version_type=linux # correct to gnu/linux during the next big refactor
12309  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310  soname_spec='$libname$release$shared_ext$major'
12311  shlibpath_var=LD_LIBRARY_PATH
12312  case $host_vendor in
12313    sni)
12314      shlibpath_overrides_runpath=no
12315      need_lib_prefix=no
12316      runpath_var=LD_RUN_PATH
12317      ;;
12318    siemens)
12319      need_lib_prefix=no
12320      ;;
12321    motorola)
12322      need_lib_prefix=no
12323      need_version=no
12324      shlibpath_overrides_runpath=no
12325      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12326      ;;
12327  esac
12328  ;;
12329
12330sysv4*MP*)
12331  if test -d /usr/nec; then
12332    version_type=linux # correct to gnu/linux during the next big refactor
12333    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12334    soname_spec='$libname$shared_ext.$major'
12335    shlibpath_var=LD_LIBRARY_PATH
12336  fi
12337  ;;
12338
12339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12340  version_type=sco
12341  need_lib_prefix=no
12342  need_version=no
12343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12344  soname_spec='$libname$release$shared_ext$major'
12345  shlibpath_var=LD_LIBRARY_PATH
12346  shlibpath_overrides_runpath=yes
12347  hardcode_into_libs=yes
12348  if test yes = "$with_gnu_ld"; then
12349    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12350  else
12351    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12352    case $host_os in
12353      sco3.2v5*)
12354        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12355	;;
12356    esac
12357  fi
12358  sys_lib_dlsearch_path_spec='/usr/lib'
12359  ;;
12360
12361tpf*)
12362  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12363  version_type=linux # correct to gnu/linux during the next big refactor
12364  need_lib_prefix=no
12365  need_version=no
12366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12367  shlibpath_var=LD_LIBRARY_PATH
12368  shlibpath_overrides_runpath=no
12369  hardcode_into_libs=yes
12370  ;;
12371
12372uts4*)
12373  version_type=linux # correct to gnu/linux during the next big refactor
12374  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375  soname_spec='$libname$release$shared_ext$major'
12376  shlibpath_var=LD_LIBRARY_PATH
12377  ;;
12378
12379*)
12380  dynamic_linker=no
12381  ;;
12382esac
12383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12384printf "%s\n" "$dynamic_linker" >&6; }
12385test no = "$dynamic_linker" && can_build_shared=no
12386
12387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12388if test yes = "$GCC"; then
12389  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12390fi
12391
12392if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12393  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12394fi
12395
12396if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12397  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12398fi
12399
12400# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12401configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12402
12403# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12404func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12405
12406# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12407configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12408
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12506printf %s "checking how to hardcode library paths into programs... " >&6; }
12507hardcode_action=
12508if test -n "$hardcode_libdir_flag_spec" ||
12509   test -n "$runpath_var" ||
12510   test yes = "$hardcode_automatic"; then
12511
12512  # We can hardcode non-existent directories.
12513  if test no != "$hardcode_direct" &&
12514     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12515     # have to relink, otherwise we might link with an installed library
12516     # when we should be linking with a yet-to-be-installed one
12517     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12518     test no != "$hardcode_minus_L"; then
12519    # Linking always hardcodes the temporary library directory.
12520    hardcode_action=relink
12521  else
12522    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12523    hardcode_action=immediate
12524  fi
12525else
12526  # We cannot hardcode anything, or else we can only hardcode existing
12527  # directories.
12528  hardcode_action=unsupported
12529fi
12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12531printf "%s\n" "$hardcode_action" >&6; }
12532
12533if test relink = "$hardcode_action" ||
12534   test yes = "$inherit_rpath"; then
12535  # Fast installation is not supported
12536  enable_fast_install=no
12537elif test yes = "$shlibpath_overrides_runpath" ||
12538     test no = "$enable_shared"; then
12539  # Fast installation is not necessary
12540  enable_fast_install=needless
12541fi
12542
12543
12544
12545
12546
12547
12548  if test yes != "$enable_dlopen"; then
12549  enable_dlopen=unknown
12550  enable_dlopen_self=unknown
12551  enable_dlopen_self_static=unknown
12552else
12553  lt_cv_dlopen=no
12554  lt_cv_dlopen_libs=
12555
12556  case $host_os in
12557  beos*)
12558    lt_cv_dlopen=load_add_on
12559    lt_cv_dlopen_libs=
12560    lt_cv_dlopen_self=yes
12561    ;;
12562
12563  mingw* | pw32* | cegcc*)
12564    lt_cv_dlopen=LoadLibrary
12565    lt_cv_dlopen_libs=
12566    ;;
12567
12568  cygwin*)
12569    lt_cv_dlopen=dlopen
12570    lt_cv_dlopen_libs=
12571    ;;
12572
12573  darwin*)
12574    # if libdl is installed we need to link against it
12575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12576printf %s "checking for dlopen in -ldl... " >&6; }
12577if test ${ac_cv_lib_dl_dlopen+y}
12578then :
12579  printf %s "(cached) " >&6
12580else $as_nop
12581  ac_check_lib_save_LIBS=$LIBS
12582LIBS="-ldl  $LIBS"
12583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h.  */
12585
12586/* Override any GCC internal prototype to avoid an error.
12587   Use char because int might match the return type of a GCC
12588   builtin and then its argument prototype would still apply.  */
12589char dlopen ();
12590int
12591main (void)
12592{
12593return dlopen ();
12594  ;
12595  return 0;
12596}
12597_ACEOF
12598if ac_fn_c_try_link "$LINENO"
12599then :
12600  ac_cv_lib_dl_dlopen=yes
12601else $as_nop
12602  ac_cv_lib_dl_dlopen=no
12603fi
12604rm -f core conftest.err conftest.$ac_objext conftest.beam \
12605    conftest$ac_exeext conftest.$ac_ext
12606LIBS=$ac_check_lib_save_LIBS
12607fi
12608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12609printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12610if test "x$ac_cv_lib_dl_dlopen" = xyes
12611then :
12612  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12613else $as_nop
12614
12615    lt_cv_dlopen=dyld
12616    lt_cv_dlopen_libs=
12617    lt_cv_dlopen_self=yes
12618
12619fi
12620
12621    ;;
12622
12623  tpf*)
12624    # Don't try to run any link tests for TPF.  We know it's impossible
12625    # because TPF is a cross-compiler, and we know how we open DSOs.
12626    lt_cv_dlopen=dlopen
12627    lt_cv_dlopen_libs=
12628    lt_cv_dlopen_self=no
12629    ;;
12630
12631  *)
12632    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12633if test "x$ac_cv_func_shl_load" = xyes
12634then :
12635  lt_cv_dlopen=shl_load
12636else $as_nop
12637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12638printf %s "checking for shl_load in -ldld... " >&6; }
12639if test ${ac_cv_lib_dld_shl_load+y}
12640then :
12641  printf %s "(cached) " >&6
12642else $as_nop
12643  ac_check_lib_save_LIBS=$LIBS
12644LIBS="-ldld  $LIBS"
12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h.  */
12647
12648/* Override any GCC internal prototype to avoid an error.
12649   Use char because int might match the return type of a GCC
12650   builtin and then its argument prototype would still apply.  */
12651char shl_load ();
12652int
12653main (void)
12654{
12655return shl_load ();
12656  ;
12657  return 0;
12658}
12659_ACEOF
12660if ac_fn_c_try_link "$LINENO"
12661then :
12662  ac_cv_lib_dld_shl_load=yes
12663else $as_nop
12664  ac_cv_lib_dld_shl_load=no
12665fi
12666rm -f core conftest.err conftest.$ac_objext conftest.beam \
12667    conftest$ac_exeext conftest.$ac_ext
12668LIBS=$ac_check_lib_save_LIBS
12669fi
12670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12671printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12672if test "x$ac_cv_lib_dld_shl_load" = xyes
12673then :
12674  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12675else $as_nop
12676  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12677if test "x$ac_cv_func_dlopen" = xyes
12678then :
12679  lt_cv_dlopen=dlopen
12680else $as_nop
12681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12682printf %s "checking for dlopen in -ldl... " >&6; }
12683if test ${ac_cv_lib_dl_dlopen+y}
12684then :
12685  printf %s "(cached) " >&6
12686else $as_nop
12687  ac_check_lib_save_LIBS=$LIBS
12688LIBS="-ldl  $LIBS"
12689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690/* end confdefs.h.  */
12691
12692/* Override any GCC internal prototype to avoid an error.
12693   Use char because int might match the return type of a GCC
12694   builtin and then its argument prototype would still apply.  */
12695char dlopen ();
12696int
12697main (void)
12698{
12699return dlopen ();
12700  ;
12701  return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_link "$LINENO"
12705then :
12706  ac_cv_lib_dl_dlopen=yes
12707else $as_nop
12708  ac_cv_lib_dl_dlopen=no
12709fi
12710rm -f core conftest.err conftest.$ac_objext conftest.beam \
12711    conftest$ac_exeext conftest.$ac_ext
12712LIBS=$ac_check_lib_save_LIBS
12713fi
12714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12715printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12716if test "x$ac_cv_lib_dl_dlopen" = xyes
12717then :
12718  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12719else $as_nop
12720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12721printf %s "checking for dlopen in -lsvld... " >&6; }
12722if test ${ac_cv_lib_svld_dlopen+y}
12723then :
12724  printf %s "(cached) " >&6
12725else $as_nop
12726  ac_check_lib_save_LIBS=$LIBS
12727LIBS="-lsvld  $LIBS"
12728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729/* end confdefs.h.  */
12730
12731/* Override any GCC internal prototype to avoid an error.
12732   Use char because int might match the return type of a GCC
12733   builtin and then its argument prototype would still apply.  */
12734char dlopen ();
12735int
12736main (void)
12737{
12738return dlopen ();
12739  ;
12740  return 0;
12741}
12742_ACEOF
12743if ac_fn_c_try_link "$LINENO"
12744then :
12745  ac_cv_lib_svld_dlopen=yes
12746else $as_nop
12747  ac_cv_lib_svld_dlopen=no
12748fi
12749rm -f core conftest.err conftest.$ac_objext conftest.beam \
12750    conftest$ac_exeext conftest.$ac_ext
12751LIBS=$ac_check_lib_save_LIBS
12752fi
12753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12754printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12755if test "x$ac_cv_lib_svld_dlopen" = xyes
12756then :
12757  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12758else $as_nop
12759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12760printf %s "checking for dld_link in -ldld... " >&6; }
12761if test ${ac_cv_lib_dld_dld_link+y}
12762then :
12763  printf %s "(cached) " >&6
12764else $as_nop
12765  ac_check_lib_save_LIBS=$LIBS
12766LIBS="-ldld  $LIBS"
12767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768/* end confdefs.h.  */
12769
12770/* Override any GCC internal prototype to avoid an error.
12771   Use char because int might match the return type of a GCC
12772   builtin and then its argument prototype would still apply.  */
12773char dld_link ();
12774int
12775main (void)
12776{
12777return dld_link ();
12778  ;
12779  return 0;
12780}
12781_ACEOF
12782if ac_fn_c_try_link "$LINENO"
12783then :
12784  ac_cv_lib_dld_dld_link=yes
12785else $as_nop
12786  ac_cv_lib_dld_dld_link=no
12787fi
12788rm -f core conftest.err conftest.$ac_objext conftest.beam \
12789    conftest$ac_exeext conftest.$ac_ext
12790LIBS=$ac_check_lib_save_LIBS
12791fi
12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12793printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12794if test "x$ac_cv_lib_dld_dld_link" = xyes
12795then :
12796  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12797fi
12798
12799
12800fi
12801
12802
12803fi
12804
12805
12806fi
12807
12808
12809fi
12810
12811
12812fi
12813
12814    ;;
12815  esac
12816
12817  if test no = "$lt_cv_dlopen"; then
12818    enable_dlopen=no
12819  else
12820    enable_dlopen=yes
12821  fi
12822
12823  case $lt_cv_dlopen in
12824  dlopen)
12825    save_CPPFLAGS=$CPPFLAGS
12826    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12827
12828    save_LDFLAGS=$LDFLAGS
12829    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12830
12831    save_LIBS=$LIBS
12832    LIBS="$lt_cv_dlopen_libs $LIBS"
12833
12834    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12835printf %s "checking whether a program can dlopen itself... " >&6; }
12836if test ${lt_cv_dlopen_self+y}
12837then :
12838  printf %s "(cached) " >&6
12839else $as_nop
12840  	  if test yes = "$cross_compiling"; then :
12841  lt_cv_dlopen_self=cross
12842else
12843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844  lt_status=$lt_dlunknown
12845  cat > conftest.$ac_ext <<_LT_EOF
12846#line $LINENO "configure"
12847#include "confdefs.h"
12848
12849#if HAVE_DLFCN_H
12850#include <dlfcn.h>
12851#endif
12852
12853#include <stdio.h>
12854
12855#ifdef RTLD_GLOBAL
12856#  define LT_DLGLOBAL		RTLD_GLOBAL
12857#else
12858#  ifdef DL_GLOBAL
12859#    define LT_DLGLOBAL		DL_GLOBAL
12860#  else
12861#    define LT_DLGLOBAL		0
12862#  endif
12863#endif
12864
12865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866   find out it does not work in some platform. */
12867#ifndef LT_DLLAZY_OR_NOW
12868#  ifdef RTLD_LAZY
12869#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12870#  else
12871#    ifdef DL_LAZY
12872#      define LT_DLLAZY_OR_NOW		DL_LAZY
12873#    else
12874#      ifdef RTLD_NOW
12875#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12876#      else
12877#        ifdef DL_NOW
12878#          define LT_DLLAZY_OR_NOW	DL_NOW
12879#        else
12880#          define LT_DLLAZY_OR_NOW	0
12881#        endif
12882#      endif
12883#    endif
12884#  endif
12885#endif
12886
12887/* When -fvisibility=hidden is used, assume the code has been annotated
12888   correspondingly for the symbols needed.  */
12889#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12890int fnord () __attribute__((visibility("default")));
12891#endif
12892
12893int fnord () { return 42; }
12894int main ()
12895{
12896  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12897  int status = $lt_dlunknown;
12898
12899  if (self)
12900    {
12901      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12902      else
12903        {
12904	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12905          else puts (dlerror ());
12906	}
12907      /* dlclose (self); */
12908    }
12909  else
12910    puts (dlerror ());
12911
12912  return status;
12913}
12914_LT_EOF
12915  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916  (eval $ac_link) 2>&5
12917  ac_status=$?
12918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12920    (./conftest; exit; ) >&5 2>/dev/null
12921    lt_status=$?
12922    case x$lt_status in
12923      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12924      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12925      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12926    esac
12927  else :
12928    # compilation failed
12929    lt_cv_dlopen_self=no
12930  fi
12931fi
12932rm -fr conftest*
12933
12934
12935fi
12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12937printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12938
12939    if test yes = "$lt_cv_dlopen_self"; then
12940      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12941      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12942printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12943if test ${lt_cv_dlopen_self_static+y}
12944then :
12945  printf %s "(cached) " >&6
12946else $as_nop
12947  	  if test yes = "$cross_compiling"; then :
12948  lt_cv_dlopen_self_static=cross
12949else
12950  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12951  lt_status=$lt_dlunknown
12952  cat > conftest.$ac_ext <<_LT_EOF
12953#line $LINENO "configure"
12954#include "confdefs.h"
12955
12956#if HAVE_DLFCN_H
12957#include <dlfcn.h>
12958#endif
12959
12960#include <stdio.h>
12961
12962#ifdef RTLD_GLOBAL
12963#  define LT_DLGLOBAL		RTLD_GLOBAL
12964#else
12965#  ifdef DL_GLOBAL
12966#    define LT_DLGLOBAL		DL_GLOBAL
12967#  else
12968#    define LT_DLGLOBAL		0
12969#  endif
12970#endif
12971
12972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12973   find out it does not work in some platform. */
12974#ifndef LT_DLLAZY_OR_NOW
12975#  ifdef RTLD_LAZY
12976#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12977#  else
12978#    ifdef DL_LAZY
12979#      define LT_DLLAZY_OR_NOW		DL_LAZY
12980#    else
12981#      ifdef RTLD_NOW
12982#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12983#      else
12984#        ifdef DL_NOW
12985#          define LT_DLLAZY_OR_NOW	DL_NOW
12986#        else
12987#          define LT_DLLAZY_OR_NOW	0
12988#        endif
12989#      endif
12990#    endif
12991#  endif
12992#endif
12993
12994/* When -fvisibility=hidden is used, assume the code has been annotated
12995   correspondingly for the symbols needed.  */
12996#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12997int fnord () __attribute__((visibility("default")));
12998#endif
12999
13000int fnord () { return 42; }
13001int main ()
13002{
13003  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13004  int status = $lt_dlunknown;
13005
13006  if (self)
13007    {
13008      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13009      else
13010        {
13011	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13012          else puts (dlerror ());
13013	}
13014      /* dlclose (self); */
13015    }
13016  else
13017    puts (dlerror ());
13018
13019  return status;
13020}
13021_LT_EOF
13022  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13023  (eval $ac_link) 2>&5
13024  ac_status=$?
13025  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13027    (./conftest; exit; ) >&5 2>/dev/null
13028    lt_status=$?
13029    case x$lt_status in
13030      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13031      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13032      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13033    esac
13034  else :
13035    # compilation failed
13036    lt_cv_dlopen_self_static=no
13037  fi
13038fi
13039rm -fr conftest*
13040
13041
13042fi
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13044printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13045    fi
13046
13047    CPPFLAGS=$save_CPPFLAGS
13048    LDFLAGS=$save_LDFLAGS
13049    LIBS=$save_LIBS
13050    ;;
13051  esac
13052
13053  case $lt_cv_dlopen_self in
13054  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13055  *) enable_dlopen_self=unknown ;;
13056  esac
13057
13058  case $lt_cv_dlopen_self_static in
13059  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13060  *) enable_dlopen_self_static=unknown ;;
13061  esac
13062fi
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080striplib=
13081old_striplib=
13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13083printf %s "checking whether stripping libraries is possible... " >&6; }
13084if test -z "$STRIP"; then
13085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086printf "%s\n" "no" >&6; }
13087else
13088  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13089    old_striplib="$STRIP --strip-debug"
13090    striplib="$STRIP --strip-unneeded"
13091    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092printf "%s\n" "yes" >&6; }
13093  else
13094    case $host_os in
13095    darwin*)
13096      # FIXME - insert some real tests, host_os isn't really good enough
13097      striplib="$STRIP -x"
13098      old_striplib="$STRIP -S"
13099      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13100printf "%s\n" "yes" >&6; }
13101      ;;
13102    freebsd*)
13103      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13104        old_striplib="$STRIP --strip-debug"
13105        striplib="$STRIP --strip-unneeded"
13106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107printf "%s\n" "yes" >&6; }
13108      else
13109        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110printf "%s\n" "no" >&6; }
13111      fi
13112      ;;
13113    *)
13114      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115printf "%s\n" "no" >&6; }
13116      ;;
13117    esac
13118  fi
13119fi
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132  # Report what library types will actually be built
13133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13134printf %s "checking if libtool supports shared libraries... " >&6; }
13135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13136printf "%s\n" "$can_build_shared" >&6; }
13137
13138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13139printf %s "checking whether to build shared libraries... " >&6; }
13140  test no = "$can_build_shared" && enable_shared=no
13141
13142  # On AIX, shared libraries and static libraries use the same namespace, and
13143  # are all built from PIC.
13144  case $host_os in
13145  aix3*)
13146    test yes = "$enable_shared" && enable_static=no
13147    if test -n "$RANLIB"; then
13148      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13149      postinstall_cmds='$RANLIB $lib'
13150    fi
13151    ;;
13152
13153  aix[4-9]*)
13154    if test ia64 != "$host_cpu"; then
13155      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13156      yes,aix,yes) ;;			# shared object as lib.so file only
13157      yes,svr4,*) ;;			# shared object as lib.so archive member only
13158      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13159      esac
13160    fi
13161    ;;
13162  esac
13163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13164printf "%s\n" "$enable_shared" >&6; }
13165
13166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13167printf %s "checking whether to build static libraries... " >&6; }
13168  # Make sure either enable_shared or enable_static is yes.
13169  test yes = "$enable_shared" || enable_static=yes
13170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13171printf "%s\n" "$enable_static" >&6; }
13172
13173
13174
13175
13176fi
13177ac_ext=c
13178ac_cpp='$CPP $CPPFLAGS'
13179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183CC=$lt_save_CC
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199        ac_config_commands="$ac_config_commands libtool"
13200
13201
13202
13203
13204# Only expand once:
13205
13206
13207
13208# Check whether --enable-largefile was given.
13209if test ${enable_largefile+y}
13210then :
13211  enableval=$enable_largefile;
13212fi
13213
13214if test "$enable_largefile" != no; then
13215
13216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13217printf %s "checking for special C compiler options needed for large files... " >&6; }
13218if test ${ac_cv_sys_largefile_CC+y}
13219then :
13220  printf %s "(cached) " >&6
13221else $as_nop
13222  ac_cv_sys_largefile_CC=no
13223     if test "$GCC" != yes; then
13224       ac_save_CC=$CC
13225       while :; do
13226	 # IRIX 6.2 and later do not support large files by default,
13227	 # so use the C compiler's -n32 option if that helps.
13228	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230#include <sys/types.h>
13231 /* Check that off_t can represent 2**63 - 1 correctly.
13232    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13233    since some C++ compilers masquerading as C compilers
13234    incorrectly reject 9223372036854775807.  */
13235#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13236  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13237		       && LARGE_OFF_T % 2147483647 == 1)
13238		      ? 1 : -1];
13239int
13240main (void)
13241{
13242
13243  ;
13244  return 0;
13245}
13246_ACEOF
13247	 if ac_fn_c_try_compile "$LINENO"
13248then :
13249  break
13250fi
13251rm -f core conftest.err conftest.$ac_objext conftest.beam
13252	 CC="$CC -n32"
13253	 if ac_fn_c_try_compile "$LINENO"
13254then :
13255  ac_cv_sys_largefile_CC=' -n32'; break
13256fi
13257rm -f core conftest.err conftest.$ac_objext conftest.beam
13258	 break
13259       done
13260       CC=$ac_save_CC
13261       rm -f conftest.$ac_ext
13262    fi
13263fi
13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13265printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13266  if test "$ac_cv_sys_largefile_CC" != no; then
13267    CC=$CC$ac_cv_sys_largefile_CC
13268  fi
13269
13270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13271printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13272if test ${ac_cv_sys_file_offset_bits+y}
13273then :
13274  printf %s "(cached) " >&6
13275else $as_nop
13276  while :; do
13277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279#include <sys/types.h>
13280 /* Check that off_t can represent 2**63 - 1 correctly.
13281    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13282    since some C++ compilers masquerading as C compilers
13283    incorrectly reject 9223372036854775807.  */
13284#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13285  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13286		       && LARGE_OFF_T % 2147483647 == 1)
13287		      ? 1 : -1];
13288int
13289main (void)
13290{
13291
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_compile "$LINENO"
13297then :
13298  ac_cv_sys_file_offset_bits=no; break
13299fi
13300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h.  */
13303#define _FILE_OFFSET_BITS 64
13304#include <sys/types.h>
13305 /* Check that off_t can represent 2**63 - 1 correctly.
13306    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13307    since some C++ compilers masquerading as C compilers
13308    incorrectly reject 9223372036854775807.  */
13309#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13310  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13311		       && LARGE_OFF_T % 2147483647 == 1)
13312		      ? 1 : -1];
13313int
13314main (void)
13315{
13316
13317  ;
13318  return 0;
13319}
13320_ACEOF
13321if ac_fn_c_try_compile "$LINENO"
13322then :
13323  ac_cv_sys_file_offset_bits=64; break
13324fi
13325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13326  ac_cv_sys_file_offset_bits=unknown
13327  break
13328done
13329fi
13330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13331printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13332case $ac_cv_sys_file_offset_bits in #(
13333  no | unknown) ;;
13334  *)
13335printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13336;;
13337esac
13338rm -rf conftest*
13339  if test $ac_cv_sys_file_offset_bits = unknown; then
13340    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13341printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13342if test ${ac_cv_sys_large_files+y}
13343then :
13344  printf %s "(cached) " >&6
13345else $as_nop
13346  while :; do
13347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349#include <sys/types.h>
13350 /* Check that off_t can represent 2**63 - 1 correctly.
13351    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13352    since some C++ compilers masquerading as C compilers
13353    incorrectly reject 9223372036854775807.  */
13354#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13355  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13356		       && LARGE_OFF_T % 2147483647 == 1)
13357		      ? 1 : -1];
13358int
13359main (void)
13360{
13361
13362  ;
13363  return 0;
13364}
13365_ACEOF
13366if ac_fn_c_try_compile "$LINENO"
13367then :
13368  ac_cv_sys_large_files=no; break
13369fi
13370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373#define _LARGE_FILES 1
13374#include <sys/types.h>
13375 /* Check that off_t can represent 2**63 - 1 correctly.
13376    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13377    since some C++ compilers masquerading as C compilers
13378    incorrectly reject 9223372036854775807.  */
13379#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13380  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13381		       && LARGE_OFF_T % 2147483647 == 1)
13382		      ? 1 : -1];
13383int
13384main (void)
13385{
13386
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_compile "$LINENO"
13392then :
13393  ac_cv_sys_large_files=1; break
13394fi
13395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13396  ac_cv_sys_large_files=unknown
13397  break
13398done
13399fi
13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13401printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13402case $ac_cv_sys_large_files in #(
13403  no | unknown) ;;
13404  *)
13405printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13406;;
13407esac
13408rm -rf conftest*
13409  fi
13410fi
13411
13412
13413# Require xorg-macros minimum of 1.15 for fop minimum version
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13427printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13428if test ${ac_cv_c_undeclared_builtin_options+y}
13429then :
13430  printf %s "(cached) " >&6
13431else $as_nop
13432  ac_save_CFLAGS=$CFLAGS
13433   ac_cv_c_undeclared_builtin_options='cannot detect'
13434   for ac_arg in '' -fno-builtin; do
13435     CFLAGS="$ac_save_CFLAGS $ac_arg"
13436     # This test program should *not* compile successfully.
13437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439
13440int
13441main (void)
13442{
13443(void) strchr;
13444  ;
13445  return 0;
13446}
13447_ACEOF
13448if ac_fn_c_try_compile "$LINENO"
13449then :
13450
13451else $as_nop
13452  # This test program should compile successfully.
13453        # No library function is consistently available on
13454        # freestanding implementations, so test against a dummy
13455        # declaration.  Include always-available headers on the
13456        # off chance that they somehow elicit warnings.
13457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h.  */
13459#include <float.h>
13460#include <limits.h>
13461#include <stdarg.h>
13462#include <stddef.h>
13463extern void ac_decl (int, char *);
13464
13465int
13466main (void)
13467{
13468(void) ac_decl (0, (char *) 0);
13469  (void) ac_decl;
13470
13471  ;
13472  return 0;
13473}
13474_ACEOF
13475if ac_fn_c_try_compile "$LINENO"
13476then :
13477  if test x"$ac_arg" = x
13478then :
13479  ac_cv_c_undeclared_builtin_options='none needed'
13480else $as_nop
13481  ac_cv_c_undeclared_builtin_options=$ac_arg
13482fi
13483          break
13484fi
13485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13486fi
13487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13488    done
13489    CFLAGS=$ac_save_CFLAGS
13490
13491fi
13492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13493printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13494  case $ac_cv_c_undeclared_builtin_options in #(
13495  'cannot detect') :
13496    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13497printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13498as_fn_error $? "cannot make $CC report undeclared builtins
13499See \`config.log' for more details" "$LINENO" 5; } ;; #(
13500  'none needed') :
13501    ac_c_undeclared_builtin_options='' ;; #(
13502  *) :
13503    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13504esac
13505
13506
13507
13508
13509
13510ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13511if test "x$ac_cv_have_decl___clang__" = xyes
13512then :
13513  CLANGCC="yes"
13514else $as_nop
13515  CLANGCC="no"
13516fi
13517ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13518if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13519then :
13520  INTELCC="yes"
13521else $as_nop
13522  INTELCC="no"
13523fi
13524ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13525if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13526then :
13527  SUNCC="yes"
13528else $as_nop
13529  SUNCC="no"
13530fi
13531
13532
13533
13534
13535
13536
13537
13538
13539if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13540	if test -n "$ac_tool_prefix"; then
13541  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13542set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544printf %s "checking for $ac_word... " >&6; }
13545if test ${ac_cv_path_PKG_CONFIG+y}
13546then :
13547  printf %s "(cached) " >&6
13548else $as_nop
13549  case $PKG_CONFIG in
13550  [\\/]* | ?:[\\/]*)
13551  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13552  ;;
13553  *)
13554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555for as_dir in $PATH
13556do
13557  IFS=$as_save_IFS
13558  case $as_dir in #(((
13559    '') as_dir=./ ;;
13560    */) ;;
13561    *) as_dir=$as_dir/ ;;
13562  esac
13563    for ac_exec_ext in '' $ac_executable_extensions; do
13564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13565    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13567    break 2
13568  fi
13569done
13570  done
13571IFS=$as_save_IFS
13572
13573  ;;
13574esac
13575fi
13576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13577if test -n "$PKG_CONFIG"; then
13578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13579printf "%s\n" "$PKG_CONFIG" >&6; }
13580else
13581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582printf "%s\n" "no" >&6; }
13583fi
13584
13585
13586fi
13587if test -z "$ac_cv_path_PKG_CONFIG"; then
13588  ac_pt_PKG_CONFIG=$PKG_CONFIG
13589  # Extract the first word of "pkg-config", so it can be a program name with args.
13590set dummy pkg-config; ac_word=$2
13591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592printf %s "checking for $ac_word... " >&6; }
13593if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13594then :
13595  printf %s "(cached) " >&6
13596else $as_nop
13597  case $ac_pt_PKG_CONFIG in
13598  [\\/]* | ?:[\\/]*)
13599  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13600  ;;
13601  *)
13602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605  IFS=$as_save_IFS
13606  case $as_dir in #(((
13607    '') as_dir=./ ;;
13608    */) ;;
13609    *) as_dir=$as_dir/ ;;
13610  esac
13611    for ac_exec_ext in '' $ac_executable_extensions; do
13612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13613    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13615    break 2
13616  fi
13617done
13618  done
13619IFS=$as_save_IFS
13620
13621  ;;
13622esac
13623fi
13624ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13625if test -n "$ac_pt_PKG_CONFIG"; then
13626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13627printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13628else
13629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630printf "%s\n" "no" >&6; }
13631fi
13632
13633  if test "x$ac_pt_PKG_CONFIG" = x; then
13634    PKG_CONFIG=""
13635  else
13636    case $cross_compiling:$ac_tool_warned in
13637yes:)
13638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13640ac_tool_warned=yes ;;
13641esac
13642    PKG_CONFIG=$ac_pt_PKG_CONFIG
13643  fi
13644else
13645  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13646fi
13647
13648fi
13649if test -n "$PKG_CONFIG"; then
13650	_pkg_min_version=0.9.0
13651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13652printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13653	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13655printf "%s\n" "yes" >&6; }
13656	else
13657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658printf "%s\n" "no" >&6; }
13659		PKG_CONFIG=""
13660	fi
13661fi
13662
13663
13664
13665
13666
13667# Check whether --enable-selective-werror was given.
13668if test ${enable_selective_werror+y}
13669then :
13670  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13671else $as_nop
13672  SELECTIVE_WERROR=yes
13673fi
13674
13675
13676
13677
13678
13679# -v is too short to test reliably with XORG_TESTSET_CFLAG
13680if test "x$SUNCC" = "xyes"; then
13681    BASE_CFLAGS="-v"
13682else
13683    BASE_CFLAGS=""
13684fi
13685
13686# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700xorg_testset_save_CFLAGS="$CFLAGS"
13701
13702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13705printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13706if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13707then :
13708  printf %s "(cached) " >&6
13709else $as_nop
13710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711/* end confdefs.h.  */
13712int i;
13713_ACEOF
13714if ac_fn_c_try_compile "$LINENO"
13715then :
13716  xorg_cv_cc_flag_unknown_warning_option=yes
13717else $as_nop
13718  xorg_cv_cc_flag_unknown_warning_option=no
13719fi
13720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13721fi
13722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13723printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13725	CFLAGS="$xorg_testset_save_CFLAGS"
13726fi
13727
13728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731	fi
13732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13734printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13735if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13736then :
13737  printf %s "(cached) " >&6
13738else $as_nop
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742_ACEOF
13743if ac_fn_c_try_compile "$LINENO"
13744then :
13745  xorg_cv_cc_flag_unused_command_line_argument=yes
13746else $as_nop
13747  xorg_cv_cc_flag_unused_command_line_argument=no
13748fi
13749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13750fi
13751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13754	CFLAGS="$xorg_testset_save_CFLAGS"
13755fi
13756
13757found="no"
13758
13759	if test $found = "no" ; then
13760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13762		fi
13763
13764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766		fi
13767
13768		CFLAGS="$CFLAGS -Wall"
13769
13770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13771printf %s "checking if $CC supports -Wall... " >&6; }
13772		cacheid=xorg_cv_cc_flag__Wall
13773		if eval test \${$cacheid+y}
13774then :
13775  printf %s "(cached) " >&6
13776else $as_nop
13777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779int i;
13780int
13781main (void)
13782{
13783
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_link "$LINENO"
13789then :
13790  eval $cacheid=yes
13791else $as_nop
13792  eval $cacheid=no
13793fi
13794rm -f core conftest.err conftest.$ac_objext conftest.beam \
13795    conftest$ac_exeext conftest.$ac_ext
13796fi
13797
13798
13799		CFLAGS="$xorg_testset_save_CFLAGS"
13800
13801		eval supported=\$$cacheid
13802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13803printf "%s\n" "$supported" >&6; }
13804		if test "$supported" = "yes" ; then
13805			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13806			found="yes"
13807		fi
13808	fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824xorg_testset_save_CFLAGS="$CFLAGS"
13825
13826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13830if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13831then :
13832  printf %s "(cached) " >&6
13833else $as_nop
13834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h.  */
13836int i;
13837_ACEOF
13838if ac_fn_c_try_compile "$LINENO"
13839then :
13840  xorg_cv_cc_flag_unknown_warning_option=yes
13841else $as_nop
13842  xorg_cv_cc_flag_unknown_warning_option=no
13843fi
13844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13845fi
13846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13849	CFLAGS="$xorg_testset_save_CFLAGS"
13850fi
13851
13852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855	fi
13856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13860then :
13861  printf %s "(cached) " >&6
13862else $as_nop
13863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865int i;
13866_ACEOF
13867if ac_fn_c_try_compile "$LINENO"
13868then :
13869  xorg_cv_cc_flag_unused_command_line_argument=yes
13870else $as_nop
13871  xorg_cv_cc_flag_unused_command_line_argument=no
13872fi
13873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13874fi
13875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13878	CFLAGS="$xorg_testset_save_CFLAGS"
13879fi
13880
13881found="no"
13882
13883	if test $found = "no" ; then
13884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886		fi
13887
13888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13890		fi
13891
13892		CFLAGS="$CFLAGS -Wpointer-arith"
13893
13894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13895printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13896		cacheid=xorg_cv_cc_flag__Wpointer_arith
13897		if eval test \${$cacheid+y}
13898then :
13899  printf %s "(cached) " >&6
13900else $as_nop
13901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902/* end confdefs.h.  */
13903int i;
13904int
13905main (void)
13906{
13907
13908  ;
13909  return 0;
13910}
13911_ACEOF
13912if ac_fn_c_try_link "$LINENO"
13913then :
13914  eval $cacheid=yes
13915else $as_nop
13916  eval $cacheid=no
13917fi
13918rm -f core conftest.err conftest.$ac_objext conftest.beam \
13919    conftest$ac_exeext conftest.$ac_ext
13920fi
13921
13922
13923		CFLAGS="$xorg_testset_save_CFLAGS"
13924
13925		eval supported=\$$cacheid
13926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13927printf "%s\n" "$supported" >&6; }
13928		if test "$supported" = "yes" ; then
13929			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13930			found="yes"
13931		fi
13932	fi
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948xorg_testset_save_CFLAGS="$CFLAGS"
13949
13950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13954if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13955then :
13956  printf %s "(cached) " >&6
13957else $as_nop
13958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960int i;
13961_ACEOF
13962if ac_fn_c_try_compile "$LINENO"
13963then :
13964  xorg_cv_cc_flag_unknown_warning_option=yes
13965else $as_nop
13966  xorg_cv_cc_flag_unknown_warning_option=no
13967fi
13968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13969fi
13970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13973	CFLAGS="$xorg_testset_save_CFLAGS"
13974fi
13975
13976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979	fi
13980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13984then :
13985  printf %s "(cached) " >&6
13986else $as_nop
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990_ACEOF
13991if ac_fn_c_try_compile "$LINENO"
13992then :
13993  xorg_cv_cc_flag_unused_command_line_argument=yes
13994else $as_nop
13995  xorg_cv_cc_flag_unused_command_line_argument=no
13996fi
13997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13998fi
13999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002	CFLAGS="$xorg_testset_save_CFLAGS"
14003fi
14004
14005found="no"
14006
14007	if test $found = "no" ; then
14008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010		fi
14011
14012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014		fi
14015
14016		CFLAGS="$CFLAGS -Wmissing-declarations"
14017
14018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14019printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14020		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14021		if eval test \${$cacheid+y}
14022then :
14023  printf %s "(cached) " >&6
14024else $as_nop
14025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h.  */
14027int i;
14028int
14029main (void)
14030{
14031
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_link "$LINENO"
14037then :
14038  eval $cacheid=yes
14039else $as_nop
14040  eval $cacheid=no
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.beam \
14043    conftest$ac_exeext conftest.$ac_ext
14044fi
14045
14046
14047		CFLAGS="$xorg_testset_save_CFLAGS"
14048
14049		eval supported=\$$cacheid
14050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14051printf "%s\n" "$supported" >&6; }
14052		if test "$supported" = "yes" ; then
14053			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14054			found="yes"
14055		fi
14056	fi
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072xorg_testset_save_CFLAGS="$CFLAGS"
14073
14074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14079then :
14080  printf %s "(cached) " >&6
14081else $as_nop
14082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083/* end confdefs.h.  */
14084int i;
14085_ACEOF
14086if ac_fn_c_try_compile "$LINENO"
14087then :
14088  xorg_cv_cc_flag_unknown_warning_option=yes
14089else $as_nop
14090  xorg_cv_cc_flag_unknown_warning_option=no
14091fi
14092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14093fi
14094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14097	CFLAGS="$xorg_testset_save_CFLAGS"
14098fi
14099
14100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14103	fi
14104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14107if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14108then :
14109  printf %s "(cached) " >&6
14110else $as_nop
14111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112/* end confdefs.h.  */
14113int i;
14114_ACEOF
14115if ac_fn_c_try_compile "$LINENO"
14116then :
14117  xorg_cv_cc_flag_unused_command_line_argument=yes
14118else $as_nop
14119  xorg_cv_cc_flag_unused_command_line_argument=no
14120fi
14121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14122fi
14123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14126	CFLAGS="$xorg_testset_save_CFLAGS"
14127fi
14128
14129found="no"
14130
14131	if test $found = "no" ; then
14132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134		fi
14135
14136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14138		fi
14139
14140		CFLAGS="$CFLAGS -Wformat=2"
14141
14142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14143printf %s "checking if $CC supports -Wformat=2... " >&6; }
14144		cacheid=xorg_cv_cc_flag__Wformat_2
14145		if eval test \${$cacheid+y}
14146then :
14147  printf %s "(cached) " >&6
14148else $as_nop
14149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150/* end confdefs.h.  */
14151int i;
14152int
14153main (void)
14154{
14155
14156  ;
14157  return 0;
14158}
14159_ACEOF
14160if ac_fn_c_try_link "$LINENO"
14161then :
14162  eval $cacheid=yes
14163else $as_nop
14164  eval $cacheid=no
14165fi
14166rm -f core conftest.err conftest.$ac_objext conftest.beam \
14167    conftest$ac_exeext conftest.$ac_ext
14168fi
14169
14170
14171		CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173		eval supported=\$$cacheid
14174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175printf "%s\n" "$supported" >&6; }
14176		if test "$supported" = "yes" ; then
14177			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14178			found="yes"
14179		fi
14180	fi
14181
14182	if test $found = "no" ; then
14183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185		fi
14186
14187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189		fi
14190
14191		CFLAGS="$CFLAGS -Wformat"
14192
14193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14194printf %s "checking if $CC supports -Wformat... " >&6; }
14195		cacheid=xorg_cv_cc_flag__Wformat
14196		if eval test \${$cacheid+y}
14197then :
14198  printf %s "(cached) " >&6
14199else $as_nop
14200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201/* end confdefs.h.  */
14202int i;
14203int
14204main (void)
14205{
14206
14207  ;
14208  return 0;
14209}
14210_ACEOF
14211if ac_fn_c_try_link "$LINENO"
14212then :
14213  eval $cacheid=yes
14214else $as_nop
14215  eval $cacheid=no
14216fi
14217rm -f core conftest.err conftest.$ac_objext conftest.beam \
14218    conftest$ac_exeext conftest.$ac_ext
14219fi
14220
14221
14222		CFLAGS="$xorg_testset_save_CFLAGS"
14223
14224		eval supported=\$$cacheid
14225		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14226printf "%s\n" "$supported" >&6; }
14227		if test "$supported" = "yes" ; then
14228			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14229			found="yes"
14230		fi
14231	fi
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249xorg_testset_save_CFLAGS="$CFLAGS"
14250
14251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14256then :
14257  printf %s "(cached) " >&6
14258else $as_nop
14259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h.  */
14261int i;
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"
14264then :
14265  xorg_cv_cc_flag_unknown_warning_option=yes
14266else $as_nop
14267  xorg_cv_cc_flag_unknown_warning_option=no
14268fi
14269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14270fi
14271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14274	CFLAGS="$xorg_testset_save_CFLAGS"
14275fi
14276
14277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14280	fi
14281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14285then :
14286  printf %s "(cached) " >&6
14287else $as_nop
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290int i;
14291_ACEOF
14292if ac_fn_c_try_compile "$LINENO"
14293then :
14294  xorg_cv_cc_flag_unused_command_line_argument=yes
14295else $as_nop
14296  xorg_cv_cc_flag_unused_command_line_argument=no
14297fi
14298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14299fi
14300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14303	CFLAGS="$xorg_testset_save_CFLAGS"
14304fi
14305
14306found="no"
14307
14308	if test $found = "no" ; then
14309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311		fi
14312
14313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315		fi
14316
14317		CFLAGS="$CFLAGS -Wstrict-prototypes"
14318
14319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14320printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14321		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14322		if eval test \${$cacheid+y}
14323then :
14324  printf %s "(cached) " >&6
14325else $as_nop
14326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h.  */
14328int i;
14329int
14330main (void)
14331{
14332
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337if ac_fn_c_try_link "$LINENO"
14338then :
14339  eval $cacheid=yes
14340else $as_nop
14341  eval $cacheid=no
14342fi
14343rm -f core conftest.err conftest.$ac_objext conftest.beam \
14344    conftest$ac_exeext conftest.$ac_ext
14345fi
14346
14347
14348		CFLAGS="$xorg_testset_save_CFLAGS"
14349
14350		eval supported=\$$cacheid
14351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14352printf "%s\n" "$supported" >&6; }
14353		if test "$supported" = "yes" ; then
14354			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14355			found="yes"
14356		fi
14357	fi
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373xorg_testset_save_CFLAGS="$CFLAGS"
14374
14375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14376	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14379if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14380then :
14381  printf %s "(cached) " >&6
14382else $as_nop
14383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384/* end confdefs.h.  */
14385int i;
14386_ACEOF
14387if ac_fn_c_try_compile "$LINENO"
14388then :
14389  xorg_cv_cc_flag_unknown_warning_option=yes
14390else $as_nop
14391  xorg_cv_cc_flag_unknown_warning_option=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14394fi
14395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14398	CFLAGS="$xorg_testset_save_CFLAGS"
14399fi
14400
14401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404	fi
14405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14408if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414int i;
14415_ACEOF
14416if ac_fn_c_try_compile "$LINENO"
14417then :
14418  xorg_cv_cc_flag_unused_command_line_argument=yes
14419else $as_nop
14420  xorg_cv_cc_flag_unused_command_line_argument=no
14421fi
14422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14423fi
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14427	CFLAGS="$xorg_testset_save_CFLAGS"
14428fi
14429
14430found="no"
14431
14432	if test $found = "no" ; then
14433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14435		fi
14436
14437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14439		fi
14440
14441		CFLAGS="$CFLAGS -Wmissing-prototypes"
14442
14443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14444printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14445		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14446		if eval test \${$cacheid+y}
14447then :
14448  printf %s "(cached) " >&6
14449else $as_nop
14450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452int i;
14453int
14454main (void)
14455{
14456
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461if ac_fn_c_try_link "$LINENO"
14462then :
14463  eval $cacheid=yes
14464else $as_nop
14465  eval $cacheid=no
14466fi
14467rm -f core conftest.err conftest.$ac_objext conftest.beam \
14468    conftest$ac_exeext conftest.$ac_ext
14469fi
14470
14471
14472		CFLAGS="$xorg_testset_save_CFLAGS"
14473
14474		eval supported=\$$cacheid
14475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476printf "%s\n" "$supported" >&6; }
14477		if test "$supported" = "yes" ; then
14478			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14479			found="yes"
14480		fi
14481	fi
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497xorg_testset_save_CFLAGS="$CFLAGS"
14498
14499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14504then :
14505  printf %s "(cached) " >&6
14506else $as_nop
14507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508/* end confdefs.h.  */
14509int i;
14510_ACEOF
14511if ac_fn_c_try_compile "$LINENO"
14512then :
14513  xorg_cv_cc_flag_unknown_warning_option=yes
14514else $as_nop
14515  xorg_cv_cc_flag_unknown_warning_option=no
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14518fi
14519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14522	CFLAGS="$xorg_testset_save_CFLAGS"
14523fi
14524
14525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528	fi
14529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14533then :
14534  printf %s "(cached) " >&6
14535else $as_nop
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539_ACEOF
14540if ac_fn_c_try_compile "$LINENO"
14541then :
14542  xorg_cv_cc_flag_unused_command_line_argument=yes
14543else $as_nop
14544  xorg_cv_cc_flag_unused_command_line_argument=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547fi
14548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14551	CFLAGS="$xorg_testset_save_CFLAGS"
14552fi
14553
14554found="no"
14555
14556	if test $found = "no" ; then
14557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559		fi
14560
14561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563		fi
14564
14565		CFLAGS="$CFLAGS -Wnested-externs"
14566
14567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14568printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14569		cacheid=xorg_cv_cc_flag__Wnested_externs
14570		if eval test \${$cacheid+y}
14571then :
14572  printf %s "(cached) " >&6
14573else $as_nop
14574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575/* end confdefs.h.  */
14576int i;
14577int
14578main (void)
14579{
14580
14581  ;
14582  return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_link "$LINENO"
14586then :
14587  eval $cacheid=yes
14588else $as_nop
14589  eval $cacheid=no
14590fi
14591rm -f core conftest.err conftest.$ac_objext conftest.beam \
14592    conftest$ac_exeext conftest.$ac_ext
14593fi
14594
14595
14596		CFLAGS="$xorg_testset_save_CFLAGS"
14597
14598		eval supported=\$$cacheid
14599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14600printf "%s\n" "$supported" >&6; }
14601		if test "$supported" = "yes" ; then
14602			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14603			found="yes"
14604		fi
14605	fi
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621xorg_testset_save_CFLAGS="$CFLAGS"
14622
14623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14627if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14628then :
14629  printf %s "(cached) " >&6
14630else $as_nop
14631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632/* end confdefs.h.  */
14633int i;
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"
14636then :
14637  xorg_cv_cc_flag_unknown_warning_option=yes
14638else $as_nop
14639  xorg_cv_cc_flag_unknown_warning_option=no
14640fi
14641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14642fi
14643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14646	CFLAGS="$xorg_testset_save_CFLAGS"
14647fi
14648
14649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14652	fi
14653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14656if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14657then :
14658  printf %s "(cached) " >&6
14659else $as_nop
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662int i;
14663_ACEOF
14664if ac_fn_c_try_compile "$LINENO"
14665then :
14666  xorg_cv_cc_flag_unused_command_line_argument=yes
14667else $as_nop
14668  xorg_cv_cc_flag_unused_command_line_argument=no
14669fi
14670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14671fi
14672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14675	CFLAGS="$xorg_testset_save_CFLAGS"
14676fi
14677
14678found="no"
14679
14680	if test $found = "no" ; then
14681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14683		fi
14684
14685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14687		fi
14688
14689		CFLAGS="$CFLAGS -Wbad-function-cast"
14690
14691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14692printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14693		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14694		if eval test \${$cacheid+y}
14695then :
14696  printf %s "(cached) " >&6
14697else $as_nop
14698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699/* end confdefs.h.  */
14700int i;
14701int
14702main (void)
14703{
14704
14705  ;
14706  return 0;
14707}
14708_ACEOF
14709if ac_fn_c_try_link "$LINENO"
14710then :
14711  eval $cacheid=yes
14712else $as_nop
14713  eval $cacheid=no
14714fi
14715rm -f core conftest.err conftest.$ac_objext conftest.beam \
14716    conftest$ac_exeext conftest.$ac_ext
14717fi
14718
14719
14720		CFLAGS="$xorg_testset_save_CFLAGS"
14721
14722		eval supported=\$$cacheid
14723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14724printf "%s\n" "$supported" >&6; }
14725		if test "$supported" = "yes" ; then
14726			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14727			found="yes"
14728		fi
14729	fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745xorg_testset_save_CFLAGS="$CFLAGS"
14746
14747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14751if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14752then :
14753  printf %s "(cached) " >&6
14754else $as_nop
14755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h.  */
14757int i;
14758_ACEOF
14759if ac_fn_c_try_compile "$LINENO"
14760then :
14761  xorg_cv_cc_flag_unknown_warning_option=yes
14762else $as_nop
14763  xorg_cv_cc_flag_unknown_warning_option=no
14764fi
14765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14766fi
14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14770	CFLAGS="$xorg_testset_save_CFLAGS"
14771fi
14772
14773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14776	fi
14777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14780if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14781then :
14782  printf %s "(cached) " >&6
14783else $as_nop
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786int i;
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"
14789then :
14790  xorg_cv_cc_flag_unused_command_line_argument=yes
14791else $as_nop
14792  xorg_cv_cc_flag_unused_command_line_argument=no
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795fi
14796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14799	CFLAGS="$xorg_testset_save_CFLAGS"
14800fi
14801
14802found="no"
14803
14804	if test $found = "no" ; then
14805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14807		fi
14808
14809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14811		fi
14812
14813		CFLAGS="$CFLAGS -Wold-style-definition"
14814
14815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14816printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14817		cacheid=xorg_cv_cc_flag__Wold_style_definition
14818		if eval test \${$cacheid+y}
14819then :
14820  printf %s "(cached) " >&6
14821else $as_nop
14822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h.  */
14824int i;
14825int
14826main (void)
14827{
14828
14829  ;
14830  return 0;
14831}
14832_ACEOF
14833if ac_fn_c_try_link "$LINENO"
14834then :
14835  eval $cacheid=yes
14836else $as_nop
14837  eval $cacheid=no
14838fi
14839rm -f core conftest.err conftest.$ac_objext conftest.beam \
14840    conftest$ac_exeext conftest.$ac_ext
14841fi
14842
14843
14844		CFLAGS="$xorg_testset_save_CFLAGS"
14845
14846		eval supported=\$$cacheid
14847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14848printf "%s\n" "$supported" >&6; }
14849		if test "$supported" = "yes" ; then
14850			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14851			found="yes"
14852		fi
14853	fi
14854
14855	if test $found = "no" ; then
14856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14858		fi
14859
14860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862		fi
14863
14864		CFLAGS="$CFLAGS -fd"
14865
14866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14867printf %s "checking if $CC supports -fd... " >&6; }
14868		cacheid=xorg_cv_cc_flag__fd
14869		if eval test \${$cacheid+y}
14870then :
14871  printf %s "(cached) " >&6
14872else $as_nop
14873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h.  */
14875int i;
14876int
14877main (void)
14878{
14879
14880  ;
14881  return 0;
14882}
14883_ACEOF
14884if ac_fn_c_try_link "$LINENO"
14885then :
14886  eval $cacheid=yes
14887else $as_nop
14888  eval $cacheid=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext conftest.beam \
14891    conftest$ac_exeext conftest.$ac_ext
14892fi
14893
14894
14895		CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897		eval supported=\$$cacheid
14898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899printf "%s\n" "$supported" >&6; }
14900		if test "$supported" = "yes" ; then
14901			BASE_CFLAGS="$BASE_CFLAGS -fd"
14902			found="yes"
14903		fi
14904	fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920xorg_testset_save_CFLAGS="$CFLAGS"
14921
14922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14927then :
14928  printf %s "(cached) " >&6
14929else $as_nop
14930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932int i;
14933_ACEOF
14934if ac_fn_c_try_compile "$LINENO"
14935then :
14936  xorg_cv_cc_flag_unknown_warning_option=yes
14937else $as_nop
14938  xorg_cv_cc_flag_unknown_warning_option=no
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14941fi
14942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14945	CFLAGS="$xorg_testset_save_CFLAGS"
14946fi
14947
14948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951	fi
14952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14956then :
14957  printf %s "(cached) " >&6
14958else $as_nop
14959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961int i;
14962_ACEOF
14963if ac_fn_c_try_compile "$LINENO"
14964then :
14965  xorg_cv_cc_flag_unused_command_line_argument=yes
14966else $as_nop
14967  xorg_cv_cc_flag_unused_command_line_argument=no
14968fi
14969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14970fi
14971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14974	CFLAGS="$xorg_testset_save_CFLAGS"
14975fi
14976
14977found="no"
14978
14979	if test $found = "no" ; then
14980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14982		fi
14983
14984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14986		fi
14987
14988		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14989
14990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14991printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14992		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14993		if eval test \${$cacheid+y}
14994then :
14995  printf %s "(cached) " >&6
14996else $as_nop
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999int i;
15000int
15001main (void)
15002{
15003
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"
15009then :
15010  eval $cacheid=yes
15011else $as_nop
15012  eval $cacheid=no
15013fi
15014rm -f core conftest.err conftest.$ac_objext conftest.beam \
15015    conftest$ac_exeext conftest.$ac_ext
15016fi
15017
15018
15019		CFLAGS="$xorg_testset_save_CFLAGS"
15020
15021		eval supported=\$$cacheid
15022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15023printf "%s\n" "$supported" >&6; }
15024		if test "$supported" = "yes" ; then
15025			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15026			found="yes"
15027		fi
15028	fi
15029
15030
15031
15032
15033
15034# This chunk adds additional warnings that could catch undesired effects.
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15055then :
15056  printf %s "(cached) " >&6
15057else $as_nop
15058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059/* end confdefs.h.  */
15060int i;
15061_ACEOF
15062if ac_fn_c_try_compile "$LINENO"
15063then :
15064  xorg_cv_cc_flag_unknown_warning_option=yes
15065else $as_nop
15066  xorg_cv_cc_flag_unknown_warning_option=no
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15069fi
15070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15073	CFLAGS="$xorg_testset_save_CFLAGS"
15074fi
15075
15076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15079	fi
15080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15081	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15083if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15084then :
15085  printf %s "(cached) " >&6
15086else $as_nop
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089int i;
15090_ACEOF
15091if ac_fn_c_try_compile "$LINENO"
15092then :
15093  xorg_cv_cc_flag_unused_command_line_argument=yes
15094else $as_nop
15095  xorg_cv_cc_flag_unused_command_line_argument=no
15096fi
15097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15098fi
15099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15102	CFLAGS="$xorg_testset_save_CFLAGS"
15103fi
15104
15105found="no"
15106
15107	if test $found = "no" ; then
15108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15110		fi
15111
15112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114		fi
15115
15116		CFLAGS="$CFLAGS -Wunused"
15117
15118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15119printf %s "checking if $CC supports -Wunused... " >&6; }
15120		cacheid=xorg_cv_cc_flag__Wunused
15121		if eval test \${$cacheid+y}
15122then :
15123  printf %s "(cached) " >&6
15124else $as_nop
15125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126/* end confdefs.h.  */
15127int i;
15128int
15129main (void)
15130{
15131
15132  ;
15133  return 0;
15134}
15135_ACEOF
15136if ac_fn_c_try_link "$LINENO"
15137then :
15138  eval $cacheid=yes
15139else $as_nop
15140  eval $cacheid=no
15141fi
15142rm -f core conftest.err conftest.$ac_objext conftest.beam \
15143    conftest$ac_exeext conftest.$ac_ext
15144fi
15145
15146
15147		CFLAGS="$xorg_testset_save_CFLAGS"
15148
15149		eval supported=\$$cacheid
15150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15151printf "%s\n" "$supported" >&6; }
15152		if test "$supported" = "yes" ; then
15153			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15154			found="yes"
15155		fi
15156	fi
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172xorg_testset_save_CFLAGS="$CFLAGS"
15173
15174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15179then :
15180  printf %s "(cached) " >&6
15181else $as_nop
15182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h.  */
15184int i;
15185_ACEOF
15186if ac_fn_c_try_compile "$LINENO"
15187then :
15188  xorg_cv_cc_flag_unknown_warning_option=yes
15189else $as_nop
15190  xorg_cv_cc_flag_unknown_warning_option=no
15191fi
15192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15193fi
15194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15197	CFLAGS="$xorg_testset_save_CFLAGS"
15198fi
15199
15200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15203	fi
15204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15208then :
15209  printf %s "(cached) " >&6
15210else $as_nop
15211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h.  */
15213int i;
15214_ACEOF
15215if ac_fn_c_try_compile "$LINENO"
15216then :
15217  xorg_cv_cc_flag_unused_command_line_argument=yes
15218else $as_nop
15219  xorg_cv_cc_flag_unused_command_line_argument=no
15220fi
15221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15222fi
15223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15226	CFLAGS="$xorg_testset_save_CFLAGS"
15227fi
15228
15229found="no"
15230
15231	if test $found = "no" ; then
15232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15234		fi
15235
15236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15238		fi
15239
15240		CFLAGS="$CFLAGS -Wuninitialized"
15241
15242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15243printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15244		cacheid=xorg_cv_cc_flag__Wuninitialized
15245		if eval test \${$cacheid+y}
15246then :
15247  printf %s "(cached) " >&6
15248else $as_nop
15249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250/* end confdefs.h.  */
15251int i;
15252int
15253main (void)
15254{
15255
15256  ;
15257  return 0;
15258}
15259_ACEOF
15260if ac_fn_c_try_link "$LINENO"
15261then :
15262  eval $cacheid=yes
15263else $as_nop
15264  eval $cacheid=no
15265fi
15266rm -f core conftest.err conftest.$ac_objext conftest.beam \
15267    conftest$ac_exeext conftest.$ac_ext
15268fi
15269
15270
15271		CFLAGS="$xorg_testset_save_CFLAGS"
15272
15273		eval supported=\$$cacheid
15274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15275printf "%s\n" "$supported" >&6; }
15276		if test "$supported" = "yes" ; then
15277			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15278			found="yes"
15279		fi
15280	fi
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296xorg_testset_save_CFLAGS="$CFLAGS"
15297
15298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15303then :
15304  printf %s "(cached) " >&6
15305else $as_nop
15306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307/* end confdefs.h.  */
15308int i;
15309_ACEOF
15310if ac_fn_c_try_compile "$LINENO"
15311then :
15312  xorg_cv_cc_flag_unknown_warning_option=yes
15313else $as_nop
15314  xorg_cv_cc_flag_unknown_warning_option=no
15315fi
15316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15317fi
15318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15321	CFLAGS="$xorg_testset_save_CFLAGS"
15322fi
15323
15324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15327	fi
15328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15332then :
15333  printf %s "(cached) " >&6
15334else $as_nop
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337int i;
15338_ACEOF
15339if ac_fn_c_try_compile "$LINENO"
15340then :
15341  xorg_cv_cc_flag_unused_command_line_argument=yes
15342else $as_nop
15343  xorg_cv_cc_flag_unused_command_line_argument=no
15344fi
15345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15346fi
15347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15350	CFLAGS="$xorg_testset_save_CFLAGS"
15351fi
15352
15353found="no"
15354
15355	if test $found = "no" ; then
15356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15358		fi
15359
15360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15362		fi
15363
15364		CFLAGS="$CFLAGS -Wshadow"
15365
15366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15367printf %s "checking if $CC supports -Wshadow... " >&6; }
15368		cacheid=xorg_cv_cc_flag__Wshadow
15369		if eval test \${$cacheid+y}
15370then :
15371  printf %s "(cached) " >&6
15372else $as_nop
15373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h.  */
15375int i;
15376int
15377main (void)
15378{
15379
15380  ;
15381  return 0;
15382}
15383_ACEOF
15384if ac_fn_c_try_link "$LINENO"
15385then :
15386  eval $cacheid=yes
15387else $as_nop
15388  eval $cacheid=no
15389fi
15390rm -f core conftest.err conftest.$ac_objext conftest.beam \
15391    conftest$ac_exeext conftest.$ac_ext
15392fi
15393
15394
15395		CFLAGS="$xorg_testset_save_CFLAGS"
15396
15397		eval supported=\$$cacheid
15398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399printf "%s\n" "$supported" >&6; }
15400		if test "$supported" = "yes" ; then
15401			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15402			found="yes"
15403		fi
15404	fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420xorg_testset_save_CFLAGS="$CFLAGS"
15421
15422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15427then :
15428  printf %s "(cached) " >&6
15429else $as_nop
15430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431/* end confdefs.h.  */
15432int i;
15433_ACEOF
15434if ac_fn_c_try_compile "$LINENO"
15435then :
15436  xorg_cv_cc_flag_unknown_warning_option=yes
15437else $as_nop
15438  xorg_cv_cc_flag_unknown_warning_option=no
15439fi
15440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15441fi
15442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15445	CFLAGS="$xorg_testset_save_CFLAGS"
15446fi
15447
15448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451	fi
15452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15456then :
15457  printf %s "(cached) " >&6
15458else $as_nop
15459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461int i;
15462_ACEOF
15463if ac_fn_c_try_compile "$LINENO"
15464then :
15465  xorg_cv_cc_flag_unused_command_line_argument=yes
15466else $as_nop
15467  xorg_cv_cc_flag_unused_command_line_argument=no
15468fi
15469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15470fi
15471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15474	CFLAGS="$xorg_testset_save_CFLAGS"
15475fi
15476
15477found="no"
15478
15479	if test $found = "no" ; then
15480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482		fi
15483
15484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15486		fi
15487
15488		CFLAGS="$CFLAGS -Wmissing-noreturn"
15489
15490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15491printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15492		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15493		if eval test \${$cacheid+y}
15494then :
15495  printf %s "(cached) " >&6
15496else $as_nop
15497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498/* end confdefs.h.  */
15499int i;
15500int
15501main (void)
15502{
15503
15504  ;
15505  return 0;
15506}
15507_ACEOF
15508if ac_fn_c_try_link "$LINENO"
15509then :
15510  eval $cacheid=yes
15511else $as_nop
15512  eval $cacheid=no
15513fi
15514rm -f core conftest.err conftest.$ac_objext conftest.beam \
15515    conftest$ac_exeext conftest.$ac_ext
15516fi
15517
15518
15519		CFLAGS="$xorg_testset_save_CFLAGS"
15520
15521		eval supported=\$$cacheid
15522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15523printf "%s\n" "$supported" >&6; }
15524		if test "$supported" = "yes" ; then
15525			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15526			found="yes"
15527		fi
15528	fi
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544xorg_testset_save_CFLAGS="$CFLAGS"
15545
15546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15551then :
15552  printf %s "(cached) " >&6
15553else $as_nop
15554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556int i;
15557_ACEOF
15558if ac_fn_c_try_compile "$LINENO"
15559then :
15560  xorg_cv_cc_flag_unknown_warning_option=yes
15561else $as_nop
15562  xorg_cv_cc_flag_unknown_warning_option=no
15563fi
15564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15565fi
15566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15569	CFLAGS="$xorg_testset_save_CFLAGS"
15570fi
15571
15572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15575	fi
15576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15580then :
15581  printf %s "(cached) " >&6
15582else $as_nop
15583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585int i;
15586_ACEOF
15587if ac_fn_c_try_compile "$LINENO"
15588then :
15589  xorg_cv_cc_flag_unused_command_line_argument=yes
15590else $as_nop
15591  xorg_cv_cc_flag_unused_command_line_argument=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15594fi
15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598	CFLAGS="$xorg_testset_save_CFLAGS"
15599fi
15600
15601found="no"
15602
15603	if test $found = "no" ; then
15604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606		fi
15607
15608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610		fi
15611
15612		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15613
15614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15615printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15616		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15617		if eval test \${$cacheid+y}
15618then :
15619  printf %s "(cached) " >&6
15620else $as_nop
15621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622/* end confdefs.h.  */
15623int i;
15624int
15625main (void)
15626{
15627
15628  ;
15629  return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"
15633then :
15634  eval $cacheid=yes
15635else $as_nop
15636  eval $cacheid=no
15637fi
15638rm -f core conftest.err conftest.$ac_objext conftest.beam \
15639    conftest$ac_exeext conftest.$ac_ext
15640fi
15641
15642
15643		CFLAGS="$xorg_testset_save_CFLAGS"
15644
15645		eval supported=\$$cacheid
15646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15647printf "%s\n" "$supported" >&6; }
15648		if test "$supported" = "yes" ; then
15649			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15650			found="yes"
15651		fi
15652	fi
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668xorg_testset_save_CFLAGS="$CFLAGS"
15669
15670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15675then :
15676  printf %s "(cached) " >&6
15677else $as_nop
15678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h.  */
15680int i;
15681_ACEOF
15682if ac_fn_c_try_compile "$LINENO"
15683then :
15684  xorg_cv_cc_flag_unknown_warning_option=yes
15685else $as_nop
15686  xorg_cv_cc_flag_unknown_warning_option=no
15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15689fi
15690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15693	CFLAGS="$xorg_testset_save_CFLAGS"
15694fi
15695
15696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15699	fi
15700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15704then :
15705  printf %s "(cached) " >&6
15706else $as_nop
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709int i;
15710_ACEOF
15711if ac_fn_c_try_compile "$LINENO"
15712then :
15713  xorg_cv_cc_flag_unused_command_line_argument=yes
15714else $as_nop
15715  xorg_cv_cc_flag_unused_command_line_argument=no
15716fi
15717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15718fi
15719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15722	CFLAGS="$xorg_testset_save_CFLAGS"
15723fi
15724
15725found="no"
15726
15727	if test $found = "no" ; then
15728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730		fi
15731
15732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15734		fi
15735
15736		CFLAGS="$CFLAGS -Wredundant-decls"
15737
15738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15739printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15740		cacheid=xorg_cv_cc_flag__Wredundant_decls
15741		if eval test \${$cacheid+y}
15742then :
15743  printf %s "(cached) " >&6
15744else $as_nop
15745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746/* end confdefs.h.  */
15747int i;
15748int
15749main (void)
15750{
15751
15752  ;
15753  return 0;
15754}
15755_ACEOF
15756if ac_fn_c_try_link "$LINENO"
15757then :
15758  eval $cacheid=yes
15759else $as_nop
15760  eval $cacheid=no
15761fi
15762rm -f core conftest.err conftest.$ac_objext conftest.beam \
15763    conftest$ac_exeext conftest.$ac_ext
15764fi
15765
15766
15767		CFLAGS="$xorg_testset_save_CFLAGS"
15768
15769		eval supported=\$$cacheid
15770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15771printf "%s\n" "$supported" >&6; }
15772		if test "$supported" = "yes" ; then
15773			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15774			found="yes"
15775		fi
15776	fi
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792xorg_testset_save_CFLAGS="$CFLAGS"
15793
15794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15798if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15799then :
15800  printf %s "(cached) " >&6
15801else $as_nop
15802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804int i;
15805_ACEOF
15806if ac_fn_c_try_compile "$LINENO"
15807then :
15808  xorg_cv_cc_flag_unknown_warning_option=yes
15809else $as_nop
15810  xorg_cv_cc_flag_unknown_warning_option=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15813fi
15814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15817	CFLAGS="$xorg_testset_save_CFLAGS"
15818fi
15819
15820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15823	fi
15824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15827if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15828then :
15829  printf %s "(cached) " >&6
15830else $as_nop
15831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* end confdefs.h.  */
15833int i;
15834_ACEOF
15835if ac_fn_c_try_compile "$LINENO"
15836then :
15837  xorg_cv_cc_flag_unused_command_line_argument=yes
15838else $as_nop
15839  xorg_cv_cc_flag_unused_command_line_argument=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15842fi
15843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849found="no"
15850
15851	if test $found = "no" ; then
15852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854		fi
15855
15856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15858		fi
15859
15860		CFLAGS="$CFLAGS -Wlogical-op"
15861
15862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15863printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15864		cacheid=xorg_cv_cc_flag__Wlogical_op
15865		if eval test \${$cacheid+y}
15866then :
15867  printf %s "(cached) " >&6
15868else $as_nop
15869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870/* end confdefs.h.  */
15871int i;
15872int
15873main (void)
15874{
15875
15876  ;
15877  return 0;
15878}
15879_ACEOF
15880if ac_fn_c_try_link "$LINENO"
15881then :
15882  eval $cacheid=yes
15883else $as_nop
15884  eval $cacheid=no
15885fi
15886rm -f core conftest.err conftest.$ac_objext conftest.beam \
15887    conftest$ac_exeext conftest.$ac_ext
15888fi
15889
15890
15891		CFLAGS="$xorg_testset_save_CFLAGS"
15892
15893		eval supported=\$$cacheid
15894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15895printf "%s\n" "$supported" >&6; }
15896		if test "$supported" = "yes" ; then
15897			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15898			found="yes"
15899		fi
15900	fi
15901
15902
15903
15904# These are currently disabled because they are noisy.  They will be enabled
15905# in the future once the codebase is sufficiently modernized to silence
15906# them.  For now, I don't want them to drown out the other warnings.
15907# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15909# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15910
15911# Turn some warnings into errors, so we don't accidently get successful builds
15912# when there are problems that should be fixed.
15913
15914if test "x$SELECTIVE_WERROR" = "xyes" ; then
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928xorg_testset_save_CFLAGS="$CFLAGS"
15929
15930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15934if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15935then :
15936  printf %s "(cached) " >&6
15937else $as_nop
15938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939/* end confdefs.h.  */
15940int i;
15941_ACEOF
15942if ac_fn_c_try_compile "$LINENO"
15943then :
15944  xorg_cv_cc_flag_unknown_warning_option=yes
15945else $as_nop
15946  xorg_cv_cc_flag_unknown_warning_option=no
15947fi
15948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15949fi
15950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15953	CFLAGS="$xorg_testset_save_CFLAGS"
15954fi
15955
15956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15959	fi
15960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15963if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15964then :
15965  printf %s "(cached) " >&6
15966else $as_nop
15967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969int i;
15970_ACEOF
15971if ac_fn_c_try_compile "$LINENO"
15972then :
15973  xorg_cv_cc_flag_unused_command_line_argument=yes
15974else $as_nop
15975  xorg_cv_cc_flag_unused_command_line_argument=no
15976fi
15977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978fi
15979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15982	CFLAGS="$xorg_testset_save_CFLAGS"
15983fi
15984
15985found="no"
15986
15987	if test $found = "no" ; then
15988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990		fi
15991
15992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15994		fi
15995
15996		CFLAGS="$CFLAGS -Werror=implicit"
15997
15998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15999printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16000		cacheid=xorg_cv_cc_flag__Werror_implicit
16001		if eval test \${$cacheid+y}
16002then :
16003  printf %s "(cached) " >&6
16004else $as_nop
16005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006/* end confdefs.h.  */
16007int i;
16008int
16009main (void)
16010{
16011
16012  ;
16013  return 0;
16014}
16015_ACEOF
16016if ac_fn_c_try_link "$LINENO"
16017then :
16018  eval $cacheid=yes
16019else $as_nop
16020  eval $cacheid=no
16021fi
16022rm -f core conftest.err conftest.$ac_objext conftest.beam \
16023    conftest$ac_exeext conftest.$ac_ext
16024fi
16025
16026
16027		CFLAGS="$xorg_testset_save_CFLAGS"
16028
16029		eval supported=\$$cacheid
16030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16031printf "%s\n" "$supported" >&6; }
16032		if test "$supported" = "yes" ; then
16033			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16034			found="yes"
16035		fi
16036	fi
16037
16038	if test $found = "no" ; then
16039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16041		fi
16042
16043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16045		fi
16046
16047		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16048
16049		{ 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
16050printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16051		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16052		if eval test \${$cacheid+y}
16053then :
16054  printf %s "(cached) " >&6
16055else $as_nop
16056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h.  */
16058int i;
16059int
16060main (void)
16061{
16062
16063  ;
16064  return 0;
16065}
16066_ACEOF
16067if ac_fn_c_try_link "$LINENO"
16068then :
16069  eval $cacheid=yes
16070else $as_nop
16071  eval $cacheid=no
16072fi
16073rm -f core conftest.err conftest.$ac_objext conftest.beam \
16074    conftest$ac_exeext conftest.$ac_ext
16075fi
16076
16077
16078		CFLAGS="$xorg_testset_save_CFLAGS"
16079
16080		eval supported=\$$cacheid
16081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16082printf "%s\n" "$supported" >&6; }
16083		if test "$supported" = "yes" ; then
16084			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16085			found="yes"
16086		fi
16087	fi
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103xorg_testset_save_CFLAGS="$CFLAGS"
16104
16105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16110then :
16111  printf %s "(cached) " >&6
16112else $as_nop
16113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"
16118then :
16119  xorg_cv_cc_flag_unknown_warning_option=yes
16120else $as_nop
16121  xorg_cv_cc_flag_unknown_warning_option=no
16122fi
16123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16124fi
16125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16128	CFLAGS="$xorg_testset_save_CFLAGS"
16129fi
16130
16131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134	fi
16135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16138if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16139then :
16140  printf %s "(cached) " >&6
16141else $as_nop
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144int i;
16145_ACEOF
16146if ac_fn_c_try_compile "$LINENO"
16147then :
16148  xorg_cv_cc_flag_unused_command_line_argument=yes
16149else $as_nop
16150  xorg_cv_cc_flag_unused_command_line_argument=no
16151fi
16152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16153fi
16154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16157	CFLAGS="$xorg_testset_save_CFLAGS"
16158fi
16159
16160found="no"
16161
16162	if test $found = "no" ; then
16163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165		fi
16166
16167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169		fi
16170
16171		CFLAGS="$CFLAGS -Werror=nonnull"
16172
16173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16174printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16175		cacheid=xorg_cv_cc_flag__Werror_nonnull
16176		if eval test \${$cacheid+y}
16177then :
16178  printf %s "(cached) " >&6
16179else $as_nop
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183int
16184main (void)
16185{
16186
16187  ;
16188  return 0;
16189}
16190_ACEOF
16191if ac_fn_c_try_link "$LINENO"
16192then :
16193  eval $cacheid=yes
16194else $as_nop
16195  eval $cacheid=no
16196fi
16197rm -f core conftest.err conftest.$ac_objext conftest.beam \
16198    conftest$ac_exeext conftest.$ac_ext
16199fi
16200
16201
16202		CFLAGS="$xorg_testset_save_CFLAGS"
16203
16204		eval supported=\$$cacheid
16205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16206printf "%s\n" "$supported" >&6; }
16207		if test "$supported" = "yes" ; then
16208			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16209			found="yes"
16210		fi
16211	fi
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227xorg_testset_save_CFLAGS="$CFLAGS"
16228
16229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16234then :
16235  printf %s "(cached) " >&6
16236else $as_nop
16237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238/* end confdefs.h.  */
16239int i;
16240_ACEOF
16241if ac_fn_c_try_compile "$LINENO"
16242then :
16243  xorg_cv_cc_flag_unknown_warning_option=yes
16244else $as_nop
16245  xorg_cv_cc_flag_unknown_warning_option=no
16246fi
16247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16248fi
16249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16252	CFLAGS="$xorg_testset_save_CFLAGS"
16253fi
16254
16255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16258	fi
16259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16262if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16263then :
16264  printf %s "(cached) " >&6
16265else $as_nop
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269_ACEOF
16270if ac_fn_c_try_compile "$LINENO"
16271then :
16272  xorg_cv_cc_flag_unused_command_line_argument=yes
16273else $as_nop
16274  xorg_cv_cc_flag_unused_command_line_argument=no
16275fi
16276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16277fi
16278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16281	CFLAGS="$xorg_testset_save_CFLAGS"
16282fi
16283
16284found="no"
16285
16286	if test $found = "no" ; then
16287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289		fi
16290
16291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293		fi
16294
16295		CFLAGS="$CFLAGS -Werror=init-self"
16296
16297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16298printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16299		cacheid=xorg_cv_cc_flag__Werror_init_self
16300		if eval test \${$cacheid+y}
16301then :
16302  printf %s "(cached) " >&6
16303else $as_nop
16304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305/* end confdefs.h.  */
16306int i;
16307int
16308main (void)
16309{
16310
16311  ;
16312  return 0;
16313}
16314_ACEOF
16315if ac_fn_c_try_link "$LINENO"
16316then :
16317  eval $cacheid=yes
16318else $as_nop
16319  eval $cacheid=no
16320fi
16321rm -f core conftest.err conftest.$ac_objext conftest.beam \
16322    conftest$ac_exeext conftest.$ac_ext
16323fi
16324
16325
16326		CFLAGS="$xorg_testset_save_CFLAGS"
16327
16328		eval supported=\$$cacheid
16329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16330printf "%s\n" "$supported" >&6; }
16331		if test "$supported" = "yes" ; then
16332			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16333			found="yes"
16334		fi
16335	fi
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351xorg_testset_save_CFLAGS="$CFLAGS"
16352
16353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16357if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16358then :
16359  printf %s "(cached) " >&6
16360else $as_nop
16361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362/* end confdefs.h.  */
16363int i;
16364_ACEOF
16365if ac_fn_c_try_compile "$LINENO"
16366then :
16367  xorg_cv_cc_flag_unknown_warning_option=yes
16368else $as_nop
16369  xorg_cv_cc_flag_unknown_warning_option=no
16370fi
16371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16372fi
16373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16375	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16376	CFLAGS="$xorg_testset_save_CFLAGS"
16377fi
16378
16379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16380	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16381		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16382	fi
16383	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16386if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16387then :
16388  printf %s "(cached) " >&6
16389else $as_nop
16390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392int i;
16393_ACEOF
16394if ac_fn_c_try_compile "$LINENO"
16395then :
16396  xorg_cv_cc_flag_unused_command_line_argument=yes
16397else $as_nop
16398  xorg_cv_cc_flag_unused_command_line_argument=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16401fi
16402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16405	CFLAGS="$xorg_testset_save_CFLAGS"
16406fi
16407
16408found="no"
16409
16410	if test $found = "no" ; then
16411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413		fi
16414
16415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16417		fi
16418
16419		CFLAGS="$CFLAGS -Werror=main"
16420
16421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16422printf %s "checking if $CC supports -Werror=main... " >&6; }
16423		cacheid=xorg_cv_cc_flag__Werror_main
16424		if eval test \${$cacheid+y}
16425then :
16426  printf %s "(cached) " >&6
16427else $as_nop
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430int i;
16431int
16432main (void)
16433{
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"
16440then :
16441  eval $cacheid=yes
16442else $as_nop
16443  eval $cacheid=no
16444fi
16445rm -f core conftest.err conftest.$ac_objext conftest.beam \
16446    conftest$ac_exeext conftest.$ac_ext
16447fi
16448
16449
16450		CFLAGS="$xorg_testset_save_CFLAGS"
16451
16452		eval supported=\$$cacheid
16453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16454printf "%s\n" "$supported" >&6; }
16455		if test "$supported" = "yes" ; then
16456			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16457			found="yes"
16458		fi
16459	fi
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475xorg_testset_save_CFLAGS="$CFLAGS"
16476
16477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16481if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16482then :
16483  printf %s "(cached) " >&6
16484else $as_nop
16485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h.  */
16487int i;
16488_ACEOF
16489if ac_fn_c_try_compile "$LINENO"
16490then :
16491  xorg_cv_cc_flag_unknown_warning_option=yes
16492else $as_nop
16493  xorg_cv_cc_flag_unknown_warning_option=no
16494fi
16495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16496fi
16497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16500	CFLAGS="$xorg_testset_save_CFLAGS"
16501fi
16502
16503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506	fi
16507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16511then :
16512  printf %s "(cached) " >&6
16513else $as_nop
16514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516int i;
16517_ACEOF
16518if ac_fn_c_try_compile "$LINENO"
16519then :
16520  xorg_cv_cc_flag_unused_command_line_argument=yes
16521else $as_nop
16522  xorg_cv_cc_flag_unused_command_line_argument=no
16523fi
16524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16525fi
16526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16529	CFLAGS="$xorg_testset_save_CFLAGS"
16530fi
16531
16532found="no"
16533
16534	if test $found = "no" ; then
16535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16537		fi
16538
16539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16541		fi
16542
16543		CFLAGS="$CFLAGS -Werror=missing-braces"
16544
16545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16546printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16547		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16548		if eval test \${$cacheid+y}
16549then :
16550  printf %s "(cached) " >&6
16551else $as_nop
16552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h.  */
16554int i;
16555int
16556main (void)
16557{
16558
16559  ;
16560  return 0;
16561}
16562_ACEOF
16563if ac_fn_c_try_link "$LINENO"
16564then :
16565  eval $cacheid=yes
16566else $as_nop
16567  eval $cacheid=no
16568fi
16569rm -f core conftest.err conftest.$ac_objext conftest.beam \
16570    conftest$ac_exeext conftest.$ac_ext
16571fi
16572
16573
16574		CFLAGS="$xorg_testset_save_CFLAGS"
16575
16576		eval supported=\$$cacheid
16577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16578printf "%s\n" "$supported" >&6; }
16579		if test "$supported" = "yes" ; then
16580			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16581			found="yes"
16582		fi
16583	fi
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599xorg_testset_save_CFLAGS="$CFLAGS"
16600
16601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16605if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16606then :
16607  printf %s "(cached) " >&6
16608else $as_nop
16609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610/* end confdefs.h.  */
16611int i;
16612_ACEOF
16613if ac_fn_c_try_compile "$LINENO"
16614then :
16615  xorg_cv_cc_flag_unknown_warning_option=yes
16616else $as_nop
16617  xorg_cv_cc_flag_unknown_warning_option=no
16618fi
16619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16620fi
16621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624	CFLAGS="$xorg_testset_save_CFLAGS"
16625fi
16626
16627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630	fi
16631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16635then :
16636  printf %s "(cached) " >&6
16637else $as_nop
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641_ACEOF
16642if ac_fn_c_try_compile "$LINENO"
16643then :
16644  xorg_cv_cc_flag_unused_command_line_argument=yes
16645else $as_nop
16646  xorg_cv_cc_flag_unused_command_line_argument=no
16647fi
16648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16649fi
16650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16653	CFLAGS="$xorg_testset_save_CFLAGS"
16654fi
16655
16656found="no"
16657
16658	if test $found = "no" ; then
16659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661		fi
16662
16663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16665		fi
16666
16667		CFLAGS="$CFLAGS -Werror=sequence-point"
16668
16669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16670printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16671		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16672		if eval test \${$cacheid+y}
16673then :
16674  printf %s "(cached) " >&6
16675else $as_nop
16676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678int i;
16679int
16680main (void)
16681{
16682
16683  ;
16684  return 0;
16685}
16686_ACEOF
16687if ac_fn_c_try_link "$LINENO"
16688then :
16689  eval $cacheid=yes
16690else $as_nop
16691  eval $cacheid=no
16692fi
16693rm -f core conftest.err conftest.$ac_objext conftest.beam \
16694    conftest$ac_exeext conftest.$ac_ext
16695fi
16696
16697
16698		CFLAGS="$xorg_testset_save_CFLAGS"
16699
16700		eval supported=\$$cacheid
16701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16702printf "%s\n" "$supported" >&6; }
16703		if test "$supported" = "yes" ; then
16704			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16705			found="yes"
16706		fi
16707	fi
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723xorg_testset_save_CFLAGS="$CFLAGS"
16724
16725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16729if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16730then :
16731  printf %s "(cached) " >&6
16732else $as_nop
16733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734/* end confdefs.h.  */
16735int i;
16736_ACEOF
16737if ac_fn_c_try_compile "$LINENO"
16738then :
16739  xorg_cv_cc_flag_unknown_warning_option=yes
16740else $as_nop
16741  xorg_cv_cc_flag_unknown_warning_option=no
16742fi
16743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16744fi
16745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16748	CFLAGS="$xorg_testset_save_CFLAGS"
16749fi
16750
16751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754	fi
16755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16758if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16759then :
16760  printf %s "(cached) " >&6
16761else $as_nop
16762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h.  */
16764int i;
16765_ACEOF
16766if ac_fn_c_try_compile "$LINENO"
16767then :
16768  xorg_cv_cc_flag_unused_command_line_argument=yes
16769else $as_nop
16770  xorg_cv_cc_flag_unused_command_line_argument=no
16771fi
16772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16773fi
16774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16777	CFLAGS="$xorg_testset_save_CFLAGS"
16778fi
16779
16780found="no"
16781
16782	if test $found = "no" ; then
16783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16785		fi
16786
16787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16789		fi
16790
16791		CFLAGS="$CFLAGS -Werror=return-type"
16792
16793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16794printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16795		cacheid=xorg_cv_cc_flag__Werror_return_type
16796		if eval test \${$cacheid+y}
16797then :
16798  printf %s "(cached) " >&6
16799else $as_nop
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803int
16804main (void)
16805{
16806
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811if ac_fn_c_try_link "$LINENO"
16812then :
16813  eval $cacheid=yes
16814else $as_nop
16815  eval $cacheid=no
16816fi
16817rm -f core conftest.err conftest.$ac_objext conftest.beam \
16818    conftest$ac_exeext conftest.$ac_ext
16819fi
16820
16821
16822		CFLAGS="$xorg_testset_save_CFLAGS"
16823
16824		eval supported=\$$cacheid
16825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16826printf "%s\n" "$supported" >&6; }
16827		if test "$supported" = "yes" ; then
16828			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16829			found="yes"
16830		fi
16831	fi
16832
16833	if test $found = "no" ; then
16834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16836		fi
16837
16838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16840		fi
16841
16842		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16843
16844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16845printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16846		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16847		if eval test \${$cacheid+y}
16848then :
16849  printf %s "(cached) " >&6
16850else $as_nop
16851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h.  */
16853int i;
16854int
16855main (void)
16856{
16857
16858  ;
16859  return 0;
16860}
16861_ACEOF
16862if ac_fn_c_try_link "$LINENO"
16863then :
16864  eval $cacheid=yes
16865else $as_nop
16866  eval $cacheid=no
16867fi
16868rm -f core conftest.err conftest.$ac_objext conftest.beam \
16869    conftest$ac_exeext conftest.$ac_ext
16870fi
16871
16872
16873		CFLAGS="$xorg_testset_save_CFLAGS"
16874
16875		eval supported=\$$cacheid
16876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16877printf "%s\n" "$supported" >&6; }
16878		if test "$supported" = "yes" ; then
16879			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16880			found="yes"
16881		fi
16882	fi
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898xorg_testset_save_CFLAGS="$CFLAGS"
16899
16900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16905then :
16906  printf %s "(cached) " >&6
16907else $as_nop
16908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h.  */
16910int i;
16911_ACEOF
16912if ac_fn_c_try_compile "$LINENO"
16913then :
16914  xorg_cv_cc_flag_unknown_warning_option=yes
16915else $as_nop
16916  xorg_cv_cc_flag_unknown_warning_option=no
16917fi
16918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16919fi
16920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16923	CFLAGS="$xorg_testset_save_CFLAGS"
16924fi
16925
16926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929	fi
16930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16934then :
16935  printf %s "(cached) " >&6
16936else $as_nop
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939int i;
16940_ACEOF
16941if ac_fn_c_try_compile "$LINENO"
16942then :
16943  xorg_cv_cc_flag_unused_command_line_argument=yes
16944else $as_nop
16945  xorg_cv_cc_flag_unused_command_line_argument=no
16946fi
16947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16948fi
16949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16952	CFLAGS="$xorg_testset_save_CFLAGS"
16953fi
16954
16955found="no"
16956
16957	if test $found = "no" ; then
16958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960		fi
16961
16962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964		fi
16965
16966		CFLAGS="$CFLAGS -Werror=trigraphs"
16967
16968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16969printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16970		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16971		if eval test \${$cacheid+y}
16972then :
16973  printf %s "(cached) " >&6
16974else $as_nop
16975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976/* end confdefs.h.  */
16977int i;
16978int
16979main (void)
16980{
16981
16982  ;
16983  return 0;
16984}
16985_ACEOF
16986if ac_fn_c_try_link "$LINENO"
16987then :
16988  eval $cacheid=yes
16989else $as_nop
16990  eval $cacheid=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.beam \
16993    conftest$ac_exeext conftest.$ac_ext
16994fi
16995
16996
16997		CFLAGS="$xorg_testset_save_CFLAGS"
16998
16999		eval supported=\$$cacheid
17000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17001printf "%s\n" "$supported" >&6; }
17002		if test "$supported" = "yes" ; then
17003			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17004			found="yes"
17005		fi
17006	fi
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022xorg_testset_save_CFLAGS="$CFLAGS"
17023
17024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17029then :
17030  printf %s "(cached) " >&6
17031else $as_nop
17032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034int i;
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"
17037then :
17038  xorg_cv_cc_flag_unknown_warning_option=yes
17039else $as_nop
17040  xorg_cv_cc_flag_unknown_warning_option=no
17041fi
17042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17043fi
17044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17047	CFLAGS="$xorg_testset_save_CFLAGS"
17048fi
17049
17050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053	fi
17054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17058then :
17059  printf %s "(cached) " >&6
17060else $as_nop
17061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h.  */
17063int i;
17064_ACEOF
17065if ac_fn_c_try_compile "$LINENO"
17066then :
17067  xorg_cv_cc_flag_unused_command_line_argument=yes
17068else $as_nop
17069  xorg_cv_cc_flag_unused_command_line_argument=no
17070fi
17071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17072fi
17073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17076	CFLAGS="$xorg_testset_save_CFLAGS"
17077fi
17078
17079found="no"
17080
17081	if test $found = "no" ; then
17082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084		fi
17085
17086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17088		fi
17089
17090		CFLAGS="$CFLAGS -Werror=array-bounds"
17091
17092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17093printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17094		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17095		if eval test \${$cacheid+y}
17096then :
17097  printf %s "(cached) " >&6
17098else $as_nop
17099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100/* end confdefs.h.  */
17101int i;
17102int
17103main (void)
17104{
17105
17106  ;
17107  return 0;
17108}
17109_ACEOF
17110if ac_fn_c_try_link "$LINENO"
17111then :
17112  eval $cacheid=yes
17113else $as_nop
17114  eval $cacheid=no
17115fi
17116rm -f core conftest.err conftest.$ac_objext conftest.beam \
17117    conftest$ac_exeext conftest.$ac_ext
17118fi
17119
17120
17121		CFLAGS="$xorg_testset_save_CFLAGS"
17122
17123		eval supported=\$$cacheid
17124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17125printf "%s\n" "$supported" >&6; }
17126		if test "$supported" = "yes" ; then
17127			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17128			found="yes"
17129		fi
17130	fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146xorg_testset_save_CFLAGS="$CFLAGS"
17147
17148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17152if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17153then :
17154  printf %s "(cached) " >&6
17155else $as_nop
17156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157/* end confdefs.h.  */
17158int i;
17159_ACEOF
17160if ac_fn_c_try_compile "$LINENO"
17161then :
17162  xorg_cv_cc_flag_unknown_warning_option=yes
17163else $as_nop
17164  xorg_cv_cc_flag_unknown_warning_option=no
17165fi
17166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17167fi
17168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17171	CFLAGS="$xorg_testset_save_CFLAGS"
17172fi
17173
17174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177	fi
17178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17181if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17182then :
17183  printf %s "(cached) " >&6
17184else $as_nop
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188_ACEOF
17189if ac_fn_c_try_compile "$LINENO"
17190then :
17191  xorg_cv_cc_flag_unused_command_line_argument=yes
17192else $as_nop
17193  xorg_cv_cc_flag_unused_command_line_argument=no
17194fi
17195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17196fi
17197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17200	CFLAGS="$xorg_testset_save_CFLAGS"
17201fi
17202
17203found="no"
17204
17205	if test $found = "no" ; then
17206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17208		fi
17209
17210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212		fi
17213
17214		CFLAGS="$CFLAGS -Werror=write-strings"
17215
17216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17217printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17218		cacheid=xorg_cv_cc_flag__Werror_write_strings
17219		if eval test \${$cacheid+y}
17220then :
17221  printf %s "(cached) " >&6
17222else $as_nop
17223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224/* end confdefs.h.  */
17225int i;
17226int
17227main (void)
17228{
17229
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_link "$LINENO"
17235then :
17236  eval $cacheid=yes
17237else $as_nop
17238  eval $cacheid=no
17239fi
17240rm -f core conftest.err conftest.$ac_objext conftest.beam \
17241    conftest$ac_exeext conftest.$ac_ext
17242fi
17243
17244
17245		CFLAGS="$xorg_testset_save_CFLAGS"
17246
17247		eval supported=\$$cacheid
17248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17249printf "%s\n" "$supported" >&6; }
17250		if test "$supported" = "yes" ; then
17251			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17252			found="yes"
17253		fi
17254	fi
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270xorg_testset_save_CFLAGS="$CFLAGS"
17271
17272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17277then :
17278  printf %s "(cached) " >&6
17279else $as_nop
17280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281/* end confdefs.h.  */
17282int i;
17283_ACEOF
17284if ac_fn_c_try_compile "$LINENO"
17285then :
17286  xorg_cv_cc_flag_unknown_warning_option=yes
17287else $as_nop
17288  xorg_cv_cc_flag_unknown_warning_option=no
17289fi
17290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17291fi
17292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17295	CFLAGS="$xorg_testset_save_CFLAGS"
17296fi
17297
17298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301	fi
17302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17306then :
17307  printf %s "(cached) " >&6
17308else $as_nop
17309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311int i;
17312_ACEOF
17313if ac_fn_c_try_compile "$LINENO"
17314then :
17315  xorg_cv_cc_flag_unused_command_line_argument=yes
17316else $as_nop
17317  xorg_cv_cc_flag_unused_command_line_argument=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17320fi
17321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17324	CFLAGS="$xorg_testset_save_CFLAGS"
17325fi
17326
17327found="no"
17328
17329	if test $found = "no" ; then
17330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332		fi
17333
17334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17336		fi
17337
17338		CFLAGS="$CFLAGS -Werror=address"
17339
17340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17341printf %s "checking if $CC supports -Werror=address... " >&6; }
17342		cacheid=xorg_cv_cc_flag__Werror_address
17343		if eval test \${$cacheid+y}
17344then :
17345  printf %s "(cached) " >&6
17346else $as_nop
17347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348/* end confdefs.h.  */
17349int i;
17350int
17351main (void)
17352{
17353
17354  ;
17355  return 0;
17356}
17357_ACEOF
17358if ac_fn_c_try_link "$LINENO"
17359then :
17360  eval $cacheid=yes
17361else $as_nop
17362  eval $cacheid=no
17363fi
17364rm -f core conftest.err conftest.$ac_objext conftest.beam \
17365    conftest$ac_exeext conftest.$ac_ext
17366fi
17367
17368
17369		CFLAGS="$xorg_testset_save_CFLAGS"
17370
17371		eval supported=\$$cacheid
17372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17373printf "%s\n" "$supported" >&6; }
17374		if test "$supported" = "yes" ; then
17375			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17376			found="yes"
17377		fi
17378	fi
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394xorg_testset_save_CFLAGS="$CFLAGS"
17395
17396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17401then :
17402  printf %s "(cached) " >&6
17403else $as_nop
17404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405/* end confdefs.h.  */
17406int i;
17407_ACEOF
17408if ac_fn_c_try_compile "$LINENO"
17409then :
17410  xorg_cv_cc_flag_unknown_warning_option=yes
17411else $as_nop
17412  xorg_cv_cc_flag_unknown_warning_option=no
17413fi
17414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17415fi
17416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17419	CFLAGS="$xorg_testset_save_CFLAGS"
17420fi
17421
17422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17425	fi
17426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17430then :
17431  printf %s "(cached) " >&6
17432else $as_nop
17433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434/* end confdefs.h.  */
17435int i;
17436_ACEOF
17437if ac_fn_c_try_compile "$LINENO"
17438then :
17439  xorg_cv_cc_flag_unused_command_line_argument=yes
17440else $as_nop
17441  xorg_cv_cc_flag_unused_command_line_argument=no
17442fi
17443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17444fi
17445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17448	CFLAGS="$xorg_testset_save_CFLAGS"
17449fi
17450
17451found="no"
17452
17453	if test $found = "no" ; then
17454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456		fi
17457
17458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17460		fi
17461
17462		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17463
17464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17465printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17466		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17467		if eval test \${$cacheid+y}
17468then :
17469  printf %s "(cached) " >&6
17470else $as_nop
17471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472/* end confdefs.h.  */
17473int i;
17474int
17475main (void)
17476{
17477
17478  ;
17479  return 0;
17480}
17481_ACEOF
17482if ac_fn_c_try_link "$LINENO"
17483then :
17484  eval $cacheid=yes
17485else $as_nop
17486  eval $cacheid=no
17487fi
17488rm -f core conftest.err conftest.$ac_objext conftest.beam \
17489    conftest$ac_exeext conftest.$ac_ext
17490fi
17491
17492
17493		CFLAGS="$xorg_testset_save_CFLAGS"
17494
17495		eval supported=\$$cacheid
17496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17497printf "%s\n" "$supported" >&6; }
17498		if test "$supported" = "yes" ; then
17499			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17500			found="yes"
17501		fi
17502	fi
17503
17504	if test $found = "no" ; then
17505		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17507		fi
17508
17509		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17511		fi
17512
17513		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17514
17515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17516printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17517		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17518		if eval test \${$cacheid+y}
17519then :
17520  printf %s "(cached) " >&6
17521else $as_nop
17522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523/* end confdefs.h.  */
17524int i;
17525int
17526main (void)
17527{
17528
17529  ;
17530  return 0;
17531}
17532_ACEOF
17533if ac_fn_c_try_link "$LINENO"
17534then :
17535  eval $cacheid=yes
17536else $as_nop
17537  eval $cacheid=no
17538fi
17539rm -f core conftest.err conftest.$ac_objext conftest.beam \
17540    conftest$ac_exeext conftest.$ac_ext
17541fi
17542
17543
17544		CFLAGS="$xorg_testset_save_CFLAGS"
17545
17546		eval supported=\$$cacheid
17547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17548printf "%s\n" "$supported" >&6; }
17549		if test "$supported" = "yes" ; then
17550			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17551			found="yes"
17552		fi
17553	fi
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569xorg_testset_save_CFLAGS="$CFLAGS"
17570
17571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17575if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17576then :
17577  printf %s "(cached) " >&6
17578else $as_nop
17579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580/* end confdefs.h.  */
17581int i;
17582_ACEOF
17583if ac_fn_c_try_compile "$LINENO"
17584then :
17585  xorg_cv_cc_flag_unknown_warning_option=yes
17586else $as_nop
17587  xorg_cv_cc_flag_unknown_warning_option=no
17588fi
17589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17590fi
17591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17593	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17594	CFLAGS="$xorg_testset_save_CFLAGS"
17595fi
17596
17597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17598	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17600	fi
17601	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17604if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17605then :
17606  printf %s "(cached) " >&6
17607else $as_nop
17608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609/* end confdefs.h.  */
17610int i;
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"
17613then :
17614  xorg_cv_cc_flag_unused_command_line_argument=yes
17615else $as_nop
17616  xorg_cv_cc_flag_unused_command_line_argument=no
17617fi
17618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17619fi
17620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17623	CFLAGS="$xorg_testset_save_CFLAGS"
17624fi
17625
17626found="no"
17627
17628	if test $found = "no" ; then
17629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17631		fi
17632
17633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17635		fi
17636
17637		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17638
17639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17640printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17641		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17642		if eval test \${$cacheid+y}
17643then :
17644  printf %s "(cached) " >&6
17645else $as_nop
17646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648int i;
17649int
17650main (void)
17651{
17652
17653  ;
17654  return 0;
17655}
17656_ACEOF
17657if ac_fn_c_try_link "$LINENO"
17658then :
17659  eval $cacheid=yes
17660else $as_nop
17661  eval $cacheid=no
17662fi
17663rm -f core conftest.err conftest.$ac_objext conftest.beam \
17664    conftest$ac_exeext conftest.$ac_ext
17665fi
17666
17667
17668		CFLAGS="$xorg_testset_save_CFLAGS"
17669
17670		eval supported=\$$cacheid
17671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17672printf "%s\n" "$supported" >&6; }
17673		if test "$supported" = "yes" ; then
17674			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17675			found="yes"
17676		fi
17677	fi
17678
17679 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17680else
17681{ 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
17682printf "%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;}
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696xorg_testset_save_CFLAGS="$CFLAGS"
17697
17698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17702if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17703then :
17704  printf %s "(cached) " >&6
17705else $as_nop
17706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707/* end confdefs.h.  */
17708int i;
17709_ACEOF
17710if ac_fn_c_try_compile "$LINENO"
17711then :
17712  xorg_cv_cc_flag_unknown_warning_option=yes
17713else $as_nop
17714  xorg_cv_cc_flag_unknown_warning_option=no
17715fi
17716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17717fi
17718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17721	CFLAGS="$xorg_testset_save_CFLAGS"
17722fi
17723
17724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727	fi
17728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17732then :
17733  printf %s "(cached) " >&6
17734else $as_nop
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737int i;
17738_ACEOF
17739if ac_fn_c_try_compile "$LINENO"
17740then :
17741  xorg_cv_cc_flag_unused_command_line_argument=yes
17742else $as_nop
17743  xorg_cv_cc_flag_unused_command_line_argument=no
17744fi
17745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17746fi
17747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17750	CFLAGS="$xorg_testset_save_CFLAGS"
17751fi
17752
17753found="no"
17754
17755	if test $found = "no" ; then
17756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17758		fi
17759
17760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762		fi
17763
17764		CFLAGS="$CFLAGS -Wimplicit"
17765
17766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17767printf %s "checking if $CC supports -Wimplicit... " >&6; }
17768		cacheid=xorg_cv_cc_flag__Wimplicit
17769		if eval test \${$cacheid+y}
17770then :
17771  printf %s "(cached) " >&6
17772else $as_nop
17773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774/* end confdefs.h.  */
17775int i;
17776int
17777main (void)
17778{
17779
17780  ;
17781  return 0;
17782}
17783_ACEOF
17784if ac_fn_c_try_link "$LINENO"
17785then :
17786  eval $cacheid=yes
17787else $as_nop
17788  eval $cacheid=no
17789fi
17790rm -f core conftest.err conftest.$ac_objext conftest.beam \
17791    conftest$ac_exeext conftest.$ac_ext
17792fi
17793
17794
17795		CFLAGS="$xorg_testset_save_CFLAGS"
17796
17797		eval supported=\$$cacheid
17798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17799printf "%s\n" "$supported" >&6; }
17800		if test "$supported" = "yes" ; then
17801			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17802			found="yes"
17803		fi
17804	fi
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820xorg_testset_save_CFLAGS="$CFLAGS"
17821
17822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17826if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17827then :
17828  printf %s "(cached) " >&6
17829else $as_nop
17830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831/* end confdefs.h.  */
17832int i;
17833_ACEOF
17834if ac_fn_c_try_compile "$LINENO"
17835then :
17836  xorg_cv_cc_flag_unknown_warning_option=yes
17837else $as_nop
17838  xorg_cv_cc_flag_unknown_warning_option=no
17839fi
17840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17841fi
17842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17845	CFLAGS="$xorg_testset_save_CFLAGS"
17846fi
17847
17848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17851	fi
17852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17855if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17856then :
17857  printf %s "(cached) " >&6
17858else $as_nop
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861int i;
17862_ACEOF
17863if ac_fn_c_try_compile "$LINENO"
17864then :
17865  xorg_cv_cc_flag_unused_command_line_argument=yes
17866else $as_nop
17867  xorg_cv_cc_flag_unused_command_line_argument=no
17868fi
17869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17870fi
17871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17874	CFLAGS="$xorg_testset_save_CFLAGS"
17875fi
17876
17877found="no"
17878
17879	if test $found = "no" ; then
17880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882		fi
17883
17884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17886		fi
17887
17888		CFLAGS="$CFLAGS -Wnonnull"
17889
17890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17891printf %s "checking if $CC supports -Wnonnull... " >&6; }
17892		cacheid=xorg_cv_cc_flag__Wnonnull
17893		if eval test \${$cacheid+y}
17894then :
17895  printf %s "(cached) " >&6
17896else $as_nop
17897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898/* end confdefs.h.  */
17899int i;
17900int
17901main (void)
17902{
17903
17904  ;
17905  return 0;
17906}
17907_ACEOF
17908if ac_fn_c_try_link "$LINENO"
17909then :
17910  eval $cacheid=yes
17911else $as_nop
17912  eval $cacheid=no
17913fi
17914rm -f core conftest.err conftest.$ac_objext conftest.beam \
17915    conftest$ac_exeext conftest.$ac_ext
17916fi
17917
17918
17919		CFLAGS="$xorg_testset_save_CFLAGS"
17920
17921		eval supported=\$$cacheid
17922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17923printf "%s\n" "$supported" >&6; }
17924		if test "$supported" = "yes" ; then
17925			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17926			found="yes"
17927		fi
17928	fi
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944xorg_testset_save_CFLAGS="$CFLAGS"
17945
17946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17951then :
17952  printf %s "(cached) " >&6
17953else $as_nop
17954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955/* end confdefs.h.  */
17956int i;
17957_ACEOF
17958if ac_fn_c_try_compile "$LINENO"
17959then :
17960  xorg_cv_cc_flag_unknown_warning_option=yes
17961else $as_nop
17962  xorg_cv_cc_flag_unknown_warning_option=no
17963fi
17964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17965fi
17966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17969	CFLAGS="$xorg_testset_save_CFLAGS"
17970fi
17971
17972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17975	fi
17976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17980then :
17981  printf %s "(cached) " >&6
17982else $as_nop
17983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985int i;
17986_ACEOF
17987if ac_fn_c_try_compile "$LINENO"
17988then :
17989  xorg_cv_cc_flag_unused_command_line_argument=yes
17990else $as_nop
17991  xorg_cv_cc_flag_unused_command_line_argument=no
17992fi
17993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17994fi
17995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17998	CFLAGS="$xorg_testset_save_CFLAGS"
17999fi
18000
18001found="no"
18002
18003	if test $found = "no" ; then
18004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18006		fi
18007
18008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18010		fi
18011
18012		CFLAGS="$CFLAGS -Winit-self"
18013
18014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18015printf %s "checking if $CC supports -Winit-self... " >&6; }
18016		cacheid=xorg_cv_cc_flag__Winit_self
18017		if eval test \${$cacheid+y}
18018then :
18019  printf %s "(cached) " >&6
18020else $as_nop
18021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022/* end confdefs.h.  */
18023int i;
18024int
18025main (void)
18026{
18027
18028  ;
18029  return 0;
18030}
18031_ACEOF
18032if ac_fn_c_try_link "$LINENO"
18033then :
18034  eval $cacheid=yes
18035else $as_nop
18036  eval $cacheid=no
18037fi
18038rm -f core conftest.err conftest.$ac_objext conftest.beam \
18039    conftest$ac_exeext conftest.$ac_ext
18040fi
18041
18042
18043		CFLAGS="$xorg_testset_save_CFLAGS"
18044
18045		eval supported=\$$cacheid
18046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18047printf "%s\n" "$supported" >&6; }
18048		if test "$supported" = "yes" ; then
18049			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18050			found="yes"
18051		fi
18052	fi
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068xorg_testset_save_CFLAGS="$CFLAGS"
18069
18070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18074if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18075then :
18076  printf %s "(cached) " >&6
18077else $as_nop
18078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079/* end confdefs.h.  */
18080int i;
18081_ACEOF
18082if ac_fn_c_try_compile "$LINENO"
18083then :
18084  xorg_cv_cc_flag_unknown_warning_option=yes
18085else $as_nop
18086  xorg_cv_cc_flag_unknown_warning_option=no
18087fi
18088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18089fi
18090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18093	CFLAGS="$xorg_testset_save_CFLAGS"
18094fi
18095
18096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18099	fi
18100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18104then :
18105  printf %s "(cached) " >&6
18106else $as_nop
18107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h.  */
18109int i;
18110_ACEOF
18111if ac_fn_c_try_compile "$LINENO"
18112then :
18113  xorg_cv_cc_flag_unused_command_line_argument=yes
18114else $as_nop
18115  xorg_cv_cc_flag_unused_command_line_argument=no
18116fi
18117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18118fi
18119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18122	CFLAGS="$xorg_testset_save_CFLAGS"
18123fi
18124
18125found="no"
18126
18127	if test $found = "no" ; then
18128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18130		fi
18131
18132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18134		fi
18135
18136		CFLAGS="$CFLAGS -Wmain"
18137
18138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18139printf %s "checking if $CC supports -Wmain... " >&6; }
18140		cacheid=xorg_cv_cc_flag__Wmain
18141		if eval test \${$cacheid+y}
18142then :
18143  printf %s "(cached) " >&6
18144else $as_nop
18145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146/* end confdefs.h.  */
18147int i;
18148int
18149main (void)
18150{
18151
18152  ;
18153  return 0;
18154}
18155_ACEOF
18156if ac_fn_c_try_link "$LINENO"
18157then :
18158  eval $cacheid=yes
18159else $as_nop
18160  eval $cacheid=no
18161fi
18162rm -f core conftest.err conftest.$ac_objext conftest.beam \
18163    conftest$ac_exeext conftest.$ac_ext
18164fi
18165
18166
18167		CFLAGS="$xorg_testset_save_CFLAGS"
18168
18169		eval supported=\$$cacheid
18170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18171printf "%s\n" "$supported" >&6; }
18172		if test "$supported" = "yes" ; then
18173			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18174			found="yes"
18175		fi
18176	fi
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192xorg_testset_save_CFLAGS="$CFLAGS"
18193
18194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18199then :
18200  printf %s "(cached) " >&6
18201else $as_nop
18202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203/* end confdefs.h.  */
18204int i;
18205_ACEOF
18206if ac_fn_c_try_compile "$LINENO"
18207then :
18208  xorg_cv_cc_flag_unknown_warning_option=yes
18209else $as_nop
18210  xorg_cv_cc_flag_unknown_warning_option=no
18211fi
18212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18213fi
18214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18217	CFLAGS="$xorg_testset_save_CFLAGS"
18218fi
18219
18220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18223	fi
18224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18228then :
18229  printf %s "(cached) " >&6
18230else $as_nop
18231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233int i;
18234_ACEOF
18235if ac_fn_c_try_compile "$LINENO"
18236then :
18237  xorg_cv_cc_flag_unused_command_line_argument=yes
18238else $as_nop
18239  xorg_cv_cc_flag_unused_command_line_argument=no
18240fi
18241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18242fi
18243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18246	CFLAGS="$xorg_testset_save_CFLAGS"
18247fi
18248
18249found="no"
18250
18251	if test $found = "no" ; then
18252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18254		fi
18255
18256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18258		fi
18259
18260		CFLAGS="$CFLAGS -Wmissing-braces"
18261
18262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18263printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18264		cacheid=xorg_cv_cc_flag__Wmissing_braces
18265		if eval test \${$cacheid+y}
18266then :
18267  printf %s "(cached) " >&6
18268else $as_nop
18269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270/* end confdefs.h.  */
18271int i;
18272int
18273main (void)
18274{
18275
18276  ;
18277  return 0;
18278}
18279_ACEOF
18280if ac_fn_c_try_link "$LINENO"
18281then :
18282  eval $cacheid=yes
18283else $as_nop
18284  eval $cacheid=no
18285fi
18286rm -f core conftest.err conftest.$ac_objext conftest.beam \
18287    conftest$ac_exeext conftest.$ac_ext
18288fi
18289
18290
18291		CFLAGS="$xorg_testset_save_CFLAGS"
18292
18293		eval supported=\$$cacheid
18294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18295printf "%s\n" "$supported" >&6; }
18296		if test "$supported" = "yes" ; then
18297			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18298			found="yes"
18299		fi
18300	fi
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316xorg_testset_save_CFLAGS="$CFLAGS"
18317
18318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18323then :
18324  printf %s "(cached) " >&6
18325else $as_nop
18326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327/* end confdefs.h.  */
18328int i;
18329_ACEOF
18330if ac_fn_c_try_compile "$LINENO"
18331then :
18332  xorg_cv_cc_flag_unknown_warning_option=yes
18333else $as_nop
18334  xorg_cv_cc_flag_unknown_warning_option=no
18335fi
18336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18337fi
18338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18341	CFLAGS="$xorg_testset_save_CFLAGS"
18342fi
18343
18344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18347	fi
18348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18352then :
18353  printf %s "(cached) " >&6
18354else $as_nop
18355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357int i;
18358_ACEOF
18359if ac_fn_c_try_compile "$LINENO"
18360then :
18361  xorg_cv_cc_flag_unused_command_line_argument=yes
18362else $as_nop
18363  xorg_cv_cc_flag_unused_command_line_argument=no
18364fi
18365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18366fi
18367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18370	CFLAGS="$xorg_testset_save_CFLAGS"
18371fi
18372
18373found="no"
18374
18375	if test $found = "no" ; then
18376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18378		fi
18379
18380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18382		fi
18383
18384		CFLAGS="$CFLAGS -Wsequence-point"
18385
18386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18387printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18388		cacheid=xorg_cv_cc_flag__Wsequence_point
18389		if eval test \${$cacheid+y}
18390then :
18391  printf %s "(cached) " >&6
18392else $as_nop
18393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h.  */
18395int i;
18396int
18397main (void)
18398{
18399
18400  ;
18401  return 0;
18402}
18403_ACEOF
18404if ac_fn_c_try_link "$LINENO"
18405then :
18406  eval $cacheid=yes
18407else $as_nop
18408  eval $cacheid=no
18409fi
18410rm -f core conftest.err conftest.$ac_objext conftest.beam \
18411    conftest$ac_exeext conftest.$ac_ext
18412fi
18413
18414
18415		CFLAGS="$xorg_testset_save_CFLAGS"
18416
18417		eval supported=\$$cacheid
18418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18419printf "%s\n" "$supported" >&6; }
18420		if test "$supported" = "yes" ; then
18421			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18422			found="yes"
18423		fi
18424	fi
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440xorg_testset_save_CFLAGS="$CFLAGS"
18441
18442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18447then :
18448  printf %s "(cached) " >&6
18449else $as_nop
18450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451/* end confdefs.h.  */
18452int i;
18453_ACEOF
18454if ac_fn_c_try_compile "$LINENO"
18455then :
18456  xorg_cv_cc_flag_unknown_warning_option=yes
18457else $as_nop
18458  xorg_cv_cc_flag_unknown_warning_option=no
18459fi
18460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18461fi
18462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18465	CFLAGS="$xorg_testset_save_CFLAGS"
18466fi
18467
18468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18471	fi
18472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18476then :
18477  printf %s "(cached) " >&6
18478else $as_nop
18479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h.  */
18481int i;
18482_ACEOF
18483if ac_fn_c_try_compile "$LINENO"
18484then :
18485  xorg_cv_cc_flag_unused_command_line_argument=yes
18486else $as_nop
18487  xorg_cv_cc_flag_unused_command_line_argument=no
18488fi
18489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18490fi
18491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18494	CFLAGS="$xorg_testset_save_CFLAGS"
18495fi
18496
18497found="no"
18498
18499	if test $found = "no" ; then
18500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18502		fi
18503
18504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18506		fi
18507
18508		CFLAGS="$CFLAGS -Wreturn-type"
18509
18510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18511printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18512		cacheid=xorg_cv_cc_flag__Wreturn_type
18513		if eval test \${$cacheid+y}
18514then :
18515  printf %s "(cached) " >&6
18516else $as_nop
18517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518/* end confdefs.h.  */
18519int i;
18520int
18521main (void)
18522{
18523
18524  ;
18525  return 0;
18526}
18527_ACEOF
18528if ac_fn_c_try_link "$LINENO"
18529then :
18530  eval $cacheid=yes
18531else $as_nop
18532  eval $cacheid=no
18533fi
18534rm -f core conftest.err conftest.$ac_objext conftest.beam \
18535    conftest$ac_exeext conftest.$ac_ext
18536fi
18537
18538
18539		CFLAGS="$xorg_testset_save_CFLAGS"
18540
18541		eval supported=\$$cacheid
18542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18543printf "%s\n" "$supported" >&6; }
18544		if test "$supported" = "yes" ; then
18545			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18546			found="yes"
18547		fi
18548	fi
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564xorg_testset_save_CFLAGS="$CFLAGS"
18565
18566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18571then :
18572  printf %s "(cached) " >&6
18573else $as_nop
18574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575/* end confdefs.h.  */
18576int i;
18577_ACEOF
18578if ac_fn_c_try_compile "$LINENO"
18579then :
18580  xorg_cv_cc_flag_unknown_warning_option=yes
18581else $as_nop
18582  xorg_cv_cc_flag_unknown_warning_option=no
18583fi
18584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18585fi
18586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18589	CFLAGS="$xorg_testset_save_CFLAGS"
18590fi
18591
18592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18595	fi
18596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18600then :
18601  printf %s "(cached) " >&6
18602else $as_nop
18603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604/* end confdefs.h.  */
18605int i;
18606_ACEOF
18607if ac_fn_c_try_compile "$LINENO"
18608then :
18609  xorg_cv_cc_flag_unused_command_line_argument=yes
18610else $as_nop
18611  xorg_cv_cc_flag_unused_command_line_argument=no
18612fi
18613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18614fi
18615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18618	CFLAGS="$xorg_testset_save_CFLAGS"
18619fi
18620
18621found="no"
18622
18623	if test $found = "no" ; then
18624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18626		fi
18627
18628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18630		fi
18631
18632		CFLAGS="$CFLAGS -Wtrigraphs"
18633
18634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18635printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18636		cacheid=xorg_cv_cc_flag__Wtrigraphs
18637		if eval test \${$cacheid+y}
18638then :
18639  printf %s "(cached) " >&6
18640else $as_nop
18641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642/* end confdefs.h.  */
18643int i;
18644int
18645main (void)
18646{
18647
18648  ;
18649  return 0;
18650}
18651_ACEOF
18652if ac_fn_c_try_link "$LINENO"
18653then :
18654  eval $cacheid=yes
18655else $as_nop
18656  eval $cacheid=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext conftest.beam \
18659    conftest$ac_exeext conftest.$ac_ext
18660fi
18661
18662
18663		CFLAGS="$xorg_testset_save_CFLAGS"
18664
18665		eval supported=\$$cacheid
18666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18667printf "%s\n" "$supported" >&6; }
18668		if test "$supported" = "yes" ; then
18669			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18670			found="yes"
18671		fi
18672	fi
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688xorg_testset_save_CFLAGS="$CFLAGS"
18689
18690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18695then :
18696  printf %s "(cached) " >&6
18697else $as_nop
18698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699/* end confdefs.h.  */
18700int i;
18701_ACEOF
18702if ac_fn_c_try_compile "$LINENO"
18703then :
18704  xorg_cv_cc_flag_unknown_warning_option=yes
18705else $as_nop
18706  xorg_cv_cc_flag_unknown_warning_option=no
18707fi
18708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18709fi
18710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18713	CFLAGS="$xorg_testset_save_CFLAGS"
18714fi
18715
18716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18719	fi
18720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18724then :
18725  printf %s "(cached) " >&6
18726else $as_nop
18727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729int i;
18730_ACEOF
18731if ac_fn_c_try_compile "$LINENO"
18732then :
18733  xorg_cv_cc_flag_unused_command_line_argument=yes
18734else $as_nop
18735  xorg_cv_cc_flag_unused_command_line_argument=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18738fi
18739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18742	CFLAGS="$xorg_testset_save_CFLAGS"
18743fi
18744
18745found="no"
18746
18747	if test $found = "no" ; then
18748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18750		fi
18751
18752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18754		fi
18755
18756		CFLAGS="$CFLAGS -Warray-bounds"
18757
18758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18759printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18760		cacheid=xorg_cv_cc_flag__Warray_bounds
18761		if eval test \${$cacheid+y}
18762then :
18763  printf %s "(cached) " >&6
18764else $as_nop
18765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766/* end confdefs.h.  */
18767int i;
18768int
18769main (void)
18770{
18771
18772  ;
18773  return 0;
18774}
18775_ACEOF
18776if ac_fn_c_try_link "$LINENO"
18777then :
18778  eval $cacheid=yes
18779else $as_nop
18780  eval $cacheid=no
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.beam \
18783    conftest$ac_exeext conftest.$ac_ext
18784fi
18785
18786
18787		CFLAGS="$xorg_testset_save_CFLAGS"
18788
18789		eval supported=\$$cacheid
18790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18791printf "%s\n" "$supported" >&6; }
18792		if test "$supported" = "yes" ; then
18793			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18794			found="yes"
18795		fi
18796	fi
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812xorg_testset_save_CFLAGS="$CFLAGS"
18813
18814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18819then :
18820  printf %s "(cached) " >&6
18821else $as_nop
18822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823/* end confdefs.h.  */
18824int i;
18825_ACEOF
18826if ac_fn_c_try_compile "$LINENO"
18827then :
18828  xorg_cv_cc_flag_unknown_warning_option=yes
18829else $as_nop
18830  xorg_cv_cc_flag_unknown_warning_option=no
18831fi
18832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18833fi
18834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18837	CFLAGS="$xorg_testset_save_CFLAGS"
18838fi
18839
18840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18843	fi
18844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18848then :
18849  printf %s "(cached) " >&6
18850else $as_nop
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853int i;
18854_ACEOF
18855if ac_fn_c_try_compile "$LINENO"
18856then :
18857  xorg_cv_cc_flag_unused_command_line_argument=yes
18858else $as_nop
18859  xorg_cv_cc_flag_unused_command_line_argument=no
18860fi
18861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18862fi
18863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18866	CFLAGS="$xorg_testset_save_CFLAGS"
18867fi
18868
18869found="no"
18870
18871	if test $found = "no" ; then
18872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18874		fi
18875
18876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18878		fi
18879
18880		CFLAGS="$CFLAGS -Wwrite-strings"
18881
18882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18883printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18884		cacheid=xorg_cv_cc_flag__Wwrite_strings
18885		if eval test \${$cacheid+y}
18886then :
18887  printf %s "(cached) " >&6
18888else $as_nop
18889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890/* end confdefs.h.  */
18891int i;
18892int
18893main (void)
18894{
18895
18896  ;
18897  return 0;
18898}
18899_ACEOF
18900if ac_fn_c_try_link "$LINENO"
18901then :
18902  eval $cacheid=yes
18903else $as_nop
18904  eval $cacheid=no
18905fi
18906rm -f core conftest.err conftest.$ac_objext conftest.beam \
18907    conftest$ac_exeext conftest.$ac_ext
18908fi
18909
18910
18911		CFLAGS="$xorg_testset_save_CFLAGS"
18912
18913		eval supported=\$$cacheid
18914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18915printf "%s\n" "$supported" >&6; }
18916		if test "$supported" = "yes" ; then
18917			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18918			found="yes"
18919		fi
18920	fi
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936xorg_testset_save_CFLAGS="$CFLAGS"
18937
18938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18943then :
18944  printf %s "(cached) " >&6
18945else $as_nop
18946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947/* end confdefs.h.  */
18948int i;
18949_ACEOF
18950if ac_fn_c_try_compile "$LINENO"
18951then :
18952  xorg_cv_cc_flag_unknown_warning_option=yes
18953else $as_nop
18954  xorg_cv_cc_flag_unknown_warning_option=no
18955fi
18956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18957fi
18958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18961	CFLAGS="$xorg_testset_save_CFLAGS"
18962fi
18963
18964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18967	fi
18968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18972then :
18973  printf %s "(cached) " >&6
18974else $as_nop
18975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976/* end confdefs.h.  */
18977int i;
18978_ACEOF
18979if ac_fn_c_try_compile "$LINENO"
18980then :
18981  xorg_cv_cc_flag_unused_command_line_argument=yes
18982else $as_nop
18983  xorg_cv_cc_flag_unused_command_line_argument=no
18984fi
18985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18986fi
18987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18990	CFLAGS="$xorg_testset_save_CFLAGS"
18991fi
18992
18993found="no"
18994
18995	if test $found = "no" ; then
18996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18998		fi
18999
19000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19002		fi
19003
19004		CFLAGS="$CFLAGS -Waddress"
19005
19006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19007printf %s "checking if $CC supports -Waddress... " >&6; }
19008		cacheid=xorg_cv_cc_flag__Waddress
19009		if eval test \${$cacheid+y}
19010then :
19011  printf %s "(cached) " >&6
19012else $as_nop
19013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014/* end confdefs.h.  */
19015int i;
19016int
19017main (void)
19018{
19019
19020  ;
19021  return 0;
19022}
19023_ACEOF
19024if ac_fn_c_try_link "$LINENO"
19025then :
19026  eval $cacheid=yes
19027else $as_nop
19028  eval $cacheid=no
19029fi
19030rm -f core conftest.err conftest.$ac_objext conftest.beam \
19031    conftest$ac_exeext conftest.$ac_ext
19032fi
19033
19034
19035		CFLAGS="$xorg_testset_save_CFLAGS"
19036
19037		eval supported=\$$cacheid
19038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19039printf "%s\n" "$supported" >&6; }
19040		if test "$supported" = "yes" ; then
19041			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19042			found="yes"
19043		fi
19044	fi
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060xorg_testset_save_CFLAGS="$CFLAGS"
19061
19062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19067then :
19068  printf %s "(cached) " >&6
19069else $as_nop
19070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071/* end confdefs.h.  */
19072int i;
19073_ACEOF
19074if ac_fn_c_try_compile "$LINENO"
19075then :
19076  xorg_cv_cc_flag_unknown_warning_option=yes
19077else $as_nop
19078  xorg_cv_cc_flag_unknown_warning_option=no
19079fi
19080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19081fi
19082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19085	CFLAGS="$xorg_testset_save_CFLAGS"
19086fi
19087
19088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19091	fi
19092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19095if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19096then :
19097  printf %s "(cached) " >&6
19098else $as_nop
19099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100/* end confdefs.h.  */
19101int i;
19102_ACEOF
19103if ac_fn_c_try_compile "$LINENO"
19104then :
19105  xorg_cv_cc_flag_unused_command_line_argument=yes
19106else $as_nop
19107  xorg_cv_cc_flag_unused_command_line_argument=no
19108fi
19109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19110fi
19111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19114	CFLAGS="$xorg_testset_save_CFLAGS"
19115fi
19116
19117found="no"
19118
19119	if test $found = "no" ; then
19120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19122		fi
19123
19124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19126		fi
19127
19128		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19129
19130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19131printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19132		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19133		if eval test \${$cacheid+y}
19134then :
19135  printf %s "(cached) " >&6
19136else $as_nop
19137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138/* end confdefs.h.  */
19139int i;
19140int
19141main (void)
19142{
19143
19144  ;
19145  return 0;
19146}
19147_ACEOF
19148if ac_fn_c_try_link "$LINENO"
19149then :
19150  eval $cacheid=yes
19151else $as_nop
19152  eval $cacheid=no
19153fi
19154rm -f core conftest.err conftest.$ac_objext conftest.beam \
19155    conftest$ac_exeext conftest.$ac_ext
19156fi
19157
19158
19159		CFLAGS="$xorg_testset_save_CFLAGS"
19160
19161		eval supported=\$$cacheid
19162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19163printf "%s\n" "$supported" >&6; }
19164		if test "$supported" = "yes" ; then
19165			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19166			found="yes"
19167		fi
19168	fi
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184xorg_testset_save_CFLAGS="$CFLAGS"
19185
19186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19190if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19191then :
19192  printf %s "(cached) " >&6
19193else $as_nop
19194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195/* end confdefs.h.  */
19196int i;
19197_ACEOF
19198if ac_fn_c_try_compile "$LINENO"
19199then :
19200  xorg_cv_cc_flag_unknown_warning_option=yes
19201else $as_nop
19202  xorg_cv_cc_flag_unknown_warning_option=no
19203fi
19204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19205fi
19206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19209	CFLAGS="$xorg_testset_save_CFLAGS"
19210fi
19211
19212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19215	fi
19216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19219if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19220then :
19221  printf %s "(cached) " >&6
19222else $as_nop
19223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h.  */
19225int i;
19226_ACEOF
19227if ac_fn_c_try_compile "$LINENO"
19228then :
19229  xorg_cv_cc_flag_unused_command_line_argument=yes
19230else $as_nop
19231  xorg_cv_cc_flag_unused_command_line_argument=no
19232fi
19233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19234fi
19235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19238	CFLAGS="$xorg_testset_save_CFLAGS"
19239fi
19240
19241found="no"
19242
19243	if test $found = "no" ; then
19244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19246		fi
19247
19248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19250		fi
19251
19252		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19253
19254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19255printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19256		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19257		if eval test \${$cacheid+y}
19258then :
19259  printf %s "(cached) " >&6
19260else $as_nop
19261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262/* end confdefs.h.  */
19263int i;
19264int
19265main (void)
19266{
19267
19268  ;
19269  return 0;
19270}
19271_ACEOF
19272if ac_fn_c_try_link "$LINENO"
19273then :
19274  eval $cacheid=yes
19275else $as_nop
19276  eval $cacheid=no
19277fi
19278rm -f core conftest.err conftest.$ac_objext conftest.beam \
19279    conftest$ac_exeext conftest.$ac_ext
19280fi
19281
19282
19283		CFLAGS="$xorg_testset_save_CFLAGS"
19284
19285		eval supported=\$$cacheid
19286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19287printf "%s\n" "$supported" >&6; }
19288		if test "$supported" = "yes" ; then
19289			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19290			found="yes"
19291		fi
19292	fi
19293
19294
19295fi
19296
19297
19298
19299
19300
19301
19302
19303		CWARNFLAGS="$BASE_CFLAGS"
19304		if  test "x$GCC" = xyes ; then
19305		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19306		fi
19307
19308
19309
19310
19311
19312
19313
19314
19315# Check whether --enable-strict-compilation was given.
19316if test ${enable_strict_compilation+y}
19317then :
19318  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19319else $as_nop
19320  STRICT_COMPILE=no
19321fi
19322
19323
19324
19325
19326
19327
19328STRICT_CFLAGS=""
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342xorg_testset_save_CFLAGS="$CFLAGS"
19343
19344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19349then :
19350  printf %s "(cached) " >&6
19351else $as_nop
19352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353/* end confdefs.h.  */
19354int i;
19355_ACEOF
19356if ac_fn_c_try_compile "$LINENO"
19357then :
19358  xorg_cv_cc_flag_unknown_warning_option=yes
19359else $as_nop
19360  xorg_cv_cc_flag_unknown_warning_option=no
19361fi
19362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19363fi
19364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19367	CFLAGS="$xorg_testset_save_CFLAGS"
19368fi
19369
19370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19373	fi
19374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19378then :
19379  printf %s "(cached) " >&6
19380else $as_nop
19381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382/* end confdefs.h.  */
19383int i;
19384_ACEOF
19385if ac_fn_c_try_compile "$LINENO"
19386then :
19387  xorg_cv_cc_flag_unused_command_line_argument=yes
19388else $as_nop
19389  xorg_cv_cc_flag_unused_command_line_argument=no
19390fi
19391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19392fi
19393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19396	CFLAGS="$xorg_testset_save_CFLAGS"
19397fi
19398
19399found="no"
19400
19401	if test $found = "no" ; then
19402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19404		fi
19405
19406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19408		fi
19409
19410		CFLAGS="$CFLAGS -pedantic"
19411
19412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19413printf %s "checking if $CC supports -pedantic... " >&6; }
19414		cacheid=xorg_cv_cc_flag__pedantic
19415		if eval test \${$cacheid+y}
19416then :
19417  printf %s "(cached) " >&6
19418else $as_nop
19419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420/* end confdefs.h.  */
19421int i;
19422int
19423main (void)
19424{
19425
19426  ;
19427  return 0;
19428}
19429_ACEOF
19430if ac_fn_c_try_link "$LINENO"
19431then :
19432  eval $cacheid=yes
19433else $as_nop
19434  eval $cacheid=no
19435fi
19436rm -f core conftest.err conftest.$ac_objext conftest.beam \
19437    conftest$ac_exeext conftest.$ac_ext
19438fi
19439
19440
19441		CFLAGS="$xorg_testset_save_CFLAGS"
19442
19443		eval supported=\$$cacheid
19444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19445printf "%s\n" "$supported" >&6; }
19446		if test "$supported" = "yes" ; then
19447			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19448			found="yes"
19449		fi
19450	fi
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466xorg_testset_save_CFLAGS="$CFLAGS"
19467
19468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19473then :
19474  printf %s "(cached) " >&6
19475else $as_nop
19476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477/* end confdefs.h.  */
19478int i;
19479_ACEOF
19480if ac_fn_c_try_compile "$LINENO"
19481then :
19482  xorg_cv_cc_flag_unknown_warning_option=yes
19483else $as_nop
19484  xorg_cv_cc_flag_unknown_warning_option=no
19485fi
19486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19487fi
19488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19491	CFLAGS="$xorg_testset_save_CFLAGS"
19492fi
19493
19494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19497	fi
19498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19502then :
19503  printf %s "(cached) " >&6
19504else $as_nop
19505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19506/* end confdefs.h.  */
19507int i;
19508_ACEOF
19509if ac_fn_c_try_compile "$LINENO"
19510then :
19511  xorg_cv_cc_flag_unused_command_line_argument=yes
19512else $as_nop
19513  xorg_cv_cc_flag_unused_command_line_argument=no
19514fi
19515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19516fi
19517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19520	CFLAGS="$xorg_testset_save_CFLAGS"
19521fi
19522
19523found="no"
19524
19525	if test $found = "no" ; then
19526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19528		fi
19529
19530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19532		fi
19533
19534		CFLAGS="$CFLAGS -Werror"
19535
19536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19537printf %s "checking if $CC supports -Werror... " >&6; }
19538		cacheid=xorg_cv_cc_flag__Werror
19539		if eval test \${$cacheid+y}
19540then :
19541  printf %s "(cached) " >&6
19542else $as_nop
19543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544/* end confdefs.h.  */
19545int i;
19546int
19547main (void)
19548{
19549
19550  ;
19551  return 0;
19552}
19553_ACEOF
19554if ac_fn_c_try_link "$LINENO"
19555then :
19556  eval $cacheid=yes
19557else $as_nop
19558  eval $cacheid=no
19559fi
19560rm -f core conftest.err conftest.$ac_objext conftest.beam \
19561    conftest$ac_exeext conftest.$ac_ext
19562fi
19563
19564
19565		CFLAGS="$xorg_testset_save_CFLAGS"
19566
19567		eval supported=\$$cacheid
19568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19569printf "%s\n" "$supported" >&6; }
19570		if test "$supported" = "yes" ; then
19571			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19572			found="yes"
19573		fi
19574	fi
19575
19576	if test $found = "no" ; then
19577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19579		fi
19580
19581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19583		fi
19584
19585		CFLAGS="$CFLAGS -errwarn"
19586
19587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19588printf %s "checking if $CC supports -errwarn... " >&6; }
19589		cacheid=xorg_cv_cc_flag__errwarn
19590		if eval test \${$cacheid+y}
19591then :
19592  printf %s "(cached) " >&6
19593else $as_nop
19594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595/* end confdefs.h.  */
19596int i;
19597int
19598main (void)
19599{
19600
19601  ;
19602  return 0;
19603}
19604_ACEOF
19605if ac_fn_c_try_link "$LINENO"
19606then :
19607  eval $cacheid=yes
19608else $as_nop
19609  eval $cacheid=no
19610fi
19611rm -f core conftest.err conftest.$ac_objext conftest.beam \
19612    conftest$ac_exeext conftest.$ac_ext
19613fi
19614
19615
19616		CFLAGS="$xorg_testset_save_CFLAGS"
19617
19618		eval supported=\$$cacheid
19619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19620printf "%s\n" "$supported" >&6; }
19621		if test "$supported" = "yes" ; then
19622			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19623			found="yes"
19624		fi
19625	fi
19626
19627
19628
19629# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19630# activate it with -Werror, so we add it here explicitly.
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644xorg_testset_save_CFLAGS="$CFLAGS"
19645
19646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19650if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19651then :
19652  printf %s "(cached) " >&6
19653else $as_nop
19654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655/* end confdefs.h.  */
19656int i;
19657_ACEOF
19658if ac_fn_c_try_compile "$LINENO"
19659then :
19660  xorg_cv_cc_flag_unknown_warning_option=yes
19661else $as_nop
19662  xorg_cv_cc_flag_unknown_warning_option=no
19663fi
19664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19665fi
19666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19669	CFLAGS="$xorg_testset_save_CFLAGS"
19670fi
19671
19672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19675	fi
19676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19679if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19680then :
19681  printf %s "(cached) " >&6
19682else $as_nop
19683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684/* end confdefs.h.  */
19685int i;
19686_ACEOF
19687if ac_fn_c_try_compile "$LINENO"
19688then :
19689  xorg_cv_cc_flag_unused_command_line_argument=yes
19690else $as_nop
19691  xorg_cv_cc_flag_unused_command_line_argument=no
19692fi
19693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19694fi
19695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19698	CFLAGS="$xorg_testset_save_CFLAGS"
19699fi
19700
19701found="no"
19702
19703	if test $found = "no" ; then
19704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19706		fi
19707
19708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19710		fi
19711
19712		CFLAGS="$CFLAGS -Werror=attributes"
19713
19714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19715printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19716		cacheid=xorg_cv_cc_flag__Werror_attributes
19717		if eval test \${$cacheid+y}
19718then :
19719  printf %s "(cached) " >&6
19720else $as_nop
19721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722/* end confdefs.h.  */
19723int i;
19724int
19725main (void)
19726{
19727
19728  ;
19729  return 0;
19730}
19731_ACEOF
19732if ac_fn_c_try_link "$LINENO"
19733then :
19734  eval $cacheid=yes
19735else $as_nop
19736  eval $cacheid=no
19737fi
19738rm -f core conftest.err conftest.$ac_objext conftest.beam \
19739    conftest$ac_exeext conftest.$ac_ext
19740fi
19741
19742
19743		CFLAGS="$xorg_testset_save_CFLAGS"
19744
19745		eval supported=\$$cacheid
19746		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19747printf "%s\n" "$supported" >&6; }
19748		if test "$supported" = "yes" ; then
19749			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19750			found="yes"
19751		fi
19752	fi
19753
19754
19755
19756if test "x$STRICT_COMPILE" = "xyes"; then
19757    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19758    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19759fi
19760
19761
19762
19763
19764
19765
19766cat >>confdefs.h <<_ACEOF
19767#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19768_ACEOF
19769
19770	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19771	if test "x$PVM" = "x"; then
19772		PVM="0"
19773	fi
19774
19775printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19776
19777	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19778	if test "x$PVP" = "x"; then
19779		PVP="0"
19780	fi
19781
19782printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19783
19784
19785
19786CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19787mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19788|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19789touch \$(top_srcdir)/ChangeLog; \
19790echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19791
19792
19793
19794
19795macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19796INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19797mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19798|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19799touch \$(top_srcdir)/INSTALL; \
19800echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19801
19802
19803
19804
19805
19806
19807case $host_os in
19808    solaris*)
19809        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19810        # check for a man page file found in later versions that use
19811        # traditional section numbers instead
19812        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19813printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19814if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19815then :
19816  printf %s "(cached) " >&6
19817else $as_nop
19818  test "$cross_compiling" = yes &&
19819  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19820if test -r "/usr/share/man/man7/attributes.7"; then
19821  ac_cv_file__usr_share_man_man7_attributes_7=yes
19822else
19823  ac_cv_file__usr_share_man_man7_attributes_7=no
19824fi
19825fi
19826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19827printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19828if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19829then :
19830  SYSV_MAN_SECTIONS=false
19831else $as_nop
19832  SYSV_MAN_SECTIONS=true
19833fi
19834
19835        ;;
19836    *) SYSV_MAN_SECTIONS=false ;;
19837esac
19838
19839if test x$APP_MAN_SUFFIX = x    ; then
19840    APP_MAN_SUFFIX=1
19841fi
19842if test x$APP_MAN_DIR = x    ; then
19843    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19844fi
19845
19846if test x$LIB_MAN_SUFFIX = x    ; then
19847    LIB_MAN_SUFFIX=3
19848fi
19849if test x$LIB_MAN_DIR = x    ; then
19850    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19851fi
19852
19853if test x$FILE_MAN_SUFFIX = x    ; then
19854    case $SYSV_MAN_SECTIONS in
19855	true)				FILE_MAN_SUFFIX=4  ;;
19856	*)				FILE_MAN_SUFFIX=5  ;;
19857    esac
19858fi
19859if test x$FILE_MAN_DIR = x    ; then
19860    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19861fi
19862
19863if test x$MISC_MAN_SUFFIX = x    ; then
19864    case $SYSV_MAN_SECTIONS in
19865	true)				MISC_MAN_SUFFIX=5  ;;
19866	*)				MISC_MAN_SUFFIX=7  ;;
19867    esac
19868fi
19869if test x$MISC_MAN_DIR = x    ; then
19870    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19871fi
19872
19873if test x$DRIVER_MAN_SUFFIX = x    ; then
19874    case $SYSV_MAN_SECTIONS in
19875	true)				DRIVER_MAN_SUFFIX=7  ;;
19876	*)				DRIVER_MAN_SUFFIX=4  ;;
19877    esac
19878fi
19879if test x$DRIVER_MAN_DIR = x    ; then
19880    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19881fi
19882
19883if test x$ADMIN_MAN_SUFFIX = x    ; then
19884    case $SYSV_MAN_SECTIONS in
19885	true)				ADMIN_MAN_SUFFIX=1m ;;
19886	*)				ADMIN_MAN_SUFFIX=8  ;;
19887    esac
19888fi
19889if test x$ADMIN_MAN_DIR = x    ; then
19890    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19891fi
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907XORG_MAN_PAGE="X Version 11"
19908
19909MAN_SUBSTS="\
19910	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19911	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19912	-e 's|__xservername__|Xorg|g' \
19913	-e 's|__xconfigfile__|xorg.conf|g' \
19914	-e 's|__projectroot__|\$(prefix)|g' \
19915	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19916	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19917	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19918	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19919	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19920	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19921	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19922
19923
19924
19925# Check whether --enable-silent-rules was given.
19926if test ${enable_silent_rules+y}
19927then :
19928  enableval=$enable_silent_rules;
19929fi
19930
19931case $enable_silent_rules in # (((
19932  yes) AM_DEFAULT_VERBOSITY=0;;
19933   no) AM_DEFAULT_VERBOSITY=1;;
19934    *) AM_DEFAULT_VERBOSITY=0;;
19935esac
19936am_make=${MAKE-make}
19937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19938printf %s "checking whether $am_make supports nested variables... " >&6; }
19939if test ${am_cv_make_support_nested_variables+y}
19940then :
19941  printf %s "(cached) " >&6
19942else $as_nop
19943  if printf "%s\n" 'TRUE=$(BAR$(V))
19944BAR0=false
19945BAR1=true
19946V=1
19947am__doit:
19948	@$(TRUE)
19949.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19950  am_cv_make_support_nested_variables=yes
19951else
19952  am_cv_make_support_nested_variables=no
19953fi
19954fi
19955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19956printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19957if test $am_cv_make_support_nested_variables = yes; then
19958    AM_V='$(V)'
19959  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19960else
19961  AM_V=$AM_DEFAULT_VERBOSITY
19962  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19963fi
19964AM_BACKSLASH='\'
19965
19966
19967
19968
19969# Check whether --enable-specs was given.
19970if test ${enable_specs+y}
19971then :
19972  enableval=$enable_specs; build_specs=$enableval
19973else $as_nop
19974  build_specs=yes
19975fi
19976
19977
19978 if test x$build_specs = xyes; then
19979  ENABLE_SPECS_TRUE=
19980  ENABLE_SPECS_FALSE='#'
19981else
19982  ENABLE_SPECS_TRUE='#'
19983  ENABLE_SPECS_FALSE=
19984fi
19985
19986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19987printf %s "checking whether to build functional specifications... " >&6; }
19988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19989printf "%s\n" "$build_specs" >&6; }
19990
19991
19992
19993
19994
19995# Check whether --with-xmlto was given.
19996if test ${with_xmlto+y}
19997then :
19998  withval=$with_xmlto; use_xmlto=$withval
19999else $as_nop
20000  use_xmlto=auto
20001fi
20002
20003
20004
20005if test "x$use_xmlto" = x"auto"; then
20006   # Extract the first word of "xmlto", so it can be a program name with args.
20007set dummy xmlto; ac_word=$2
20008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20009printf %s "checking for $ac_word... " >&6; }
20010if test ${ac_cv_path_XMLTO+y}
20011then :
20012  printf %s "(cached) " >&6
20013else $as_nop
20014  case $XMLTO in
20015  [\\/]* | ?:[\\/]*)
20016  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20017  ;;
20018  *)
20019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020for as_dir in $PATH
20021do
20022  IFS=$as_save_IFS
20023  case $as_dir in #(((
20024    '') as_dir=./ ;;
20025    */) ;;
20026    *) as_dir=$as_dir/ ;;
20027  esac
20028    for ac_exec_ext in '' $ac_executable_extensions; do
20029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20030    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20032    break 2
20033  fi
20034done
20035  done
20036IFS=$as_save_IFS
20037
20038  ;;
20039esac
20040fi
20041XMLTO=$ac_cv_path_XMLTO
20042if test -n "$XMLTO"; then
20043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20044printf "%s\n" "$XMLTO" >&6; }
20045else
20046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047printf "%s\n" "no" >&6; }
20048fi
20049
20050
20051   if test "x$XMLTO" = "x"; then
20052        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20053printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20054	have_xmlto=no
20055   else
20056        have_xmlto=yes
20057   fi
20058elif test "x$use_xmlto" = x"yes" ; then
20059   # Extract the first word of "xmlto", so it can be a program name with args.
20060set dummy xmlto; ac_word=$2
20061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20062printf %s "checking for $ac_word... " >&6; }
20063if test ${ac_cv_path_XMLTO+y}
20064then :
20065  printf %s "(cached) " >&6
20066else $as_nop
20067  case $XMLTO in
20068  [\\/]* | ?:[\\/]*)
20069  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20070  ;;
20071  *)
20072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073for as_dir in $PATH
20074do
20075  IFS=$as_save_IFS
20076  case $as_dir in #(((
20077    '') as_dir=./ ;;
20078    */) ;;
20079    *) as_dir=$as_dir/ ;;
20080  esac
20081    for ac_exec_ext in '' $ac_executable_extensions; do
20082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20083    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20085    break 2
20086  fi
20087done
20088  done
20089IFS=$as_save_IFS
20090
20091  ;;
20092esac
20093fi
20094XMLTO=$ac_cv_path_XMLTO
20095if test -n "$XMLTO"; then
20096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20097printf "%s\n" "$XMLTO" >&6; }
20098else
20099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100printf "%s\n" "no" >&6; }
20101fi
20102
20103
20104   if test "x$XMLTO" = "x"; then
20105        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20106   fi
20107   have_xmlto=yes
20108elif test "x$use_xmlto" = x"no" ; then
20109   if test "x$XMLTO" != "x"; then
20110      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20111printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20112   fi
20113   have_xmlto=no
20114else
20115   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20116fi
20117
20118# Test for a minimum version of xmlto, if provided.
20119if test "$have_xmlto" = yes; then
20120    # scrape the xmlto version
20121    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20122printf %s "checking the xmlto version... " >&6; }
20123    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20124    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20125printf "%s\n" "$xmlto_version" >&6; }
20126    as_arg_v1=$xmlto_version
20127as_arg_v2=0.0.22
20128awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20129case $? in #(
20130  1) :
20131    if test "x$use_xmlto" = xauto; then
20132            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20133printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20134            have_xmlto=no
20135        else
20136            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20137        fi ;; #(
20138  0) :
20139     ;; #(
20140  2) :
20141     ;; #(
20142  *) :
20143     ;;
20144esac
20145fi
20146
20147# Test for the ability of xmlto to generate a text target
20148#
20149# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20150# following test for empty XML docbook files.
20151# For compatibility reasons use the following empty XML docbook file and if
20152# it fails try it again with a non-empty XML file.
20153have_xmlto_text=no
20154cat > conftest.xml << "EOF"
20155EOF
20156if test "$have_xmlto" = yes
20157then :
20158  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20159then :
20160  have_xmlto_text=yes
20161else $as_nop
20162  # Try it again with a non-empty XML file.
20163              cat > conftest.xml << "EOF"
20164<x></x>
20165EOF
20166              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20167then :
20168  have_xmlto_text=yes
20169else $as_nop
20170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20171printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
20172fi
20173fi
20174fi
20175rm -f conftest.xml
20176 if test $have_xmlto_text = yes; then
20177  HAVE_XMLTO_TEXT_TRUE=
20178  HAVE_XMLTO_TEXT_FALSE='#'
20179else
20180  HAVE_XMLTO_TEXT_TRUE='#'
20181  HAVE_XMLTO_TEXT_FALSE=
20182fi
20183
20184 if test "$have_xmlto" = yes; then
20185  HAVE_XMLTO_TRUE=
20186  HAVE_XMLTO_FALSE='#'
20187else
20188  HAVE_XMLTO_TRUE='#'
20189  HAVE_XMLTO_FALSE=
20190fi
20191
20192
20193
20194
20195
20196
20197# Check whether --with-fop was given.
20198if test ${with_fop+y}
20199then :
20200  withval=$with_fop; use_fop=$withval
20201else $as_nop
20202  use_fop=no
20203fi
20204
20205
20206
20207if test "x$use_fop" = x"auto"; then
20208   # Extract the first word of "fop", so it can be a program name with args.
20209set dummy fop; ac_word=$2
20210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211printf %s "checking for $ac_word... " >&6; }
20212if test ${ac_cv_path_FOP+y}
20213then :
20214  printf %s "(cached) " >&6
20215else $as_nop
20216  case $FOP in
20217  [\\/]* | ?:[\\/]*)
20218  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20219  ;;
20220  *)
20221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222for as_dir in $PATH
20223do
20224  IFS=$as_save_IFS
20225  case $as_dir in #(((
20226    '') as_dir=./ ;;
20227    */) ;;
20228    *) as_dir=$as_dir/ ;;
20229  esac
20230    for ac_exec_ext in '' $ac_executable_extensions; do
20231  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20232    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20233    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20234    break 2
20235  fi
20236done
20237  done
20238IFS=$as_save_IFS
20239
20240  ;;
20241esac
20242fi
20243FOP=$ac_cv_path_FOP
20244if test -n "$FOP"; then
20245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20246printf "%s\n" "$FOP" >&6; }
20247else
20248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249printf "%s\n" "no" >&6; }
20250fi
20251
20252
20253   if test "x$FOP" = "x"; then
20254        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20255printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20256	have_fop=no
20257   else
20258        have_fop=yes
20259   fi
20260elif test "x$use_fop" = x"yes" ; then
20261   # Extract the first word of "fop", so it can be a program name with args.
20262set dummy fop; ac_word=$2
20263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20264printf %s "checking for $ac_word... " >&6; }
20265if test ${ac_cv_path_FOP+y}
20266then :
20267  printf %s "(cached) " >&6
20268else $as_nop
20269  case $FOP in
20270  [\\/]* | ?:[\\/]*)
20271  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20272  ;;
20273  *)
20274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275for as_dir in $PATH
20276do
20277  IFS=$as_save_IFS
20278  case $as_dir in #(((
20279    '') as_dir=./ ;;
20280    */) ;;
20281    *) as_dir=$as_dir/ ;;
20282  esac
20283    for ac_exec_ext in '' $ac_executable_extensions; do
20284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20285    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20287    break 2
20288  fi
20289done
20290  done
20291IFS=$as_save_IFS
20292
20293  ;;
20294esac
20295fi
20296FOP=$ac_cv_path_FOP
20297if test -n "$FOP"; then
20298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20299printf "%s\n" "$FOP" >&6; }
20300else
20301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302printf "%s\n" "no" >&6; }
20303fi
20304
20305
20306   if test "x$FOP" = "x"; then
20307        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20308   fi
20309   have_fop=yes
20310elif test "x$use_fop" = x"no" ; then
20311   if test "x$FOP" != "x"; then
20312      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20313printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20314   fi
20315   have_fop=no
20316else
20317   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20318fi
20319
20320# Test for a minimum version of fop, if provided.
20321
20322 if test "$have_fop" = yes; then
20323  HAVE_FOP_TRUE=
20324  HAVE_FOP_FALSE='#'
20325else
20326  HAVE_FOP_TRUE='#'
20327  HAVE_FOP_FALSE=
20328fi
20329
20330
20331
20332
20333# Preserves the interface, should it be implemented later
20334
20335
20336
20337# Check whether --with-xsltproc was given.
20338if test ${with_xsltproc+y}
20339then :
20340  withval=$with_xsltproc; use_xsltproc=$withval
20341else $as_nop
20342  use_xsltproc=auto
20343fi
20344
20345
20346
20347if test "x$use_xsltproc" = x"auto"; then
20348   # Extract the first word of "xsltproc", so it can be a program name with args.
20349set dummy xsltproc; ac_word=$2
20350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20351printf %s "checking for $ac_word... " >&6; }
20352if test ${ac_cv_path_XSLTPROC+y}
20353then :
20354  printf %s "(cached) " >&6
20355else $as_nop
20356  case $XSLTPROC in
20357  [\\/]* | ?:[\\/]*)
20358  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20359  ;;
20360  *)
20361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20362for as_dir in $PATH
20363do
20364  IFS=$as_save_IFS
20365  case $as_dir in #(((
20366    '') as_dir=./ ;;
20367    */) ;;
20368    *) as_dir=$as_dir/ ;;
20369  esac
20370    for ac_exec_ext in '' $ac_executable_extensions; do
20371  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20372    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20373    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20374    break 2
20375  fi
20376done
20377  done
20378IFS=$as_save_IFS
20379
20380  ;;
20381esac
20382fi
20383XSLTPROC=$ac_cv_path_XSLTPROC
20384if test -n "$XSLTPROC"; then
20385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20386printf "%s\n" "$XSLTPROC" >&6; }
20387else
20388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389printf "%s\n" "no" >&6; }
20390fi
20391
20392
20393   if test "x$XSLTPROC" = "x"; then
20394        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20395printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20396	have_xsltproc=no
20397   else
20398        have_xsltproc=yes
20399   fi
20400elif test "x$use_xsltproc" = x"yes" ; then
20401   # Extract the first word of "xsltproc", so it can be a program name with args.
20402set dummy xsltproc; ac_word=$2
20403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20404printf %s "checking for $ac_word... " >&6; }
20405if test ${ac_cv_path_XSLTPROC+y}
20406then :
20407  printf %s "(cached) " >&6
20408else $as_nop
20409  case $XSLTPROC in
20410  [\\/]* | ?:[\\/]*)
20411  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20412  ;;
20413  *)
20414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415for as_dir in $PATH
20416do
20417  IFS=$as_save_IFS
20418  case $as_dir in #(((
20419    '') as_dir=./ ;;
20420    */) ;;
20421    *) as_dir=$as_dir/ ;;
20422  esac
20423    for ac_exec_ext in '' $ac_executable_extensions; do
20424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20425    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20427    break 2
20428  fi
20429done
20430  done
20431IFS=$as_save_IFS
20432
20433  ;;
20434esac
20435fi
20436XSLTPROC=$ac_cv_path_XSLTPROC
20437if test -n "$XSLTPROC"; then
20438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20439printf "%s\n" "$XSLTPROC" >&6; }
20440else
20441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20442printf "%s\n" "no" >&6; }
20443fi
20444
20445
20446   if test "x$XSLTPROC" = "x"; then
20447        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20448   fi
20449   have_xsltproc=yes
20450elif test "x$use_xsltproc" = x"no" ; then
20451   if test "x$XSLTPROC" != "x"; then
20452      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20453printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20454   fi
20455   have_xsltproc=no
20456else
20457   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20458fi
20459
20460 if test "$have_xsltproc" = yes; then
20461  HAVE_XSLTPROC_TRUE=
20462  HAVE_XSLTPROC_FALSE='#'
20463else
20464  HAVE_XSLTPROC_TRUE='#'
20465  HAVE_XSLTPROC_FALSE=
20466fi
20467
20468
20469
20470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
20471printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
20472XORG_SGML_PATH=
20473if test -n "$PKG_CONFIG" && \
20474    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
20475  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
20476  ac_status=$?
20477  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20478  test $ac_status = 0; }; then
20479  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20480else
20481  :
20482
20483fi
20484
20485# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20486# the path and the name of the doc stylesheet
20487if test "x$XORG_SGML_PATH" != "x" ; then
20488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20489printf "%s\n" "$XORG_SGML_PATH" >&6; }
20490   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20491   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20492else
20493   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20494printf "%s\n" "no" >&6; }
20495fi
20496
20497
20498
20499
20500 if test "x$XSL_STYLESHEET" != "x"; then
20501  HAVE_STYLESHEETS_TRUE=
20502  HAVE_STYLESHEETS_FALSE='#'
20503else
20504  HAVE_STYLESHEETS_TRUE='#'
20505  HAVE_STYLESHEETS_FALSE=
20506fi
20507
20508
20509ac_ext=c
20510ac_cpp='$CPP $CPPFLAGS'
20511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20515printf %s "checking how to run the C preprocessor... " >&6; }
20516# On Suns, sometimes $CPP names a directory.
20517if test -n "$CPP" && test -d "$CPP"; then
20518  CPP=
20519fi
20520if test -z "$CPP"; then
20521  if test ${ac_cv_prog_CPP+y}
20522then :
20523  printf %s "(cached) " >&6
20524else $as_nop
20525      # Double quotes because $CC needs to be expanded
20526    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20527    do
20528      ac_preproc_ok=false
20529for ac_c_preproc_warn_flag in '' yes
20530do
20531  # Use a header file that comes with gcc, so configuring glibc
20532  # with a fresh cross-compiler works.
20533  # On the NeXT, cc -E runs the code through the compiler's parser,
20534  # not just through cpp. "Syntax error" is here to catch this case.
20535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536/* end confdefs.h.  */
20537#include <limits.h>
20538		     Syntax error
20539_ACEOF
20540if ac_fn_c_try_cpp "$LINENO"
20541then :
20542
20543else $as_nop
20544  # Broken: fails on valid input.
20545continue
20546fi
20547rm -f conftest.err conftest.i conftest.$ac_ext
20548
20549  # OK, works on sane cases.  Now check whether nonexistent headers
20550  # can be detected and how.
20551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552/* end confdefs.h.  */
20553#include <ac_nonexistent.h>
20554_ACEOF
20555if ac_fn_c_try_cpp "$LINENO"
20556then :
20557  # Broken: success on invalid input.
20558continue
20559else $as_nop
20560  # Passes both tests.
20561ac_preproc_ok=:
20562break
20563fi
20564rm -f conftest.err conftest.i conftest.$ac_ext
20565
20566done
20567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20568rm -f conftest.i conftest.err conftest.$ac_ext
20569if $ac_preproc_ok
20570then :
20571  break
20572fi
20573
20574    done
20575    ac_cv_prog_CPP=$CPP
20576
20577fi
20578  CPP=$ac_cv_prog_CPP
20579else
20580  ac_cv_prog_CPP=$CPP
20581fi
20582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20583printf "%s\n" "$CPP" >&6; }
20584ac_preproc_ok=false
20585for ac_c_preproc_warn_flag in '' yes
20586do
20587  # Use a header file that comes with gcc, so configuring glibc
20588  # with a fresh cross-compiler works.
20589  # On the NeXT, cc -E runs the code through the compiler's parser,
20590  # not just through cpp. "Syntax error" is here to catch this case.
20591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592/* end confdefs.h.  */
20593#include <limits.h>
20594		     Syntax error
20595_ACEOF
20596if ac_fn_c_try_cpp "$LINENO"
20597then :
20598
20599else $as_nop
20600  # Broken: fails on valid input.
20601continue
20602fi
20603rm -f conftest.err conftest.i conftest.$ac_ext
20604
20605  # OK, works on sane cases.  Now check whether nonexistent headers
20606  # can be detected and how.
20607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608/* end confdefs.h.  */
20609#include <ac_nonexistent.h>
20610_ACEOF
20611if ac_fn_c_try_cpp "$LINENO"
20612then :
20613  # Broken: success on invalid input.
20614continue
20615else $as_nop
20616  # Passes both tests.
20617ac_preproc_ok=:
20618break
20619fi
20620rm -f conftest.err conftest.i conftest.$ac_ext
20621
20622done
20623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20624rm -f conftest.i conftest.err conftest.$ac_ext
20625if $ac_preproc_ok
20626then :
20627
20628else $as_nop
20629  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20630printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20631as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20632See \`config.log' for more details" "$LINENO" 5; }
20633fi
20634
20635ac_ext=c
20636ac_cpp='$CPP $CPPFLAGS'
20637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642
20643if test -n "$ac_tool_prefix"; then
20644  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20645set dummy ${ac_tool_prefix}cpp; ac_word=$2
20646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647printf %s "checking for $ac_word... " >&6; }
20648if test ${ac_cv_path_RAWCPP+y}
20649then :
20650  printf %s "(cached) " >&6
20651else $as_nop
20652  case $RAWCPP in
20653  [\\/]* | ?:[\\/]*)
20654  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20655  ;;
20656  *)
20657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20658as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20659for as_dir in $as_dummy
20660do
20661  IFS=$as_save_IFS
20662  case $as_dir in #(((
20663    '') as_dir=./ ;;
20664    */) ;;
20665    *) as_dir=$as_dir/ ;;
20666  esac
20667    for ac_exec_ext in '' $ac_executable_extensions; do
20668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20669    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20671    break 2
20672  fi
20673done
20674  done
20675IFS=$as_save_IFS
20676
20677  ;;
20678esac
20679fi
20680RAWCPP=$ac_cv_path_RAWCPP
20681if test -n "$RAWCPP"; then
20682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20683printf "%s\n" "$RAWCPP" >&6; }
20684else
20685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20686printf "%s\n" "no" >&6; }
20687fi
20688
20689
20690fi
20691if test -z "$ac_cv_path_RAWCPP"; then
20692  ac_pt_RAWCPP=$RAWCPP
20693  # Extract the first word of "cpp", so it can be a program name with args.
20694set dummy cpp; ac_word=$2
20695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20696printf %s "checking for $ac_word... " >&6; }
20697if test ${ac_cv_path_ac_pt_RAWCPP+y}
20698then :
20699  printf %s "(cached) " >&6
20700else $as_nop
20701  case $ac_pt_RAWCPP in
20702  [\\/]* | ?:[\\/]*)
20703  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20704  ;;
20705  *)
20706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20707as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20708for as_dir in $as_dummy
20709do
20710  IFS=$as_save_IFS
20711  case $as_dir in #(((
20712    '') as_dir=./ ;;
20713    */) ;;
20714    *) as_dir=$as_dir/ ;;
20715  esac
20716    for ac_exec_ext in '' $ac_executable_extensions; do
20717  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20718    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20720    break 2
20721  fi
20722done
20723  done
20724IFS=$as_save_IFS
20725
20726  ;;
20727esac
20728fi
20729ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20730if test -n "$ac_pt_RAWCPP"; then
20731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20732printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20733else
20734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735printf "%s\n" "no" >&6; }
20736fi
20737
20738  if test "x$ac_pt_RAWCPP" = x; then
20739    RAWCPP="${CPP}"
20740  else
20741    case $cross_compiling:$ac_tool_warned in
20742yes:)
20743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20745ac_tool_warned=yes ;;
20746esac
20747    RAWCPP=$ac_pt_RAWCPP
20748  fi
20749else
20750  RAWCPP="$ac_cv_path_RAWCPP"
20751fi
20752
20753
20754# Check for flag to avoid builtin definitions - assumes unix is predefined,
20755# which is not the best choice for supporting other OS'es, but covers most
20756# of the ones we need for now.
20757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20758printf %s "checking if $RAWCPP requires -undef... " >&6; }
20759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760/* end confdefs.h.  */
20761Does cpp redefine unix ?
20762_ACEOF
20763if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20765printf "%s\n" "no" >&6; }
20766else
20767	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20768		RAWCPPFLAGS=-undef
20769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20770printf "%s\n" "yes" >&6; }
20771	# under Cygwin unix is still defined even with -undef
20772	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20773		RAWCPPFLAGS="-undef -ansi"
20774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20775printf "%s\n" "yes, with -ansi" >&6; }
20776	else
20777		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20778	fi
20779fi
20780rm -f conftest.$ac_ext
20781
20782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20783printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785/* end confdefs.h.  */
20786Does cpp preserve   "whitespace"?
20787_ACEOF
20788if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790printf "%s\n" "no" >&6; }
20791else
20792	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20793		TRADITIONALCPPFLAGS="-traditional"
20794		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796printf "%s\n" "yes" >&6; }
20797	else
20798		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20799	fi
20800fi
20801rm -f conftest.$ac_ext
20802
20803
20804
20805
20806
20807# Preserves the interface, should it be implemented later
20808
20809
20810
20811# Check whether --with-perl was given.
20812if test ${with_perl+y}
20813then :
20814  withval=$with_perl; use_perl=$withval
20815else $as_nop
20816  use_perl=auto
20817fi
20818
20819
20820
20821if test "x$use_perl" = x"auto"; then
20822   # Extract the first word of "perl", so it can be a program name with args.
20823set dummy perl; ac_word=$2
20824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20825printf %s "checking for $ac_word... " >&6; }
20826if test ${ac_cv_path_PERL+y}
20827then :
20828  printf %s "(cached) " >&6
20829else $as_nop
20830  case $PERL in
20831  [\\/]* | ?:[\\/]*)
20832  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20833  ;;
20834  *)
20835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20836for as_dir in $PATH
20837do
20838  IFS=$as_save_IFS
20839  case $as_dir in #(((
20840    '') as_dir=./ ;;
20841    */) ;;
20842    *) as_dir=$as_dir/ ;;
20843  esac
20844    for ac_exec_ext in '' $ac_executable_extensions; do
20845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20846    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20848    break 2
20849  fi
20850done
20851  done
20852IFS=$as_save_IFS
20853
20854  ;;
20855esac
20856fi
20857PERL=$ac_cv_path_PERL
20858if test -n "$PERL"; then
20859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20860printf "%s\n" "$PERL" >&6; }
20861else
20862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863printf "%s\n" "no" >&6; }
20864fi
20865
20866
20867   if test "x$PERL" = "x"; then
20868        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20869printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20870	have_perl=no
20871   else
20872        have_perl=yes
20873   fi
20874elif test "x$use_perl" = x"yes" ; then
20875   # Extract the first word of "perl", so it can be a program name with args.
20876set dummy perl; ac_word=$2
20877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20878printf %s "checking for $ac_word... " >&6; }
20879if test ${ac_cv_path_PERL+y}
20880then :
20881  printf %s "(cached) " >&6
20882else $as_nop
20883  case $PERL in
20884  [\\/]* | ?:[\\/]*)
20885  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20886  ;;
20887  *)
20888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20889for as_dir in $PATH
20890do
20891  IFS=$as_save_IFS
20892  case $as_dir in #(((
20893    '') as_dir=./ ;;
20894    */) ;;
20895    *) as_dir=$as_dir/ ;;
20896  esac
20897    for ac_exec_ext in '' $ac_executable_extensions; do
20898  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20899    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20900    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20901    break 2
20902  fi
20903done
20904  done
20905IFS=$as_save_IFS
20906
20907  ;;
20908esac
20909fi
20910PERL=$ac_cv_path_PERL
20911if test -n "$PERL"; then
20912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20913printf "%s\n" "$PERL" >&6; }
20914else
20915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20916printf "%s\n" "no" >&6; }
20917fi
20918
20919
20920   if test "x$PERL" = "x"; then
20921        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20922   fi
20923   have_perl=yes
20924elif test "x$use_perl" = x"no" ; then
20925   if test "x$PERL" != "x"; then
20926      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20927printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20928   fi
20929   have_perl=no
20930else
20931   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20932fi
20933
20934 if test "$have_perl" = yes; then
20935  HAVE_PERL_TRUE=
20936  HAVE_PERL_FALSE='#'
20937else
20938  HAVE_PERL_TRUE='#'
20939  HAVE_PERL_FALSE=
20940fi
20941
20942
20943
20944# Required when PKG_CHECK_MODULES called within an if statement
20945
20946
20947
20948
20949
20950
20951
20952if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20953	if test -n "$ac_tool_prefix"; then
20954  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20955set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20957printf %s "checking for $ac_word... " >&6; }
20958if test ${ac_cv_path_PKG_CONFIG+y}
20959then :
20960  printf %s "(cached) " >&6
20961else $as_nop
20962  case $PKG_CONFIG in
20963  [\\/]* | ?:[\\/]*)
20964  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20965  ;;
20966  *)
20967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20968for as_dir in $PATH
20969do
20970  IFS=$as_save_IFS
20971  case $as_dir in #(((
20972    '') as_dir=./ ;;
20973    */) ;;
20974    *) as_dir=$as_dir/ ;;
20975  esac
20976    for ac_exec_ext in '' $ac_executable_extensions; do
20977  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20978    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20979    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20980    break 2
20981  fi
20982done
20983  done
20984IFS=$as_save_IFS
20985
20986  ;;
20987esac
20988fi
20989PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20990if test -n "$PKG_CONFIG"; then
20991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20992printf "%s\n" "$PKG_CONFIG" >&6; }
20993else
20994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995printf "%s\n" "no" >&6; }
20996fi
20997
20998
20999fi
21000if test -z "$ac_cv_path_PKG_CONFIG"; then
21001  ac_pt_PKG_CONFIG=$PKG_CONFIG
21002  # Extract the first word of "pkg-config", so it can be a program name with args.
21003set dummy pkg-config; ac_word=$2
21004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21005printf %s "checking for $ac_word... " >&6; }
21006if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21007then :
21008  printf %s "(cached) " >&6
21009else $as_nop
21010  case $ac_pt_PKG_CONFIG in
21011  [\\/]* | ?:[\\/]*)
21012  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21013  ;;
21014  *)
21015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016for as_dir in $PATH
21017do
21018  IFS=$as_save_IFS
21019  case $as_dir in #(((
21020    '') as_dir=./ ;;
21021    */) ;;
21022    *) as_dir=$as_dir/ ;;
21023  esac
21024    for ac_exec_ext in '' $ac_executable_extensions; do
21025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21026    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21028    break 2
21029  fi
21030done
21031  done
21032IFS=$as_save_IFS
21033
21034  ;;
21035esac
21036fi
21037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21038if test -n "$ac_pt_PKG_CONFIG"; then
21039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21040printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21041else
21042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043printf "%s\n" "no" >&6; }
21044fi
21045
21046  if test "x$ac_pt_PKG_CONFIG" = x; then
21047    PKG_CONFIG=""
21048  else
21049    case $cross_compiling:$ac_tool_warned in
21050yes:)
21051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21052printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21053ac_tool_warned=yes ;;
21054esac
21055    PKG_CONFIG=$ac_pt_PKG_CONFIG
21056  fi
21057else
21058  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21059fi
21060
21061fi
21062if test -n "$PKG_CONFIG"; then
21063	_pkg_min_version=0.9.0
21064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21065printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21066	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068printf "%s\n" "yes" >&6; }
21069	else
21070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071printf "%s\n" "no" >&6; }
21072		PKG_CONFIG=""
21073	fi
21074fi
21075
21076if test x"$CC_FOR_BUILD" = x; then
21077	if test x"$cross_compiling" = xyes; then
21078	       for ac_prog in gcc cc
21079do
21080  # Extract the first word of "$ac_prog", so it can be a program name with args.
21081set dummy $ac_prog; ac_word=$2
21082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21083printf %s "checking for $ac_word... " >&6; }
21084if test ${ac_cv_prog_CC_FOR_BUILD+y}
21085then :
21086  printf %s "(cached) " >&6
21087else $as_nop
21088  if test -n "$CC_FOR_BUILD"; then
21089  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
21090else
21091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21092for as_dir in $PATH
21093do
21094  IFS=$as_save_IFS
21095  case $as_dir in #(((
21096    '') as_dir=./ ;;
21097    */) ;;
21098    *) as_dir=$as_dir/ ;;
21099  esac
21100    for ac_exec_ext in '' $ac_executable_extensions; do
21101  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21102    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
21103    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21104    break 2
21105  fi
21106done
21107  done
21108IFS=$as_save_IFS
21109
21110fi
21111fi
21112CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
21113if test -n "$CC_FOR_BUILD"; then
21114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
21115printf "%s\n" "$CC_FOR_BUILD" >&6; }
21116else
21117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118printf "%s\n" "no" >&6; }
21119fi
21120
21121
21122  test -n "$CC_FOR_BUILD" && break
21123done
21124
21125	else
21126	       CC_FOR_BUILD="$CC"
21127	fi
21128fi
21129
21130
21131if test x"$CPPFLAGS_FOR_BUILD" = x; then
21132	if test ! x"$cross_compiling" = xyes; then
21133		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
21134	fi
21135fi
21136
21137
21138if test x"$CFLAGS_FOR_BUILD" = x; then
21139	if test ! x"$cross_compiling" = xyes; then
21140		CFLAGS_FOR_BUILD=${CFLAGS}
21141	fi
21142fi
21143
21144
21145if test x"$LDFLAGS_FOR_BUILD" = x; then
21146	if test ! x"$cross_compiling" = xyes; then
21147		LDFLAGS_FOR_BUILD=${LDFLAGS}
21148	fi
21149fi
21150
21151
21152if test x"$EXEEXT_FOR_BUILD" = x; then
21153	if test x"$cross_compiling" = xno; then
21154		EXEEXT_FOR_BUILD=${EXEEXT}
21155	fi
21156	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
21157fi
21158
21159
21160# Checks for pkg-config packages
21161
21162# Always required
21163X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
21164X11_EXTRA_DEPS="xcb >= 1.11.1"
21165
21166
21167
21168
21169
21170
21171
21172
21173if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21174	if test -n "$ac_tool_prefix"; then
21175  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21178printf %s "checking for $ac_word... " >&6; }
21179if test ${ac_cv_path_PKG_CONFIG+y}
21180then :
21181  printf %s "(cached) " >&6
21182else $as_nop
21183  case $PKG_CONFIG in
21184  [\\/]* | ?:[\\/]*)
21185  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21186  ;;
21187  *)
21188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21189for as_dir in $PATH
21190do
21191  IFS=$as_save_IFS
21192  case $as_dir in #(((
21193    '') as_dir=./ ;;
21194    */) ;;
21195    *) as_dir=$as_dir/ ;;
21196  esac
21197    for ac_exec_ext in '' $ac_executable_extensions; do
21198  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21199    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21200    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21201    break 2
21202  fi
21203done
21204  done
21205IFS=$as_save_IFS
21206
21207  ;;
21208esac
21209fi
21210PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21211if test -n "$PKG_CONFIG"; then
21212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21213printf "%s\n" "$PKG_CONFIG" >&6; }
21214else
21215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21216printf "%s\n" "no" >&6; }
21217fi
21218
21219
21220fi
21221if test -z "$ac_cv_path_PKG_CONFIG"; then
21222  ac_pt_PKG_CONFIG=$PKG_CONFIG
21223  # Extract the first word of "pkg-config", so it can be a program name with args.
21224set dummy pkg-config; ac_word=$2
21225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21226printf %s "checking for $ac_word... " >&6; }
21227if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21228then :
21229  printf %s "(cached) " >&6
21230else $as_nop
21231  case $ac_pt_PKG_CONFIG in
21232  [\\/]* | ?:[\\/]*)
21233  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21234  ;;
21235  *)
21236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237for as_dir in $PATH
21238do
21239  IFS=$as_save_IFS
21240  case $as_dir in #(((
21241    '') as_dir=./ ;;
21242    */) ;;
21243    *) as_dir=$as_dir/ ;;
21244  esac
21245    for ac_exec_ext in '' $ac_executable_extensions; do
21246  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21247    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21248    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21249    break 2
21250  fi
21251done
21252  done
21253IFS=$as_save_IFS
21254
21255  ;;
21256esac
21257fi
21258ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21259if test -n "$ac_pt_PKG_CONFIG"; then
21260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21261printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21262else
21263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21264printf "%s\n" "no" >&6; }
21265fi
21266
21267  if test "x$ac_pt_PKG_CONFIG" = x; then
21268    PKG_CONFIG=""
21269  else
21270    case $cross_compiling:$ac_tool_warned in
21271yes:)
21272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21274ac_tool_warned=yes ;;
21275esac
21276    PKG_CONFIG=$ac_pt_PKG_CONFIG
21277  fi
21278else
21279  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21280fi
21281
21282fi
21283if test -n "$PKG_CONFIG"; then
21284	_pkg_min_version=0.9.0
21285	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21286printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21287	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21289printf "%s\n" "yes" >&6; }
21290	else
21291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21292printf "%s\n" "no" >&6; }
21293		PKG_CONFIG=""
21294	fi
21295fi
21296
21297
21298
21299# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
21300# was not expanded, since libX11 with no transport types is rather useless.
21301#
21302# If you're seeing an error here, be sure you installed the lib/xtrans module
21303# first and if it's not in the default location, that you set the ACLOCAL
21304# environment variable to find it, such as:
21305#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
21306
21307
21308# Transport selection macro from xtrans.m4
21309
21310
21311 case $host_os in
21312	mingw*)	unixdef="no"   ;;
21313	*)	unixdef="yes"  ;;
21314 esac
21315 # Check whether --enable-unix-transport was given.
21316if test ${enable_unix_transport+y}
21317then :
21318  enableval=$enable_unix_transport; UNIXCONN=$enableval
21319else $as_nop
21320  UNIXCONN=$unixdef
21321fi
21322
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21324printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21325 if test "$UNIXCONN" = "yes"; then
21326
21327printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21328
21329 fi
21330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21331printf "%s\n" "$UNIXCONN" >&6; }
21332 # Check whether --enable-tcp-transport was given.
21333if test ${enable_tcp_transport+y}
21334then :
21335  enableval=$enable_tcp_transport; TCPCONN=$enableval
21336else $as_nop
21337  TCPCONN=yes
21338fi
21339
21340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21341printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21343printf "%s\n" "$TCPCONN" >&6; }
21344 if test "$TCPCONN" = "yes"; then
21345
21346printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21347
21348
21349 # SVR4 hides these in libraries other than libc
21350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21351printf %s "checking for library containing socket... " >&6; }
21352if test ${ac_cv_search_socket+y}
21353then :
21354  printf %s "(cached) " >&6
21355else $as_nop
21356  ac_func_search_save_LIBS=$LIBS
21357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21358/* end confdefs.h.  */
21359
21360/* Override any GCC internal prototype to avoid an error.
21361   Use char because int might match the return type of a GCC
21362   builtin and then its argument prototype would still apply.  */
21363char socket ();
21364int
21365main (void)
21366{
21367return socket ();
21368  ;
21369  return 0;
21370}
21371_ACEOF
21372for ac_lib in '' socket
21373do
21374  if test -z "$ac_lib"; then
21375    ac_res="none required"
21376  else
21377    ac_res=-l$ac_lib
21378    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21379  fi
21380  if ac_fn_c_try_link "$LINENO"
21381then :
21382  ac_cv_search_socket=$ac_res
21383fi
21384rm -f core conftest.err conftest.$ac_objext conftest.beam \
21385    conftest$ac_exeext
21386  if test ${ac_cv_search_socket+y}
21387then :
21388  break
21389fi
21390done
21391if test ${ac_cv_search_socket+y}
21392then :
21393
21394else $as_nop
21395  ac_cv_search_socket=no
21396fi
21397rm conftest.$ac_ext
21398LIBS=$ac_func_search_save_LIBS
21399fi
21400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21401printf "%s\n" "$ac_cv_search_socket" >&6; }
21402ac_res=$ac_cv_search_socket
21403if test "$ac_res" != no
21404then :
21405  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21406
21407fi
21408
21409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21410printf %s "checking for library containing gethostbyname... " >&6; }
21411if test ${ac_cv_search_gethostbyname+y}
21412then :
21413  printf %s "(cached) " >&6
21414else $as_nop
21415  ac_func_search_save_LIBS=$LIBS
21416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417/* end confdefs.h.  */
21418
21419/* Override any GCC internal prototype to avoid an error.
21420   Use char because int might match the return type of a GCC
21421   builtin and then its argument prototype would still apply.  */
21422char gethostbyname ();
21423int
21424main (void)
21425{
21426return gethostbyname ();
21427  ;
21428  return 0;
21429}
21430_ACEOF
21431for ac_lib in '' nsl
21432do
21433  if test -z "$ac_lib"; then
21434    ac_res="none required"
21435  else
21436    ac_res=-l$ac_lib
21437    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21438  fi
21439  if ac_fn_c_try_link "$LINENO"
21440then :
21441  ac_cv_search_gethostbyname=$ac_res
21442fi
21443rm -f core conftest.err conftest.$ac_objext conftest.beam \
21444    conftest$ac_exeext
21445  if test ${ac_cv_search_gethostbyname+y}
21446then :
21447  break
21448fi
21449done
21450if test ${ac_cv_search_gethostbyname+y}
21451then :
21452
21453else $as_nop
21454  ac_cv_search_gethostbyname=no
21455fi
21456rm conftest.$ac_ext
21457LIBS=$ac_func_search_save_LIBS
21458fi
21459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21460printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21461ac_res=$ac_cv_search_gethostbyname
21462if test "$ac_res" != no
21463then :
21464  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21465
21466fi
21467
21468 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21470printf %s "checking for main in -lws2_32... " >&6; }
21471if test ${ac_cv_lib_ws2_32_main+y}
21472then :
21473  printf %s "(cached) " >&6
21474else $as_nop
21475  ac_check_lib_save_LIBS=$LIBS
21476LIBS="-lws2_32  $LIBS"
21477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478/* end confdefs.h.  */
21479
21480
21481int
21482main (void)
21483{
21484return main ();
21485  ;
21486  return 0;
21487}
21488_ACEOF
21489if ac_fn_c_try_link "$LINENO"
21490then :
21491  ac_cv_lib_ws2_32_main=yes
21492else $as_nop
21493  ac_cv_lib_ws2_32_main=no
21494fi
21495rm -f core conftest.err conftest.$ac_objext conftest.beam \
21496    conftest$ac_exeext conftest.$ac_ext
21497LIBS=$ac_check_lib_save_LIBS
21498fi
21499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21500printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21501if test "x$ac_cv_lib_ws2_32_main" = xyes
21502then :
21503  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21504
21505  LIBS="-lws2_32 $LIBS"
21506
21507fi
21508
21509 fi
21510
21511 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21512 # Check whether --enable-ipv6 was given.
21513if test ${enable_ipv6+y}
21514then :
21515  enableval=$enable_ipv6; IPV6CONN=$enableval
21516else $as_nop
21517  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21518if test "x$ac_cv_func_getaddrinfo" = xyes
21519then :
21520  IPV6CONN=yes
21521else $as_nop
21522  IPV6CONN=no
21523fi
21524
21525fi
21526
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21528printf %s "checking if IPv6 support should be built... " >&6; }
21529 if test "$IPV6CONN" = "yes"; then
21530
21531printf "%s\n" "#define IPv6 1" >>confdefs.h
21532
21533 fi
21534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21535printf "%s\n" "$IPV6CONN" >&6; }
21536
21537 # 4.3BSD-Reno added a new member to struct sockaddr_in
21538 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21539#include <sys/types.h>
21540#include <sys/socket.h>
21541#include <netinet/in.h>
21542
21543"
21544if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21545then :
21546
21547printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21548
21549fi
21550
21551
21552 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21553 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21554$ac_includes_default
21555#include <sys/socket.h>
21556"
21557if test "x$ac_cv_type_socklen_t" = xyes
21558then :
21559
21560printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21561
21562
21563fi
21564
21565
21566 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21567 # _XOPEN_SOURCE to get it (such as on Solaris)
21568 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21569$ac_includes_default
21570#include <sys/socket.h>
21571
21572"
21573if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21574then :
21575
21576fi
21577
21578 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21579 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21580     unset ac_cv_member_struct_msghdr_msg_control
21581     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21582printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21583     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21584#define _XOPEN_SOURCE 600
21585$ac_includes_default
21586#include <sys/socket.h>
21587
21588"
21589if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21590then :
21591
21592printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21593
21594
21595fi
21596
21597 fi
21598 # If that didn't work, fall back to XPG5/UNIX98 with C89
21599 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21600     unset ac_cv_member_struct_msghdr_msg_control
21601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21602printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21603     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21604#define _XOPEN_SOURCE 500
21605$ac_includes_default
21606#include <sys/socket.h>
21607
21608"
21609if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21610then :
21611
21612printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21613
21614
21615fi
21616
21617 fi
21618
21619
21620
21621 fi
21622 case $host_os in
21623	solaris*)		localdef="yes" ;;
21624	*)			localdef="no"  ;;
21625 esac
21626 # Check whether --enable-local-transport was given.
21627if test ${enable_local_transport+y}
21628then :
21629  enableval=$enable_local_transport; LOCALCONN=$enableval
21630else $as_nop
21631  LOCALCONN=$localdef
21632fi
21633
21634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21635printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21637printf "%s\n" "$LOCALCONN" >&6; }
21638 if test "$LOCALCONN" = "yes"; then
21639
21640printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21641
21642 fi
21643
21644 # Other functions Xtrans may need
21645 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21646if test "x$ac_cv_func_strcasecmp" = xyes
21647then :
21648  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21649
21650fi
21651ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21652if test "x$ac_cv_func_strlcpy" = xyes
21653then :
21654  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21655
21656fi
21657
21658
21659
21660
21661# Check for dlopen
21662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
21663printf %s "checking if run-time linking is supported... " >&6; }
21664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21665printf %s "checking for library containing dlopen... " >&6; }
21666if test ${ac_cv_search_dlopen+y}
21667then :
21668  printf %s "(cached) " >&6
21669else $as_nop
21670  ac_func_search_save_LIBS=$LIBS
21671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21672/* end confdefs.h.  */
21673
21674/* Override any GCC internal prototype to avoid an error.
21675   Use char because int might match the return type of a GCC
21676   builtin and then its argument prototype would still apply.  */
21677char dlopen ();
21678int
21679main (void)
21680{
21681return dlopen ();
21682  ;
21683  return 0;
21684}
21685_ACEOF
21686for ac_lib in '' dl svld
21687do
21688  if test -z "$ac_lib"; then
21689    ac_res="none required"
21690  else
21691    ac_res=-l$ac_lib
21692    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21693  fi
21694  if ac_fn_c_try_link "$LINENO"
21695then :
21696  ac_cv_search_dlopen=$ac_res
21697fi
21698rm -f core conftest.err conftest.$ac_objext conftest.beam \
21699    conftest$ac_exeext
21700  if test ${ac_cv_search_dlopen+y}
21701then :
21702  break
21703fi
21704done
21705if test ${ac_cv_search_dlopen+y}
21706then :
21707
21708else $as_nop
21709  ac_cv_search_dlopen=no
21710fi
21711rm conftest.$ac_ext
21712LIBS=$ac_func_search_save_LIBS
21713fi
21714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21715printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21716ac_res=$ac_cv_search_dlopen
21717if test "$ac_res" != no
21718then :
21719  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21720
21721fi
21722
21723if test "x$ac_cv_search_dlopen" = xno; then
21724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
21725printf %s "checking for library containing shl_load... " >&6; }
21726if test ${ac_cv_search_shl_load+y}
21727then :
21728  printf %s "(cached) " >&6
21729else $as_nop
21730  ac_func_search_save_LIBS=$LIBS
21731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732/* end confdefs.h.  */
21733
21734/* Override any GCC internal prototype to avoid an error.
21735   Use char because int might match the return type of a GCC
21736   builtin and then its argument prototype would still apply.  */
21737char shl_load ();
21738int
21739main (void)
21740{
21741return shl_load ();
21742  ;
21743  return 0;
21744}
21745_ACEOF
21746for ac_lib in '' dld
21747do
21748  if test -z "$ac_lib"; then
21749    ac_res="none required"
21750  else
21751    ac_res=-l$ac_lib
21752    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21753  fi
21754  if ac_fn_c_try_link "$LINENO"
21755then :
21756  ac_cv_search_shl_load=$ac_res
21757fi
21758rm -f core conftest.err conftest.$ac_objext conftest.beam \
21759    conftest$ac_exeext
21760  if test ${ac_cv_search_shl_load+y}
21761then :
21762  break
21763fi
21764done
21765if test ${ac_cv_search_shl_load+y}
21766then :
21767
21768else $as_nop
21769  ac_cv_search_shl_load=no
21770fi
21771rm conftest.$ac_ext
21772LIBS=$ac_func_search_save_LIBS
21773fi
21774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
21775printf "%s\n" "$ac_cv_search_shl_load" >&6; }
21776ac_res=$ac_cv_search_shl_load
21777if test "$ac_res" != no
21778then :
21779  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21780
21781fi
21782
21783	if test "x$ac_cv_search_shl_load" != xno; then
21784
21785printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
21786
21787		ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21788if test "x$ac_cv_header_dl_h" = xyes
21789then :
21790  printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21791
21792fi
21793
21794	fi
21795else
21796
21797printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
21798
21799	ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21800if test "x$ac_cv_header_dlfcn_h" = xyes
21801then :
21802  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
21803
21804fi
21805
21806fi
21807if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
21808	HAVE_LOADABLE_MODULES=yes
21809else
21810	HAVE_LOADABLE_MODULES=no
21811fi
21812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
21813printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
21814
21815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
21816printf %s "checking if loadable i18n module support should be enabled... " >&6; }
21817# Check whether --enable-loadable-i18n was given.
21818if test ${enable_loadable_i18n+y}
21819then :
21820  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
21821else $as_nop
21822  XLIB_LOADABLE_I18N="no"
21823fi
21824
21825if test x$XLIB_LOADABLE_I18N = xyes; then
21826	if test x$HAVE_LOADABLE_MODULES = xno; then
21827		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
21828	fi
21829
21830printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
21831
21832	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
21833
21834fi
21835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
21836printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
21837
21838 if test x$XLIB_LOADABLE_I18N = xyes; then
21839  XLIB_LOADABLE_I18N_TRUE=
21840  XLIB_LOADABLE_I18N_FALSE='#'
21841else
21842  XLIB_LOADABLE_I18N_TRUE='#'
21843  XLIB_LOADABLE_I18N_FALSE=
21844fi
21845
21846
21847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
21848printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
21849# Check whether --enable-loadable-xcursor was given.
21850if test ${enable_loadable_xcursor+y}
21851then :
21852  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
21853else $as_nop
21854  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
21855fi
21856
21857if test x$XLIB_LOADABLE_XCURSOR = xyes; then
21858
21859printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
21860
21861fi
21862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
21863printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
21864
21865# Check whether --enable-thread-safety-constructor was given.
21866if test ${enable_thread_safety_constructor+y}
21867then :
21868  enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
21869else $as_nop
21870  USE_THREAD_SAFETY_CONSTRUCTOR="yes"
21871fi
21872
21873if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
21874
21875printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
21876
21877fi
21878
21879# Checks for header files.
21880ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
21881if test "x$ac_cv_header_sys_filio_h" = xyes
21882then :
21883  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21884
21885fi
21886ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
21887if test "x$ac_cv_header_sys_select_h" = xyes
21888then :
21889  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21890
21891fi
21892ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21893if test "x$ac_cv_header_sys_ioctl_h" = xyes
21894then :
21895  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21896
21897fi
21898ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21899if test "x$ac_cv_header_sys_socket_h" = xyes
21900then :
21901  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21902
21903fi
21904
21905
21906# Checks for typedefs, structures, and compiler characteristics.
21907
21908
21909
21910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
21911printf %s "checking for __builtin_popcountl... " >&6; }
21912if test ${ax_cv_have___builtin_popcountl+y}
21913then :
21914  printf %s "(cached) " >&6
21915else $as_nop
21916
21917        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918/* end confdefs.h.  */
21919
21920int
21921main (void)
21922{
21923
21924            __builtin_popcountl(0)
21925
21926  ;
21927  return 0;
21928}
21929_ACEOF
21930if ac_fn_c_try_link "$LINENO"
21931then :
21932  ax_cv_have___builtin_popcountl=yes
21933else $as_nop
21934  ax_cv_have___builtin_popcountl=no
21935fi
21936rm -f core conftest.err conftest.$ac_objext conftest.beam \
21937    conftest$ac_exeext conftest.$ac_ext
21938
21939fi
21940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
21941printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
21942
21943    if test yes = $ax_cv_have___builtin_popcountl
21944then :
21945
21946printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
21947
21948fi
21949
21950
21951
21952
21953# Checks for library functions.
21954ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
21955if test "x$ac_cv_func_strtol" = xyes
21956then :
21957  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
21958
21959fi
21960ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
21961if test "x$ac_cv_func_seteuid" = xyes
21962then :
21963  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
21964
21965fi
21966
21967ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21968if test "x$ac_cv_func_reallocarray" = xyes
21969then :
21970  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21971
21972else $as_nop
21973  case " $LIBOBJS " in
21974  *" reallocarray.$ac_objext "* ) ;;
21975  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21976 ;;
21977esac
21978
21979fi
21980
21981# Used in lcFile.c (see also --enable-xlocaledir settings below)
21982XLOCALEDIR_IS_SAFE="no"
21983ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21984if test "x$ac_cv_have_decl_issetugid" = xyes
21985then :
21986
21987fi
21988ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21989if test "x$ac_cv_func_issetugid" = xyes
21990then :
21991
21992fi
21993
21994if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
21995    XLOCALEDIR_IS_SAFE="yes"
21996
21997printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
21998
21999fi
22000ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
22001if test "x$ac_cv_func_getresuid" = xyes
22002then :
22003  XLOCALEDIR_IS_SAFE="yes"
22004
22005printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
22006
22007fi
22008
22009# Used in Font.c
22010ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22011if test "x$ac_cv_func_shmat" = xyes
22012then :
22013
22014printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
22015
22016fi
22017
22018
22019# Checks for system services
22020# AC_PATH_XTRA
22021
22022# arch specific things
22023WCHAR32="1"
22024case $host_os in
22025  os2*) os2="true" ; WCHAR32="0" ;;
22026  *) ;;
22027esac
22028
22029
22030 if test x$os2 = xtrue; then
22031  OS2_TRUE=
22032  OS2_FALSE='#'
22033else
22034  OS2_TRUE='#'
22035  OS2_FALSE=
22036fi
22037
22038
22039
22040# Check whether --with-launchd was given.
22041if test ${with_launchd+y}
22042then :
22043  withval=$with_launchd; LAUNCHD=$withval
22044else $as_nop
22045  LAUNCHD=auto
22046fi
22047
22048if test "x$LAUNCHD" = xauto; then
22049	unset LAUNCHD
22050	# Extract the first word of "launchd", so it can be a program name with args.
22051set dummy launchd; ac_word=$2
22052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22053printf %s "checking for $ac_word... " >&6; }
22054if test ${ac_cv_prog_LAUNCHD+y}
22055then :
22056  printf %s "(cached) " >&6
22057else $as_nop
22058  if test -n "$LAUNCHD"; then
22059  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22060else
22061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22062for as_dir in $PATH$PATH_SEPARATOR/sbin
22063do
22064  IFS=$as_save_IFS
22065  case $as_dir in #(((
22066    '') as_dir=./ ;;
22067    */) ;;
22068    *) as_dir=$as_dir/ ;;
22069  esac
22070    for ac_exec_ext in '' $ac_executable_extensions; do
22071  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22072    ac_cv_prog_LAUNCHD="yes"
22073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22074    break 2
22075  fi
22076done
22077  done
22078IFS=$as_save_IFS
22079
22080  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22081fi
22082fi
22083LAUNCHD=$ac_cv_prog_LAUNCHD
22084if test -n "$LAUNCHD"; then
22085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
22086printf "%s\n" "$LAUNCHD" >&6; }
22087else
22088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089printf "%s\n" "no" >&6; }
22090fi
22091
22092
22093fi
22094
22095if test "x$LAUNCHD" = xyes ; then
22096
22097printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
22098
22099
22100printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
22101
22102fi
22103
22104# Check whether --enable-xthreads was given.
22105if test ${enable_xthreads+y}
22106then :
22107  enableval=$enable_xthreads; xthreads=$enableval
22108else $as_nop
22109  xthreads=yes
22110fi
22111
22112
22113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
22114printf %s "checking for getpwuid_r in -lc... " >&6; }
22115if test ${ac_cv_lib_c_getpwuid_r+y}
22116then :
22117  printf %s "(cached) " >&6
22118else $as_nop
22119  ac_check_lib_save_LIBS=$LIBS
22120LIBS="-lc  $LIBS"
22121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122/* end confdefs.h.  */
22123
22124/* Override any GCC internal prototype to avoid an error.
22125   Use char because int might match the return type of a GCC
22126   builtin and then its argument prototype would still apply.  */
22127char getpwuid_r ();
22128int
22129main (void)
22130{
22131return getpwuid_r ();
22132  ;
22133  return 0;
22134}
22135_ACEOF
22136if ac_fn_c_try_link "$LINENO"
22137then :
22138  ac_cv_lib_c_getpwuid_r=yes
22139else $as_nop
22140  ac_cv_lib_c_getpwuid_r=no
22141fi
22142rm -f core conftest.err conftest.$ac_objext conftest.beam \
22143    conftest$ac_exeext conftest.$ac_ext
22144LIBS=$ac_check_lib_save_LIBS
22145fi
22146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
22147printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
22148if test "x$ac_cv_lib_c_getpwuid_r" = xyes
22149then :
22150  mtsafeapi="yes"
22151else $as_nop
22152  mtsafeapi="no"
22153fi
22154
22155
22156case x$xthreads in
22157xyes)
22158
22159printf "%s\n" "#define XTHREADS 1" >>confdefs.h
22160
22161	if test x$mtsafeapi = xyes
22162	then
22163
22164printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
22165
22166	fi
22167	;;
22168*)
22169	;;
22170esac
22171
22172# XXX incomplete, please fill this in
22173if test x$xthreads = xyes ; then
22174    case $host_os in
22175    linux*|gnu*|k*bsd*-gnu)
22176        XTHREADLIB=-lpthread ;;
22177    netbsd*)
22178	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22179	XTHREADLIB="-lpthread" ;;
22180    freebsd*)
22181        XTHREAD_CFLAGS="-D_THREAD_SAFE"
22182        XTHREADLIB="-pthread" ;;
22183    dragonfly*|openbsd*)
22184        XTHREADLIB="-pthread" ;;
22185    solaris*)
22186	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22187    esac
22188fi
22189
22190
22191
22192if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
22193    USE_THREAD_LIBS="$XTHREADLIB"
22194else
22195    # This should be kept in sync with libxcb
22196    case $host_os in
22197    linux*|darwin*|solaris*) ;;
22198         *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;;
22199    esac
22200fi
22201
22202
22203ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22204if test "x$ac_cv_func_poll" = xyes
22205then :
22206
22207printf "%s\n" "#define USE_POLL 1" >>confdefs.h
22208
22209fi
22210
22211
22212#
22213# Find keysymdef.h
22214#
22215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
22216printf %s "checking keysym definitions... " >&6; }
22217
22218# Check whether --with-keysymdefdir was given.
22219if test ${with_keysymdefdir+y}
22220then :
22221  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
22222else $as_nop
22223  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
22224fi
22225
22226
22227if test ! -d "$KEYSYMDEFDIR"; then
22228	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
22229fi
22230
22231FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
22232for i in $FILES; do
22233    if test -f "$KEYSYMDEFDIR/$i"; then
22234            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
22235    elif test "x$i" = "xkeysymdef.h"; then
22236	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
22237    fi
22238done
22239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
22240printf "%s\n" "$KEYSYMDEFS" >&6; }
22241
22242
22243# Check whether --enable-xcms was given.
22244if test ${enable_xcms+y}
22245then :
22246  enableval=$enable_xcms; XCMS=$enableval
22247else $as_nop
22248  XCMS=yes
22249fi
22250
22251 if test x$XCMS = xyes ; then
22252  XCMS_TRUE=
22253  XCMS_FALSE='#'
22254else
22255  XCMS_TRUE='#'
22256  XCMS_FALSE=
22257fi
22258
22259if test x"$XCMS" = "xyes"; then
22260
22261printf "%s\n" "#define XCMS 1" >>confdefs.h
22262
22263fi
22264
22265# Check whether --enable-xlocale was given.
22266if test ${enable_xlocale+y}
22267then :
22268  enableval=$enable_xlocale; XLOCALE=$enableval
22269else $as_nop
22270  XLOCALE=yes
22271fi
22272
22273
22274 if  test x$XLOCALE = xyes ; then
22275  XLOCALE_TRUE=
22276  XLOCALE_FALSE='#'
22277else
22278  XLOCALE_TRUE='#'
22279  XLOCALE_FALSE=
22280fi
22281
22282if test x"$XLOCALE" = "xyes"; then
22283
22284printf "%s\n" "#define XLOCALE 1" >>confdefs.h
22285
22286fi
22287
22288# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
22289# don't have either issetugid() or getresuid(), and you need to protect
22290# clients that are setgid or setuid to an id other than 0.
22291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
22292printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
22293# Check whether --enable-xlocaledir was given.
22294if test ${enable_xlocaledir+y}
22295then :
22296  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
22297else $as_nop
22298  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
22299fi
22300
22301if test "x$ENABLE_XLOCALEDIR" = "xno"; then
22302
22303printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
22304
22305fi
22306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
22307printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
22308
22309# Check whether --enable-xf86bigfont was given.
22310if test ${enable_xf86bigfont+y}
22311then :
22312  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
22313else $as_nop
22314  XF86BIGFONT="yes"
22315fi
22316
22317if test "x$XF86BIGFONT" = "xyes"; then
22318
22319pkg_failed=no
22320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
22321printf %s "checking for BIGFONT... " >&6; }
22322
22323if test -n "$BIGFONT_CFLAGS"; then
22324    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
22325 elif test -n "$PKG_CONFIG"; then
22326    if test -n "$PKG_CONFIG" && \
22327    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22328  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22329  ac_status=$?
22330  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22331  test $ac_status = 0; }; then
22332  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22333		      test "x$?" != "x0" && pkg_failed=yes
22334else
22335  pkg_failed=yes
22336fi
22337 else
22338    pkg_failed=untried
22339fi
22340if test -n "$BIGFONT_LIBS"; then
22341    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
22342 elif test -n "$PKG_CONFIG"; then
22343    if test -n "$PKG_CONFIG" && \
22344    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22345  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22346  ac_status=$?
22347  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22348  test $ac_status = 0; }; then
22349  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22350		      test "x$?" != "x0" && pkg_failed=yes
22351else
22352  pkg_failed=yes
22353fi
22354 else
22355    pkg_failed=untried
22356fi
22357
22358
22359
22360if test $pkg_failed = yes; then
22361   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22362printf "%s\n" "no" >&6; }
22363
22364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22365        _pkg_short_errors_supported=yes
22366else
22367        _pkg_short_errors_supported=no
22368fi
22369        if test $_pkg_short_errors_supported = yes; then
22370	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22371        else
22372	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22373        fi
22374	# Put the nasty error message in config.log where it belongs
22375	echo "$BIGFONT_PKG_ERRORS" >&5
22376
22377	XF86BIGFONT="no"
22378elif test $pkg_failed = untried; then
22379     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22380printf "%s\n" "no" >&6; }
22381	XF86BIGFONT="no"
22382else
22383	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
22384	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
22385        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22386printf "%s\n" "yes" >&6; }
22387
22388printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
22389
22390fi
22391fi
22392
22393# Check whether --enable-xkb was given.
22394if test ${enable_xkb+y}
22395then :
22396  enableval=$enable_xkb; XKB=$enableval
22397else $as_nop
22398  XKB=yes
22399fi
22400
22401
22402 if  test x$XKB = xyes ; then
22403  XKB_TRUE=
22404  XKB_FALSE='#'
22405else
22406  XKB_TRUE='#'
22407  XKB_FALSE=
22408fi
22409
22410if test x"$XKB" = "xyes"; then
22411   XKBPROTO_REQUIRES="kbproto"
22412   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
22413
22414printf "%s\n" "#define XKB 1" >>confdefs.h
22415
22416else
22417   XKBPROTO_REQUIRES=""
22418fi
22419
22420
22421
22422ac_func=
22423for ac_item in $ac_func_c_list
22424do
22425  if test $ac_func; then
22426    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22427    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22428      echo "#define $ac_item 1" >> confdefs.h
22429    fi
22430    ac_func=
22431  else
22432    ac_func=$ac_item
22433  fi
22434done
22435
22436
22437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22438printf %s "checking for working mmap... " >&6; }
22439if test ${ac_cv_func_mmap_fixed_mapped+y}
22440then :
22441  printf %s "(cached) " >&6
22442else $as_nop
22443  if test "$cross_compiling" = yes
22444then :
22445  case "$host_os" in # ((
22446			  # Guess yes on platforms where we know the result.
22447		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
22448			  # If we don't know, assume the worst.
22449		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
22450		esac
22451else $as_nop
22452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453/* end confdefs.h.  */
22454$ac_includes_default
22455/* malloc might have been renamed as rpl_malloc. */
22456#undef malloc
22457
22458/* Thanks to Mike Haertel and Jim Avera for this test.
22459   Here is a matrix of mmap possibilities:
22460	mmap private not fixed
22461	mmap private fixed at somewhere currently unmapped
22462	mmap private fixed at somewhere already mapped
22463	mmap shared not fixed
22464	mmap shared fixed at somewhere currently unmapped
22465	mmap shared fixed at somewhere already mapped
22466   For private mappings, we should verify that changes cannot be read()
22467   back from the file, nor mmap's back from the file at a different
22468   address.  (There have been systems where private was not correctly
22469   implemented like the infamous i386 svr4.0, and systems where the
22470   VM page cache was not coherent with the file system buffer cache
22471   like early versions of FreeBSD and possibly contemporary NetBSD.)
22472   For shared mappings, we should conversely verify that changes get
22473   propagated back to all the places they're supposed to be.
22474
22475   Grep wants private fixed already mapped.
22476   The main things grep needs to know about mmap are:
22477   * does it exist and is it safe to write into the mmap'd area
22478   * how to use it (BSD variants)  */
22479
22480#include <fcntl.h>
22481#include <sys/mman.h>
22482
22483/* This mess was copied from the GNU getpagesize.h.  */
22484#ifndef HAVE_GETPAGESIZE
22485# ifdef _SC_PAGESIZE
22486#  define getpagesize() sysconf(_SC_PAGESIZE)
22487# else /* no _SC_PAGESIZE */
22488#  ifdef HAVE_SYS_PARAM_H
22489#   include <sys/param.h>
22490#   ifdef EXEC_PAGESIZE
22491#    define getpagesize() EXEC_PAGESIZE
22492#   else /* no EXEC_PAGESIZE */
22493#    ifdef NBPG
22494#     define getpagesize() NBPG * CLSIZE
22495#     ifndef CLSIZE
22496#      define CLSIZE 1
22497#     endif /* no CLSIZE */
22498#    else /* no NBPG */
22499#     ifdef NBPC
22500#      define getpagesize() NBPC
22501#     else /* no NBPC */
22502#      ifdef PAGESIZE
22503#       define getpagesize() PAGESIZE
22504#      endif /* PAGESIZE */
22505#     endif /* no NBPC */
22506#    endif /* no NBPG */
22507#   endif /* no EXEC_PAGESIZE */
22508#  else /* no HAVE_SYS_PARAM_H */
22509#   define getpagesize() 8192	/* punt totally */
22510#  endif /* no HAVE_SYS_PARAM_H */
22511# endif /* no _SC_PAGESIZE */
22512
22513#endif /* no HAVE_GETPAGESIZE */
22514
22515int
22516main (void)
22517{
22518  char *data, *data2, *data3;
22519  const char *cdata2;
22520  int i, pagesize;
22521  int fd, fd2;
22522
22523  pagesize = getpagesize ();
22524
22525  /* First, make a file with some known garbage in it. */
22526  data = (char *) malloc (pagesize);
22527  if (!data)
22528    return 1;
22529  for (i = 0; i < pagesize; ++i)
22530    *(data + i) = rand ();
22531  umask (0);
22532  fd = creat ("conftest.mmap", 0600);
22533  if (fd < 0)
22534    return 2;
22535  if (write (fd, data, pagesize) != pagesize)
22536    return 3;
22537  close (fd);
22538
22539  /* Next, check that the tail of a page is zero-filled.  File must have
22540     non-zero length, otherwise we risk SIGBUS for entire page.  */
22541  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22542  if (fd2 < 0)
22543    return 4;
22544  cdata2 = "";
22545  if (write (fd2, cdata2, 1) != 1)
22546    return 5;
22547  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22548  if (data2 == MAP_FAILED)
22549    return 6;
22550  for (i = 0; i < pagesize; ++i)
22551    if (*(data2 + i))
22552      return 7;
22553  close (fd2);
22554  if (munmap (data2, pagesize))
22555    return 8;
22556
22557  /* Next, try to mmap the file at a fixed address which already has
22558     something else allocated at it.  If we can, also make sure that
22559     we see the same garbage.  */
22560  fd = open ("conftest.mmap", O_RDWR);
22561  if (fd < 0)
22562    return 9;
22563  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22564		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22565    return 10;
22566  for (i = 0; i < pagesize; ++i)
22567    if (*(data + i) != *(data2 + i))
22568      return 11;
22569
22570  /* Finally, make sure that changes to the mapped area do not
22571     percolate back to the file as seen by read().  (This is a bug on
22572     some variants of i386 svr4.0.)  */
22573  for (i = 0; i < pagesize; ++i)
22574    *(data2 + i) = *(data2 + i) + 1;
22575  data3 = (char *) malloc (pagesize);
22576  if (!data3)
22577    return 12;
22578  if (read (fd, data3, pagesize) != pagesize)
22579    return 13;
22580  for (i = 0; i < pagesize; ++i)
22581    if (*(data + i) != *(data3 + i))
22582      return 14;
22583  close (fd);
22584  free (data);
22585  free (data3);
22586  return 0;
22587}
22588_ACEOF
22589if ac_fn_c_try_run "$LINENO"
22590then :
22591  ac_cv_func_mmap_fixed_mapped=yes
22592else $as_nop
22593  ac_cv_func_mmap_fixed_mapped=no
22594fi
22595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22596  conftest.$ac_objext conftest.beam conftest.$ac_ext
22597fi
22598
22599fi
22600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22601printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
22602if test $ac_cv_func_mmap_fixed_mapped = yes; then
22603
22604printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22605
22606fi
22607rm -f conftest.mmap conftest.txt
22608
22609composecache_default=$ac_cv_func_mmap_fixed_mapped
22610ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
22611if test "x$ac_cv_func_nl_langinfo" = xyes
22612then :
22613
22614else $as_nop
22615  composecache_default=no
22616fi
22617
22618# Check whether --enable-composecache was given.
22619if test ${enable_composecache+y}
22620then :
22621  enableval=$enable_composecache; COMPOSECACHE=$enableval
22622else $as_nop
22623  COMPOSECACHE=$composecache_default
22624fi
22625
22626if test x"$COMPOSECACHE" = "xyes"; then
22627
22628printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
22629
22630fi
22631
22632# Allow checking code with lint, sparse, etc.
22633
22634
22635
22636
22637
22638# Check whether --with-lint was given.
22639if test ${with_lint+y}
22640then :
22641  withval=$with_lint; use_lint=$withval
22642else $as_nop
22643  use_lint=no
22644fi
22645
22646
22647# Obtain platform specific info like program name and options
22648# The lint program on FreeBSD and NetBSD is different from the one on Solaris
22649case $host_os in
22650  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
22651	lint_name=splint
22652	lint_options="-badflag"
22653	;;
22654  *freebsd* | *netbsd*)
22655	lint_name=lint
22656	lint_options="-u -b"
22657	;;
22658  *solaris*)
22659	lint_name=lint
22660	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22661	;;
22662esac
22663
22664# Test for the presence of the program (either guessed by the code or spelled out by the user)
22665if test "x$use_lint" = x"yes" ; then
22666   # Extract the first word of "$lint_name", so it can be a program name with args.
22667set dummy $lint_name; ac_word=$2
22668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22669printf %s "checking for $ac_word... " >&6; }
22670if test ${ac_cv_path_LINT+y}
22671then :
22672  printf %s "(cached) " >&6
22673else $as_nop
22674  case $LINT in
22675  [\\/]* | ?:[\\/]*)
22676  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
22677  ;;
22678  *)
22679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680for as_dir in $PATH
22681do
22682  IFS=$as_save_IFS
22683  case $as_dir in #(((
22684    '') as_dir=./ ;;
22685    */) ;;
22686    *) as_dir=$as_dir/ ;;
22687  esac
22688    for ac_exec_ext in '' $ac_executable_extensions; do
22689  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22690    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
22691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22692    break 2
22693  fi
22694done
22695  done
22696IFS=$as_save_IFS
22697
22698  ;;
22699esac
22700fi
22701LINT=$ac_cv_path_LINT
22702if test -n "$LINT"; then
22703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
22704printf "%s\n" "$LINT" >&6; }
22705else
22706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707printf "%s\n" "no" >&6; }
22708fi
22709
22710
22711   if test "x$LINT" = "x"; then
22712        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
22713   fi
22714elif test "x$use_lint" = x"no" ; then
22715   if test "x$LINT" != "x"; then
22716      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
22717printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
22718   fi
22719else
22720   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
22721fi
22722
22723# User supplied flags override default flags
22724if test "x$LINT_FLAGS" != "x"; then
22725   lint_options=$LINT_FLAGS
22726fi
22727
22728LINT_FLAGS=$lint_options
22729
22730 if test "x$LINT" != x; then
22731  LINT_TRUE=
22732  LINT_FALSE='#'
22733else
22734  LINT_TRUE='#'
22735  LINT_FALSE=
22736fi
22737
22738
22739
22740
22741
22742# Check whether --enable-lint-library was given.
22743if test ${enable_lint_library+y}
22744then :
22745  enableval=$enable_lint_library; make_lint_lib=$enableval
22746else $as_nop
22747  make_lint_lib=no
22748fi
22749
22750
22751if test "x$make_lint_lib" = x"yes" ; then
22752   LINTLIB=llib-lX11.ln
22753   if test "x$LINT" = "x"; then
22754        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
22755   fi
22756elif test "x$make_lint_lib" != x"no" ; then
22757   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
22758fi
22759
22760
22761 if test x$make_lint_lib != xno; then
22762  MAKE_LINT_LIB_TRUE=
22763  MAKE_LINT_LIB_FALSE='#'
22764else
22765  MAKE_LINT_LIB_TRUE='#'
22766  MAKE_LINT_LIB_FALSE=
22767fi
22768
22769
22770
22771
22772X11_DATADIR="${datadir}/X11"
22773
22774  prefix_NONE=
22775  exec_prefix_NONE=
22776  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22777  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22778  eval ax_define_dir="\"$X11_DATADIR\""
22779  eval ax_define_dir="\"$ax_define_dir\""
22780  X11_DATADIR="$ax_define_dir"
22781
22782
22783printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
22784
22785  test "$prefix_NONE" && prefix=NONE
22786  test "$exec_prefix_NONE" && exec_prefix=NONE
22787
22788
22789
22790X11_LIBDIR="${libdir}/X11"
22791
22792  prefix_NONE=
22793  exec_prefix_NONE=
22794  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22795  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22796  eval ax_define_dir="\"$X11_LIBDIR\""
22797  eval ax_define_dir="\"$ax_define_dir\""
22798  X11_LIBDIR="$ax_define_dir"
22799
22800
22801printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
22802
22803  test "$prefix_NONE" && prefix=NONE
22804  test "$exec_prefix_NONE" && exec_prefix=NONE
22805
22806
22807
22808
22809pkg_failed=no
22810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
22811printf %s "checking for X11... " >&6; }
22812
22813if test -n "$X11_CFLAGS"; then
22814    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
22815 elif test -n "$PKG_CONFIG"; then
22816    if test -n "$PKG_CONFIG" && \
22817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22818  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22819  ac_status=$?
22820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821  test $ac_status = 0; }; then
22822  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
22823		      test "x$?" != "x0" && pkg_failed=yes
22824else
22825  pkg_failed=yes
22826fi
22827 else
22828    pkg_failed=untried
22829fi
22830if test -n "$X11_LIBS"; then
22831    pkg_cv_X11_LIBS="$X11_LIBS"
22832 elif test -n "$PKG_CONFIG"; then
22833    if test -n "$PKG_CONFIG" && \
22834    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22835  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22836  ac_status=$?
22837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22838  test $ac_status = 0; }; then
22839  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
22840		      test "x$?" != "x0" && pkg_failed=yes
22841else
22842  pkg_failed=yes
22843fi
22844 else
22845    pkg_failed=untried
22846fi
22847
22848
22849
22850if test $pkg_failed = yes; then
22851   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852printf "%s\n" "no" >&6; }
22853
22854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22855        _pkg_short_errors_supported=yes
22856else
22857        _pkg_short_errors_supported=no
22858fi
22859        if test $_pkg_short_errors_supported = yes; then
22860	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22861        else
22862	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22863        fi
22864	# Put the nasty error message in config.log where it belongs
22865	echo "$X11_PKG_ERRORS" >&5
22866
22867	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
22868
22869$X11_PKG_ERRORS
22870
22871Consider adjusting the PKG_CONFIG_PATH environment variable if you
22872installed software in a non-standard prefix.
22873
22874Alternatively, you may set the environment variables X11_CFLAGS
22875and X11_LIBS to avoid the need to call pkg-config.
22876See the pkg-config man page for more details." "$LINENO" 5
22877elif test $pkg_failed = untried; then
22878     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22879printf "%s\n" "no" >&6; }
22880	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22881printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22882as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22883is in your PATH or set the PKG_CONFIG environment variable to the full
22884path to pkg-config.
22885
22886Alternatively, you may set the environment variables X11_CFLAGS
22887and X11_LIBS to avoid the need to call pkg-config.
22888See the pkg-config man page for more details.
22889
22890To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22891See \`config.log' for more details" "$LINENO" 5; }
22892else
22893	X11_CFLAGS=$pkg_cv_X11_CFLAGS
22894	X11_LIBS=$pkg_cv_X11_LIBS
22895        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22896printf "%s\n" "yes" >&6; }
22897
22898fi
22899X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22900
22901#
22902# Yes, it would be nice to put the locale data in
22903# /usr/share, but the locale stuff includes loadable
22904# libraries which must be located in the same directory
22905# as the other locale data, so for now, everything lives
22906# in ${libdir}
22907#
22908
22909X11_LOCALEDATADIR="${X11_DATADIR}/locale"
22910
22911  prefix_NONE=
22912  exec_prefix_NONE=
22913  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22914  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22915  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
22916  eval ax_define_dir="\"$ax_define_dir\""
22917  XLOCALEDATADIR="$ax_define_dir"
22918
22919
22920printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
22921
22922  test "$prefix_NONE" && prefix=NONE
22923  test "$exec_prefix_NONE" && exec_prefix=NONE
22924
22925
22926
22927
22928# Check whether --with-locale-lib-dir was given.
22929if test ${with_locale_lib_dir+y}
22930then :
22931  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
22932else $as_nop
22933   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
22934fi
22935
22936
22937  prefix_NONE=
22938  exec_prefix_NONE=
22939  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22940  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22941  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
22942  eval ax_define_dir="\"$ax_define_dir\""
22943  XLOCALELIBDIR="$ax_define_dir"
22944
22945
22946printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
22947
22948  test "$prefix_NONE" && prefix=NONE
22949  test "$exec_prefix_NONE" && exec_prefix=NONE
22950
22951
22952
22953X11_LOCALEDIR="${X11_LOCALEDATADIR}"
22954
22955  prefix_NONE=
22956  exec_prefix_NONE=
22957  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22958  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22959  eval ax_define_dir="\"$X11_LOCALEDIR\""
22960  eval ax_define_dir="\"$ax_define_dir\""
22961  XLOCALEDIR="$ax_define_dir"
22962
22963
22964printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
22965
22966  test "$prefix_NONE" && prefix=NONE
22967  test "$exec_prefix_NONE" && exec_prefix=NONE
22968
22969
22970
22971locales="\
22972 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
22973 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
22974 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
22975 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
22976 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
22977 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
22978 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
22979 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
22980 ru_RU.UTF-8  sr_RS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
22981 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
22982 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
22983 zh_TW        zh_TW.big5  zh_TW.UTF-8"
22984
22985
22986XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
22987
22988  prefix_NONE=
22989  exec_prefix_NONE=
22990  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22991  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22992  eval ax_define_dir="\"$XKEYSYMDB\""
22993  eval ax_define_dir="\"$ax_define_dir\""
22994  XKEYSYMDB="$ax_define_dir"
22995
22996
22997printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
22998
22999  test "$prefix_NONE" && prefix=NONE
23000  test "$exec_prefix_NONE" && exec_prefix=NONE
23001
23002
23003XERRORDB="${X11_DATADIR}/XErrorDB"
23004
23005  prefix_NONE=
23006  exec_prefix_NONE=
23007  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23008  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23009  eval ax_define_dir="\"$XERRORDB\""
23010  eval ax_define_dir="\"$ax_define_dir\""
23011  XERRORDB="$ax_define_dir"
23012
23013
23014printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
23015
23016  test "$prefix_NONE" && prefix=NONE
23017  test "$exec_prefix_NONE" && exec_prefix=NONE
23018
23019
23020
23021# Check whether --enable-malloc0returnsnull was given.
23022if test ${enable_malloc0returnsnull+y}
23023then :
23024  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
23025else $as_nop
23026  MALLOC_ZERO_RETURNS_NULL=auto
23027fi
23028
23029
23030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
23031printf %s "checking whether malloc(0) returns NULL... " >&6; }
23032if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
23033if test ${xorg_cv_malloc0_returns_null+y}
23034then :
23035  printf %s "(cached) " >&6
23036else $as_nop
23037  if test "$cross_compiling" = yes
23038then :
23039  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23041as_fn_error $? "cannot run test program while cross compiling
23042See \`config.log' for more details" "$LINENO" 5; }
23043else $as_nop
23044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045/* end confdefs.h.  */
23046
23047#include <stdlib.h>
23048
23049int
23050main (void)
23051{
23052
23053    char *m0, *r0, *c0, *p;
23054    m0 = malloc(0);
23055    p = malloc(10);
23056    r0 = realloc(p,0);
23057    c0 = calloc(0,10);
23058    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
23059
23060  ;
23061  return 0;
23062}
23063_ACEOF
23064if ac_fn_c_try_run "$LINENO"
23065then :
23066  xorg_cv_malloc0_returns_null=yes
23067else $as_nop
23068  xorg_cv_malloc0_returns_null=no
23069fi
23070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23071  conftest.$ac_objext conftest.beam conftest.$ac_ext
23072fi
23073
23074fi
23075
23076MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
23077fi
23078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
23079printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
23080
23081if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
23082	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
23083	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
23084	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
23085else
23086	MALLOC_ZERO_CFLAGS=""
23087	XMALLOC_ZERO_CFLAGS=""
23088	XTMALLOC_ZERO_CFLAGS=""
23089fi
23090
23091
23092
23093
23094
23095
23096ac_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"
23097
23098cat >confcache <<\_ACEOF
23099# This file is a shell script that caches the results of configure
23100# tests run on this system so they can be shared between configure
23101# scripts and configure runs, see configure's option --config-cache.
23102# It is not useful on other systems.  If it contains results you don't
23103# want to keep, you may remove or edit it.
23104#
23105# config.status only pays attention to the cache file if you give it
23106# the --recheck option to rerun configure.
23107#
23108# `ac_cv_env_foo' variables (set or unset) will be overridden when
23109# loading this file, other *unset* `ac_cv_foo' will be assigned the
23110# following values.
23111
23112_ACEOF
23113
23114# The following way of writing the cache mishandles newlines in values,
23115# but we know of no workaround that is simple, portable, and efficient.
23116# So, we kill variables containing newlines.
23117# Ultrix sh set writes to stderr and can't be redirected directly,
23118# and sets the high bit in the cache file unless we assign to the vars.
23119(
23120  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23121    eval ac_val=\$$ac_var
23122    case $ac_val in #(
23123    *${as_nl}*)
23124      case $ac_var in #(
23125      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23126printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23127      esac
23128      case $ac_var in #(
23129      _ | IFS | as_nl) ;; #(
23130      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23131      *) { eval $ac_var=; unset $ac_var;} ;;
23132      esac ;;
23133    esac
23134  done
23135
23136  (set) 2>&1 |
23137    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23138    *${as_nl}ac_space=\ *)
23139      # `set' does not quote correctly, so add quotes: double-quote
23140      # substitution turns \\\\ into \\, and sed turns \\ into \.
23141      sed -n \
23142	"s/'/'\\\\''/g;
23143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23144      ;; #(
23145    *)
23146      # `set' quotes correctly as required by POSIX, so do not add quotes.
23147      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23148      ;;
23149    esac |
23150    sort
23151) |
23152  sed '
23153     /^ac_cv_env_/b end
23154     t clear
23155     :clear
23156     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23157     t end
23158     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23159     :end' >>confcache
23160if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23161  if test -w "$cache_file"; then
23162    if test "x$cache_file" != "x/dev/null"; then
23163      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23164printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23165      if test ! -f "$cache_file" || test -h "$cache_file"; then
23166	cat confcache >"$cache_file"
23167      else
23168        case $cache_file in #(
23169        */* | ?:*)
23170	  mv -f confcache "$cache_file"$$ &&
23171	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23172        *)
23173	  mv -f confcache "$cache_file" ;;
23174	esac
23175      fi
23176    fi
23177  else
23178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23179printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23180  fi
23181fi
23182rm -f confcache
23183
23184test "x$prefix" = xNONE && prefix=$ac_default_prefix
23185# Let make expand exec_prefix.
23186test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23187
23188DEFS=-DHAVE_CONFIG_H
23189
23190ac_libobjs=
23191ac_ltlibobjs=
23192U=
23193for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23194  # 1. Remove the extension, and $U if already installed.
23195  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23196  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23197  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23198  #    will be set to the directory where LIBOBJS objects are built.
23199  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23200  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23201done
23202LIBOBJS=$ac_libobjs
23203
23204LTLIBOBJS=$ac_ltlibobjs
23205
23206
23207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23208printf %s "checking that generated files are newer than configure... " >&6; }
23209   if test -n "$am_sleep_pid"; then
23210     # Hide warnings about reused PIDs.
23211     wait $am_sleep_pid 2>/dev/null
23212   fi
23213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23214printf "%s\n" "done" >&6; }
23215if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23216  as_fn_error $? "conditional \"AMDEP\" was never defined.
23217Usually this means the macro was only invoked conditionally." "$LINENO" 5
23218fi
23219if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23220  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23221Usually this means the macro was only invoked conditionally." "$LINENO" 5
23222fi
23223 if test -n "$EXEEXT"; then
23224  am__EXEEXT_TRUE=
23225  am__EXEEXT_FALSE='#'
23226else
23227  am__EXEEXT_TRUE='#'
23228  am__EXEEXT_FALSE=
23229fi
23230
23231if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
23232  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
23233Usually this means the macro was only invoked conditionally." "$LINENO" 5
23234fi
23235if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
23236  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
23237Usually this means the macro was only invoked conditionally." "$LINENO" 5
23238fi
23239if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
23240  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
23241Usually this means the macro was only invoked conditionally." "$LINENO" 5
23242fi
23243if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
23244  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
23245Usually this means the macro was only invoked conditionally." "$LINENO" 5
23246fi
23247if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
23248  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
23249Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250fi
23251if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
23252  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
23253Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254fi
23255if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
23256  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
23257Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258fi
23259if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
23260  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
23261Usually this means the macro was only invoked conditionally." "$LINENO" 5
23262fi
23263if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
23264  as_fn_error $? "conditional \"OS2\" was never defined.
23265Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266fi
23267if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
23268  as_fn_error $? "conditional \"XCMS\" was never defined.
23269Usually this means the macro was only invoked conditionally." "$LINENO" 5
23270fi
23271if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
23272  as_fn_error $? "conditional \"XLOCALE\" was never defined.
23273Usually this means the macro was only invoked conditionally." "$LINENO" 5
23274fi
23275if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
23276  as_fn_error $? "conditional \"XKB\" was never defined.
23277Usually this means the macro was only invoked conditionally." "$LINENO" 5
23278fi
23279if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23280  as_fn_error $? "conditional \"LINT\" was never defined.
23281Usually this means the macro was only invoked conditionally." "$LINENO" 5
23282fi
23283if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
23284  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
23285Usually this means the macro was only invoked conditionally." "$LINENO" 5
23286fi
23287
23288: "${CONFIG_STATUS=./config.status}"
23289ac_write_fail=0
23290ac_clean_files_save=$ac_clean_files
23291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23293printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23294as_write_fail=0
23295cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23296#! $SHELL
23297# Generated by $as_me.
23298# Run this file to recreate the current configuration.
23299# Compiler output produced by configure, useful for debugging
23300# configure, is in config.log if it exists.
23301
23302debug=false
23303ac_cs_recheck=false
23304ac_cs_silent=false
23305
23306SHELL=\${CONFIG_SHELL-$SHELL}
23307export SHELL
23308_ASEOF
23309cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23310## -------------------- ##
23311## M4sh Initialization. ##
23312## -------------------- ##
23313
23314# Be more Bourne compatible
23315DUALCASE=1; export DUALCASE # for MKS sh
23316as_nop=:
23317if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23318then :
23319  emulate sh
23320  NULLCMD=:
23321  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23322  # is contrary to our usage.  Disable this feature.
23323  alias -g '${1+"$@"}'='"$@"'
23324  setopt NO_GLOB_SUBST
23325else $as_nop
23326  case `(set -o) 2>/dev/null` in #(
23327  *posix*) :
23328    set -o posix ;; #(
23329  *) :
23330     ;;
23331esac
23332fi
23333
23334
23335
23336# Reset variables that may have inherited troublesome values from
23337# the environment.
23338
23339# IFS needs to be set, to space, tab, and newline, in precisely that order.
23340# (If _AS_PATH_WALK were called with IFS unset, it would have the
23341# side effect of setting IFS to empty, thus disabling word splitting.)
23342# Quoting is to prevent editors from complaining about space-tab.
23343as_nl='
23344'
23345export as_nl
23346IFS=" ""	$as_nl"
23347
23348PS1='$ '
23349PS2='> '
23350PS4='+ '
23351
23352# Ensure predictable behavior from utilities with locale-dependent output.
23353LC_ALL=C
23354export LC_ALL
23355LANGUAGE=C
23356export LANGUAGE
23357
23358# We cannot yet rely on "unset" to work, but we need these variables
23359# to be unset--not just set to an empty or harmless value--now, to
23360# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23361# also avoids known problems related to "unset" and subshell syntax
23362# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23363for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23364do eval test \${$as_var+y} \
23365  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23366done
23367
23368# Ensure that fds 0, 1, and 2 are open.
23369if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23370if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23371if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23372
23373# The user is always right.
23374if ${PATH_SEPARATOR+false} :; then
23375  PATH_SEPARATOR=:
23376  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23377    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23378      PATH_SEPARATOR=';'
23379  }
23380fi
23381
23382
23383# Find who we are.  Look in the path if we contain no directory separator.
23384as_myself=
23385case $0 in #((
23386  *[\\/]* ) as_myself=$0 ;;
23387  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388for as_dir in $PATH
23389do
23390  IFS=$as_save_IFS
23391  case $as_dir in #(((
23392    '') as_dir=./ ;;
23393    */) ;;
23394    *) as_dir=$as_dir/ ;;
23395  esac
23396    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23397  done
23398IFS=$as_save_IFS
23399
23400     ;;
23401esac
23402# We did not find ourselves, most probably we were run as `sh COMMAND'
23403# in which case we are not to be found in the path.
23404if test "x$as_myself" = x; then
23405  as_myself=$0
23406fi
23407if test ! -f "$as_myself"; then
23408  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23409  exit 1
23410fi
23411
23412
23413
23414# as_fn_error STATUS ERROR [LINENO LOG_FD]
23415# ----------------------------------------
23416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23418# script with STATUS, using 1 if that was 0.
23419as_fn_error ()
23420{
23421  as_status=$1; test $as_status -eq 0 && as_status=1
23422  if test "$4"; then
23423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23424    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23425  fi
23426  printf "%s\n" "$as_me: error: $2" >&2
23427  as_fn_exit $as_status
23428} # as_fn_error
23429
23430
23431
23432# as_fn_set_status STATUS
23433# -----------------------
23434# Set $? to STATUS, without forking.
23435as_fn_set_status ()
23436{
23437  return $1
23438} # as_fn_set_status
23439
23440# as_fn_exit STATUS
23441# -----------------
23442# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23443as_fn_exit ()
23444{
23445  set +e
23446  as_fn_set_status $1
23447  exit $1
23448} # as_fn_exit
23449
23450# as_fn_unset VAR
23451# ---------------
23452# Portably unset VAR.
23453as_fn_unset ()
23454{
23455  { eval $1=; unset $1;}
23456}
23457as_unset=as_fn_unset
23458
23459# as_fn_append VAR VALUE
23460# ----------------------
23461# Append the text in VALUE to the end of the definition contained in VAR. Take
23462# advantage of any shell optimizations that allow amortized linear growth over
23463# repeated appends, instead of the typical quadratic growth present in naive
23464# implementations.
23465if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23466then :
23467  eval 'as_fn_append ()
23468  {
23469    eval $1+=\$2
23470  }'
23471else $as_nop
23472  as_fn_append ()
23473  {
23474    eval $1=\$$1\$2
23475  }
23476fi # as_fn_append
23477
23478# as_fn_arith ARG...
23479# ------------------
23480# Perform arithmetic evaluation on the ARGs, and store the result in the
23481# global $as_val. Take advantage of shells that can avoid forks. The arguments
23482# must be portable across $(()) and expr.
23483if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23484then :
23485  eval 'as_fn_arith ()
23486  {
23487    as_val=$(( $* ))
23488  }'
23489else $as_nop
23490  as_fn_arith ()
23491  {
23492    as_val=`expr "$@" || test $? -eq 1`
23493  }
23494fi # as_fn_arith
23495
23496
23497if expr a : '\(a\)' >/dev/null 2>&1 &&
23498   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23499  as_expr=expr
23500else
23501  as_expr=false
23502fi
23503
23504if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23505  as_basename=basename
23506else
23507  as_basename=false
23508fi
23509
23510if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23511  as_dirname=dirname
23512else
23513  as_dirname=false
23514fi
23515
23516as_me=`$as_basename -- "$0" ||
23517$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23518	 X"$0" : 'X\(//\)$' \| \
23519	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23520printf "%s\n" X/"$0" |
23521    sed '/^.*\/\([^/][^/]*\)\/*$/{
23522	    s//\1/
23523	    q
23524	  }
23525	  /^X\/\(\/\/\)$/{
23526	    s//\1/
23527	    q
23528	  }
23529	  /^X\/\(\/\).*/{
23530	    s//\1/
23531	    q
23532	  }
23533	  s/.*/./; q'`
23534
23535# Avoid depending upon Character Ranges.
23536as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23537as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23538as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23539as_cr_digits='0123456789'
23540as_cr_alnum=$as_cr_Letters$as_cr_digits
23541
23542
23543# Determine whether it's possible to make 'echo' print without a newline.
23544# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23545# for compatibility with existing Makefiles.
23546ECHO_C= ECHO_N= ECHO_T=
23547case `echo -n x` in #(((((
23548-n*)
23549  case `echo 'xy\c'` in
23550  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23551  xy)  ECHO_C='\c';;
23552  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23553       ECHO_T='	';;
23554  esac;;
23555*)
23556  ECHO_N='-n';;
23557esac
23558
23559# For backward compatibility with old third-party macros, we provide
23560# the shell variables $as_echo and $as_echo_n.  New code should use
23561# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23562as_echo='printf %s\n'
23563as_echo_n='printf %s'
23564
23565rm -f conf$$ conf$$.exe conf$$.file
23566if test -d conf$$.dir; then
23567  rm -f conf$$.dir/conf$$.file
23568else
23569  rm -f conf$$.dir
23570  mkdir conf$$.dir 2>/dev/null
23571fi
23572if (echo >conf$$.file) 2>/dev/null; then
23573  if ln -s conf$$.file conf$$ 2>/dev/null; then
23574    as_ln_s='ln -s'
23575    # ... but there are two gotchas:
23576    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23577    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23578    # In both cases, we have to default to `cp -pR'.
23579    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23580      as_ln_s='cp -pR'
23581  elif ln conf$$.file conf$$ 2>/dev/null; then
23582    as_ln_s=ln
23583  else
23584    as_ln_s='cp -pR'
23585  fi
23586else
23587  as_ln_s='cp -pR'
23588fi
23589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23590rmdir conf$$.dir 2>/dev/null
23591
23592
23593# as_fn_mkdir_p
23594# -------------
23595# Create "$as_dir" as a directory, including parents if necessary.
23596as_fn_mkdir_p ()
23597{
23598
23599  case $as_dir in #(
23600  -*) as_dir=./$as_dir;;
23601  esac
23602  test -d "$as_dir" || eval $as_mkdir_p || {
23603    as_dirs=
23604    while :; do
23605      case $as_dir in #(
23606      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23607      *) as_qdir=$as_dir;;
23608      esac
23609      as_dirs="'$as_qdir' $as_dirs"
23610      as_dir=`$as_dirname -- "$as_dir" ||
23611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23612	 X"$as_dir" : 'X\(//\)[^/]' \| \
23613	 X"$as_dir" : 'X\(//\)$' \| \
23614	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23615printf "%s\n" X"$as_dir" |
23616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23617	    s//\1/
23618	    q
23619	  }
23620	  /^X\(\/\/\)[^/].*/{
23621	    s//\1/
23622	    q
23623	  }
23624	  /^X\(\/\/\)$/{
23625	    s//\1/
23626	    q
23627	  }
23628	  /^X\(\/\).*/{
23629	    s//\1/
23630	    q
23631	  }
23632	  s/.*/./; q'`
23633      test -d "$as_dir" && break
23634    done
23635    test -z "$as_dirs" || eval "mkdir $as_dirs"
23636  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23637
23638
23639} # as_fn_mkdir_p
23640if mkdir -p . 2>/dev/null; then
23641  as_mkdir_p='mkdir -p "$as_dir"'
23642else
23643  test -d ./-p && rmdir ./-p
23644  as_mkdir_p=false
23645fi
23646
23647
23648# as_fn_executable_p FILE
23649# -----------------------
23650# Test if FILE is an executable regular file.
23651as_fn_executable_p ()
23652{
23653  test -f "$1" && test -x "$1"
23654} # as_fn_executable_p
23655as_test_x='test -x'
23656as_executable_p=as_fn_executable_p
23657
23658# Sed expression to map a string onto a valid CPP name.
23659as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23660
23661# Sed expression to map a string onto a valid variable name.
23662as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23663
23664
23665exec 6>&1
23666## ----------------------------------- ##
23667## Main body of $CONFIG_STATUS script. ##
23668## ----------------------------------- ##
23669_ASEOF
23670test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23671
23672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23673# Save the log message, to keep $0 and so on meaningful, and to
23674# report actual input values of CONFIG_FILES etc. instead of their
23675# values after options handling.
23676ac_log="
23677This file was extended by libX11 $as_me 1.8.2, which was
23678generated by GNU Autoconf 2.71.  Invocation command line was
23679
23680  CONFIG_FILES    = $CONFIG_FILES
23681  CONFIG_HEADERS  = $CONFIG_HEADERS
23682  CONFIG_LINKS    = $CONFIG_LINKS
23683  CONFIG_COMMANDS = $CONFIG_COMMANDS
23684  $ $0 $@
23685
23686on `(hostname || uname -n) 2>/dev/null | sed 1q`
23687"
23688
23689_ACEOF
23690
23691case $ac_config_files in *"
23692"*) set x $ac_config_files; shift; ac_config_files=$*;;
23693esac
23694
23695case $ac_config_headers in *"
23696"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23697esac
23698
23699
23700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23701# Files that config.status was made for.
23702config_files="$ac_config_files"
23703config_headers="$ac_config_headers"
23704config_commands="$ac_config_commands"
23705
23706_ACEOF
23707
23708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23709ac_cs_usage="\
23710\`$as_me' instantiates files and other configuration actions
23711from templates according to the current configuration.  Unless the files
23712and actions are specified as TAGs, all are instantiated by default.
23713
23714Usage: $0 [OPTION]... [TAG]...
23715
23716  -h, --help       print this help, then exit
23717  -V, --version    print version number and configuration settings, then exit
23718      --config     print configuration, then exit
23719  -q, --quiet, --silent
23720                   do not print progress messages
23721  -d, --debug      don't remove temporary files
23722      --recheck    update $as_me by reconfiguring in the same conditions
23723      --file=FILE[:TEMPLATE]
23724                   instantiate the configuration file FILE
23725      --header=FILE[:TEMPLATE]
23726                   instantiate the configuration header FILE
23727
23728Configuration files:
23729$config_files
23730
23731Configuration headers:
23732$config_headers
23733
23734Configuration commands:
23735$config_commands
23736
23737Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>."
23738
23739_ACEOF
23740ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23741ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23743ac_cs_config='$ac_cs_config_escaped'
23744ac_cs_version="\\
23745libX11 config.status 1.8.2
23746configured by $0, generated by GNU Autoconf 2.71,
23747  with options \\"\$ac_cs_config\\"
23748
23749Copyright (C) 2021 Free Software Foundation, Inc.
23750This config.status script is free software; the Free Software Foundation
23751gives unlimited permission to copy, distribute and modify it."
23752
23753ac_pwd='$ac_pwd'
23754srcdir='$srcdir'
23755INSTALL='$INSTALL'
23756MKDIR_P='$MKDIR_P'
23757AWK='$AWK'
23758test -n "\$AWK" || AWK=awk
23759_ACEOF
23760
23761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23762# The default lists apply if the user does not specify any file.
23763ac_need_defaults=:
23764while test $# != 0
23765do
23766  case $1 in
23767  --*=?*)
23768    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23769    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23770    ac_shift=:
23771    ;;
23772  --*=)
23773    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23774    ac_optarg=
23775    ac_shift=:
23776    ;;
23777  *)
23778    ac_option=$1
23779    ac_optarg=$2
23780    ac_shift=shift
23781    ;;
23782  esac
23783
23784  case $ac_option in
23785  # Handling of the options.
23786  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23787    ac_cs_recheck=: ;;
23788  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23789    printf "%s\n" "$ac_cs_version"; exit ;;
23790  --config | --confi | --conf | --con | --co | --c )
23791    printf "%s\n" "$ac_cs_config"; exit ;;
23792  --debug | --debu | --deb | --de | --d | -d )
23793    debug=: ;;
23794  --file | --fil | --fi | --f )
23795    $ac_shift
23796    case $ac_optarg in
23797    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23798    '') as_fn_error $? "missing file argument" ;;
23799    esac
23800    as_fn_append CONFIG_FILES " '$ac_optarg'"
23801    ac_need_defaults=false;;
23802  --header | --heade | --head | --hea )
23803    $ac_shift
23804    case $ac_optarg in
23805    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23806    esac
23807    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23808    ac_need_defaults=false;;
23809  --he | --h)
23810    # Conflict between --help and --header
23811    as_fn_error $? "ambiguous option: \`$1'
23812Try \`$0 --help' for more information.";;
23813  --help | --hel | -h )
23814    printf "%s\n" "$ac_cs_usage"; exit ;;
23815  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23816  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23817    ac_cs_silent=: ;;
23818
23819  # This is an error.
23820  -*) as_fn_error $? "unrecognized option: \`$1'
23821Try \`$0 --help' for more information." ;;
23822
23823  *) as_fn_append ac_config_targets " $1"
23824     ac_need_defaults=false ;;
23825
23826  esac
23827  shift
23828done
23829
23830ac_configure_extra_args=
23831
23832if $ac_cs_silent; then
23833  exec 6>/dev/null
23834  ac_configure_extra_args="$ac_configure_extra_args --silent"
23835fi
23836
23837_ACEOF
23838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23839if \$ac_cs_recheck; then
23840  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23841  shift
23842  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23843  CONFIG_SHELL='$SHELL'
23844  export CONFIG_SHELL
23845  exec "\$@"
23846fi
23847
23848_ACEOF
23849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23850exec 5>>config.log
23851{
23852  echo
23853  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23854## Running $as_me. ##
23855_ASBOX
23856  printf "%s\n" "$ac_log"
23857} >&5
23858
23859_ACEOF
23860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23861#
23862# INIT-COMMANDS
23863#
23864AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23865
23866
23867# The HP-UX ksh and POSIX shell print the target directory to stdout
23868# if CDPATH is set.
23869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23870
23871sed_quote_subst='$sed_quote_subst'
23872double_quote_subst='$double_quote_subst'
23873delay_variable_subst='$delay_variable_subst'
23874macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23875macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23876enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23877enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23878pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23879enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23880shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23881SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23882ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23883PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23884host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23885host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23886host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23887build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23888build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23889build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23890SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23891Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23892GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23893EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23894FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23895LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23896NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23897LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23898max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23899ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23900exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23901lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23902lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23903lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23904lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23905lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23906reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23907reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23908FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23909OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23910deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23911file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23912file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23913want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23914DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23915sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23916AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23917lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23918AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23919archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23920STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23921RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23922old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23923old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23924old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23925lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23926CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23927CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23928compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23929GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23930lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23931lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23932lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23933lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23934lt_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"`'
23935lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23936nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23937lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23938lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23939objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23940MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23941lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23942lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23943lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23944lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23945lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23946need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23947MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23948DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23949NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23950LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23951OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23952OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23953libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23954shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23955extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23956archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23957enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23958export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23959whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23960compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23961old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23962old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23963archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23964archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23965module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23966module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23967with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23968allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23969no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23970hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23971hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23972hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23973hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23974hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23975hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23976hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23977inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23978link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23979always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23980export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23981exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23982include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23983prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23984postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23985file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23986variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23987need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23988need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23989version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23990runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23991shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23992shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23993libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23994library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23995soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23996install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23997postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23998postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23999finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24000finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24001hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24002sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24003configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24004configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24005hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24006enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24007enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24008enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24009old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24010striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24011
24012LTCC='$LTCC'
24013LTCFLAGS='$LTCFLAGS'
24014compiler='$compiler_DEFAULT'
24015
24016# A function that is used when there is no print builtin or printf.
24017func_fallback_echo ()
24018{
24019  eval 'cat <<_LTECHO_EOF
24020\$1
24021_LTECHO_EOF'
24022}
24023
24024# Quote evaled strings.
24025for var in SHELL \
24026ECHO \
24027PATH_SEPARATOR \
24028SED \
24029GREP \
24030EGREP \
24031FGREP \
24032LD \
24033NM \
24034LN_S \
24035lt_SP2NL \
24036lt_NL2SP \
24037reload_flag \
24038FILECMD \
24039OBJDUMP \
24040deplibs_check_method \
24041file_magic_cmd \
24042file_magic_glob \
24043want_nocaseglob \
24044DLLTOOL \
24045sharedlib_from_linklib_cmd \
24046AR \
24047archiver_list_spec \
24048STRIP \
24049RANLIB \
24050CC \
24051CFLAGS \
24052compiler \
24053lt_cv_sys_global_symbol_pipe \
24054lt_cv_sys_global_symbol_to_cdecl \
24055lt_cv_sys_global_symbol_to_import \
24056lt_cv_sys_global_symbol_to_c_name_address \
24057lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24058lt_cv_nm_interface \
24059nm_file_list_spec \
24060lt_cv_truncate_bin \
24061lt_prog_compiler_no_builtin_flag \
24062lt_prog_compiler_pic \
24063lt_prog_compiler_wl \
24064lt_prog_compiler_static \
24065lt_cv_prog_compiler_c_o \
24066need_locks \
24067MANIFEST_TOOL \
24068DSYMUTIL \
24069NMEDIT \
24070LIPO \
24071OTOOL \
24072OTOOL64 \
24073shrext_cmds \
24074export_dynamic_flag_spec \
24075whole_archive_flag_spec \
24076compiler_needs_object \
24077with_gnu_ld \
24078allow_undefined_flag \
24079no_undefined_flag \
24080hardcode_libdir_flag_spec \
24081hardcode_libdir_separator \
24082exclude_expsyms \
24083include_expsyms \
24084file_list_spec \
24085variables_saved_for_relink \
24086libname_spec \
24087library_names_spec \
24088soname_spec \
24089install_override_mode \
24090finish_eval \
24091old_striplib \
24092striplib; do
24093    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24094    *[\\\\\\\`\\"\\\$]*)
24095      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24096      ;;
24097    *)
24098      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24099      ;;
24100    esac
24101done
24102
24103# Double-quote double-evaled strings.
24104for var in reload_cmds \
24105old_postinstall_cmds \
24106old_postuninstall_cmds \
24107old_archive_cmds \
24108extract_expsyms_cmds \
24109old_archive_from_new_cmds \
24110old_archive_from_expsyms_cmds \
24111archive_cmds \
24112archive_expsym_cmds \
24113module_cmds \
24114module_expsym_cmds \
24115export_symbols_cmds \
24116prelink_cmds \
24117postlink_cmds \
24118postinstall_cmds \
24119postuninstall_cmds \
24120finish_cmds \
24121sys_lib_search_path_spec \
24122configure_time_dlsearch_path \
24123configure_time_lt_sys_library_path; do
24124    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24125    *[\\\\\\\`\\"\\\$]*)
24126      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24127      ;;
24128    *)
24129      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24130      ;;
24131    esac
24132done
24133
24134ac_aux_dir='$ac_aux_dir'
24135
24136# See if we are running on zsh, and set the options that allow our
24137# commands through without removal of \ escapes INIT.
24138if test -n "\${ZSH_VERSION+set}"; then
24139   setopt NO_GLOB_SUBST
24140fi
24141
24142
24143    PACKAGE='$PACKAGE'
24144    VERSION='$VERSION'
24145    RM='$RM'
24146    ofile='$ofile'
24147
24148
24149
24150
24151_ACEOF
24152
24153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24154
24155# Handling of arguments.
24156for ac_config_target in $ac_config_targets
24157do
24158  case $ac_config_target in
24159    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24160    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
24161    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24162    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24163    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24164    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24165    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24166    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
24167    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24168    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
24169    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
24170    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
24171    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24172    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
24173    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
24174    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
24175    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
24176    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
24177    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
24178    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
24179    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
24180    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
24181    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
24182    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
24183    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
24184    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
24185    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
24186    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
24187    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
24188    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
24189    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
24190    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
24191    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
24192    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
24193
24194  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24195  esac
24196done
24197
24198
24199# If the user did not use the arguments to specify the items to instantiate,
24200# then the envvar interface is used.  Set only those that are not.
24201# We use the long form for the default assignment because of an extremely
24202# bizarre bug on SunOS 4.1.3.
24203if $ac_need_defaults; then
24204  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24205  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24206  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24207fi
24208
24209# Have a temporary directory for convenience.  Make it in the build tree
24210# simply because there is no reason against having it here, and in addition,
24211# creating and moving files from /tmp can sometimes cause problems.
24212# Hook for its removal unless debugging.
24213# Note that there is a small window in which the directory will not be cleaned:
24214# after its creation but before its name has been assigned to `$tmp'.
24215$debug ||
24216{
24217  tmp= ac_tmp=
24218  trap 'exit_status=$?
24219  : "${ac_tmp:=$tmp}"
24220  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24221' 0
24222  trap 'as_fn_exit 1' 1 2 13 15
24223}
24224# Create a (secure) tmp directory for tmp files.
24225
24226{
24227  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24228  test -d "$tmp"
24229}  ||
24230{
24231  tmp=./conf$$-$RANDOM
24232  (umask 077 && mkdir "$tmp")
24233} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24234ac_tmp=$tmp
24235
24236# Set up the scripts for CONFIG_FILES section.
24237# No need to generate them if there are no CONFIG_FILES.
24238# This happens for instance with `./config.status config.h'.
24239if test -n "$CONFIG_FILES"; then
24240
24241
24242ac_cr=`echo X | tr X '\015'`
24243# On cygwin, bash can eat \r inside `` if the user requested igncr.
24244# But we know of no other shell where ac_cr would be empty at this
24245# point, so we can use a bashism as a fallback.
24246if test "x$ac_cr" = x; then
24247  eval ac_cr=\$\'\\r\'
24248fi
24249ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24250if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24251  ac_cs_awk_cr='\\r'
24252else
24253  ac_cs_awk_cr=$ac_cr
24254fi
24255
24256echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24257_ACEOF
24258
24259
24260{
24261  echo "cat >conf$$subs.awk <<_ACEOF" &&
24262  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24263  echo "_ACEOF"
24264} >conf$$subs.sh ||
24265  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24266ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24267ac_delim='%!_!# '
24268for ac_last_try in false false false false false :; do
24269  . ./conf$$subs.sh ||
24270    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24271
24272  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24273  if test $ac_delim_n = $ac_delim_num; then
24274    break
24275  elif $ac_last_try; then
24276    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24277  else
24278    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24279  fi
24280done
24281rm -f conf$$subs.sh
24282
24283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24284cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24285_ACEOF
24286sed -n '
24287h
24288s/^/S["/; s/!.*/"]=/
24289p
24290g
24291s/^[^!]*!//
24292:repl
24293t repl
24294s/'"$ac_delim"'$//
24295t delim
24296:nl
24297h
24298s/\(.\{148\}\)..*/\1/
24299t more1
24300s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24301p
24302n
24303b repl
24304:more1
24305s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24306p
24307g
24308s/.\{148\}//
24309t nl
24310:delim
24311h
24312s/\(.\{148\}\)..*/\1/
24313t more2
24314s/["\\]/\\&/g; s/^/"/; s/$/"/
24315p
24316b
24317:more2
24318s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24319p
24320g
24321s/.\{148\}//
24322t delim
24323' <conf$$subs.awk | sed '
24324/^[^""]/{
24325  N
24326  s/\n//
24327}
24328' >>$CONFIG_STATUS || ac_write_fail=1
24329rm -f conf$$subs.awk
24330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24331_ACAWK
24332cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24333  for (key in S) S_is_set[key] = 1
24334  FS = ""
24335
24336}
24337{
24338  line = $ 0
24339  nfields = split(line, field, "@")
24340  substed = 0
24341  len = length(field[1])
24342  for (i = 2; i < nfields; i++) {
24343    key = field[i]
24344    keylen = length(key)
24345    if (S_is_set[key]) {
24346      value = S[key]
24347      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24348      len += length(value) + length(field[++i])
24349      substed = 1
24350    } else
24351      len += 1 + keylen
24352  }
24353
24354  print line
24355}
24356
24357_ACAWK
24358_ACEOF
24359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24360if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24361  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24362else
24363  cat
24364fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24365  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24366_ACEOF
24367
24368# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24369# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24370# trailing colons and then remove the whole line if VPATH becomes empty
24371# (actually we leave an empty line to preserve line numbers).
24372if test "x$srcdir" = x.; then
24373  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24374h
24375s///
24376s/^/:/
24377s/[	 ]*$/:/
24378s/:\$(srcdir):/:/g
24379s/:\${srcdir}:/:/g
24380s/:@srcdir@:/:/g
24381s/^:*//
24382s/:*$//
24383x
24384s/\(=[	 ]*\).*/\1/
24385G
24386s/\n//
24387s/^[^=]*=[	 ]*$//
24388}'
24389fi
24390
24391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24392fi # test -n "$CONFIG_FILES"
24393
24394# Set up the scripts for CONFIG_HEADERS section.
24395# No need to generate them if there are no CONFIG_HEADERS.
24396# This happens for instance with `./config.status Makefile'.
24397if test -n "$CONFIG_HEADERS"; then
24398cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24399BEGIN {
24400_ACEOF
24401
24402# Transform confdefs.h into an awk script `defines.awk', embedded as
24403# here-document in config.status, that substitutes the proper values into
24404# config.h.in to produce config.h.
24405
24406# Create a delimiter string that does not exist in confdefs.h, to ease
24407# handling of long lines.
24408ac_delim='%!_!# '
24409for ac_last_try in false false :; do
24410  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24411  if test -z "$ac_tt"; then
24412    break
24413  elif $ac_last_try; then
24414    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24415  else
24416    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24417  fi
24418done
24419
24420# For the awk script, D is an array of macro values keyed by name,
24421# likewise P contains macro parameters if any.  Preserve backslash
24422# newline sequences.
24423
24424ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24425sed -n '
24426s/.\{148\}/&'"$ac_delim"'/g
24427t rset
24428:rset
24429s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24430t def
24431d
24432:def
24433s/\\$//
24434t bsnl
24435s/["\\]/\\&/g
24436s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24437D["\1"]=" \3"/p
24438s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24439d
24440:bsnl
24441s/["\\]/\\&/g
24442s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24443D["\1"]=" \3\\\\\\n"\\/p
24444t cont
24445s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24446t cont
24447d
24448:cont
24449n
24450s/.\{148\}/&'"$ac_delim"'/g
24451t clear
24452:clear
24453s/\\$//
24454t bsnlc
24455s/["\\]/\\&/g; s/^/"/; s/$/"/p
24456d
24457:bsnlc
24458s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24459b cont
24460' <confdefs.h | sed '
24461s/'"$ac_delim"'/"\\\
24462"/g' >>$CONFIG_STATUS || ac_write_fail=1
24463
24464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24465  for (key in D) D_is_set[key] = 1
24466  FS = ""
24467}
24468/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24469  line = \$ 0
24470  split(line, arg, " ")
24471  if (arg[1] == "#") {
24472    defundef = arg[2]
24473    mac1 = arg[3]
24474  } else {
24475    defundef = substr(arg[1], 2)
24476    mac1 = arg[2]
24477  }
24478  split(mac1, mac2, "(") #)
24479  macro = mac2[1]
24480  prefix = substr(line, 1, index(line, defundef) - 1)
24481  if (D_is_set[macro]) {
24482    # Preserve the white space surrounding the "#".
24483    print prefix "define", macro P[macro] D[macro]
24484    next
24485  } else {
24486    # Replace #undef with comments.  This is necessary, for example,
24487    # in the case of _POSIX_SOURCE, which is predefined and required
24488    # on some systems where configure will not decide to define it.
24489    if (defundef == "undef") {
24490      print "/*", prefix defundef, macro, "*/"
24491      next
24492    }
24493  }
24494}
24495{ print }
24496_ACAWK
24497_ACEOF
24498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24499  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24500fi # test -n "$CONFIG_HEADERS"
24501
24502
24503eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24504shift
24505for ac_tag
24506do
24507  case $ac_tag in
24508  :[FHLC]) ac_mode=$ac_tag; continue;;
24509  esac
24510  case $ac_mode$ac_tag in
24511  :[FHL]*:*);;
24512  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24513  :[FH]-) ac_tag=-:-;;
24514  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24515  esac
24516  ac_save_IFS=$IFS
24517  IFS=:
24518  set x $ac_tag
24519  IFS=$ac_save_IFS
24520  shift
24521  ac_file=$1
24522  shift
24523
24524  case $ac_mode in
24525  :L) ac_source=$1;;
24526  :[FH])
24527    ac_file_inputs=
24528    for ac_f
24529    do
24530      case $ac_f in
24531      -) ac_f="$ac_tmp/stdin";;
24532      *) # Look for the file first in the build tree, then in the source tree
24533	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24534	 # because $ac_f cannot contain `:'.
24535	 test -f "$ac_f" ||
24536	   case $ac_f in
24537	   [\\/$]*) false;;
24538	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24539	   esac ||
24540	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24541      esac
24542      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24543      as_fn_append ac_file_inputs " '$ac_f'"
24544    done
24545
24546    # Let's still pretend it is `configure' which instantiates (i.e., don't
24547    # use $as_me), people would be surprised to read:
24548    #    /* config.h.  Generated by config.status.  */
24549    configure_input='Generated from '`
24550	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24551	`' by configure.'
24552    if test x"$ac_file" != x-; then
24553      configure_input="$ac_file.  $configure_input"
24554      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24555printf "%s\n" "$as_me: creating $ac_file" >&6;}
24556    fi
24557    # Neutralize special characters interpreted by sed in replacement strings.
24558    case $configure_input in #(
24559    *\&* | *\|* | *\\* )
24560       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24561       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24562    *) ac_sed_conf_input=$configure_input;;
24563    esac
24564
24565    case $ac_tag in
24566    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24567      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24568    esac
24569    ;;
24570  esac
24571
24572  ac_dir=`$as_dirname -- "$ac_file" ||
24573$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24574	 X"$ac_file" : 'X\(//\)[^/]' \| \
24575	 X"$ac_file" : 'X\(//\)$' \| \
24576	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24577printf "%s\n" X"$ac_file" |
24578    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24579	    s//\1/
24580	    q
24581	  }
24582	  /^X\(\/\/\)[^/].*/{
24583	    s//\1/
24584	    q
24585	  }
24586	  /^X\(\/\/\)$/{
24587	    s//\1/
24588	    q
24589	  }
24590	  /^X\(\/\).*/{
24591	    s//\1/
24592	    q
24593	  }
24594	  s/.*/./; q'`
24595  as_dir="$ac_dir"; as_fn_mkdir_p
24596  ac_builddir=.
24597
24598case "$ac_dir" in
24599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24600*)
24601  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24602  # A ".." for each directory in $ac_dir_suffix.
24603  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24604  case $ac_top_builddir_sub in
24605  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24606  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24607  esac ;;
24608esac
24609ac_abs_top_builddir=$ac_pwd
24610ac_abs_builddir=$ac_pwd$ac_dir_suffix
24611# for backward compatibility:
24612ac_top_builddir=$ac_top_build_prefix
24613
24614case $srcdir in
24615  .)  # We are building in place.
24616    ac_srcdir=.
24617    ac_top_srcdir=$ac_top_builddir_sub
24618    ac_abs_top_srcdir=$ac_pwd ;;
24619  [\\/]* | ?:[\\/]* )  # Absolute name.
24620    ac_srcdir=$srcdir$ac_dir_suffix;
24621    ac_top_srcdir=$srcdir
24622    ac_abs_top_srcdir=$srcdir ;;
24623  *) # Relative name.
24624    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24625    ac_top_srcdir=$ac_top_build_prefix$srcdir
24626    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24627esac
24628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24629
24630
24631  case $ac_mode in
24632  :F)
24633  #
24634  # CONFIG_FILE
24635  #
24636
24637  case $INSTALL in
24638  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24639  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24640  esac
24641  ac_MKDIR_P=$MKDIR_P
24642  case $MKDIR_P in
24643  [\\/$]* | ?:[\\/]* ) ;;
24644  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24645  esac
24646_ACEOF
24647
24648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24649# If the template does not know about datarootdir, expand it.
24650# FIXME: This hack should be removed a few years after 2.60.
24651ac_datarootdir_hack=; ac_datarootdir_seen=
24652ac_sed_dataroot='
24653/datarootdir/ {
24654  p
24655  q
24656}
24657/@datadir@/p
24658/@docdir@/p
24659/@infodir@/p
24660/@localedir@/p
24661/@mandir@/p'
24662case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24663*datarootdir*) ac_datarootdir_seen=yes;;
24664*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24666printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24667_ACEOF
24668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24669  ac_datarootdir_hack='
24670  s&@datadir@&$datadir&g
24671  s&@docdir@&$docdir&g
24672  s&@infodir@&$infodir&g
24673  s&@localedir@&$localedir&g
24674  s&@mandir@&$mandir&g
24675  s&\\\${datarootdir}&$datarootdir&g' ;;
24676esac
24677_ACEOF
24678
24679# Neutralize VPATH when `$srcdir' = `.'.
24680# Shell code in configure.ac might set extrasub.
24681# FIXME: do we really want to maintain this feature?
24682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24683ac_sed_extra="$ac_vpsub
24684$extrasub
24685_ACEOF
24686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24687:t
24688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24689s|@configure_input@|$ac_sed_conf_input|;t t
24690s&@top_builddir@&$ac_top_builddir_sub&;t t
24691s&@top_build_prefix@&$ac_top_build_prefix&;t t
24692s&@srcdir@&$ac_srcdir&;t t
24693s&@abs_srcdir@&$ac_abs_srcdir&;t t
24694s&@top_srcdir@&$ac_top_srcdir&;t t
24695s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24696s&@builddir@&$ac_builddir&;t t
24697s&@abs_builddir@&$ac_abs_builddir&;t t
24698s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24699s&@INSTALL@&$ac_INSTALL&;t t
24700s&@MKDIR_P@&$ac_MKDIR_P&;t t
24701$ac_datarootdir_hack
24702"
24703eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24704  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24705
24706test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24707  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24708  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24709      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24711which seems to be undefined.  Please make sure it is defined" >&5
24712printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24713which seems to be undefined.  Please make sure it is defined" >&2;}
24714
24715  rm -f "$ac_tmp/stdin"
24716  case $ac_file in
24717  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24718  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24719  esac \
24720  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24721 ;;
24722  :H)
24723  #
24724  # CONFIG_HEADER
24725  #
24726  if test x"$ac_file" != x-; then
24727    {
24728      printf "%s\n" "/* $configure_input  */" >&1 \
24729      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24730    } >"$ac_tmp/config.h" \
24731      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24732    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24733      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24734printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24735    else
24736      rm -f "$ac_file"
24737      mv "$ac_tmp/config.h" "$ac_file" \
24738	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24739    fi
24740  else
24741    printf "%s\n" "/* $configure_input  */" >&1 \
24742      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24743      || as_fn_error $? "could not create -" "$LINENO" 5
24744  fi
24745# Compute "$ac_file"'s index in $config_headers.
24746_am_arg="$ac_file"
24747_am_stamp_count=1
24748for _am_header in $config_headers :; do
24749  case $_am_header in
24750    $_am_arg | $_am_arg:* )
24751      break ;;
24752    * )
24753      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24754  esac
24755done
24756echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24757$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24758	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24759	 X"$_am_arg" : 'X\(//\)$' \| \
24760	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24761printf "%s\n" X"$_am_arg" |
24762    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24763	    s//\1/
24764	    q
24765	  }
24766	  /^X\(\/\/\)[^/].*/{
24767	    s//\1/
24768	    q
24769	  }
24770	  /^X\(\/\/\)$/{
24771	    s//\1/
24772	    q
24773	  }
24774	  /^X\(\/\).*/{
24775	    s//\1/
24776	    q
24777	  }
24778	  s/.*/./; q'`/stamp-h$_am_stamp_count
24779 ;;
24780
24781  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24782printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24783 ;;
24784  esac
24785
24786
24787  case $ac_file$ac_mode in
24788    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24789  # Older Autoconf quotes --file arguments for eval, but not when files
24790  # are listed without --file.  Let's play safe and only enable the eval
24791  # if we detect the quoting.
24792  # TODO: see whether this extra hack can be removed once we start
24793  # requiring Autoconf 2.70 or later.
24794  case $CONFIG_FILES in #(
24795  *\'*) :
24796    eval set x "$CONFIG_FILES" ;; #(
24797  *) :
24798    set x $CONFIG_FILES ;; #(
24799  *) :
24800     ;;
24801esac
24802  shift
24803  # Used to flag and report bootstrapping failures.
24804  am_rc=0
24805  for am_mf
24806  do
24807    # Strip MF so we end up with the name of the file.
24808    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24809    # Check whether this is an Automake generated Makefile which includes
24810    # dependency-tracking related rules and includes.
24811    # Grep'ing the whole file directly is not great: AIX grep has a line
24812    # limit of 2048, but all sed's we know have understand at least 4000.
24813    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24814      || continue
24815    am_dirpart=`$as_dirname -- "$am_mf" ||
24816$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24817	 X"$am_mf" : 'X\(//\)[^/]' \| \
24818	 X"$am_mf" : 'X\(//\)$' \| \
24819	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24820printf "%s\n" X"$am_mf" |
24821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24822	    s//\1/
24823	    q
24824	  }
24825	  /^X\(\/\/\)[^/].*/{
24826	    s//\1/
24827	    q
24828	  }
24829	  /^X\(\/\/\)$/{
24830	    s//\1/
24831	    q
24832	  }
24833	  /^X\(\/\).*/{
24834	    s//\1/
24835	    q
24836	  }
24837	  s/.*/./; q'`
24838    am_filepart=`$as_basename -- "$am_mf" ||
24839$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24840	 X"$am_mf" : 'X\(//\)$' \| \
24841	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24842printf "%s\n" X/"$am_mf" |
24843    sed '/^.*\/\([^/][^/]*\)\/*$/{
24844	    s//\1/
24845	    q
24846	  }
24847	  /^X\/\(\/\/\)$/{
24848	    s//\1/
24849	    q
24850	  }
24851	  /^X\/\(\/\).*/{
24852	    s//\1/
24853	    q
24854	  }
24855	  s/.*/./; q'`
24856    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24857      && sed -e '/# am--include-marker/d' "$am_filepart" \
24858        | $MAKE -f - am--depfiles" >&5
24859   (cd "$am_dirpart" \
24860      && sed -e '/# am--include-marker/d' "$am_filepart" \
24861        | $MAKE -f - am--depfiles) >&5 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } || am_rc=$?
24865  done
24866  if test $am_rc -ne 0; then
24867    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24868printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24869as_fn_error $? "Something went wrong bootstrapping makefile fragments
24870    for automatic dependency tracking.  If GNU make was not used, consider
24871    re-running the configure script with MAKE=\"gmake\" (or whatever is
24872    necessary).  You can also try re-running configure with the
24873    '--disable-dependency-tracking' option to at least be able to build
24874    the package (albeit without support for automatic dependency tracking).
24875See \`config.log' for more details" "$LINENO" 5; }
24876  fi
24877  { am_dirpart=; unset am_dirpart;}
24878  { am_filepart=; unset am_filepart;}
24879  { am_mf=; unset am_mf;}
24880  { am_rc=; unset am_rc;}
24881  rm -f conftest-deps.mk
24882}
24883 ;;
24884    "libtool":C)
24885
24886    # See if we are running on zsh, and set the options that allow our
24887    # commands through without removal of \ escapes.
24888    if test -n "${ZSH_VERSION+set}"; then
24889      setopt NO_GLOB_SUBST
24890    fi
24891
24892    cfgfile=${ofile}T
24893    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24894    $RM "$cfgfile"
24895
24896    cat <<_LT_EOF >> "$cfgfile"
24897#! $SHELL
24898# Generated automatically by $as_me ($PACKAGE) $VERSION
24899# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24900# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24901
24902# Provide generalized library-building support services.
24903# Written by Gordon Matzigkeit, 1996
24904
24905# Copyright (C) 2014 Free Software Foundation, Inc.
24906# This is free software; see the source for copying conditions.  There is NO
24907# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24908
24909# GNU Libtool is free software; you can redistribute it and/or modify
24910# it under the terms of the GNU General Public License as published by
24911# the Free Software Foundation; either version 2 of of the License, or
24912# (at your option) any later version.
24913#
24914# As a special exception to the GNU General Public License, if you
24915# distribute this file as part of a program or library that is built
24916# using GNU Libtool, you may include this file under the  same
24917# distribution terms that you use for the rest of that program.
24918#
24919# GNU Libtool is distributed in the hope that it will be useful, but
24920# WITHOUT ANY WARRANTY; without even the implied warranty of
24921# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24922# GNU General Public License for more details.
24923#
24924# You should have received a copy of the GNU General Public License
24925# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24926
24927
24928# The names of the tagged configurations supported by this script.
24929available_tags=''
24930
24931# Configured defaults for sys_lib_dlsearch_path munging.
24932: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24933
24934# ### BEGIN LIBTOOL CONFIG
24935
24936# Which release of libtool.m4 was used?
24937macro_version=$macro_version
24938macro_revision=$macro_revision
24939
24940# Whether or not to build shared libraries.
24941build_libtool_libs=$enable_shared
24942
24943# Whether or not to build static libraries.
24944build_old_libs=$enable_static
24945
24946# What type of objects to build.
24947pic_mode=$pic_mode
24948
24949# Whether or not to optimize for fast installation.
24950fast_install=$enable_fast_install
24951
24952# Shared archive member basename,for filename based shared library versioning on AIX.
24953shared_archive_member_spec=$shared_archive_member_spec
24954
24955# Shell to use when invoking shell scripts.
24956SHELL=$lt_SHELL
24957
24958# An echo program that protects backslashes.
24959ECHO=$lt_ECHO
24960
24961# The PATH separator for the build system.
24962PATH_SEPARATOR=$lt_PATH_SEPARATOR
24963
24964# The host system.
24965host_alias=$host_alias
24966host=$host
24967host_os=$host_os
24968
24969# The build system.
24970build_alias=$build_alias
24971build=$build
24972build_os=$build_os
24973
24974# A sed program that does not truncate output.
24975SED=$lt_SED
24976
24977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24978Xsed="\$SED -e 1s/^X//"
24979
24980# A grep program that handles long lines.
24981GREP=$lt_GREP
24982
24983# An ERE matcher.
24984EGREP=$lt_EGREP
24985
24986# A literal string matcher.
24987FGREP=$lt_FGREP
24988
24989# A BSD- or MS-compatible name lister.
24990NM=$lt_NM
24991
24992# Whether we need soft or hard links.
24993LN_S=$lt_LN_S
24994
24995# What is the maximum length of a command?
24996max_cmd_len=$max_cmd_len
24997
24998# Object file suffix (normally "o").
24999objext=$ac_objext
25000
25001# Executable file suffix (normally "").
25002exeext=$exeext
25003
25004# whether the shell understands "unset".
25005lt_unset=$lt_unset
25006
25007# turn spaces into newlines.
25008SP2NL=$lt_lt_SP2NL
25009
25010# turn newlines into spaces.
25011NL2SP=$lt_lt_NL2SP
25012
25013# convert \$build file names to \$host format.
25014to_host_file_cmd=$lt_cv_to_host_file_cmd
25015
25016# convert \$build files to toolchain format.
25017to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25018
25019# A file(cmd) program that detects file types.
25020FILECMD=$lt_FILECMD
25021
25022# An object symbol dumper.
25023OBJDUMP=$lt_OBJDUMP
25024
25025# Method to check whether dependent libraries are shared objects.
25026deplibs_check_method=$lt_deplibs_check_method
25027
25028# Command to use when deplibs_check_method = "file_magic".
25029file_magic_cmd=$lt_file_magic_cmd
25030
25031# How to find potential files when deplibs_check_method = "file_magic".
25032file_magic_glob=$lt_file_magic_glob
25033
25034# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25035want_nocaseglob=$lt_want_nocaseglob
25036
25037# DLL creation program.
25038DLLTOOL=$lt_DLLTOOL
25039
25040# Command to associate shared and link libraries.
25041sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25042
25043# The archiver.
25044AR=$lt_AR
25045
25046# Flags to create an archive (by configure).
25047lt_ar_flags=$lt_ar_flags
25048
25049# Flags to create an archive.
25050AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25051
25052# How to feed a file listing to the archiver.
25053archiver_list_spec=$lt_archiver_list_spec
25054
25055# A symbol stripping program.
25056STRIP=$lt_STRIP
25057
25058# Commands used to install an old-style archive.
25059RANLIB=$lt_RANLIB
25060old_postinstall_cmds=$lt_old_postinstall_cmds
25061old_postuninstall_cmds=$lt_old_postuninstall_cmds
25062
25063# Whether to use a lock for old archive extraction.
25064lock_old_archive_extraction=$lock_old_archive_extraction
25065
25066# A C compiler.
25067LTCC=$lt_CC
25068
25069# LTCC compiler flags.
25070LTCFLAGS=$lt_CFLAGS
25071
25072# Take the output of nm and produce a listing of raw symbols and C names.
25073global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25074
25075# Transform the output of nm in a proper C declaration.
25076global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25077
25078# Transform the output of nm into a list of symbols to manually relocate.
25079global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25080
25081# Transform the output of nm in a C name address pair.
25082global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25083
25084# Transform the output of nm in a C name address pair when lib prefix is needed.
25085global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25086
25087# The name lister interface.
25088nm_interface=$lt_lt_cv_nm_interface
25089
25090# Specify filename containing input files for \$NM.
25091nm_file_list_spec=$lt_nm_file_list_spec
25092
25093# The root where to search for dependent libraries,and where our libraries should be installed.
25094lt_sysroot=$lt_sysroot
25095
25096# Command to truncate a binary pipe.
25097lt_truncate_bin=$lt_lt_cv_truncate_bin
25098
25099# The name of the directory that contains temporary libtool files.
25100objdir=$objdir
25101
25102# Used to examine libraries when file_magic_cmd begins with "file".
25103MAGIC_CMD=$MAGIC_CMD
25104
25105# Must we lock files when doing compilation?
25106need_locks=$lt_need_locks
25107
25108# Manifest tool.
25109MANIFEST_TOOL=$lt_MANIFEST_TOOL
25110
25111# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25112DSYMUTIL=$lt_DSYMUTIL
25113
25114# Tool to change global to local symbols on Mac OS X.
25115NMEDIT=$lt_NMEDIT
25116
25117# Tool to manipulate fat objects and archives on Mac OS X.
25118LIPO=$lt_LIPO
25119
25120# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25121OTOOL=$lt_OTOOL
25122
25123# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25124OTOOL64=$lt_OTOOL64
25125
25126# Old archive suffix (normally "a").
25127libext=$libext
25128
25129# Shared library suffix (normally ".so").
25130shrext_cmds=$lt_shrext_cmds
25131
25132# The commands to extract the exported symbol list from a shared archive.
25133extract_expsyms_cmds=$lt_extract_expsyms_cmds
25134
25135# Variables whose values should be saved in libtool wrapper scripts and
25136# restored at link time.
25137variables_saved_for_relink=$lt_variables_saved_for_relink
25138
25139# Do we need the "lib" prefix for modules?
25140need_lib_prefix=$need_lib_prefix
25141
25142# Do we need a version for libraries?
25143need_version=$need_version
25144
25145# Library versioning type.
25146version_type=$version_type
25147
25148# Shared library runtime path variable.
25149runpath_var=$runpath_var
25150
25151# Shared library path variable.
25152shlibpath_var=$shlibpath_var
25153
25154# Is shlibpath searched before the hard-coded library search path?
25155shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25156
25157# Format of library name prefix.
25158libname_spec=$lt_libname_spec
25159
25160# List of archive names.  First name is the real one, the rest are links.
25161# The last name is the one that the linker finds with -lNAME
25162library_names_spec=$lt_library_names_spec
25163
25164# The coded name of the library, if different from the real name.
25165soname_spec=$lt_soname_spec
25166
25167# Permission mode override for installation of shared libraries.
25168install_override_mode=$lt_install_override_mode
25169
25170# Command to use after installation of a shared archive.
25171postinstall_cmds=$lt_postinstall_cmds
25172
25173# Command to use after uninstallation of a shared archive.
25174postuninstall_cmds=$lt_postuninstall_cmds
25175
25176# Commands used to finish a libtool library installation in a directory.
25177finish_cmds=$lt_finish_cmds
25178
25179# As "finish_cmds", except a single script fragment to be evaled but
25180# not shown.
25181finish_eval=$lt_finish_eval
25182
25183# Whether we should hardcode library paths into libraries.
25184hardcode_into_libs=$hardcode_into_libs
25185
25186# Compile-time system search path for libraries.
25187sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25188
25189# Detected run-time system search path for libraries.
25190sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25191
25192# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25193configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25194
25195# Whether dlopen is supported.
25196dlopen_support=$enable_dlopen
25197
25198# Whether dlopen of programs is supported.
25199dlopen_self=$enable_dlopen_self
25200
25201# Whether dlopen of statically linked programs is supported.
25202dlopen_self_static=$enable_dlopen_self_static
25203
25204# Commands to strip libraries.
25205old_striplib=$lt_old_striplib
25206striplib=$lt_striplib
25207
25208
25209# The linker used to build libraries.
25210LD=$lt_LD
25211
25212# How to create reloadable object files.
25213reload_flag=$lt_reload_flag
25214reload_cmds=$lt_reload_cmds
25215
25216# Commands used to build an old-style archive.
25217old_archive_cmds=$lt_old_archive_cmds
25218
25219# A language specific compiler.
25220CC=$lt_compiler
25221
25222# Is the compiler the GNU compiler?
25223with_gcc=$GCC
25224
25225# Compiler flag to turn off builtin functions.
25226no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25227
25228# Additional compiler flags for building library objects.
25229pic_flag=$lt_lt_prog_compiler_pic
25230
25231# How to pass a linker flag through the compiler.
25232wl=$lt_lt_prog_compiler_wl
25233
25234# Compiler flag to prevent dynamic linking.
25235link_static_flag=$lt_lt_prog_compiler_static
25236
25237# Does compiler simultaneously support -c and -o options?
25238compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25239
25240# Whether or not to add -lc for building shared libraries.
25241build_libtool_need_lc=$archive_cmds_need_lc
25242
25243# Whether or not to disallow shared libs when runtime libs are static.
25244allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25245
25246# Compiler flag to allow reflexive dlopens.
25247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25248
25249# Compiler flag to generate shared objects directly from archives.
25250whole_archive_flag_spec=$lt_whole_archive_flag_spec
25251
25252# Whether the compiler copes with passing no objects directly.
25253compiler_needs_object=$lt_compiler_needs_object
25254
25255# Create an old-style archive from a shared archive.
25256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25257
25258# Create a temporary old-style archive to link instead of a shared archive.
25259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25260
25261# Commands used to build a shared archive.
25262archive_cmds=$lt_archive_cmds
25263archive_expsym_cmds=$lt_archive_expsym_cmds
25264
25265# Commands used to build a loadable module if different from building
25266# a shared archive.
25267module_cmds=$lt_module_cmds
25268module_expsym_cmds=$lt_module_expsym_cmds
25269
25270# Whether we are building with GNU ld or not.
25271with_gnu_ld=$lt_with_gnu_ld
25272
25273# Flag that allows shared libraries with undefined symbols to be built.
25274allow_undefined_flag=$lt_allow_undefined_flag
25275
25276# Flag that enforces no undefined symbols.
25277no_undefined_flag=$lt_no_undefined_flag
25278
25279# Flag to hardcode \$libdir into a binary during linking.
25280# This must work even if \$libdir does not exist
25281hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25282
25283# Whether we need a single "-rpath" flag with a separated argument.
25284hardcode_libdir_separator=$lt_hardcode_libdir_separator
25285
25286# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25287# DIR into the resulting binary.
25288hardcode_direct=$hardcode_direct
25289
25290# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25291# DIR into the resulting binary and the resulting library dependency is
25292# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25293# library is relocated.
25294hardcode_direct_absolute=$hardcode_direct_absolute
25295
25296# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25297# into the resulting binary.
25298hardcode_minus_L=$hardcode_minus_L
25299
25300# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25301# into the resulting binary.
25302hardcode_shlibpath_var=$hardcode_shlibpath_var
25303
25304# Set to "yes" if building a shared library automatically hardcodes DIR
25305# into the library and all subsequent libraries and executables linked
25306# against it.
25307hardcode_automatic=$hardcode_automatic
25308
25309# Set to yes if linker adds runtime paths of dependent libraries
25310# to runtime path list.
25311inherit_rpath=$inherit_rpath
25312
25313# Whether libtool must link a program against all its dependency libraries.
25314link_all_deplibs=$link_all_deplibs
25315
25316# Set to "yes" if exported symbols are required.
25317always_export_symbols=$always_export_symbols
25318
25319# The commands to list exported symbols.
25320export_symbols_cmds=$lt_export_symbols_cmds
25321
25322# Symbols that should not be listed in the preloaded symbols.
25323exclude_expsyms=$lt_exclude_expsyms
25324
25325# Symbols that must always be exported.
25326include_expsyms=$lt_include_expsyms
25327
25328# Commands necessary for linking programs (against libraries) with templates.
25329prelink_cmds=$lt_prelink_cmds
25330
25331# Commands necessary for finishing linking programs.
25332postlink_cmds=$lt_postlink_cmds
25333
25334# Specify filename containing input files.
25335file_list_spec=$lt_file_list_spec
25336
25337# How to hardcode a shared library path into an executable.
25338hardcode_action=$hardcode_action
25339
25340# ### END LIBTOOL CONFIG
25341
25342_LT_EOF
25343
25344    cat <<'_LT_EOF' >> "$cfgfile"
25345
25346# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25347
25348# func_munge_path_list VARIABLE PATH
25349# -----------------------------------
25350# VARIABLE is name of variable containing _space_ separated list of
25351# directories to be munged by the contents of PATH, which is string
25352# having a format:
25353# "DIR[:DIR]:"
25354#       string "DIR[ DIR]" will be prepended to VARIABLE
25355# ":DIR[:DIR]"
25356#       string "DIR[ DIR]" will be appended to VARIABLE
25357# "DIRP[:DIRP]::[DIRA:]DIRA"
25358#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25359#       "DIRA[ DIRA]" will be appended to VARIABLE
25360# "DIR[:DIR]"
25361#       VARIABLE will be replaced by "DIR[ DIR]"
25362func_munge_path_list ()
25363{
25364    case x$2 in
25365    x)
25366        ;;
25367    *:)
25368        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25369        ;;
25370    x:*)
25371        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25372        ;;
25373    *::*)
25374        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25375        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25376        ;;
25377    *)
25378        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25379        ;;
25380    esac
25381}
25382
25383
25384# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25385func_cc_basename ()
25386{
25387    for cc_temp in $*""; do
25388      case $cc_temp in
25389        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25390        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25391        \-*) ;;
25392        *) break;;
25393      esac
25394    done
25395    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25396}
25397
25398
25399# ### END FUNCTIONS SHARED WITH CONFIGURE
25400
25401_LT_EOF
25402
25403  case $host_os in
25404  aix3*)
25405    cat <<\_LT_EOF >> "$cfgfile"
25406# AIX sometimes has problems with the GCC collect2 program.  For some
25407# reason, if we set the COLLECT_NAMES environment variable, the problems
25408# vanish in a puff of smoke.
25409if test set != "${COLLECT_NAMES+set}"; then
25410  COLLECT_NAMES=
25411  export COLLECT_NAMES
25412fi
25413_LT_EOF
25414    ;;
25415  esac
25416
25417
25418
25419ltmain=$ac_aux_dir/ltmain.sh
25420
25421
25422  # We use sed instead of cat because bash on DJGPP gets confused if
25423  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25424  # text mode, it properly converts lines to CR/LF.  This bash problem
25425  # is reportedly fixed, but why not run on old versions too?
25426  $SED '$q' "$ltmain" >> "$cfgfile" \
25427     || (rm -f "$cfgfile"; exit 1)
25428
25429   mv -f "$cfgfile" "$ofile" ||
25430    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25431  chmod +x "$ofile"
25432
25433 ;;
25434
25435  esac
25436done # for ac_tag
25437
25438
25439as_fn_exit 0
25440_ACEOF
25441ac_clean_files=$ac_clean_files_save
25442
25443test $ac_write_fail = 0 ||
25444  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25445
25446
25447# configure is writing to config.log, and then calls config.status.
25448# config.status does its own redirection, appending to config.log.
25449# Unfortunately, on DOS this fails, as config.log is still kept open
25450# by configure, so config.status won't be able to write to it; its
25451# output is simply discarded.  So we exec the FD to /dev/null,
25452# effectively closing config.log, so it can be properly (re)opened and
25453# appended to by config.status.  When coming back to configure, we
25454# need to make the FD available again.
25455if test "$no_create" != yes; then
25456  ac_cs_success=:
25457  ac_config_status_args=
25458  test "$silent" = yes &&
25459    ac_config_status_args="$ac_config_status_args --quiet"
25460  exec 5>/dev/null
25461  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25462  exec 5>>config.log
25463  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25464  # would make configure fail if this is the last instruction.
25465  $ac_cs_success || as_fn_exit 1
25466fi
25467if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25469printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25470fi
25471
25472
25473echo ""
25474echo "X11 will be built with the following settings:"
25475echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
25476echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
25477echo " Threading support:                       "$xthreads
25478echo " Use Threads safe API:                    "$mtsafeapi
25479echo " Use thread safety constructor:           "$USE_THREAD_SAFETY_CONSTRUCTOR
25480echo " XCMS:                                    "$XCMS
25481echo " Internationalization support:            "$XLOCALE
25482echo " XF86BigFont support:                     "$XF86BIGFONT
25483echo " XKB support:                             "$XKB
25484echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
25485echo " Compose table cache enabled:             "$COMPOSECACHE
25486echo " Functional specs building enabled:       "$build_specs
25487echo ""
25488
25489