1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libX11 1.8.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195test \$(( 1 + 1 )) = 2 || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594as_awk_strverscmp='
595  # Use only awk features that work with 7th edition Unix awk (1978).
596  # My, what an old awk you have, Mr. Solaris!
597  END {
598    while (length(v1) && length(v2)) {
599      # Set d1 to be the next thing to compare from v1, and likewise for d2.
600      # Normally this is a single character, but if v1 and v2 contain digits,
601      # compare them as integers and fractions as strverscmp does.
602      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
603	# Split v1 and v2 into their leading digit string components d1 and d2,
604	# and advance v1 and v2 past the leading digit strings.
605	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
606	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
607	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
608	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
609	if (d1 ~ /^0/) {
610	  if (d2 ~ /^0/) {
611	    # Compare two fractions.
612	    while (d1 ~ /^0/ && d2 ~ /^0/) {
613	      d1 = substr(d1, 2); len1--
614	      d2 = substr(d2, 2); len2--
615	    }
616	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
617	      # The two components differ in length, and the common prefix
618	      # contains only leading zeros.  Consider the longer to be less.
619	      d1 = -len1
620	      d2 = -len2
621	    } else {
622	      # Otherwise, compare as strings.
623	      d1 = "x" d1
624	      d2 = "x" d2
625	    }
626	  } else {
627	    # A fraction is less than an integer.
628	    exit 1
629	  }
630	} else {
631	  if (d2 ~ /^0/) {
632	    # An integer is greater than a fraction.
633	    exit 2
634	  } else {
635	    # Compare two integers.
636	    d1 += 0
637	    d2 += 0
638	  }
639	}
640      } else {
641	# The normal case, without worrying about digits.
642	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
643	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
644      }
645      if (d1 < d2) exit 1
646      if (d1 > d2) exit 2
647    }
648    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
649    # which mishandles some comparisons of empty strings to integers.
650    if (length(v2)) exit 1
651    if (length(v1)) exit 2
652  }
653'
654
655test -n "$DJDIR" || exec 7<&0 </dev/null
656exec 6>&1
657
658# Name of the host.
659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
660# so uname gets run too.
661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
662
663#
664# Initializations.
665#
666ac_default_prefix=/usr/local
667ac_clean_files=
668ac_config_libobj_dir=.
669LIBOBJS=
670cross_compiling=no
671subdirs=
672MFLAGS=
673MAKEFLAGS=
674
675# Identity of this package.
676PACKAGE_NAME='libX11'
677PACKAGE_TARNAME='libX11'
678PACKAGE_VERSION='1.8.12'
679PACKAGE_STRING='libX11 1.8.12'
680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues'
681PACKAGE_URL=''
682
683ac_unique_file="Makefile.am"
684# Factoring default headers for most tests.
685ac_includes_default="\
686#include <stddef.h>
687#ifdef HAVE_STDIO_H
688# include <stdio.h>
689#endif
690#ifdef HAVE_STDLIB_H
691# include <stdlib.h>
692#endif
693#ifdef HAVE_STRING_H
694# include <string.h>
695#endif
696#ifdef HAVE_INTTYPES_H
697# include <inttypes.h>
698#endif
699#ifdef HAVE_STDINT_H
700# include <stdint.h>
701#endif
702#ifdef HAVE_STRINGS_H
703# include <strings.h>
704#endif
705#ifdef HAVE_SYS_TYPES_H
706# include <sys/types.h>
707#endif
708#ifdef HAVE_SYS_STAT_H
709# include <sys/stat.h>
710#endif
711#ifdef HAVE_UNISTD_H
712# include <unistd.h>
713#endif"
714
715ac_header_c_list=
716ac_func_c_list=
717enable_year2038=no
718ac_subst_vars='am__EXEEXT_FALSE
719am__EXEEXT_TRUE
720LTLIBOBJS
721XTMALLOC_ZERO_CFLAGS
722XMALLOC_ZERO_CFLAGS
723MALLOC_ZERO_CFLAGS
724XERRORDB
725XKEYSYMDB
726locales
727X11_LOCALEDIR
728XLOCALEDIR
729X11_LOCALELIBDIR
730XLOCALELIBDIR
731X11_LOCALEDATADIR
732XLOCALEDATADIR
733X11_LIBS
734X11_CFLAGS
735X11_LIBDIR
736X11_DATADIR
737MAKE_LINT_LIB_FALSE
738MAKE_LINT_LIB_TRUE
739LINTLIB
740LINT_FALSE
741LINT_TRUE
742LINT_FLAGS
743LINT
744XKBPROTO_REQUIRES
745XKB_FALSE
746XKB_TRUE
747BIGFONT_LIBS
748BIGFONT_CFLAGS
749XLOCALE_FALSE
750XLOCALE_TRUE
751XCMS_FALSE
752XCMS_TRUE
753KEYSYMDEFS
754USE_THREAD_LIBS
755XTHREAD_CFLAGS
756XTHREADLIB
757LAUNCHD
758OS2_FALSE
759OS2_TRUE
760WCHAR32
761LIBOBJS
762XLIB_LOADABLE_I18N_FALSE
763XLIB_LOADABLE_I18N_TRUE
764I18N_MODULE_LIBS
765X11_EXTRA_DEPS
766EXEEXT_FOR_BUILD
767LDFLAGS_FOR_BUILD
768CFLAGS_FOR_BUILD
769CPPFLAGS_FOR_BUILD
770CC_FOR_BUILD
771HAVE_PERL_FALSE
772HAVE_PERL_TRUE
773PERL
774TRADITIONALCPPFLAGS
775RAWCPPFLAGS
776RAWCPP
777CPP
778HAVE_STYLESHEETS_FALSE
779HAVE_STYLESHEETS_TRUE
780XSL_STYLESHEET
781STYLESHEET_SRCDIR
782XORG_SGML_PATH
783HAVE_XSLTPROC_FALSE
784HAVE_XSLTPROC_TRUE
785XSLTPROC
786HAVE_FOP_FALSE
787HAVE_FOP_TRUE
788FOP
789HAVE_XMLTO_FALSE
790HAVE_XMLTO_TRUE
791HAVE_XMLTO_TEXT_FALSE
792HAVE_XMLTO_TEXT_TRUE
793XMLTO
794ENABLE_SPECS_FALSE
795ENABLE_SPECS_TRUE
796MAN_SUBSTS
797XORG_MAN_PAGE
798ADMIN_MAN_DIR
799DRIVER_MAN_DIR
800MISC_MAN_DIR
801FILE_MAN_DIR
802LIB_MAN_DIR
803APP_MAN_DIR
804ADMIN_MAN_SUFFIX
805DRIVER_MAN_SUFFIX
806MISC_MAN_SUFFIX
807FILE_MAN_SUFFIX
808LIB_MAN_SUFFIX
809APP_MAN_SUFFIX
810INSTALL_CMD
811PKG_CONFIG_LIBDIR
812PKG_CONFIG_PATH
813PKG_CONFIG
814CHANGELOG_CMD
815STRICT_CFLAGS
816CWARNFLAGS
817BASE_CFLAGS
818LT_SYS_LIBRARY_PATH
819OTOOL64
820OTOOL
821LIPO
822NMEDIT
823DSYMUTIL
824MANIFEST_TOOL
825RANLIB
826ac_ct_AR
827AR
828DLLTOOL
829OBJDUMP
830FILECMD
831LN_S
832NM
833ac_ct_DUMPBIN
834DUMPBIN
835LD
836FGREP
837EGREP
838GREP
839SED
840LIBTOOL
841am__xargs_n
842am__rm_f_notfound
843AM_BACKSLASH
844AM_DEFAULT_VERBOSITY
845AM_DEFAULT_V
846AM_V
847CSCOPE
848ETAGS
849CTAGS
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853am__nodep
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__include
858DEPDIR
859am__untar
860am__tar
861AMTAR
862am__leading_dot
863SET_MAKE
864AWK
865mkdir_p
866MKDIR_P
867INSTALL_STRIP_PROGRAM
868STRIP
869install_sh
870MAKEINFO
871AUTOHEADER
872AUTOMAKE
873AUTOCONF
874ACLOCAL
875VERSION
876PACKAGE
877CYGPATH_W
878am__isrc
879INSTALL_DATA
880INSTALL_SCRIPT
881INSTALL_PROGRAM
882OBJEXT
883EXEEXT
884ac_ct_CC
885CPPFLAGS
886LDFLAGS
887CFLAGS
888CC
889host_os
890host_vendor
891host_cpu
892host
893build_os
894build_vendor
895build_cpu
896build
897target_alias
898host_alias
899build_alias
900LIBS
901ECHO_T
902ECHO_N
903ECHO_C
904DEFS
905mandir
906localedir
907libdir
908psdir
909pdfdir
910dvidir
911htmldir
912infodir
913docdir
914oldincludedir
915includedir
916runstatedir
917localstatedir
918sharedstatedir
919sysconfdir
920datadir
921datarootdir
922libexecdir
923sbindir
924bindir
925program_transform_name
926prefix
927exec_prefix
928PACKAGE_URL
929PACKAGE_BUGREPORT
930PACKAGE_STRING
931PACKAGE_VERSION
932PACKAGE_TARNAME
933PACKAGE_NAME
934PATH_SEPARATOR
935SHELL
936am__quote'
937ac_subst_files=''
938ac_user_opts='
939enable_option_checking
940enable_dependency_tracking
941enable_silent_rules
942enable_shared
943enable_static
944enable_pic
945with_pic
946enable_fast_install
947enable_aix_soname
948with_aix_soname
949with_gnu_ld
950with_sysroot
951enable_libtool_lock
952enable_largefile
953enable_selective_werror
954enable_strict_compilation
955enable_specs
956with_xmlto
957with_fop
958with_xsltproc
959with_perl
960enable_unix_transport
961enable_tcp_transport
962enable_ipv6
963enable_local_transport
964enable_loadable_i18n
965enable_loadable_xcursor
966enable_thread_safety_constructor
967with_launchd
968enable_xthreads
969with_keysymdefdir
970enable_xcms
971enable_xlocale
972enable_xlocaledir
973enable_xf86bigfont
974enable_xkb
975enable_composecache
976with_lint
977enable_lint_library
978with_locale_lib_dir
979enable_malloc0returnsnull
980enable_year2038
981'
982      ac_precious_vars='build_alias
983host_alias
984target_alias
985CC
986CFLAGS
987LDFLAGS
988LIBS
989CPPFLAGS
990LT_SYS_LIBRARY_PATH
991PKG_CONFIG
992PKG_CONFIG_PATH
993PKG_CONFIG_LIBDIR
994XMLTO
995FOP
996XSLTPROC
997CPP
998PERL
999BIGFONT_CFLAGS
1000BIGFONT_LIBS
1001LINT
1002LINT_FLAGS
1003X11_CFLAGS
1004X11_LIBS'
1005
1006
1007# Initialize some variables set by options.
1008ac_init_help=
1009ac_init_version=false
1010ac_unrecognized_opts=
1011ac_unrecognized_sep=
1012# The variables have the same names as the options, with
1013# dashes changed to underlines.
1014cache_file=/dev/null
1015exec_prefix=NONE
1016no_create=
1017no_recursion=
1018prefix=NONE
1019program_prefix=NONE
1020program_suffix=NONE
1021program_transform_name=s,x,x,
1022silent=
1023site=
1024srcdir=
1025verbose=
1026x_includes=NONE
1027x_libraries=NONE
1028
1029# Installation directory options.
1030# These are left unexpanded so users can "make install exec_prefix=/foo"
1031# and all the variables that are supposed to be based on exec_prefix
1032# by default will actually change.
1033# Use braces instead of parens because sh, perl, etc. also accept them.
1034# (The list follows the same order as the GNU Coding Standards.)
1035bindir='${exec_prefix}/bin'
1036sbindir='${exec_prefix}/sbin'
1037libexecdir='${exec_prefix}/libexec'
1038datarootdir='${prefix}/share'
1039datadir='${datarootdir}'
1040sysconfdir='${prefix}/etc'
1041sharedstatedir='${prefix}/com'
1042localstatedir='${prefix}/var'
1043runstatedir='${localstatedir}/run'
1044includedir='${prefix}/include'
1045oldincludedir='/usr/include'
1046docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047infodir='${datarootdir}/info'
1048htmldir='${docdir}'
1049dvidir='${docdir}'
1050pdfdir='${docdir}'
1051psdir='${docdir}'
1052libdir='${exec_prefix}/lib'
1053localedir='${datarootdir}/locale'
1054mandir='${datarootdir}/man'
1055
1056ac_prev=
1057ac_dashdash=
1058for ac_option
1059do
1060  # If the previous option needs an argument, assign it.
1061  if test -n "$ac_prev"; then
1062    eval $ac_prev=\$ac_option
1063    ac_prev=
1064    continue
1065  fi
1066
1067  case $ac_option in
1068  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069  *=)   ac_optarg= ;;
1070  *)    ac_optarg=yes ;;
1071  esac
1072
1073  case $ac_dashdash$ac_option in
1074  --)
1075    ac_dashdash=yes ;;
1076
1077  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078    ac_prev=bindir ;;
1079  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1080    bindir=$ac_optarg ;;
1081
1082  -build | --build | --buil | --bui | --bu)
1083    ac_prev=build_alias ;;
1084  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1085    build_alias=$ac_optarg ;;
1086
1087  -cache-file | --cache-file | --cache-fil | --cache-fi \
1088  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1089    ac_prev=cache_file ;;
1090  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1091  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1092    cache_file=$ac_optarg ;;
1093
1094  --config-cache | -C)
1095    cache_file=config.cache ;;
1096
1097  -datadir | --datadir | --datadi | --datad)
1098    ac_prev=datadir ;;
1099  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1100    datadir=$ac_optarg ;;
1101
1102  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1103  | --dataroo | --dataro | --datar)
1104    ac_prev=datarootdir ;;
1105  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1106  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1107    datarootdir=$ac_optarg ;;
1108
1109  -disable-* | --disable-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid feature name: '$ac_useropt'"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"enable_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval enable_$ac_useropt=no ;;
1124
1125  -docdir | --docdir | --docdi | --doc | --do)
1126    ac_prev=docdir ;;
1127  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128    docdir=$ac_optarg ;;
1129
1130  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131    ac_prev=dvidir ;;
1132  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133    dvidir=$ac_optarg ;;
1134
1135  -enable-* | --enable-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid feature name: '$ac_useropt'"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"enable_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval enable_$ac_useropt=\$ac_optarg ;;
1150
1151  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153  | --exec | --exe | --ex)
1154    ac_prev=exec_prefix ;;
1155  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157  | --exec=* | --exe=* | --ex=*)
1158    exec_prefix=$ac_optarg ;;
1159
1160  -gas | --gas | --ga | --g)
1161    # Obsolete; use --with-gas.
1162    with_gas=yes ;;
1163
1164  -help | --help | --hel | --he | -h)
1165    ac_init_help=long ;;
1166  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167    ac_init_help=recursive ;;
1168  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169    ac_init_help=short ;;
1170
1171  -host | --host | --hos | --ho)
1172    ac_prev=host_alias ;;
1173  -host=* | --host=* | --hos=* | --ho=*)
1174    host_alias=$ac_optarg ;;
1175
1176  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177    ac_prev=htmldir ;;
1178  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179  | --ht=*)
1180    htmldir=$ac_optarg ;;
1181
1182  -includedir | --includedir | --includedi | --included | --include \
1183  | --includ | --inclu | --incl | --inc)
1184    ac_prev=includedir ;;
1185  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186  | --includ=* | --inclu=* | --incl=* | --inc=*)
1187    includedir=$ac_optarg ;;
1188
1189  -infodir | --infodir | --infodi | --infod | --info | --inf)
1190    ac_prev=infodir ;;
1191  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192    infodir=$ac_optarg ;;
1193
1194  -libdir | --libdir | --libdi | --libd)
1195    ac_prev=libdir ;;
1196  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197    libdir=$ac_optarg ;;
1198
1199  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200  | --libexe | --libex | --libe)
1201    ac_prev=libexecdir ;;
1202  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203  | --libexe=* | --libex=* | --libe=*)
1204    libexecdir=$ac_optarg ;;
1205
1206  -localedir | --localedir | --localedi | --localed | --locale)
1207    ac_prev=localedir ;;
1208  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209    localedir=$ac_optarg ;;
1210
1211  -localstatedir | --localstatedir | --localstatedi | --localstated \
1212  | --localstate | --localstat | --localsta | --localst | --locals)
1213    ac_prev=localstatedir ;;
1214  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216    localstatedir=$ac_optarg ;;
1217
1218  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219    ac_prev=mandir ;;
1220  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221    mandir=$ac_optarg ;;
1222
1223  -nfp | --nfp | --nf)
1224    # Obsolete; use --without-fp.
1225    with_fp=no ;;
1226
1227  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228  | --no-cr | --no-c | -n)
1229    no_create=yes ;;
1230
1231  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233    no_recursion=yes ;;
1234
1235  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237  | --oldin | --oldi | --old | --ol | --o)
1238    ac_prev=oldincludedir ;;
1239  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242    oldincludedir=$ac_optarg ;;
1243
1244  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245    ac_prev=prefix ;;
1246  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247    prefix=$ac_optarg ;;
1248
1249  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250  | --program-pre | --program-pr | --program-p)
1251    ac_prev=program_prefix ;;
1252  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254    program_prefix=$ac_optarg ;;
1255
1256  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257  | --program-suf | --program-su | --program-s)
1258    ac_prev=program_suffix ;;
1259  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261    program_suffix=$ac_optarg ;;
1262
1263  -program-transform-name | --program-transform-name \
1264  | --program-transform-nam | --program-transform-na \
1265  | --program-transform-n | --program-transform- \
1266  | --program-transform | --program-transfor \
1267  | --program-transfo | --program-transf \
1268  | --program-trans | --program-tran \
1269  | --progr-tra | --program-tr | --program-t)
1270    ac_prev=program_transform_name ;;
1271  -program-transform-name=* | --program-transform-name=* \
1272  | --program-transform-nam=* | --program-transform-na=* \
1273  | --program-transform-n=* | --program-transform-=* \
1274  | --program-transform=* | --program-transfor=* \
1275  | --program-transfo=* | --program-transf=* \
1276  | --program-trans=* | --program-tran=* \
1277  | --progr-tra=* | --program-tr=* | --program-t=*)
1278    program_transform_name=$ac_optarg ;;
1279
1280  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281    ac_prev=pdfdir ;;
1282  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283    pdfdir=$ac_optarg ;;
1284
1285  -psdir | --psdir | --psdi | --psd | --ps)
1286    ac_prev=psdir ;;
1287  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288    psdir=$ac_optarg ;;
1289
1290  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291  | -silent | --silent | --silen | --sile | --sil)
1292    silent=yes ;;
1293
1294  -runstatedir | --runstatedir | --runstatedi | --runstated \
1295  | --runstate | --runstat | --runsta | --runst | --runs \
1296  | --run | --ru | --r)
1297    ac_prev=runstatedir ;;
1298  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1299  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1300  | --run=* | --ru=* | --r=*)
1301    runstatedir=$ac_optarg ;;
1302
1303  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304    ac_prev=sbindir ;;
1305  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306  | --sbi=* | --sb=*)
1307    sbindir=$ac_optarg ;;
1308
1309  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311  | --sharedst | --shareds | --shared | --share | --shar \
1312  | --sha | --sh)
1313    ac_prev=sharedstatedir ;;
1314  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317  | --sha=* | --sh=*)
1318    sharedstatedir=$ac_optarg ;;
1319
1320  -site | --site | --sit)
1321    ac_prev=site ;;
1322  -site=* | --site=* | --sit=*)
1323    site=$ac_optarg ;;
1324
1325  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326    ac_prev=srcdir ;;
1327  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328    srcdir=$ac_optarg ;;
1329
1330  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331  | --syscon | --sysco | --sysc | --sys | --sy)
1332    ac_prev=sysconfdir ;;
1333  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335    sysconfdir=$ac_optarg ;;
1336
1337  -target | --target | --targe | --targ | --tar | --ta | --t)
1338    ac_prev=target_alias ;;
1339  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340    target_alias=$ac_optarg ;;
1341
1342  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1343    verbose=yes ;;
1344
1345  -version | --version | --versio | --versi | --vers | -V)
1346    ac_init_version=: ;;
1347
1348  -with-* | --with-*)
1349    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350    # Reject names that are not valid shell variable names.
1351    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352      as_fn_error $? "invalid package name: '$ac_useropt'"
1353    ac_useropt_orig=$ac_useropt
1354    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1355    case $ac_user_opts in
1356      *"
1357"with_$ac_useropt"
1358"*) ;;
1359      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360	 ac_unrecognized_sep=', ';;
1361    esac
1362    eval with_$ac_useropt=\$ac_optarg ;;
1363
1364  -without-* | --without-*)
1365    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366    # Reject names that are not valid shell variable names.
1367    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368      as_fn_error $? "invalid package name: '$ac_useropt'"
1369    ac_useropt_orig=$ac_useropt
1370    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1371    case $ac_user_opts in
1372      *"
1373"with_$ac_useropt"
1374"*) ;;
1375      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376	 ac_unrecognized_sep=', ';;
1377    esac
1378    eval with_$ac_useropt=no ;;
1379
1380  --x)
1381    # Obsolete; use --with-x.
1382    with_x=yes ;;
1383
1384  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385  | --x-incl | --x-inc | --x-in | --x-i)
1386    ac_prev=x_includes ;;
1387  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389    x_includes=$ac_optarg ;;
1390
1391  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393    ac_prev=x_libraries ;;
1394  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396    x_libraries=$ac_optarg ;;
1397
1398  -*) as_fn_error $? "unrecognized option: '$ac_option'
1399Try '$0 --help' for more information"
1400    ;;
1401
1402  *=*)
1403    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404    # Reject names that are not valid shell variable names.
1405    case $ac_envvar in #(
1406      '' | [0-9]* | *[!_$as_cr_alnum]* )
1407      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1408    esac
1409    eval $ac_envvar=\$ac_optarg
1410    export $ac_envvar ;;
1411
1412  *)
1413    # FIXME: should be removed in autoconf 3.0.
1414    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1415    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1417    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1418    ;;
1419
1420  esac
1421done
1422
1423if test -n "$ac_prev"; then
1424  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425  as_fn_error $? "missing argument to $ac_option"
1426fi
1427
1428if test -n "$ac_unrecognized_opts"; then
1429  case $enable_option_checking in
1430    no) ;;
1431    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1432    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433  esac
1434fi
1435
1436# Check all directory arguments for consistency.
1437for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438		datadir sysconfdir sharedstatedir localstatedir includedir \
1439		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440		libdir localedir mandir runstatedir
1441do
1442  eval ac_val=\$$ac_var
1443  # Remove trailing slashes.
1444  case $ac_val in
1445    */ )
1446      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447      eval $ac_var=\$ac_val;;
1448  esac
1449  # Be sure to have absolute directory names.
1450  case $ac_val in
1451    [\\/$]* | ?:[\\/]* )  continue;;
1452    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453  esac
1454  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1455done
1456
1457# There might be people who depend on the old broken behavior: '$host'
1458# used to hold the argument of --host etc.
1459# FIXME: To remove some day.
1460build=$build_alias
1461host=$host_alias
1462target=$target_alias
1463
1464# FIXME: To remove some day.
1465if test "x$host_alias" != x; then
1466  if test "x$build_alias" = x; then
1467    cross_compiling=maybe
1468  elif test "x$build_alias" != "x$host_alias"; then
1469    cross_compiling=yes
1470  fi
1471fi
1472
1473ac_tool_prefix=
1474test -n "$host_alias" && ac_tool_prefix=$host_alias-
1475
1476test "$silent" = yes && exec 6>/dev/null
1477
1478
1479ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480ac_ls_di=`ls -di .` &&
1481ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482  as_fn_error $? "working directory cannot be determined"
1483test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1484  as_fn_error $? "pwd does not report name of working directory"
1485
1486
1487# Find the source files, if location was not specified.
1488if test -z "$srcdir"; then
1489  ac_srcdir_defaulted=yes
1490  # Try the directory containing this script, then the parent directory.
1491  ac_confdir=`$as_dirname -- "$as_myself" ||
1492$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493	 X"$as_myself" : 'X\(//\)[^/]' \| \
1494	 X"$as_myself" : 'X\(//\)$' \| \
1495	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496printf "%s\n" X"$as_myself" |
1497    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498	    s//\1/
1499	    q
1500	  }
1501	  /^X\(\/\/\)[^/].*/{
1502	    s//\1/
1503	    q
1504	  }
1505	  /^X\(\/\/\)$/{
1506	    s//\1/
1507	    q
1508	  }
1509	  /^X\(\/\).*/{
1510	    s//\1/
1511	    q
1512	  }
1513	  s/.*/./; q'`
1514  srcdir=$ac_confdir
1515  if test ! -r "$srcdir/$ac_unique_file"; then
1516    srcdir=..
1517  fi
1518else
1519  ac_srcdir_defaulted=no
1520fi
1521if test ! -r "$srcdir/$ac_unique_file"; then
1522  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1524fi
1525ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1526ac_abs_confdir=`(
1527	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1528	pwd)`
1529# When building in place, set srcdir=.
1530if test "$ac_abs_confdir" = "$ac_pwd"; then
1531  srcdir=.
1532fi
1533# Remove unnecessary trailing slashes from srcdir.
1534# Double slashes in file names in object file debugging info
1535# mess up M-x gdb in Emacs.
1536case $srcdir in
1537*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538esac
1539for ac_var in $ac_precious_vars; do
1540  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541  eval ac_env_${ac_var}_value=\$${ac_var}
1542  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544done
1545
1546#
1547# Report the --help message.
1548#
1549if test "$ac_init_help" = "long"; then
1550  # Omit some internal or obsolete options to make the list less imposing.
1551  # This message is too long to be a string in the A/UX 3.1 sh.
1552  cat <<_ACEOF
1553'configure' configures libX11 1.8.12 to adapt to many kinds of systems.
1554
1555Usage: $0 [OPTION]... [VAR=VALUE]...
1556
1557To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558VAR=VALUE.  See below for descriptions of some of the useful variables.
1559
1560Defaults for the options are specified in brackets.
1561
1562Configuration:
1563  -h, --help              display this help and exit
1564      --help=short        display options specific to this package
1565      --help=recursive    display the short help of all the included packages
1566  -V, --version           display version information and exit
1567  -q, --quiet, --silent   do not print 'checking ...' messages
1568      --cache-file=FILE   cache test results in FILE [disabled]
1569  -C, --config-cache      alias for '--cache-file=config.cache'
1570  -n, --no-create         do not create output files
1571      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1572
1573Installation directories:
1574  --prefix=PREFIX         install architecture-independent files in PREFIX
1575                          [$ac_default_prefix]
1576  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1577                          [PREFIX]
1578
1579By default, 'make install' will install all the files in
1580'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1581an installation prefix other than '$ac_default_prefix' using '--prefix',
1582for instance '--prefix=\$HOME'.
1583
1584For better control, use the options below.
1585
1586Fine tuning of the installation directories:
1587  --bindir=DIR            user executables [EPREFIX/bin]
1588  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1589  --libexecdir=DIR        program executables [EPREFIX/libexec]
1590  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1591  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1592  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1593  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1594  --libdir=DIR            object code libraries [EPREFIX/lib]
1595  --includedir=DIR        C header files [PREFIX/include]
1596  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1597  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1598  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1599  --infodir=DIR           info documentation [DATAROOTDIR/info]
1600  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1601  --mandir=DIR            man documentation [DATAROOTDIR/man]
1602  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1603  --htmldir=DIR           html documentation [DOCDIR]
1604  --dvidir=DIR            dvi documentation [DOCDIR]
1605  --pdfdir=DIR            pdf documentation [DOCDIR]
1606  --psdir=DIR             ps documentation [DOCDIR]
1607_ACEOF
1608
1609  cat <<\_ACEOF
1610
1611Program names:
1612  --program-prefix=PREFIX            prepend PREFIX to installed program names
1613  --program-suffix=SUFFIX            append SUFFIX to installed program names
1614  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1615
1616System types:
1617  --build=BUILD     configure for building on BUILD [guessed]
1618  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1619_ACEOF
1620fi
1621
1622if test -n "$ac_init_help"; then
1623  case $ac_init_help in
1624     short | recursive ) echo "Configuration of libX11 1.8.12:";;
1625   esac
1626  cat <<\_ACEOF
1627
1628Optional Features:
1629  --disable-option-checking  ignore unrecognized --enable/--with options
1630  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1631  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1632  --enable-dependency-tracking
1633                          do not reject slow dependency extractors
1634  --disable-dependency-tracking
1635                          speeds up one-time build
1636  --enable-silent-rules   less verbose build output (undo: "make V=1")
1637  --disable-silent-rules  verbose build output (undo: "make V=0")
1638  --enable-shared[=PKGS]  build shared libraries [default=yes]
1639  --enable-static[=PKGS]  build static libraries [default=yes]
1640  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1641                          both]
1642  --enable-fast-install[=PKGS]
1643                          optimize for fast installation [default=yes]
1644  --enable-aix-soname=aix|svr4|both
1645                          shared library versioning (aka "SONAME") variant to
1646                          provide on AIX, [default=aix].
1647  --disable-libtool-lock  avoid locking (might break parallel builds)
1648  --disable-largefile     omit support for large files
1649  --disable-selective-werror
1650                          Turn off selective compiler errors. (default:
1651                          enabled)
1652  --enable-strict-compilation
1653                          Enable all warnings from compiler and make them
1654                          errors (default: disabled)
1655  --enable-specs          Enable building the specs (default: yes)
1656  --enable-unix-transport Enable UNIX domain socket transport
1657  --enable-tcp-transport  Enable TCP socket transport
1658  --enable-ipv6           Enable IPv6 support
1659  --enable-local-transport
1660                          Enable os-specific local transport
1661  --enable-loadable-i18n  Controls loadable i18n module support
1662  --disable-loadable-xcursor
1663                          Controls loadable xcursor library support
1664  --disable-thread-safety-constructor
1665                          Controls mandatory thread safety support
1666  --disable-xthreads      Disable Xlib support for Multithreading
1667  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1668  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1669  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1670  --disable-xf86bigfont   Disable XF86BigFont extension support
1671  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1672  --disable-composecache  Disable compose table cache support
1673  --enable-lint-library   Create lint library (default: disabled)
1674  --enable-malloc0returnsnull
1675                          assume malloc(0) can return NULL (default: yes)
1676  --enable-year2038       support timestamps after 2038
1677
1678Optional Packages:
1679  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1680  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
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.12
1798generated by GNU Autoconf 2.72
1799
1800Copyright (C) 2023 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 case e in #(
1840  e) printf "%s\n" "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843	ac_retval=1 ;;
1844esac
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859printf %s "checking for $2... " >&6; }
1860if eval test \${$3+y}
1861then :
1862  printf %s "(cached) " >&6
1863else case e in #(
1864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$4
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_compile "$LINENO"
1870then :
1871  eval "$3=yes"
1872else case e in #(
1873  e) eval "$3=no" ;;
1874esac
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1877esac
1878fi
1879eval ac_res=\$$3
1880	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881printf "%s\n" "$ac_res" >&6; }
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_header_compile
1885
1886# ac_fn_c_try_link LINENO
1887# -----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_c_try_link ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1893  if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899printf "%s\n" "$ac_try_echo"; } >&5
1900  (eval "$ac_link") 2>conftest.err
1901  ac_status=$?
1902  if test -s conftest.err; then
1903    grep -v '^ *+' conftest.err >conftest.er1
1904    cat conftest.er1 >&5
1905    mv -f conftest.er1 conftest.err
1906  fi
1907  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908  test $ac_status = 0; } && {
1909	 test -z "$ac_c_werror_flag" ||
1910	 test ! -s conftest.err
1911       } && test -s conftest$ac_exeext && {
1912	 test "$cross_compiling" = yes ||
1913	 test -x conftest$ac_exeext
1914       }
1915then :
1916  ac_retval=0
1917else case e in #(
1918  e) printf "%s\n" "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921	ac_retval=1 ;;
1922esac
1923fi
1924  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926  # interfere with the next link command; also delete a directory that is
1927  # left behind by Apple's compiler.  We do this before executing the actions.
1928  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930  as_fn_set_status $ac_retval
1931
1932} # ac_fn_c_try_link
1933
1934# ac_fn_c_check_func LINENO FUNC VAR
1935# ----------------------------------
1936# Tests whether FUNC exists, setting the cache variable VAR accordingly
1937ac_fn_c_check_func ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941printf %s "checking for $2... " >&6; }
1942if eval test \${$3+y}
1943then :
1944  printf %s "(cached) " >&6
1945else case e in #(
1946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1950#define $2 innocuous_$2
1951
1952/* System header to define __stub macros and hopefully few prototypes,
1953   which can conflict with char $2 (void); below.  */
1954
1955#include <limits.h>
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959   Use char because int might match the return type of a GCC
1960   builtin and then its argument prototype would still apply.  */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 (void);
1965/* The GNU C library defines this for functions which it implements
1966    to always fail with ENOSYS.  Some functions are actually named
1967    something starting with __ and the normal name is an alias.  */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main (void)
1974{
1975return $2 ();
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"
1981then :
1982  eval "$3=yes"
1983else case e in #(
1984  e) eval "$3=no" ;;
1985esac
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.beam \
1988    conftest$ac_exeext conftest.$ac_ext ;;
1989esac
1990fi
1991eval ac_res=\$$3
1992	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993printf "%s\n" "$ac_res" >&6; }
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_func
1997
1998# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1999# ------------------------------------------------------------------
2000# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2001# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2002ac_fn_check_decl ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  as_decl_name=`echo $2|sed 's/ *(.*//'`
2006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2007printf %s "checking whether $as_decl_name is declared... " >&6; }
2008if eval test \${$3+y}
2009then :
2010  printf %s "(cached) " >&6
2011else case e in #(
2012  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013  eval ac_save_FLAGS=\$$6
2014  as_fn_append $6 " $5"
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$4
2018int
2019main (void)
2020{
2021#ifndef $as_decl_name
2022#ifdef __cplusplus
2023  (void) $as_decl_use;
2024#else
2025  (void) $as_decl_name;
2026#endif
2027#endif
2028
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"
2034then :
2035  eval "$3=yes"
2036else case e in #(
2037  e) eval "$3=no" ;;
2038esac
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2041  eval $6=\$ac_save_FLAGS
2042 ;;
2043esac
2044fi
2045eval ac_res=\$$3
2046	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047printf "%s\n" "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_check_decl
2051
2052# ac_fn_c_try_cpp LINENO
2053# ----------------------
2054# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_c_try_cpp ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  if { { ac_try="$ac_cpp conftest.$ac_ext"
2059case "(($ac_try" in
2060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061  *) ac_try_echo=$ac_try;;
2062esac
2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064printf "%s\n" "$ac_try_echo"; } >&5
2065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2066  ac_status=$?
2067  if test -s conftest.err; then
2068    grep -v '^ *+' conftest.err >conftest.er1
2069    cat conftest.er1 >&5
2070    mv -f conftest.er1 conftest.err
2071  fi
2072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073  test $ac_status = 0; } > conftest.i && {
2074	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2075	 test ! -s conftest.err
2076       }
2077then :
2078  ac_retval=0
2079else case e in #(
2080  e) printf "%s\n" "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083    ac_retval=1 ;;
2084esac
2085fi
2086  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087  as_fn_set_status $ac_retval
2088
2089} # ac_fn_c_try_cpp
2090
2091# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2092# ----------------------------------------------------
2093# Tries to find if the field MEMBER exists in type AGGR, after including
2094# INCLUDES, setting cache variable VAR accordingly.
2095ac_fn_c_check_member ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2099printf %s "checking for $2.$3... " >&6; }
2100if eval test \${$4+y}
2101then :
2102  printf %s "(cached) " >&6
2103else case e in #(
2104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$5
2107int
2108main (void)
2109{
2110static $2 ac_aggr;
2111if (ac_aggr.$3)
2112return 0;
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_compile "$LINENO"
2118then :
2119  eval "$4=yes"
2120else case e in #(
2121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$5
2124int
2125main (void)
2126{
2127static $2 ac_aggr;
2128if (sizeof ac_aggr.$3)
2129return 0;
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"
2135then :
2136  eval "$4=yes"
2137else case e in #(
2138  e) eval "$4=no" ;;
2139esac
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2142esac
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2145esac
2146fi
2147eval ac_res=\$$4
2148	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149printf "%s\n" "$ac_res" >&6; }
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_member
2153
2154# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155# -------------------------------------------
2156# Tests whether TYPE exists after having included INCLUDES, setting cache
2157# variable VAR accordingly.
2158ac_fn_c_check_type ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162printf %s "checking for $2... " >&6; }
2163if eval test \${$3+y}
2164then :
2165  printf %s "(cached) " >&6
2166else case e in #(
2167  e) eval "$3=no"
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170$4
2171int
2172main (void)
2173{
2174if (sizeof ($2))
2175	 return 0;
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"
2181then :
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main (void)
2187{
2188if (sizeof (($2)))
2189	    return 0;
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"
2195then :
2196
2197else case e in #(
2198  e) eval "$3=yes" ;;
2199esac
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2204esac
2205fi
2206eval ac_res=\$$3
2207	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208printf "%s\n" "$ac_res" >&6; }
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_type
2212
2213# ac_fn_c_try_run LINENO
2214# ----------------------
2215# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2216# executables *can* be run.
2217ac_fn_c_try_run ()
2218{
2219  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220  if { { ac_try="$ac_link"
2221case "(($ac_try" in
2222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223  *) ac_try_echo=$ac_try;;
2224esac
2225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226printf "%s\n" "$ac_try_echo"; } >&5
2227  (eval "$ac_link") 2>&5
2228  ac_status=$?
2229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2231  { { case "(($ac_try" in
2232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233  *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236printf "%s\n" "$ac_try_echo"; } >&5
2237  (eval "$ac_try") 2>&5
2238  ac_status=$?
2239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240  test $ac_status = 0; }; }
2241then :
2242  ac_retval=0
2243else case e in #(
2244  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2245       printf "%s\n" "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248       ac_retval=$ac_status ;;
2249esac
2250fi
2251  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2252  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253  as_fn_set_status $ac_retval
2254
2255} # ac_fn_c_try_run
2256ac_configure_args_raw=
2257for ac_arg
2258do
2259  case $ac_arg in
2260  *\'*)
2261    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262  esac
2263  as_fn_append ac_configure_args_raw " '$ac_arg'"
2264done
2265
2266case $ac_configure_args_raw in
2267  *$as_nl*)
2268    ac_safe_unquote= ;;
2269  *)
2270    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2271    ac_unsafe_a="$ac_unsafe_z#~"
2272    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2273    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2274esac
2275
2276cat >config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by libX11 $as_me 1.8.12, which was
2281generated by GNU Autoconf 2.72.  Invocation command line was
2282
2283  $ $0$ac_configure_args_raw
2284
2285_ACEOF
2286exec 5>>config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  case $as_dir in #(((
2317    '') as_dir=./ ;;
2318    */) ;;
2319    *) as_dir=$as_dir/ ;;
2320  esac
2321    printf "%s\n" "PATH: $as_dir"
2322  done
2323IFS=$as_save_IFS
2324
2325} >&5
2326
2327cat >&5 <<_ACEOF
2328
2329
2330## ----------- ##
2331## Core tests. ##
2332## ----------- ##
2333
2334_ACEOF
2335
2336
2337# Keep a trace of the command line.
2338# Strip out --no-create and --no-recursion so they do not pile up.
2339# Strip out --silent because we don't want to record it for future runs.
2340# Also quote any args containing shell meta-characters.
2341# Make two passes to allow for proper duplicate-argument suppression.
2342ac_configure_args=
2343ac_configure_args0=
2344ac_configure_args1=
2345ac_must_keep_next=false
2346for ac_pass in 1 2
2347do
2348  for ac_arg
2349  do
2350    case $ac_arg in
2351    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353    | -silent | --silent | --silen | --sile | --sil)
2354      continue ;;
2355    *\'*)
2356      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357    esac
2358    case $ac_pass in
2359    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360    2)
2361      as_fn_append ac_configure_args1 " '$ac_arg'"
2362      if test $ac_must_keep_next = true; then
2363	ac_must_keep_next=false # Got value, back to normal.
2364      else
2365	case $ac_arg in
2366	  *=* | --config-cache | -C | -disable-* | --disable-* \
2367	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369	  | -with-* | --with-* | -without-* | --without-* | --x)
2370	    case "$ac_configure_args0 " in
2371	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372	    esac
2373	    ;;
2374	  -* ) ac_must_keep_next=true ;;
2375	esac
2376      fi
2377      as_fn_append ac_configure_args " '$ac_arg'"
2378      ;;
2379    esac
2380  done
2381done
2382{ ac_configure_args0=; unset ac_configure_args0;}
2383{ ac_configure_args1=; unset ac_configure_args1;}
2384
2385# When interrupted or exit'd, cleanup temporary files, and complete
2386# config.log.  We remove comments because anyway the quotes in there
2387# would cause problems or look ugly.
2388# WARNING: Use '\'' to represent an apostrophe within the trap.
2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390trap 'exit_status=$?
2391  # Sanitize IFS.
2392  IFS=" ""	$as_nl"
2393  # Save into config.log some information that might help in debugging.
2394  {
2395    echo
2396
2397    printf "%s\n" "## ---------------- ##
2398## Cache variables. ##
2399## ---------------- ##"
2400    echo
2401    # The following way of writing the cache mishandles newlines in values,
2402(
2403  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404    eval ac_val=\$$ac_var
2405    case $ac_val in #(
2406    *${as_nl}*)
2407      case $ac_var in #(
2408      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410      esac
2411      case $ac_var in #(
2412      _ | IFS | as_nl) ;; #(
2413      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414      *) { eval $ac_var=; unset $ac_var;} ;;
2415      esac ;;
2416    esac
2417  done
2418  (set) 2>&1 |
2419    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420    *${as_nl}ac_space=\ *)
2421      sed -n \
2422	"s/'\''/'\''\\\\'\'''\''/g;
2423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424      ;; #(
2425    *)
2426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427      ;;
2428    esac |
2429    sort
2430)
2431    echo
2432
2433    printf "%s\n" "## ----------------- ##
2434## Output variables. ##
2435## ----------------- ##"
2436    echo
2437    for ac_var in $ac_subst_vars
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
2447    if test -n "$ac_subst_files"; then
2448      printf "%s\n" "## ------------------- ##
2449## File substitutions. ##
2450## ------------------- ##"
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	printf "%s\n" "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      printf "%s\n" "## ----------- ##
2465## confdefs.h. ##
2466## ----------- ##"
2467      echo
2468      cat confdefs.h
2469      echo
2470    fi
2471    test "$ac_signal" != 0 &&
2472      printf "%s\n" "$as_me: caught signal $ac_signal"
2473    printf "%s\n" "$as_me: exit $exit_status"
2474  } >&5
2475  rm -f core *.core core.conftest.* &&
2476    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477    exit $exit_status
2478' 0
2479for ac_signal in 1 2 13 15; do
2480  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481done
2482ac_signal=0
2483
2484# confdefs.h avoids OS command line length limits that DEFS can exceed.
2485rm -f -r conftest* confdefs.h
2486
2487printf "%s\n" "/* confdefs.h */" > confdefs.h
2488
2489# Predefined preprocessor variables.
2490
2491printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2492
2493printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2494
2495printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2496
2497printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2498
2499printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2500
2501printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2502
2503
2504# Let the site file select an alternate cache file if it wants to.
2505# Prefer an explicitly selected file to automatically selected ones.
2506if test -n "$CONFIG_SITE"; then
2507  ac_site_files="$CONFIG_SITE"
2508elif test "x$prefix" != xNONE; then
2509  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2510else
2511  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2512fi
2513
2514for ac_site_file in $ac_site_files
2515do
2516  case $ac_site_file in #(
2517  */*) :
2518     ;; #(
2519  *) :
2520    ac_site_file=./$ac_site_file ;;
2521esac
2522  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2525    sed 's/^/| /' "$ac_site_file" >&5
2526    . "$ac_site_file" \
2527      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2528printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2529as_fn_error $? "failed to load site script $ac_site_file
2530See 'config.log' for more details" "$LINENO" 5; }
2531  fi
2532done
2533
2534if test -r "$cache_file"; then
2535  # Some versions of bash will fail to source /dev/null (special files
2536  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2537  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2540    case $cache_file in
2541      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542      *)                      . "./$cache_file";;
2543    esac
2544  fi
2545else
2546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2548  >$cache_file
2549fi
2550
2551as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2552# Test code for whether the C compiler supports C89 (global declarations)
2553ac_c_conftest_c89_globals='
2554/* Does the compiler advertise C89 conformance?
2555   Do not test the value of __STDC__, because some compilers set it to 0
2556   while being otherwise adequately conformant. */
2557#if !defined __STDC__
2558# error "Compiler does not advertise C89 conformance"
2559#endif
2560
2561#include <stddef.h>
2562#include <stdarg.h>
2563struct stat;
2564/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2565struct buf { int x; };
2566struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2567static char *e (char **p, int i)
2568{
2569  return p[i];
2570}
2571static char *f (char * (*g) (char **, int), char **p, ...)
2572{
2573  char *s;
2574  va_list v;
2575  va_start (v,p);
2576  s = g (p, va_arg (v,int));
2577  va_end (v);
2578  return s;
2579}
2580
2581/* C89 style stringification. */
2582#define noexpand_stringify(a) #a
2583const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2584
2585/* C89 style token pasting.  Exercises some of the corner cases that
2586   e.g. old MSVC gets wrong, but not very hard. */
2587#define noexpand_concat(a,b) a##b
2588#define expand_concat(a,b) noexpand_concat(a,b)
2589extern int vA;
2590extern int vbee;
2591#define aye A
2592#define bee B
2593int *pvA = &expand_concat(v,aye);
2594int *pvbee = &noexpand_concat(v,bee);
2595
2596/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2597   function prototypes and stuff, but not \xHH hex character constants.
2598   These do not provoke an error unfortunately, instead are silently treated
2599   as an "x".  The following induces an error, until -std is added to get
2600   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2601   array size at least.  It is necessary to write \x00 == 0 to get something
2602   that is true only with -std.  */
2603int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2604
2605/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2606   inside strings and character constants.  */
2607#define FOO(x) '\''x'\''
2608int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2609
2610int test (int i, double x);
2611struct s1 {int (*f) (int a);};
2612struct s2 {int (*f) (double a);};
2613int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2614               int, int);'
2615
2616# Test code for whether the C compiler supports C89 (body of main).
2617ac_c_conftest_c89_main='
2618ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2619'
2620
2621# Test code for whether the C compiler supports C99 (global declarations)
2622ac_c_conftest_c99_globals='
2623/* Does the compiler advertise C99 conformance? */
2624#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2625# error "Compiler does not advertise C99 conformance"
2626#endif
2627
2628// See if C++-style comments work.
2629
2630#include <stdbool.h>
2631extern int puts (const char *);
2632extern int printf (const char *, ...);
2633extern int dprintf (int, const char *, ...);
2634extern void *malloc (size_t);
2635extern void free (void *);
2636
2637// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2638// dprintf is used instead of fprintf to avoid needing to declare
2639// FILE and stderr.
2640#define debug(...) dprintf (2, __VA_ARGS__)
2641#define showlist(...) puts (#__VA_ARGS__)
2642#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2643static void
2644test_varargs_macros (void)
2645{
2646  int x = 1234;
2647  int y = 5678;
2648  debug ("Flag");
2649  debug ("X = %d\n", x);
2650  showlist (The first, second, and third items.);
2651  report (x>y, "x is %d but y is %d", x, y);
2652}
2653
2654// Check long long types.
2655#define BIG64 18446744073709551615ull
2656#define BIG32 4294967295ul
2657#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2658#if !BIG_OK
2659  #error "your preprocessor is broken"
2660#endif
2661#if BIG_OK
2662#else
2663  #error "your preprocessor is broken"
2664#endif
2665static long long int bignum = -9223372036854775807LL;
2666static unsigned long long int ubignum = BIG64;
2667
2668struct incomplete_array
2669{
2670  int datasize;
2671  double data[];
2672};
2673
2674struct named_init {
2675  int number;
2676  const wchar_t *name;
2677  double average;
2678};
2679
2680typedef const char *ccp;
2681
2682static inline int
2683test_restrict (ccp restrict text)
2684{
2685  // Iterate through items via the restricted pointer.
2686  // Also check for declarations in for loops.
2687  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2688    continue;
2689  return 0;
2690}
2691
2692// Check varargs and va_copy.
2693static bool
2694test_varargs (const char *format, ...)
2695{
2696  va_list args;
2697  va_start (args, format);
2698  va_list args_copy;
2699  va_copy (args_copy, args);
2700
2701  const char *str = "";
2702  int number = 0;
2703  float fnumber = 0;
2704
2705  while (*format)
2706    {
2707      switch (*format++)
2708	{
2709	case '\''s'\'': // string
2710	  str = va_arg (args_copy, const char *);
2711	  break;
2712	case '\''d'\'': // int
2713	  number = va_arg (args_copy, int);
2714	  break;
2715	case '\''f'\'': // float
2716	  fnumber = va_arg (args_copy, double);
2717	  break;
2718	default:
2719	  break;
2720	}
2721    }
2722  va_end (args_copy);
2723  va_end (args);
2724
2725  return *str && number && fnumber;
2726}
2727'
2728
2729# Test code for whether the C compiler supports C99 (body of main).
2730ac_c_conftest_c99_main='
2731  // Check bool.
2732  _Bool success = false;
2733  success |= (argc != 0);
2734
2735  // Check restrict.
2736  if (test_restrict ("String literal") == 0)
2737    success = true;
2738  char *restrict newvar = "Another string";
2739
2740  // Check varargs.
2741  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2742  test_varargs_macros ();
2743
2744  // Check flexible array members.
2745  struct incomplete_array *ia =
2746    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2747  ia->datasize = 10;
2748  for (int i = 0; i < ia->datasize; ++i)
2749    ia->data[i] = i * 1.234;
2750  // Work around memory leak warnings.
2751  free (ia);
2752
2753  // Check named initializers.
2754  struct named_init ni = {
2755    .number = 34,
2756    .name = L"Test wide string",
2757    .average = 543.34343,
2758  };
2759
2760  ni.number = 58;
2761
2762  int dynamic_array[ni.number];
2763  dynamic_array[0] = argv[0][0];
2764  dynamic_array[ni.number - 1] = 543;
2765
2766  // work around unused variable warnings
2767  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2768	 || dynamic_array[ni.number - 1] != 543);
2769'
2770
2771# Test code for whether the C compiler supports C11 (global declarations)
2772ac_c_conftest_c11_globals='
2773/* Does the compiler advertise C11 conformance? */
2774#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2775# error "Compiler does not advertise C11 conformance"
2776#endif
2777
2778// Check _Alignas.
2779char _Alignas (double) aligned_as_double;
2780char _Alignas (0) no_special_alignment;
2781extern char aligned_as_int;
2782char _Alignas (0) _Alignas (int) aligned_as_int;
2783
2784// Check _Alignof.
2785enum
2786{
2787  int_alignment = _Alignof (int),
2788  int_array_alignment = _Alignof (int[100]),
2789  char_alignment = _Alignof (char)
2790};
2791_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2792
2793// Check _Noreturn.
2794int _Noreturn does_not_return (void) { for (;;) continue; }
2795
2796// Check _Static_assert.
2797struct test_static_assert
2798{
2799  int x;
2800  _Static_assert (sizeof (int) <= sizeof (long int),
2801                  "_Static_assert does not work in struct");
2802  long int y;
2803};
2804
2805// Check UTF-8 literals.
2806#define u8 syntax error!
2807char const utf8_literal[] = u8"happens to be ASCII" "another string";
2808
2809// Check duplicate typedefs.
2810typedef long *long_ptr;
2811typedef long int *long_ptr;
2812typedef long_ptr long_ptr;
2813
2814// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2815struct anonymous
2816{
2817  union {
2818    struct { int i; int j; };
2819    struct { int k; long int l; } w;
2820  };
2821  int m;
2822} v1;
2823'
2824
2825# Test code for whether the C compiler supports C11 (body of main).
2826ac_c_conftest_c11_main='
2827  _Static_assert ((offsetof (struct anonymous, i)
2828		   == offsetof (struct anonymous, w.k)),
2829		  "Anonymous union alignment botch");
2830  v1.i = 2;
2831  v1.w.k = 5;
2832  ok |= v1.i != 5;
2833'
2834
2835# Test code for whether the C compiler supports C11 (complete).
2836ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2837${ac_c_conftest_c99_globals}
2838${ac_c_conftest_c11_globals}
2839
2840int
2841main (int argc, char **argv)
2842{
2843  int ok = 0;
2844  ${ac_c_conftest_c89_main}
2845  ${ac_c_conftest_c99_main}
2846  ${ac_c_conftest_c11_main}
2847  return ok;
2848}
2849"
2850
2851# Test code for whether the C compiler supports C99 (complete).
2852ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2853${ac_c_conftest_c99_globals}
2854
2855int
2856main (int argc, char **argv)
2857{
2858  int ok = 0;
2859  ${ac_c_conftest_c89_main}
2860  ${ac_c_conftest_c99_main}
2861  return ok;
2862}
2863"
2864
2865# Test code for whether the C compiler supports C89 (complete).
2866ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2867
2868int
2869main (int argc, char **argv)
2870{
2871  int ok = 0;
2872  ${ac_c_conftest_c89_main}
2873  return ok;
2874}
2875"
2876
2877as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2878as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2879as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2880as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2881as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2882as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2883as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2884as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2885as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2886as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2887as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2888as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2889
2890# Auxiliary files required by this configure script.
2891ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2892
2893# Locations in which to look for auxiliary files.
2894ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2895
2896# Search for a directory containing all of the required auxiliary files,
2897# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2898# If we don't find one directory that contains all the files we need,
2899# we report the set of missing files from the *first* directory in
2900# $ac_aux_dir_candidates and give up.
2901ac_missing_aux_files=""
2902ac_first_candidate=:
2903printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905as_found=false
2906for as_dir in $ac_aux_dir_candidates
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914  as_found=:
2915
2916  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2917  ac_aux_dir_found=yes
2918  ac_install_sh=
2919  for ac_aux in $ac_aux_files
2920  do
2921    # As a special case, if "install-sh" is required, that requirement
2922    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2923    # and $ac_install_sh is set appropriately for whichever one is found.
2924    if test x"$ac_aux" = x"install-sh"
2925    then
2926      if test -f "${as_dir}install-sh"; then
2927        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2928        ac_install_sh="${as_dir}install-sh -c"
2929      elif test -f "${as_dir}install.sh"; then
2930        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2931        ac_install_sh="${as_dir}install.sh -c"
2932      elif test -f "${as_dir}shtool"; then
2933        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2934        ac_install_sh="${as_dir}shtool install -c"
2935      else
2936        ac_aux_dir_found=no
2937        if $ac_first_candidate; then
2938          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2939        else
2940          break
2941        fi
2942      fi
2943    else
2944      if test -f "${as_dir}${ac_aux}"; then
2945        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2946      else
2947        ac_aux_dir_found=no
2948        if $ac_first_candidate; then
2949          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2950        else
2951          break
2952        fi
2953      fi
2954    fi
2955  done
2956  if test "$ac_aux_dir_found" = yes; then
2957    ac_aux_dir="$as_dir"
2958    break
2959  fi
2960  ac_first_candidate=false
2961
2962  as_found=false
2963done
2964IFS=$as_save_IFS
2965if $as_found
2966then :
2967
2968else case e in #(
2969  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2970esac
2971fi
2972
2973
2974# These three variables are undocumented and unsupported,
2975# and are intended to be withdrawn in a future Autoconf release.
2976# They can cause serious problems if a builder's source tree is in a directory
2977# whose full name contains unusual characters.
2978if test -f "${ac_aux_dir}config.guess"; then
2979  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2980fi
2981if test -f "${ac_aux_dir}config.sub"; then
2982  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2983fi
2984if test -f "$ac_aux_dir/configure"; then
2985  ac_configure="$SHELL ${ac_aux_dir}configure"
2986fi
2987
2988# Check that the precious variables saved in the cache have kept the same
2989# value.
2990ac_cache_corrupted=false
2991for ac_var in $ac_precious_vars; do
2992  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993  eval ac_new_set=\$ac_env_${ac_var}_set
2994  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995  eval ac_new_val=\$ac_env_${ac_var}_value
2996  case $ac_old_set,$ac_new_set in
2997    set,)
2998      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2999printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3000      ac_cache_corrupted=: ;;
3001    ,set)
3002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3003printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3004      ac_cache_corrupted=: ;;
3005    ,);;
3006    *)
3007      if test "x$ac_old_val" != "x$ac_new_val"; then
3008	# differences in whitespace do not lead to failure.
3009	ac_old_val_w=`echo x $ac_old_val`
3010	ac_new_val_w=`echo x $ac_new_val`
3011	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3013printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3014	  ac_cache_corrupted=:
3015	else
3016	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3017printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3018	  eval $ac_var=\$ac_old_val
3019	fi
3020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
3021printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
3022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
3023printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
3024      fi;;
3025  esac
3026  # Pass precious variables to config.status.
3027  if test "$ac_new_set" = set; then
3028    case $ac_new_val in
3029    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030    *) ac_arg=$ac_var=$ac_new_val ;;
3031    esac
3032    case " $ac_configure_args " in
3033      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3034      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3035    esac
3036  fi
3037done
3038if $ac_cache_corrupted; then
3039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3040printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3043  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3044	    and start over" "$LINENO" 5
3045fi
3046## -------------------- ##
3047## Main body of script. ##
3048## -------------------- ##
3049
3050ac_ext=c
3051ac_cpp='$CPP $CPPFLAGS'
3052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
3056
3057
3058ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3059
3060
3061
3062
3063
3064  # Make sure we can run config.sub.
3065$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3066  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3067
3068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069printf %s "checking build system type... " >&6; }
3070if test ${ac_cv_build+y}
3071then :
3072  printf %s "(cached) " >&6
3073else case e in #(
3074  e) ac_build_alias=$build_alias
3075test "x$ac_build_alias" = x &&
3076  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3077test "x$ac_build_alias" = x &&
3078  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3079ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3080  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3081 ;;
3082esac
3083fi
3084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3085printf "%s\n" "$ac_cv_build" >&6; }
3086case $ac_cv_build in
3087*-*-*) ;;
3088*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3089esac
3090build=$ac_cv_build
3091ac_save_IFS=$IFS; IFS='-'
3092set x $ac_cv_build
3093shift
3094build_cpu=$1
3095build_vendor=$2
3096shift; shift
3097# Remember, the first character of IFS is used to create $*,
3098# except with old shells:
3099build_os=$*
3100IFS=$ac_save_IFS
3101case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102
3103
3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3105printf %s "checking host system type... " >&6; }
3106if test ${ac_cv_host+y}
3107then :
3108  printf %s "(cached) " >&6
3109else case e in #(
3110  e) if test "x$host_alias" = x; then
3111  ac_cv_host=$ac_cv_build
3112else
3113  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3114    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3115fi
3116 ;;
3117esac
3118fi
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3120printf "%s\n" "$ac_cv_host" >&6; }
3121case $ac_cv_host in
3122*-*-*) ;;
3123*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3124esac
3125host=$ac_cv_host
3126ac_save_IFS=$IFS; IFS='-'
3127set x $ac_cv_host
3128shift
3129host_cpu=$1
3130host_vendor=$2
3131shift; shift
3132# Remember, the first character of IFS is used to create $*,
3133# except with old shells:
3134host_os=$*
3135IFS=$ac_save_IFS
3136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3137
3138
3139# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3140# Must be called before any macros that run the compiler (like LT_INIT)
3141# to avoid autoconf errors.
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152# Expand $ac_aux_dir to an absolute path.
3153am_aux_dir=`cd "$ac_aux_dir" && pwd`
3154
3155ac_ext=c
3156ac_cpp='$CPP $CPPFLAGS'
3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160if test -n "$ac_tool_prefix"; then
3161  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164printf %s "checking for $ac_word... " >&6; }
3165if test ${ac_cv_prog_CC+y}
3166then :
3167  printf %s "(cached) " >&6
3168else case e in #(
3169  e) if test -n "$CC"; then
3170  ac_cv_prog_CC="$CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  case $as_dir in #(((
3177    '') as_dir=./ ;;
3178    */) ;;
3179    *) as_dir=$as_dir/ ;;
3180  esac
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi ;;
3192esac
3193fi
3194CC=$ac_cv_prog_CC
3195if test -n "$CC"; then
3196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197printf "%s\n" "$CC" >&6; }
3198else
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200printf "%s\n" "no" >&6; }
3201fi
3202
3203
3204fi
3205if test -z "$ac_cv_prog_CC"; then
3206  ac_ct_CC=$CC
3207  # Extract the first word of "gcc", so it can be a program name with args.
3208set dummy gcc; ac_word=$2
3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210printf %s "checking for $ac_word... " >&6; }
3211if test ${ac_cv_prog_ac_ct_CC+y}
3212then :
3213  printf %s "(cached) " >&6
3214else case e in #(
3215  e) if test -n "$ac_ct_CC"; then
3216  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  case $as_dir in #(((
3223    '') as_dir=./ ;;
3224    */) ;;
3225    *) as_dir=$as_dir/ ;;
3226  esac
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229    ac_cv_prog_ac_ct_CC="gcc"
3230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi ;;
3238esac
3239fi
3240ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241if test -n "$ac_ct_CC"; then
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3243printf "%s\n" "$ac_ct_CC" >&6; }
3244else
3245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246printf "%s\n" "no" >&6; }
3247fi
3248
3249  if test "x$ac_ct_CC" = x; then
3250    CC=""
3251  else
3252    case $cross_compiling:$ac_tool_warned in
3253yes:)
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256ac_tool_warned=yes ;;
3257esac
3258    CC=$ac_ct_CC
3259  fi
3260else
3261  CC="$ac_cv_prog_CC"
3262fi
3263
3264if test -z "$CC"; then
3265          if test -n "$ac_tool_prefix"; then
3266    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3267set dummy ${ac_tool_prefix}cc; ac_word=$2
3268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269printf %s "checking for $ac_word... " >&6; }
3270if test ${ac_cv_prog_CC+y}
3271then :
3272  printf %s "(cached) " >&6
3273else case e in #(
3274  e) if test -n "$CC"; then
3275  ac_cv_prog_CC="$CC" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280  IFS=$as_save_IFS
3281  case $as_dir in #(((
3282    '') as_dir=./ ;;
3283    */) ;;
3284    *) as_dir=$as_dir/ ;;
3285  esac
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_CC="${ac_tool_prefix}cc"
3289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293  done
3294IFS=$as_save_IFS
3295
3296fi ;;
3297esac
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302printf "%s\n" "$CC" >&6; }
3303else
3304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305printf "%s\n" "no" >&6; }
3306fi
3307
3308
3309  fi
3310fi
3311if test -z "$CC"; then
3312  # Extract the first word of "cc", so it can be a program name with args.
3313set dummy cc; ac_word=$2
3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315printf %s "checking for $ac_word... " >&6; }
3316if test ${ac_cv_prog_CC+y}
3317then :
3318  printf %s "(cached) " >&6
3319else case e in #(
3320  e) if test -n "$CC"; then
3321  ac_cv_prog_CC="$CC" # Let the user override the test.
3322else
3323  ac_prog_rejected=no
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  case $as_dir in #(((
3329    '') as_dir=./ ;;
3330    */) ;;
3331    *) as_dir=$as_dir/ ;;
3332  esac
3333    for ac_exec_ext in '' $ac_executable_extensions; do
3334  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3335    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336       ac_prog_rejected=yes
3337       continue
3338     fi
3339    ac_cv_prog_CC="cc"
3340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347if test $ac_prog_rejected = yes; then
3348  # We found a bogon in the path, so make sure we never use it.
3349  set dummy $ac_cv_prog_CC
3350  shift
3351  if test $# != 0; then
3352    # We chose a different compiler from the bogus one.
3353    # However, it has the same basename, so the bogon will be chosen
3354    # first if we set CC to just the basename; use the full file name.
3355    shift
3356    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3357  fi
3358fi
3359fi ;;
3360esac
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365printf "%s\n" "$CC" >&6; }
3366else
3367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368printf "%s\n" "no" >&6; }
3369fi
3370
3371
3372fi
3373if test -z "$CC"; then
3374  if test -n "$ac_tool_prefix"; then
3375  for ac_prog in cl.exe
3376  do
3377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380printf %s "checking for $ac_word... " >&6; }
3381if test ${ac_cv_prog_CC+y}
3382then :
3383  printf %s "(cached) " >&6
3384else case e in #(
3385  e) if test -n "$CC"; then
3386  ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391  IFS=$as_save_IFS
3392  case $as_dir in #(((
3393    '') as_dir=./ ;;
3394    */) ;;
3395    *) as_dir=$as_dir/ ;;
3396  esac
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3399    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi ;;
3408esac
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413printf "%s\n" "$CC" >&6; }
3414else
3415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416printf "%s\n" "no" >&6; }
3417fi
3418
3419
3420    test -n "$CC" && break
3421  done
3422fi
3423if test -z "$CC"; then
3424  ac_ct_CC=$CC
3425  for ac_prog in cl.exe
3426do
3427  # Extract the first word of "$ac_prog", so it can be a program name with args.
3428set dummy $ac_prog; ac_word=$2
3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430printf %s "checking for $ac_word... " >&6; }
3431if test ${ac_cv_prog_ac_ct_CC+y}
3432then :
3433  printf %s "(cached) " >&6
3434else case e in #(
3435  e) if test -n "$ac_ct_CC"; then
3436  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437else
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441  IFS=$as_save_IFS
3442  case $as_dir in #(((
3443    '') as_dir=./ ;;
3444    */) ;;
3445    *) as_dir=$as_dir/ ;;
3446  esac
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3449    ac_cv_prog_ac_ct_CC="$ac_prog"
3450    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454  done
3455IFS=$as_save_IFS
3456
3457fi ;;
3458esac
3459fi
3460ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461if test -n "$ac_ct_CC"; then
3462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463printf "%s\n" "$ac_ct_CC" >&6; }
3464else
3465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466printf "%s\n" "no" >&6; }
3467fi
3468
3469
3470  test -n "$ac_ct_CC" && break
3471done
3472
3473  if test "x$ac_ct_CC" = x; then
3474    CC=""
3475  else
3476    case $cross_compiling:$ac_tool_warned in
3477yes:)
3478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480ac_tool_warned=yes ;;
3481esac
3482    CC=$ac_ct_CC
3483  fi
3484fi
3485
3486fi
3487if test -z "$CC"; then
3488  if test -n "$ac_tool_prefix"; then
3489  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3490set dummy ${ac_tool_prefix}clang; ac_word=$2
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492printf %s "checking for $ac_word... " >&6; }
3493if test ${ac_cv_prog_CC+y}
3494then :
3495  printf %s "(cached) " >&6
3496else case e in #(
3497  e) if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  case $as_dir in #(((
3505    '') as_dir=./ ;;
3506    */) ;;
3507    *) as_dir=$as_dir/ ;;
3508  esac
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_CC="${ac_tool_prefix}clang"
3512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516  done
3517IFS=$as_save_IFS
3518
3519fi ;;
3520esac
3521fi
3522CC=$ac_cv_prog_CC
3523if test -n "$CC"; then
3524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525printf "%s\n" "$CC" >&6; }
3526else
3527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528printf "%s\n" "no" >&6; }
3529fi
3530
3531
3532fi
3533if test -z "$ac_cv_prog_CC"; then
3534  ac_ct_CC=$CC
3535  # Extract the first word of "clang", so it can be a program name with args.
3536set dummy clang; ac_word=$2
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538printf %s "checking for $ac_word... " >&6; }
3539if test ${ac_cv_prog_ac_ct_CC+y}
3540then :
3541  printf %s "(cached) " >&6
3542else case e in #(
3543  e) if test -n "$ac_ct_CC"; then
3544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549  IFS=$as_save_IFS
3550  case $as_dir in #(((
3551    '') as_dir=./ ;;
3552    */) ;;
3553    *) as_dir=$as_dir/ ;;
3554  esac
3555    for ac_exec_ext in '' $ac_executable_extensions; do
3556  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3557    ac_cv_prog_ac_ct_CC="clang"
3558    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3559    break 2
3560  fi
3561done
3562  done
3563IFS=$as_save_IFS
3564
3565fi ;;
3566esac
3567fi
3568ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569if test -n "$ac_ct_CC"; then
3570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571printf "%s\n" "$ac_ct_CC" >&6; }
3572else
3573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574printf "%s\n" "no" >&6; }
3575fi
3576
3577  if test "x$ac_ct_CC" = x; then
3578    CC=""
3579  else
3580    case $cross_compiling:$ac_tool_warned in
3581yes:)
3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584ac_tool_warned=yes ;;
3585esac
3586    CC=$ac_ct_CC
3587  fi
3588else
3589  CC="$ac_cv_prog_CC"
3590fi
3591
3592fi
3593
3594
3595test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3596printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3597as_fn_error $? "no acceptable C compiler found in \$PATH
3598See 'config.log' for more details" "$LINENO" 5; }
3599
3600# Provide some information about the compiler.
3601printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602set X $ac_compile
3603ac_compiler=$2
3604for ac_option in --version -v -V -qversion -version; do
3605  { { ac_try="$ac_compiler $ac_option >&5"
3606case "(($ac_try" in
3607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608  *) ac_try_echo=$ac_try;;
3609esac
3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611printf "%s\n" "$ac_try_echo"; } >&5
3612  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613  ac_status=$?
3614  if test -s conftest.err; then
3615    sed '10a\
3616... rest of stderr output deleted ...
3617         10q' conftest.err >conftest.er1
3618    cat conftest.er1 >&5
3619  fi
3620  rm -f conftest.er1 conftest.err
3621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622  test $ac_status = 0; }
3623done
3624
3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h.  */
3627
3628int
3629main (void)
3630{
3631
3632  ;
3633  return 0;
3634}
3635_ACEOF
3636ac_clean_files_save=$ac_clean_files
3637ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638# Try to create an executable without -o first, disregard a.out.
3639# It will help us diagnose broken compilers, and finding out an intuition
3640# of exeext.
3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642printf %s "checking whether the C compiler works... " >&6; }
3643ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645# The possible output files:
3646ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648ac_rmfiles=
3649for ac_file in $ac_files
3650do
3651  case $ac_file in
3652    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654  esac
3655done
3656rm -f $ac_rmfiles
3657
3658if { { ac_try="$ac_link_default"
3659case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664printf "%s\n" "$ac_try_echo"; } >&5
3665  (eval "$ac_link_default") 2>&5
3666  ac_status=$?
3667  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668  test $ac_status = 0; }
3669then :
3670  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3671# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3672# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3673# so that the user can short-circuit this test for compilers unknown to
3674# Autoconf.
3675for ac_file in $ac_files ''
3676do
3677  test -f "$ac_file" || continue
3678  case $ac_file in
3679    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3680	;;
3681    [ab].out )
3682	# We found the default executable, but exeext='' is most
3683	# certainly right.
3684	break;;
3685    *.* )
3686	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3687	then :; else
3688	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689	fi
3690	# We set ac_cv_exeext here because the later test for it is not
3691	# safe: cross compilers may not add the suffix if given an '-o'
3692	# argument, so we may need to know it at that point already.
3693	# Even if this section looks crufty: it has the advantage of
3694	# actually working.
3695	break;;
3696    * )
3697	break;;
3698  esac
3699done
3700test "$ac_cv_exeext" = no && ac_cv_exeext=
3701
3702else case e in #(
3703  e) ac_file='' ;;
3704esac
3705fi
3706if test -z "$ac_file"
3707then :
3708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709printf "%s\n" "no" >&6; }
3710printf "%s\n" "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
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 77 "C compiler cannot create executables
3716See 'config.log' for more details" "$LINENO" 5; }
3717else case e in #(
3718  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719printf "%s\n" "yes" >&6; } ;;
3720esac
3721fi
3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3723printf %s "checking for C compiler default output file name... " >&6; }
3724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725printf "%s\n" "$ac_file" >&6; }
3726ac_exeext=$ac_cv_exeext
3727
3728rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3729ac_clean_files=$ac_clean_files_save
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731printf %s "checking for suffix of executables... " >&6; }
3732if { { ac_try="$ac_link"
3733case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738printf "%s\n" "$ac_try_echo"; } >&5
3739  (eval "$ac_link") 2>&5
3740  ac_status=$?
3741  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742  test $ac_status = 0; }
3743then :
3744  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3745# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3746# work properly (i.e., refer to 'conftest.exe'), while it won't with
3747# 'rm'.
3748for ac_file in conftest.exe conftest conftest.*; do
3749  test -f "$ac_file" || continue
3750  case $ac_file in
3751    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753	  break;;
3754    * ) break;;
3755  esac
3756done
3757else case e in #(
3758  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3759printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3760as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3761See 'config.log' for more details" "$LINENO" 5; } ;;
3762esac
3763fi
3764rm -f conftest conftest$ac_cv_exeext
3765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766printf "%s\n" "$ac_cv_exeext" >&6; }
3767
3768rm -f conftest.$ac_ext
3769EXEEXT=$ac_cv_exeext
3770ac_exeext=$EXEEXT
3771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773#include <stdio.h>
3774int
3775main (void)
3776{
3777FILE *f = fopen ("conftest.out", "w");
3778 if (!f)
3779  return 1;
3780 return ferror (f) || fclose (f) != 0;
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786ac_clean_files="$ac_clean_files conftest.out"
3787# Check that the compiler produces executables we can run.  If not, either
3788# the compiler is broken, or we cross compile.
3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790printf %s "checking whether we are cross compiling... " >&6; }
3791if test "$cross_compiling" != yes; then
3792  { { ac_try="$ac_link"
3793case "(($ac_try" in
3794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795  *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798printf "%s\n" "$ac_try_echo"; } >&5
3799  (eval "$ac_link") 2>&5
3800  ac_status=$?
3801  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802  test $ac_status = 0; }
3803  if { ac_try='./conftest$ac_cv_exeext'
3804  { { case "(($ac_try" in
3805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806  *) ac_try_echo=$ac_try;;
3807esac
3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809printf "%s\n" "$ac_try_echo"; } >&5
3810  (eval "$ac_try") 2>&5
3811  ac_status=$?
3812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }; }; then
3814    cross_compiling=no
3815  else
3816    if test "$cross_compiling" = maybe; then
3817	cross_compiling=yes
3818    else
3819	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3820printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3821as_fn_error 77 "cannot run C compiled programs.
3822If you meant to cross compile, use '--host'.
3823See 'config.log' for more details" "$LINENO" 5; }
3824    fi
3825  fi
3826fi
3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828printf "%s\n" "$cross_compiling" >&6; }
3829
3830rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3831  conftest.o conftest.obj conftest.out
3832ac_clean_files=$ac_clean_files_save
3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3834printf %s "checking for suffix of object files... " >&6; }
3835if test ${ac_cv_objext+y}
3836then :
3837  printf %s "(cached) " >&6
3838else case e in #(
3839  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842int
3843main (void)
3844{
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850rm -f conftest.o conftest.obj
3851if { { ac_try="$ac_compile"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857printf "%s\n" "$ac_try_echo"; } >&5
3858  (eval "$ac_compile") 2>&5
3859  ac_status=$?
3860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }
3862then :
3863  for ac_file in conftest.o conftest.obj conftest.*; do
3864  test -f "$ac_file" || continue;
3865  case $ac_file in
3866    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3867    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3868       break;;
3869  esac
3870done
3871else case e in #(
3872  e) printf "%s\n" "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3876printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3877as_fn_error $? "cannot compute suffix of object files: cannot compile
3878See 'config.log' for more details" "$LINENO" 5; } ;;
3879esac
3880fi
3881rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3882esac
3883fi
3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3885printf "%s\n" "$ac_cv_objext" >&6; }
3886OBJEXT=$ac_cv_objext
3887ac_objext=$OBJEXT
3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3889printf %s "checking whether the compiler supports GNU C... " >&6; }
3890if test ${ac_cv_c_compiler_gnu+y}
3891then :
3892  printf %s "(cached) " >&6
3893else case e in #(
3894  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main (void)
3899{
3900#ifndef __GNUC__
3901       choke me
3902#endif
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908if ac_fn_c_try_compile "$LINENO"
3909then :
3910  ac_compiler_gnu=yes
3911else case e in #(
3912  e) ac_compiler_gnu=no ;;
3913esac
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3916ac_cv_c_compiler_gnu=$ac_compiler_gnu
3917 ;;
3918esac
3919fi
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3921printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924if test $ac_compiler_gnu = yes; then
3925  GCC=yes
3926else
3927  GCC=
3928fi
3929ac_test_CFLAGS=${CFLAGS+y}
3930ac_save_CFLAGS=$CFLAGS
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3932printf %s "checking whether $CC accepts -g... " >&6; }
3933if test ${ac_cv_prog_cc_g+y}
3934then :
3935  printf %s "(cached) " >&6
3936else case e in #(
3937  e) ac_save_c_werror_flag=$ac_c_werror_flag
3938   ac_c_werror_flag=yes
3939   ac_cv_prog_cc_g=no
3940   CFLAGS="-g"
3941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943
3944int
3945main (void)
3946{
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952if ac_fn_c_try_compile "$LINENO"
3953then :
3954  ac_cv_prog_cc_g=yes
3955else case e in #(
3956  e) CFLAGS=""
3957      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959
3960int
3961main (void)
3962{
3963
3964  ;
3965  return 0;
3966}
3967_ACEOF
3968if ac_fn_c_try_compile "$LINENO"
3969then :
3970
3971else case e in #(
3972  e) ac_c_werror_flag=$ac_save_c_werror_flag
3973	 CFLAGS="-g"
3974	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976
3977int
3978main (void)
3979{
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985if ac_fn_c_try_compile "$LINENO"
3986then :
3987  ac_cv_prog_cc_g=yes
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3990esac
3991fi
3992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3993esac
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3996   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3997esac
3998fi
3999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4000printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4001if test $ac_test_CFLAGS; then
4002  CFLAGS=$ac_save_CFLAGS
4003elif test $ac_cv_prog_cc_g = yes; then
4004  if test "$GCC" = yes; then
4005    CFLAGS="-g -O2"
4006  else
4007    CFLAGS="-g"
4008  fi
4009else
4010  if test "$GCC" = yes; then
4011    CFLAGS="-O2"
4012  else
4013    CFLAGS=
4014  fi
4015fi
4016ac_prog_cc_stdc=no
4017if test x$ac_prog_cc_stdc = xno
4018then :
4019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4020printf %s "checking for $CC option to enable C11 features... " >&6; }
4021if test ${ac_cv_prog_cc_c11+y}
4022then :
4023  printf %s "(cached) " >&6
4024else case e in #(
4025  e) ac_cv_prog_cc_c11=no
4026ac_save_CC=$CC
4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029$ac_c_conftest_c11_program
4030_ACEOF
4031for ac_arg in '' -std=gnu11
4032do
4033  CC="$ac_save_CC $ac_arg"
4034  if ac_fn_c_try_compile "$LINENO"
4035then :
4036  ac_cv_prog_cc_c11=$ac_arg
4037fi
4038rm -f core conftest.err conftest.$ac_objext conftest.beam
4039  test "x$ac_cv_prog_cc_c11" != "xno" && break
4040done
4041rm -f conftest.$ac_ext
4042CC=$ac_save_CC ;;
4043esac
4044fi
4045
4046if test "x$ac_cv_prog_cc_c11" = xno
4047then :
4048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4049printf "%s\n" "unsupported" >&6; }
4050else case e in #(
4051  e) if test "x$ac_cv_prog_cc_c11" = x
4052then :
4053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054printf "%s\n" "none needed" >&6; }
4055else case e in #(
4056  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4057printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4058     CC="$CC $ac_cv_prog_cc_c11" ;;
4059esac
4060fi
4061  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4062  ac_prog_cc_stdc=c11 ;;
4063esac
4064fi
4065fi
4066if test x$ac_prog_cc_stdc = xno
4067then :
4068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4069printf %s "checking for $CC option to enable C99 features... " >&6; }
4070if test ${ac_cv_prog_cc_c99+y}
4071then :
4072  printf %s "(cached) " >&6
4073else case e in #(
4074  e) ac_cv_prog_cc_c99=no
4075ac_save_CC=$CC
4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078$ac_c_conftest_c99_program
4079_ACEOF
4080for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4081do
4082  CC="$ac_save_CC $ac_arg"
4083  if ac_fn_c_try_compile "$LINENO"
4084then :
4085  ac_cv_prog_cc_c99=$ac_arg
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.beam
4088  test "x$ac_cv_prog_cc_c99" != "xno" && break
4089done
4090rm -f conftest.$ac_ext
4091CC=$ac_save_CC ;;
4092esac
4093fi
4094
4095if test "x$ac_cv_prog_cc_c99" = xno
4096then :
4097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4098printf "%s\n" "unsupported" >&6; }
4099else case e in #(
4100  e) if test "x$ac_cv_prog_cc_c99" = x
4101then :
4102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4103printf "%s\n" "none needed" >&6; }
4104else case e in #(
4105  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4106printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4107     CC="$CC $ac_cv_prog_cc_c99" ;;
4108esac
4109fi
4110  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4111  ac_prog_cc_stdc=c99 ;;
4112esac
4113fi
4114fi
4115if test x$ac_prog_cc_stdc = xno
4116then :
4117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4118printf %s "checking for $CC option to enable C89 features... " >&6; }
4119if test ${ac_cv_prog_cc_c89+y}
4120then :
4121  printf %s "(cached) " >&6
4122else case e in #(
4123  e) ac_cv_prog_cc_c89=no
4124ac_save_CC=$CC
4125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127$ac_c_conftest_c89_program
4128_ACEOF
4129for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4130do
4131  CC="$ac_save_CC $ac_arg"
4132  if ac_fn_c_try_compile "$LINENO"
4133then :
4134  ac_cv_prog_cc_c89=$ac_arg
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.beam
4137  test "x$ac_cv_prog_cc_c89" != "xno" && break
4138done
4139rm -f conftest.$ac_ext
4140CC=$ac_save_CC ;;
4141esac
4142fi
4143
4144if test "x$ac_cv_prog_cc_c89" = xno
4145then :
4146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147printf "%s\n" "unsupported" >&6; }
4148else case e in #(
4149  e) if test "x$ac_cv_prog_cc_c89" = x
4150then :
4151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4152printf "%s\n" "none needed" >&6; }
4153else case e in #(
4154  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4155printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4156     CC="$CC $ac_cv_prog_cc_c89" ;;
4157esac
4158fi
4159  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4160  ac_prog_cc_stdc=c89 ;;
4161esac
4162fi
4163fi
4164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
4171
4172  ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4178printf %s "checking whether $CC understands -c and -o together... " >&6; }
4179if test ${am_cv_prog_cc_c_o+y}
4180then :
4181  printf %s "(cached) " >&6
4182else case e in #(
4183  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185
4186int
4187main (void)
4188{
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194  # Make sure it works both with $CC and with simple cc.
4195  # Following AC_PROG_CC_C_O, we do the test twice because some
4196  # compilers refuse to overwrite an existing .o file with -o,
4197  # though they will create one.
4198  am_cv_prog_cc_c_o=yes
4199  for am_i in 1 2; do
4200    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4201   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } \
4205         && test -f conftest2.$ac_objext; then
4206      : OK
4207    else
4208      am_cv_prog_cc_c_o=no
4209      break
4210    fi
4211  done
4212  rm -f core conftest*
4213  unset am_i ;;
4214esac
4215fi
4216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4217printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4218if test "$am_cv_prog_cc_c_o" != yes; then
4219   # Losing compiler, so override with the script.
4220   # FIXME: It is wrong to rewrite CC.
4221   # But if we don't then we get into trouble of one sort or another.
4222   # A longer-term fix would be to have automake use am__CC in this case,
4223   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4224   CC="$am_aux_dir/compile $CC"
4225fi
4226ac_ext=c
4227ac_cpp='$CPP $CPPFLAGS'
4228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233
4234ac_header= ac_cache=
4235for ac_item in $ac_header_c_list
4236do
4237  if test $ac_cache; then
4238    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4239    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4240      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4241    fi
4242    ac_header= ac_cache=
4243  elif test $ac_header; then
4244    ac_cache=$ac_item
4245  else
4246    ac_header=$ac_item
4247  fi
4248done
4249
4250
4251
4252
4253
4254
4255
4256
4257if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4258then :
4259
4260printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4261
4262fi
4263
4264
4265
4266
4267
4268
4269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4270printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4271if test ${ac_cv_safe_to_define___extensions__+y}
4272then :
4273  printf %s "(cached) " >&6
4274else case e in #(
4275  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278#         define __EXTENSIONS__ 1
4279          $ac_includes_default
4280int
4281main (void)
4282{
4283
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288if ac_fn_c_try_compile "$LINENO"
4289then :
4290  ac_cv_safe_to_define___extensions__=yes
4291else case e in #(
4292  e) ac_cv_safe_to_define___extensions__=no ;;
4293esac
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4296esac
4297fi
4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4299printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4300
4301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4302printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4303if test ${ac_cv_should_define__xopen_source+y}
4304then :
4305  printf %s "(cached) " >&6
4306else case e in #(
4307  e) ac_cv_should_define__xopen_source=no
4308    if test $ac_cv_header_wchar_h = yes
4309then :
4310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312
4313          #include <wchar.h>
4314          mbstate_t x;
4315int
4316main (void)
4317{
4318
4319  ;
4320  return 0;
4321}
4322_ACEOF
4323if ac_fn_c_try_compile "$LINENO"
4324then :
4325
4326else case e in #(
4327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329
4330            #define _XOPEN_SOURCE 500
4331            #include <wchar.h>
4332            mbstate_t x;
4333int
4334main (void)
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341if ac_fn_c_try_compile "$LINENO"
4342then :
4343  ac_cv_should_define__xopen_source=yes
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4346esac
4347fi
4348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4349fi ;;
4350esac
4351fi
4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4353printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4354
4355  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4356
4357  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4358
4359  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4360
4361  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4362
4363  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4364
4365  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4366
4367  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4368
4369  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4370
4371  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4372
4373  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4374
4375  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4376
4377  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4378
4379  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4380
4381  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4382
4383  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4384
4385  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4386
4387  if test $ac_cv_header_minix_config_h = yes
4388then :
4389  MINIX=yes
4390    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4391
4392    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4393
4394    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4395
4396else case e in #(
4397  e) MINIX= ;;
4398esac
4399fi
4400  if test $ac_cv_safe_to_define___extensions__ = yes
4401then :
4402  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4403
4404fi
4405  if test $ac_cv_should_define__xopen_source = yes
4406then :
4407  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4408
4409fi
4410
4411
4412# Initialize Automake
4413am__api_version='1.17'
4414
4415
4416  # Find a good install program.  We prefer a C program (faster),
4417# so one script is as good as another.  But avoid the broken or
4418# incompatible versions:
4419# SysV /etc/install, /usr/sbin/install
4420# SunOS /usr/etc/install
4421# IRIX /sbin/install
4422# AIX /bin/install
4423# AmigaOS /C/install, which installs bootblocks on floppy discs
4424# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4425# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4426# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4427# OS/2's system install, which has a completely different semantic
4428# ./install, which can be erroneously created by make from ./install.sh.
4429# Reject install programs that cannot install multiple files.
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4431printf %s "checking for a BSD-compatible install... " >&6; }
4432if test -z "$INSTALL"; then
4433if test ${ac_cv_path_install+y}
4434then :
4435  printf %s "(cached) " >&6
4436else case e in #(
4437  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440  IFS=$as_save_IFS
4441  case $as_dir in #(((
4442    '') as_dir=./ ;;
4443    */) ;;
4444    *) as_dir=$as_dir/ ;;
4445  esac
4446    # Account for fact that we put trailing slashes in our PATH walk.
4447case $as_dir in #((
4448  ./ | /[cC]/* | \
4449  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4450  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4451  /usr/ucb/* ) ;;
4452  *)
4453    # OSF1 and SCO ODT 3.0 have their own names for install.
4454    # Don't use installbsd from OSF since it installs stuff as root
4455    # by default.
4456    for ac_prog in ginstall scoinst install; do
4457      for ac_exec_ext in '' $ac_executable_extensions; do
4458	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4459	  if test $ac_prog = install &&
4460	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4461	    # AIX install.  It has an incompatible calling convention.
4462	    :
4463	  elif test $ac_prog = install &&
4464	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4465	    # program-specific install script used by HP pwplus--don't use.
4466	    :
4467	  else
4468	    rm -rf conftest.one conftest.two conftest.dir
4469	    echo one > conftest.one
4470	    echo two > conftest.two
4471	    mkdir conftest.dir
4472	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4473	      test -s conftest.one && test -s conftest.two &&
4474	      test -s conftest.dir/conftest.one &&
4475	      test -s conftest.dir/conftest.two
4476	    then
4477	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4478	      break 3
4479	    fi
4480	  fi
4481	fi
4482      done
4483    done
4484    ;;
4485esac
4486
4487  done
4488IFS=$as_save_IFS
4489
4490rm -rf conftest.one conftest.two conftest.dir
4491 ;;
4492esac
4493fi
4494  if test ${ac_cv_path_install+y}; then
4495    INSTALL=$ac_cv_path_install
4496  else
4497    # As a last resort, use the slow shell script.  Don't cache a
4498    # value for INSTALL within a source directory, because that will
4499    # break other packages using the cache if that directory is
4500    # removed, or if the value is a relative name.
4501    INSTALL=$ac_install_sh
4502  fi
4503fi
4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4505printf "%s\n" "$INSTALL" >&6; }
4506
4507# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4508# It thinks the first close brace ends the variable substitution.
4509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4510
4511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4512
4513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4514
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4516printf %s "checking whether sleep supports fractional seconds... " >&6; }
4517if test ${am_cv_sleep_fractional_seconds+y}
4518then :
4519  printf %s "(cached) " >&6
4520else case e in #(
4521  e) if sleep 0.001 2>/dev/null
4522then :
4523  am_cv_sleep_fractional_seconds=yes
4524else case e in #(
4525  e) am_cv_sleep_fractional_seconds=no ;;
4526esac
4527fi
4528 ;;
4529esac
4530fi
4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4532printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4533
4534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4535printf %s "checking filesystem timestamp resolution... " >&6; }
4536if test ${am_cv_filesystem_timestamp_resolution+y}
4537then :
4538  printf %s "(cached) " >&6
4539else case e in #(
4540  e) # Default to the worst case.
4541am_cv_filesystem_timestamp_resolution=2
4542
4543# Only try to go finer than 1 sec if sleep can do it.
4544# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4545# - 1 sec is not much of a win compared to 2 sec, and
4546# - it takes 2 seconds to perform the test whether 1 sec works.
4547#
4548# Instead, just use the default 2s on platforms that have 1s resolution,
4549# accept the extra 1s delay when using $sleep in the Automake tests, in
4550# exchange for not incurring the 2s delay for running the test for all
4551# packages.
4552#
4553am_try_resolutions=
4554if test "$am_cv_sleep_fractional_seconds" = yes; then
4555  # Even a millisecond often causes a bunch of false positives,
4556  # so just try a hundredth of a second. The time saved between .001 and
4557  # .01 is not terribly consequential.
4558  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4559fi
4560
4561# In order to catch current-generation FAT out, we must *modify* files
4562# that already exist; the *creation* timestamp is finer.  Use names
4563# that make ls -t sort them differently when they have equal
4564# timestamps than when they have distinct timestamps, keeping
4565# in mind that ls -t prints the *newest* file first.
4566rm -f conftest.ts?
4567: > conftest.ts1
4568: > conftest.ts2
4569: > conftest.ts3
4570
4571# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4572# clobber the current shell's arguments. (Outer-level square brackets
4573# are removed by m4; they're present so that m4 does not expand
4574# <dollar><star>; be careful, easy to get confused.)
4575if (
4576     set X `ls -t conftest.ts[12]` &&
4577     {
4578       test "$*" != "X conftest.ts1 conftest.ts2" ||
4579       test "$*" != "X conftest.ts2 conftest.ts1";
4580     }
4581); then :; else
4582  # If neither matched, then we have a broken ls.  This can happen
4583  # if, for instance, CONFIG_SHELL is bash and it inherits a
4584  # broken ls alias from the environment.  This has actually
4585  # happened.  Such a system could not be considered "sane".
4586  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4587  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4588printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4589as_fn_error $? "ls -t produces unexpected output.
4590Make sure there is not a broken ls alias in your environment.
4591See 'config.log' for more details" "$LINENO" 5; }
4592fi
4593
4594for am_try_res in $am_try_resolutions; do
4595  # Any one fine-grained sleep might happen to cross the boundary
4596  # between two values of a coarser actual resolution, but if we do
4597  # two fine-grained sleeps in a row, at least one of them will fall
4598  # entirely within a coarse interval.
4599  echo alpha > conftest.ts1
4600  sleep $am_try_res
4601  echo beta > conftest.ts2
4602  sleep $am_try_res
4603  echo gamma > conftest.ts3
4604
4605  # We assume that 'ls -t' will make use of high-resolution
4606  # timestamps if the operating system supports them at all.
4607  if (set X `ls -t conftest.ts?` &&
4608      test "$2" = conftest.ts3 &&
4609      test "$3" = conftest.ts2 &&
4610      test "$4" = conftest.ts1); then
4611    #
4612    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4613    # because we don't need to test make.
4614    make_ok=true
4615    if test $am_try_res != 1; then
4616      # But if we've succeeded so far with a subsecond resolution, we
4617      # have one more thing to check: make. It can happen that
4618      # everything else supports the subsecond mtimes, but make doesn't;
4619      # notably on macOS, which ships make 3.81 from 2006 (the last one
4620      # released under GPLv2). https://bugs.gnu.org/68808
4621      #
4622      # We test $MAKE if it is defined in the environment, else "make".
4623      # It might get overridden later, but our hope is that in practice
4624      # it does not matter: it is the system "make" which is (by far)
4625      # the most likely to be broken, whereas if the user overrides it,
4626      # probably they did so with a better, or at least not worse, make.
4627      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4628      #
4629      # Create a Makefile (real tab character here):
4630      rm -f conftest.mk
4631      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4632      echo '	touch conftest.ts2' >>conftest.mk
4633      #
4634      # Now, running
4635      #   touch conftest.ts1; touch conftest.ts2; make
4636      # should touch ts1 because ts2 is newer. This could happen by luck,
4637      # but most often, it will fail if make's support is insufficient. So
4638      # test for several consecutive successes.
4639      #
4640      # (We reuse conftest.ts[12] because we still want to modify existing
4641      # files, not create new ones, per above.)
4642      n=0
4643      make=${MAKE-make}
4644      until test $n -eq 3; do
4645        echo one > conftest.ts1
4646        sleep $am_try_res
4647        echo two > conftest.ts2 # ts2 should now be newer than ts1
4648        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4649          make_ok=false
4650          break # out of $n loop
4651        fi
4652        n=`expr $n + 1`
4653      done
4654    fi
4655    #
4656    if $make_ok; then
4657      # Everything we know to check worked out, so call this resolution good.
4658      am_cv_filesystem_timestamp_resolution=$am_try_res
4659      break # out of $am_try_res loop
4660    fi
4661    # Otherwise, we'll go on to check the next resolution.
4662  fi
4663done
4664rm -f conftest.ts?
4665# (end _am_filesystem_timestamp_resolution)
4666 ;;
4667esac
4668fi
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4670printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4671
4672# This check should not be cached, as it may vary across builds of
4673# different projects.
4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4675printf %s "checking whether build environment is sane... " >&6; }
4676# Reject unsafe characters in $srcdir or the absolute working directory
4677# name.  Accept space and tab only in the latter.
4678am_lf='
4679'
4680case `pwd` in
4681  *[\\\"\#\$\&\'\`$am_lf]*)
4682    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4683esac
4684case $srcdir in
4685  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4686    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4687esac
4688
4689# Do 'set' in a subshell so we don't clobber the current shell's
4690# arguments.  Must try -L first in case configure is actually a
4691# symlink; some systems play weird games with the mod time of symlinks
4692# (eg FreeBSD returns the mod time of the symlink's containing
4693# directory).
4694am_build_env_is_sane=no
4695am_has_slept=no
4696rm -f conftest.file
4697for am_try in 1 2; do
4698  echo "timestamp, slept: $am_has_slept" > conftest.file
4699  if (
4700    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4701    if test "$*" = "X"; then
4702      # -L didn't work.
4703      set X `ls -t "$srcdir/configure" conftest.file`
4704    fi
4705    test "$2" = conftest.file
4706  ); then
4707    am_build_env_is_sane=yes
4708    break
4709  fi
4710  # Just in case.
4711  sleep "$am_cv_filesystem_timestamp_resolution"
4712  am_has_slept=yes
4713done
4714
4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4716printf "%s\n" "$am_build_env_is_sane" >&6; }
4717if test "$am_build_env_is_sane" = no; then
4718  as_fn_error $? "newly created file is older than distributed files!
4719Check your system clock" "$LINENO" 5
4720fi
4721
4722# If we didn't sleep, we still need to ensure time stamps of config.status and
4723# generated files are strictly newer.
4724am_sleep_pid=
4725if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4726then :
4727
4728else case e in #(
4729  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4730  am_sleep_pid=$!
4731 ;;
4732esac
4733fi
4734
4735rm -f conftest.file
4736
4737test "$program_prefix" != NONE &&
4738  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4739# Use a double $ so make ignores it.
4740test "$program_suffix" != NONE &&
4741  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4742# Double any \ or $.
4743# By default was 's,x,x', remove it if useless.
4744ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4745program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4746
4747
4748  if test x"${MISSING+set}" != xset; then
4749  MISSING="\${SHELL} '$am_aux_dir/missing'"
4750fi
4751# Use eval to expand $SHELL
4752if eval "$MISSING --is-lightweight"; then
4753  am_missing_run="$MISSING "
4754else
4755  am_missing_run=
4756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4757printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4758fi
4759
4760if test x"${install_sh+set}" != xset; then
4761  case $am_aux_dir in
4762  *\ * | *\	*)
4763    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4764  *)
4765    install_sh="\${SHELL} $am_aux_dir/install-sh"
4766  esac
4767fi
4768
4769# Installed binaries are usually stripped using 'strip' when the user
4770# run "make install-strip".  However 'strip' might not be the right
4771# tool to use in cross-compilation environments, therefore Automake
4772# will honor the 'STRIP' environment variable to overrule this program.
4773if test "$cross_compiling" != no; then
4774  if test -n "$ac_tool_prefix"; then
4775  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4776set dummy ${ac_tool_prefix}strip; ac_word=$2
4777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778printf %s "checking for $ac_word... " >&6; }
4779if test ${ac_cv_prog_STRIP+y}
4780then :
4781  printf %s "(cached) " >&6
4782else case e in #(
4783  e) if test -n "$STRIP"; then
4784  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4785else
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789  IFS=$as_save_IFS
4790  case $as_dir in #(((
4791    '') as_dir=./ ;;
4792    */) ;;
4793    *) as_dir=$as_dir/ ;;
4794  esac
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4797    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802  done
4803IFS=$as_save_IFS
4804
4805fi ;;
4806esac
4807fi
4808STRIP=$ac_cv_prog_STRIP
4809if test -n "$STRIP"; then
4810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4811printf "%s\n" "$STRIP" >&6; }
4812else
4813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814printf "%s\n" "no" >&6; }
4815fi
4816
4817
4818fi
4819if test -z "$ac_cv_prog_STRIP"; then
4820  ac_ct_STRIP=$STRIP
4821  # Extract the first word of "strip", so it can be a program name with args.
4822set dummy strip; ac_word=$2
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824printf %s "checking for $ac_word... " >&6; }
4825if test ${ac_cv_prog_ac_ct_STRIP+y}
4826then :
4827  printf %s "(cached) " >&6
4828else case e in #(
4829  e) if test -n "$ac_ct_STRIP"; then
4830  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835  IFS=$as_save_IFS
4836  case $as_dir in #(((
4837    '') as_dir=./ ;;
4838    */) ;;
4839    *) as_dir=$as_dir/ ;;
4840  esac
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4843    ac_cv_prog_ac_ct_STRIP="strip"
4844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851fi ;;
4852esac
4853fi
4854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4855if test -n "$ac_ct_STRIP"; then
4856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4857printf "%s\n" "$ac_ct_STRIP" >&6; }
4858else
4859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860printf "%s\n" "no" >&6; }
4861fi
4862
4863  if test "x$ac_ct_STRIP" = x; then
4864    STRIP=":"
4865  else
4866    case $cross_compiling:$ac_tool_warned in
4867yes:)
4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870ac_tool_warned=yes ;;
4871esac
4872    STRIP=$ac_ct_STRIP
4873  fi
4874else
4875  STRIP="$ac_cv_prog_STRIP"
4876fi
4877
4878fi
4879INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4880
4881
4882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4883printf %s "checking for a race-free mkdir -p... " >&6; }
4884if test -z "$MKDIR_P"; then
4885  if test ${ac_cv_path_mkdir+y}
4886then :
4887  printf %s "(cached) " >&6
4888else case e in #(
4889  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4891do
4892  IFS=$as_save_IFS
4893  case $as_dir in #(((
4894    '') as_dir=./ ;;
4895    */) ;;
4896    *) as_dir=$as_dir/ ;;
4897  esac
4898    for ac_prog in mkdir gmkdir; do
4899	 for ac_exec_ext in '' $ac_executable_extensions; do
4900	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4901	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4902	     'mkdir ('*'coreutils) '* | \
4903	     *'BusyBox '* | \
4904	     'mkdir (fileutils) '4.1*)
4905	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4906	       break 3;;
4907	   esac
4908	 done
4909       done
4910  done
4911IFS=$as_save_IFS
4912 ;;
4913esac
4914fi
4915
4916  test -d ./--version && rmdir ./--version
4917  if test ${ac_cv_path_mkdir+y}; then
4918    MKDIR_P="$ac_cv_path_mkdir -p"
4919  else
4920    # As a last resort, use plain mkdir -p,
4921    # in the hope it doesn't have the bugs of ancient mkdir.
4922    MKDIR_P='mkdir -p'
4923  fi
4924fi
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4926printf "%s\n" "$MKDIR_P" >&6; }
4927
4928for ac_prog in gawk mawk nawk awk
4929do
4930  # Extract the first word of "$ac_prog", so it can be a program name with args.
4931set dummy $ac_prog; ac_word=$2
4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933printf %s "checking for $ac_word... " >&6; }
4934if test ${ac_cv_prog_AWK+y}
4935then :
4936  printf %s "(cached) " >&6
4937else case e in #(
4938  e) if test -n "$AWK"; then
4939  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  case $as_dir in #(((
4946    '') as_dir=./ ;;
4947    */) ;;
4948    *) as_dir=$as_dir/ ;;
4949  esac
4950    for ac_exec_ext in '' $ac_executable_extensions; do
4951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4952    ac_cv_prog_AWK="$ac_prog"
4953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4954    break 2
4955  fi
4956done
4957  done
4958IFS=$as_save_IFS
4959
4960fi ;;
4961esac
4962fi
4963AWK=$ac_cv_prog_AWK
4964if test -n "$AWK"; then
4965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4966printf "%s\n" "$AWK" >&6; }
4967else
4968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969printf "%s\n" "no" >&6; }
4970fi
4971
4972
4973  test -n "$AWK" && break
4974done
4975
4976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4977printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4978set x ${MAKE-make}
4979ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4980if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4981then :
4982  printf %s "(cached) " >&6
4983else case e in #(
4984  e) cat >conftest.make <<\_ACEOF
4985SHELL = /bin/sh
4986all:
4987	@echo '@@@%%%=$(MAKE)=@@@%%%'
4988_ACEOF
4989# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4990case `${MAKE-make} -f conftest.make 2>/dev/null` in
4991  *@@@%%%=?*=@@@%%%*)
4992    eval ac_cv_prog_make_${ac_make}_set=yes;;
4993  *)
4994    eval ac_cv_prog_make_${ac_make}_set=no;;
4995esac
4996rm -f conftest.make ;;
4997esac
4998fi
4999if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5001printf "%s\n" "yes" >&6; }
5002  SET_MAKE=
5003else
5004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005printf "%s\n" "no" >&6; }
5006  SET_MAKE="MAKE=${MAKE-make}"
5007fi
5008
5009rm -rf .tst 2>/dev/null
5010mkdir .tst 2>/dev/null
5011if test -d .tst; then
5012  am__leading_dot=.
5013else
5014  am__leading_dot=_
5015fi
5016rmdir .tst 2>/dev/null
5017
5018DEPDIR="${am__leading_dot}deps"
5019
5020ac_config_commands="$ac_config_commands depfiles"
5021
5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5023printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5024cat > confinc.mk << 'END'
5025am__doit:
5026	@echo this is the am__doit target >confinc.out
5027.PHONY: am__doit
5028END
5029am__include="#"
5030am__quote=
5031# BSD make does it like this.
5032echo '.include "confinc.mk" # ignored' > confmf.BSD
5033# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5034echo 'include confinc.mk # ignored' > confmf.GNU
5035_am_result=no
5036for s in GNU BSD; do
5037  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5038   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }
5042  case $?:`cat confinc.out 2>/dev/null` in #(
5043  '0:this is the am__doit target') :
5044    case $s in #(
5045  BSD) :
5046    am__include='.include' am__quote='"' ;; #(
5047  *) :
5048    am__include='include' am__quote='' ;;
5049esac ;; #(
5050  *) :
5051     ;;
5052esac
5053  if test "$am__include" != "#"; then
5054    _am_result="yes ($s style)"
5055    break
5056  fi
5057done
5058rm -f confinc.* confmf.*
5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5060printf "%s\n" "${_am_result}" >&6; }
5061
5062# Check whether --enable-dependency-tracking was given.
5063if test ${enable_dependency_tracking+y}
5064then :
5065  enableval=$enable_dependency_tracking;
5066fi
5067
5068if test "x$enable_dependency_tracking" != xno; then
5069  am_depcomp="$ac_aux_dir/depcomp"
5070  AMDEPBACKSLASH='\'
5071  am__nodep='_no'
5072fi
5073 if test "x$enable_dependency_tracking" != xno; then
5074  AMDEP_TRUE=
5075  AMDEP_FALSE='#'
5076else
5077  AMDEP_TRUE='#'
5078  AMDEP_FALSE=
5079fi
5080
5081
5082AM_DEFAULT_VERBOSITY=1
5083# Check whether --enable-silent-rules was given.
5084if test ${enable_silent_rules+y}
5085then :
5086  enableval=$enable_silent_rules;
5087fi
5088
5089am_make=${MAKE-make}
5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5091printf %s "checking whether $am_make supports nested variables... " >&6; }
5092if test ${am_cv_make_support_nested_variables+y}
5093then :
5094  printf %s "(cached) " >&6
5095else case e in #(
5096  e) if printf "%s\n" 'TRUE=$(BAR$(V))
5097BAR0=false
5098BAR1=true
5099V=1
5100am__doit:
5101	@$(TRUE)
5102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5103  am_cv_make_support_nested_variables=yes
5104else
5105  am_cv_make_support_nested_variables=no
5106fi ;;
5107esac
5108fi
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5110printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5111AM_BACKSLASH='\'
5112
5113am__rm_f_notfound=
5114if (rm -f && rm -fr && rm -rf) 2>/dev/null
5115then :
5116
5117else case e in #(
5118  e) am__rm_f_notfound='""' ;;
5119esac
5120fi
5121
5122
5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5124printf %s "checking xargs -n works... " >&6; }
5125if test ${am_cv_xargs_n_works+y}
5126then :
5127  printf %s "(cached) " >&6
5128else case e in #(
5129  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
51303"
5131then :
5132  am_cv_xargs_n_works=yes
5133else case e in #(
5134  e) am_cv_xargs_n_works=no ;;
5135esac
5136fi ;;
5137esac
5138fi
5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5140printf "%s\n" "$am_cv_xargs_n_works" >&6; }
5141if test "$am_cv_xargs_n_works" = yes
5142then :
5143  am__xargs_n='xargs -n'
5144else case e in #(
5145  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5146 ;;
5147esac
5148fi
5149
5150if test "`cd $srcdir && pwd`" != "`pwd`"; then
5151  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5152  # is not polluted with repeated "-I."
5153  am__isrc=' -I$(srcdir)'
5154  # test to see if srcdir already configured
5155  if test -f $srcdir/config.status; then
5156    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5157  fi
5158fi
5159
5160# test whether we have cygpath
5161if test -z "$CYGPATH_W"; then
5162  if (cygpath --version) >/dev/null 2>/dev/null; then
5163    CYGPATH_W='cygpath -w'
5164  else
5165    CYGPATH_W=echo
5166  fi
5167fi
5168
5169
5170# Define the identity of the package.
5171 PACKAGE='libX11'
5172 VERSION='1.8.12'
5173
5174
5175printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5176
5177
5178printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5179
5180# Some tools Automake needs.
5181
5182ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5183
5184
5185AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5186
5187
5188AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5189
5190
5191AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5192
5193
5194MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5195
5196# For better backward compatibility.  To be removed once Automake 1.9.x
5197# dies out for good.  For more background, see:
5198# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5199# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5200mkdir_p='$(MKDIR_P)'
5201
5202# We need awk for the "check" target (and possibly the TAP driver).  The
5203# system "awk" is bad on some platforms.
5204# Always define AMTAR for backward compatibility.  Yes, it's still used
5205# in the wild :-(  We should find a proper way to deprecate it ...
5206AMTAR='$${TAR-tar}'
5207
5208
5209# We'll loop over all known methods to create a tar archive until one works.
5210_am_tools='gnutar  pax cpio none'
5211
5212am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5213
5214
5215
5216
5217
5218depcc="$CC"   am_compiler_list=
5219
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5221printf %s "checking dependency style of $depcc... " >&6; }
5222if test ${am_cv_CC_dependencies_compiler_type+y}
5223then :
5224  printf %s "(cached) " >&6
5225else case e in #(
5226  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5227  # We make a subdir and do the tests there.  Otherwise we can end up
5228  # making bogus files that we don't know about and never remove.  For
5229  # instance it was reported that on HP-UX the gcc test will end up
5230  # making a dummy file named 'D' -- because '-MD' means "put the output
5231  # in D".
5232  rm -rf conftest.dir
5233  mkdir conftest.dir
5234  # Copy depcomp to subdir because otherwise we won't find it if we're
5235  # using a relative directory.
5236  cp "$am_depcomp" conftest.dir
5237  cd conftest.dir
5238  # We will build objects and dependencies in a subdirectory because
5239  # it helps to detect inapplicable dependency modes.  For instance
5240  # both Tru64's cc and ICC support -MD to output dependencies as a
5241  # side effect of compilation, but ICC will put the dependencies in
5242  # the current directory while Tru64 will put them in the object
5243  # directory.
5244  mkdir sub
5245
5246  am_cv_CC_dependencies_compiler_type=none
5247  if test "$am_compiler_list" = ""; then
5248     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249  fi
5250  am__universal=false
5251  case " $depcc " in #(
5252     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253     esac
5254
5255  for depmode in $am_compiler_list; do
5256    # Setup a source with many dependencies, because some compilers
5257    # like to wrap large dependency lists on column 80 (with \), and
5258    # we should not choose a depcomp mode which is confused by this.
5259    #
5260    # We need to recreate these files for each test, as the compiler may
5261    # overwrite some of them when testing with obscure command lines.
5262    # This happens at least with the AIX C compiler.
5263    : > sub/conftest.c
5264    for i in 1 2 3 4 5 6; do
5265      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5266      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5267      # Solaris 10 /bin/sh.
5268      echo '/* dummy */' > sub/conftst$i.h
5269    done
5270    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
5272    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5273    # mode.  It turns out that the SunPro C++ compiler does not properly
5274    # handle '-M -o', and we need to detect this.  Also, some Intel
5275    # versions had trouble with output in subdirs.
5276    am__obj=sub/conftest.${OBJEXT-o}
5277    am__minus_obj="-o $am__obj"
5278    case $depmode in
5279    gcc)
5280      # This depmode causes a compiler race in universal mode.
5281      test "$am__universal" = false || continue
5282      ;;
5283    nosideeffect)
5284      # After this tag, mechanisms are not by side-effect, so they'll
5285      # only be used when explicitly requested.
5286      if test "x$enable_dependency_tracking" = xyes; then
5287	continue
5288      else
5289	break
5290      fi
5291      ;;
5292    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5293      # This compiler won't grok '-c -o', but also, the minuso test has
5294      # not run yet.  These depmodes are late enough in the game, and
5295      # so weak that their functioning should not be impacted.
5296      am__obj=conftest.${OBJEXT-o}
5297      am__minus_obj=
5298      ;;
5299    none) break ;;
5300    esac
5301    if depmode=$depmode \
5302       source=sub/conftest.c object=$am__obj \
5303       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5304       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5305         >/dev/null 2>conftest.err &&
5306       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5307       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5308       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5309       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5310      # icc doesn't choke on unknown options, it will just issue warnings
5311      # or remarks (even with -Werror).  So we grep stderr for any message
5312      # that says an option was ignored or not supported.
5313      # When given -MP, icc 7.0 and 7.1 complain thus:
5314      #   icc: Command line warning: ignoring option '-M'; no argument required
5315      # The diagnosis changed in icc 8.0:
5316      #   icc: Command line remark: option '-MP' not supported
5317      if (grep 'ignoring option' conftest.err ||
5318          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5319        am_cv_CC_dependencies_compiler_type=$depmode
5320        break
5321      fi
5322    fi
5323  done
5324
5325  cd ..
5326  rm -rf conftest.dir
5327else
5328  am_cv_CC_dependencies_compiler_type=none
5329fi
5330 ;;
5331esac
5332fi
5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5334printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5336
5337 if
5338  test "x$enable_dependency_tracking" != xno \
5339  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5340  am__fastdepCC_TRUE=
5341  am__fastdepCC_FALSE='#'
5342else
5343  am__fastdepCC_TRUE='#'
5344  am__fastdepCC_FALSE=
5345fi
5346
5347
5348# Variables for tags utilities; see am/tags.am
5349if test -z "$CTAGS"; then
5350  CTAGS=ctags
5351fi
5352
5353if test -z "$ETAGS"; then
5354  ETAGS=etags
5355fi
5356
5357if test -z "$CSCOPE"; then
5358  CSCOPE=cscope
5359fi
5360
5361
5362
5363
5364
5365
5366
5367
5368# Initialize libtool
5369case `pwd` in
5370  *\ * | *\	*)
5371    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5372printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5373esac
5374
5375
5376
5377macro_version='2.5.4'
5378macro_revision='2.5.4'
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393ltmain=$ac_aux_dir/ltmain.sh
5394
5395# Backslashify metacharacters that are still active within
5396# double-quoted strings.
5397sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5398
5399# Same as above, but do not quote variable references.
5400double_quote_subst='s/\(["`\\]\)/\\\1/g'
5401
5402# Sed substitution to delay expansion of an escaped shell variable in a
5403# double_quote_subst'ed string.
5404delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5405
5406# Sed substitution to delay expansion of an escaped single quote.
5407delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5408
5409# Sed substitution to avoid accidental globbing in evaled expressions
5410no_glob_subst='s/\*/\\\*/g'
5411
5412ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5415
5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5417printf %s "checking how to print strings... " >&6; }
5418# Test print first, because it will be a builtin if present.
5419if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5420   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5421  ECHO='print -r --'
5422elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5423  ECHO='printf %s\n'
5424else
5425  # Use this function as a fallback that always works.
5426  func_fallback_echo ()
5427  {
5428    eval 'cat <<_LTECHO_EOF
5429$1
5430_LTECHO_EOF'
5431  }
5432  ECHO='func_fallback_echo'
5433fi
5434
5435# func_echo_all arg...
5436# Invoke $ECHO with all args, space-separated.
5437func_echo_all ()
5438{
5439    $ECHO ""
5440}
5441
5442case $ECHO in
5443  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5444printf "%s\n" "printf" >&6; } ;;
5445  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5446printf "%s\n" "print -r" >&6; } ;;
5447  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5448printf "%s\n" "cat" >&6; } ;;
5449esac
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5465printf %s "checking for a sed that does not truncate output... " >&6; }
5466if test ${ac_cv_path_SED+y}
5467then :
5468  printf %s "(cached) " >&6
5469else case e in #(
5470  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5471     for ac_i in 1 2 3 4 5 6 7; do
5472       ac_script="$ac_script$as_nl$ac_script"
5473     done
5474     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5475     { ac_script=; unset ac_script;}
5476     if test -z "$SED"; then
5477  ac_path_SED_found=false
5478  # Loop through the user's path and test for each of PROGNAME-LIST
5479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  case $as_dir in #(((
5484    '') as_dir=./ ;;
5485    */) ;;
5486    *) as_dir=$as_dir/ ;;
5487  esac
5488    for ac_prog in sed gsed
5489   do
5490    for ac_exec_ext in '' $ac_executable_extensions; do
5491      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5492      as_fn_executable_p "$ac_path_SED" || continue
5493# Check for GNU ac_path_SED and select it if it is found.
5494  # Check for GNU $ac_path_SED
5495case `"$ac_path_SED" --version 2>&1` in #(
5496*GNU*)
5497  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5498#(
5499*)
5500  ac_count=0
5501  printf %s 0123456789 >"conftest.in"
5502  while :
5503  do
5504    cat "conftest.in" "conftest.in" >"conftest.tmp"
5505    mv "conftest.tmp" "conftest.in"
5506    cp "conftest.in" "conftest.nl"
5507    printf "%s\n" '' >> "conftest.nl"
5508    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510    as_fn_arith $ac_count + 1 && ac_count=$as_val
5511    if test $ac_count -gt ${ac_path_SED_max-0}; then
5512      # Best one so far, save it but keep looking for a better one
5513      ac_cv_path_SED="$ac_path_SED"
5514      ac_path_SED_max=$ac_count
5515    fi
5516    # 10*(2^10) chars as input seems more than enough
5517    test $ac_count -gt 10 && break
5518  done
5519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5520esac
5521
5522      $ac_path_SED_found && break 3
5523    done
5524  done
5525  done
5526IFS=$as_save_IFS
5527  if test -z "$ac_cv_path_SED"; then
5528    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5529  fi
5530else
5531  ac_cv_path_SED=$SED
5532fi
5533 ;;
5534esac
5535fi
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5537printf "%s\n" "$ac_cv_path_SED" >&6; }
5538 SED="$ac_cv_path_SED"
5539  rm -f conftest.sed
5540
5541test -z "$SED" && SED=sed
5542Xsed="$SED -e 1s/^X//"
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5555printf %s "checking for grep that handles long lines and -e... " >&6; }
5556if test ${ac_cv_path_GREP+y}
5557then :
5558  printf %s "(cached) " >&6
5559else case e in #(
5560  e) if test -z "$GREP"; then
5561  ac_path_GREP_found=false
5562  # Loop through the user's path and test for each of PROGNAME-LIST
5563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565do
5566  IFS=$as_save_IFS
5567  case $as_dir in #(((
5568    '') as_dir=./ ;;
5569    */) ;;
5570    *) as_dir=$as_dir/ ;;
5571  esac
5572    for ac_prog in grep ggrep
5573   do
5574    for ac_exec_ext in '' $ac_executable_extensions; do
5575      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5576      as_fn_executable_p "$ac_path_GREP" || continue
5577# Check for GNU ac_path_GREP and select it if it is found.
5578  # Check for GNU $ac_path_GREP
5579case `"$ac_path_GREP" --version 2>&1` in #(
5580*GNU*)
5581  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5582#(
5583*)
5584  ac_count=0
5585  printf %s 0123456789 >"conftest.in"
5586  while :
5587  do
5588    cat "conftest.in" "conftest.in" >"conftest.tmp"
5589    mv "conftest.tmp" "conftest.in"
5590    cp "conftest.in" "conftest.nl"
5591    printf "%s\n" 'GREP' >> "conftest.nl"
5592    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5593    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5594    as_fn_arith $ac_count + 1 && ac_count=$as_val
5595    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5596      # Best one so far, save it but keep looking for a better one
5597      ac_cv_path_GREP="$ac_path_GREP"
5598      ac_path_GREP_max=$ac_count
5599    fi
5600    # 10*(2^10) chars as input seems more than enough
5601    test $ac_count -gt 10 && break
5602  done
5603  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5604esac
5605
5606      $ac_path_GREP_found && break 3
5607    done
5608  done
5609  done
5610IFS=$as_save_IFS
5611  if test -z "$ac_cv_path_GREP"; then
5612    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5613  fi
5614else
5615  ac_cv_path_GREP=$GREP
5616fi
5617 ;;
5618esac
5619fi
5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5621printf "%s\n" "$ac_cv_path_GREP" >&6; }
5622 GREP="$ac_cv_path_GREP"
5623
5624
5625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5626printf %s "checking for egrep... " >&6; }
5627if test ${ac_cv_path_EGREP+y}
5628then :
5629  printf %s "(cached) " >&6
5630else case e in #(
5631  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5632   then ac_cv_path_EGREP="$GREP -E"
5633   else
5634     if test -z "$EGREP"; then
5635  ac_path_EGREP_found=false
5636  # Loop through the user's path and test for each of PROGNAME-LIST
5637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5639do
5640  IFS=$as_save_IFS
5641  case $as_dir in #(((
5642    '') as_dir=./ ;;
5643    */) ;;
5644    *) as_dir=$as_dir/ ;;
5645  esac
5646    for ac_prog in egrep
5647   do
5648    for ac_exec_ext in '' $ac_executable_extensions; do
5649      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5650      as_fn_executable_p "$ac_path_EGREP" || continue
5651# Check for GNU ac_path_EGREP and select it if it is found.
5652  # Check for GNU $ac_path_EGREP
5653case `"$ac_path_EGREP" --version 2>&1` in #(
5654*GNU*)
5655  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5656#(
5657*)
5658  ac_count=0
5659  printf %s 0123456789 >"conftest.in"
5660  while :
5661  do
5662    cat "conftest.in" "conftest.in" >"conftest.tmp"
5663    mv "conftest.tmp" "conftest.in"
5664    cp "conftest.in" "conftest.nl"
5665    printf "%s\n" 'EGREP' >> "conftest.nl"
5666    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668    as_fn_arith $ac_count + 1 && ac_count=$as_val
5669    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5670      # Best one so far, save it but keep looking for a better one
5671      ac_cv_path_EGREP="$ac_path_EGREP"
5672      ac_path_EGREP_max=$ac_count
5673    fi
5674    # 10*(2^10) chars as input seems more than enough
5675    test $ac_count -gt 10 && break
5676  done
5677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678esac
5679
5680      $ac_path_EGREP_found && break 3
5681    done
5682  done
5683  done
5684IFS=$as_save_IFS
5685  if test -z "$ac_cv_path_EGREP"; then
5686    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687  fi
5688else
5689  ac_cv_path_EGREP=$EGREP
5690fi
5691
5692   fi ;;
5693esac
5694fi
5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5696printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5697 EGREP="$ac_cv_path_EGREP"
5698
5699         EGREP_TRADITIONAL=$EGREP
5700 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5701
5702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5703printf %s "checking for fgrep... " >&6; }
5704if test ${ac_cv_path_FGREP+y}
5705then :
5706  printf %s "(cached) " >&6
5707else case e in #(
5708  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5709   then ac_cv_path_FGREP="$GREP -F"
5710   else
5711     if test -z "$FGREP"; then
5712  ac_path_FGREP_found=false
5713  # Loop through the user's path and test for each of PROGNAME-LIST
5714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5716do
5717  IFS=$as_save_IFS
5718  case $as_dir in #(((
5719    '') as_dir=./ ;;
5720    */) ;;
5721    *) as_dir=$as_dir/ ;;
5722  esac
5723    for ac_prog in fgrep
5724   do
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5727      as_fn_executable_p "$ac_path_FGREP" || continue
5728# Check for GNU ac_path_FGREP and select it if it is found.
5729  # Check for GNU $ac_path_FGREP
5730case `"$ac_path_FGREP" --version 2>&1` in #(
5731*GNU*)
5732  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5733#(
5734*)
5735  ac_count=0
5736  printf %s 0123456789 >"conftest.in"
5737  while :
5738  do
5739    cat "conftest.in" "conftest.in" >"conftest.tmp"
5740    mv "conftest.tmp" "conftest.in"
5741    cp "conftest.in" "conftest.nl"
5742    printf "%s\n" 'FGREP' >> "conftest.nl"
5743    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5744    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5745    as_fn_arith $ac_count + 1 && ac_count=$as_val
5746    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5747      # Best one so far, save it but keep looking for a better one
5748      ac_cv_path_FGREP="$ac_path_FGREP"
5749      ac_path_FGREP_max=$ac_count
5750    fi
5751    # 10*(2^10) chars as input seems more than enough
5752    test $ac_count -gt 10 && break
5753  done
5754  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5755esac
5756
5757      $ac_path_FGREP_found && break 3
5758    done
5759  done
5760  done
5761IFS=$as_save_IFS
5762  if test -z "$ac_cv_path_FGREP"; then
5763    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5764  fi
5765else
5766  ac_cv_path_FGREP=$FGREP
5767fi
5768
5769   fi ;;
5770esac
5771fi
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5773printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5774 FGREP="$ac_cv_path_FGREP"
5775
5776
5777test -z "$GREP" && GREP=grep
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797# Check whether --with-gnu-ld was given.
5798if test ${with_gnu_ld+y}
5799then :
5800  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5801else case e in #(
5802  e) with_gnu_ld=no ;;
5803esac
5804fi
5805
5806ac_prog=ld
5807if test yes = "$GCC"; then
5808  # Check if gcc -print-prog-name=ld gives a path.
5809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5810printf %s "checking for ld used by $CC... " >&6; }
5811  case $host in
5812  *-*-mingw* | *-*-windows*)
5813    # gcc leaves a trailing carriage return, which upsets mingw
5814    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5815  *)
5816    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5817  esac
5818  case $ac_prog in
5819    # Accept absolute paths.
5820    [\\/]* | ?:[\\/]*)
5821      re_direlt='/[^/][^/]*/\.\./'
5822      # Canonicalize the pathname of ld
5823      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5824      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5825	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5826      done
5827      test -z "$LD" && LD=$ac_prog
5828      ;;
5829  "")
5830    # If it fails, then pretend we aren't using GCC.
5831    ac_prog=ld
5832    ;;
5833  *)
5834    # If it is relative, then search for the first ld in PATH.
5835    with_gnu_ld=unknown
5836    ;;
5837  esac
5838elif test yes = "$with_gnu_ld"; then
5839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5840printf %s "checking for GNU ld... " >&6; }
5841else
5842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5843printf %s "checking for non-GNU ld... " >&6; }
5844fi
5845if test ${lt_cv_path_LD+y}
5846then :
5847  printf %s "(cached) " >&6
5848else case e in #(
5849  e) if test -z "$LD"; then
5850  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5851  for ac_dir in $PATH; do
5852    IFS=$lt_save_ifs
5853    test -z "$ac_dir" && ac_dir=.
5854    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5855      lt_cv_path_LD=$ac_dir/$ac_prog
5856      # Check to see if the program is GNU ld.  I'd rather use --version,
5857      # but apparently some variants of GNU ld only accept -v.
5858      # Break only if it was the GNU/non-GNU ld that we prefer.
5859      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5860      *GNU* | *'with BFD'*)
5861	test no != "$with_gnu_ld" && break
5862	;;
5863      *)
5864	test yes != "$with_gnu_ld" && break
5865	;;
5866      esac
5867    fi
5868  done
5869  IFS=$lt_save_ifs
5870else
5871  lt_cv_path_LD=$LD # Let the user override the test with a path.
5872fi ;;
5873esac
5874fi
5875
5876LD=$lt_cv_path_LD
5877if test -n "$LD"; then
5878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5879printf "%s\n" "$LD" >&6; }
5880else
5881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882printf "%s\n" "no" >&6; }
5883fi
5884test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5886printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5887if test ${lt_cv_prog_gnu_ld+y}
5888then :
5889  printf %s "(cached) " >&6
5890else case e in #(
5891  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5892case `$LD -v 2>&1 </dev/null` in
5893*GNU* | *'with BFD'*)
5894  lt_cv_prog_gnu_ld=yes
5895  ;;
5896*)
5897  lt_cv_prog_gnu_ld=no
5898  ;;
5899esac ;;
5900esac
5901fi
5902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5903printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5904with_gnu_ld=$lt_cv_prog_gnu_ld
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5915printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5916if test ${lt_cv_path_NM+y}
5917then :
5918  printf %s "(cached) " >&6
5919else case e in #(
5920  e) if test -n "$NM"; then
5921  # Let the user override the test.
5922  lt_cv_path_NM=$NM
5923else
5924  lt_nm_to_check=${ac_tool_prefix}nm
5925  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5926    lt_nm_to_check="$lt_nm_to_check nm"
5927  fi
5928  for lt_tmp_nm in $lt_nm_to_check; do
5929    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5930    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5931      IFS=$lt_save_ifs
5932      test -z "$ac_dir" && ac_dir=.
5933      tmp_nm=$ac_dir/$lt_tmp_nm
5934      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5935	# Check to see if the nm accepts a BSD-compat flag.
5936	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5937	#   nm: unknown option "B" ignored
5938	# Tru64's nm complains that /dev/null is an invalid object file
5939	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5940	case $build_os in
5941	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5942	*) lt_bad_file=/dev/null ;;
5943	esac
5944	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5945	*$lt_bad_file* | *'Invalid file or object type'*)
5946	  lt_cv_path_NM="$tmp_nm -B"
5947	  break 2
5948	  ;;
5949	*)
5950	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5951	  */dev/null*)
5952	    lt_cv_path_NM="$tmp_nm -p"
5953	    break 2
5954	    ;;
5955	  *)
5956	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5957	    continue # so that we can try to find one that supports BSD flags
5958	    ;;
5959	  esac
5960	  ;;
5961	esac
5962      fi
5963    done
5964    IFS=$lt_save_ifs
5965  done
5966  : ${lt_cv_path_NM=no}
5967fi ;;
5968esac
5969fi
5970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5971printf "%s\n" "$lt_cv_path_NM" >&6; }
5972if test no != "$lt_cv_path_NM"; then
5973  NM=$lt_cv_path_NM
5974else
5975  # Didn't find any BSD compatible name lister, look for dumpbin.
5976  if test -n "$DUMPBIN"; then :
5977    # Let the user override the test.
5978  else
5979    if test -n "$ac_tool_prefix"; then
5980  for ac_prog in dumpbin "link -dump"
5981  do
5982    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985printf %s "checking for $ac_word... " >&6; }
5986if test ${ac_cv_prog_DUMPBIN+y}
5987then :
5988  printf %s "(cached) " >&6
5989else case e in #(
5990  e) if test -n "$DUMPBIN"; then
5991  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996  IFS=$as_save_IFS
5997  case $as_dir in #(((
5998    '') as_dir=./ ;;
5999    */) ;;
6000    *) as_dir=$as_dir/ ;;
6001  esac
6002    for ac_exec_ext in '' $ac_executable_extensions; do
6003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6004    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6006    break 2
6007  fi
6008done
6009  done
6010IFS=$as_save_IFS
6011
6012fi ;;
6013esac
6014fi
6015DUMPBIN=$ac_cv_prog_DUMPBIN
6016if test -n "$DUMPBIN"; then
6017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6018printf "%s\n" "$DUMPBIN" >&6; }
6019else
6020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021printf "%s\n" "no" >&6; }
6022fi
6023
6024
6025    test -n "$DUMPBIN" && break
6026  done
6027fi
6028if test -z "$DUMPBIN"; then
6029  ac_ct_DUMPBIN=$DUMPBIN
6030  for ac_prog in dumpbin "link -dump"
6031do
6032  # Extract the first word of "$ac_prog", so it can be a program name with args.
6033set dummy $ac_prog; ac_word=$2
6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035printf %s "checking for $ac_word... " >&6; }
6036if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6037then :
6038  printf %s "(cached) " >&6
6039else case e in #(
6040  e) if test -n "$ac_ct_DUMPBIN"; then
6041  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  case $as_dir in #(((
6048    '') as_dir=./ ;;
6049    */) ;;
6050    *) as_dir=$as_dir/ ;;
6051  esac
6052    for ac_exec_ext in '' $ac_executable_extensions; do
6053  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6054    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6055    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059  done
6060IFS=$as_save_IFS
6061
6062fi ;;
6063esac
6064fi
6065ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6066if test -n "$ac_ct_DUMPBIN"; then
6067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6068printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6069else
6070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071printf "%s\n" "no" >&6; }
6072fi
6073
6074
6075  test -n "$ac_ct_DUMPBIN" && break
6076done
6077
6078  if test "x$ac_ct_DUMPBIN" = x; then
6079    DUMPBIN=":"
6080  else
6081    case $cross_compiling:$ac_tool_warned in
6082yes:)
6083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087    DUMPBIN=$ac_ct_DUMPBIN
6088  fi
6089fi
6090
6091    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6092    *COFF*)
6093      DUMPBIN="$DUMPBIN -symbols -headers"
6094      ;;
6095    *)
6096      DUMPBIN=:
6097      ;;
6098    esac
6099  fi
6100
6101  if test : != "$DUMPBIN"; then
6102    NM=$DUMPBIN
6103  fi
6104fi
6105test -z "$NM" && NM=nm
6106
6107
6108
6109
6110
6111
6112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6113printf %s "checking the name lister ($NM) interface... " >&6; }
6114if test ${lt_cv_nm_interface+y}
6115then :
6116  printf %s "(cached) " >&6
6117else case e in #(
6118  e) lt_cv_nm_interface="BSD nm"
6119  echo "int some_variable = 0;" > conftest.$ac_ext
6120  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6121  (eval "$ac_compile" 2>conftest.err)
6122  cat conftest.err >&5
6123  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6124  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6125  cat conftest.err >&5
6126  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6127  cat conftest.out >&5
6128  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6129    lt_cv_nm_interface="MS dumpbin"
6130  fi
6131  rm -f conftest* ;;
6132esac
6133fi
6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6135printf "%s\n" "$lt_cv_nm_interface" >&6; }
6136
6137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6138printf %s "checking whether ln -s works... " >&6; }
6139LN_S=$as_ln_s
6140if test "$LN_S" = "ln -s"; then
6141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142printf "%s\n" "yes" >&6; }
6143else
6144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6145printf "%s\n" "no, using $LN_S" >&6; }
6146fi
6147
6148# find the maximum length of command line arguments
6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6150printf %s "checking the maximum length of command line arguments... " >&6; }
6151if test ${lt_cv_sys_max_cmd_len+y}
6152then :
6153  printf %s "(cached) " >&6
6154else case e in #(
6155  e)   i=0
6156  teststring=ABCD
6157
6158  case $build_os in
6159  msdosdjgpp*)
6160    # On DJGPP, this test can blow up pretty badly due to problems in libc
6161    # (any single argument exceeding 2000 bytes causes a buffer overrun
6162    # during glob expansion).  Even if it were fixed, the result of this
6163    # check would be larger than it should be.
6164    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6165    ;;
6166
6167  gnu* | ironclad*)
6168    # Under GNU Hurd and Ironclad, this test is not required because there
6169    # is no limit to the length of command line arguments.
6170    # Libtool will interpret -1 as no limit whatsoever
6171    lt_cv_sys_max_cmd_len=-1;
6172    ;;
6173
6174  cygwin* | mingw* | windows* | cegcc*)
6175    # On Win9x/ME, this test blows up -- it succeeds, but takes
6176    # about 5 minutes as the teststring grows exponentially.
6177    # Worse, since 9x/ME are not pre-emptively multitasking,
6178    # you end up with a "frozen" computer, even though with patience
6179    # the test eventually succeeds (with a max line length of 256k).
6180    # Instead, let's just punt: use the minimum linelength reported by
6181    # all of the supported platforms: 8192 (on NT/2K/XP).
6182    lt_cv_sys_max_cmd_len=8192;
6183    ;;
6184
6185  mint*)
6186    # On MiNT this can take a long time and run out of memory.
6187    lt_cv_sys_max_cmd_len=8192;
6188    ;;
6189
6190  amigaos*)
6191    # On AmigaOS with pdksh, this test takes hours, literally.
6192    # So we just punt and use a minimum line length of 8192.
6193    lt_cv_sys_max_cmd_len=8192;
6194    ;;
6195
6196  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6197    # This has been around since 386BSD, at least.  Likely further.
6198    if test -x /sbin/sysctl; then
6199      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6200    elif test -x /usr/sbin/sysctl; then
6201      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6202    else
6203      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6204    fi
6205    # And add a safety zone
6206    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6207    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6208    ;;
6209
6210  interix*)
6211    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6212    lt_cv_sys_max_cmd_len=196608
6213    ;;
6214
6215  os2*)
6216    # The test takes a long time on OS/2.
6217    lt_cv_sys_max_cmd_len=8192
6218    ;;
6219
6220  osf*)
6221    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6222    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6223    # nice to cause kernel panics so lets avoid the loop below.
6224    # First set a reasonable default.
6225    lt_cv_sys_max_cmd_len=16384
6226    #
6227    if test -x /sbin/sysconfig; then
6228      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6229        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6230      esac
6231    fi
6232    ;;
6233  sco3.2v5*)
6234    lt_cv_sys_max_cmd_len=102400
6235    ;;
6236  sysv5* | sco5v6* | sysv4.2uw2*)
6237    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6238    if test -n "$kargmax"; then
6239      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6240    else
6241      lt_cv_sys_max_cmd_len=32768
6242    fi
6243    ;;
6244  *)
6245    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6246    if test -n "$lt_cv_sys_max_cmd_len" && \
6247       test undefined != "$lt_cv_sys_max_cmd_len"; then
6248      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6249      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6250    else
6251      # Make teststring a little bigger before we do anything with it.
6252      # a 1K string should be a reasonable start.
6253      for i in 1 2 3 4 5 6 7 8; do
6254        teststring=$teststring$teststring
6255      done
6256      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6257      # If test is not a shell built-in, we'll probably end up computing a
6258      # maximum length that is only half of the actual maximum length, but
6259      # we can't tell.
6260      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6261	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6262	      test 17 != "$i" # 1/2 MB should be enough
6263      do
6264        i=`expr $i + 1`
6265        teststring=$teststring$teststring
6266      done
6267      # Only check the string length outside the loop.
6268      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6269      teststring=
6270      # Add a significant safety factor because C++ compilers can tack on
6271      # massive amounts of additional arguments before passing them to the
6272      # linker.  It appears as though 1/2 is a usable value.
6273      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6274    fi
6275    ;;
6276  esac
6277 ;;
6278esac
6279fi
6280
6281if test -n "$lt_cv_sys_max_cmd_len"; then
6282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6284else
6285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286printf "%s\n" "none" >&6; }
6287fi
6288max_cmd_len=$lt_cv_sys_max_cmd_len
6289
6290
6291
6292
6293
6294
6295: ${CP="cp -f"}
6296: ${MV="mv -f"}
6297: ${RM="rm -f"}
6298
6299if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6300  lt_unset=unset
6301else
6302  lt_unset=false
6303fi
6304
6305
6306
6307
6308
6309# test EBCDIC or ASCII
6310case `echo X|tr X '\101'` in
6311 A) # ASCII based system
6312    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6313  lt_SP2NL='tr \040 \012'
6314  lt_NL2SP='tr \015\012 \040\040'
6315  ;;
6316 *) # EBCDIC based system
6317  lt_SP2NL='tr \100 \n'
6318  lt_NL2SP='tr \r\n \100\100'
6319  ;;
6320esac
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6331printf %s "checking how to convert $build file names to $host format... " >&6; }
6332if test ${lt_cv_to_host_file_cmd+y}
6333then :
6334  printf %s "(cached) " >&6
6335else case e in #(
6336  e) case $host in
6337  *-*-mingw* )
6338    case $build in
6339      *-*-mingw* | *-*-windows* ) # actually msys
6340        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6341        ;;
6342      *-*-cygwin* )
6343        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6344        ;;
6345      * ) # otherwise, assume *nix
6346        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6347        ;;
6348    esac
6349    ;;
6350  *-*-cygwin* )
6351    case $build in
6352      *-*-mingw* | *-*-windows* ) # actually msys
6353        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6354        ;;
6355      *-*-cygwin* )
6356        lt_cv_to_host_file_cmd=func_convert_file_noop
6357        ;;
6358      * ) # otherwise, assume *nix
6359        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6360        ;;
6361    esac
6362    ;;
6363  * ) # unhandled hosts (and "normal" native builds)
6364    lt_cv_to_host_file_cmd=func_convert_file_noop
6365    ;;
6366esac
6367 ;;
6368esac
6369fi
6370
6371to_host_file_cmd=$lt_cv_to_host_file_cmd
6372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6373printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6374
6375
6376
6377
6378
6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6380printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6381if test ${lt_cv_to_tool_file_cmd+y}
6382then :
6383  printf %s "(cached) " >&6
6384else case e in #(
6385  e) #assume ordinary cross tools, or native build.
6386lt_cv_to_tool_file_cmd=func_convert_file_noop
6387case $host in
6388  *-*-mingw* | *-*-windows* )
6389    case $build in
6390      *-*-mingw* | *-*-windows* ) # actually msys
6391        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6392        ;;
6393    esac
6394    ;;
6395esac
6396 ;;
6397esac
6398fi
6399
6400to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6402printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6403
6404
6405
6406
6407
6408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6409printf %s "checking for $LD option to reload object files... " >&6; }
6410if test ${lt_cv_ld_reload_flag+y}
6411then :
6412  printf %s "(cached) " >&6
6413else case e in #(
6414  e) lt_cv_ld_reload_flag='-r' ;;
6415esac
6416fi
6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6418printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6419reload_flag=$lt_cv_ld_reload_flag
6420case $reload_flag in
6421"" | " "*) ;;
6422*) reload_flag=" $reload_flag" ;;
6423esac
6424reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425case $host_os in
6426  cygwin* | mingw* | windows* | pw32* | cegcc*)
6427    if test yes != "$GCC"; then
6428      reload_cmds=false
6429    fi
6430    ;;
6431  darwin*)
6432    if test yes = "$GCC"; then
6433      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6434    else
6435      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436    fi
6437    ;;
6438esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448# Extract the first word of "file", so it can be a program name with args.
6449set dummy file; ac_word=$2
6450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451printf %s "checking for $ac_word... " >&6; }
6452if test ${ac_cv_prog_FILECMD+y}
6453then :
6454  printf %s "(cached) " >&6
6455else case e in #(
6456  e) if test -n "$FILECMD"; then
6457  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  case $as_dir in #(((
6464    '') as_dir=./ ;;
6465    */) ;;
6466    *) as_dir=$as_dir/ ;;
6467  esac
6468    for ac_exec_ext in '' $ac_executable_extensions; do
6469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6470    ac_cv_prog_FILECMD="file"
6471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6472    break 2
6473  fi
6474done
6475  done
6476IFS=$as_save_IFS
6477
6478  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6479fi ;;
6480esac
6481fi
6482FILECMD=$ac_cv_prog_FILECMD
6483if test -n "$FILECMD"; then
6484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6485printf "%s\n" "$FILECMD" >&6; }
6486else
6487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488printf "%s\n" "no" >&6; }
6489fi
6490
6491
6492
6493
6494
6495
6496
6497
6498if test -n "$ac_tool_prefix"; then
6499  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6500set dummy ${ac_tool_prefix}objdump; ac_word=$2
6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502printf %s "checking for $ac_word... " >&6; }
6503if test ${ac_cv_prog_OBJDUMP+y}
6504then :
6505  printf %s "(cached) " >&6
6506else case e in #(
6507  e) if test -n "$OBJDUMP"; then
6508  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513  IFS=$as_save_IFS
6514  case $as_dir in #(((
6515    '') as_dir=./ ;;
6516    */) ;;
6517    *) as_dir=$as_dir/ ;;
6518  esac
6519    for ac_exec_ext in '' $ac_executable_extensions; do
6520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6521    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526  done
6527IFS=$as_save_IFS
6528
6529fi ;;
6530esac
6531fi
6532OBJDUMP=$ac_cv_prog_OBJDUMP
6533if test -n "$OBJDUMP"; then
6534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6535printf "%s\n" "$OBJDUMP" >&6; }
6536else
6537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538printf "%s\n" "no" >&6; }
6539fi
6540
6541
6542fi
6543if test -z "$ac_cv_prog_OBJDUMP"; then
6544  ac_ct_OBJDUMP=$OBJDUMP
6545  # Extract the first word of "objdump", so it can be a program name with args.
6546set dummy objdump; ac_word=$2
6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548printf %s "checking for $ac_word... " >&6; }
6549if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6550then :
6551  printf %s "(cached) " >&6
6552else case e in #(
6553  e) if test -n "$ac_ct_OBJDUMP"; then
6554  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  case $as_dir in #(((
6561    '') as_dir=./ ;;
6562    */) ;;
6563    *) as_dir=$as_dir/ ;;
6564  esac
6565    for ac_exec_ext in '' $ac_executable_extensions; do
6566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6567    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572  done
6573IFS=$as_save_IFS
6574
6575fi ;;
6576esac
6577fi
6578ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6579if test -n "$ac_ct_OBJDUMP"; then
6580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6581printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6582else
6583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584printf "%s\n" "no" >&6; }
6585fi
6586
6587  if test "x$ac_ct_OBJDUMP" = x; then
6588    OBJDUMP="false"
6589  else
6590    case $cross_compiling:$ac_tool_warned in
6591yes:)
6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594ac_tool_warned=yes ;;
6595esac
6596    OBJDUMP=$ac_ct_OBJDUMP
6597  fi
6598else
6599  OBJDUMP="$ac_cv_prog_OBJDUMP"
6600fi
6601
6602test -z "$OBJDUMP" && OBJDUMP=objdump
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6613printf %s "checking how to recognize dependent libraries... " >&6; }
6614if test ${lt_cv_deplibs_check_method+y}
6615then :
6616  printf %s "(cached) " >&6
6617else case e in #(
6618  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6619lt_cv_file_magic_test_file=
6620lt_cv_deplibs_check_method='unknown'
6621# Need to set the preceding variable on all platforms that support
6622# interlibrary dependencies.
6623# 'none' -- dependencies not supported.
6624# 'unknown' -- same as none, but documents that we really don't know.
6625# 'pass_all' -- all dependencies passed with no checks.
6626# 'file_magic [[regex]]' -- check by looking for files in library path
6627# that responds to the $file_magic_cmd with a given extended regex.
6628# If you have 'file' or equivalent on your system and you're not sure
6629# whether 'pass_all' will *always* work, you probably want this one.
6630
6631case $host_os in
6632aix[4-9]*)
6633  lt_cv_deplibs_check_method=pass_all
6634  ;;
6635
6636beos*)
6637  lt_cv_deplibs_check_method=pass_all
6638  ;;
6639
6640bsdi[45]*)
6641  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642  lt_cv_file_magic_cmd='$FILECMD -L'
6643  lt_cv_file_magic_test_file=/shlib/libc.so
6644  ;;
6645
6646cygwin*)
6647  # func_win32_libid is a shell function defined in ltmain.sh
6648  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649  lt_cv_file_magic_cmd='func_win32_libid'
6650  ;;
6651
6652mingw* | windows* | pw32*)
6653  # Base MSYS/MinGW do not provide the 'file' command needed by
6654  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655  # unless we find 'file', for example because we are cross-compiling.
6656  if ( file / ) >/dev/null 2>&1; then
6657    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6658    lt_cv_file_magic_cmd='func_win32_libid'
6659  else
6660    # Keep this pattern in sync with the one in func_win32_libid.
6661    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6662    lt_cv_file_magic_cmd='$OBJDUMP -f'
6663  fi
6664  ;;
6665
6666cegcc*)
6667  # use the weaker test based on 'objdump'. See mingw*.
6668  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669  lt_cv_file_magic_cmd='$OBJDUMP -f'
6670  ;;
6671
6672darwin* | rhapsody*)
6673  lt_cv_deplibs_check_method=pass_all
6674  ;;
6675
6676freebsd* | dragonfly* | midnightbsd*)
6677  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6678    case $host_cpu in
6679    i*86 )
6680      # Not sure whether the presence of OpenBSD here was a mistake.
6681      # Let's accept both of them until this is cleared up.
6682      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683      lt_cv_file_magic_cmd=$FILECMD
6684      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6685      ;;
6686    esac
6687  else
6688    lt_cv_deplibs_check_method=pass_all
6689  fi
6690  ;;
6691
6692haiku*)
6693  lt_cv_deplibs_check_method=pass_all
6694  ;;
6695
6696hpux10.20* | hpux11*)
6697  lt_cv_file_magic_cmd=$FILECMD
6698  case $host_cpu in
6699  ia64*)
6700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6701    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6702    ;;
6703  hppa*64*)
6704    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]'
6705    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6706    ;;
6707  *)
6708    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6709    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6710    ;;
6711  esac
6712  ;;
6713
6714interix[3-9]*)
6715  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6716  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6717  ;;
6718
6719irix5* | irix6* | nonstopux*)
6720  case $LD in
6721  *-32|*"-32 ") libmagic=32-bit;;
6722  *-n32|*"-n32 ") libmagic=N32;;
6723  *-64|*"-64 ") libmagic=64-bit;;
6724  *) libmagic=never-match;;
6725  esac
6726  lt_cv_deplibs_check_method=pass_all
6727  ;;
6728
6729# This must be glibc/ELF.
6730linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6731  lt_cv_deplibs_check_method=pass_all
6732  ;;
6733
6734*-mlibc)
6735  lt_cv_deplibs_check_method=pass_all
6736  ;;
6737
6738netbsd* | netbsdelf*-gnu)
6739  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6740    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6741  else
6742    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6743  fi
6744  ;;
6745
6746newos6*)
6747  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6748  lt_cv_file_magic_cmd=$FILECMD
6749  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6750  ;;
6751
6752*nto* | *qnx*)
6753  lt_cv_deplibs_check_method=pass_all
6754  ;;
6755
6756openbsd*)
6757  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6758    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6759  else
6760    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6761  fi
6762  ;;
6763
6764osf3* | osf4* | osf5*)
6765  lt_cv_deplibs_check_method=pass_all
6766  ;;
6767
6768rdos*)
6769  lt_cv_deplibs_check_method=pass_all
6770  ;;
6771
6772serenity*)
6773  lt_cv_deplibs_check_method=pass_all
6774  ;;
6775
6776solaris*)
6777  lt_cv_deplibs_check_method=pass_all
6778  ;;
6779
6780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6781  lt_cv_deplibs_check_method=pass_all
6782  ;;
6783
6784sysv4 | sysv4.3*)
6785  case $host_vendor in
6786  motorola)
6787    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]'
6788    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6789    ;;
6790  ncr)
6791    lt_cv_deplibs_check_method=pass_all
6792    ;;
6793  sequent)
6794    lt_cv_file_magic_cmd='/bin/file'
6795    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6796    ;;
6797  sni)
6798    lt_cv_file_magic_cmd='/bin/file'
6799    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6800    lt_cv_file_magic_test_file=/lib/libc.so
6801    ;;
6802  siemens)
6803    lt_cv_deplibs_check_method=pass_all
6804    ;;
6805  pc)
6806    lt_cv_deplibs_check_method=pass_all
6807    ;;
6808  esac
6809  ;;
6810
6811tpf*)
6812  lt_cv_deplibs_check_method=pass_all
6813  ;;
6814os2*)
6815  lt_cv_deplibs_check_method=pass_all
6816  ;;
6817esac
6818 ;;
6819esac
6820fi
6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6822printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6823
6824file_magic_glob=
6825want_nocaseglob=no
6826if test "$build" = "$host"; then
6827  case $host_os in
6828  mingw* | windows* | pw32*)
6829    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6830      want_nocaseglob=yes
6831    else
6832      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6833    fi
6834    ;;
6835  esac
6836fi
6837
6838file_magic_cmd=$lt_cv_file_magic_cmd
6839deplibs_check_method=$lt_cv_deplibs_check_method
6840test -z "$deplibs_check_method" && deplibs_check_method=unknown
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863if test -n "$ac_tool_prefix"; then
6864  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6865set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867printf %s "checking for $ac_word... " >&6; }
6868if test ${ac_cv_prog_DLLTOOL+y}
6869then :
6870  printf %s "(cached) " >&6
6871else case e in #(
6872  e) if test -n "$DLLTOOL"; then
6873  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6874else
6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878  IFS=$as_save_IFS
6879  case $as_dir in #(((
6880    '') as_dir=./ ;;
6881    */) ;;
6882    *) as_dir=$as_dir/ ;;
6883  esac
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6886    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6888    break 2
6889  fi
6890done
6891  done
6892IFS=$as_save_IFS
6893
6894fi ;;
6895esac
6896fi
6897DLLTOOL=$ac_cv_prog_DLLTOOL
6898if test -n "$DLLTOOL"; then
6899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6900printf "%s\n" "$DLLTOOL" >&6; }
6901else
6902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903printf "%s\n" "no" >&6; }
6904fi
6905
6906
6907fi
6908if test -z "$ac_cv_prog_DLLTOOL"; then
6909  ac_ct_DLLTOOL=$DLLTOOL
6910  # Extract the first word of "dlltool", so it can be a program name with args.
6911set dummy dlltool; ac_word=$2
6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913printf %s "checking for $ac_word... " >&6; }
6914if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6915then :
6916  printf %s "(cached) " >&6
6917else case e in #(
6918  e) if test -n "$ac_ct_DLLTOOL"; then
6919  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  case $as_dir in #(((
6926    '') as_dir=./ ;;
6927    */) ;;
6928    *) as_dir=$as_dir/ ;;
6929  esac
6930    for ac_exec_ext in '' $ac_executable_extensions; do
6931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6932    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6934    break 2
6935  fi
6936done
6937  done
6938IFS=$as_save_IFS
6939
6940fi ;;
6941esac
6942fi
6943ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6944if test -n "$ac_ct_DLLTOOL"; then
6945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6946printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6947else
6948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949printf "%s\n" "no" >&6; }
6950fi
6951
6952  if test "x$ac_ct_DLLTOOL" = x; then
6953    DLLTOOL="false"
6954  else
6955    case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961    DLLTOOL=$ac_ct_DLLTOOL
6962  fi
6963else
6964  DLLTOOL="$ac_cv_prog_DLLTOOL"
6965fi
6966
6967test -z "$DLLTOOL" && DLLTOOL=dlltool
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6979printf %s "checking how to associate runtime and link libraries... " >&6; }
6980if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6981then :
6982  printf %s "(cached) " >&6
6983else case e in #(
6984  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6985
6986case $host_os in
6987cygwin* | mingw* | windows* | pw32* | cegcc*)
6988  # two different shell functions defined in ltmain.sh;
6989  # decide which one to use based on capabilities of $DLLTOOL
6990  case `$DLLTOOL --help 2>&1` in
6991  *--identify-strict*)
6992    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6993    ;;
6994  *)
6995    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6996    ;;
6997  esac
6998  ;;
6999*)
7000  # fallback: assume linklib IS sharedlib
7001  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7002  ;;
7003esac
7004 ;;
7005esac
7006fi
7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7008printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7009sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7010test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7011
7012
7013
7014
7015
7016
7017
7018if test -n "$ac_tool_prefix"; then
7019  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022printf %s "checking for $ac_word... " >&6; }
7023if test ${ac_cv_prog_RANLIB+y}
7024then :
7025  printf %s "(cached) " >&6
7026else case e in #(
7027  e) if test -n "$RANLIB"; then
7028  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033  IFS=$as_save_IFS
7034  case $as_dir in #(((
7035    '') as_dir=./ ;;
7036    */) ;;
7037    *) as_dir=$as_dir/ ;;
7038  esac
7039    for ac_exec_ext in '' $ac_executable_extensions; do
7040  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7041    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7042    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7043    break 2
7044  fi
7045done
7046  done
7047IFS=$as_save_IFS
7048
7049fi ;;
7050esac
7051fi
7052RANLIB=$ac_cv_prog_RANLIB
7053if test -n "$RANLIB"; then
7054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7055printf "%s\n" "$RANLIB" >&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_RANLIB"; then
7064  ac_ct_RANLIB=$RANLIB
7065  # Extract the first word of "ranlib", so it can be a program name with args.
7066set dummy ranlib; 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_RANLIB+y}
7070then :
7071  printf %s "(cached) " >&6
7072else case e in #(
7073  e) if test -n "$ac_ct_RANLIB"; then
7074  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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 ;;
7096esac
7097fi
7098ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7099if test -n "$ac_ct_RANLIB"; then
7100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7101printf "%s\n" "$ac_ct_RANLIB" >&6; }
7102else
7103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104printf "%s\n" "no" >&6; }
7105fi
7106
7107  if test "x$ac_ct_RANLIB" = x; then
7108    RANLIB=":"
7109  else
7110    case $cross_compiling:$ac_tool_warned in
7111yes:)
7112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114ac_tool_warned=yes ;;
7115esac
7116    RANLIB=$ac_ct_RANLIB
7117  fi
7118else
7119  RANLIB="$ac_cv_prog_RANLIB"
7120fi
7121
7122if test -n "$ac_tool_prefix"; then
7123  for ac_prog in ar
7124  do
7125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128printf %s "checking for $ac_word... " >&6; }
7129if test ${ac_cv_prog_AR+y}
7130then :
7131  printf %s "(cached) " >&6
7132else case e in #(
7133  e) if test -n "$AR"; then
7134  ac_cv_prog_AR="$AR" # Let the user override the test.
7135else
7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  case $as_dir in #(((
7141    '') as_dir=./ ;;
7142    */) ;;
7143    *) as_dir=$as_dir/ ;;
7144  esac
7145    for ac_exec_ext in '' $ac_executable_extensions; do
7146  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7147    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7148    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7149    break 2
7150  fi
7151done
7152  done
7153IFS=$as_save_IFS
7154
7155fi ;;
7156esac
7157fi
7158AR=$ac_cv_prog_AR
7159if test -n "$AR"; then
7160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7161printf "%s\n" "$AR" >&6; }
7162else
7163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164printf "%s\n" "no" >&6; }
7165fi
7166
7167
7168    test -n "$AR" && break
7169  done
7170fi
7171if test -z "$AR"; then
7172  ac_ct_AR=$AR
7173  for ac_prog in ar
7174do
7175  # Extract the first word of "$ac_prog", so it can be a program name with args.
7176set dummy $ac_prog; ac_word=$2
7177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178printf %s "checking for $ac_word... " >&6; }
7179if test ${ac_cv_prog_ac_ct_AR+y}
7180then :
7181  printf %s "(cached) " >&6
7182else case e in #(
7183  e) if test -n "$ac_ct_AR"; then
7184  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189  IFS=$as_save_IFS
7190  case $as_dir in #(((
7191    '') as_dir=./ ;;
7192    */) ;;
7193    *) as_dir=$as_dir/ ;;
7194  esac
7195    for ac_exec_ext in '' $ac_executable_extensions; do
7196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7197    ac_cv_prog_ac_ct_AR="$ac_prog"
7198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7199    break 2
7200  fi
7201done
7202  done
7203IFS=$as_save_IFS
7204
7205fi ;;
7206esac
7207fi
7208ac_ct_AR=$ac_cv_prog_ac_ct_AR
7209if test -n "$ac_ct_AR"; then
7210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7211printf "%s\n" "$ac_ct_AR" >&6; }
7212else
7213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214printf "%s\n" "no" >&6; }
7215fi
7216
7217
7218  test -n "$ac_ct_AR" && break
7219done
7220
7221  if test "x$ac_ct_AR" = x; then
7222    AR="false"
7223  else
7224    case $cross_compiling:$ac_tool_warned in
7225yes:)
7226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228ac_tool_warned=yes ;;
7229esac
7230    AR=$ac_ct_AR
7231  fi
7232fi
7233
7234: ${AR=ar}
7235
7236
7237
7238
7239
7240
7241# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7242# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7243# higher priority because that's what people were doing historically (setting
7244# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7245# variable obsoleted/removed.
7246
7247test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7248lt_ar_flags=$AR_FLAGS
7249
7250
7251
7252
7253
7254
7255# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7256# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7257
7258
7259
7260
7261
7262
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7264printf %s "checking for archiver @FILE support... " >&6; }
7265if test ${lt_cv_ar_at_file+y}
7266then :
7267  printf %s "(cached) " >&6
7268else case e in #(
7269  e) lt_cv_ar_at_file=no
7270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272
7273int
7274main (void)
7275{
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"
7282then :
7283  echo conftest.$ac_objext > conftest.lst
7284      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7285      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7286  (eval $lt_ar_try) 2>&5
7287  ac_status=$?
7288  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289  test $ac_status = 0; }
7290      if test 0 -eq "$ac_status"; then
7291	# Ensure the archiver fails upon bogus file names.
7292	rm -f conftest.$ac_objext libconftest.a
7293	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7294  (eval $lt_ar_try) 2>&5
7295  ac_status=$?
7296  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297  test $ac_status = 0; }
7298	if test 0 -ne "$ac_status"; then
7299          lt_cv_ar_at_file=@
7300        fi
7301      fi
7302      rm -f conftest.* libconftest.a
7303
7304fi
7305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7306   ;;
7307esac
7308fi
7309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7310printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7311
7312if test no = "$lt_cv_ar_at_file"; then
7313  archiver_list_spec=
7314else
7315  archiver_list_spec=$lt_cv_ar_at_file
7316fi
7317
7318
7319
7320
7321
7322
7323
7324if test -n "$ac_tool_prefix"; then
7325  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7326set dummy ${ac_tool_prefix}strip; ac_word=$2
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328printf %s "checking for $ac_word... " >&6; }
7329if test ${ac_cv_prog_STRIP+y}
7330then :
7331  printf %s "(cached) " >&6
7332else case e in #(
7333  e) if test -n "$STRIP"; then
7334  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  case $as_dir in #(((
7341    '') as_dir=./ ;;
7342    */) ;;
7343    *) as_dir=$as_dir/ ;;
7344  esac
7345    for ac_exec_ext in '' $ac_executable_extensions; do
7346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7347    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352  done
7353IFS=$as_save_IFS
7354
7355fi ;;
7356esac
7357fi
7358STRIP=$ac_cv_prog_STRIP
7359if test -n "$STRIP"; then
7360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361printf "%s\n" "$STRIP" >&6; }
7362else
7363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364printf "%s\n" "no" >&6; }
7365fi
7366
7367
7368fi
7369if test -z "$ac_cv_prog_STRIP"; then
7370  ac_ct_STRIP=$STRIP
7371  # Extract the first word of "strip", so it can be a program name with args.
7372set dummy strip; ac_word=$2
7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374printf %s "checking for $ac_word... " >&6; }
7375if test ${ac_cv_prog_ac_ct_STRIP+y}
7376then :
7377  printf %s "(cached) " >&6
7378else case e in #(
7379  e) if test -n "$ac_ct_STRIP"; then
7380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  case $as_dir in #(((
7387    '') as_dir=./ ;;
7388    */) ;;
7389    *) as_dir=$as_dir/ ;;
7390  esac
7391    for ac_exec_ext in '' $ac_executable_extensions; do
7392  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7393    ac_cv_prog_ac_ct_STRIP="strip"
7394    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7395    break 2
7396  fi
7397done
7398  done
7399IFS=$as_save_IFS
7400
7401fi ;;
7402esac
7403fi
7404ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7405if test -n "$ac_ct_STRIP"; then
7406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7407printf "%s\n" "$ac_ct_STRIP" >&6; }
7408else
7409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410printf "%s\n" "no" >&6; }
7411fi
7412
7413  if test "x$ac_ct_STRIP" = x; then
7414    STRIP=":"
7415  else
7416    case $cross_compiling:$ac_tool_warned in
7417yes:)
7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420ac_tool_warned=yes ;;
7421esac
7422    STRIP=$ac_ct_STRIP
7423  fi
7424else
7425  STRIP="$ac_cv_prog_STRIP"
7426fi
7427
7428test -z "$STRIP" && STRIP=:
7429
7430
7431
7432
7433
7434
7435
7436test -z "$RANLIB" && RANLIB=:
7437
7438
7439
7440
7441
7442
7443# Determine commands to create old-style static archives.
7444old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7445old_postinstall_cmds='chmod 644 $oldlib'
7446old_postuninstall_cmds=
7447
7448if test -n "$RANLIB"; then
7449  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7450  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7451fi
7452
7453case $host_os in
7454  darwin*)
7455    lock_old_archive_extraction=yes ;;
7456  *)
7457    lock_old_archive_extraction=no ;;
7458esac
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498# If no C compiler was specified, use CC.
7499LTCC=${LTCC-"$CC"}
7500
7501# If no C compiler flags were specified, use CFLAGS.
7502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7503
7504# Allow CC to be a program name with arguments.
7505compiler=$CC
7506
7507
7508# Check for command to grab the raw symbol name followed by C symbol from nm.
7509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7510printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7511if test ${lt_cv_sys_global_symbol_pipe+y}
7512then :
7513  printf %s "(cached) " >&6
7514else case e in #(
7515  e)
7516# These are sane defaults that work on at least a few old systems.
7517# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7518
7519# Character class describing NM global symbol codes.
7520symcode='[BCDEGRST]'
7521
7522# Regexp to match symbols that can be accessed directly from C.
7523sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7524
7525# Define system-specific variables.
7526case $host_os in
7527aix*)
7528  symcode='[BCDT]'
7529  ;;
7530cygwin* | mingw* | windows* | pw32* | cegcc*)
7531  symcode='[ABCDGISTW]'
7532  ;;
7533hpux*)
7534  if test ia64 = "$host_cpu"; then
7535    symcode='[ABCDEGRST]'
7536  fi
7537  ;;
7538irix* | nonstopux*)
7539  symcode='[BCDEGRST]'
7540  ;;
7541osf*)
7542  symcode='[BCDEGQRST]'
7543  ;;
7544solaris*)
7545  symcode='[BCDRT]'
7546  ;;
7547sco3.2v5*)
7548  symcode='[DT]'
7549  ;;
7550sysv4.2uw2*)
7551  symcode='[DT]'
7552  ;;
7553sysv5* | sco5v6* | unixware* | OpenUNIX*)
7554  symcode='[ABDT]'
7555  ;;
7556sysv4)
7557  symcode='[DFNSTU]'
7558  ;;
7559esac
7560
7561# If we're using GNU nm, then use its standard symbol codes.
7562case `$NM -V 2>&1` in
7563*GNU* | *'with BFD'*)
7564  symcode='[ABCDGIRSTW]' ;;
7565esac
7566
7567if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7568  # Gets list of data symbols to import.
7569  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7570  # Adjust the below global symbol transforms to fixup imported variables.
7571  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7572  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7573  lt_c_name_lib_hook="\
7574  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7575  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7576else
7577  # Disable hooks by default.
7578  lt_cv_sys_global_symbol_to_import=
7579  lt_cdecl_hook=
7580  lt_c_name_hook=
7581  lt_c_name_lib_hook=
7582fi
7583
7584# Transform an extracted symbol line into a proper C declaration.
7585# Some systems (esp. on ia64) link data and code symbols differently,
7586# so use this general approach.
7587lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7588$lt_cdecl_hook\
7589" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7590" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7591
7592# Transform an extracted symbol line into symbol name and symbol address
7593lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7594$lt_c_name_hook\
7595" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7596" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7597
7598# Transform an extracted symbol line into symbol name with lib prefix and
7599# symbol address.
7600lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7601$lt_c_name_lib_hook\
7602" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7603" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7604" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7605
7606# Handle CRLF in mingw tool chain
7607opt_cr=
7608case $build_os in
7609mingw* | windows*)
7610  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7611  ;;
7612esac
7613
7614# Try without a prefix underscore, then with it.
7615for ac_symprfx in "" "_"; do
7616
7617  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7618  symxfrm="\\1 $ac_symprfx\\2 \\2"
7619
7620  # Write the raw and C identifiers.
7621  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7622    # Fake it for dumpbin and say T for any non-static function,
7623    # D for any global variable and I for any imported variable.
7624    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7625    # which start with @ or ?.
7626    lt_cv_sys_global_symbol_pipe="$AWK '"\
7627"     {last_section=section; section=\$ 3};"\
7628"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7629"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7630"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7631"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7632"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7633"     \$ 0!~/External *\|/{next};"\
7634"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7635"     {if(hide[section]) next};"\
7636"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7637"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7638"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7639"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7640"     ' prfx=^$ac_symprfx"
7641  else
7642    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7643  fi
7644  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7645
7646  # Check to see that the pipe works correctly.
7647  pipe_works=no
7648
7649  rm -f conftest*
7650  cat > conftest.$ac_ext <<_LT_EOF
7651#ifdef __cplusplus
7652extern "C" {
7653#endif
7654char nm_test_var;
7655void nm_test_func(void);
7656void nm_test_func(void){}
7657#ifdef __cplusplus
7658}
7659#endif
7660int main(void){nm_test_var='a';nm_test_func();return(0);}
7661_LT_EOF
7662
7663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664  (eval $ac_compile) 2>&5
7665  ac_status=$?
7666  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667  test $ac_status = 0; }; then
7668    # Now try to grab the symbols.
7669    nlist=conftest.nm
7670    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7671    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7672      # Try sorting and uniquifying the output.
7673      if sort "$nlist" | uniq > "$nlist"T; then
7674	mv -f "$nlist"T "$nlist"
7675      else
7676	rm -f "$nlist"T
7677      fi
7678
7679      # Make sure that we snagged all the symbols we need.
7680      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7681	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7682	  cat <<_LT_EOF > conftest.$ac_ext
7683/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7684#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7685/* DATA imports from DLLs on WIN32 can't be const, because runtime
7686   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7687# define LT_DLSYM_CONST
7688#elif defined __osf__
7689/* This system does not cope well with relocations in const data.  */
7690# define LT_DLSYM_CONST
7691#else
7692# define LT_DLSYM_CONST const
7693#endif
7694
7695#ifdef __cplusplus
7696extern "C" {
7697#endif
7698
7699_LT_EOF
7700	  # Now generate the symbol file.
7701	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7702
7703	  cat <<_LT_EOF >> conftest.$ac_ext
7704
7705/* The mapping between symbol names and symbols.  */
7706LT_DLSYM_CONST struct {
7707  const char *name;
7708  void       *address;
7709}
7710lt__PROGRAM__LTX_preloaded_symbols[] =
7711{
7712  { "@PROGRAM@", (void *) 0 },
7713_LT_EOF
7714	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7715	  cat <<\_LT_EOF >> conftest.$ac_ext
7716  {0, (void *) 0}
7717};
7718
7719/* This works around a problem in FreeBSD linker */
7720#ifdef FREEBSD_WORKAROUND
7721static const void *lt_preloaded_setup() {
7722  return lt__PROGRAM__LTX_preloaded_symbols;
7723}
7724#endif
7725
7726#ifdef __cplusplus
7727}
7728#endif
7729_LT_EOF
7730	  # Now try linking the two files.
7731	  mv conftest.$ac_objext conftstm.$ac_objext
7732	  lt_globsym_save_LIBS=$LIBS
7733	  lt_globsym_save_CFLAGS=$CFLAGS
7734	  LIBS=conftstm.$ac_objext
7735	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7736	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7737  (eval $ac_link) 2>&5
7738  ac_status=$?
7739  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7741	    pipe_works=yes
7742	  fi
7743	  LIBS=$lt_globsym_save_LIBS
7744	  CFLAGS=$lt_globsym_save_CFLAGS
7745	else
7746	  echo "cannot find nm_test_func in $nlist" >&5
7747	fi
7748      else
7749	echo "cannot find nm_test_var in $nlist" >&5
7750      fi
7751    else
7752      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7753    fi
7754  else
7755    echo "$progname: failed program was:" >&5
7756    cat conftest.$ac_ext >&5
7757  fi
7758  rm -rf conftest* conftst*
7759
7760  # Do not use the global_symbol_pipe unless it works.
7761  if test yes = "$pipe_works"; then
7762    break
7763  else
7764    lt_cv_sys_global_symbol_pipe=
7765  fi
7766done
7767 ;;
7768esac
7769fi
7770
7771if test -z "$lt_cv_sys_global_symbol_pipe"; then
7772  lt_cv_sys_global_symbol_to_cdecl=
7773fi
7774if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7776printf "%s\n" "failed" >&6; }
7777else
7778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7779printf "%s\n" "ok" >&6; }
7780fi
7781
7782# Response file support.
7783if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7784  nm_file_list_spec='@'
7785elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7786  nm_file_list_spec='@'
7787fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7826printf %s "checking for sysroot... " >&6; }
7827
7828# Check whether --with-sysroot was given.
7829if test ${with_sysroot+y}
7830then :
7831  withval=$with_sysroot;
7832else case e in #(
7833  e) with_sysroot=no ;;
7834esac
7835fi
7836
7837
7838lt_sysroot=
7839case $with_sysroot in #(
7840 yes)
7841   if test yes = "$GCC"; then
7842     # Trim trailing / since we'll always append absolute paths and we want
7843     # to avoid //, if only for less confusing output for the user.
7844     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7845   fi
7846   ;; #(
7847 /*)
7848   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7849   ;; #(
7850 no|'')
7851   ;; #(
7852 *)
7853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7854printf "%s\n" "$with_sysroot" >&6; }
7855   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7856   ;;
7857esac
7858
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7860printf "%s\n" "${lt_sysroot:-no}" >&6; }
7861
7862
7863
7864
7865
7866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7867printf %s "checking for a working dd... " >&6; }
7868if test ${ac_cv_path_lt_DD+y}
7869then :
7870  printf %s "(cached) " >&6
7871else case e in #(
7872  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7873cat conftest.i conftest.i >conftest2.i
7874: ${lt_DD:=$DD}
7875if test -z "$lt_DD"; then
7876  ac_path_lt_DD_found=false
7877  # Loop through the user's path and test for each of PROGNAME-LIST
7878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  case $as_dir in #(((
7883    '') as_dir=./ ;;
7884    */) ;;
7885    *) as_dir=$as_dir/ ;;
7886  esac
7887    for ac_prog in dd
7888   do
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7891      as_fn_executable_p "$ac_path_lt_DD" || continue
7892if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7893  cmp -s conftest.i conftest.out \
7894  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7895fi
7896      $ac_path_lt_DD_found && break 3
7897    done
7898  done
7899  done
7900IFS=$as_save_IFS
7901  if test -z "$ac_cv_path_lt_DD"; then
7902    :
7903  fi
7904else
7905  ac_cv_path_lt_DD=$lt_DD
7906fi
7907
7908rm -f conftest.i conftest2.i conftest.out ;;
7909esac
7910fi
7911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7912printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7913
7914
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7916printf %s "checking how to truncate binary pipes... " >&6; }
7917if test ${lt_cv_truncate_bin+y}
7918then :
7919  printf %s "(cached) " >&6
7920else case e in #(
7921  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7922cat conftest.i conftest.i >conftest2.i
7923lt_cv_truncate_bin=
7924if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7925  cmp -s conftest.i conftest.out \
7926  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7927fi
7928rm -f conftest.i conftest2.i conftest.out
7929test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7930esac
7931fi
7932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7933printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7934
7935
7936
7937
7938
7939
7940
7941# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7942func_cc_basename ()
7943{
7944    for cc_temp in $*""; do
7945      case $cc_temp in
7946        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7947        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7948        \-*) ;;
7949        *) break;;
7950      esac
7951    done
7952    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7953}
7954
7955# Check whether --enable-libtool-lock was given.
7956if test ${enable_libtool_lock+y}
7957then :
7958  enableval=$enable_libtool_lock;
7959fi
7960
7961test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7962
7963# Some flags need to be propagated to the compiler or linker for good
7964# libtool support.
7965case $host in
7966ia64-*-hpux*)
7967  # Find out what ABI is being produced by ac_compile, and set mode
7968  # options accordingly.
7969  echo 'int i;' > conftest.$ac_ext
7970  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7971  (eval $ac_compile) 2>&5
7972  ac_status=$?
7973  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974  test $ac_status = 0; }; then
7975    case `$FILECMD conftest.$ac_objext` in
7976      *ELF-32*)
7977	HPUX_IA64_MODE=32
7978	;;
7979      *ELF-64*)
7980	HPUX_IA64_MODE=64
7981	;;
7982    esac
7983  fi
7984  rm -rf conftest*
7985  ;;
7986*-*-irix6*)
7987  # Find out what ABI is being produced by ac_compile, and set linker
7988  # options accordingly.
7989  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7990  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7991  (eval $ac_compile) 2>&5
7992  ac_status=$?
7993  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7994  test $ac_status = 0; }; then
7995    if test yes = "$lt_cv_prog_gnu_ld"; then
7996      case `$FILECMD conftest.$ac_objext` in
7997	*32-bit*)
7998	  LD="${LD-ld} -melf32bsmip"
7999	  ;;
8000	*N32*)
8001	  LD="${LD-ld} -melf32bmipn32"
8002	  ;;
8003	*64-bit*)
8004	  LD="${LD-ld} -melf64bmip"
8005	;;
8006      esac
8007    else
8008      case `$FILECMD conftest.$ac_objext` in
8009	*32-bit*)
8010	  LD="${LD-ld} -32"
8011	  ;;
8012	*N32*)
8013	  LD="${LD-ld} -n32"
8014	  ;;
8015	*64-bit*)
8016	  LD="${LD-ld} -64"
8017	  ;;
8018      esac
8019    fi
8020  fi
8021  rm -rf conftest*
8022  ;;
8023
8024mips64*-*linux*)
8025  # Find out what ABI is being produced by ac_compile, and set linker
8026  # options accordingly.
8027  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8029  (eval $ac_compile) 2>&5
8030  ac_status=$?
8031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8032  test $ac_status = 0; }; then
8033    emul=elf
8034    case `$FILECMD conftest.$ac_objext` in
8035      *32-bit*)
8036	emul="${emul}32"
8037	;;
8038      *64-bit*)
8039	emul="${emul}64"
8040	;;
8041    esac
8042    case `$FILECMD conftest.$ac_objext` in
8043      *MSB*)
8044	emul="${emul}btsmip"
8045	;;
8046      *LSB*)
8047	emul="${emul}ltsmip"
8048	;;
8049    esac
8050    case `$FILECMD conftest.$ac_objext` in
8051      *N32*)
8052	emul="${emul}n32"
8053	;;
8054    esac
8055    LD="${LD-ld} -m $emul"
8056  fi
8057  rm -rf conftest*
8058  ;;
8059
8060x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8061s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8062  # Find out what ABI is being produced by ac_compile, and set linker
8063  # options accordingly.  Note that the listed cases only cover the
8064  # situations where additional linker options are needed (such as when
8065  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8066  # vice versa); the common cases where no linker options are needed do
8067  # not appear in the list.
8068  echo 'int i;' > conftest.$ac_ext
8069  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8070  (eval $ac_compile) 2>&5
8071  ac_status=$?
8072  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073  test $ac_status = 0; }; then
8074    case `$FILECMD conftest.o` in
8075      *32-bit*)
8076	case $host in
8077	  x86_64-*kfreebsd*-gnu)
8078	    LD="${LD-ld} -m elf_i386_fbsd"
8079	    ;;
8080	  x86_64-*linux*|x86_64-gnu*)
8081	    case `$FILECMD conftest.o` in
8082	      *x86-64*)
8083		LD="${LD-ld} -m elf32_x86_64"
8084		;;
8085	      *)
8086		LD="${LD-ld} -m elf_i386"
8087		;;
8088	    esac
8089	    ;;
8090	  powerpc64le-*linux*)
8091	    LD="${LD-ld} -m elf32lppclinux"
8092	    ;;
8093	  powerpc64-*linux*)
8094	    LD="${LD-ld} -m elf32ppclinux"
8095	    ;;
8096	  s390x-*linux*)
8097	    LD="${LD-ld} -m elf_s390"
8098	    ;;
8099	  sparc64-*linux*)
8100	    LD="${LD-ld} -m elf32_sparc"
8101	    ;;
8102	esac
8103	;;
8104      *64-bit*)
8105	case $host in
8106	  x86_64-*kfreebsd*-gnu)
8107	    LD="${LD-ld} -m elf_x86_64_fbsd"
8108	    ;;
8109	  x86_64-*linux*|x86_64-gnu*)
8110	    LD="${LD-ld} -m elf_x86_64"
8111	    ;;
8112	  powerpcle-*linux*)
8113	    LD="${LD-ld} -m elf64lppc"
8114	    ;;
8115	  powerpc-*linux*)
8116	    LD="${LD-ld} -m elf64ppc"
8117	    ;;
8118	  s390*-*linux*|s390*-*tpf*)
8119	    LD="${LD-ld} -m elf64_s390"
8120	    ;;
8121	  sparc*-*linux*)
8122	    LD="${LD-ld} -m elf64_sparc"
8123	    ;;
8124	esac
8125	;;
8126    esac
8127  fi
8128  rm -rf conftest*
8129  ;;
8130
8131*-*-sco3.2v5*)
8132  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8133  SAVE_CFLAGS=$CFLAGS
8134  CFLAGS="$CFLAGS -belf"
8135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8136printf %s "checking whether the C compiler needs -belf... " >&6; }
8137if test ${lt_cv_cc_needs_belf+y}
8138then :
8139  printf %s "(cached) " >&6
8140else case e in #(
8141  e) ac_ext=c
8142ac_cpp='$CPP $CPPFLAGS'
8143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145ac_compiler_gnu=$ac_cv_c_compiler_gnu
8146
8147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149
8150int
8151main (void)
8152{
8153
8154  ;
8155  return 0;
8156}
8157_ACEOF
8158if ac_fn_c_try_link "$LINENO"
8159then :
8160  lt_cv_cc_needs_belf=yes
8161else case e in #(
8162  e) lt_cv_cc_needs_belf=no ;;
8163esac
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166    conftest$ac_exeext conftest.$ac_ext
8167     ac_ext=c
8168ac_cpp='$CPP $CPPFLAGS'
8169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172 ;;
8173esac
8174fi
8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8176printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8177  if test yes != "$lt_cv_cc_needs_belf"; then
8178    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8179    CFLAGS=$SAVE_CFLAGS
8180  fi
8181  ;;
8182*-*solaris*)
8183  # Find out what ABI is being produced by ac_compile, and set linker
8184  # options accordingly.
8185  echo 'int i;' > conftest.$ac_ext
8186  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8187  (eval $ac_compile) 2>&5
8188  ac_status=$?
8189  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8190  test $ac_status = 0; }; then
8191    case `$FILECMD conftest.o` in
8192    *64-bit*)
8193      case $lt_cv_prog_gnu_ld in
8194      yes*)
8195        case $host in
8196        i?86-*-solaris*|x86_64-*-solaris*)
8197          LD="${LD-ld} -m elf_x86_64"
8198          ;;
8199        sparc*-*-solaris*)
8200          LD="${LD-ld} -m elf64_sparc"
8201          ;;
8202        esac
8203        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8204        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8205          LD=${LD-ld}_sol2
8206        fi
8207        ;;
8208      *)
8209	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8210	  LD="${LD-ld} -64"
8211	fi
8212	;;
8213      esac
8214      ;;
8215    esac
8216  fi
8217  rm -rf conftest*
8218  ;;
8219esac
8220
8221need_locks=$enable_libtool_lock
8222
8223if test -n "$ac_tool_prefix"; then
8224  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8225set dummy ${ac_tool_prefix}mt; ac_word=$2
8226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227printf %s "checking for $ac_word... " >&6; }
8228if test ${ac_cv_prog_MANIFEST_TOOL+y}
8229then :
8230  printf %s "(cached) " >&6
8231else case e in #(
8232  e) if test -n "$MANIFEST_TOOL"; then
8233  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238  IFS=$as_save_IFS
8239  case $as_dir in #(((
8240    '') as_dir=./ ;;
8241    */) ;;
8242    *) as_dir=$as_dir/ ;;
8243  esac
8244    for ac_exec_ext in '' $ac_executable_extensions; do
8245  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8246    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8247    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8248    break 2
8249  fi
8250done
8251  done
8252IFS=$as_save_IFS
8253
8254fi ;;
8255esac
8256fi
8257MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8258if test -n "$MANIFEST_TOOL"; then
8259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8260printf "%s\n" "$MANIFEST_TOOL" >&6; }
8261else
8262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263printf "%s\n" "no" >&6; }
8264fi
8265
8266
8267fi
8268if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8269  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8270  # Extract the first word of "mt", so it can be a program name with args.
8271set dummy mt; ac_word=$2
8272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273printf %s "checking for $ac_word... " >&6; }
8274if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8275then :
8276  printf %s "(cached) " >&6
8277else case e in #(
8278  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8279  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284  IFS=$as_save_IFS
8285  case $as_dir in #(((
8286    '') as_dir=./ ;;
8287    */) ;;
8288    *) as_dir=$as_dir/ ;;
8289  esac
8290    for ac_exec_ext in '' $ac_executable_extensions; do
8291  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8292    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8293    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8294    break 2
8295  fi
8296done
8297  done
8298IFS=$as_save_IFS
8299
8300fi ;;
8301esac
8302fi
8303ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8304if test -n "$ac_ct_MANIFEST_TOOL"; then
8305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8306printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8307else
8308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309printf "%s\n" "no" >&6; }
8310fi
8311
8312  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8313    MANIFEST_TOOL=":"
8314  else
8315    case $cross_compiling:$ac_tool_warned in
8316yes:)
8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319ac_tool_warned=yes ;;
8320esac
8321    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8322  fi
8323else
8324  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8325fi
8326
8327test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8329printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8330if test ${lt_cv_path_manifest_tool+y}
8331then :
8332  printf %s "(cached) " >&6
8333else case e in #(
8334  e) lt_cv_path_manifest_tool=no
8335  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8336  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8337  cat conftest.err >&5
8338  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8339    lt_cv_path_manifest_tool=yes
8340  fi
8341  rm -f conftest* ;;
8342esac
8343fi
8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8345printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8346if test yes != "$lt_cv_path_manifest_tool"; then
8347  MANIFEST_TOOL=:
8348fi
8349
8350
8351
8352
8353
8354
8355  case $host_os in
8356    rhapsody* | darwin*)
8357    if test -n "$ac_tool_prefix"; then
8358  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8359set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361printf %s "checking for $ac_word... " >&6; }
8362if test ${ac_cv_prog_DSYMUTIL+y}
8363then :
8364  printf %s "(cached) " >&6
8365else case e in #(
8366  e) if test -n "$DSYMUTIL"; then
8367  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372  IFS=$as_save_IFS
8373  case $as_dir in #(((
8374    '') as_dir=./ ;;
8375    */) ;;
8376    *) as_dir=$as_dir/ ;;
8377  esac
8378    for ac_exec_ext in '' $ac_executable_extensions; do
8379  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8380    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8381    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8382    break 2
8383  fi
8384done
8385  done
8386IFS=$as_save_IFS
8387
8388fi ;;
8389esac
8390fi
8391DSYMUTIL=$ac_cv_prog_DSYMUTIL
8392if test -n "$DSYMUTIL"; then
8393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8394printf "%s\n" "$DSYMUTIL" >&6; }
8395else
8396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397printf "%s\n" "no" >&6; }
8398fi
8399
8400
8401fi
8402if test -z "$ac_cv_prog_DSYMUTIL"; then
8403  ac_ct_DSYMUTIL=$DSYMUTIL
8404  # Extract the first word of "dsymutil", so it can be a program name with args.
8405set dummy dsymutil; ac_word=$2
8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407printf %s "checking for $ac_word... " >&6; }
8408if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8409then :
8410  printf %s "(cached) " >&6
8411else case e in #(
8412  e) if test -n "$ac_ct_DSYMUTIL"; then
8413  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418  IFS=$as_save_IFS
8419  case $as_dir in #(((
8420    '') as_dir=./ ;;
8421    */) ;;
8422    *) as_dir=$as_dir/ ;;
8423  esac
8424    for ac_exec_ext in '' $ac_executable_extensions; do
8425  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8426    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8428    break 2
8429  fi
8430done
8431  done
8432IFS=$as_save_IFS
8433
8434fi ;;
8435esac
8436fi
8437ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8438if test -n "$ac_ct_DSYMUTIL"; then
8439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8440printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8441else
8442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443printf "%s\n" "no" >&6; }
8444fi
8445
8446  if test "x$ac_ct_DSYMUTIL" = x; then
8447    DSYMUTIL=":"
8448  else
8449    case $cross_compiling:$ac_tool_warned in
8450yes:)
8451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8452printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8453ac_tool_warned=yes ;;
8454esac
8455    DSYMUTIL=$ac_ct_DSYMUTIL
8456  fi
8457else
8458  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8459fi
8460
8461    if test -n "$ac_tool_prefix"; then
8462  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8463set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465printf %s "checking for $ac_word... " >&6; }
8466if test ${ac_cv_prog_NMEDIT+y}
8467then :
8468  printf %s "(cached) " >&6
8469else case e in #(
8470  e) if test -n "$NMEDIT"; then
8471  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8472else
8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476  IFS=$as_save_IFS
8477  case $as_dir in #(((
8478    '') as_dir=./ ;;
8479    */) ;;
8480    *) as_dir=$as_dir/ ;;
8481  esac
8482    for ac_exec_ext in '' $ac_executable_extensions; do
8483  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8484    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8485    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8486    break 2
8487  fi
8488done
8489  done
8490IFS=$as_save_IFS
8491
8492fi ;;
8493esac
8494fi
8495NMEDIT=$ac_cv_prog_NMEDIT
8496if test -n "$NMEDIT"; then
8497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8498printf "%s\n" "$NMEDIT" >&6; }
8499else
8500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501printf "%s\n" "no" >&6; }
8502fi
8503
8504
8505fi
8506if test -z "$ac_cv_prog_NMEDIT"; then
8507  ac_ct_NMEDIT=$NMEDIT
8508  # Extract the first word of "nmedit", so it can be a program name with args.
8509set dummy nmedit; ac_word=$2
8510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511printf %s "checking for $ac_word... " >&6; }
8512if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8513then :
8514  printf %s "(cached) " >&6
8515else case e in #(
8516  e) if test -n "$ac_ct_NMEDIT"; then
8517  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522  IFS=$as_save_IFS
8523  case $as_dir in #(((
8524    '') as_dir=./ ;;
8525    */) ;;
8526    *) as_dir=$as_dir/ ;;
8527  esac
8528    for ac_exec_ext in '' $ac_executable_extensions; do
8529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8530    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8532    break 2
8533  fi
8534done
8535  done
8536IFS=$as_save_IFS
8537
8538fi ;;
8539esac
8540fi
8541ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8542if test -n "$ac_ct_NMEDIT"; then
8543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8544printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8545else
8546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547printf "%s\n" "no" >&6; }
8548fi
8549
8550  if test "x$ac_ct_NMEDIT" = x; then
8551    NMEDIT=":"
8552  else
8553    case $cross_compiling:$ac_tool_warned in
8554yes:)
8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557ac_tool_warned=yes ;;
8558esac
8559    NMEDIT=$ac_ct_NMEDIT
8560  fi
8561else
8562  NMEDIT="$ac_cv_prog_NMEDIT"
8563fi
8564
8565    if test -n "$ac_tool_prefix"; then
8566  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8567set dummy ${ac_tool_prefix}lipo; ac_word=$2
8568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569printf %s "checking for $ac_word... " >&6; }
8570if test ${ac_cv_prog_LIPO+y}
8571then :
8572  printf %s "(cached) " >&6
8573else case e in #(
8574  e) if test -n "$LIPO"; then
8575  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8576else
8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578for as_dir in $PATH
8579do
8580  IFS=$as_save_IFS
8581  case $as_dir in #(((
8582    '') as_dir=./ ;;
8583    */) ;;
8584    *) as_dir=$as_dir/ ;;
8585  esac
8586    for ac_exec_ext in '' $ac_executable_extensions; do
8587  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8588    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8589    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8590    break 2
8591  fi
8592done
8593  done
8594IFS=$as_save_IFS
8595
8596fi ;;
8597esac
8598fi
8599LIPO=$ac_cv_prog_LIPO
8600if test -n "$LIPO"; then
8601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8602printf "%s\n" "$LIPO" >&6; }
8603else
8604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605printf "%s\n" "no" >&6; }
8606fi
8607
8608
8609fi
8610if test -z "$ac_cv_prog_LIPO"; then
8611  ac_ct_LIPO=$LIPO
8612  # Extract the first word of "lipo", so it can be a program name with args.
8613set dummy lipo; ac_word=$2
8614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615printf %s "checking for $ac_word... " >&6; }
8616if test ${ac_cv_prog_ac_ct_LIPO+y}
8617then :
8618  printf %s "(cached) " >&6
8619else case e in #(
8620  e) if test -n "$ac_ct_LIPO"; then
8621  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8622else
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626  IFS=$as_save_IFS
8627  case $as_dir in #(((
8628    '') as_dir=./ ;;
8629    */) ;;
8630    *) as_dir=$as_dir/ ;;
8631  esac
8632    for ac_exec_ext in '' $ac_executable_extensions; do
8633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8634    ac_cv_prog_ac_ct_LIPO="lipo"
8635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8636    break 2
8637  fi
8638done
8639  done
8640IFS=$as_save_IFS
8641
8642fi ;;
8643esac
8644fi
8645ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8646if test -n "$ac_ct_LIPO"; then
8647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8648printf "%s\n" "$ac_ct_LIPO" >&6; }
8649else
8650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651printf "%s\n" "no" >&6; }
8652fi
8653
8654  if test "x$ac_ct_LIPO" = x; then
8655    LIPO=":"
8656  else
8657    case $cross_compiling:$ac_tool_warned in
8658yes:)
8659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661ac_tool_warned=yes ;;
8662esac
8663    LIPO=$ac_ct_LIPO
8664  fi
8665else
8666  LIPO="$ac_cv_prog_LIPO"
8667fi
8668
8669    if test -n "$ac_tool_prefix"; then
8670  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8671set dummy ${ac_tool_prefix}otool; ac_word=$2
8672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673printf %s "checking for $ac_word... " >&6; }
8674if test ${ac_cv_prog_OTOOL+y}
8675then :
8676  printf %s "(cached) " >&6
8677else case e in #(
8678  e) if test -n "$OTOOL"; then
8679  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8680else
8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682for as_dir in $PATH
8683do
8684  IFS=$as_save_IFS
8685  case $as_dir in #(((
8686    '') as_dir=./ ;;
8687    */) ;;
8688    *) as_dir=$as_dir/ ;;
8689  esac
8690    for ac_exec_ext in '' $ac_executable_extensions; do
8691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8692    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8693    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8694    break 2
8695  fi
8696done
8697  done
8698IFS=$as_save_IFS
8699
8700fi ;;
8701esac
8702fi
8703OTOOL=$ac_cv_prog_OTOOL
8704if test -n "$OTOOL"; then
8705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8706printf "%s\n" "$OTOOL" >&6; }
8707else
8708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709printf "%s\n" "no" >&6; }
8710fi
8711
8712
8713fi
8714if test -z "$ac_cv_prog_OTOOL"; then
8715  ac_ct_OTOOL=$OTOOL
8716  # Extract the first word of "otool", so it can be a program name with args.
8717set dummy otool; ac_word=$2
8718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719printf %s "checking for $ac_word... " >&6; }
8720if test ${ac_cv_prog_ac_ct_OTOOL+y}
8721then :
8722  printf %s "(cached) " >&6
8723else case e in #(
8724  e) if test -n "$ac_ct_OTOOL"; then
8725  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730  IFS=$as_save_IFS
8731  case $as_dir in #(((
8732    '') as_dir=./ ;;
8733    */) ;;
8734    *) as_dir=$as_dir/ ;;
8735  esac
8736    for ac_exec_ext in '' $ac_executable_extensions; do
8737  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8738    ac_cv_prog_ac_ct_OTOOL="otool"
8739    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8740    break 2
8741  fi
8742done
8743  done
8744IFS=$as_save_IFS
8745
8746fi ;;
8747esac
8748fi
8749ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8750if test -n "$ac_ct_OTOOL"; then
8751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8752printf "%s\n" "$ac_ct_OTOOL" >&6; }
8753else
8754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755printf "%s\n" "no" >&6; }
8756fi
8757
8758  if test "x$ac_ct_OTOOL" = x; then
8759    OTOOL=":"
8760  else
8761    case $cross_compiling:$ac_tool_warned in
8762yes:)
8763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765ac_tool_warned=yes ;;
8766esac
8767    OTOOL=$ac_ct_OTOOL
8768  fi
8769else
8770  OTOOL="$ac_cv_prog_OTOOL"
8771fi
8772
8773    if test -n "$ac_tool_prefix"; then
8774  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8775set dummy ${ac_tool_prefix}otool64; ac_word=$2
8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777printf %s "checking for $ac_word... " >&6; }
8778if test ${ac_cv_prog_OTOOL64+y}
8779then :
8780  printf %s "(cached) " >&6
8781else case e in #(
8782  e) if test -n "$OTOOL64"; then
8783  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8784else
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788  IFS=$as_save_IFS
8789  case $as_dir in #(((
8790    '') as_dir=./ ;;
8791    */) ;;
8792    *) as_dir=$as_dir/ ;;
8793  esac
8794    for ac_exec_ext in '' $ac_executable_extensions; do
8795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8798    break 2
8799  fi
8800done
8801  done
8802IFS=$as_save_IFS
8803
8804fi ;;
8805esac
8806fi
8807OTOOL64=$ac_cv_prog_OTOOL64
8808if test -n "$OTOOL64"; then
8809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8810printf "%s\n" "$OTOOL64" >&6; }
8811else
8812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813printf "%s\n" "no" >&6; }
8814fi
8815
8816
8817fi
8818if test -z "$ac_cv_prog_OTOOL64"; then
8819  ac_ct_OTOOL64=$OTOOL64
8820  # Extract the first word of "otool64", so it can be a program name with args.
8821set dummy otool64; ac_word=$2
8822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823printf %s "checking for $ac_word... " >&6; }
8824if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8825then :
8826  printf %s "(cached) " >&6
8827else case e in #(
8828  e) if test -n "$ac_ct_OTOOL64"; then
8829  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8830else
8831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832for as_dir in $PATH
8833do
8834  IFS=$as_save_IFS
8835  case $as_dir in #(((
8836    '') as_dir=./ ;;
8837    */) ;;
8838    *) as_dir=$as_dir/ ;;
8839  esac
8840    for ac_exec_ext in '' $ac_executable_extensions; do
8841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8842    ac_cv_prog_ac_ct_OTOOL64="otool64"
8843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8844    break 2
8845  fi
8846done
8847  done
8848IFS=$as_save_IFS
8849
8850fi ;;
8851esac
8852fi
8853ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8854if test -n "$ac_ct_OTOOL64"; then
8855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8856printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8857else
8858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859printf "%s\n" "no" >&6; }
8860fi
8861
8862  if test "x$ac_ct_OTOOL64" = x; then
8863    OTOOL64=":"
8864  else
8865    case $cross_compiling:$ac_tool_warned in
8866yes:)
8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869ac_tool_warned=yes ;;
8870esac
8871    OTOOL64=$ac_ct_OTOOL64
8872  fi
8873else
8874  OTOOL64="$ac_cv_prog_OTOOL64"
8875fi
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8904printf %s "checking for -single_module linker flag... " >&6; }
8905if test ${lt_cv_apple_cc_single_mod+y}
8906then :
8907  printf %s "(cached) " >&6
8908else case e in #(
8909  e) lt_cv_apple_cc_single_mod=no
8910      if test -z "$LT_MULTI_MODULE"; then
8911	# By default we will add the -single_module flag. You can override
8912	# by either setting the environment variable LT_MULTI_MODULE
8913	# non-empty at configure time, or by adding -multi_module to the
8914	# link flags.
8915	rm -rf libconftest.dylib*
8916	echo "int foo(void){return 1;}" > conftest.c
8917	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8918-dynamiclib -Wl,-single_module conftest.c" >&5
8919	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8920	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8921        _lt_result=$?
8922	# If there is a non-empty error log, and "single_module"
8923	# appears in it, assume the flag caused a linker warning
8924        if test -s conftest.err && $GREP single_module conftest.err; then
8925	  cat conftest.err >&5
8926	# Otherwise, if the output was created with a 0 exit code from
8927	# the compiler, it worked.
8928	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8929	  lt_cv_apple_cc_single_mod=yes
8930	else
8931	  cat conftest.err >&5
8932	fi
8933	rm -rf libconftest.dylib*
8934	rm -f conftest.*
8935      fi ;;
8936esac
8937fi
8938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8939printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8940
8941    # Feature test to disable chained fixups since it is not
8942    # compatible with '-undefined dynamic_lookup'
8943    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8944printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8945if test ${lt_cv_support_no_fixup_chains+y}
8946then :
8947  printf %s "(cached) " >&6
8948else case e in #(
8949  e)  save_LDFLAGS=$LDFLAGS
8950        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8951        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953
8954int
8955main (void)
8956{
8957
8958  ;
8959  return 0;
8960}
8961_ACEOF
8962if ac_fn_c_try_link "$LINENO"
8963then :
8964  lt_cv_support_no_fixup_chains=yes
8965else case e in #(
8966  e) lt_cv_support_no_fixup_chains=no
8967         ;;
8968esac
8969fi
8970rm -f core conftest.err conftest.$ac_objext conftest.beam \
8971    conftest$ac_exeext conftest.$ac_ext
8972        LDFLAGS=$save_LDFLAGS
8973
8974     ;;
8975esac
8976fi
8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8978printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8979
8980    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8981printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8982if test ${lt_cv_ld_exported_symbols_list+y}
8983then :
8984  printf %s "(cached) " >&6
8985else case e in #(
8986  e) lt_cv_ld_exported_symbols_list=no
8987      save_LDFLAGS=$LDFLAGS
8988      echo "_main" > conftest.sym
8989      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8990      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991/* end confdefs.h.  */
8992
8993int
8994main (void)
8995{
8996
8997  ;
8998  return 0;
8999}
9000_ACEOF
9001if ac_fn_c_try_link "$LINENO"
9002then :
9003  lt_cv_ld_exported_symbols_list=yes
9004else case e in #(
9005  e) lt_cv_ld_exported_symbols_list=no ;;
9006esac
9007fi
9008rm -f core conftest.err conftest.$ac_objext conftest.beam \
9009    conftest$ac_exeext conftest.$ac_ext
9010	LDFLAGS=$save_LDFLAGS
9011     ;;
9012esac
9013fi
9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9015printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9016
9017    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9018printf %s "checking for -force_load linker flag... " >&6; }
9019if test ${lt_cv_ld_force_load+y}
9020then :
9021  printf %s "(cached) " >&6
9022else case e in #(
9023  e) lt_cv_ld_force_load=no
9024      cat > conftest.c << _LT_EOF
9025int forced_loaded() { return 2;}
9026_LT_EOF
9027      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9028      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9029      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9030      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9031      echo "$RANLIB libconftest.a" >&5
9032      $RANLIB libconftest.a 2>&5
9033      cat > conftest.c << _LT_EOF
9034int main(void) { return 0;}
9035_LT_EOF
9036      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9037      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9038      _lt_result=$?
9039      if test -s conftest.err && $GREP force_load conftest.err; then
9040	cat conftest.err >&5
9041      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9042	lt_cv_ld_force_load=yes
9043      else
9044	cat conftest.err >&5
9045      fi
9046        rm -f conftest.err libconftest.a conftest conftest.c
9047        rm -rf conftest.dSYM
9048     ;;
9049esac
9050fi
9051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9052printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9053    case $host_os in
9054    rhapsody* | darwin1.[012])
9055      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9056    darwin1.*)
9057      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9058    darwin*)
9059      case $MACOSX_DEPLOYMENT_TARGET,$host in
9060        10.[012],*|,*powerpc*-darwin[5-8]*)
9061          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9062        *)
9063          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9064          if test yes = "$lt_cv_support_no_fixup_chains"; then
9065            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9066          fi
9067        ;;
9068      esac
9069    ;;
9070  esac
9071    if test yes = "$lt_cv_apple_cc_single_mod"; then
9072      _lt_dar_single_mod='$single_module'
9073    fi
9074    _lt_dar_needs_single_mod=no
9075    case $host_os in
9076    rhapsody* | darwin1.*)
9077      _lt_dar_needs_single_mod=yes ;;
9078    darwin*)
9079      # When targeting Mac OS X 10.4 (darwin 8) or later,
9080      # -single_module is the default and -multi_module is unsupported.
9081      # The toolchain on macOS 10.14 (darwin 18) and later cannot
9082      # target any OS version that needs -single_module.
9083      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9084      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9085        _lt_dar_needs_single_mod=yes ;;
9086      esac
9087    ;;
9088    esac
9089    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9090      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9091    else
9092      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9093    fi
9094    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9095      _lt_dsymutil='~$DSYMUTIL $lib || :'
9096    else
9097      _lt_dsymutil=
9098    fi
9099    ;;
9100  esac
9101
9102# func_munge_path_list VARIABLE PATH
9103# -----------------------------------
9104# VARIABLE is name of variable containing _space_ separated list of
9105# directories to be munged by the contents of PATH, which is string
9106# having a format:
9107# "DIR[:DIR]:"
9108#       string "DIR[ DIR]" will be prepended to VARIABLE
9109# ":DIR[:DIR]"
9110#       string "DIR[ DIR]" will be appended to VARIABLE
9111# "DIRP[:DIRP]::[DIRA:]DIRA"
9112#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9113#       "DIRA[ DIRA]" will be appended to VARIABLE
9114# "DIR[:DIR]"
9115#       VARIABLE will be replaced by "DIR[ DIR]"
9116func_munge_path_list ()
9117{
9118    case x$2 in
9119    x)
9120        ;;
9121    *:)
9122        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9123        ;;
9124    x:*)
9125        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9126        ;;
9127    *::*)
9128        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9129        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9130        ;;
9131    *)
9132        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9133        ;;
9134    esac
9135}
9136
9137ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9138"
9139if test "x$ac_cv_header_dlfcn_h" = xyes
9140then :
9141  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9142
9143fi
9144
9145
9146
9147
9148
9149# Set options
9150
9151
9152
9153        enable_dlopen=no
9154
9155
9156  enable_win32_dll=no
9157
9158
9159            # Check whether --enable-shared was given.
9160if test ${enable_shared+y}
9161then :
9162  enableval=$enable_shared; p=${PACKAGE-default}
9163    case $enableval in
9164    yes) enable_shared=yes ;;
9165    no) enable_shared=no ;;
9166    *)
9167      enable_shared=no
9168      # Look at the argument we got.  We use all the common list separators.
9169      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9170      for pkg in $enableval; do
9171	IFS=$lt_save_ifs
9172	if test "X$pkg" = "X$p"; then
9173	  enable_shared=yes
9174	fi
9175      done
9176      IFS=$lt_save_ifs
9177      ;;
9178    esac
9179else case e in #(
9180  e) enable_shared=yes ;;
9181esac
9182fi
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192  # Check whether --enable-static was given.
9193if test ${enable_static+y}
9194then :
9195  enableval=$enable_static; p=${PACKAGE-default}
9196    case $enableval in
9197    yes) enable_static=yes ;;
9198    no) enable_static=no ;;
9199    *)
9200     enable_static=no
9201      # Look at the argument we got.  We use all the common list separators.
9202      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9203      for pkg in $enableval; do
9204	IFS=$lt_save_ifs
9205	if test "X$pkg" = "X$p"; then
9206	  enable_static=yes
9207	fi
9208      done
9209      IFS=$lt_save_ifs
9210      ;;
9211    esac
9212else case e in #(
9213  e) enable_static=yes ;;
9214esac
9215fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225  # Check whether --enable-pic was given.
9226if test ${enable_pic+y}
9227then :
9228  enableval=$enable_pic; lt_p=${PACKAGE-default}
9229     case $enableval in
9230     yes|no) pic_mode=$enableval ;;
9231     *)
9232       pic_mode=default
9233       # Look at the argument we got.  We use all the common list separators.
9234       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9235       for lt_pkg in $enableval; do
9236	 IFS=$lt_save_ifs
9237	 if test "X$lt_pkg" = "X$lt_p"; then
9238	   pic_mode=yes
9239	 fi
9240       done
9241       IFS=$lt_save_ifs
9242       ;;
9243     esac
9244else case e in #(
9245  e)           # Check whether --with-pic was given.
9246if test ${with_pic+y}
9247then :
9248  withval=$with_pic; lt_p=${PACKAGE-default}
9249	 case $withval in
9250	 yes|no) pic_mode=$withval ;;
9251	 *)
9252	   pic_mode=default
9253	   # Look at the argument we got.  We use all the common list separators.
9254	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9255	   for lt_pkg in $withval; do
9256	     IFS=$lt_save_ifs
9257	     if test "X$lt_pkg" = "X$lt_p"; then
9258	       pic_mode=yes
9259	     fi
9260	   done
9261	   IFS=$lt_save_ifs
9262	   ;;
9263	 esac
9264else case e in #(
9265  e) pic_mode=default ;;
9266esac
9267fi
9268
9269     ;;
9270esac
9271fi
9272
9273
9274
9275
9276
9277
9278
9279
9280  # Check whether --enable-fast-install was given.
9281if test ${enable_fast_install+y}
9282then :
9283  enableval=$enable_fast_install; p=${PACKAGE-default}
9284    case $enableval in
9285    yes) enable_fast_install=yes ;;
9286    no) enable_fast_install=no ;;
9287    *)
9288      enable_fast_install=no
9289      # Look at the argument we got.  We use all the common list separators.
9290      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9291      for pkg in $enableval; do
9292	IFS=$lt_save_ifs
9293	if test "X$pkg" = "X$p"; then
9294	  enable_fast_install=yes
9295	fi
9296      done
9297      IFS=$lt_save_ifs
9298      ;;
9299    esac
9300else case e in #(
9301  e) enable_fast_install=yes ;;
9302esac
9303fi
9304
9305
9306
9307
9308
9309
9310
9311
9312  shared_archive_member_spec=
9313case $host,$enable_shared in
9314power*-*-aix[5-9]*,yes)
9315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9316printf %s "checking which variant of shared library versioning to provide... " >&6; }
9317  # Check whether --enable-aix-soname was given.
9318if test ${enable_aix_soname+y}
9319then :
9320  enableval=$enable_aix_soname; case $enableval in
9321     aix|svr4|both)
9322       ;;
9323     *)
9324       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9325       ;;
9326     esac
9327     lt_cv_with_aix_soname=$enable_aix_soname
9328else case e in #(
9329  e) # Check whether --with-aix-soname was given.
9330if test ${with_aix_soname+y}
9331then :
9332  withval=$with_aix_soname; case $withval in
9333         aix|svr4|both)
9334           ;;
9335         *)
9336           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9337           ;;
9338         esac
9339         lt_cv_with_aix_soname=$with_aix_soname
9340else case e in #(
9341  e) if test ${lt_cv_with_aix_soname+y}
9342then :
9343  printf %s "(cached) " >&6
9344else case e in #(
9345  e) lt_cv_with_aix_soname=aix ;;
9346esac
9347fi
9348 ;;
9349esac
9350fi
9351
9352     enable_aix_soname=$lt_cv_with_aix_soname ;;
9353esac
9354fi
9355
9356  with_aix_soname=$enable_aix_soname
9357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9358printf "%s\n" "$with_aix_soname" >&6; }
9359  if test aix != "$with_aix_soname"; then
9360    # For the AIX way of multilib, we name the shared archive member
9361    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9362    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9363    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9364    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9365    if test 64 = "${OBJECT_MODE-32}"; then
9366      shared_archive_member_spec=shr_64
9367    else
9368      shared_archive_member_spec=shr
9369    fi
9370  fi
9371  ;;
9372*)
9373  with_aix_soname=aix
9374  ;;
9375esac
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386# This can be used to rebuild libtool when needed
9387LIBTOOL_DEPS=$ltmain
9388
9389# Always use our own libtool.
9390LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421test -z "$LN_S" && LN_S="ln -s"
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436if test -n "${ZSH_VERSION+set}"; then
9437   setopt NO_GLOB_SUBST
9438fi
9439
9440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9441printf %s "checking for objdir... " >&6; }
9442if test ${lt_cv_objdir+y}
9443then :
9444  printf %s "(cached) " >&6
9445else case e in #(
9446  e) rm -f .libs 2>/dev/null
9447mkdir .libs 2>/dev/null
9448if test -d .libs; then
9449  lt_cv_objdir=.libs
9450else
9451  # MS-DOS does not allow filenames that begin with a dot.
9452  lt_cv_objdir=_libs
9453fi
9454rmdir .libs 2>/dev/null ;;
9455esac
9456fi
9457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9458printf "%s\n" "$lt_cv_objdir" >&6; }
9459objdir=$lt_cv_objdir
9460
9461
9462
9463
9464
9465printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9466
9467
9468
9469
9470case $host_os in
9471aix3*)
9472  # AIX sometimes has problems with the GCC collect2 program.  For some
9473  # reason, if we set the COLLECT_NAMES environment variable, the problems
9474  # vanish in a puff of smoke.
9475  if test set != "${COLLECT_NAMES+set}"; then
9476    COLLECT_NAMES=
9477    export COLLECT_NAMES
9478  fi
9479  ;;
9480esac
9481
9482# Global variables:
9483ofile=libtool
9484can_build_shared=yes
9485
9486# All known linkers require a '.a' archive for static linking (except MSVC and
9487# ICC, which need '.lib').
9488libext=a
9489
9490with_gnu_ld=$lt_cv_prog_gnu_ld
9491
9492old_CC=$CC
9493old_CFLAGS=$CFLAGS
9494
9495# Set sane defaults for various variables
9496test -z "$CC" && CC=cc
9497test -z "$LTCC" && LTCC=$CC
9498test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9499test -z "$LD" && LD=ld
9500test -z "$ac_objext" && ac_objext=o
9501
9502func_cc_basename $compiler
9503cc_basename=$func_cc_basename_result
9504
9505
9506# Only perform the check for file, if the check method requires it
9507test -z "$MAGIC_CMD" && MAGIC_CMD=file
9508case $deplibs_check_method in
9509file_magic*)
9510  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9512printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9513if test ${lt_cv_path_MAGIC_CMD+y}
9514then :
9515  printf %s "(cached) " >&6
9516else case e in #(
9517  e) case $MAGIC_CMD in
9518[\\/*] |  ?:[\\/]*)
9519  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9520  ;;
9521*)
9522  lt_save_MAGIC_CMD=$MAGIC_CMD
9523  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9524  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9525  for ac_dir in $ac_dummy; do
9526    IFS=$lt_save_ifs
9527    test -z "$ac_dir" && ac_dir=.
9528    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9529      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9530      if test -n "$file_magic_test_file"; then
9531	case $deplibs_check_method in
9532	"file_magic "*)
9533	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9534	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9535	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9536	    $EGREP "$file_magic_regex" > /dev/null; then
9537	    :
9538	  else
9539	    cat <<_LT_EOF 1>&2
9540
9541*** Warning: the command libtool uses to detect shared libraries,
9542*** $file_magic_cmd, produces output that libtool cannot recognize.
9543*** The result is that libtool may fail to recognize shared libraries
9544*** as such.  This will affect the creation of libtool libraries that
9545*** depend on shared libraries, but programs linked with such libtool
9546*** libraries will work regardless of this problem.  Nevertheless, you
9547*** may want to report the problem to your system manager and/or to
9548*** bug-libtool@gnu.org
9549
9550_LT_EOF
9551	  fi ;;
9552	esac
9553      fi
9554      break
9555    fi
9556  done
9557  IFS=$lt_save_ifs
9558  MAGIC_CMD=$lt_save_MAGIC_CMD
9559  ;;
9560esac ;;
9561esac
9562fi
9563
9564MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9565if test -n "$MAGIC_CMD"; then
9566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9567printf "%s\n" "$MAGIC_CMD" >&6; }
9568else
9569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570printf "%s\n" "no" >&6; }
9571fi
9572
9573
9574
9575
9576
9577if test -z "$lt_cv_path_MAGIC_CMD"; then
9578  if test -n "$ac_tool_prefix"; then
9579    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9580printf %s "checking for file... " >&6; }
9581if test ${lt_cv_path_MAGIC_CMD+y}
9582then :
9583  printf %s "(cached) " >&6
9584else case e in #(
9585  e) case $MAGIC_CMD in
9586[\\/*] |  ?:[\\/]*)
9587  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9588  ;;
9589*)
9590  lt_save_MAGIC_CMD=$MAGIC_CMD
9591  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9592  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9593  for ac_dir in $ac_dummy; do
9594    IFS=$lt_save_ifs
9595    test -z "$ac_dir" && ac_dir=.
9596    if test -f "$ac_dir/file"; then
9597      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9598      if test -n "$file_magic_test_file"; then
9599	case $deplibs_check_method in
9600	"file_magic "*)
9601	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9602	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9603	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9604	    $EGREP "$file_magic_regex" > /dev/null; then
9605	    :
9606	  else
9607	    cat <<_LT_EOF 1>&2
9608
9609*** Warning: the command libtool uses to detect shared libraries,
9610*** $file_magic_cmd, produces output that libtool cannot recognize.
9611*** The result is that libtool may fail to recognize shared libraries
9612*** as such.  This will affect the creation of libtool libraries that
9613*** depend on shared libraries, but programs linked with such libtool
9614*** libraries will work regardless of this problem.  Nevertheless, you
9615*** may want to report the problem to your system manager and/or to
9616*** bug-libtool@gnu.org
9617
9618_LT_EOF
9619	  fi ;;
9620	esac
9621      fi
9622      break
9623    fi
9624  done
9625  IFS=$lt_save_ifs
9626  MAGIC_CMD=$lt_save_MAGIC_CMD
9627  ;;
9628esac ;;
9629esac
9630fi
9631
9632MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9633if test -n "$MAGIC_CMD"; then
9634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9635printf "%s\n" "$MAGIC_CMD" >&6; }
9636else
9637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638printf "%s\n" "no" >&6; }
9639fi
9640
9641
9642  else
9643    MAGIC_CMD=:
9644  fi
9645fi
9646
9647  fi
9648  ;;
9649esac
9650
9651# Use C for the default configuration in the libtool script
9652
9653lt_save_CC=$CC
9654ac_ext=c
9655ac_cpp='$CPP $CPPFLAGS'
9656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658ac_compiler_gnu=$ac_cv_c_compiler_gnu
9659
9660
9661# Source file extension for C test sources.
9662ac_ext=c
9663
9664# Object file extension for compiled C test sources.
9665objext=o
9666objext=$objext
9667
9668# Code to be used in simple compile tests
9669lt_simple_compile_test_code="int some_variable = 0;"
9670
9671# Code to be used in simple link tests
9672lt_simple_link_test_code='int main(void){return(0);}'
9673
9674
9675
9676
9677
9678
9679
9680# If no C compiler was specified, use CC.
9681LTCC=${LTCC-"$CC"}
9682
9683# If no C compiler flags were specified, use CFLAGS.
9684LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9685
9686# Allow CC to be a program name with arguments.
9687compiler=$CC
9688
9689# Save the default compiler, since it gets overwritten when the other
9690# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9691compiler_DEFAULT=$CC
9692
9693# save warnings/boilerplate of simple test code
9694ac_outfile=conftest.$ac_objext
9695echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9696eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9697_lt_compiler_boilerplate=`cat conftest.err`
9698$RM conftest*
9699
9700ac_outfile=conftest.$ac_objext
9701echo "$lt_simple_link_test_code" >conftest.$ac_ext
9702eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9703_lt_linker_boilerplate=`cat conftest.err`
9704$RM -r conftest*
9705
9706
9707## CAVEAT EMPTOR:
9708## There is no encapsulation within the following macros, do not change
9709## the running order or otherwise move them around unless you know exactly
9710## what you are doing...
9711if test -n "$compiler"; then
9712
9713lt_prog_compiler_no_builtin_flag=
9714
9715if test yes = "$GCC"; then
9716  case $cc_basename in
9717  nvcc*)
9718    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9719  *)
9720    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9721  esac
9722
9723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9724printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9725if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9726then :
9727  printf %s "(cached) " >&6
9728else case e in #(
9729  e) lt_cv_prog_compiler_rtti_exceptions=no
9730   ac_outfile=conftest.$ac_objext
9731   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9732   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9733   # Insert the option either (1) after the last *FLAGS variable, or
9734   # (2) before a word containing "conftest.", or (3) at the end.
9735   # Note that $ac_compile itself does not contain backslashes and begins
9736   # with a dollar sign (not a hyphen), so the echo should work correctly.
9737   # The option is referenced via a variable to avoid confusing sed.
9738   lt_compile=`echo "$ac_compile" | $SED \
9739   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9741   -e 's:$: $lt_compiler_flag:'`
9742   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9743   (eval "$lt_compile" 2>conftest.err)
9744   ac_status=$?
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   if (exit $ac_status) && test -s "$ac_outfile"; then
9748     # The compiler can only warn and ignore the option if not recognized
9749     # So say no if there are warnings other than the usual output.
9750     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9751     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9752     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9753       lt_cv_prog_compiler_rtti_exceptions=yes
9754     fi
9755   fi
9756   $RM conftest*
9757 ;;
9758esac
9759fi
9760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9761printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9762
9763if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9764    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9765else
9766    :
9767fi
9768
9769fi
9770
9771
9772
9773
9774
9775
9776  lt_prog_compiler_wl=
9777lt_prog_compiler_pic=
9778lt_prog_compiler_static=
9779
9780
9781  if test yes = "$GCC"; then
9782    lt_prog_compiler_wl='-Wl,'
9783    lt_prog_compiler_static='-static'
9784
9785    case $host_os in
9786      aix*)
9787      # All AIX code is PIC.
9788      if test ia64 = "$host_cpu"; then
9789	# AIX 5 now supports IA64 processor
9790	lt_prog_compiler_static='-Bstatic'
9791      fi
9792      lt_prog_compiler_pic='-fPIC'
9793      ;;
9794
9795    amigaos*)
9796      case $host_cpu in
9797      powerpc)
9798            # see comment about AmigaOS4 .so support
9799            lt_prog_compiler_pic='-fPIC'
9800        ;;
9801      m68k)
9802            # FIXME: we need at least 68020 code to build shared libraries, but
9803            # adding the '-m68020' flag to GCC prevents building anything better,
9804            # like '-m68040'.
9805            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9806        ;;
9807      esac
9808      ;;
9809
9810    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9811      # PIC is the default for these OSes.
9812      ;;
9813
9814    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9815      # This hack is so that the source file can tell whether it is being
9816      # built for inclusion in a dll (and should export symbols for example).
9817      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9818      # (--disable-auto-import) libraries
9819      lt_prog_compiler_pic='-DDLL_EXPORT'
9820      case $host_os in
9821      os2*)
9822	lt_prog_compiler_static='$wl-static'
9823	;;
9824      esac
9825      ;;
9826
9827    darwin* | rhapsody*)
9828      # PIC is the default on this platform
9829      # Common symbols not allowed in MH_DYLIB files
9830      lt_prog_compiler_pic='-fno-common'
9831      ;;
9832
9833    haiku*)
9834      # PIC is the default for Haiku.
9835      # The "-static" flag exists, but is broken.
9836      lt_prog_compiler_static=
9837      ;;
9838
9839    hpux*)
9840      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9841      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9842      # sets the default TLS model and affects inlining.
9843      case $host_cpu in
9844      hppa*64*)
9845	# +Z the default
9846	;;
9847      *)
9848	lt_prog_compiler_pic='-fPIC'
9849	;;
9850      esac
9851      ;;
9852
9853    interix[3-9]*)
9854      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9855      # Instead, we relocate shared libraries at runtime.
9856      ;;
9857
9858    msdosdjgpp*)
9859      # Just because we use GCC doesn't mean we suddenly get shared libraries
9860      # on systems that don't support them.
9861      lt_prog_compiler_can_build_shared=no
9862      enable_shared=no
9863      ;;
9864
9865    *nto* | *qnx*)
9866      # QNX uses GNU C++, but need to define -shared option too, otherwise
9867      # it will coredump.
9868      lt_prog_compiler_pic='-fPIC -shared'
9869      ;;
9870
9871    sysv4*MP*)
9872      if test -d /usr/nec; then
9873	lt_prog_compiler_pic=-Kconform_pic
9874      fi
9875      ;;
9876
9877    *)
9878      lt_prog_compiler_pic='-fPIC'
9879      ;;
9880    esac
9881
9882    case $cc_basename in
9883    nvcc*) # Cuda Compiler Driver 2.2
9884      lt_prog_compiler_wl='-Xlinker '
9885      if test -n "$lt_prog_compiler_pic"; then
9886        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9887      fi
9888      ;;
9889    esac
9890  else
9891    # PORTME Check for flag to pass linker flags through the system compiler.
9892    case $host_os in
9893    aix*)
9894      lt_prog_compiler_wl='-Wl,'
9895      if test ia64 = "$host_cpu"; then
9896	# AIX 5 now supports IA64 processor
9897	lt_prog_compiler_static='-Bstatic'
9898      else
9899	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9900      fi
9901      ;;
9902
9903    darwin* | rhapsody*)
9904      # PIC is the default on this platform
9905      # Common symbols not allowed in MH_DYLIB files
9906      lt_prog_compiler_pic='-fno-common'
9907      case $cc_basename in
9908      nagfor*)
9909        # NAG Fortran compiler
9910        lt_prog_compiler_wl='-Wl,-Wl,,'
9911        lt_prog_compiler_pic='-PIC'
9912        lt_prog_compiler_static='-Bstatic'
9913        ;;
9914      esac
9915      ;;
9916
9917    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9918      # This hack is so that the source file can tell whether it is being
9919      # built for inclusion in a dll (and should export symbols for example).
9920      lt_prog_compiler_pic='-DDLL_EXPORT'
9921      case $host_os in
9922      os2*)
9923	lt_prog_compiler_static='$wl-static'
9924	;;
9925      esac
9926      ;;
9927
9928    hpux9* | hpux10* | hpux11*)
9929      lt_prog_compiler_wl='-Wl,'
9930      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9931      # not for PA HP-UX.
9932      case $host_cpu in
9933      hppa*64*|ia64*)
9934	# +Z the default
9935	;;
9936      *)
9937	lt_prog_compiler_pic='+Z'
9938	;;
9939      esac
9940      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9941      lt_prog_compiler_static='$wl-a ${wl}archive'
9942      ;;
9943
9944    irix5* | irix6* | nonstopux*)
9945      lt_prog_compiler_wl='-Wl,'
9946      # PIC (with -KPIC) is the default.
9947      lt_prog_compiler_static='-non_shared'
9948      ;;
9949
9950    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9951      case $cc_basename in
9952      # old Intel for x86_64, which still supported -KPIC.
9953      ecc*)
9954	lt_prog_compiler_wl='-Wl,'
9955	lt_prog_compiler_pic='-KPIC'
9956	lt_prog_compiler_static='-static'
9957        ;;
9958      *flang* | ftn | f18* | f95*)
9959        # Flang compiler.
9960	lt_prog_compiler_wl='-Wl,'
9961	lt_prog_compiler_pic='-fPIC'
9962	lt_prog_compiler_static='-static'
9963        ;;
9964      # icc used to be incompatible with GCC.
9965      # ICC 10 doesn't accept -KPIC any more.
9966      icc* | ifort*)
9967	lt_prog_compiler_wl='-Wl,'
9968	lt_prog_compiler_pic='-fPIC'
9969	lt_prog_compiler_static='-static'
9970        ;;
9971      # Lahey Fortran 8.1.
9972      lf95*)
9973	lt_prog_compiler_wl='-Wl,'
9974	lt_prog_compiler_pic='--shared'
9975	lt_prog_compiler_static='--static'
9976	;;
9977      nagfor*)
9978	# NAG Fortran compiler
9979	lt_prog_compiler_wl='-Wl,-Wl,,'
9980	lt_prog_compiler_pic='-PIC'
9981	lt_prog_compiler_static='-Bstatic'
9982	;;
9983      tcc*)
9984	# Fabrice Bellard et al's Tiny C Compiler
9985	lt_prog_compiler_wl='-Wl,'
9986	lt_prog_compiler_pic='-fPIC'
9987	lt_prog_compiler_static='-static'
9988	;;
9989      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9990        # Portland Group compilers (*not* the Pentium gcc compiler,
9991	# which looks to be a dead project)
9992	lt_prog_compiler_wl='-Wl,'
9993	lt_prog_compiler_pic='-fpic'
9994	lt_prog_compiler_static='-Bstatic'
9995        ;;
9996      ccc*)
9997        lt_prog_compiler_wl='-Wl,'
9998        # All Alpha code is PIC.
9999        lt_prog_compiler_static='-non_shared'
10000        ;;
10001      xl* | bgxl* | bgf* | mpixl*)
10002	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10003	lt_prog_compiler_wl='-Wl,'
10004	lt_prog_compiler_pic='-qpic'
10005	lt_prog_compiler_static='-qstaticlink'
10006	;;
10007      *)
10008	case `$CC -V 2>&1 | $SED 5q` in
10009	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10010	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10011	  lt_prog_compiler_pic='-KPIC'
10012	  lt_prog_compiler_static='-Bstatic'
10013	  lt_prog_compiler_wl=''
10014	  ;;
10015	*Sun\ F* | *Sun*Fortran*)
10016	  lt_prog_compiler_pic='-KPIC'
10017	  lt_prog_compiler_static='-Bstatic'
10018	  lt_prog_compiler_wl='-Qoption ld '
10019	  ;;
10020	*Sun\ C*)
10021	  # Sun C 5.9
10022	  lt_prog_compiler_pic='-KPIC'
10023	  lt_prog_compiler_static='-Bstatic'
10024	  lt_prog_compiler_wl='-Wl,'
10025	  ;;
10026        *Intel*\ [CF]*Compiler*)
10027	  lt_prog_compiler_wl='-Wl,'
10028	  lt_prog_compiler_pic='-fPIC'
10029	  lt_prog_compiler_static='-static'
10030	  ;;
10031	*Portland\ Group*)
10032	  lt_prog_compiler_wl='-Wl,'
10033	  lt_prog_compiler_pic='-fpic'
10034	  lt_prog_compiler_static='-Bstatic'
10035	  ;;
10036	esac
10037	;;
10038      esac
10039      ;;
10040
10041    newsos6)
10042      lt_prog_compiler_pic='-KPIC'
10043      lt_prog_compiler_static='-Bstatic'
10044      ;;
10045
10046    *-mlibc)
10047      lt_prog_compiler_wl='-Wl,'
10048      lt_prog_compiler_pic='-fPIC'
10049      lt_prog_compiler_static='-static'
10050      ;;
10051
10052    *nto* | *qnx*)
10053      # QNX uses GNU C++, but need to define -shared option too, otherwise
10054      # it will coredump.
10055      lt_prog_compiler_pic='-fPIC -shared'
10056      ;;
10057
10058    osf3* | osf4* | osf5*)
10059      lt_prog_compiler_wl='-Wl,'
10060      # All OSF/1 code is PIC.
10061      lt_prog_compiler_static='-non_shared'
10062      ;;
10063
10064    rdos*)
10065      lt_prog_compiler_static='-non_shared'
10066      ;;
10067
10068    serenity*)
10069      ;;
10070
10071    solaris*)
10072      lt_prog_compiler_pic='-KPIC'
10073      lt_prog_compiler_static='-Bstatic'
10074      case $cc_basename in
10075      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10076	lt_prog_compiler_wl='-Qoption ld ';;
10077      *)
10078	lt_prog_compiler_wl='-Wl,';;
10079      esac
10080      ;;
10081
10082    sunos4*)
10083      lt_prog_compiler_wl='-Qoption ld '
10084      lt_prog_compiler_pic='-PIC'
10085      lt_prog_compiler_static='-Bstatic'
10086      ;;
10087
10088    sysv4 | sysv4.2uw2* | sysv4.3*)
10089      lt_prog_compiler_wl='-Wl,'
10090      lt_prog_compiler_pic='-KPIC'
10091      lt_prog_compiler_static='-Bstatic'
10092      ;;
10093
10094    sysv4*MP*)
10095      if test -d /usr/nec; then
10096	lt_prog_compiler_pic='-Kconform_pic'
10097	lt_prog_compiler_static='-Bstatic'
10098      fi
10099      ;;
10100
10101    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10102      lt_prog_compiler_wl='-Wl,'
10103      lt_prog_compiler_pic='-KPIC'
10104      lt_prog_compiler_static='-Bstatic'
10105      ;;
10106
10107    unicos*)
10108      lt_prog_compiler_wl='-Wl,'
10109      lt_prog_compiler_can_build_shared=no
10110      ;;
10111
10112    uts4*)
10113      lt_prog_compiler_pic='-pic'
10114      lt_prog_compiler_static='-Bstatic'
10115      ;;
10116
10117    *)
10118      lt_prog_compiler_can_build_shared=no
10119      ;;
10120    esac
10121  fi
10122
10123case $host_os in
10124  # For platforms that do not support PIC, -DPIC is meaningless:
10125  *djgpp*)
10126    lt_prog_compiler_pic=
10127    ;;
10128  *)
10129    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10130    ;;
10131esac
10132
10133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10134printf %s "checking for $compiler option to produce PIC... " >&6; }
10135if test ${lt_cv_prog_compiler_pic+y}
10136then :
10137  printf %s "(cached) " >&6
10138else case e in #(
10139  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10140esac
10141fi
10142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10143printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10144lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10145
10146#
10147# Check to make sure the PIC flag actually works.
10148#
10149if test -n "$lt_prog_compiler_pic"; then
10150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10151printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10152if test ${lt_cv_prog_compiler_pic_works+y}
10153then :
10154  printf %s "(cached) " >&6
10155else case e in #(
10156  e) lt_cv_prog_compiler_pic_works=no
10157   ac_outfile=conftest.$ac_objext
10158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10159   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10160   # Insert the option either (1) after the last *FLAGS variable, or
10161   # (2) before a word containing "conftest.", or (3) at the end.
10162   # Note that $ac_compile itself does not contain backslashes and begins
10163   # with a dollar sign (not a hyphen), so the echo should work correctly.
10164   # The option is referenced via a variable to avoid confusing sed.
10165   lt_compile=`echo "$ac_compile" | $SED \
10166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168   -e 's:$: $lt_compiler_flag:'`
10169   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10170   (eval "$lt_compile" 2>conftest.err)
10171   ac_status=$?
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   if (exit $ac_status) && test -s "$ac_outfile"; then
10175     # The compiler can only warn and ignore the option if not recognized
10176     # So say no if there are warnings other than the usual output.
10177     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10180       lt_cv_prog_compiler_pic_works=yes
10181     fi
10182   fi
10183   $RM conftest*
10184 ;;
10185esac
10186fi
10187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10188printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10189
10190if test yes = "$lt_cv_prog_compiler_pic_works"; then
10191    case $lt_prog_compiler_pic in
10192     "" | " "*) ;;
10193     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10194     esac
10195else
10196    lt_prog_compiler_pic=
10197     lt_prog_compiler_can_build_shared=no
10198fi
10199
10200fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212#
10213# Check to make sure the static flag actually works.
10214#
10215wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10217printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10218if test ${lt_cv_prog_compiler_static_works+y}
10219then :
10220  printf %s "(cached) " >&6
10221else case e in #(
10222  e) lt_cv_prog_compiler_static_works=no
10223   save_LDFLAGS=$LDFLAGS
10224   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10225   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10226   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10227     # The linker can only warn and ignore the option if not recognized
10228     # So say no if there are warnings
10229     if test -s conftest.err; then
10230       # Append any errors to the config.log.
10231       cat conftest.err 1>&5
10232       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10233       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234       if diff conftest.exp conftest.er2 >/dev/null; then
10235         lt_cv_prog_compiler_static_works=yes
10236       fi
10237     else
10238       lt_cv_prog_compiler_static_works=yes
10239     fi
10240   fi
10241   $RM -r conftest*
10242   LDFLAGS=$save_LDFLAGS
10243 ;;
10244esac
10245fi
10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10247printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10248
10249if test yes = "$lt_cv_prog_compiler_static_works"; then
10250    :
10251else
10252    lt_prog_compiler_static=
10253fi
10254
10255
10256
10257
10258
10259
10260
10261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10262printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10263if test ${lt_cv_prog_compiler_c_o+y}
10264then :
10265  printf %s "(cached) " >&6
10266else case e in #(
10267  e) lt_cv_prog_compiler_c_o=no
10268   $RM -r conftest 2>/dev/null
10269   mkdir conftest
10270   cd conftest
10271   mkdir out
10272   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10273
10274   lt_compiler_flag="-o out/conftest2.$ac_objext"
10275   # Insert the option either (1) after the last *FLAGS variable, or
10276   # (2) before a word containing "conftest.", or (3) at the end.
10277   # Note that $ac_compile itself does not contain backslashes and begins
10278   # with a dollar sign (not a hyphen), so the echo should work correctly.
10279   lt_compile=`echo "$ac_compile" | $SED \
10280   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10281   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10282   -e 's:$: $lt_compiler_flag:'`
10283   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10284   (eval "$lt_compile" 2>out/conftest.err)
10285   ac_status=$?
10286   cat out/conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10289   then
10290     # The compiler can only warn and ignore the option if not recognized
10291     # So say no if there are warnings
10292     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10293     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10294     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10295       lt_cv_prog_compiler_c_o=yes
10296     fi
10297   fi
10298   chmod u+w . 2>&5
10299   $RM conftest*
10300   # SGI C++ compiler will create directory out/ii_files/ for
10301   # template instantiation
10302   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10303   $RM out/* && rmdir out
10304   cd ..
10305   $RM -r conftest
10306   $RM conftest*
10307 ;;
10308esac
10309fi
10310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10311printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10312
10313
10314
10315
10316
10317
10318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10319printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10320if test ${lt_cv_prog_compiler_c_o+y}
10321then :
10322  printf %s "(cached) " >&6
10323else case e in #(
10324  e) lt_cv_prog_compiler_c_o=no
10325   $RM -r conftest 2>/dev/null
10326   mkdir conftest
10327   cd conftest
10328   mkdir out
10329   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10330
10331   lt_compiler_flag="-o out/conftest2.$ac_objext"
10332   # Insert the option either (1) after the last *FLAGS variable, or
10333   # (2) before a word containing "conftest.", or (3) at the end.
10334   # Note that $ac_compile itself does not contain backslashes and begins
10335   # with a dollar sign (not a hyphen), so the echo should work correctly.
10336   lt_compile=`echo "$ac_compile" | $SED \
10337   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10338   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10339   -e 's:$: $lt_compiler_flag:'`
10340   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10341   (eval "$lt_compile" 2>out/conftest.err)
10342   ac_status=$?
10343   cat out/conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10346   then
10347     # The compiler can only warn and ignore the option if not recognized
10348     # So say no if there are warnings
10349     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10350     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10351     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10352       lt_cv_prog_compiler_c_o=yes
10353     fi
10354   fi
10355   chmod u+w . 2>&5
10356   $RM conftest*
10357   # SGI C++ compiler will create directory out/ii_files/ for
10358   # template instantiation
10359   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10360   $RM out/* && rmdir out
10361   cd ..
10362   $RM -r conftest
10363   $RM conftest*
10364 ;;
10365esac
10366fi
10367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10368printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10369
10370
10371
10372
10373hard_links=nottested
10374if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10375  # do not overwrite the value of need_locks provided by the user
10376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10377printf %s "checking if we can lock with hard links... " >&6; }
10378  hard_links=yes
10379  $RM conftest*
10380  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10381  touch conftest.a
10382  ln conftest.a conftest.b 2>&5 || hard_links=no
10383  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10385printf "%s\n" "$hard_links" >&6; }
10386  if test no = "$hard_links"; then
10387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10388printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10389    need_locks=warn
10390  fi
10391else
10392  need_locks=no
10393fi
10394
10395
10396
10397
10398
10399
10400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10401printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10402
10403  runpath_var=
10404  allow_undefined_flag=
10405  always_export_symbols=no
10406  archive_cmds=
10407  archive_expsym_cmds=
10408  compiler_needs_object=no
10409  enable_shared_with_static_runtimes=no
10410  export_dynamic_flag_spec=
10411  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10412  hardcode_automatic=no
10413  hardcode_direct=no
10414  hardcode_direct_absolute=no
10415  hardcode_libdir_flag_spec=
10416  hardcode_libdir_separator=
10417  hardcode_minus_L=no
10418  hardcode_shlibpath_var=unsupported
10419  inherit_rpath=no
10420  link_all_deplibs=unknown
10421  module_cmds=
10422  module_expsym_cmds=
10423  old_archive_from_new_cmds=
10424  old_archive_from_expsyms_cmds=
10425  thread_safe_flag_spec=
10426  whole_archive_flag_spec=
10427  # include_expsyms should be a list of space-separated symbols to be *always*
10428  # included in the symbol list
10429  include_expsyms=
10430  # exclude_expsyms can be an extended regexp of symbols to exclude
10431  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10432  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10433  # as well as any symbol that contains 'd'.
10434  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10435  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10436  # platforms (ab)use it in PIC code, but their linkers get confused if
10437  # the symbol is explicitly referenced.  Since portable code cannot
10438  # rely on this symbol name, it's probably fine to never include it in
10439  # preloaded symbol tables.
10440  # Exclude shared library initialization/finalization symbols.
10441  extract_expsyms_cmds=
10442
10443  case $host_os in
10444  cygwin* | mingw* | windows* | pw32* | cegcc*)
10445    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10446    # When not using gcc, we currently assume that we are using
10447    # Microsoft Visual C++ or Intel C++ Compiler.
10448    if test yes != "$GCC"; then
10449      with_gnu_ld=no
10450    fi
10451    ;;
10452  interix*)
10453    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10454    with_gnu_ld=yes
10455    ;;
10456  esac
10457
10458  ld_shlibs=yes
10459
10460  # On some targets, GNU ld is compatible enough with the native linker
10461  # that we're better off using the native interface for both.
10462  lt_use_gnu_ld_interface=no
10463  if test yes = "$with_gnu_ld"; then
10464    case $host_os in
10465      aix*)
10466	# The AIX port of GNU ld has always aspired to compatibility
10467	# with the native linker.  However, as the warning in the GNU ld
10468	# block says, versions before 2.19.5* couldn't really create working
10469	# shared libraries, regardless of the interface used.
10470	case `$LD -v 2>&1` in
10471	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10472	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10473	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10474	  *)
10475	    lt_use_gnu_ld_interface=yes
10476	    ;;
10477	esac
10478	;;
10479      *)
10480	lt_use_gnu_ld_interface=yes
10481	;;
10482    esac
10483  fi
10484
10485  if test yes = "$lt_use_gnu_ld_interface"; then
10486    # If archive_cmds runs LD, not CC, wlarc should be empty
10487    wlarc='$wl'
10488
10489    # Set some defaults for GNU ld with shared library support. These
10490    # are reset later if shared libraries are not supported. Putting them
10491    # here allows them to be overridden if necessary.
10492    runpath_var=LD_RUN_PATH
10493    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10494    export_dynamic_flag_spec='$wl--export-dynamic'
10495    # ancient GNU ld didn't support --whole-archive et. al.
10496    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10497      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10498    else
10499      whole_archive_flag_spec=
10500    fi
10501    supports_anon_versioning=no
10502    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10503      *GNU\ gold*) supports_anon_versioning=yes ;;
10504      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10505      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10506      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10507      *\ 2.11.*) ;; # other 2.11 versions
10508      *) supports_anon_versioning=yes ;;
10509    esac
10510
10511    # See if GNU ld supports shared libraries.
10512    case $host_os in
10513    aix[3-9]*)
10514      # On AIX/PPC, the GNU linker is very broken
10515      if test ia64 != "$host_cpu"; then
10516	ld_shlibs=no
10517	cat <<_LT_EOF 1>&2
10518
10519*** Warning: the GNU linker, at least up to release 2.19, is reported
10520*** to be unable to reliably create shared libraries on AIX.
10521*** Therefore, libtool is disabling shared libraries support.  If you
10522*** really care for shared libraries, you may want to install binutils
10523*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10524*** You will then need to restart the configuration process.
10525
10526_LT_EOF
10527      fi
10528      ;;
10529
10530    amigaos*)
10531      case $host_cpu in
10532      powerpc)
10533            # see comment about AmigaOS4 .so support
10534            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10535            archive_expsym_cmds=''
10536        ;;
10537      m68k)
10538            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)'
10539            hardcode_libdir_flag_spec='-L$libdir'
10540            hardcode_minus_L=yes
10541        ;;
10542      esac
10543      ;;
10544
10545    beos*)
10546      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10547	allow_undefined_flag=unsupported
10548	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10549	# support --undefined.  This deserves some investigation.  FIXME
10550	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10551      else
10552	ld_shlibs=no
10553      fi
10554      ;;
10555
10556    cygwin* | mingw* | windows* | pw32* | cegcc*)
10557      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10558      # as there is no search path for DLLs.
10559      hardcode_libdir_flag_spec='-L$libdir'
10560      export_dynamic_flag_spec='$wl--export-all-symbols'
10561      allow_undefined_flag=unsupported
10562      always_export_symbols=no
10563      enable_shared_with_static_runtimes=yes
10564      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'
10565      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10566      file_list_spec='@'
10567
10568      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10569        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10570	# If the export-symbols file already is a .def file, use it as
10571	# is; otherwise, prepend EXPORTS...
10572	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10573          cp $export_symbols $output_objdir/$soname.def;
10574        else
10575          echo EXPORTS > $output_objdir/$soname.def;
10576          cat $export_symbols >> $output_objdir/$soname.def;
10577        fi~
10578        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10579      else
10580	ld_shlibs=no
10581      fi
10582      ;;
10583
10584    haiku*)
10585      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10586      link_all_deplibs=no
10587      ;;
10588
10589    os2*)
10590      hardcode_libdir_flag_spec='-L$libdir'
10591      hardcode_minus_L=yes
10592      allow_undefined_flag=unsupported
10593      shrext_cmds=.dll
10594      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10595	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10596	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10597	$ECHO EXPORTS >> $output_objdir/$libname.def~
10598	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10599	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10600	emximp -o $lib $output_objdir/$libname.def'
10601      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10602	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10603	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10604	$ECHO EXPORTS >> $output_objdir/$libname.def~
10605	prefix_cmds="$SED"~
10606	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10607	  prefix_cmds="$prefix_cmds -e 1d";
10608	fi~
10609	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10610	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10611	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10612	emximp -o $lib $output_objdir/$libname.def'
10613      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10614      enable_shared_with_static_runtimes=yes
10615      file_list_spec='@'
10616      ;;
10617
10618    interix[3-9]*)
10619      hardcode_direct=no
10620      hardcode_shlibpath_var=no
10621      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10622      export_dynamic_flag_spec='$wl-E'
10623      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10624      # Instead, shared libraries are loaded at an image base (0x10000000 by
10625      # default) and relocated if they conflict, which is a slow very memory
10626      # consuming and fragmenting process.  To avoid this, we pick a random,
10627      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10628      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10629      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10630      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'
10631      ;;
10632
10633    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10634      tmp_diet=no
10635      if test linux-dietlibc = "$host_os"; then
10636	case $cc_basename in
10637	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10638	esac
10639      fi
10640      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10641	 && test no = "$tmp_diet"
10642      then
10643	tmp_addflag=' $pic_flag'
10644	tmp_sharedflag='-shared'
10645	case $cc_basename,$host_cpu in
10646        pgcc*)				# Portland Group C compiler
10647	  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'
10648	  tmp_addflag=' $pic_flag'
10649	  ;;
10650	pgf77* | pgf90* | pgf95* | pgfortran*)
10651					# Portland Group f77 and f90 compilers
10652	  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'
10653	  tmp_addflag=' $pic_flag -Mnomain' ;;
10654	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10655	  tmp_addflag=' -i_dynamic' ;;
10656	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10657	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10658	ifc* | ifort*)			# Intel Fortran compiler
10659	  tmp_addflag=' -nofor_main' ;;
10660	lf95*)				# Lahey Fortran 8.1
10661	  whole_archive_flag_spec=
10662	  tmp_sharedflag='--shared' ;;
10663        nagfor*)                        # NAGFOR 5.3
10664          tmp_sharedflag='-Wl,-shared' ;;
10665	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10666	  tmp_sharedflag='-qmkshrobj'
10667	  tmp_addflag= ;;
10668	nvcc*)	# Cuda Compiler Driver 2.2
10669	  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'
10670	  compiler_needs_object=yes
10671	  ;;
10672	esac
10673	case `$CC -V 2>&1 | $SED 5q` in
10674	*Sun\ C*)			# Sun C 5.9
10675	  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'
10676	  compiler_needs_object=yes
10677	  tmp_sharedflag='-G' ;;
10678	*Sun\ F*)			# Sun Fortran 8.3
10679	  tmp_sharedflag='-G' ;;
10680	esac
10681	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10682
10683        if test yes = "$supports_anon_versioning"; then
10684          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10685            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10686            echo "local: *; };" >> $output_objdir/$libname.ver~
10687            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10688        fi
10689
10690	case $cc_basename in
10691	tcc*)
10692	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10693	  export_dynamic_flag_spec='-rdynamic'
10694	  ;;
10695	xlf* | bgf* | bgxlf* | mpixlf*)
10696	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10697	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10698	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10699	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10700	  if test yes = "$supports_anon_versioning"; then
10701	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10702              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10703              echo "local: *; };" >> $output_objdir/$libname.ver~
10704              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10705	  fi
10706	  ;;
10707	esac
10708      else
10709        ld_shlibs=no
10710      fi
10711      ;;
10712
10713    *-mlibc)
10714	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10715	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10716      ;;
10717
10718    netbsd* | netbsdelf*-gnu)
10719      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10720	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10721	wlarc=
10722      else
10723	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10724	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10725      fi
10726      ;;
10727
10728    solaris*)
10729      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10730	ld_shlibs=no
10731	cat <<_LT_EOF 1>&2
10732
10733*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10734*** create shared libraries on Solaris systems.  Therefore, libtool
10735*** is disabling shared libraries support.  We urge you to upgrade GNU
10736*** binutils to release 2.9.1 or newer.  Another option is to modify
10737*** your PATH or compiler configuration so that the native linker is
10738*** used, and then restart.
10739
10740_LT_EOF
10741      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10742	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10743	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10744      else
10745	ld_shlibs=no
10746      fi
10747      ;;
10748
10749    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10750      case `$LD -v 2>&1` in
10751        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10752	ld_shlibs=no
10753	cat <<_LT_EOF 1>&2
10754
10755*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10756*** reliably create shared libraries on SCO systems.  Therefore, libtool
10757*** is disabling shared libraries support.  We urge you to upgrade GNU
10758*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10759*** your PATH or compiler configuration so that the native linker is
10760*** used, and then restart.
10761
10762_LT_EOF
10763	;;
10764	*)
10765	  # For security reasons, it is highly recommended that you always
10766	  # use absolute paths for naming shared libraries, and exclude the
10767	  # DT_RUNPATH tag from executables and libraries.  But doing so
10768	  # requires that you compile everything twice, which is a pain.
10769	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10770	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10771	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10772	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10773	  else
10774	    ld_shlibs=no
10775	  fi
10776	;;
10777      esac
10778      ;;
10779
10780    sunos4*)
10781      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10782      wlarc=
10783      hardcode_direct=yes
10784      hardcode_shlibpath_var=no
10785      ;;
10786
10787    *)
10788      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10789	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10790	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10791      else
10792	ld_shlibs=no
10793      fi
10794      ;;
10795    esac
10796
10797    if test no = "$ld_shlibs"; then
10798      runpath_var=
10799      hardcode_libdir_flag_spec=
10800      export_dynamic_flag_spec=
10801      whole_archive_flag_spec=
10802    fi
10803  else
10804    # PORTME fill in a description of your system's linker (not GNU ld)
10805    case $host_os in
10806    aix3*)
10807      allow_undefined_flag=unsupported
10808      always_export_symbols=yes
10809      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'
10810      # Note: this linker hardcodes the directories in LIBPATH if there
10811      # are no directories specified by -L.
10812      hardcode_minus_L=yes
10813      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10814	# Neither direct hardcoding nor static linking is supported with a
10815	# broken collect2.
10816	hardcode_direct=unsupported
10817      fi
10818      ;;
10819
10820    aix[4-9]*)
10821      if test ia64 = "$host_cpu"; then
10822	# On IA64, the linker does run time linking by default, so we don't
10823	# have to do anything special.
10824	aix_use_runtimelinking=no
10825	exp_sym_flag='-Bexport'
10826	no_entry_flag=
10827      else
10828	# If we're using GNU nm, then we don't want the "-C" option.
10829	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10830	# Without the "-l" option, or with the "-B" option, AIX nm treats
10831	# weak defined symbols like other global defined symbols, whereas
10832	# GNU nm marks them as "W".
10833	# While the 'weak' keyword is ignored in the Export File, we need
10834	# it in the Import File for the 'aix-soname' feature, so we have
10835	# to replace the "-B" option with "-P" for AIX nm.
10836	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10837	  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'
10838	else
10839	  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'
10840	fi
10841	aix_use_runtimelinking=no
10842
10843	# Test if we are trying to use run time linking or normal
10844	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10845	# have runtime linking enabled, and use it for executables.
10846	# For shared libraries, we enable/disable runtime linking
10847	# depending on the kind of the shared library created -
10848	# when "with_aix_soname,aix_use_runtimelinking" is:
10849	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10850	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10851	#            lib.a           static archive
10852	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10853	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10854	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10855	#            lib.a(lib.so.V) shared, rtl:no
10856	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10857	#            lib.a           static archive
10858	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10859	  for ld_flag in $LDFLAGS; do
10860	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10861	    aix_use_runtimelinking=yes
10862	    break
10863	  fi
10864	  done
10865	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10866	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10867	    # so we don't have lib.a shared libs to link our executables.
10868	    # We have to force runtime linking in this case.
10869	    aix_use_runtimelinking=yes
10870	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10871	  fi
10872	  ;;
10873	esac
10874
10875	exp_sym_flag='-bexport'
10876	no_entry_flag='-bnoentry'
10877      fi
10878
10879      # When large executables or shared objects are built, AIX ld can
10880      # have problems creating the table of contents.  If linking a library
10881      # or program results in "error TOC overflow" add -mminimal-toc to
10882      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10883      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10884
10885      archive_cmds=''
10886      hardcode_direct=yes
10887      hardcode_direct_absolute=yes
10888      hardcode_libdir_separator=':'
10889      link_all_deplibs=yes
10890      file_list_spec='$wl-f,'
10891      case $with_aix_soname,$aix_use_runtimelinking in
10892      aix,*) ;; # traditional, no import file
10893      svr4,* | *,yes) # use import file
10894	# The Import File defines what to hardcode.
10895	hardcode_direct=no
10896	hardcode_direct_absolute=no
10897	;;
10898      esac
10899
10900      if test yes = "$GCC"; then
10901	case $host_os in aix4.[012]|aix4.[012].*)
10902	# We only want to do this on AIX 4.2 and lower, the check
10903	# below for broken collect2 doesn't work under 4.3+
10904	  collect2name=`$CC -print-prog-name=collect2`
10905	  if test -f "$collect2name" &&
10906	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10907	  then
10908	  # We have reworked collect2
10909	  :
10910	  else
10911	  # We have old collect2
10912	  hardcode_direct=unsupported
10913	  # It fails to find uninstalled libraries when the uninstalled
10914	  # path is not listed in the libpath.  Setting hardcode_minus_L
10915	  # to unsupported forces relinking
10916	  hardcode_minus_L=yes
10917	  hardcode_libdir_flag_spec='-L$libdir'
10918	  hardcode_libdir_separator=
10919	  fi
10920	  ;;
10921	esac
10922	shared_flag='-shared'
10923	if test yes = "$aix_use_runtimelinking"; then
10924	  shared_flag="$shared_flag "'$wl-G'
10925	fi
10926	# Need to ensure runtime linking is disabled for the traditional
10927	# shared library, or the linker may eventually find shared libraries
10928	# /with/ Import File - we do not want to mix them.
10929	shared_flag_aix='-shared'
10930	shared_flag_svr4='-shared $wl-G'
10931      else
10932	# not using gcc
10933	if test ia64 = "$host_cpu"; then
10934	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10935	# chokes on -Wl,-G. The following line is correct:
10936	  shared_flag='-G'
10937	else
10938	  if test yes = "$aix_use_runtimelinking"; then
10939	    shared_flag='$wl-G'
10940	  else
10941	    shared_flag='$wl-bM:SRE'
10942	  fi
10943	  shared_flag_aix='$wl-bM:SRE'
10944	  shared_flag_svr4='$wl-G'
10945	fi
10946      fi
10947
10948      export_dynamic_flag_spec='$wl-bexpall'
10949      # It seems that -bexpall does not export symbols beginning with
10950      # underscore (_), so it is better to generate a list of symbols to export.
10951      always_export_symbols=yes
10952      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10953	# Warning - without using the other runtime loading flags (-brtl),
10954	# -berok will link without error, but may produce a broken library.
10955	allow_undefined_flag='-berok'
10956        # Determine the default libpath from the value encoded in an
10957        # empty executable.
10958        if test set = "${lt_cv_aix_libpath+set}"; then
10959  aix_libpath=$lt_cv_aix_libpath
10960else
10961  if test ${lt_cv_aix_libpath_+y}
10962then :
10963  printf %s "(cached) " >&6
10964else case e in #(
10965  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967
10968int
10969main (void)
10970{
10971
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976if ac_fn_c_try_link "$LINENO"
10977then :
10978
10979  lt_aix_libpath_sed='
10980      /Import File Strings/,/^$/ {
10981	  /^0/ {
10982	      s/^0  *\([^ ]*\) *$/\1/
10983	      p
10984	  }
10985      }'
10986  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10987  # Check for a 64-bit object if we didn't find anything.
10988  if test -z "$lt_cv_aix_libpath_"; then
10989    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10990  fi
10991fi
10992rm -f core conftest.err conftest.$ac_objext conftest.beam \
10993    conftest$ac_exeext conftest.$ac_ext
10994  if test -z "$lt_cv_aix_libpath_"; then
10995    lt_cv_aix_libpath_=/usr/lib:/lib
10996  fi
10997   ;;
10998esac
10999fi
11000
11001  aix_libpath=$lt_cv_aix_libpath_
11002fi
11003
11004        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11005        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
11006      else
11007	if test ia64 = "$host_cpu"; then
11008	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11009	  allow_undefined_flag="-z nodefs"
11010	  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"
11011	else
11012	 # Determine the default libpath from the value encoded in an
11013	 # empty executable.
11014	 if test set = "${lt_cv_aix_libpath+set}"; then
11015  aix_libpath=$lt_cv_aix_libpath
11016else
11017  if test ${lt_cv_aix_libpath_+y}
11018then :
11019  printf %s "(cached) " >&6
11020else case e in #(
11021  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022/* end confdefs.h.  */
11023
11024int
11025main (void)
11026{
11027
11028  ;
11029  return 0;
11030}
11031_ACEOF
11032if ac_fn_c_try_link "$LINENO"
11033then :
11034
11035  lt_aix_libpath_sed='
11036      /Import File Strings/,/^$/ {
11037	  /^0/ {
11038	      s/^0  *\([^ ]*\) *$/\1/
11039	      p
11040	  }
11041      }'
11042  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11043  # Check for a 64-bit object if we didn't find anything.
11044  if test -z "$lt_cv_aix_libpath_"; then
11045    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11046  fi
11047fi
11048rm -f core conftest.err conftest.$ac_objext conftest.beam \
11049    conftest$ac_exeext conftest.$ac_ext
11050  if test -z "$lt_cv_aix_libpath_"; then
11051    lt_cv_aix_libpath_=/usr/lib:/lib
11052  fi
11053   ;;
11054esac
11055fi
11056
11057  aix_libpath=$lt_cv_aix_libpath_
11058fi
11059
11060	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11061	  # Warning - without using the other run time loading flags,
11062	  # -berok will link without error, but may produce a broken library.
11063	  no_undefined_flag=' $wl-bernotok'
11064	  allow_undefined_flag=' $wl-berok'
11065	  if test yes = "$with_gnu_ld"; then
11066	    # We only use this code for GNU lds that support --whole-archive.
11067	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11068	  else
11069	    # Exported symbols can be pulled into shared objects from archives
11070	    whole_archive_flag_spec='$convenience'
11071	  fi
11072	  archive_cmds_need_lc=yes
11073	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11074	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11075	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11076	  if test svr4 != "$with_aix_soname"; then
11077	    # This is similar to how AIX traditionally builds its shared libraries.
11078	    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'
11079	  fi
11080	  if test aix != "$with_aix_soname"; then
11081	    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'
11082	  else
11083	    # used by -dlpreopen to get the symbols
11084	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11085	  fi
11086	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11087	fi
11088      fi
11089      ;;
11090
11091    amigaos*)
11092      case $host_cpu in
11093      powerpc)
11094            # see comment about AmigaOS4 .so support
11095            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11096            archive_expsym_cmds=''
11097        ;;
11098      m68k)
11099            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)'
11100            hardcode_libdir_flag_spec='-L$libdir'
11101            hardcode_minus_L=yes
11102        ;;
11103      esac
11104      ;;
11105
11106    bsdi[45]*)
11107      export_dynamic_flag_spec=-rdynamic
11108      ;;
11109
11110    cygwin* | mingw* | windows* | pw32* | cegcc*)
11111      # When not using gcc, we currently assume that we are using
11112      # Microsoft Visual C++ or Intel C++ Compiler.
11113      # hardcode_libdir_flag_spec is actually meaningless, as there is
11114      # no search path for DLLs.
11115      case $cc_basename in
11116      cl* | icl*)
11117	# Native MSVC or ICC
11118	hardcode_libdir_flag_spec=' '
11119	allow_undefined_flag=unsupported
11120	always_export_symbols=yes
11121	file_list_spec='@'
11122	# Tell ltmain to make .lib files, not .a files.
11123	libext=lib
11124	# Tell ltmain to make .dll files, not .so files.
11125	shrext_cmds=.dll
11126	# FIXME: Setting linknames here is a bad hack.
11127	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11128	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11129            cp "$export_symbols" "$output_objdir/$soname.def";
11130            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11131          else
11132            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11133          fi~
11134          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11135          linknames='
11136	# The linker will not automatically build a static lib if we build a DLL.
11137	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11138	enable_shared_with_static_runtimes=yes
11139	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11140	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11141	# Don't use ranlib
11142	old_postinstall_cmds='chmod 644 $oldlib'
11143	postlink_cmds='lt_outputfile="@OUTPUT@"~
11144          lt_tool_outputfile="@TOOL_OUTPUT@"~
11145          case $lt_outputfile in
11146            *.exe|*.EXE) ;;
11147            *)
11148              lt_outputfile=$lt_outputfile.exe
11149              lt_tool_outputfile=$lt_tool_outputfile.exe
11150              ;;
11151          esac~
11152          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11153            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11154            $RM "$lt_outputfile.manifest";
11155          fi'
11156	;;
11157      *)
11158	# Assume MSVC and ICC wrapper
11159	hardcode_libdir_flag_spec=' '
11160	allow_undefined_flag=unsupported
11161	# Tell ltmain to make .lib files, not .a files.
11162	libext=lib
11163	# Tell ltmain to make .dll files, not .so files.
11164	shrext_cmds=.dll
11165	# FIXME: Setting linknames here is a bad hack.
11166	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11167	# The linker will automatically build a .lib file if we build a DLL.
11168	old_archive_from_new_cmds='true'
11169	# FIXME: Should let the user specify the lib program.
11170	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11171	enable_shared_with_static_runtimes=yes
11172	;;
11173      esac
11174      ;;
11175
11176    darwin* | rhapsody*)
11177
11178
11179  archive_cmds_need_lc=no
11180  hardcode_direct=no
11181  hardcode_automatic=yes
11182  hardcode_shlibpath_var=unsupported
11183  if test yes = "$lt_cv_ld_force_load"; then
11184    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\"`'
11185
11186  else
11187    whole_archive_flag_spec=''
11188  fi
11189  link_all_deplibs=yes
11190  allow_undefined_flag=$_lt_dar_allow_undefined
11191  case $cc_basename in
11192     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11193     *) _lt_dar_can_shared=$GCC ;;
11194  esac
11195  if test yes = "$_lt_dar_can_shared"; then
11196    output_verbose_link_cmd=func_echo_all
11197    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11198    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11199    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"
11200    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"
11201
11202  else
11203  ld_shlibs=no
11204  fi
11205
11206      ;;
11207
11208    dgux*)
11209      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11210      hardcode_libdir_flag_spec='-L$libdir'
11211      hardcode_shlibpath_var=no
11212      ;;
11213
11214    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11215    # support.  Future versions do this automatically, but an explicit c++rt0.o
11216    # does not break anything, and helps significantly (at the cost of a little
11217    # extra space).
11218    freebsd2.2*)
11219      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11220      hardcode_libdir_flag_spec='-R$libdir'
11221      hardcode_direct=yes
11222      hardcode_shlibpath_var=no
11223      ;;
11224
11225    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11226    freebsd2.*)
11227      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11228      hardcode_direct=yes
11229      hardcode_minus_L=yes
11230      hardcode_shlibpath_var=no
11231      ;;
11232
11233    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11234    freebsd* | dragonfly* | midnightbsd*)
11235      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236      hardcode_libdir_flag_spec='-R$libdir'
11237      hardcode_direct=yes
11238      hardcode_shlibpath_var=no
11239      ;;
11240
11241    hpux9*)
11242      if test yes = "$GCC"; then
11243	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'
11244      else
11245	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'
11246      fi
11247      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11248      hardcode_libdir_separator=:
11249      hardcode_direct=yes
11250
11251      # hardcode_minus_L: Not really in the search PATH,
11252      # but as the default location of the library.
11253      hardcode_minus_L=yes
11254      export_dynamic_flag_spec='$wl-E'
11255      ;;
11256
11257    hpux10*)
11258      if test yes,no = "$GCC,$with_gnu_ld"; then
11259	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11260      else
11261	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11262      fi
11263      if test no = "$with_gnu_ld"; then
11264	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11265	hardcode_libdir_separator=:
11266	hardcode_direct=yes
11267	hardcode_direct_absolute=yes
11268	export_dynamic_flag_spec='$wl-E'
11269	# hardcode_minus_L: Not really in the search PATH,
11270	# but as the default location of the library.
11271	hardcode_minus_L=yes
11272      fi
11273      ;;
11274
11275    hpux11*)
11276      if test yes,no = "$GCC,$with_gnu_ld"; then
11277	case $host_cpu in
11278	hppa*64*)
11279	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11280	  ;;
11281	ia64*)
11282	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11283	  ;;
11284	*)
11285	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11286	  ;;
11287	esac
11288      else
11289	case $host_cpu in
11290	hppa*64*)
11291	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11292	  ;;
11293	ia64*)
11294	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11295	  ;;
11296	*)
11297
11298	  # Older versions of the 11.00 compiler do not understand -b yet
11299	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11300	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11301printf %s "checking if $CC understands -b... " >&6; }
11302if test ${lt_cv_prog_compiler__b+y}
11303then :
11304  printf %s "(cached) " >&6
11305else case e in #(
11306  e) lt_cv_prog_compiler__b=no
11307   save_LDFLAGS=$LDFLAGS
11308   LDFLAGS="$LDFLAGS -b"
11309   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11310   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11311     # The linker can only warn and ignore the option if not recognized
11312     # So say no if there are warnings
11313     if test -s conftest.err; then
11314       # Append any errors to the config.log.
11315       cat conftest.err 1>&5
11316       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11317       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11318       if diff conftest.exp conftest.er2 >/dev/null; then
11319         lt_cv_prog_compiler__b=yes
11320       fi
11321     else
11322       lt_cv_prog_compiler__b=yes
11323     fi
11324   fi
11325   $RM -r conftest*
11326   LDFLAGS=$save_LDFLAGS
11327 ;;
11328esac
11329fi
11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11331printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11332
11333if test yes = "$lt_cv_prog_compiler__b"; then
11334    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11335else
11336    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11337fi
11338
11339	  ;;
11340	esac
11341      fi
11342      if test no = "$with_gnu_ld"; then
11343	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11344	hardcode_libdir_separator=:
11345
11346	case $host_cpu in
11347	hppa*64*|ia64*)
11348	  hardcode_direct=no
11349	  hardcode_shlibpath_var=no
11350	  ;;
11351	*)
11352	  hardcode_direct=yes
11353	  hardcode_direct_absolute=yes
11354	  export_dynamic_flag_spec='$wl-E'
11355
11356	  # hardcode_minus_L: Not really in the search PATH,
11357	  # but as the default location of the library.
11358	  hardcode_minus_L=yes
11359	  ;;
11360	esac
11361      fi
11362      ;;
11363
11364    irix5* | irix6* | nonstopux*)
11365      if test yes = "$GCC"; then
11366	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'
11367	# Try to use the -exported_symbol ld option, if it does not
11368	# work, assume that -exports_file does not work either and
11369	# implicitly export all symbols.
11370	# This should be the same for all languages, so no per-tag cache variable.
11371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11372printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11373if test ${lt_cv_irix_exported_symbol+y}
11374then :
11375  printf %s "(cached) " >&6
11376else case e in #(
11377  e) save_LDFLAGS=$LDFLAGS
11378	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11379	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h.  */
11381int foo (void) { return 0; }
11382_ACEOF
11383if ac_fn_c_try_link "$LINENO"
11384then :
11385  lt_cv_irix_exported_symbol=yes
11386else case e in #(
11387  e) lt_cv_irix_exported_symbol=no ;;
11388esac
11389fi
11390rm -f core conftest.err conftest.$ac_objext conftest.beam \
11391    conftest$ac_exeext conftest.$ac_ext
11392           LDFLAGS=$save_LDFLAGS ;;
11393esac
11394fi
11395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11396printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11397	if test yes = "$lt_cv_irix_exported_symbol"; then
11398          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'
11399	fi
11400      else
11401	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'
11402	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'
11403      fi
11404      archive_cmds_need_lc='no'
11405      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11406      hardcode_libdir_separator=:
11407      inherit_rpath=yes
11408      link_all_deplibs=yes
11409      ;;
11410
11411    linux*)
11412      case $cc_basename in
11413      tcc*)
11414	# Fabrice Bellard et al's Tiny C Compiler
11415	ld_shlibs=yes
11416	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11417	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11418	;;
11419      esac
11420      ;;
11421
11422    *-mlibc)
11423      ;;
11424
11425    netbsd* | netbsdelf*-gnu)
11426      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11427	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11428      else
11429	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11430      fi
11431      hardcode_libdir_flag_spec='-R$libdir'
11432      hardcode_direct=yes
11433      hardcode_shlibpath_var=no
11434      ;;
11435
11436    newsos6)
11437      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438      hardcode_direct=yes
11439      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11440      hardcode_libdir_separator=:
11441      hardcode_shlibpath_var=no
11442      ;;
11443
11444    *nto* | *qnx*)
11445      ;;
11446
11447    openbsd*)
11448      if test -f /usr/libexec/ld.so; then
11449	hardcode_direct=yes
11450	hardcode_shlibpath_var=no
11451	hardcode_direct_absolute=yes
11452	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11453	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11454	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11455	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11456	  export_dynamic_flag_spec='$wl-E'
11457	else
11458	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11459	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11460	fi
11461      else
11462	ld_shlibs=no
11463      fi
11464      ;;
11465
11466    os2*)
11467      hardcode_libdir_flag_spec='-L$libdir'
11468      hardcode_minus_L=yes
11469      allow_undefined_flag=unsupported
11470      shrext_cmds=.dll
11471      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11472	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11473	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11474	$ECHO EXPORTS >> $output_objdir/$libname.def~
11475	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11476	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11477	emximp -o $lib $output_objdir/$libname.def'
11478      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11479	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11480	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11481	$ECHO EXPORTS >> $output_objdir/$libname.def~
11482	prefix_cmds="$SED"~
11483	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11484	  prefix_cmds="$prefix_cmds -e 1d";
11485	fi~
11486	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11487	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11488	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11489	emximp -o $lib $output_objdir/$libname.def'
11490      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11491      enable_shared_with_static_runtimes=yes
11492      file_list_spec='@'
11493      ;;
11494
11495    osf3*)
11496      if test yes = "$GCC"; then
11497	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11498	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'
11499      else
11500	allow_undefined_flag=' -expect_unresolved \*'
11501	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'
11502      fi
11503      archive_cmds_need_lc='no'
11504      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11505      hardcode_libdir_separator=:
11506      ;;
11507
11508    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11509      if test yes = "$GCC"; then
11510	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11511	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'
11512	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11513      else
11514	allow_undefined_flag=' -expect_unresolved \*'
11515	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'
11516	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~
11517          $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'
11518
11519	# Both c and cxx compiler support -rpath directly
11520	hardcode_libdir_flag_spec='-rpath $libdir'
11521      fi
11522      archive_cmds_need_lc='no'
11523      hardcode_libdir_separator=:
11524      ;;
11525
11526    serenity*)
11527      ;;
11528
11529    solaris*)
11530      no_undefined_flag=' -z defs'
11531      if test yes = "$GCC"; then
11532	wlarc='$wl'
11533	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11534	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11535          $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'
11536      else
11537	case `$CC -V 2>&1` in
11538	*"Compilers 5.0"*)
11539	  wlarc=''
11540	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11541	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11542            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11543	  ;;
11544	*)
11545	  wlarc='$wl'
11546	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11547	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11548            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11549	  ;;
11550	esac
11551      fi
11552      hardcode_libdir_flag_spec='-R$libdir'
11553      hardcode_shlibpath_var=no
11554      case $host_os in
11555      solaris2.[0-5] | solaris2.[0-5].*) ;;
11556      *)
11557	# The compiler driver will combine and reorder linker options,
11558	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11559	# but is careful enough not to reorder.
11560	# Supported since Solaris 2.6 (maybe 2.5.1?)
11561	if test yes = "$GCC"; then
11562	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11563	else
11564	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11565	fi
11566	;;
11567      esac
11568      link_all_deplibs=yes
11569      ;;
11570
11571    sunos4*)
11572      if test sequent = "$host_vendor"; then
11573	# Use $CC to link under sequent, because it throws in some extra .o
11574	# files that make .init and .fini sections work.
11575	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11576      else
11577	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11578      fi
11579      hardcode_libdir_flag_spec='-L$libdir'
11580      hardcode_direct=yes
11581      hardcode_minus_L=yes
11582      hardcode_shlibpath_var=no
11583      ;;
11584
11585    sysv4)
11586      case $host_vendor in
11587	sni)
11588	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11589	  hardcode_direct=yes # is this really true???
11590	;;
11591	siemens)
11592	  ## LD is ld it makes a PLAMLIB
11593	  ## CC just makes a GrossModule.
11594	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11595	  reload_cmds='$CC -r -o $output$reload_objs'
11596	  hardcode_direct=no
11597        ;;
11598	motorola)
11599	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11600	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11601	;;
11602      esac
11603      runpath_var='LD_RUN_PATH'
11604      hardcode_shlibpath_var=no
11605      ;;
11606
11607    sysv4.3*)
11608      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11609      hardcode_shlibpath_var=no
11610      export_dynamic_flag_spec='-Bexport'
11611      ;;
11612
11613    sysv4*MP*)
11614      if test -d /usr/nec; then
11615	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11616	hardcode_shlibpath_var=no
11617	runpath_var=LD_RUN_PATH
11618	hardcode_runpath_var=yes
11619	ld_shlibs=yes
11620      fi
11621      ;;
11622
11623    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11624      no_undefined_flag='$wl-z,text'
11625      archive_cmds_need_lc=no
11626      hardcode_shlibpath_var=no
11627      runpath_var='LD_RUN_PATH'
11628
11629      if test yes = "$GCC"; then
11630	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11631	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632      else
11633	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11634	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635      fi
11636      ;;
11637
11638    sysv5* | sco3.2v5* | sco5v6*)
11639      # Note: We CANNOT use -z defs as we might desire, because we do not
11640      # link with -lc, and that would cause any symbols used from libc to
11641      # always be unresolved, which means just about no library would
11642      # ever link correctly.  If we're not using GNU ld we use -z text
11643      # though, which does catch some bad symbols but isn't as heavy-handed
11644      # as -z defs.
11645      no_undefined_flag='$wl-z,text'
11646      allow_undefined_flag='$wl-z,nodefs'
11647      archive_cmds_need_lc=no
11648      hardcode_shlibpath_var=no
11649      hardcode_libdir_flag_spec='$wl-R,$libdir'
11650      hardcode_libdir_separator=':'
11651      link_all_deplibs=yes
11652      export_dynamic_flag_spec='$wl-Bexport'
11653      runpath_var='LD_RUN_PATH'
11654
11655      if test yes = "$GCC"; then
11656	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11657	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11658      else
11659	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11660	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661      fi
11662      ;;
11663
11664    uts4*)
11665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11666      hardcode_libdir_flag_spec='-L$libdir'
11667      hardcode_shlibpath_var=no
11668      ;;
11669
11670    *)
11671      ld_shlibs=no
11672      ;;
11673    esac
11674
11675    if test sni = "$host_vendor"; then
11676      case $host in
11677      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11678	export_dynamic_flag_spec='$wl-Blargedynsym'
11679	;;
11680      esac
11681    fi
11682  fi
11683
11684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11685printf "%s\n" "$ld_shlibs" >&6; }
11686test no = "$ld_shlibs" && can_build_shared=no
11687
11688with_gnu_ld=$with_gnu_ld
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704#
11705# Do we need to explicitly link libc?
11706#
11707case "x$archive_cmds_need_lc" in
11708x|xyes)
11709  # Assume -lc should be added
11710  archive_cmds_need_lc=yes
11711
11712  if test yes,yes = "$GCC,$enable_shared"; then
11713    case $archive_cmds in
11714    *'~'*)
11715      # FIXME: we may have to deal with multi-command sequences.
11716      ;;
11717    '$CC '*)
11718      # Test whether the compiler implicitly links with -lc since on some
11719      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11720      # to ld, don't add -lc before -lgcc.
11721      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11722printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11723if test ${lt_cv_archive_cmds_need_lc+y}
11724then :
11725  printf %s "(cached) " >&6
11726else case e in #(
11727  e) $RM conftest*
11728	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11729
11730	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11731  (eval $ac_compile) 2>&5
11732  ac_status=$?
11733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734  test $ac_status = 0; } 2>conftest.err; then
11735	  soname=conftest
11736	  lib=conftest
11737	  libobjs=conftest.$ac_objext
11738	  deplibs=
11739	  wl=$lt_prog_compiler_wl
11740	  pic_flag=$lt_prog_compiler_pic
11741	  compiler_flags=-v
11742	  linker_flags=-v
11743	  verstring=
11744	  output_objdir=.
11745	  libname=conftest
11746	  lt_save_allow_undefined_flag=$allow_undefined_flag
11747	  allow_undefined_flag=
11748	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11749  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11750  ac_status=$?
11751  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752  test $ac_status = 0; }
11753	  then
11754	    lt_cv_archive_cmds_need_lc=no
11755	  else
11756	    lt_cv_archive_cmds_need_lc=yes
11757	  fi
11758	  allow_undefined_flag=$lt_save_allow_undefined_flag
11759	else
11760	  cat conftest.err 1>&5
11761	fi
11762	$RM conftest*
11763	 ;;
11764esac
11765fi
11766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11767printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11768      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11769      ;;
11770    esac
11771  fi
11772  ;;
11773esac
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11927printf %s "checking dynamic linker characteristics... " >&6; }
11928
11929if test yes = "$GCC"; then
11930  case $host_os in
11931    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11932    *) lt_awk_arg='/^libraries:/' ;;
11933  esac
11934  case $host_os in
11935    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11936    *) lt_sed_strip_eq='s|=/|/|g' ;;
11937  esac
11938  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11939  case $lt_search_path_spec in
11940  *\;*)
11941    # if the path contains ";" then we assume it to be the separator
11942    # otherwise default to the standard path separator (i.e. ":") - it is
11943    # assumed that no part of a normal pathname contains ";" but that should
11944    # okay in the real world where ";" in dirpaths is itself problematic.
11945    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11946    ;;
11947  *)
11948    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11949    ;;
11950  esac
11951  # Ok, now we have the path, separated by spaces, we can step through it
11952  # and add multilib dir if necessary...
11953  lt_tmp_lt_search_path_spec=
11954  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11955  # ...but if some path component already ends with the multilib dir we assume
11956  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11957  case "$lt_multi_os_dir; $lt_search_path_spec " in
11958  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11959    lt_multi_os_dir=
11960    ;;
11961  esac
11962  for lt_sys_path in $lt_search_path_spec; do
11963    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11964      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11965    elif test -n "$lt_multi_os_dir"; then
11966      test -d "$lt_sys_path" && \
11967	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11968    fi
11969  done
11970  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11971BEGIN {RS = " "; FS = "/|\n";} {
11972  lt_foo = "";
11973  lt_count = 0;
11974  for (lt_i = NF; lt_i > 0; lt_i--) {
11975    if ($lt_i != "" && $lt_i != ".") {
11976      if ($lt_i == "..") {
11977        lt_count++;
11978      } else {
11979        if (lt_count == 0) {
11980          lt_foo = "/" $lt_i lt_foo;
11981        } else {
11982          lt_count--;
11983        }
11984      }
11985    }
11986  }
11987  if (lt_foo != "") { lt_freq[lt_foo]++; }
11988  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11989}'`
11990  # AWK program above erroneously prepends '/' to C:/dos/paths
11991  # for these hosts.
11992  case $host_os in
11993    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11994      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11995  esac
11996  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11997else
11998  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11999fi
12000library_names_spec=
12001libname_spec='lib$name'
12002soname_spec=
12003shrext_cmds=.so
12004postinstall_cmds=
12005postuninstall_cmds=
12006finish_cmds=
12007finish_eval=
12008shlibpath_var=
12009shlibpath_overrides_runpath=unknown
12010version_type=none
12011dynamic_linker="$host_os ld.so"
12012sys_lib_dlsearch_path_spec="/lib /usr/lib"
12013need_lib_prefix=unknown
12014hardcode_into_libs=no
12015
12016# when you set need_version to no, make sure it does not cause -set_version
12017# flags to be left without arguments
12018need_version=unknown
12019
12020
12021
12022case $host_os in
12023aix3*)
12024  version_type=linux # correct to gnu/linux during the next big refactor
12025  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12026  shlibpath_var=LIBPATH
12027
12028  # AIX 3 has no versioning support, so we append a major version to the name.
12029  soname_spec='$libname$release$shared_ext$major'
12030  ;;
12031
12032aix[4-9]*)
12033  version_type=linux # correct to gnu/linux during the next big refactor
12034  need_lib_prefix=no
12035  need_version=no
12036  hardcode_into_libs=yes
12037  if test ia64 = "$host_cpu"; then
12038    # AIX 5 supports IA64
12039    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12040    shlibpath_var=LD_LIBRARY_PATH
12041  else
12042    # With GCC up to 2.95.x, collect2 would create an import file
12043    # for dependence libraries.  The import file would start with
12044    # the line '#! .'.  This would cause the generated library to
12045    # depend on '.', always an invalid library.  This was fixed in
12046    # development snapshots of GCC prior to 3.0.
12047    case $host_os in
12048      aix4 | aix4.[01] | aix4.[01].*)
12049      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12050	   echo ' yes '
12051	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12052	:
12053      else
12054	can_build_shared=no
12055      fi
12056      ;;
12057    esac
12058    # Using Import Files as archive members, it is possible to support
12059    # filename-based versioning of shared library archives on AIX. While
12060    # this would work for both with and without runtime linking, it will
12061    # prevent static linking of such archives. So we do filename-based
12062    # shared library versioning with .so extension only, which is used
12063    # when both runtime linking and shared linking is enabled.
12064    # Unfortunately, runtime linking may impact performance, so we do
12065    # not want this to be the default eventually. Also, we use the
12066    # versioned .so libs for executables only if there is the -brtl
12067    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12068    # To allow for filename-based versioning support, we need to create
12069    # libNAME.so.V as an archive file, containing:
12070    # *) an Import File, referring to the versioned filename of the
12071    #    archive as well as the shared archive member, telling the
12072    #    bitwidth (32 or 64) of that shared object, and providing the
12073    #    list of exported symbols of that shared object, eventually
12074    #    decorated with the 'weak' keyword
12075    # *) the shared object with the F_LOADONLY flag set, to really avoid
12076    #    it being seen by the linker.
12077    # At run time we better use the real file rather than another symlink,
12078    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12079
12080    case $with_aix_soname,$aix_use_runtimelinking in
12081    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12082    # soname into executable. Probably we can add versioning support to
12083    # collect2, so additional links can be useful in future.
12084    aix,yes) # traditional libtool
12085      dynamic_linker='AIX unversionable lib.so'
12086      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12087      # instead of lib<name>.a to let people know that these are not
12088      # typical AIX shared libraries.
12089      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090      ;;
12091    aix,no) # traditional AIX only
12092      dynamic_linker='AIX lib.a(lib.so.V)'
12093      # We preserve .a as extension for shared libraries through AIX4.2
12094      # and later when we are not doing run time linking.
12095      library_names_spec='$libname$release.a $libname.a'
12096      soname_spec='$libname$release$shared_ext$major'
12097      ;;
12098    svr4,*) # full svr4 only
12099      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12100      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12101      # We do not specify a path in Import Files, so LIBPATH fires.
12102      shlibpath_overrides_runpath=yes
12103      ;;
12104    *,yes) # both, prefer svr4
12105      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12106      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12107      # unpreferred sharedlib libNAME.a needs extra handling
12108      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"'
12109      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"'
12110      # We do not specify a path in Import Files, so LIBPATH fires.
12111      shlibpath_overrides_runpath=yes
12112      ;;
12113    *,no) # both, prefer aix
12114      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12115      library_names_spec='$libname$release.a $libname.a'
12116      soname_spec='$libname$release$shared_ext$major'
12117      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12118      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)'
12119      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"'
12120      ;;
12121    esac
12122    shlibpath_var=LIBPATH
12123  fi
12124  ;;
12125
12126amigaos*)
12127  case $host_cpu in
12128  powerpc)
12129    # Since July 2007 AmigaOS4 officially supports .so libraries.
12130    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12131    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132    ;;
12133  m68k)
12134    library_names_spec='$libname.ixlibrary $libname.a'
12135    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12136    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'
12137    ;;
12138  esac
12139  ;;
12140
12141beos*)
12142  library_names_spec='$libname$shared_ext'
12143  dynamic_linker="$host_os ld.so"
12144  shlibpath_var=LIBRARY_PATH
12145  ;;
12146
12147bsdi[45]*)
12148  version_type=linux # correct to gnu/linux during the next big refactor
12149  need_version=no
12150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12151  soname_spec='$libname$release$shared_ext$major'
12152  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12153  shlibpath_var=LD_LIBRARY_PATH
12154  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12155  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12156  # the default ld.so.conf also contains /usr/contrib/lib and
12157  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12158  # libtool to hard-code these into programs
12159  ;;
12160
12161cygwin* | mingw* | windows* | pw32* | cegcc*)
12162  version_type=windows
12163  shrext_cmds=.dll
12164  need_version=no
12165  need_lib_prefix=no
12166
12167  case $GCC,$cc_basename in
12168  yes,*)
12169    # gcc
12170    library_names_spec='$libname.dll.a'
12171    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12172    # If user builds GCC with multilib enabled,
12173    # it should just install on $(libdir)
12174    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12175    if test xyes = x"$multilib"; then
12176      postinstall_cmds='base_file=`basename \$file`~
12177        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12178        dldir=$destdir/`dirname \$dlpath`~
12179        $install_prog $dir/$dlname $destdir/$dlname~
12180        chmod a+x $destdir/$dlname~
12181        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12182          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12183        fi'
12184    else
12185      postinstall_cmds='base_file=`basename \$file`~
12186        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12187        dldir=$destdir/`dirname \$dlpath`~
12188        test -d \$dldir || mkdir -p \$dldir~
12189        $install_prog $dir/$dlname \$dldir/$dlname~
12190        chmod a+x \$dldir/$dlname~
12191        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12192          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12193        fi'
12194    fi
12195    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12196      dlpath=$dir/\$dldll~
12197       $RM \$dlpath'
12198    shlibpath_overrides_runpath=yes
12199
12200    case $host_os in
12201    cygwin*)
12202      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12203      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12204
12205      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12206      ;;
12207    mingw* | windows* | cegcc*)
12208      # MinGW DLLs use traditional 'lib' prefix
12209      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12210      ;;
12211    pw32*)
12212      # pw32 DLLs use 'pw' prefix rather than 'lib'
12213      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12214      ;;
12215    esac
12216    dynamic_linker='Win32 ld.exe'
12217    ;;
12218
12219  *,cl* | *,icl*)
12220    # Native MSVC or ICC
12221    libname_spec='$name'
12222    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12223    library_names_spec='$libname.dll.lib'
12224
12225    case $build_os in
12226    mingw* | windows*)
12227      sys_lib_search_path_spec=
12228      lt_save_ifs=$IFS
12229      IFS=';'
12230      for lt_path in $LIB
12231      do
12232        IFS=$lt_save_ifs
12233        # Let DOS variable expansion print the short 8.3 style file name.
12234        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12235        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12236      done
12237      IFS=$lt_save_ifs
12238      # Convert to MSYS style.
12239      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12240      ;;
12241    cygwin*)
12242      # Convert to unix form, then to dos form, then back to unix form
12243      # but this time dos style (no spaces!) so that the unix form looks
12244      # like /cygdrive/c/PROGRA~1:/cygdr...
12245      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12246      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12247      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12248      ;;
12249    *)
12250      sys_lib_search_path_spec=$LIB
12251      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12252        # It is most probably a Windows format PATH.
12253        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12254      else
12255        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12256      fi
12257      # FIXME: find the short name or the path components, as spaces are
12258      # common. (e.g. "Program Files" -> "PROGRA~1")
12259      ;;
12260    esac
12261
12262    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12263    postinstall_cmds='base_file=`basename \$file`~
12264      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12265      dldir=$destdir/`dirname \$dlpath`~
12266      test -d \$dldir || mkdir -p \$dldir~
12267      $install_prog $dir/$dlname \$dldir/$dlname'
12268    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12269      dlpath=$dir/\$dldll~
12270       $RM \$dlpath'
12271    shlibpath_overrides_runpath=yes
12272    dynamic_linker='Win32 link.exe'
12273    ;;
12274
12275  *)
12276    # Assume MSVC and ICC wrapper
12277    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12278    dynamic_linker='Win32 ld.exe'
12279    ;;
12280  esac
12281  # FIXME: first we should search . and the directory the executable is in
12282  shlibpath_var=PATH
12283  ;;
12284
12285darwin* | rhapsody*)
12286  dynamic_linker="$host_os dyld"
12287  version_type=darwin
12288  need_lib_prefix=no
12289  need_version=no
12290  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12291  soname_spec='$libname$release$major$shared_ext'
12292  shlibpath_overrides_runpath=yes
12293  shlibpath_var=DYLD_LIBRARY_PATH
12294  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12295
12296  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12297  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12298  ;;
12299
12300dgux*)
12301  version_type=linux # correct to gnu/linux during the next big refactor
12302  need_lib_prefix=no
12303  need_version=no
12304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305  soname_spec='$libname$release$shared_ext$major'
12306  shlibpath_var=LD_LIBRARY_PATH
12307  ;;
12308
12309freebsd* | dragonfly* | midnightbsd*)
12310  # DragonFly does not have aout.  When/if they implement a new
12311  # versioning mechanism, adjust this.
12312  if test -x /usr/bin/objformat; then
12313    objformat=`/usr/bin/objformat`
12314  else
12315    case $host_os in
12316    freebsd[23].*) objformat=aout ;;
12317    *) objformat=elf ;;
12318    esac
12319  fi
12320  version_type=freebsd-$objformat
12321  case $version_type in
12322    freebsd-elf*)
12323      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324      soname_spec='$libname$release$shared_ext$major'
12325      need_version=no
12326      need_lib_prefix=no
12327      ;;
12328    freebsd-*)
12329      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12330      need_version=yes
12331      ;;
12332  esac
12333  case $host_cpu in
12334    powerpc64)
12335      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12336      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12337      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338/* end confdefs.h.  */
12339int test_pointer_size[sizeof (void *) - 5];
12340
12341_ACEOF
12342if ac_fn_c_try_compile "$LINENO"
12343then :
12344  shlibpath_var=LD_LIBRARY_PATH
12345else case e in #(
12346  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12347esac
12348fi
12349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12350      ;;
12351    *)
12352      shlibpath_var=LD_LIBRARY_PATH
12353      ;;
12354  esac
12355  case $host_os in
12356  freebsd2.*)
12357    shlibpath_overrides_runpath=yes
12358    ;;
12359  freebsd3.[01]* | freebsdelf3.[01]*)
12360    shlibpath_overrides_runpath=yes
12361    hardcode_into_libs=yes
12362    ;;
12363  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12364  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12365    shlibpath_overrides_runpath=no
12366    hardcode_into_libs=yes
12367    ;;
12368  *) # from 4.6 on, and DragonFly
12369    shlibpath_overrides_runpath=yes
12370    hardcode_into_libs=yes
12371    ;;
12372  esac
12373  ;;
12374
12375haiku*)
12376  version_type=linux # correct to gnu/linux during the next big refactor
12377  need_lib_prefix=no
12378  need_version=no
12379  dynamic_linker="$host_os runtime_loader"
12380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381  soname_spec='$libname$release$shared_ext$major'
12382  shlibpath_var=LIBRARY_PATH
12383  shlibpath_overrides_runpath=no
12384  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12385  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12386  hardcode_into_libs=no
12387  ;;
12388
12389hpux9* | hpux10* | hpux11*)
12390  # Give a soname corresponding to the major version so that dld.sl refuses to
12391  # link against other versions.
12392  version_type=sunos
12393  need_lib_prefix=no
12394  need_version=no
12395  case $host_cpu in
12396  ia64*)
12397    shrext_cmds='.so'
12398    hardcode_into_libs=yes
12399    dynamic_linker="$host_os dld.so"
12400    shlibpath_var=LD_LIBRARY_PATH
12401    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12402    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12403    soname_spec='$libname$release$shared_ext$major'
12404    if test 32 = "$HPUX_IA64_MODE"; then
12405      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12406      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12407    else
12408      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12409      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12410    fi
12411    ;;
12412  hppa*64*)
12413    shrext_cmds='.sl'
12414    hardcode_into_libs=yes
12415    dynamic_linker="$host_os dld.sl"
12416    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12417    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12418    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12419    soname_spec='$libname$release$shared_ext$major'
12420    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12421    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12422    ;;
12423  *)
12424    shrext_cmds='.sl'
12425    dynamic_linker="$host_os dld.sl"
12426    shlibpath_var=SHLIB_PATH
12427    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12428    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12429    soname_spec='$libname$release$shared_ext$major'
12430    ;;
12431  esac
12432  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12433  postinstall_cmds='chmod 555 $lib'
12434  # or fails outright, so override atomically:
12435  install_override_mode=555
12436  ;;
12437
12438interix[3-9]*)
12439  version_type=linux # correct to gnu/linux during the next big refactor
12440  need_lib_prefix=no
12441  need_version=no
12442  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443  soname_spec='$libname$release$shared_ext$major'
12444  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=no
12447  hardcode_into_libs=yes
12448  ;;
12449
12450irix5* | irix6* | nonstopux*)
12451  case $host_os in
12452    nonstopux*) version_type=nonstopux ;;
12453    *)
12454	if test yes = "$lt_cv_prog_gnu_ld"; then
12455		version_type=linux # correct to gnu/linux during the next big refactor
12456	else
12457		version_type=irix
12458	fi ;;
12459  esac
12460  need_lib_prefix=no
12461  need_version=no
12462  soname_spec='$libname$release$shared_ext$major'
12463  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12464  case $host_os in
12465  irix5* | nonstopux*)
12466    libsuff= shlibsuff=
12467    ;;
12468  *)
12469    case $LD in # libtool.m4 will add one of these switches to LD
12470    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12471      libsuff= shlibsuff= libmagic=32-bit;;
12472    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12473      libsuff=32 shlibsuff=N32 libmagic=N32;;
12474    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12475      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12476    *) libsuff= shlibsuff= libmagic=never-match;;
12477    esac
12478    ;;
12479  esac
12480  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12481  shlibpath_overrides_runpath=no
12482  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12483  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12484  hardcode_into_libs=yes
12485  ;;
12486
12487# No shared lib support for Linux oldld, aout, or coff.
12488linux*oldld* | linux*aout* | linux*coff*)
12489  dynamic_linker=no
12490  ;;
12491
12492linux*android*)
12493  version_type=none # Android doesn't support versioned libraries.
12494  need_lib_prefix=no
12495  need_version=no
12496  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12497  soname_spec='$libname$release$shared_ext'
12498  finish_cmds=
12499  shlibpath_var=LD_LIBRARY_PATH
12500  shlibpath_overrides_runpath=yes
12501
12502  # This implies no fast_install, which is unacceptable.
12503  # Some rework will be needed to allow for fast_install
12504  # before this can be enabled.
12505  hardcode_into_libs=yes
12506
12507  dynamic_linker='Android linker'
12508  # -rpath works at least for libraries that are not overridden by
12509  # libraries installed in system locations.
12510  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12511  ;;
12512
12513# This must be glibc/ELF.
12514linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12515  version_type=linux # correct to gnu/linux during the next big refactor
12516  need_lib_prefix=no
12517  need_version=no
12518  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519  soname_spec='$libname$release$shared_ext$major'
12520  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12521  shlibpath_var=LD_LIBRARY_PATH
12522  shlibpath_overrides_runpath=no
12523
12524  # Some binutils ld are patched to set DT_RUNPATH
12525  if test ${lt_cv_shlibpath_overrides_runpath+y}
12526then :
12527  printf %s "(cached) " >&6
12528else case e in #(
12529  e) lt_cv_shlibpath_overrides_runpath=no
12530    save_LDFLAGS=$LDFLAGS
12531    save_libdir=$libdir
12532    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12533	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535/* end confdefs.h.  */
12536
12537int
12538main (void)
12539{
12540
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_link "$LINENO"
12546then :
12547  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12548then :
12549  lt_cv_shlibpath_overrides_runpath=yes
12550fi
12551fi
12552rm -f core conftest.err conftest.$ac_objext conftest.beam \
12553    conftest$ac_exeext conftest.$ac_ext
12554    LDFLAGS=$save_LDFLAGS
12555    libdir=$save_libdir
12556     ;;
12557esac
12558fi
12559
12560  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12561
12562  # This implies no fast_install, which is unacceptable.
12563  # Some rework will be needed to allow for fast_install
12564  # before this can be enabled.
12565  hardcode_into_libs=yes
12566
12567  # Ideally, we could use ldconfig to report *all* directories which are
12568  # searched for libraries, however this is still not possible.  Aside from not
12569  # being certain /sbin/ldconfig is available, command
12570  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12571  # even though it is searched at run-time.  Try to do the best guess by
12572  # appending ld.so.conf contents (and includes) to the search path.
12573  if test -f /etc/ld.so.conf; then
12574    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' ' '`
12575    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12576  fi
12577
12578  # We used to test for /lib/ld.so.1 and disable shared libraries on
12579  # powerpc, because MkLinux only supported shared libraries with the
12580  # GNU dynamic linker.  Since this was broken with cross compilers,
12581  # most powerpc-linux boxes support dynamic linking these days and
12582  # people can always --disable-shared, the test was removed, and we
12583  # assume the GNU/Linux dynamic linker is in use.
12584  dynamic_linker='GNU/Linux ld.so'
12585  ;;
12586
12587netbsdelf*-gnu)
12588  version_type=linux
12589  need_lib_prefix=no
12590  need_version=no
12591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12592  soname_spec='$libname$release$shared_ext$major'
12593  shlibpath_var=LD_LIBRARY_PATH
12594  shlibpath_overrides_runpath=no
12595  hardcode_into_libs=yes
12596  dynamic_linker='NetBSD ld.elf_so'
12597  ;;
12598
12599netbsd*)
12600  version_type=sunos
12601  need_lib_prefix=no
12602  need_version=no
12603  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12604    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12605    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12606    dynamic_linker='NetBSD (a.out) ld.so'
12607  else
12608    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609    soname_spec='$libname$release$shared_ext$major'
12610    dynamic_linker='NetBSD ld.elf_so'
12611  fi
12612  shlibpath_var=LD_LIBRARY_PATH
12613  shlibpath_overrides_runpath=yes
12614  hardcode_into_libs=yes
12615  ;;
12616
12617*-mlibc)
12618  version_type=linux # correct to gnu/linux during the next big refactor
12619  need_lib_prefix=no
12620  need_version=no
12621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12622  soname_spec='$libname$release$shared_ext$major'
12623  dynamic_linker='mlibc ld.so'
12624  shlibpath_var=LD_LIBRARY_PATH
12625  shlibpath_overrides_runpath=no
12626  hardcode_into_libs=yes
12627  ;;
12628
12629newsos6)
12630  version_type=linux # correct to gnu/linux during the next big refactor
12631  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12632  shlibpath_var=LD_LIBRARY_PATH
12633  shlibpath_overrides_runpath=yes
12634  ;;
12635
12636*nto* | *qnx*)
12637  version_type=qnx
12638  need_lib_prefix=no
12639  need_version=no
12640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12641  soname_spec='$libname$release$shared_ext$major'
12642  shlibpath_var=LD_LIBRARY_PATH
12643  shlibpath_overrides_runpath=no
12644  hardcode_into_libs=yes
12645  dynamic_linker='ldqnx.so'
12646  ;;
12647
12648openbsd*)
12649  version_type=sunos
12650  sys_lib_dlsearch_path_spec=/usr/lib
12651  need_lib_prefix=no
12652  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12653    need_version=no
12654  else
12655    need_version=yes
12656  fi
12657  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12658  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12659  shlibpath_var=LD_LIBRARY_PATH
12660  shlibpath_overrides_runpath=yes
12661  ;;
12662
12663os2*)
12664  libname_spec='$name'
12665  version_type=windows
12666  shrext_cmds=.dll
12667  need_version=no
12668  need_lib_prefix=no
12669  # OS/2 can only load a DLL with a base name of 8 characters or less.
12670  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12671    v=$($ECHO $release$versuffix | tr -d .-);
12672    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12673    $ECHO $n$v`$shared_ext'
12674  library_names_spec='${libname}_dll.$libext'
12675  dynamic_linker='OS/2 ld.exe'
12676  shlibpath_var=BEGINLIBPATH
12677  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12678  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12679  postinstall_cmds='base_file=`basename \$file`~
12680    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12681    dldir=$destdir/`dirname \$dlpath`~
12682    test -d \$dldir || mkdir -p \$dldir~
12683    $install_prog $dir/$dlname \$dldir/$dlname~
12684    chmod a+x \$dldir/$dlname~
12685    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12686      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12687    fi'
12688  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12689    dlpath=$dir/\$dldll~
12690    $RM \$dlpath'
12691  ;;
12692
12693osf3* | osf4* | osf5*)
12694  version_type=osf
12695  need_lib_prefix=no
12696  need_version=no
12697  soname_spec='$libname$release$shared_ext$major'
12698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12699  shlibpath_var=LD_LIBRARY_PATH
12700  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12701  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12702  ;;
12703
12704rdos*)
12705  dynamic_linker=no
12706  ;;
12707
12708serenity*)
12709  version_type=linux # correct to gnu/linux during the next big refactor
12710  need_lib_prefix=no
12711  need_version=no
12712  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12713  soname_spec='$libname$release$shared_ext$major'
12714  shlibpath_var=LD_LIBRARY_PATH
12715  shlibpath_overrides_runpath=no
12716  dynamic_linker='SerenityOS LibELF'
12717  ;;
12718
12719solaris*)
12720  version_type=linux # correct to gnu/linux during the next big refactor
12721  need_lib_prefix=no
12722  need_version=no
12723  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724  soname_spec='$libname$release$shared_ext$major'
12725  shlibpath_var=LD_LIBRARY_PATH
12726  shlibpath_overrides_runpath=yes
12727  hardcode_into_libs=yes
12728  # ldd complains unless libraries are executable
12729  postinstall_cmds='chmod +x $lib'
12730  ;;
12731
12732sunos4*)
12733  version_type=sunos
12734  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12735  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12736  shlibpath_var=LD_LIBRARY_PATH
12737  shlibpath_overrides_runpath=yes
12738  if test yes = "$with_gnu_ld"; then
12739    need_lib_prefix=no
12740  fi
12741  need_version=yes
12742  ;;
12743
12744sysv4 | sysv4.3*)
12745  version_type=linux # correct to gnu/linux during the next big refactor
12746  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12747  soname_spec='$libname$release$shared_ext$major'
12748  shlibpath_var=LD_LIBRARY_PATH
12749  case $host_vendor in
12750    sni)
12751      shlibpath_overrides_runpath=no
12752      need_lib_prefix=no
12753      runpath_var=LD_RUN_PATH
12754      ;;
12755    siemens)
12756      need_lib_prefix=no
12757      ;;
12758    motorola)
12759      need_lib_prefix=no
12760      need_version=no
12761      shlibpath_overrides_runpath=no
12762      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12763      ;;
12764  esac
12765  ;;
12766
12767sysv4*MP*)
12768  if test -d /usr/nec; then
12769    version_type=linux # correct to gnu/linux during the next big refactor
12770    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12771    soname_spec='$libname$shared_ext.$major'
12772    shlibpath_var=LD_LIBRARY_PATH
12773  fi
12774  ;;
12775
12776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12777  version_type=sco
12778  need_lib_prefix=no
12779  need_version=no
12780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12781  soname_spec='$libname$release$shared_ext$major'
12782  shlibpath_var=LD_LIBRARY_PATH
12783  shlibpath_overrides_runpath=yes
12784  hardcode_into_libs=yes
12785  if test yes = "$with_gnu_ld"; then
12786    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12787  else
12788    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12789    case $host_os in
12790      sco3.2v5*)
12791        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12792	;;
12793    esac
12794  fi
12795  sys_lib_dlsearch_path_spec='/usr/lib'
12796  ;;
12797
12798tpf*)
12799  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12800  version_type=linux # correct to gnu/linux during the next big refactor
12801  need_lib_prefix=no
12802  need_version=no
12803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12804  shlibpath_var=LD_LIBRARY_PATH
12805  shlibpath_overrides_runpath=no
12806  hardcode_into_libs=yes
12807  ;;
12808
12809uts4*)
12810  version_type=linux # correct to gnu/linux during the next big refactor
12811  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12812  soname_spec='$libname$release$shared_ext$major'
12813  shlibpath_var=LD_LIBRARY_PATH
12814  ;;
12815
12816emscripten*)
12817  version_type=none
12818  need_lib_prefix=no
12819  need_version=no
12820  library_names_spec='$libname$release$shared_ext'
12821  soname_spec='$libname$release$shared_ext'
12822  finish_cmds=
12823  dynamic_linker="Emscripten linker"
12824  lt_prog_compiler_wl=
12825lt_prog_compiler_pic=
12826lt_prog_compiler_static=
12827
12828
12829  if test yes = "$GCC"; then
12830    lt_prog_compiler_wl='-Wl,'
12831    lt_prog_compiler_static='-static'
12832
12833    case $host_os in
12834      aix*)
12835      # All AIX code is PIC.
12836      if test ia64 = "$host_cpu"; then
12837	# AIX 5 now supports IA64 processor
12838	lt_prog_compiler_static='-Bstatic'
12839      fi
12840      lt_prog_compiler_pic='-fPIC'
12841      ;;
12842
12843    amigaos*)
12844      case $host_cpu in
12845      powerpc)
12846            # see comment about AmigaOS4 .so support
12847            lt_prog_compiler_pic='-fPIC'
12848        ;;
12849      m68k)
12850            # FIXME: we need at least 68020 code to build shared libraries, but
12851            # adding the '-m68020' flag to GCC prevents building anything better,
12852            # like '-m68040'.
12853            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12854        ;;
12855      esac
12856      ;;
12857
12858    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12859      # PIC is the default for these OSes.
12860      ;;
12861
12862    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12863      # This hack is so that the source file can tell whether it is being
12864      # built for inclusion in a dll (and should export symbols for example).
12865      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12866      # (--disable-auto-import) libraries
12867      lt_prog_compiler_pic='-DDLL_EXPORT'
12868      case $host_os in
12869      os2*)
12870	lt_prog_compiler_static='$wl-static'
12871	;;
12872      esac
12873      ;;
12874
12875    darwin* | rhapsody*)
12876      # PIC is the default on this platform
12877      # Common symbols not allowed in MH_DYLIB files
12878      lt_prog_compiler_pic='-fno-common'
12879      ;;
12880
12881    haiku*)
12882      # PIC is the default for Haiku.
12883      # The "-static" flag exists, but is broken.
12884      lt_prog_compiler_static=
12885      ;;
12886
12887    hpux*)
12888      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12889      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12890      # sets the default TLS model and affects inlining.
12891      case $host_cpu in
12892      hppa*64*)
12893	# +Z the default
12894	;;
12895      *)
12896	lt_prog_compiler_pic='-fPIC'
12897	;;
12898      esac
12899      ;;
12900
12901    interix[3-9]*)
12902      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12903      # Instead, we relocate shared libraries at runtime.
12904      ;;
12905
12906    msdosdjgpp*)
12907      # Just because we use GCC doesn't mean we suddenly get shared libraries
12908      # on systems that don't support them.
12909      lt_prog_compiler_can_build_shared=no
12910      enable_shared=no
12911      ;;
12912
12913    *nto* | *qnx*)
12914      # QNX uses GNU C++, but need to define -shared option too, otherwise
12915      # it will coredump.
12916      lt_prog_compiler_pic='-fPIC -shared'
12917      ;;
12918
12919    sysv4*MP*)
12920      if test -d /usr/nec; then
12921	lt_prog_compiler_pic=-Kconform_pic
12922      fi
12923      ;;
12924
12925    *)
12926      lt_prog_compiler_pic='-fPIC'
12927      ;;
12928    esac
12929
12930    case $cc_basename in
12931    nvcc*) # Cuda Compiler Driver 2.2
12932      lt_prog_compiler_wl='-Xlinker '
12933      if test -n "$lt_prog_compiler_pic"; then
12934        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12935      fi
12936      ;;
12937    esac
12938  else
12939    # PORTME Check for flag to pass linker flags through the system compiler.
12940    case $host_os in
12941    aix*)
12942      lt_prog_compiler_wl='-Wl,'
12943      if test ia64 = "$host_cpu"; then
12944	# AIX 5 now supports IA64 processor
12945	lt_prog_compiler_static='-Bstatic'
12946      else
12947	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12948      fi
12949      ;;
12950
12951    darwin* | rhapsody*)
12952      # PIC is the default on this platform
12953      # Common symbols not allowed in MH_DYLIB files
12954      lt_prog_compiler_pic='-fno-common'
12955      case $cc_basename in
12956      nagfor*)
12957        # NAG Fortran compiler
12958        lt_prog_compiler_wl='-Wl,-Wl,,'
12959        lt_prog_compiler_pic='-PIC'
12960        lt_prog_compiler_static='-Bstatic'
12961        ;;
12962      esac
12963      ;;
12964
12965    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12966      # This hack is so that the source file can tell whether it is being
12967      # built for inclusion in a dll (and should export symbols for example).
12968      lt_prog_compiler_pic='-DDLL_EXPORT'
12969      case $host_os in
12970      os2*)
12971	lt_prog_compiler_static='$wl-static'
12972	;;
12973      esac
12974      ;;
12975
12976    hpux9* | hpux10* | hpux11*)
12977      lt_prog_compiler_wl='-Wl,'
12978      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12979      # not for PA HP-UX.
12980      case $host_cpu in
12981      hppa*64*|ia64*)
12982	# +Z the default
12983	;;
12984      *)
12985	lt_prog_compiler_pic='+Z'
12986	;;
12987      esac
12988      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12989      lt_prog_compiler_static='$wl-a ${wl}archive'
12990      ;;
12991
12992    irix5* | irix6* | nonstopux*)
12993      lt_prog_compiler_wl='-Wl,'
12994      # PIC (with -KPIC) is the default.
12995      lt_prog_compiler_static='-non_shared'
12996      ;;
12997
12998    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12999      case $cc_basename in
13000      # old Intel for x86_64, which still supported -KPIC.
13001      ecc*)
13002	lt_prog_compiler_wl='-Wl,'
13003	lt_prog_compiler_pic='-KPIC'
13004	lt_prog_compiler_static='-static'
13005        ;;
13006      *flang* | ftn | f18* | f95*)
13007        # Flang compiler.
13008	lt_prog_compiler_wl='-Wl,'
13009	lt_prog_compiler_pic='-fPIC'
13010	lt_prog_compiler_static='-static'
13011        ;;
13012      # icc used to be incompatible with GCC.
13013      # ICC 10 doesn't accept -KPIC any more.
13014      icc* | ifort*)
13015	lt_prog_compiler_wl='-Wl,'
13016	lt_prog_compiler_pic='-fPIC'
13017	lt_prog_compiler_static='-static'
13018        ;;
13019      # Lahey Fortran 8.1.
13020      lf95*)
13021	lt_prog_compiler_wl='-Wl,'
13022	lt_prog_compiler_pic='--shared'
13023	lt_prog_compiler_static='--static'
13024	;;
13025      nagfor*)
13026	# NAG Fortran compiler
13027	lt_prog_compiler_wl='-Wl,-Wl,,'
13028	lt_prog_compiler_pic='-PIC'
13029	lt_prog_compiler_static='-Bstatic'
13030	;;
13031      tcc*)
13032	# Fabrice Bellard et al's Tiny C Compiler
13033	lt_prog_compiler_wl='-Wl,'
13034	lt_prog_compiler_pic='-fPIC'
13035	lt_prog_compiler_static='-static'
13036	;;
13037      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13038        # Portland Group compilers (*not* the Pentium gcc compiler,
13039	# which looks to be a dead project)
13040	lt_prog_compiler_wl='-Wl,'
13041	lt_prog_compiler_pic='-fpic'
13042	lt_prog_compiler_static='-Bstatic'
13043        ;;
13044      ccc*)
13045        lt_prog_compiler_wl='-Wl,'
13046        # All Alpha code is PIC.
13047        lt_prog_compiler_static='-non_shared'
13048        ;;
13049      xl* | bgxl* | bgf* | mpixl*)
13050	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13051	lt_prog_compiler_wl='-Wl,'
13052	lt_prog_compiler_pic='-qpic'
13053	lt_prog_compiler_static='-qstaticlink'
13054	;;
13055      *)
13056	case `$CC -V 2>&1 | $SED 5q` in
13057	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13058	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13059	  lt_prog_compiler_pic='-KPIC'
13060	  lt_prog_compiler_static='-Bstatic'
13061	  lt_prog_compiler_wl=''
13062	  ;;
13063	*Sun\ F* | *Sun*Fortran*)
13064	  lt_prog_compiler_pic='-KPIC'
13065	  lt_prog_compiler_static='-Bstatic'
13066	  lt_prog_compiler_wl='-Qoption ld '
13067	  ;;
13068	*Sun\ C*)
13069	  # Sun C 5.9
13070	  lt_prog_compiler_pic='-KPIC'
13071	  lt_prog_compiler_static='-Bstatic'
13072	  lt_prog_compiler_wl='-Wl,'
13073	  ;;
13074        *Intel*\ [CF]*Compiler*)
13075	  lt_prog_compiler_wl='-Wl,'
13076	  lt_prog_compiler_pic='-fPIC'
13077	  lt_prog_compiler_static='-static'
13078	  ;;
13079	*Portland\ Group*)
13080	  lt_prog_compiler_wl='-Wl,'
13081	  lt_prog_compiler_pic='-fpic'
13082	  lt_prog_compiler_static='-Bstatic'
13083	  ;;
13084	esac
13085	;;
13086      esac
13087      ;;
13088
13089    newsos6)
13090      lt_prog_compiler_pic='-KPIC'
13091      lt_prog_compiler_static='-Bstatic'
13092      ;;
13093
13094    *-mlibc)
13095      lt_prog_compiler_wl='-Wl,'
13096      lt_prog_compiler_pic='-fPIC'
13097      lt_prog_compiler_static='-static'
13098      ;;
13099
13100    *nto* | *qnx*)
13101      # QNX uses GNU C++, but need to define -shared option too, otherwise
13102      # it will coredump.
13103      lt_prog_compiler_pic='-fPIC -shared'
13104      ;;
13105
13106    osf3* | osf4* | osf5*)
13107      lt_prog_compiler_wl='-Wl,'
13108      # All OSF/1 code is PIC.
13109      lt_prog_compiler_static='-non_shared'
13110      ;;
13111
13112    rdos*)
13113      lt_prog_compiler_static='-non_shared'
13114      ;;
13115
13116    serenity*)
13117      ;;
13118
13119    solaris*)
13120      lt_prog_compiler_pic='-KPIC'
13121      lt_prog_compiler_static='-Bstatic'
13122      case $cc_basename in
13123      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13124	lt_prog_compiler_wl='-Qoption ld ';;
13125      *)
13126	lt_prog_compiler_wl='-Wl,';;
13127      esac
13128      ;;
13129
13130    sunos4*)
13131      lt_prog_compiler_wl='-Qoption ld '
13132      lt_prog_compiler_pic='-PIC'
13133      lt_prog_compiler_static='-Bstatic'
13134      ;;
13135
13136    sysv4 | sysv4.2uw2* | sysv4.3*)
13137      lt_prog_compiler_wl='-Wl,'
13138      lt_prog_compiler_pic='-KPIC'
13139      lt_prog_compiler_static='-Bstatic'
13140      ;;
13141
13142    sysv4*MP*)
13143      if test -d /usr/nec; then
13144	lt_prog_compiler_pic='-Kconform_pic'
13145	lt_prog_compiler_static='-Bstatic'
13146      fi
13147      ;;
13148
13149    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13150      lt_prog_compiler_wl='-Wl,'
13151      lt_prog_compiler_pic='-KPIC'
13152      lt_prog_compiler_static='-Bstatic'
13153      ;;
13154
13155    unicos*)
13156      lt_prog_compiler_wl='-Wl,'
13157      lt_prog_compiler_can_build_shared=no
13158      ;;
13159
13160    uts4*)
13161      lt_prog_compiler_pic='-pic'
13162      lt_prog_compiler_static='-Bstatic'
13163      ;;
13164
13165    *)
13166      lt_prog_compiler_can_build_shared=no
13167      ;;
13168    esac
13169  fi
13170
13171case $host_os in
13172  # For platforms that do not support PIC, -DPIC is meaningless:
13173  *djgpp*)
13174    lt_prog_compiler_pic=
13175    ;;
13176  *)
13177    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13178    ;;
13179esac
13180
13181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13182printf %s "checking for $compiler option to produce PIC... " >&6; }
13183if test ${lt_cv_prog_compiler_pic+y}
13184then :
13185  printf %s "(cached) " >&6
13186else case e in #(
13187  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13188esac
13189fi
13190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13191printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13192lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13193
13194#
13195# Check to make sure the PIC flag actually works.
13196#
13197if test -n "$lt_prog_compiler_pic"; then
13198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13199printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13200if test ${lt_cv_prog_compiler_pic_works+y}
13201then :
13202  printf %s "(cached) " >&6
13203else case e in #(
13204  e) lt_cv_prog_compiler_pic_works=no
13205   ac_outfile=conftest.$ac_objext
13206   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13207   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13208   # Insert the option either (1) after the last *FLAGS variable, or
13209   # (2) before a word containing "conftest.", or (3) at the end.
13210   # Note that $ac_compile itself does not contain backslashes and begins
13211   # with a dollar sign (not a hyphen), so the echo should work correctly.
13212   # The option is referenced via a variable to avoid confusing sed.
13213   lt_compile=`echo "$ac_compile" | $SED \
13214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13216   -e 's:$: $lt_compiler_flag:'`
13217   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13218   (eval "$lt_compile" 2>conftest.err)
13219   ac_status=$?
13220   cat conftest.err >&5
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   if (exit $ac_status) && test -s "$ac_outfile"; then
13223     # The compiler can only warn and ignore the option if not recognized
13224     # So say no if there are warnings other than the usual output.
13225     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13226     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13227     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13228       lt_cv_prog_compiler_pic_works=yes
13229     fi
13230   fi
13231   $RM conftest*
13232 ;;
13233esac
13234fi
13235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13236printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13237
13238if test yes = "$lt_cv_prog_compiler_pic_works"; then
13239    case $lt_prog_compiler_pic in
13240     "" | " "*) ;;
13241     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13242     esac
13243else
13244    lt_prog_compiler_pic=
13245     lt_prog_compiler_can_build_shared=no
13246fi
13247
13248fi
13249
13250
13251
13252
13253
13254#
13255# Check to make sure the static flag actually works.
13256#
13257wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13259printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13260if test ${lt_cv_prog_compiler_static_works+y}
13261then :
13262  printf %s "(cached) " >&6
13263else case e in #(
13264  e) lt_cv_prog_compiler_static_works=no
13265   save_LDFLAGS=$LDFLAGS
13266   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13267   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13268   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13269     # The linker can only warn and ignore the option if not recognized
13270     # So say no if there are warnings
13271     if test -s conftest.err; then
13272       # Append any errors to the config.log.
13273       cat conftest.err 1>&5
13274       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13275       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13276       if diff conftest.exp conftest.er2 >/dev/null; then
13277         lt_cv_prog_compiler_static_works=yes
13278       fi
13279     else
13280       lt_cv_prog_compiler_static_works=yes
13281     fi
13282   fi
13283   $RM -r conftest*
13284   LDFLAGS=$save_LDFLAGS
13285 ;;
13286esac
13287fi
13288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13289printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13290
13291if test yes = "$lt_cv_prog_compiler_static_works"; then
13292    :
13293else
13294    lt_prog_compiler_static=
13295fi
13296
13297
13298
13299='-fPIC'
13300  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13301  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13302  archive_cmds_need_lc=no
13303  no_undefined_flag=
13304  ;;
13305
13306*)
13307  dynamic_linker=no
13308  ;;
13309esac
13310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13311printf "%s\n" "$dynamic_linker" >&6; }
13312test no = "$dynamic_linker" && can_build_shared=no
13313
13314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13315if test yes = "$GCC"; then
13316  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13317fi
13318
13319if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13320  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13321fi
13322
13323if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13324  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13325fi
13326
13327# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13328configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13329
13330# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13331func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13332
13333# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13334configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13433printf %s "checking how to hardcode library paths into programs... " >&6; }
13434hardcode_action=
13435if test -n "$hardcode_libdir_flag_spec" ||
13436   test -n "$runpath_var" ||
13437   test yes = "$hardcode_automatic"; then
13438
13439  # We can hardcode non-existent directories.
13440  if test no != "$hardcode_direct" &&
13441     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13442     # have to relink, otherwise we might link with an installed library
13443     # when we should be linking with a yet-to-be-installed one
13444     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13445     test no != "$hardcode_minus_L"; then
13446    # Linking always hardcodes the temporary library directory.
13447    hardcode_action=relink
13448  else
13449    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13450    hardcode_action=immediate
13451  fi
13452else
13453  # We cannot hardcode anything, or else we can only hardcode existing
13454  # directories.
13455  hardcode_action=unsupported
13456fi
13457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13458printf "%s\n" "$hardcode_action" >&6; }
13459
13460if test relink = "$hardcode_action" ||
13461   test yes = "$inherit_rpath"; then
13462  # Fast installation is not supported
13463  enable_fast_install=no
13464elif test yes = "$shlibpath_overrides_runpath" ||
13465     test no = "$enable_shared"; then
13466  # Fast installation is not necessary
13467  enable_fast_install=needless
13468fi
13469
13470
13471
13472
13473
13474
13475  if test yes != "$enable_dlopen"; then
13476  enable_dlopen=unknown
13477  enable_dlopen_self=unknown
13478  enable_dlopen_self_static=unknown
13479else
13480  lt_cv_dlopen=no
13481  lt_cv_dlopen_libs=
13482
13483  case $host_os in
13484  beos*)
13485    lt_cv_dlopen=load_add_on
13486    lt_cv_dlopen_libs=
13487    lt_cv_dlopen_self=yes
13488    ;;
13489
13490  mingw* | windows* | pw32* | cegcc*)
13491    lt_cv_dlopen=LoadLibrary
13492    lt_cv_dlopen_libs=
13493    ;;
13494
13495  cygwin*)
13496    lt_cv_dlopen=dlopen
13497    lt_cv_dlopen_libs=
13498    ;;
13499
13500  darwin*)
13501    # if libdl is installed we need to link against it
13502    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13503printf %s "checking for dlopen in -ldl... " >&6; }
13504if test ${ac_cv_lib_dl_dlopen+y}
13505then :
13506  printf %s "(cached) " >&6
13507else case e in #(
13508  e) ac_check_lib_save_LIBS=$LIBS
13509LIBS="-ldl  $LIBS"
13510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511/* end confdefs.h.  */
13512
13513/* Override any GCC internal prototype to avoid an error.
13514   Use char because int might match the return type of a GCC
13515   builtin and then its argument prototype would still apply.
13516   The 'extern "C"' is for builds by C++ compilers;
13517   although this is not generally supported in C code supporting it here
13518   has little cost and some practical benefit (sr 110532).  */
13519#ifdef __cplusplus
13520extern "C"
13521#endif
13522char dlopen (void);
13523int
13524main (void)
13525{
13526return dlopen ();
13527  ;
13528  return 0;
13529}
13530_ACEOF
13531if ac_fn_c_try_link "$LINENO"
13532then :
13533  ac_cv_lib_dl_dlopen=yes
13534else case e in #(
13535  e) ac_cv_lib_dl_dlopen=no ;;
13536esac
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.beam \
13539    conftest$ac_exeext conftest.$ac_ext
13540LIBS=$ac_check_lib_save_LIBS ;;
13541esac
13542fi
13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13544printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13545if test "x$ac_cv_lib_dl_dlopen" = xyes
13546then :
13547  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13548else case e in #(
13549  e)
13550    lt_cv_dlopen=dyld
13551    lt_cv_dlopen_libs=
13552    lt_cv_dlopen_self=yes
13553     ;;
13554esac
13555fi
13556
13557    ;;
13558
13559  tpf*)
13560    # Don't try to run any link tests for TPF.  We know it's impossible
13561    # because TPF is a cross-compiler, and we know how we open DSOs.
13562    lt_cv_dlopen=dlopen
13563    lt_cv_dlopen_libs=
13564    lt_cv_dlopen_self=no
13565    ;;
13566
13567  *)
13568    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13569if test "x$ac_cv_func_shl_load" = xyes
13570then :
13571  lt_cv_dlopen=shl_load
13572else case e in #(
13573  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13574printf %s "checking for shl_load in -ldld... " >&6; }
13575if test ${ac_cv_lib_dld_shl_load+y}
13576then :
13577  printf %s "(cached) " >&6
13578else case e in #(
13579  e) ac_check_lib_save_LIBS=$LIBS
13580LIBS="-ldld  $LIBS"
13581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582/* end confdefs.h.  */
13583
13584/* Override any GCC internal prototype to avoid an error.
13585   Use char because int might match the return type of a GCC
13586   builtin and then its argument prototype would still apply.
13587   The 'extern "C"' is for builds by C++ compilers;
13588   although this is not generally supported in C code supporting it here
13589   has little cost and some practical benefit (sr 110532).  */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char shl_load (void);
13594int
13595main (void)
13596{
13597return shl_load ();
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"
13603then :
13604  ac_cv_lib_dld_shl_load=yes
13605else case e in #(
13606  e) ac_cv_lib_dld_shl_load=no ;;
13607esac
13608fi
13609rm -f core conftest.err conftest.$ac_objext conftest.beam \
13610    conftest$ac_exeext conftest.$ac_ext
13611LIBS=$ac_check_lib_save_LIBS ;;
13612esac
13613fi
13614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13615printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13616if test "x$ac_cv_lib_dld_shl_load" = xyes
13617then :
13618  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13619else case e in #(
13620  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13621if test "x$ac_cv_func_dlopen" = xyes
13622then :
13623  lt_cv_dlopen=dlopen
13624else case e in #(
13625  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13626printf %s "checking for dlopen in -ldl... " >&6; }
13627if test ${ac_cv_lib_dl_dlopen+y}
13628then :
13629  printf %s "(cached) " >&6
13630else case e in #(
13631  e) ac_check_lib_save_LIBS=$LIBS
13632LIBS="-ldl  $LIBS"
13633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635
13636/* Override any GCC internal prototype to avoid an error.
13637   Use char because int might match the return type of a GCC
13638   builtin and then its argument prototype would still apply.
13639   The 'extern "C"' is for builds by C++ compilers;
13640   although this is not generally supported in C code supporting it here
13641   has little cost and some practical benefit (sr 110532).  */
13642#ifdef __cplusplus
13643extern "C"
13644#endif
13645char dlopen (void);
13646int
13647main (void)
13648{
13649return dlopen ();
13650  ;
13651  return 0;
13652}
13653_ACEOF
13654if ac_fn_c_try_link "$LINENO"
13655then :
13656  ac_cv_lib_dl_dlopen=yes
13657else case e in #(
13658  e) ac_cv_lib_dl_dlopen=no ;;
13659esac
13660fi
13661rm -f core conftest.err conftest.$ac_objext conftest.beam \
13662    conftest$ac_exeext conftest.$ac_ext
13663LIBS=$ac_check_lib_save_LIBS ;;
13664esac
13665fi
13666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13667printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13668if test "x$ac_cv_lib_dl_dlopen" = xyes
13669then :
13670  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13671else case e in #(
13672  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13673printf %s "checking for dlopen in -lsvld... " >&6; }
13674if test ${ac_cv_lib_svld_dlopen+y}
13675then :
13676  printf %s "(cached) " >&6
13677else case e in #(
13678  e) ac_check_lib_save_LIBS=$LIBS
13679LIBS="-lsvld  $LIBS"
13680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h.  */
13682
13683/* Override any GCC internal prototype to avoid an error.
13684   Use char because int might match the return type of a GCC
13685   builtin and then its argument prototype would still apply.
13686   The 'extern "C"' is for builds by C++ compilers;
13687   although this is not generally supported in C code supporting it here
13688   has little cost and some practical benefit (sr 110532).  */
13689#ifdef __cplusplus
13690extern "C"
13691#endif
13692char dlopen (void);
13693int
13694main (void)
13695{
13696return dlopen ();
13697  ;
13698  return 0;
13699}
13700_ACEOF
13701if ac_fn_c_try_link "$LINENO"
13702then :
13703  ac_cv_lib_svld_dlopen=yes
13704else case e in #(
13705  e) ac_cv_lib_svld_dlopen=no ;;
13706esac
13707fi
13708rm -f core conftest.err conftest.$ac_objext conftest.beam \
13709    conftest$ac_exeext conftest.$ac_ext
13710LIBS=$ac_check_lib_save_LIBS ;;
13711esac
13712fi
13713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13714printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13715if test "x$ac_cv_lib_svld_dlopen" = xyes
13716then :
13717  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13718else case e in #(
13719  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13720printf %s "checking for dld_link in -ldld... " >&6; }
13721if test ${ac_cv_lib_dld_dld_link+y}
13722then :
13723  printf %s "(cached) " >&6
13724else case e in #(
13725  e) ac_check_lib_save_LIBS=$LIBS
13726LIBS="-ldld  $LIBS"
13727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728/* end confdefs.h.  */
13729
13730/* Override any GCC internal prototype to avoid an error.
13731   Use char because int might match the return type of a GCC
13732   builtin and then its argument prototype would still apply.
13733   The 'extern "C"' is for builds by C++ compilers;
13734   although this is not generally supported in C code supporting it here
13735   has little cost and some practical benefit (sr 110532).  */
13736#ifdef __cplusplus
13737extern "C"
13738#endif
13739char dld_link (void);
13740int
13741main (void)
13742{
13743return dld_link ();
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748if ac_fn_c_try_link "$LINENO"
13749then :
13750  ac_cv_lib_dld_dld_link=yes
13751else case e in #(
13752  e) ac_cv_lib_dld_dld_link=no ;;
13753esac
13754fi
13755rm -f core conftest.err conftest.$ac_objext conftest.beam \
13756    conftest$ac_exeext conftest.$ac_ext
13757LIBS=$ac_check_lib_save_LIBS ;;
13758esac
13759fi
13760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13761printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13762if test "x$ac_cv_lib_dld_dld_link" = xyes
13763then :
13764  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13765fi
13766
13767	       ;;
13768esac
13769fi
13770
13771	     ;;
13772esac
13773fi
13774
13775	   ;;
13776esac
13777fi
13778
13779	 ;;
13780esac
13781fi
13782
13783       ;;
13784esac
13785fi
13786
13787    ;;
13788  esac
13789
13790  if test no = "$lt_cv_dlopen"; then
13791    enable_dlopen=no
13792  else
13793    enable_dlopen=yes
13794  fi
13795
13796  case $lt_cv_dlopen in
13797  dlopen)
13798    save_CPPFLAGS=$CPPFLAGS
13799    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13800
13801    save_LDFLAGS=$LDFLAGS
13802    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13803
13804    save_LIBS=$LIBS
13805    LIBS="$lt_cv_dlopen_libs $LIBS"
13806
13807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13808printf %s "checking whether a program can dlopen itself... " >&6; }
13809if test ${lt_cv_dlopen_self+y}
13810then :
13811  printf %s "(cached) " >&6
13812else case e in #(
13813  e) 	  if test yes = "$cross_compiling"; then :
13814  lt_cv_dlopen_self=cross
13815else
13816  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13817  lt_status=$lt_dlunknown
13818  cat > conftest.$ac_ext <<_LT_EOF
13819#line $LINENO "configure"
13820#include "confdefs.h"
13821
13822#if HAVE_DLFCN_H
13823#include <dlfcn.h>
13824#endif
13825
13826#include <stdio.h>
13827
13828#ifdef RTLD_GLOBAL
13829#  define LT_DLGLOBAL		RTLD_GLOBAL
13830#else
13831#  ifdef DL_GLOBAL
13832#    define LT_DLGLOBAL		DL_GLOBAL
13833#  else
13834#    define LT_DLGLOBAL		0
13835#  endif
13836#endif
13837
13838/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13839   find out it does not work in some platform. */
13840#ifndef LT_DLLAZY_OR_NOW
13841#  ifdef RTLD_LAZY
13842#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13843#  else
13844#    ifdef DL_LAZY
13845#      define LT_DLLAZY_OR_NOW		DL_LAZY
13846#    else
13847#      ifdef RTLD_NOW
13848#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13849#      else
13850#        ifdef DL_NOW
13851#          define LT_DLLAZY_OR_NOW	DL_NOW
13852#        else
13853#          define LT_DLLAZY_OR_NOW	0
13854#        endif
13855#      endif
13856#    endif
13857#  endif
13858#endif
13859
13860/* When -fvisibility=hidden is used, assume the code has been annotated
13861   correspondingly for the symbols needed.  */
13862#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13863int fnord (void) __attribute__((visibility("default")));
13864#endif
13865
13866int fnord (void) { return 42; }
13867int main (void)
13868{
13869  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13870  int status = $lt_dlunknown;
13871
13872  if (self)
13873    {
13874      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13875      else
13876        {
13877	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13878          else puts (dlerror ());
13879	}
13880      /* dlclose (self); */
13881    }
13882  else
13883    puts (dlerror ());
13884
13885  return status;
13886}
13887_LT_EOF
13888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13889  (eval $ac_link) 2>&5
13890  ac_status=$?
13891  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13893    (./conftest; exit; ) >&5 2>/dev/null
13894    lt_status=$?
13895    case x$lt_status in
13896      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13897      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13898      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13899    esac
13900  else :
13901    # compilation failed
13902    lt_cv_dlopen_self=no
13903  fi
13904fi
13905rm -fr conftest*
13906
13907     ;;
13908esac
13909fi
13910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13911printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13912
13913    if test yes = "$lt_cv_dlopen_self"; then
13914      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13915      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13916printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13917if test ${lt_cv_dlopen_self_static+y}
13918then :
13919  printf %s "(cached) " >&6
13920else case e in #(
13921  e) 	  if test yes = "$cross_compiling"; then :
13922  lt_cv_dlopen_self_static=cross
13923else
13924  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13925  lt_status=$lt_dlunknown
13926  cat > conftest.$ac_ext <<_LT_EOF
13927#line $LINENO "configure"
13928#include "confdefs.h"
13929
13930#if HAVE_DLFCN_H
13931#include <dlfcn.h>
13932#endif
13933
13934#include <stdio.h>
13935
13936#ifdef RTLD_GLOBAL
13937#  define LT_DLGLOBAL		RTLD_GLOBAL
13938#else
13939#  ifdef DL_GLOBAL
13940#    define LT_DLGLOBAL		DL_GLOBAL
13941#  else
13942#    define LT_DLGLOBAL		0
13943#  endif
13944#endif
13945
13946/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13947   find out it does not work in some platform. */
13948#ifndef LT_DLLAZY_OR_NOW
13949#  ifdef RTLD_LAZY
13950#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13951#  else
13952#    ifdef DL_LAZY
13953#      define LT_DLLAZY_OR_NOW		DL_LAZY
13954#    else
13955#      ifdef RTLD_NOW
13956#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13957#      else
13958#        ifdef DL_NOW
13959#          define LT_DLLAZY_OR_NOW	DL_NOW
13960#        else
13961#          define LT_DLLAZY_OR_NOW	0
13962#        endif
13963#      endif
13964#    endif
13965#  endif
13966#endif
13967
13968/* When -fvisibility=hidden is used, assume the code has been annotated
13969   correspondingly for the symbols needed.  */
13970#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13971int fnord (void) __attribute__((visibility("default")));
13972#endif
13973
13974int fnord (void) { return 42; }
13975int main (void)
13976{
13977  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13978  int status = $lt_dlunknown;
13979
13980  if (self)
13981    {
13982      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13983      else
13984        {
13985	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13986          else puts (dlerror ());
13987	}
13988      /* dlclose (self); */
13989    }
13990  else
13991    puts (dlerror ());
13992
13993  return status;
13994}
13995_LT_EOF
13996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13997  (eval $ac_link) 2>&5
13998  ac_status=$?
13999  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14001    (./conftest; exit; ) >&5 2>/dev/null
14002    lt_status=$?
14003    case x$lt_status in
14004      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14005      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14006      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14007    esac
14008  else :
14009    # compilation failed
14010    lt_cv_dlopen_self_static=no
14011  fi
14012fi
14013rm -fr conftest*
14014
14015       ;;
14016esac
14017fi
14018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14019printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14020    fi
14021
14022    CPPFLAGS=$save_CPPFLAGS
14023    LDFLAGS=$save_LDFLAGS
14024    LIBS=$save_LIBS
14025    ;;
14026  esac
14027
14028  case $lt_cv_dlopen_self in
14029  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14030  *) enable_dlopen_self=unknown ;;
14031  esac
14032
14033  case $lt_cv_dlopen_self_static in
14034  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14035  *) enable_dlopen_self_static=unknown ;;
14036  esac
14037fi
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055striplib=
14056old_striplib=
14057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14058printf %s "checking whether stripping libraries is possible... " >&6; }
14059if test -z "$STRIP"; then
14060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061printf "%s\n" "no" >&6; }
14062else
14063  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14064    old_striplib="$STRIP --strip-debug"
14065    striplib="$STRIP --strip-unneeded"
14066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14067printf "%s\n" "yes" >&6; }
14068  else
14069    case $host_os in
14070    darwin*)
14071      # FIXME - insert some real tests, host_os isn't really good enough
14072      striplib="$STRIP -x"
14073      old_striplib="$STRIP -S"
14074      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075printf "%s\n" "yes" >&6; }
14076      ;;
14077    freebsd*)
14078      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14079        old_striplib="$STRIP --strip-debug"
14080        striplib="$STRIP --strip-unneeded"
14081        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14082printf "%s\n" "yes" >&6; }
14083      else
14084        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14085printf "%s\n" "no" >&6; }
14086      fi
14087      ;;
14088    *)
14089      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090printf "%s\n" "no" >&6; }
14091      ;;
14092    esac
14093  fi
14094fi
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107  # Report what library types will actually be built
14108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14109printf %s "checking if libtool supports shared libraries... " >&6; }
14110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14111printf "%s\n" "$can_build_shared" >&6; }
14112
14113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14114printf %s "checking whether to build shared libraries... " >&6; }
14115  test no = "$can_build_shared" && enable_shared=no
14116
14117  # On AIX, shared libraries and static libraries use the same namespace, and
14118  # are all built from PIC.
14119  case $host_os in
14120  aix3*)
14121    test yes = "$enable_shared" && enable_static=no
14122    if test -n "$RANLIB"; then
14123      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14124      postinstall_cmds='$RANLIB $lib'
14125    fi
14126    ;;
14127
14128  aix[4-9]*)
14129    if test ia64 != "$host_cpu"; then
14130      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14131      yes,aix,yes) ;;			# shared object as lib.so file only
14132      yes,svr4,*) ;;			# shared object as lib.so archive member only
14133      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14134      esac
14135    fi
14136    ;;
14137  esac
14138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14139printf "%s\n" "$enable_shared" >&6; }
14140
14141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14142printf %s "checking whether to build static libraries... " >&6; }
14143  # Make sure either enable_shared or enable_static is yes.
14144  test yes = "$enable_shared" || enable_static=yes
14145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14146printf "%s\n" "$enable_static" >&6; }
14147
14148
14149
14150
14151fi
14152ac_ext=c
14153ac_cpp='$CPP $CPPFLAGS'
14154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14156ac_compiler_gnu=$ac_cv_c_compiler_gnu
14157
14158CC=$lt_save_CC
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174        ac_config_commands="$ac_config_commands libtool"
14175
14176
14177
14178
14179# Only expand once:
14180
14181
14182
14183# Check whether --enable-largefile was given.
14184if test ${enable_largefile+y}
14185then :
14186  enableval=$enable_largefile;
14187fi
14188if test "$enable_largefile,$enable_year2038" != no,no
14189then :
14190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14191printf %s "checking for $CC option to enable large file support... " >&6; }
14192if test ${ac_cv_sys_largefile_opts+y}
14193then :
14194  printf %s "(cached) " >&6
14195else case e in #(
14196  e) ac_save_CC="$CC"
14197  ac_opt_found=no
14198  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14199    if test x"$ac_opt" != x"none needed"
14200then :
14201  CC="$ac_save_CC $ac_opt"
14202fi
14203    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205#include <sys/types.h>
14206#ifndef FTYPE
14207# define FTYPE off_t
14208#endif
14209 /* Check that FTYPE can represent 2**63 - 1 correctly.
14210    We can't simply define LARGE_FTYPE to be 9223372036854775807,
14211    since some C++ compilers masquerading as C compilers
14212    incorrectly reject 9223372036854775807.  */
14213#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14214  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14215		       && LARGE_FTYPE % 2147483647 == 1)
14216		      ? 1 : -1];
14217int
14218main (void)
14219{
14220
14221  ;
14222  return 0;
14223}
14224_ACEOF
14225if ac_fn_c_try_compile "$LINENO"
14226then :
14227  if test x"$ac_opt" = x"none needed"
14228then :
14229  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14230	 CC="$CC -DFTYPE=ino_t"
14231	 if ac_fn_c_try_compile "$LINENO"
14232then :
14233
14234else case e in #(
14235  e) CC="$CC -D_FILE_OFFSET_BITS=64"
14236	    if ac_fn_c_try_compile "$LINENO"
14237then :
14238  ac_opt='-D_FILE_OFFSET_BITS=64'
14239fi
14240rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14241esac
14242fi
14243rm -f core conftest.err conftest.$ac_objext conftest.beam
14244fi
14245      ac_cv_sys_largefile_opts=$ac_opt
14246      ac_opt_found=yes
14247fi
14248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14249    test $ac_opt_found = no || break
14250  done
14251  CC="$ac_save_CC"
14252
14253  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14254esac
14255fi
14256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14257printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14258
14259ac_have_largefile=yes
14260case $ac_cv_sys_largefile_opts in #(
14261  "none needed") :
14262     ;; #(
14263  "supported through gnulib") :
14264     ;; #(
14265  "support not detected") :
14266    ac_have_largefile=no ;; #(
14267  "-D_FILE_OFFSET_BITS=64") :
14268
14269printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14270 ;; #(
14271  "-D_LARGE_FILES=1") :
14272
14273printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14274 ;; #(
14275  "-n32") :
14276    CC="$CC -n32" ;; #(
14277  *) :
14278    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14279esac
14280
14281if test "$enable_year2038" != no
14282then :
14283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14284printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14285if test ${ac_cv_sys_year2038_opts+y}
14286then :
14287  printf %s "(cached) " >&6
14288else case e in #(
14289  e) ac_save_CPPFLAGS="$CPPFLAGS"
14290  ac_opt_found=no
14291  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14292    if test x"$ac_opt" != x"none needed"
14293then :
14294  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14295fi
14296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h.  */
14298
14299  #include <time.h>
14300  /* Check that time_t can represent 2**32 - 1 correctly.  */
14301  #define LARGE_TIME_T \\
14302    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14303  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14304                           && LARGE_TIME_T % 65537 == 0)
14305                          ? 1 : -1];
14306
14307int
14308main (void)
14309{
14310
14311  ;
14312  return 0;
14313}
14314_ACEOF
14315if ac_fn_c_try_compile "$LINENO"
14316then :
14317  ac_cv_sys_year2038_opts="$ac_opt"
14318      ac_opt_found=yes
14319fi
14320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14321    test $ac_opt_found = no || break
14322  done
14323  CPPFLAGS="$ac_save_CPPFLAGS"
14324  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
14325esac
14326fi
14327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
14328printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
14329
14330ac_have_year2038=yes
14331case $ac_cv_sys_year2038_opts in #(
14332  "none needed") :
14333     ;; #(
14334  "support not detected") :
14335    ac_have_year2038=no ;; #(
14336  "-D_TIME_BITS=64") :
14337
14338printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
14339 ;; #(
14340  "-D__MINGW_USE_VC2005_COMPAT") :
14341
14342printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
14343 ;; #(
14344  "-U_USE_32_BIT_TIME_T"*) :
14345    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14346printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14347as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
14348will stop working after mid-January 2038. Remove
14349_USE_32BIT_TIME_T from the compiler flags.
14350See 'config.log' for more details" "$LINENO" 5; } ;; #(
14351  *) :
14352    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
14353esac
14354
14355fi
14356
14357fi
14358
14359# Require xorg-macros minimum of 1.15 for fop minimum version
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14372printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14373if test ${ac_cv_c_undeclared_builtin_options+y}
14374then :
14375  printf %s "(cached) " >&6
14376else case e in #(
14377  e) ac_save_CFLAGS=$CFLAGS
14378   ac_cv_c_undeclared_builtin_options='cannot detect'
14379   for ac_arg in '' -fno-builtin; do
14380     CFLAGS="$ac_save_CFLAGS $ac_arg"
14381     # This test program should *not* compile successfully.
14382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h.  */
14384
14385int
14386main (void)
14387{
14388(void) strchr;
14389  ;
14390  return 0;
14391}
14392_ACEOF
14393if ac_fn_c_try_compile "$LINENO"
14394then :
14395
14396else case e in #(
14397  e) # This test program should compile successfully.
14398        # No library function is consistently available on
14399        # freestanding implementations, so test against a dummy
14400        # declaration.  Include always-available headers on the
14401        # off chance that they somehow elicit warnings.
14402        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h.  */
14404#include <float.h>
14405#include <limits.h>
14406#include <stdarg.h>
14407#include <stddef.h>
14408extern void ac_decl (int, char *);
14409
14410int
14411main (void)
14412{
14413(void) ac_decl (0, (char *) 0);
14414  (void) ac_decl;
14415
14416  ;
14417  return 0;
14418}
14419_ACEOF
14420if ac_fn_c_try_compile "$LINENO"
14421then :
14422  if test x"$ac_arg" = x
14423then :
14424  ac_cv_c_undeclared_builtin_options='none needed'
14425else case e in #(
14426  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14427esac
14428fi
14429          break
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14432esac
14433fi
14434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14435    done
14436    CFLAGS=$ac_save_CFLAGS
14437   ;;
14438esac
14439fi
14440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14441printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14442  case $ac_cv_c_undeclared_builtin_options in #(
14443  'cannot detect') :
14444    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14445printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14446as_fn_error $? "cannot make $CC report undeclared builtins
14447See 'config.log' for more details" "$LINENO" 5; } ;; #(
14448  'none needed') :
14449    ac_c_undeclared_builtin_options='' ;; #(
14450  *) :
14451    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14452esac
14453
14454
14455
14456
14457
14458ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14459if test "x$ac_cv_have_decl___clang__" = xyes
14460then :
14461  CLANGCC="yes"
14462else case e in #(
14463  e) CLANGCC="no" ;;
14464esac
14465fi
14466ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14467if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14468then :
14469  INTELCC="yes"
14470else case e in #(
14471  e) INTELCC="no" ;;
14472esac
14473fi
14474ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14475if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14476then :
14477  SUNCC="yes"
14478else case e in #(
14479  e) SUNCC="no" ;;
14480esac
14481fi
14482
14483
14484
14485
14486
14487
14488
14489
14490if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14491	if test -n "$ac_tool_prefix"; then
14492  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14493set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495printf %s "checking for $ac_word... " >&6; }
14496if test ${ac_cv_path_PKG_CONFIG+y}
14497then :
14498  printf %s "(cached) " >&6
14499else case e in #(
14500  e) case $PKG_CONFIG in
14501  [\\/]* | ?:[\\/]*)
14502  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14503  ;;
14504  *)
14505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506for as_dir in $PATH
14507do
14508  IFS=$as_save_IFS
14509  case $as_dir in #(((
14510    '') as_dir=./ ;;
14511    */) ;;
14512    *) as_dir=$as_dir/ ;;
14513  esac
14514    for ac_exec_ext in '' $ac_executable_extensions; do
14515  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14516    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14518    break 2
14519  fi
14520done
14521  done
14522IFS=$as_save_IFS
14523
14524  ;;
14525esac ;;
14526esac
14527fi
14528PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14529if test -n "$PKG_CONFIG"; then
14530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14531printf "%s\n" "$PKG_CONFIG" >&6; }
14532else
14533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534printf "%s\n" "no" >&6; }
14535fi
14536
14537
14538fi
14539if test -z "$ac_cv_path_PKG_CONFIG"; then
14540  ac_pt_PKG_CONFIG=$PKG_CONFIG
14541  # Extract the first word of "pkg-config", so it can be a program name with args.
14542set dummy pkg-config; ac_word=$2
14543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14544printf %s "checking for $ac_word... " >&6; }
14545if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14546then :
14547  printf %s "(cached) " >&6
14548else case e in #(
14549  e) case $ac_pt_PKG_CONFIG in
14550  [\\/]* | ?:[\\/]*)
14551  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14552  ;;
14553  *)
14554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555for as_dir in $PATH
14556do
14557  IFS=$as_save_IFS
14558  case $as_dir in #(((
14559    '') as_dir=./ ;;
14560    */) ;;
14561    *) as_dir=$as_dir/ ;;
14562  esac
14563    for ac_exec_ext in '' $ac_executable_extensions; do
14564  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14565    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14566    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14567    break 2
14568  fi
14569done
14570  done
14571IFS=$as_save_IFS
14572
14573  ;;
14574esac ;;
14575esac
14576fi
14577ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14578if test -n "$ac_pt_PKG_CONFIG"; then
14579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14580printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14581else
14582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583printf "%s\n" "no" >&6; }
14584fi
14585
14586  if test "x$ac_pt_PKG_CONFIG" = x; then
14587    PKG_CONFIG=""
14588  else
14589    case $cross_compiling:$ac_tool_warned in
14590yes:)
14591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14592printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14593ac_tool_warned=yes ;;
14594esac
14595    PKG_CONFIG=$ac_pt_PKG_CONFIG
14596  fi
14597else
14598  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14599fi
14600
14601fi
14602if test -n "$PKG_CONFIG"; then
14603	_pkg_min_version=0.9.0
14604	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14605printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14606	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14608printf "%s\n" "yes" >&6; }
14609	else
14610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611printf "%s\n" "no" >&6; }
14612		PKG_CONFIG=""
14613	fi
14614fi
14615
14616
14617
14618
14619
14620# Check whether --enable-selective-werror was given.
14621if test ${enable_selective_werror+y}
14622then :
14623  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14624else case e in #(
14625  e) SELECTIVE_WERROR=yes ;;
14626esac
14627fi
14628
14629
14630
14631
14632
14633# -v is too short to test reliably with XORG_TESTSET_CFLAG
14634if test "x$SUNCC" = "xyes"; then
14635    BASE_CFLAGS="-v"
14636else
14637    BASE_CFLAGS=""
14638fi
14639
14640# This chunk of warnings were those that existed in the legacy CWARNFLAGS
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654xorg_testset_save_CFLAGS="$CFLAGS"
14655
14656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14660if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14661then :
14662  printf %s "(cached) " >&6
14663else case e in #(
14664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666int i;
14667_ACEOF
14668if ac_fn_c_try_compile "$LINENO"
14669then :
14670  xorg_cv_cc_flag_unknown_warning_option=yes
14671else case e in #(
14672  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14673esac
14674fi
14675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14676esac
14677fi
14678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14681	CFLAGS="$xorg_testset_save_CFLAGS"
14682fi
14683
14684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687	fi
14688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14691if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14692then :
14693  printf %s "(cached) " >&6
14694else case e in #(
14695  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696/* end confdefs.h.  */
14697int i;
14698_ACEOF
14699if ac_fn_c_try_compile "$LINENO"
14700then :
14701  xorg_cv_cc_flag_unused_command_line_argument=yes
14702else case e in #(
14703  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14704esac
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14707esac
14708fi
14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14712	CFLAGS="$xorg_testset_save_CFLAGS"
14713fi
14714
14715found="no"
14716
14717	if test $found = "no" ; then
14718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720		fi
14721
14722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14724		fi
14725
14726		CFLAGS="$CFLAGS -Wall"
14727
14728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14729printf %s "checking if $CC supports -Wall... " >&6; }
14730		cacheid=xorg_cv_cc_flag__Wall
14731		if eval test \${$cacheid+y}
14732then :
14733  printf %s "(cached) " >&6
14734else case e in #(
14735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736/* end confdefs.h.  */
14737int i;
14738int
14739main (void)
14740{
14741
14742  ;
14743  return 0;
14744}
14745_ACEOF
14746if ac_fn_c_try_link "$LINENO"
14747then :
14748  eval $cacheid=yes
14749else case e in #(
14750  e) eval $cacheid=no ;;
14751esac
14752fi
14753rm -f core conftest.err conftest.$ac_objext conftest.beam \
14754    conftest$ac_exeext conftest.$ac_ext ;;
14755esac
14756fi
14757
14758
14759		CFLAGS="$xorg_testset_save_CFLAGS"
14760
14761		eval supported=\$$cacheid
14762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14763printf "%s\n" "$supported" >&6; }
14764		if test "$supported" = "yes" ; then
14765			BASE_CFLAGS="$BASE_CFLAGS -Wall"
14766			found="yes"
14767		fi
14768	fi
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784xorg_testset_save_CFLAGS="$CFLAGS"
14785
14786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14790if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14791then :
14792  printf %s "(cached) " >&6
14793else case e in #(
14794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795/* end confdefs.h.  */
14796int i;
14797_ACEOF
14798if ac_fn_c_try_compile "$LINENO"
14799then :
14800  xorg_cv_cc_flag_unknown_warning_option=yes
14801else case e in #(
14802  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14803esac
14804fi
14805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14806esac
14807fi
14808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14811	CFLAGS="$xorg_testset_save_CFLAGS"
14812fi
14813
14814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14817	fi
14818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14822then :
14823  printf %s "(cached) " >&6
14824else case e in #(
14825  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826/* end confdefs.h.  */
14827int i;
14828_ACEOF
14829if ac_fn_c_try_compile "$LINENO"
14830then :
14831  xorg_cv_cc_flag_unused_command_line_argument=yes
14832else case e in #(
14833  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14834esac
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14837esac
14838fi
14839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14842	CFLAGS="$xorg_testset_save_CFLAGS"
14843fi
14844
14845found="no"
14846
14847	if test $found = "no" ; then
14848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14850		fi
14851
14852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14854		fi
14855
14856		CFLAGS="$CFLAGS -Wpointer-arith"
14857
14858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14859printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14860		cacheid=xorg_cv_cc_flag__Wpointer_arith
14861		if eval test \${$cacheid+y}
14862then :
14863  printf %s "(cached) " >&6
14864else case e in #(
14865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h.  */
14867int i;
14868int
14869main (void)
14870{
14871
14872  ;
14873  return 0;
14874}
14875_ACEOF
14876if ac_fn_c_try_link "$LINENO"
14877then :
14878  eval $cacheid=yes
14879else case e in #(
14880  e) eval $cacheid=no ;;
14881esac
14882fi
14883rm -f core conftest.err conftest.$ac_objext conftest.beam \
14884    conftest$ac_exeext conftest.$ac_ext ;;
14885esac
14886fi
14887
14888
14889		CFLAGS="$xorg_testset_save_CFLAGS"
14890
14891		eval supported=\$$cacheid
14892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14893printf "%s\n" "$supported" >&6; }
14894		if test "$supported" = "yes" ; then
14895			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14896			found="yes"
14897		fi
14898	fi
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914xorg_testset_save_CFLAGS="$CFLAGS"
14915
14916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14919printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14920if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14921then :
14922  printf %s "(cached) " >&6
14923else case e in #(
14924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h.  */
14926int i;
14927_ACEOF
14928if ac_fn_c_try_compile "$LINENO"
14929then :
14930  xorg_cv_cc_flag_unknown_warning_option=yes
14931else case e in #(
14932  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14933esac
14934fi
14935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14936esac
14937fi
14938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14941	CFLAGS="$xorg_testset_save_CFLAGS"
14942fi
14943
14944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14947	fi
14948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14951if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14952then :
14953  printf %s "(cached) " >&6
14954else case e in #(
14955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h.  */
14957int i;
14958_ACEOF
14959if ac_fn_c_try_compile "$LINENO"
14960then :
14961  xorg_cv_cc_flag_unused_command_line_argument=yes
14962else case e in #(
14963  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14964esac
14965fi
14966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14967esac
14968fi
14969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14972	CFLAGS="$xorg_testset_save_CFLAGS"
14973fi
14974
14975found="no"
14976
14977	if test $found = "no" ; then
14978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14980		fi
14981
14982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14984		fi
14985
14986		CFLAGS="$CFLAGS -Wmissing-declarations"
14987
14988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14989printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14990		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14991		if eval test \${$cacheid+y}
14992then :
14993  printf %s "(cached) " >&6
14994else case e in #(
14995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996/* end confdefs.h.  */
14997int i;
14998int
14999main (void)
15000{
15001
15002  ;
15003  return 0;
15004}
15005_ACEOF
15006if ac_fn_c_try_link "$LINENO"
15007then :
15008  eval $cacheid=yes
15009else case e in #(
15010  e) eval $cacheid=no ;;
15011esac
15012fi
15013rm -f core conftest.err conftest.$ac_objext conftest.beam \
15014    conftest$ac_exeext conftest.$ac_ext ;;
15015esac
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 -Wmissing-declarations"
15026			found="yes"
15027		fi
15028	fi
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044xorg_testset_save_CFLAGS="$CFLAGS"
15045
15046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15051then :
15052  printf %s "(cached) " >&6
15053else case e in #(
15054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h.  */
15056int i;
15057_ACEOF
15058if ac_fn_c_try_compile "$LINENO"
15059then :
15060  xorg_cv_cc_flag_unknown_warning_option=yes
15061else case e in #(
15062  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15063esac
15064fi
15065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15066esac
15067fi
15068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15071	CFLAGS="$xorg_testset_save_CFLAGS"
15072fi
15073
15074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15077	fi
15078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15081if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15082then :
15083  printf %s "(cached) " >&6
15084else case e in #(
15085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086/* end confdefs.h.  */
15087int i;
15088_ACEOF
15089if ac_fn_c_try_compile "$LINENO"
15090then :
15091  xorg_cv_cc_flag_unused_command_line_argument=yes
15092else case e in #(
15093  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15094esac
15095fi
15096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15097esac
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 -Wformat=2"
15117
15118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
15119printf %s "checking if $CC supports -Wformat=2... " >&6; }
15120		cacheid=xorg_cv_cc_flag__Wformat_2
15121		if eval test \${$cacheid+y}
15122then :
15123  printf %s "(cached) " >&6
15124else case e in #(
15125  e) 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 case e in #(
15140  e) eval $cacheid=no ;;
15141esac
15142fi
15143rm -f core conftest.err conftest.$ac_objext conftest.beam \
15144    conftest$ac_exeext conftest.$ac_ext ;;
15145esac
15146fi
15147
15148
15149		CFLAGS="$xorg_testset_save_CFLAGS"
15150
15151		eval supported=\$$cacheid
15152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15153printf "%s\n" "$supported" >&6; }
15154		if test "$supported" = "yes" ; then
15155			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
15156			found="yes"
15157		fi
15158	fi
15159
15160	if test $found = "no" ; then
15161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15163		fi
15164
15165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167		fi
15168
15169		CFLAGS="$CFLAGS -Wformat"
15170
15171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
15172printf %s "checking if $CC supports -Wformat... " >&6; }
15173		cacheid=xorg_cv_cc_flag__Wformat
15174		if eval test \${$cacheid+y}
15175then :
15176  printf %s "(cached) " >&6
15177else case e in #(
15178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h.  */
15180int i;
15181int
15182main (void)
15183{
15184
15185  ;
15186  return 0;
15187}
15188_ACEOF
15189if ac_fn_c_try_link "$LINENO"
15190then :
15191  eval $cacheid=yes
15192else case e in #(
15193  e) eval $cacheid=no ;;
15194esac
15195fi
15196rm -f core conftest.err conftest.$ac_objext conftest.beam \
15197    conftest$ac_exeext conftest.$ac_ext ;;
15198esac
15199fi
15200
15201
15202		CFLAGS="$xorg_testset_save_CFLAGS"
15203
15204		eval supported=\$$cacheid
15205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15206printf "%s\n" "$supported" >&6; }
15207		if test "$supported" = "yes" ; then
15208			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
15209			found="yes"
15210		fi
15211	fi
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229xorg_testset_save_CFLAGS="$CFLAGS"
15230
15231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15235if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15236then :
15237  printf %s "(cached) " >&6
15238else case e in #(
15239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240/* end confdefs.h.  */
15241int i;
15242_ACEOF
15243if ac_fn_c_try_compile "$LINENO"
15244then :
15245  xorg_cv_cc_flag_unknown_warning_option=yes
15246else case e in #(
15247  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15248esac
15249fi
15250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15251esac
15252fi
15253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15256	CFLAGS="$xorg_testset_save_CFLAGS"
15257fi
15258
15259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15262	fi
15263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15266if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15267then :
15268  printf %s "(cached) " >&6
15269else case e in #(
15270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272int i;
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"
15275then :
15276  xorg_cv_cc_flag_unused_command_line_argument=yes
15277else case e in #(
15278  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15279esac
15280fi
15281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15282esac
15283fi
15284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15287	CFLAGS="$xorg_testset_save_CFLAGS"
15288fi
15289
15290found="no"
15291
15292	if test $found = "no" ; then
15293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295		fi
15296
15297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15299		fi
15300
15301		CFLAGS="$CFLAGS -Wstrict-prototypes"
15302
15303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
15304printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
15305		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
15306		if eval test \${$cacheid+y}
15307then :
15308  printf %s "(cached) " >&6
15309else case e in #(
15310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311/* end confdefs.h.  */
15312int i;
15313int
15314main (void)
15315{
15316
15317  ;
15318  return 0;
15319}
15320_ACEOF
15321if ac_fn_c_try_link "$LINENO"
15322then :
15323  eval $cacheid=yes
15324else case e in #(
15325  e) eval $cacheid=no ;;
15326esac
15327fi
15328rm -f core conftest.err conftest.$ac_objext conftest.beam \
15329    conftest$ac_exeext conftest.$ac_ext ;;
15330esac
15331fi
15332
15333
15334		CFLAGS="$xorg_testset_save_CFLAGS"
15335
15336		eval supported=\$$cacheid
15337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15338printf "%s\n" "$supported" >&6; }
15339		if test "$supported" = "yes" ; then
15340			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
15341			found="yes"
15342		fi
15343	fi
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359xorg_testset_save_CFLAGS="$CFLAGS"
15360
15361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15365if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15366then :
15367  printf %s "(cached) " >&6
15368else case e in #(
15369  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371int i;
15372_ACEOF
15373if ac_fn_c_try_compile "$LINENO"
15374then :
15375  xorg_cv_cc_flag_unknown_warning_option=yes
15376else case e in #(
15377  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15378esac
15379fi
15380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15381esac
15382fi
15383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15386	CFLAGS="$xorg_testset_save_CFLAGS"
15387fi
15388
15389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392	fi
15393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15396if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15397then :
15398  printf %s "(cached) " >&6
15399else case e in #(
15400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401/* end confdefs.h.  */
15402int i;
15403_ACEOF
15404if ac_fn_c_try_compile "$LINENO"
15405then :
15406  xorg_cv_cc_flag_unused_command_line_argument=yes
15407else case e in #(
15408  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15409esac
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15412esac
15413fi
15414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15417	CFLAGS="$xorg_testset_save_CFLAGS"
15418fi
15419
15420found="no"
15421
15422	if test $found = "no" ; then
15423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15425		fi
15426
15427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15429		fi
15430
15431		CFLAGS="$CFLAGS -Wmissing-prototypes"
15432
15433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
15434printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
15435		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
15436		if eval test \${$cacheid+y}
15437then :
15438  printf %s "(cached) " >&6
15439else case e in #(
15440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441/* end confdefs.h.  */
15442int i;
15443int
15444main (void)
15445{
15446
15447  ;
15448  return 0;
15449}
15450_ACEOF
15451if ac_fn_c_try_link "$LINENO"
15452then :
15453  eval $cacheid=yes
15454else case e in #(
15455  e) eval $cacheid=no ;;
15456esac
15457fi
15458rm -f core conftest.err conftest.$ac_objext conftest.beam \
15459    conftest$ac_exeext conftest.$ac_ext ;;
15460esac
15461fi
15462
15463
15464		CFLAGS="$xorg_testset_save_CFLAGS"
15465
15466		eval supported=\$$cacheid
15467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15468printf "%s\n" "$supported" >&6; }
15469		if test "$supported" = "yes" ; then
15470			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15471			found="yes"
15472		fi
15473	fi
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489xorg_testset_save_CFLAGS="$CFLAGS"
15490
15491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15495if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15496then :
15497  printf %s "(cached) " >&6
15498else case e in #(
15499  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500/* end confdefs.h.  */
15501int i;
15502_ACEOF
15503if ac_fn_c_try_compile "$LINENO"
15504then :
15505  xorg_cv_cc_flag_unknown_warning_option=yes
15506else case e in #(
15507  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15508esac
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15511esac
15512fi
15513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15516	CFLAGS="$xorg_testset_save_CFLAGS"
15517fi
15518
15519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15522	fi
15523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15526if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15527then :
15528  printf %s "(cached) " >&6
15529else case e in #(
15530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531/* end confdefs.h.  */
15532int i;
15533_ACEOF
15534if ac_fn_c_try_compile "$LINENO"
15535then :
15536  xorg_cv_cc_flag_unused_command_line_argument=yes
15537else case e in #(
15538  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15539esac
15540fi
15541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15542esac
15543fi
15544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15547	CFLAGS="$xorg_testset_save_CFLAGS"
15548fi
15549
15550found="no"
15551
15552	if test $found = "no" ; then
15553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555		fi
15556
15557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15559		fi
15560
15561		CFLAGS="$CFLAGS -Wnested-externs"
15562
15563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15564printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15565		cacheid=xorg_cv_cc_flag__Wnested_externs
15566		if eval test \${$cacheid+y}
15567then :
15568  printf %s "(cached) " >&6
15569else case e in #(
15570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571/* end confdefs.h.  */
15572int i;
15573int
15574main (void)
15575{
15576
15577  ;
15578  return 0;
15579}
15580_ACEOF
15581if ac_fn_c_try_link "$LINENO"
15582then :
15583  eval $cacheid=yes
15584else case e in #(
15585  e) eval $cacheid=no ;;
15586esac
15587fi
15588rm -f core conftest.err conftest.$ac_objext conftest.beam \
15589    conftest$ac_exeext conftest.$ac_ext ;;
15590esac
15591fi
15592
15593
15594		CFLAGS="$xorg_testset_save_CFLAGS"
15595
15596		eval supported=\$$cacheid
15597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15598printf "%s\n" "$supported" >&6; }
15599		if test "$supported" = "yes" ; then
15600			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15601			found="yes"
15602		fi
15603	fi
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619xorg_testset_save_CFLAGS="$CFLAGS"
15620
15621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15625if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15626then :
15627  printf %s "(cached) " >&6
15628else case e in #(
15629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630/* end confdefs.h.  */
15631int i;
15632_ACEOF
15633if ac_fn_c_try_compile "$LINENO"
15634then :
15635  xorg_cv_cc_flag_unknown_warning_option=yes
15636else case e in #(
15637  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15638esac
15639fi
15640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15641esac
15642fi
15643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15646	CFLAGS="$xorg_testset_save_CFLAGS"
15647fi
15648
15649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652	fi
15653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15656if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15657then :
15658  printf %s "(cached) " >&6
15659else case e in #(
15660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661/* end confdefs.h.  */
15662int i;
15663_ACEOF
15664if ac_fn_c_try_compile "$LINENO"
15665then :
15666  xorg_cv_cc_flag_unused_command_line_argument=yes
15667else case e in #(
15668  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15669esac
15670fi
15671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15672esac
15673fi
15674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15677	CFLAGS="$xorg_testset_save_CFLAGS"
15678fi
15679
15680found="no"
15681
15682	if test $found = "no" ; then
15683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15685		fi
15686
15687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15689		fi
15690
15691		CFLAGS="$CFLAGS -Wbad-function-cast"
15692
15693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15694printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15695		cacheid=xorg_cv_cc_flag__Wbad_function_cast
15696		if eval test \${$cacheid+y}
15697then :
15698  printf %s "(cached) " >&6
15699else case e in #(
15700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701/* end confdefs.h.  */
15702int i;
15703int
15704main (void)
15705{
15706
15707  ;
15708  return 0;
15709}
15710_ACEOF
15711if ac_fn_c_try_link "$LINENO"
15712then :
15713  eval $cacheid=yes
15714else case e in #(
15715  e) eval $cacheid=no ;;
15716esac
15717fi
15718rm -f core conftest.err conftest.$ac_objext conftest.beam \
15719    conftest$ac_exeext conftest.$ac_ext ;;
15720esac
15721fi
15722
15723
15724		CFLAGS="$xorg_testset_save_CFLAGS"
15725
15726		eval supported=\$$cacheid
15727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15728printf "%s\n" "$supported" >&6; }
15729		if test "$supported" = "yes" ; then
15730			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15731			found="yes"
15732		fi
15733	fi
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749xorg_testset_save_CFLAGS="$CFLAGS"
15750
15751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15756then :
15757  printf %s "(cached) " >&6
15758else case e in #(
15759  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760/* end confdefs.h.  */
15761int i;
15762_ACEOF
15763if ac_fn_c_try_compile "$LINENO"
15764then :
15765  xorg_cv_cc_flag_unknown_warning_option=yes
15766else case e in #(
15767  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15768esac
15769fi
15770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15771esac
15772fi
15773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776	CFLAGS="$xorg_testset_save_CFLAGS"
15777fi
15778
15779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782	fi
15783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15787then :
15788  printf %s "(cached) " >&6
15789else case e in #(
15790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791/* end confdefs.h.  */
15792int i;
15793_ACEOF
15794if ac_fn_c_try_compile "$LINENO"
15795then :
15796  xorg_cv_cc_flag_unused_command_line_argument=yes
15797else case e in #(
15798  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15799esac
15800fi
15801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15802esac
15803fi
15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15807	CFLAGS="$xorg_testset_save_CFLAGS"
15808fi
15809
15810found="no"
15811
15812	if test $found = "no" ; then
15813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15815		fi
15816
15817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15819		fi
15820
15821		CFLAGS="$CFLAGS -Wold-style-definition"
15822
15823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15824printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15825		cacheid=xorg_cv_cc_flag__Wold_style_definition
15826		if eval test \${$cacheid+y}
15827then :
15828  printf %s "(cached) " >&6
15829else case e in #(
15830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831/* end confdefs.h.  */
15832int i;
15833int
15834main (void)
15835{
15836
15837  ;
15838  return 0;
15839}
15840_ACEOF
15841if ac_fn_c_try_link "$LINENO"
15842then :
15843  eval $cacheid=yes
15844else case e in #(
15845  e) eval $cacheid=no ;;
15846esac
15847fi
15848rm -f core conftest.err conftest.$ac_objext conftest.beam \
15849    conftest$ac_exeext conftest.$ac_ext ;;
15850esac
15851fi
15852
15853
15854		CFLAGS="$xorg_testset_save_CFLAGS"
15855
15856		eval supported=\$$cacheid
15857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15858printf "%s\n" "$supported" >&6; }
15859		if test "$supported" = "yes" ; then
15860			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15861			found="yes"
15862		fi
15863	fi
15864
15865	if test $found = "no" ; then
15866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15868		fi
15869
15870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872		fi
15873
15874		CFLAGS="$CFLAGS -fd"
15875
15876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15877printf %s "checking if $CC supports -fd... " >&6; }
15878		cacheid=xorg_cv_cc_flag__fd
15879		if eval test \${$cacheid+y}
15880then :
15881  printf %s "(cached) " >&6
15882else case e in #(
15883  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885int i;
15886int
15887main (void)
15888{
15889
15890  ;
15891  return 0;
15892}
15893_ACEOF
15894if ac_fn_c_try_link "$LINENO"
15895then :
15896  eval $cacheid=yes
15897else case e in #(
15898  e) eval $cacheid=no ;;
15899esac
15900fi
15901rm -f core conftest.err conftest.$ac_objext conftest.beam \
15902    conftest$ac_exeext conftest.$ac_ext ;;
15903esac
15904fi
15905
15906
15907		CFLAGS="$xorg_testset_save_CFLAGS"
15908
15909		eval supported=\$$cacheid
15910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15911printf "%s\n" "$supported" >&6; }
15912		if test "$supported" = "yes" ; then
15913			BASE_CFLAGS="$BASE_CFLAGS -fd"
15914			found="yes"
15915		fi
15916	fi
15917
15918
15919
15920
15921
15922# This chunk adds additional warnings that could catch undesired effects.
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936xorg_testset_save_CFLAGS="$CFLAGS"
15937
15938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15943then :
15944  printf %s "(cached) " >&6
15945else case e in #(
15946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15947/* end confdefs.h.  */
15948int i;
15949_ACEOF
15950if ac_fn_c_try_compile "$LINENO"
15951then :
15952  xorg_cv_cc_flag_unknown_warning_option=yes
15953else case e in #(
15954  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15955esac
15956fi
15957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15958esac
15959fi
15960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15963	CFLAGS="$xorg_testset_save_CFLAGS"
15964fi
15965
15966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15969	fi
15970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15974then :
15975  printf %s "(cached) " >&6
15976else case e in #(
15977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h.  */
15979int i;
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"
15982then :
15983  xorg_cv_cc_flag_unused_command_line_argument=yes
15984else case e in #(
15985  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15986esac
15987fi
15988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15989esac
15990fi
15991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15994	CFLAGS="$xorg_testset_save_CFLAGS"
15995fi
15996
15997found="no"
15998
15999	if test $found = "no" ; then
16000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002		fi
16003
16004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16006		fi
16007
16008		CFLAGS="$CFLAGS -Wunused"
16009
16010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
16011printf %s "checking if $CC supports -Wunused... " >&6; }
16012		cacheid=xorg_cv_cc_flag__Wunused
16013		if eval test \${$cacheid+y}
16014then :
16015  printf %s "(cached) " >&6
16016else case e in #(
16017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018/* end confdefs.h.  */
16019int i;
16020int
16021main (void)
16022{
16023
16024  ;
16025  return 0;
16026}
16027_ACEOF
16028if ac_fn_c_try_link "$LINENO"
16029then :
16030  eval $cacheid=yes
16031else case e in #(
16032  e) eval $cacheid=no ;;
16033esac
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.beam \
16036    conftest$ac_exeext conftest.$ac_ext ;;
16037esac
16038fi
16039
16040
16041		CFLAGS="$xorg_testset_save_CFLAGS"
16042
16043		eval supported=\$$cacheid
16044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16045printf "%s\n" "$supported" >&6; }
16046		if test "$supported" = "yes" ; then
16047			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
16048			found="yes"
16049		fi
16050	fi
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066xorg_testset_save_CFLAGS="$CFLAGS"
16067
16068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16073then :
16074  printf %s "(cached) " >&6
16075else case e in #(
16076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077/* end confdefs.h.  */
16078int i;
16079_ACEOF
16080if ac_fn_c_try_compile "$LINENO"
16081then :
16082  xorg_cv_cc_flag_unknown_warning_option=yes
16083else case e in #(
16084  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16085esac
16086fi
16087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16088esac
16089fi
16090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16093	CFLAGS="$xorg_testset_save_CFLAGS"
16094fi
16095
16096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16099	fi
16100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16104then :
16105  printf %s "(cached) " >&6
16106else case e in #(
16107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h.  */
16109int i;
16110_ACEOF
16111if ac_fn_c_try_compile "$LINENO"
16112then :
16113  xorg_cv_cc_flag_unused_command_line_argument=yes
16114else case e in #(
16115  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16116esac
16117fi
16118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16119esac
16120fi
16121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16124	CFLAGS="$xorg_testset_save_CFLAGS"
16125fi
16126
16127found="no"
16128
16129	if test $found = "no" ; then
16130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132		fi
16133
16134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16136		fi
16137
16138		CFLAGS="$CFLAGS -Wuninitialized"
16139
16140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
16141printf %s "checking if $CC supports -Wuninitialized... " >&6; }
16142		cacheid=xorg_cv_cc_flag__Wuninitialized
16143		if eval test \${$cacheid+y}
16144then :
16145  printf %s "(cached) " >&6
16146else case e in #(
16147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148/* end confdefs.h.  */
16149int i;
16150int
16151main (void)
16152{
16153
16154  ;
16155  return 0;
16156}
16157_ACEOF
16158if ac_fn_c_try_link "$LINENO"
16159then :
16160  eval $cacheid=yes
16161else case e in #(
16162  e) eval $cacheid=no ;;
16163esac
16164fi
16165rm -f core conftest.err conftest.$ac_objext conftest.beam \
16166    conftest$ac_exeext conftest.$ac_ext ;;
16167esac
16168fi
16169
16170
16171		CFLAGS="$xorg_testset_save_CFLAGS"
16172
16173		eval supported=\$$cacheid
16174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16175printf "%s\n" "$supported" >&6; }
16176		if test "$supported" = "yes" ; then
16177			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
16178			found="yes"
16179		fi
16180	fi
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196xorg_testset_save_CFLAGS="$CFLAGS"
16197
16198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16203then :
16204  printf %s "(cached) " >&6
16205else case e in #(
16206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207/* end confdefs.h.  */
16208int i;
16209_ACEOF
16210if ac_fn_c_try_compile "$LINENO"
16211then :
16212  xorg_cv_cc_flag_unknown_warning_option=yes
16213else case e in #(
16214  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16215esac
16216fi
16217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16218esac
16219fi
16220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16223	CFLAGS="$xorg_testset_save_CFLAGS"
16224fi
16225
16226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229	fi
16230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16233if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16234then :
16235  printf %s "(cached) " >&6
16236else case e in #(
16237  e) 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_unused_command_line_argument=yes
16244else case e in #(
16245  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16246esac
16247fi
16248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16249esac
16250fi
16251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16254	CFLAGS="$xorg_testset_save_CFLAGS"
16255fi
16256
16257found="no"
16258
16259	if test $found = "no" ; then
16260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16262		fi
16263
16264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16266		fi
16267
16268		CFLAGS="$CFLAGS -Wshadow"
16269
16270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
16271printf %s "checking if $CC supports -Wshadow... " >&6; }
16272		cacheid=xorg_cv_cc_flag__Wshadow
16273		if eval test \${$cacheid+y}
16274then :
16275  printf %s "(cached) " >&6
16276else case e in #(
16277  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279int i;
16280int
16281main (void)
16282{
16283
16284  ;
16285  return 0;
16286}
16287_ACEOF
16288if ac_fn_c_try_link "$LINENO"
16289then :
16290  eval $cacheid=yes
16291else case e in #(
16292  e) eval $cacheid=no ;;
16293esac
16294fi
16295rm -f core conftest.err conftest.$ac_objext conftest.beam \
16296    conftest$ac_exeext conftest.$ac_ext ;;
16297esac
16298fi
16299
16300
16301		CFLAGS="$xorg_testset_save_CFLAGS"
16302
16303		eval supported=\$$cacheid
16304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16305printf "%s\n" "$supported" >&6; }
16306		if test "$supported" = "yes" ; then
16307			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
16308			found="yes"
16309		fi
16310	fi
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326xorg_testset_save_CFLAGS="$CFLAGS"
16327
16328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16333then :
16334  printf %s "(cached) " >&6
16335else case e in #(
16336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338int i;
16339_ACEOF
16340if ac_fn_c_try_compile "$LINENO"
16341then :
16342  xorg_cv_cc_flag_unknown_warning_option=yes
16343else case e in #(
16344  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16345esac
16346fi
16347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16348esac
16349fi
16350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16353	CFLAGS="$xorg_testset_save_CFLAGS"
16354fi
16355
16356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16359	fi
16360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16363if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16364then :
16365  printf %s "(cached) " >&6
16366else case e in #(
16367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368/* end confdefs.h.  */
16369int i;
16370_ACEOF
16371if ac_fn_c_try_compile "$LINENO"
16372then :
16373  xorg_cv_cc_flag_unused_command_line_argument=yes
16374else case e in #(
16375  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16376esac
16377fi
16378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16379esac
16380fi
16381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16384	CFLAGS="$xorg_testset_save_CFLAGS"
16385fi
16386
16387found="no"
16388
16389	if test $found = "no" ; then
16390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16392		fi
16393
16394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396		fi
16397
16398		CFLAGS="$CFLAGS -Wmissing-noreturn"
16399
16400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
16401printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
16402		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
16403		if eval test \${$cacheid+y}
16404then :
16405  printf %s "(cached) " >&6
16406else case e in #(
16407  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h.  */
16409int i;
16410int
16411main (void)
16412{
16413
16414  ;
16415  return 0;
16416}
16417_ACEOF
16418if ac_fn_c_try_link "$LINENO"
16419then :
16420  eval $cacheid=yes
16421else case e in #(
16422  e) eval $cacheid=no ;;
16423esac
16424fi
16425rm -f core conftest.err conftest.$ac_objext conftest.beam \
16426    conftest$ac_exeext conftest.$ac_ext ;;
16427esac
16428fi
16429
16430
16431		CFLAGS="$xorg_testset_save_CFLAGS"
16432
16433		eval supported=\$$cacheid
16434		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16435printf "%s\n" "$supported" >&6; }
16436		if test "$supported" = "yes" ; then
16437			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
16438			found="yes"
16439		fi
16440	fi
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456xorg_testset_save_CFLAGS="$CFLAGS"
16457
16458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16462if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16463then :
16464  printf %s "(cached) " >&6
16465else case e in #(
16466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467/* end confdefs.h.  */
16468int i;
16469_ACEOF
16470if ac_fn_c_try_compile "$LINENO"
16471then :
16472  xorg_cv_cc_flag_unknown_warning_option=yes
16473else case e in #(
16474  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16475esac
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16478esac
16479fi
16480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16483	CFLAGS="$xorg_testset_save_CFLAGS"
16484fi
16485
16486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16489	fi
16490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16494then :
16495  printf %s "(cached) " >&6
16496else case e in #(
16497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h.  */
16499int i;
16500_ACEOF
16501if ac_fn_c_try_compile "$LINENO"
16502then :
16503  xorg_cv_cc_flag_unused_command_line_argument=yes
16504else case e in #(
16505  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16506esac
16507fi
16508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16509esac
16510fi
16511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16514	CFLAGS="$xorg_testset_save_CFLAGS"
16515fi
16516
16517found="no"
16518
16519	if test $found = "no" ; then
16520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16522		fi
16523
16524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16526		fi
16527
16528		CFLAGS="$CFLAGS -Wmissing-format-attribute"
16529
16530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16531printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16532		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16533		if eval test \${$cacheid+y}
16534then :
16535  printf %s "(cached) " >&6
16536else case e in #(
16537  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h.  */
16539int i;
16540int
16541main (void)
16542{
16543
16544  ;
16545  return 0;
16546}
16547_ACEOF
16548if ac_fn_c_try_link "$LINENO"
16549then :
16550  eval $cacheid=yes
16551else case e in #(
16552  e) eval $cacheid=no ;;
16553esac
16554fi
16555rm -f core conftest.err conftest.$ac_objext conftest.beam \
16556    conftest$ac_exeext conftest.$ac_ext ;;
16557esac
16558fi
16559
16560
16561		CFLAGS="$xorg_testset_save_CFLAGS"
16562
16563		eval supported=\$$cacheid
16564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16565printf "%s\n" "$supported" >&6; }
16566		if test "$supported" = "yes" ; then
16567			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16568			found="yes"
16569		fi
16570	fi
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586xorg_testset_save_CFLAGS="$CFLAGS"
16587
16588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16592if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16593then :
16594  printf %s "(cached) " >&6
16595else case e in #(
16596  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597/* end confdefs.h.  */
16598int i;
16599_ACEOF
16600if ac_fn_c_try_compile "$LINENO"
16601then :
16602  xorg_cv_cc_flag_unknown_warning_option=yes
16603else case e in #(
16604  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16605esac
16606fi
16607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16608esac
16609fi
16610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16613	CFLAGS="$xorg_testset_save_CFLAGS"
16614fi
16615
16616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16619	fi
16620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16624then :
16625  printf %s "(cached) " >&6
16626else case e in #(
16627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629int i;
16630_ACEOF
16631if ac_fn_c_try_compile "$LINENO"
16632then :
16633  xorg_cv_cc_flag_unused_command_line_argument=yes
16634else case e in #(
16635  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16636esac
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16639esac
16640fi
16641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16644	CFLAGS="$xorg_testset_save_CFLAGS"
16645fi
16646
16647found="no"
16648
16649	if test $found = "no" ; then
16650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16652		fi
16653
16654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16656		fi
16657
16658		CFLAGS="$CFLAGS -Wredundant-decls"
16659
16660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16661printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16662		cacheid=xorg_cv_cc_flag__Wredundant_decls
16663		if eval test \${$cacheid+y}
16664then :
16665  printf %s "(cached) " >&6
16666else case e in #(
16667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668/* end confdefs.h.  */
16669int i;
16670int
16671main (void)
16672{
16673
16674  ;
16675  return 0;
16676}
16677_ACEOF
16678if ac_fn_c_try_link "$LINENO"
16679then :
16680  eval $cacheid=yes
16681else case e in #(
16682  e) eval $cacheid=no ;;
16683esac
16684fi
16685rm -f core conftest.err conftest.$ac_objext conftest.beam \
16686    conftest$ac_exeext conftest.$ac_ext ;;
16687esac
16688fi
16689
16690
16691		CFLAGS="$xorg_testset_save_CFLAGS"
16692
16693		eval supported=\$$cacheid
16694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16695printf "%s\n" "$supported" >&6; }
16696		if test "$supported" = "yes" ; then
16697			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16698			found="yes"
16699		fi
16700	fi
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716xorg_testset_save_CFLAGS="$CFLAGS"
16717
16718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16722if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16723then :
16724  printf %s "(cached) " >&6
16725else case e in #(
16726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727/* end confdefs.h.  */
16728int i;
16729_ACEOF
16730if ac_fn_c_try_compile "$LINENO"
16731then :
16732  xorg_cv_cc_flag_unknown_warning_option=yes
16733else case e in #(
16734  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16735esac
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16738esac
16739fi
16740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16743	CFLAGS="$xorg_testset_save_CFLAGS"
16744fi
16745
16746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16749	fi
16750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16754then :
16755  printf %s "(cached) " >&6
16756else case e in #(
16757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758/* end confdefs.h.  */
16759int i;
16760_ACEOF
16761if ac_fn_c_try_compile "$LINENO"
16762then :
16763  xorg_cv_cc_flag_unused_command_line_argument=yes
16764else case e in #(
16765  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16766esac
16767fi
16768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16769esac
16770fi
16771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16774	CFLAGS="$xorg_testset_save_CFLAGS"
16775fi
16776
16777found="no"
16778
16779	if test $found = "no" ; then
16780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16782		fi
16783
16784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16786		fi
16787
16788		CFLAGS="$CFLAGS -Wlogical-op"
16789
16790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16791printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16792		cacheid=xorg_cv_cc_flag__Wlogical_op
16793		if eval test \${$cacheid+y}
16794then :
16795  printf %s "(cached) " >&6
16796else case e in #(
16797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800int
16801main (void)
16802{
16803
16804  ;
16805  return 0;
16806}
16807_ACEOF
16808if ac_fn_c_try_link "$LINENO"
16809then :
16810  eval $cacheid=yes
16811else case e in #(
16812  e) eval $cacheid=no ;;
16813esac
16814fi
16815rm -f core conftest.err conftest.$ac_objext conftest.beam \
16816    conftest$ac_exeext conftest.$ac_ext ;;
16817esac
16818fi
16819
16820
16821		CFLAGS="$xorg_testset_save_CFLAGS"
16822
16823		eval supported=\$$cacheid
16824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16825printf "%s\n" "$supported" >&6; }
16826		if test "$supported" = "yes" ; then
16827			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16828			found="yes"
16829		fi
16830	fi
16831
16832
16833
16834# These are currently disabled because they are noisy.  They will be enabled
16835# in the future once the codebase is sufficiently modernized to silence
16836# them.  For now, I don't want them to drown out the other warnings.
16837# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16838# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16839# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16840
16841# Turn some warnings into errors, so we don't accidentally get successful builds
16842# when there are problems that should be fixed.
16843
16844if test "x$SELECTIVE_WERROR" = "xyes" ; then
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858xorg_testset_save_CFLAGS="$CFLAGS"
16859
16860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16865then :
16866  printf %s "(cached) " >&6
16867else case e in #(
16868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h.  */
16870int i;
16871_ACEOF
16872if ac_fn_c_try_compile "$LINENO"
16873then :
16874  xorg_cv_cc_flag_unknown_warning_option=yes
16875else case e in #(
16876  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16877esac
16878fi
16879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16880esac
16881fi
16882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16885	CFLAGS="$xorg_testset_save_CFLAGS"
16886fi
16887
16888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16891	fi
16892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16895if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16896then :
16897  printf %s "(cached) " >&6
16898else case e in #(
16899  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900/* end confdefs.h.  */
16901int i;
16902_ACEOF
16903if ac_fn_c_try_compile "$LINENO"
16904then :
16905  xorg_cv_cc_flag_unused_command_line_argument=yes
16906else case e in #(
16907  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16908esac
16909fi
16910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16911esac
16912fi
16913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16916	CFLAGS="$xorg_testset_save_CFLAGS"
16917fi
16918
16919found="no"
16920
16921	if test $found = "no" ; then
16922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16924		fi
16925
16926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16928		fi
16929
16930		CFLAGS="$CFLAGS -Werror=implicit"
16931
16932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16933printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16934		cacheid=xorg_cv_cc_flag__Werror_implicit
16935		if eval test \${$cacheid+y}
16936then :
16937  printf %s "(cached) " >&6
16938else case e in #(
16939  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h.  */
16941int i;
16942int
16943main (void)
16944{
16945
16946  ;
16947  return 0;
16948}
16949_ACEOF
16950if ac_fn_c_try_link "$LINENO"
16951then :
16952  eval $cacheid=yes
16953else case e in #(
16954  e) eval $cacheid=no ;;
16955esac
16956fi
16957rm -f core conftest.err conftest.$ac_objext conftest.beam \
16958    conftest$ac_exeext conftest.$ac_ext ;;
16959esac
16960fi
16961
16962
16963		CFLAGS="$xorg_testset_save_CFLAGS"
16964
16965		eval supported=\$$cacheid
16966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16967printf "%s\n" "$supported" >&6; }
16968		if test "$supported" = "yes" ; then
16969			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16970			found="yes"
16971		fi
16972	fi
16973
16974	if test $found = "no" ; then
16975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977		fi
16978
16979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16981		fi
16982
16983		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16984
16985		{ 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
16986printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16987		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16988		if eval test \${$cacheid+y}
16989then :
16990  printf %s "(cached) " >&6
16991else case e in #(
16992  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993/* end confdefs.h.  */
16994int i;
16995int
16996main (void)
16997{
16998
16999  ;
17000  return 0;
17001}
17002_ACEOF
17003if ac_fn_c_try_link "$LINENO"
17004then :
17005  eval $cacheid=yes
17006else case e in #(
17007  e) eval $cacheid=no ;;
17008esac
17009fi
17010rm -f core conftest.err conftest.$ac_objext conftest.beam \
17011    conftest$ac_exeext conftest.$ac_ext ;;
17012esac
17013fi
17014
17015
17016		CFLAGS="$xorg_testset_save_CFLAGS"
17017
17018		eval supported=\$$cacheid
17019		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17020printf "%s\n" "$supported" >&6; }
17021		if test "$supported" = "yes" ; then
17022			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
17023			found="yes"
17024		fi
17025	fi
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041xorg_testset_save_CFLAGS="$CFLAGS"
17042
17043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17047if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17048then :
17049  printf %s "(cached) " >&6
17050else case e in #(
17051  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052/* end confdefs.h.  */
17053int i;
17054_ACEOF
17055if ac_fn_c_try_compile "$LINENO"
17056then :
17057  xorg_cv_cc_flag_unknown_warning_option=yes
17058else case e in #(
17059  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17060esac
17061fi
17062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17063esac
17064fi
17065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17068	CFLAGS="$xorg_testset_save_CFLAGS"
17069fi
17070
17071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074	fi
17075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17078if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17079then :
17080  printf %s "(cached) " >&6
17081else case e in #(
17082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083/* end confdefs.h.  */
17084int i;
17085_ACEOF
17086if ac_fn_c_try_compile "$LINENO"
17087then :
17088  xorg_cv_cc_flag_unused_command_line_argument=yes
17089else case e in #(
17090  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17091esac
17092fi
17093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17094esac
17095fi
17096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17099	CFLAGS="$xorg_testset_save_CFLAGS"
17100fi
17101
17102found="no"
17103
17104	if test $found = "no" ; then
17105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107		fi
17108
17109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17111		fi
17112
17113		CFLAGS="$CFLAGS -Werror=nonnull"
17114
17115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
17116printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
17117		cacheid=xorg_cv_cc_flag__Werror_nonnull
17118		if eval test \${$cacheid+y}
17119then :
17120  printf %s "(cached) " >&6
17121else case e in #(
17122  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h.  */
17124int i;
17125int
17126main (void)
17127{
17128
17129  ;
17130  return 0;
17131}
17132_ACEOF
17133if ac_fn_c_try_link "$LINENO"
17134then :
17135  eval $cacheid=yes
17136else case e in #(
17137  e) eval $cacheid=no ;;
17138esac
17139fi
17140rm -f core conftest.err conftest.$ac_objext conftest.beam \
17141    conftest$ac_exeext conftest.$ac_ext ;;
17142esac
17143fi
17144
17145
17146		CFLAGS="$xorg_testset_save_CFLAGS"
17147
17148		eval supported=\$$cacheid
17149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17150printf "%s\n" "$supported" >&6; }
17151		if test "$supported" = "yes" ; then
17152			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
17153			found="yes"
17154		fi
17155	fi
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171xorg_testset_save_CFLAGS="$CFLAGS"
17172
17173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17177if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17178then :
17179  printf %s "(cached) " >&6
17180else case e in #(
17181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183int i;
17184_ACEOF
17185if ac_fn_c_try_compile "$LINENO"
17186then :
17187  xorg_cv_cc_flag_unknown_warning_option=yes
17188else case e in #(
17189  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17190esac
17191fi
17192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17193esac
17194fi
17195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17198	CFLAGS="$xorg_testset_save_CFLAGS"
17199fi
17200
17201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204	fi
17205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17208if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17209then :
17210  printf %s "(cached) " >&6
17211else case e in #(
17212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213/* end confdefs.h.  */
17214int i;
17215_ACEOF
17216if ac_fn_c_try_compile "$LINENO"
17217then :
17218  xorg_cv_cc_flag_unused_command_line_argument=yes
17219else case e in #(
17220  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17221esac
17222fi
17223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17224esac
17225fi
17226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17227printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17229	CFLAGS="$xorg_testset_save_CFLAGS"
17230fi
17231
17232found="no"
17233
17234	if test $found = "no" ; then
17235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237		fi
17238
17239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17241		fi
17242
17243		CFLAGS="$CFLAGS -Werror=init-self"
17244
17245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
17246printf %s "checking if $CC supports -Werror=init-self... " >&6; }
17247		cacheid=xorg_cv_cc_flag__Werror_init_self
17248		if eval test \${$cacheid+y}
17249then :
17250  printf %s "(cached) " >&6
17251else case e in #(
17252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253/* end confdefs.h.  */
17254int i;
17255int
17256main (void)
17257{
17258
17259  ;
17260  return 0;
17261}
17262_ACEOF
17263if ac_fn_c_try_link "$LINENO"
17264then :
17265  eval $cacheid=yes
17266else case e in #(
17267  e) eval $cacheid=no ;;
17268esac
17269fi
17270rm -f core conftest.err conftest.$ac_objext conftest.beam \
17271    conftest$ac_exeext conftest.$ac_ext ;;
17272esac
17273fi
17274
17275
17276		CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278		eval supported=\$$cacheid
17279		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280printf "%s\n" "$supported" >&6; }
17281		if test "$supported" = "yes" ; then
17282			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
17283			found="yes"
17284		fi
17285	fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17308then :
17309  printf %s "(cached) " >&6
17310else case e in #(
17311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h.  */
17313int i;
17314_ACEOF
17315if ac_fn_c_try_compile "$LINENO"
17316then :
17317  xorg_cv_cc_flag_unknown_warning_option=yes
17318else case e in #(
17319  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17320esac
17321fi
17322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17323esac
17324fi
17325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17328	CFLAGS="$xorg_testset_save_CFLAGS"
17329fi
17330
17331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334	fi
17335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17339then :
17340  printf %s "(cached) " >&6
17341else case e in #(
17342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344int i;
17345_ACEOF
17346if ac_fn_c_try_compile "$LINENO"
17347then :
17348  xorg_cv_cc_flag_unused_command_line_argument=yes
17349else case e in #(
17350  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17351esac
17352fi
17353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17354esac
17355fi
17356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359	CFLAGS="$xorg_testset_save_CFLAGS"
17360fi
17361
17362found="no"
17363
17364	if test $found = "no" ; then
17365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367		fi
17368
17369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371		fi
17372
17373		CFLAGS="$CFLAGS -Werror=main"
17374
17375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
17376printf %s "checking if $CC supports -Werror=main... " >&6; }
17377		cacheid=xorg_cv_cc_flag__Werror_main
17378		if eval test \${$cacheid+y}
17379then :
17380  printf %s "(cached) " >&6
17381else case e in #(
17382  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383/* end confdefs.h.  */
17384int i;
17385int
17386main (void)
17387{
17388
17389  ;
17390  return 0;
17391}
17392_ACEOF
17393if ac_fn_c_try_link "$LINENO"
17394then :
17395  eval $cacheid=yes
17396else case e in #(
17397  e) eval $cacheid=no ;;
17398esac
17399fi
17400rm -f core conftest.err conftest.$ac_objext conftest.beam \
17401    conftest$ac_exeext conftest.$ac_ext ;;
17402esac
17403fi
17404
17405
17406		CFLAGS="$xorg_testset_save_CFLAGS"
17407
17408		eval supported=\$$cacheid
17409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17410printf "%s\n" "$supported" >&6; }
17411		if test "$supported" = "yes" ; then
17412			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
17413			found="yes"
17414		fi
17415	fi
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431xorg_testset_save_CFLAGS="$CFLAGS"
17432
17433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17437if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17438then :
17439  printf %s "(cached) " >&6
17440else case e in #(
17441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442/* end confdefs.h.  */
17443int i;
17444_ACEOF
17445if ac_fn_c_try_compile "$LINENO"
17446then :
17447  xorg_cv_cc_flag_unknown_warning_option=yes
17448else case e in #(
17449  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17450esac
17451fi
17452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17453esac
17454fi
17455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17458	CFLAGS="$xorg_testset_save_CFLAGS"
17459fi
17460
17461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17464	fi
17465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17468if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17469then :
17470  printf %s "(cached) " >&6
17471else case e in #(
17472  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474int i;
17475_ACEOF
17476if ac_fn_c_try_compile "$LINENO"
17477then :
17478  xorg_cv_cc_flag_unused_command_line_argument=yes
17479else case e in #(
17480  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17481esac
17482fi
17483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17484esac
17485fi
17486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17489	CFLAGS="$xorg_testset_save_CFLAGS"
17490fi
17491
17492found="no"
17493
17494	if test $found = "no" ; then
17495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497		fi
17498
17499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501		fi
17502
17503		CFLAGS="$CFLAGS -Werror=missing-braces"
17504
17505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17506printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17507		cacheid=xorg_cv_cc_flag__Werror_missing_braces
17508		if eval test \${$cacheid+y}
17509then :
17510  printf %s "(cached) " >&6
17511else case e in #(
17512  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h.  */
17514int i;
17515int
17516main (void)
17517{
17518
17519  ;
17520  return 0;
17521}
17522_ACEOF
17523if ac_fn_c_try_link "$LINENO"
17524then :
17525  eval $cacheid=yes
17526else case e in #(
17527  e) eval $cacheid=no ;;
17528esac
17529fi
17530rm -f core conftest.err conftest.$ac_objext conftest.beam \
17531    conftest$ac_exeext conftest.$ac_ext ;;
17532esac
17533fi
17534
17535
17536		CFLAGS="$xorg_testset_save_CFLAGS"
17537
17538		eval supported=\$$cacheid
17539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17540printf "%s\n" "$supported" >&6; }
17541		if test "$supported" = "yes" ; then
17542			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17543			found="yes"
17544		fi
17545	fi
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561xorg_testset_save_CFLAGS="$CFLAGS"
17562
17563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17568then :
17569  printf %s "(cached) " >&6
17570else case e in #(
17571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573int i;
17574_ACEOF
17575if ac_fn_c_try_compile "$LINENO"
17576then :
17577  xorg_cv_cc_flag_unknown_warning_option=yes
17578else case e in #(
17579  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17580esac
17581fi
17582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17583esac
17584fi
17585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17588	CFLAGS="$xorg_testset_save_CFLAGS"
17589fi
17590
17591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17594	fi
17595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17599then :
17600  printf %s "(cached) " >&6
17601else case e in #(
17602  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603/* end confdefs.h.  */
17604int i;
17605_ACEOF
17606if ac_fn_c_try_compile "$LINENO"
17607then :
17608  xorg_cv_cc_flag_unused_command_line_argument=yes
17609else case e in #(
17610  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17611esac
17612fi
17613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17614esac
17615fi
17616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17619	CFLAGS="$xorg_testset_save_CFLAGS"
17620fi
17621
17622found="no"
17623
17624	if test $found = "no" ; then
17625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17627		fi
17628
17629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17631		fi
17632
17633		CFLAGS="$CFLAGS -Werror=sequence-point"
17634
17635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17636printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17637		cacheid=xorg_cv_cc_flag__Werror_sequence_point
17638		if eval test \${$cacheid+y}
17639then :
17640  printf %s "(cached) " >&6
17641else case e in #(
17642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643/* end confdefs.h.  */
17644int i;
17645int
17646main (void)
17647{
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653if ac_fn_c_try_link "$LINENO"
17654then :
17655  eval $cacheid=yes
17656else case e in #(
17657  e) eval $cacheid=no ;;
17658esac
17659fi
17660rm -f core conftest.err conftest.$ac_objext conftest.beam \
17661    conftest$ac_exeext conftest.$ac_ext ;;
17662esac
17663fi
17664
17665
17666		CFLAGS="$xorg_testset_save_CFLAGS"
17667
17668		eval supported=\$$cacheid
17669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17670printf "%s\n" "$supported" >&6; }
17671		if test "$supported" = "yes" ; then
17672			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17673			found="yes"
17674		fi
17675	fi
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691xorg_testset_save_CFLAGS="$CFLAGS"
17692
17693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17698then :
17699  printf %s "(cached) " >&6
17700else case e in #(
17701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702/* end confdefs.h.  */
17703int i;
17704_ACEOF
17705if ac_fn_c_try_compile "$LINENO"
17706then :
17707  xorg_cv_cc_flag_unknown_warning_option=yes
17708else case e in #(
17709  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17710esac
17711fi
17712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17713esac
17714fi
17715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17718	CFLAGS="$xorg_testset_save_CFLAGS"
17719fi
17720
17721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17724	fi
17725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17728if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17729then :
17730  printf %s "(cached) " >&6
17731else case e in #(
17732  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733/* end confdefs.h.  */
17734int i;
17735_ACEOF
17736if ac_fn_c_try_compile "$LINENO"
17737then :
17738  xorg_cv_cc_flag_unused_command_line_argument=yes
17739else case e in #(
17740  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17741esac
17742fi
17743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17744esac
17745fi
17746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17749	CFLAGS="$xorg_testset_save_CFLAGS"
17750fi
17751
17752found="no"
17753
17754	if test $found = "no" ; then
17755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17757		fi
17758
17759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17761		fi
17762
17763		CFLAGS="$CFLAGS -Werror=return-type"
17764
17765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17766printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17767		cacheid=xorg_cv_cc_flag__Werror_return_type
17768		if eval test \${$cacheid+y}
17769then :
17770  printf %s "(cached) " >&6
17771else case e in #(
17772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773/* end confdefs.h.  */
17774int i;
17775int
17776main (void)
17777{
17778
17779  ;
17780  return 0;
17781}
17782_ACEOF
17783if ac_fn_c_try_link "$LINENO"
17784then :
17785  eval $cacheid=yes
17786else case e in #(
17787  e) eval $cacheid=no ;;
17788esac
17789fi
17790rm -f core conftest.err conftest.$ac_objext conftest.beam \
17791    conftest$ac_exeext conftest.$ac_ext ;;
17792esac
17793fi
17794
17795
17796		CFLAGS="$xorg_testset_save_CFLAGS"
17797
17798		eval supported=\$$cacheid
17799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17800printf "%s\n" "$supported" >&6; }
17801		if test "$supported" = "yes" ; then
17802			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17803			found="yes"
17804		fi
17805	fi
17806
17807	if test $found = "no" ; then
17808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810		fi
17811
17812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17814		fi
17815
17816		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17817
17818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17819printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17820		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17821		if eval test \${$cacheid+y}
17822then :
17823  printf %s "(cached) " >&6
17824else case e in #(
17825  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826/* end confdefs.h.  */
17827int i;
17828int
17829main (void)
17830{
17831
17832  ;
17833  return 0;
17834}
17835_ACEOF
17836if ac_fn_c_try_link "$LINENO"
17837then :
17838  eval $cacheid=yes
17839else case e in #(
17840  e) eval $cacheid=no ;;
17841esac
17842fi
17843rm -f core conftest.err conftest.$ac_objext conftest.beam \
17844    conftest$ac_exeext conftest.$ac_ext ;;
17845esac
17846fi
17847
17848
17849		CFLAGS="$xorg_testset_save_CFLAGS"
17850
17851		eval supported=\$$cacheid
17852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17853printf "%s\n" "$supported" >&6; }
17854		if test "$supported" = "yes" ; then
17855			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17856			found="yes"
17857		fi
17858	fi
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874xorg_testset_save_CFLAGS="$CFLAGS"
17875
17876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17877	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17880if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17881then :
17882  printf %s "(cached) " >&6
17883else case e in #(
17884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h.  */
17886int i;
17887_ACEOF
17888if ac_fn_c_try_compile "$LINENO"
17889then :
17890  xorg_cv_cc_flag_unknown_warning_option=yes
17891else case e in #(
17892  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17893esac
17894fi
17895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17896esac
17897fi
17898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17901	CFLAGS="$xorg_testset_save_CFLAGS"
17902fi
17903
17904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17907	fi
17908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17911if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17912then :
17913  printf %s "(cached) " >&6
17914else case e in #(
17915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916/* end confdefs.h.  */
17917int i;
17918_ACEOF
17919if ac_fn_c_try_compile "$LINENO"
17920then :
17921  xorg_cv_cc_flag_unused_command_line_argument=yes
17922else case e in #(
17923  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17924esac
17925fi
17926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17927esac
17928fi
17929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17932	CFLAGS="$xorg_testset_save_CFLAGS"
17933fi
17934
17935found="no"
17936
17937	if test $found = "no" ; then
17938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17940		fi
17941
17942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17944		fi
17945
17946		CFLAGS="$CFLAGS -Werror=trigraphs"
17947
17948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17949printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17950		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17951		if eval test \${$cacheid+y}
17952then :
17953  printf %s "(cached) " >&6
17954else case e in #(
17955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956/* end confdefs.h.  */
17957int i;
17958int
17959main (void)
17960{
17961
17962  ;
17963  return 0;
17964}
17965_ACEOF
17966if ac_fn_c_try_link "$LINENO"
17967then :
17968  eval $cacheid=yes
17969else case e in #(
17970  e) eval $cacheid=no ;;
17971esac
17972fi
17973rm -f core conftest.err conftest.$ac_objext conftest.beam \
17974    conftest$ac_exeext conftest.$ac_ext ;;
17975esac
17976fi
17977
17978
17979		CFLAGS="$xorg_testset_save_CFLAGS"
17980
17981		eval supported=\$$cacheid
17982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17983printf "%s\n" "$supported" >&6; }
17984		if test "$supported" = "yes" ; then
17985			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17986			found="yes"
17987		fi
17988	fi
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004xorg_testset_save_CFLAGS="$CFLAGS"
18005
18006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18010if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18011then :
18012  printf %s "(cached) " >&6
18013else case e in #(
18014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015/* end confdefs.h.  */
18016int i;
18017_ACEOF
18018if ac_fn_c_try_compile "$LINENO"
18019then :
18020  xorg_cv_cc_flag_unknown_warning_option=yes
18021else case e in #(
18022  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18023esac
18024fi
18025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18026esac
18027fi
18028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18031	CFLAGS="$xorg_testset_save_CFLAGS"
18032fi
18033
18034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18037	fi
18038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18042then :
18043  printf %s "(cached) " >&6
18044else case e in #(
18045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047int i;
18048_ACEOF
18049if ac_fn_c_try_compile "$LINENO"
18050then :
18051  xorg_cv_cc_flag_unused_command_line_argument=yes
18052else case e in #(
18053  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18054esac
18055fi
18056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18057esac
18058fi
18059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18062	CFLAGS="$xorg_testset_save_CFLAGS"
18063fi
18064
18065found="no"
18066
18067	if test $found = "no" ; then
18068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18070		fi
18071
18072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18074		fi
18075
18076		CFLAGS="$CFLAGS -Werror=array-bounds"
18077
18078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
18079printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
18080		cacheid=xorg_cv_cc_flag__Werror_array_bounds
18081		if eval test \${$cacheid+y}
18082then :
18083  printf %s "(cached) " >&6
18084else case e in #(
18085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087int i;
18088int
18089main (void)
18090{
18091
18092  ;
18093  return 0;
18094}
18095_ACEOF
18096if ac_fn_c_try_link "$LINENO"
18097then :
18098  eval $cacheid=yes
18099else case e in #(
18100  e) eval $cacheid=no ;;
18101esac
18102fi
18103rm -f core conftest.err conftest.$ac_objext conftest.beam \
18104    conftest$ac_exeext conftest.$ac_ext ;;
18105esac
18106fi
18107
18108
18109		CFLAGS="$xorg_testset_save_CFLAGS"
18110
18111		eval supported=\$$cacheid
18112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18113printf "%s\n" "$supported" >&6; }
18114		if test "$supported" = "yes" ; then
18115			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
18116			found="yes"
18117		fi
18118	fi
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134xorg_testset_save_CFLAGS="$CFLAGS"
18135
18136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18140if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18141then :
18142  printf %s "(cached) " >&6
18143else case e in #(
18144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145/* end confdefs.h.  */
18146int i;
18147_ACEOF
18148if ac_fn_c_try_compile "$LINENO"
18149then :
18150  xorg_cv_cc_flag_unknown_warning_option=yes
18151else case e in #(
18152  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18153esac
18154fi
18155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18156esac
18157fi
18158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18161	CFLAGS="$xorg_testset_save_CFLAGS"
18162fi
18163
18164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18167	fi
18168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18171if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18172then :
18173  printf %s "(cached) " >&6
18174else case e in #(
18175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176/* end confdefs.h.  */
18177int i;
18178_ACEOF
18179if ac_fn_c_try_compile "$LINENO"
18180then :
18181  xorg_cv_cc_flag_unused_command_line_argument=yes
18182else case e in #(
18183  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18184esac
18185fi
18186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18187esac
18188fi
18189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18192	CFLAGS="$xorg_testset_save_CFLAGS"
18193fi
18194
18195found="no"
18196
18197	if test $found = "no" ; then
18198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18200		fi
18201
18202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18204		fi
18205
18206		CFLAGS="$CFLAGS -Werror=write-strings"
18207
18208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
18209printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
18210		cacheid=xorg_cv_cc_flag__Werror_write_strings
18211		if eval test \${$cacheid+y}
18212then :
18213  printf %s "(cached) " >&6
18214else case e in #(
18215  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217int i;
18218int
18219main (void)
18220{
18221
18222  ;
18223  return 0;
18224}
18225_ACEOF
18226if ac_fn_c_try_link "$LINENO"
18227then :
18228  eval $cacheid=yes
18229else case e in #(
18230  e) eval $cacheid=no ;;
18231esac
18232fi
18233rm -f core conftest.err conftest.$ac_objext conftest.beam \
18234    conftest$ac_exeext conftest.$ac_ext ;;
18235esac
18236fi
18237
18238
18239		CFLAGS="$xorg_testset_save_CFLAGS"
18240
18241		eval supported=\$$cacheid
18242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18243printf "%s\n" "$supported" >&6; }
18244		if test "$supported" = "yes" ; then
18245			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
18246			found="yes"
18247		fi
18248	fi
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264xorg_testset_save_CFLAGS="$CFLAGS"
18265
18266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18270if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18271then :
18272  printf %s "(cached) " >&6
18273else case e in #(
18274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h.  */
18276int i;
18277_ACEOF
18278if ac_fn_c_try_compile "$LINENO"
18279then :
18280  xorg_cv_cc_flag_unknown_warning_option=yes
18281else case e in #(
18282  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18283esac
18284fi
18285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18286esac
18287fi
18288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18291	CFLAGS="$xorg_testset_save_CFLAGS"
18292fi
18293
18294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18297	fi
18298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18301if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18302then :
18303  printf %s "(cached) " >&6
18304else case e in #(
18305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306/* end confdefs.h.  */
18307int i;
18308_ACEOF
18309if ac_fn_c_try_compile "$LINENO"
18310then :
18311  xorg_cv_cc_flag_unused_command_line_argument=yes
18312else case e in #(
18313  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18314esac
18315fi
18316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18317esac
18318fi
18319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18322	CFLAGS="$xorg_testset_save_CFLAGS"
18323fi
18324
18325found="no"
18326
18327	if test $found = "no" ; then
18328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18330		fi
18331
18332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18334		fi
18335
18336		CFLAGS="$CFLAGS -Werror=address"
18337
18338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
18339printf %s "checking if $CC supports -Werror=address... " >&6; }
18340		cacheid=xorg_cv_cc_flag__Werror_address
18341		if eval test \${$cacheid+y}
18342then :
18343  printf %s "(cached) " >&6
18344else case e in #(
18345  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346/* end confdefs.h.  */
18347int i;
18348int
18349main (void)
18350{
18351
18352  ;
18353  return 0;
18354}
18355_ACEOF
18356if ac_fn_c_try_link "$LINENO"
18357then :
18358  eval $cacheid=yes
18359else case e in #(
18360  e) eval $cacheid=no ;;
18361esac
18362fi
18363rm -f core conftest.err conftest.$ac_objext conftest.beam \
18364    conftest$ac_exeext conftest.$ac_ext ;;
18365esac
18366fi
18367
18368
18369		CFLAGS="$xorg_testset_save_CFLAGS"
18370
18371		eval supported=\$$cacheid
18372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18373printf "%s\n" "$supported" >&6; }
18374		if test "$supported" = "yes" ; then
18375			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
18376			found="yes"
18377		fi
18378	fi
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394xorg_testset_save_CFLAGS="$CFLAGS"
18395
18396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18401then :
18402  printf %s "(cached) " >&6
18403else case e in #(
18404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405/* end confdefs.h.  */
18406int i;
18407_ACEOF
18408if ac_fn_c_try_compile "$LINENO"
18409then :
18410  xorg_cv_cc_flag_unknown_warning_option=yes
18411else case e in #(
18412  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18413esac
18414fi
18415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18416esac
18417fi
18418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18421	CFLAGS="$xorg_testset_save_CFLAGS"
18422fi
18423
18424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18427	fi
18428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18432then :
18433  printf %s "(cached) " >&6
18434else case e in #(
18435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436/* end confdefs.h.  */
18437int i;
18438_ACEOF
18439if ac_fn_c_try_compile "$LINENO"
18440then :
18441  xorg_cv_cc_flag_unused_command_line_argument=yes
18442else case e in #(
18443  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18444esac
18445fi
18446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18447esac
18448fi
18449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18452	CFLAGS="$xorg_testset_save_CFLAGS"
18453fi
18454
18455found="no"
18456
18457	if test $found = "no" ; then
18458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18460		fi
18461
18462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18464		fi
18465
18466		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18467
18468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18469printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18470		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18471		if eval test \${$cacheid+y}
18472then :
18473  printf %s "(cached) " >&6
18474else case e in #(
18475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476/* end confdefs.h.  */
18477int i;
18478int
18479main (void)
18480{
18481
18482  ;
18483  return 0;
18484}
18485_ACEOF
18486if ac_fn_c_try_link "$LINENO"
18487then :
18488  eval $cacheid=yes
18489else case e in #(
18490  e) eval $cacheid=no ;;
18491esac
18492fi
18493rm -f core conftest.err conftest.$ac_objext conftest.beam \
18494    conftest$ac_exeext conftest.$ac_ext ;;
18495esac
18496fi
18497
18498
18499		CFLAGS="$xorg_testset_save_CFLAGS"
18500
18501		eval supported=\$$cacheid
18502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18503printf "%s\n" "$supported" >&6; }
18504		if test "$supported" = "yes" ; then
18505			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18506			found="yes"
18507		fi
18508	fi
18509
18510	if test $found = "no" ; then
18511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513		fi
18514
18515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18517		fi
18518
18519		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18520
18521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18522printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18523		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18524		if eval test \${$cacheid+y}
18525then :
18526  printf %s "(cached) " >&6
18527else case e in #(
18528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h.  */
18530int i;
18531int
18532main (void)
18533{
18534
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_link "$LINENO"
18540then :
18541  eval $cacheid=yes
18542else case e in #(
18543  e) eval $cacheid=no ;;
18544esac
18545fi
18546rm -f core conftest.err conftest.$ac_objext conftest.beam \
18547    conftest$ac_exeext conftest.$ac_ext ;;
18548esac
18549fi
18550
18551
18552		CFLAGS="$xorg_testset_save_CFLAGS"
18553
18554		eval supported=\$$cacheid
18555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18556printf "%s\n" "$supported" >&6; }
18557		if test "$supported" = "yes" ; then
18558			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18559			found="yes"
18560		fi
18561	fi
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577xorg_testset_save_CFLAGS="$CFLAGS"
18578
18579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18583if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18584then :
18585  printf %s "(cached) " >&6
18586else case e in #(
18587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588/* end confdefs.h.  */
18589int i;
18590_ACEOF
18591if ac_fn_c_try_compile "$LINENO"
18592then :
18593  xorg_cv_cc_flag_unknown_warning_option=yes
18594else case e in #(
18595  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18596esac
18597fi
18598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18599esac
18600fi
18601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18604	CFLAGS="$xorg_testset_save_CFLAGS"
18605fi
18606
18607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18610	fi
18611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18615then :
18616  printf %s "(cached) " >&6
18617else case e in #(
18618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619/* end confdefs.h.  */
18620int i;
18621_ACEOF
18622if ac_fn_c_try_compile "$LINENO"
18623then :
18624  xorg_cv_cc_flag_unused_command_line_argument=yes
18625else case e in #(
18626  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18627esac
18628fi
18629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18630esac
18631fi
18632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18635	CFLAGS="$xorg_testset_save_CFLAGS"
18636fi
18637
18638found="no"
18639
18640	if test $found = "no" ; then
18641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643		fi
18644
18645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18647		fi
18648
18649		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18650
18651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18652printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18653		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18654		if eval test \${$cacheid+y}
18655then :
18656  printf %s "(cached) " >&6
18657else case e in #(
18658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659/* end confdefs.h.  */
18660int i;
18661int
18662main (void)
18663{
18664
18665  ;
18666  return 0;
18667}
18668_ACEOF
18669if ac_fn_c_try_link "$LINENO"
18670then :
18671  eval $cacheid=yes
18672else case e in #(
18673  e) eval $cacheid=no ;;
18674esac
18675fi
18676rm -f core conftest.err conftest.$ac_objext conftest.beam \
18677    conftest$ac_exeext conftest.$ac_ext ;;
18678esac
18679fi
18680
18681
18682		CFLAGS="$xorg_testset_save_CFLAGS"
18683
18684		eval supported=\$$cacheid
18685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18686printf "%s\n" "$supported" >&6; }
18687		if test "$supported" = "yes" ; then
18688			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18689			found="yes"
18690		fi
18691	fi
18692
18693 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18694else
18695{ 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
18696printf "%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;}
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710xorg_testset_save_CFLAGS="$CFLAGS"
18711
18712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18715printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18716if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18717then :
18718  printf %s "(cached) " >&6
18719else case e in #(
18720  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721/* end confdefs.h.  */
18722int i;
18723_ACEOF
18724if ac_fn_c_try_compile "$LINENO"
18725then :
18726  xorg_cv_cc_flag_unknown_warning_option=yes
18727else case e in #(
18728  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18729esac
18730fi
18731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18732esac
18733fi
18734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18736	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18737	CFLAGS="$xorg_testset_save_CFLAGS"
18738fi
18739
18740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18741	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18742		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18743	fi
18744	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18747if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18748then :
18749  printf %s "(cached) " >&6
18750else case e in #(
18751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752/* end confdefs.h.  */
18753int i;
18754_ACEOF
18755if ac_fn_c_try_compile "$LINENO"
18756then :
18757  xorg_cv_cc_flag_unused_command_line_argument=yes
18758else case e in #(
18759  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18760esac
18761fi
18762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18763esac
18764fi
18765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18768	CFLAGS="$xorg_testset_save_CFLAGS"
18769fi
18770
18771found="no"
18772
18773	if test $found = "no" ; then
18774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18776		fi
18777
18778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18780		fi
18781
18782		CFLAGS="$CFLAGS -Wimplicit"
18783
18784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18785printf %s "checking if $CC supports -Wimplicit... " >&6; }
18786		cacheid=xorg_cv_cc_flag__Wimplicit
18787		if eval test \${$cacheid+y}
18788then :
18789  printf %s "(cached) " >&6
18790else case e in #(
18791  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792/* end confdefs.h.  */
18793int i;
18794int
18795main (void)
18796{
18797
18798  ;
18799  return 0;
18800}
18801_ACEOF
18802if ac_fn_c_try_link "$LINENO"
18803then :
18804  eval $cacheid=yes
18805else case e in #(
18806  e) eval $cacheid=no ;;
18807esac
18808fi
18809rm -f core conftest.err conftest.$ac_objext conftest.beam \
18810    conftest$ac_exeext conftest.$ac_ext ;;
18811esac
18812fi
18813
18814
18815		CFLAGS="$xorg_testset_save_CFLAGS"
18816
18817		eval supported=\$$cacheid
18818		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18819printf "%s\n" "$supported" >&6; }
18820		if test "$supported" = "yes" ; then
18821			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18822			found="yes"
18823		fi
18824	fi
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840xorg_testset_save_CFLAGS="$CFLAGS"
18841
18842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18846if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18847then :
18848  printf %s "(cached) " >&6
18849else case e in #(
18850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851/* end confdefs.h.  */
18852int i;
18853_ACEOF
18854if ac_fn_c_try_compile "$LINENO"
18855then :
18856  xorg_cv_cc_flag_unknown_warning_option=yes
18857else case e in #(
18858  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18859esac
18860fi
18861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18862esac
18863fi
18864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18867	CFLAGS="$xorg_testset_save_CFLAGS"
18868fi
18869
18870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18873	fi
18874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18878then :
18879  printf %s "(cached) " >&6
18880else case e in #(
18881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882/* end confdefs.h.  */
18883int i;
18884_ACEOF
18885if ac_fn_c_try_compile "$LINENO"
18886then :
18887  xorg_cv_cc_flag_unused_command_line_argument=yes
18888else case e in #(
18889  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18890esac
18891fi
18892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18893esac
18894fi
18895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18897	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18898	CFLAGS="$xorg_testset_save_CFLAGS"
18899fi
18900
18901found="no"
18902
18903	if test $found = "no" ; then
18904		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18905			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18906		fi
18907
18908		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18909			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18910		fi
18911
18912		CFLAGS="$CFLAGS -Wnonnull"
18913
18914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18915printf %s "checking if $CC supports -Wnonnull... " >&6; }
18916		cacheid=xorg_cv_cc_flag__Wnonnull
18917		if eval test \${$cacheid+y}
18918then :
18919  printf %s "(cached) " >&6
18920else case e in #(
18921  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922/* end confdefs.h.  */
18923int i;
18924int
18925main (void)
18926{
18927
18928  ;
18929  return 0;
18930}
18931_ACEOF
18932if ac_fn_c_try_link "$LINENO"
18933then :
18934  eval $cacheid=yes
18935else case e in #(
18936  e) eval $cacheid=no ;;
18937esac
18938fi
18939rm -f core conftest.err conftest.$ac_objext conftest.beam \
18940    conftest$ac_exeext conftest.$ac_ext ;;
18941esac
18942fi
18943
18944
18945		CFLAGS="$xorg_testset_save_CFLAGS"
18946
18947		eval supported=\$$cacheid
18948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18949printf "%s\n" "$supported" >&6; }
18950		if test "$supported" = "yes" ; then
18951			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18952			found="yes"
18953		fi
18954	fi
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970xorg_testset_save_CFLAGS="$CFLAGS"
18971
18972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18976if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18977then :
18978  printf %s "(cached) " >&6
18979else case e in #(
18980  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981/* end confdefs.h.  */
18982int i;
18983_ACEOF
18984if ac_fn_c_try_compile "$LINENO"
18985then :
18986  xorg_cv_cc_flag_unknown_warning_option=yes
18987else case e in #(
18988  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18989esac
18990fi
18991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18992esac
18993fi
18994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18997	CFLAGS="$xorg_testset_save_CFLAGS"
18998fi
18999
19000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19003	fi
19004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19007if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19008then :
19009  printf %s "(cached) " >&6
19010else case e in #(
19011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012/* end confdefs.h.  */
19013int i;
19014_ACEOF
19015if ac_fn_c_try_compile "$LINENO"
19016then :
19017  xorg_cv_cc_flag_unused_command_line_argument=yes
19018else case e in #(
19019  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19020esac
19021fi
19022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19023esac
19024fi
19025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19028	CFLAGS="$xorg_testset_save_CFLAGS"
19029fi
19030
19031found="no"
19032
19033	if test $found = "no" ; then
19034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19036		fi
19037
19038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19040		fi
19041
19042		CFLAGS="$CFLAGS -Winit-self"
19043
19044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
19045printf %s "checking if $CC supports -Winit-self... " >&6; }
19046		cacheid=xorg_cv_cc_flag__Winit_self
19047		if eval test \${$cacheid+y}
19048then :
19049  printf %s "(cached) " >&6
19050else case e in #(
19051  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052/* end confdefs.h.  */
19053int i;
19054int
19055main (void)
19056{
19057
19058  ;
19059  return 0;
19060}
19061_ACEOF
19062if ac_fn_c_try_link "$LINENO"
19063then :
19064  eval $cacheid=yes
19065else case e in #(
19066  e) eval $cacheid=no ;;
19067esac
19068fi
19069rm -f core conftest.err conftest.$ac_objext conftest.beam \
19070    conftest$ac_exeext conftest.$ac_ext ;;
19071esac
19072fi
19073
19074
19075		CFLAGS="$xorg_testset_save_CFLAGS"
19076
19077		eval supported=\$$cacheid
19078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19079printf "%s\n" "$supported" >&6; }
19080		if test "$supported" = "yes" ; then
19081			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
19082			found="yes"
19083		fi
19084	fi
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100xorg_testset_save_CFLAGS="$CFLAGS"
19101
19102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19106if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19107then :
19108  printf %s "(cached) " >&6
19109else case e in #(
19110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h.  */
19112int i;
19113_ACEOF
19114if ac_fn_c_try_compile "$LINENO"
19115then :
19116  xorg_cv_cc_flag_unknown_warning_option=yes
19117else case e in #(
19118  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19119esac
19120fi
19121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19122esac
19123fi
19124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19127	CFLAGS="$xorg_testset_save_CFLAGS"
19128fi
19129
19130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19133	fi
19134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19137if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19138then :
19139  printf %s "(cached) " >&6
19140else case e in #(
19141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h.  */
19143int i;
19144_ACEOF
19145if ac_fn_c_try_compile "$LINENO"
19146then :
19147  xorg_cv_cc_flag_unused_command_line_argument=yes
19148else case e in #(
19149  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19150esac
19151fi
19152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19153esac
19154fi
19155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19158	CFLAGS="$xorg_testset_save_CFLAGS"
19159fi
19160
19161found="no"
19162
19163	if test $found = "no" ; then
19164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19166		fi
19167
19168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19170		fi
19171
19172		CFLAGS="$CFLAGS -Wmain"
19173
19174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
19175printf %s "checking if $CC supports -Wmain... " >&6; }
19176		cacheid=xorg_cv_cc_flag__Wmain
19177		if eval test \${$cacheid+y}
19178then :
19179  printf %s "(cached) " >&6
19180else case e in #(
19181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182/* end confdefs.h.  */
19183int i;
19184int
19185main (void)
19186{
19187
19188  ;
19189  return 0;
19190}
19191_ACEOF
19192if ac_fn_c_try_link "$LINENO"
19193then :
19194  eval $cacheid=yes
19195else case e in #(
19196  e) eval $cacheid=no ;;
19197esac
19198fi
19199rm -f core conftest.err conftest.$ac_objext conftest.beam \
19200    conftest$ac_exeext conftest.$ac_ext ;;
19201esac
19202fi
19203
19204
19205		CFLAGS="$xorg_testset_save_CFLAGS"
19206
19207		eval supported=\$$cacheid
19208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19209printf "%s\n" "$supported" >&6; }
19210		if test "$supported" = "yes" ; then
19211			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
19212			found="yes"
19213		fi
19214	fi
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230xorg_testset_save_CFLAGS="$CFLAGS"
19231
19232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19237then :
19238  printf %s "(cached) " >&6
19239else case e in #(
19240  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241/* end confdefs.h.  */
19242int i;
19243_ACEOF
19244if ac_fn_c_try_compile "$LINENO"
19245then :
19246  xorg_cv_cc_flag_unknown_warning_option=yes
19247else case e in #(
19248  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19249esac
19250fi
19251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19252esac
19253fi
19254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19257	CFLAGS="$xorg_testset_save_CFLAGS"
19258fi
19259
19260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19263	fi
19264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19267if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19268then :
19269  printf %s "(cached) " >&6
19270else case e in #(
19271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272/* end confdefs.h.  */
19273int i;
19274_ACEOF
19275if ac_fn_c_try_compile "$LINENO"
19276then :
19277  xorg_cv_cc_flag_unused_command_line_argument=yes
19278else case e in #(
19279  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19280esac
19281fi
19282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19283esac
19284fi
19285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19288	CFLAGS="$xorg_testset_save_CFLAGS"
19289fi
19290
19291found="no"
19292
19293	if test $found = "no" ; then
19294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19296		fi
19297
19298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19300		fi
19301
19302		CFLAGS="$CFLAGS -Wmissing-braces"
19303
19304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
19305printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
19306		cacheid=xorg_cv_cc_flag__Wmissing_braces
19307		if eval test \${$cacheid+y}
19308then :
19309  printf %s "(cached) " >&6
19310else case e in #(
19311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313int i;
19314int
19315main (void)
19316{
19317
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322if ac_fn_c_try_link "$LINENO"
19323then :
19324  eval $cacheid=yes
19325else case e in #(
19326  e) eval $cacheid=no ;;
19327esac
19328fi
19329rm -f core conftest.err conftest.$ac_objext conftest.beam \
19330    conftest$ac_exeext conftest.$ac_ext ;;
19331esac
19332fi
19333
19334
19335		CFLAGS="$xorg_testset_save_CFLAGS"
19336
19337		eval supported=\$$cacheid
19338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19339printf "%s\n" "$supported" >&6; }
19340		if test "$supported" = "yes" ; then
19341			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
19342			found="yes"
19343		fi
19344	fi
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360xorg_testset_save_CFLAGS="$CFLAGS"
19361
19362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19366if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19367then :
19368  printf %s "(cached) " >&6
19369else case e in #(
19370  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371/* end confdefs.h.  */
19372int i;
19373_ACEOF
19374if ac_fn_c_try_compile "$LINENO"
19375then :
19376  xorg_cv_cc_flag_unknown_warning_option=yes
19377else case e in #(
19378  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19379esac
19380fi
19381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19382esac
19383fi
19384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19387	CFLAGS="$xorg_testset_save_CFLAGS"
19388fi
19389
19390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19393	fi
19394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19398then :
19399  printf %s "(cached) " >&6
19400else case e in #(
19401  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402/* end confdefs.h.  */
19403int i;
19404_ACEOF
19405if ac_fn_c_try_compile "$LINENO"
19406then :
19407  xorg_cv_cc_flag_unused_command_line_argument=yes
19408else case e in #(
19409  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19410esac
19411fi
19412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19413esac
19414fi
19415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19416printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19418	CFLAGS="$xorg_testset_save_CFLAGS"
19419fi
19420
19421found="no"
19422
19423	if test $found = "no" ; then
19424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19426		fi
19427
19428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19430		fi
19431
19432		CFLAGS="$CFLAGS -Wsequence-point"
19433
19434		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
19435printf %s "checking if $CC supports -Wsequence-point... " >&6; }
19436		cacheid=xorg_cv_cc_flag__Wsequence_point
19437		if eval test \${$cacheid+y}
19438then :
19439  printf %s "(cached) " >&6
19440else case e in #(
19441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442/* end confdefs.h.  */
19443int i;
19444int
19445main (void)
19446{
19447
19448  ;
19449  return 0;
19450}
19451_ACEOF
19452if ac_fn_c_try_link "$LINENO"
19453then :
19454  eval $cacheid=yes
19455else case e in #(
19456  e) eval $cacheid=no ;;
19457esac
19458fi
19459rm -f core conftest.err conftest.$ac_objext conftest.beam \
19460    conftest$ac_exeext conftest.$ac_ext ;;
19461esac
19462fi
19463
19464
19465		CFLAGS="$xorg_testset_save_CFLAGS"
19466
19467		eval supported=\$$cacheid
19468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19469printf "%s\n" "$supported" >&6; }
19470		if test "$supported" = "yes" ; then
19471			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19472			found="yes"
19473		fi
19474	fi
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490xorg_testset_save_CFLAGS="$CFLAGS"
19491
19492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19496if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19497then :
19498  printf %s "(cached) " >&6
19499else case e in #(
19500  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501/* end confdefs.h.  */
19502int i;
19503_ACEOF
19504if ac_fn_c_try_compile "$LINENO"
19505then :
19506  xorg_cv_cc_flag_unknown_warning_option=yes
19507else case e in #(
19508  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19509esac
19510fi
19511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19512esac
19513fi
19514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19515printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19517	CFLAGS="$xorg_testset_save_CFLAGS"
19518fi
19519
19520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19523	fi
19524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19526printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19527if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19528then :
19529  printf %s "(cached) " >&6
19530else case e in #(
19531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532/* end confdefs.h.  */
19533int i;
19534_ACEOF
19535if ac_fn_c_try_compile "$LINENO"
19536then :
19537  xorg_cv_cc_flag_unused_command_line_argument=yes
19538else case e in #(
19539  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19540esac
19541fi
19542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19543esac
19544fi
19545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19548	CFLAGS="$xorg_testset_save_CFLAGS"
19549fi
19550
19551found="no"
19552
19553	if test $found = "no" ; then
19554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19556		fi
19557
19558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19560		fi
19561
19562		CFLAGS="$CFLAGS -Wreturn-type"
19563
19564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19565printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19566		cacheid=xorg_cv_cc_flag__Wreturn_type
19567		if eval test \${$cacheid+y}
19568then :
19569  printf %s "(cached) " >&6
19570else case e in #(
19571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572/* end confdefs.h.  */
19573int i;
19574int
19575main (void)
19576{
19577
19578  ;
19579  return 0;
19580}
19581_ACEOF
19582if ac_fn_c_try_link "$LINENO"
19583then :
19584  eval $cacheid=yes
19585else case e in #(
19586  e) eval $cacheid=no ;;
19587esac
19588fi
19589rm -f core conftest.err conftest.$ac_objext conftest.beam \
19590    conftest$ac_exeext conftest.$ac_ext ;;
19591esac
19592fi
19593
19594
19595		CFLAGS="$xorg_testset_save_CFLAGS"
19596
19597		eval supported=\$$cacheid
19598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19599printf "%s\n" "$supported" >&6; }
19600		if test "$supported" = "yes" ; then
19601			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19602			found="yes"
19603		fi
19604	fi
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620xorg_testset_save_CFLAGS="$CFLAGS"
19621
19622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19626if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19627then :
19628  printf %s "(cached) " >&6
19629else case e in #(
19630  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631/* end confdefs.h.  */
19632int i;
19633_ACEOF
19634if ac_fn_c_try_compile "$LINENO"
19635then :
19636  xorg_cv_cc_flag_unknown_warning_option=yes
19637else case e in #(
19638  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19639esac
19640fi
19641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19642esac
19643fi
19644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19647	CFLAGS="$xorg_testset_save_CFLAGS"
19648fi
19649
19650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19653	fi
19654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19658then :
19659  printf %s "(cached) " >&6
19660else case e in #(
19661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662/* end confdefs.h.  */
19663int i;
19664_ACEOF
19665if ac_fn_c_try_compile "$LINENO"
19666then :
19667  xorg_cv_cc_flag_unused_command_line_argument=yes
19668else case e in #(
19669  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19670esac
19671fi
19672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19673esac
19674fi
19675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19678	CFLAGS="$xorg_testset_save_CFLAGS"
19679fi
19680
19681found="no"
19682
19683	if test $found = "no" ; then
19684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19686		fi
19687
19688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19690		fi
19691
19692		CFLAGS="$CFLAGS -Wtrigraphs"
19693
19694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19695printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19696		cacheid=xorg_cv_cc_flag__Wtrigraphs
19697		if eval test \${$cacheid+y}
19698then :
19699  printf %s "(cached) " >&6
19700else case e in #(
19701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702/* end confdefs.h.  */
19703int i;
19704int
19705main (void)
19706{
19707
19708  ;
19709  return 0;
19710}
19711_ACEOF
19712if ac_fn_c_try_link "$LINENO"
19713then :
19714  eval $cacheid=yes
19715else case e in #(
19716  e) eval $cacheid=no ;;
19717esac
19718fi
19719rm -f core conftest.err conftest.$ac_objext conftest.beam \
19720    conftest$ac_exeext conftest.$ac_ext ;;
19721esac
19722fi
19723
19724
19725		CFLAGS="$xorg_testset_save_CFLAGS"
19726
19727		eval supported=\$$cacheid
19728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19729printf "%s\n" "$supported" >&6; }
19730		if test "$supported" = "yes" ; then
19731			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19732			found="yes"
19733		fi
19734	fi
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750xorg_testset_save_CFLAGS="$CFLAGS"
19751
19752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19756if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19757then :
19758  printf %s "(cached) " >&6
19759else case e in #(
19760  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761/* end confdefs.h.  */
19762int i;
19763_ACEOF
19764if ac_fn_c_try_compile "$LINENO"
19765then :
19766  xorg_cv_cc_flag_unknown_warning_option=yes
19767else case e in #(
19768  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19769esac
19770fi
19771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19772esac
19773fi
19774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19777	CFLAGS="$xorg_testset_save_CFLAGS"
19778fi
19779
19780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19783	fi
19784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19787if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19788then :
19789  printf %s "(cached) " >&6
19790else case e in #(
19791  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792/* end confdefs.h.  */
19793int i;
19794_ACEOF
19795if ac_fn_c_try_compile "$LINENO"
19796then :
19797  xorg_cv_cc_flag_unused_command_line_argument=yes
19798else case e in #(
19799  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19800esac
19801fi
19802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19803esac
19804fi
19805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19808	CFLAGS="$xorg_testset_save_CFLAGS"
19809fi
19810
19811found="no"
19812
19813	if test $found = "no" ; then
19814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19816		fi
19817
19818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19820		fi
19821
19822		CFLAGS="$CFLAGS -Warray-bounds"
19823
19824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19825printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19826		cacheid=xorg_cv_cc_flag__Warray_bounds
19827		if eval test \${$cacheid+y}
19828then :
19829  printf %s "(cached) " >&6
19830else case e in #(
19831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833int i;
19834int
19835main (void)
19836{
19837
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842if ac_fn_c_try_link "$LINENO"
19843then :
19844  eval $cacheid=yes
19845else case e in #(
19846  e) eval $cacheid=no ;;
19847esac
19848fi
19849rm -f core conftest.err conftest.$ac_objext conftest.beam \
19850    conftest$ac_exeext conftest.$ac_ext ;;
19851esac
19852fi
19853
19854
19855		CFLAGS="$xorg_testset_save_CFLAGS"
19856
19857		eval supported=\$$cacheid
19858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19859printf "%s\n" "$supported" >&6; }
19860		if test "$supported" = "yes" ; then
19861			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19862			found="yes"
19863		fi
19864	fi
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880xorg_testset_save_CFLAGS="$CFLAGS"
19881
19882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19886if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19887then :
19888  printf %s "(cached) " >&6
19889else case e in #(
19890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891/* end confdefs.h.  */
19892int i;
19893_ACEOF
19894if ac_fn_c_try_compile "$LINENO"
19895then :
19896  xorg_cv_cc_flag_unknown_warning_option=yes
19897else case e in #(
19898  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19899esac
19900fi
19901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19902esac
19903fi
19904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19907	CFLAGS="$xorg_testset_save_CFLAGS"
19908fi
19909
19910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19913	fi
19914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19918then :
19919  printf %s "(cached) " >&6
19920else case e in #(
19921  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922/* end confdefs.h.  */
19923int i;
19924_ACEOF
19925if ac_fn_c_try_compile "$LINENO"
19926then :
19927  xorg_cv_cc_flag_unused_command_line_argument=yes
19928else case e in #(
19929  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19930esac
19931fi
19932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19933esac
19934fi
19935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19938	CFLAGS="$xorg_testset_save_CFLAGS"
19939fi
19940
19941found="no"
19942
19943	if test $found = "no" ; then
19944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19946		fi
19947
19948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19950		fi
19951
19952		CFLAGS="$CFLAGS -Wwrite-strings"
19953
19954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19955printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19956		cacheid=xorg_cv_cc_flag__Wwrite_strings
19957		if eval test \${$cacheid+y}
19958then :
19959  printf %s "(cached) " >&6
19960else case e in #(
19961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962/* end confdefs.h.  */
19963int i;
19964int
19965main (void)
19966{
19967
19968  ;
19969  return 0;
19970}
19971_ACEOF
19972if ac_fn_c_try_link "$LINENO"
19973then :
19974  eval $cacheid=yes
19975else case e in #(
19976  e) eval $cacheid=no ;;
19977esac
19978fi
19979rm -f core conftest.err conftest.$ac_objext conftest.beam \
19980    conftest$ac_exeext conftest.$ac_ext ;;
19981esac
19982fi
19983
19984
19985		CFLAGS="$xorg_testset_save_CFLAGS"
19986
19987		eval supported=\$$cacheid
19988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19989printf "%s\n" "$supported" >&6; }
19990		if test "$supported" = "yes" ; then
19991			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19992			found="yes"
19993		fi
19994	fi
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010xorg_testset_save_CFLAGS="$CFLAGS"
20011
20012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20017then :
20018  printf %s "(cached) " >&6
20019else case e in #(
20020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021/* end confdefs.h.  */
20022int i;
20023_ACEOF
20024if ac_fn_c_try_compile "$LINENO"
20025then :
20026  xorg_cv_cc_flag_unknown_warning_option=yes
20027else case e in #(
20028  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20029esac
20030fi
20031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20032esac
20033fi
20034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20037	CFLAGS="$xorg_testset_save_CFLAGS"
20038fi
20039
20040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20043	fi
20044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20048then :
20049  printf %s "(cached) " >&6
20050else case e in #(
20051  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052/* end confdefs.h.  */
20053int i;
20054_ACEOF
20055if ac_fn_c_try_compile "$LINENO"
20056then :
20057  xorg_cv_cc_flag_unused_command_line_argument=yes
20058else case e in #(
20059  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20060esac
20061fi
20062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20063esac
20064fi
20065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20068	CFLAGS="$xorg_testset_save_CFLAGS"
20069fi
20070
20071found="no"
20072
20073	if test $found = "no" ; then
20074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20076		fi
20077
20078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20080		fi
20081
20082		CFLAGS="$CFLAGS -Waddress"
20083
20084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
20085printf %s "checking if $CC supports -Waddress... " >&6; }
20086		cacheid=xorg_cv_cc_flag__Waddress
20087		if eval test \${$cacheid+y}
20088then :
20089  printf %s "(cached) " >&6
20090else case e in #(
20091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092/* end confdefs.h.  */
20093int i;
20094int
20095main (void)
20096{
20097
20098  ;
20099  return 0;
20100}
20101_ACEOF
20102if ac_fn_c_try_link "$LINENO"
20103then :
20104  eval $cacheid=yes
20105else case e in #(
20106  e) eval $cacheid=no ;;
20107esac
20108fi
20109rm -f core conftest.err conftest.$ac_objext conftest.beam \
20110    conftest$ac_exeext conftest.$ac_ext ;;
20111esac
20112fi
20113
20114
20115		CFLAGS="$xorg_testset_save_CFLAGS"
20116
20117		eval supported=\$$cacheid
20118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20119printf "%s\n" "$supported" >&6; }
20120		if test "$supported" = "yes" ; then
20121			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
20122			found="yes"
20123		fi
20124	fi
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140xorg_testset_save_CFLAGS="$CFLAGS"
20141
20142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20147then :
20148  printf %s "(cached) " >&6
20149else case e in #(
20150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h.  */
20152int i;
20153_ACEOF
20154if ac_fn_c_try_compile "$LINENO"
20155then :
20156  xorg_cv_cc_flag_unknown_warning_option=yes
20157else case e in #(
20158  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20159esac
20160fi
20161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20162esac
20163fi
20164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20167	CFLAGS="$xorg_testset_save_CFLAGS"
20168fi
20169
20170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20173	fi
20174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20178then :
20179  printf %s "(cached) " >&6
20180else case e in #(
20181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182/* end confdefs.h.  */
20183int i;
20184_ACEOF
20185if ac_fn_c_try_compile "$LINENO"
20186then :
20187  xorg_cv_cc_flag_unused_command_line_argument=yes
20188else case e in #(
20189  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20190esac
20191fi
20192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20193esac
20194fi
20195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20198	CFLAGS="$xorg_testset_save_CFLAGS"
20199fi
20200
20201found="no"
20202
20203	if test $found = "no" ; then
20204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20206		fi
20207
20208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20210		fi
20211
20212		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
20213
20214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
20215printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
20216		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
20217		if eval test \${$cacheid+y}
20218then :
20219  printf %s "(cached) " >&6
20220else case e in #(
20221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222/* end confdefs.h.  */
20223int i;
20224int
20225main (void)
20226{
20227
20228  ;
20229  return 0;
20230}
20231_ACEOF
20232if ac_fn_c_try_link "$LINENO"
20233then :
20234  eval $cacheid=yes
20235else case e in #(
20236  e) eval $cacheid=no ;;
20237esac
20238fi
20239rm -f core conftest.err conftest.$ac_objext conftest.beam \
20240    conftest$ac_exeext conftest.$ac_ext ;;
20241esac
20242fi
20243
20244
20245		CFLAGS="$xorg_testset_save_CFLAGS"
20246
20247		eval supported=\$$cacheid
20248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20249printf "%s\n" "$supported" >&6; }
20250		if test "$supported" = "yes" ; then
20251			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
20252			found="yes"
20253		fi
20254	fi
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270xorg_testset_save_CFLAGS="$CFLAGS"
20271
20272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20277then :
20278  printf %s "(cached) " >&6
20279else case e in #(
20280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281/* end confdefs.h.  */
20282int i;
20283_ACEOF
20284if ac_fn_c_try_compile "$LINENO"
20285then :
20286  xorg_cv_cc_flag_unknown_warning_option=yes
20287else case e in #(
20288  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20289esac
20290fi
20291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20292esac
20293fi
20294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20296	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20297	CFLAGS="$xorg_testset_save_CFLAGS"
20298fi
20299
20300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20301	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20303	fi
20304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20307if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20308then :
20309  printf %s "(cached) " >&6
20310else case e in #(
20311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312/* end confdefs.h.  */
20313int i;
20314_ACEOF
20315if ac_fn_c_try_compile "$LINENO"
20316then :
20317  xorg_cv_cc_flag_unused_command_line_argument=yes
20318else case e in #(
20319  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20320esac
20321fi
20322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20323esac
20324fi
20325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20328	CFLAGS="$xorg_testset_save_CFLAGS"
20329fi
20330
20331found="no"
20332
20333	if test $found = "no" ; then
20334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20336		fi
20337
20338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20340		fi
20341
20342		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
20343
20344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
20345printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
20346		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
20347		if eval test \${$cacheid+y}
20348then :
20349  printf %s "(cached) " >&6
20350else case e in #(
20351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352/* end confdefs.h.  */
20353int i;
20354int
20355main (void)
20356{
20357
20358  ;
20359  return 0;
20360}
20361_ACEOF
20362if ac_fn_c_try_link "$LINENO"
20363then :
20364  eval $cacheid=yes
20365else case e in #(
20366  e) eval $cacheid=no ;;
20367esac
20368fi
20369rm -f core conftest.err conftest.$ac_objext conftest.beam \
20370    conftest$ac_exeext conftest.$ac_ext ;;
20371esac
20372fi
20373
20374
20375		CFLAGS="$xorg_testset_save_CFLAGS"
20376
20377		eval supported=\$$cacheid
20378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20379printf "%s\n" "$supported" >&6; }
20380		if test "$supported" = "yes" ; then
20381			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
20382			found="yes"
20383		fi
20384	fi
20385
20386
20387fi
20388
20389
20390
20391
20392
20393
20394
20395		CWARNFLAGS="$BASE_CFLAGS"
20396		if  test "x$GCC" = xyes ; then
20397		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
20398		fi
20399
20400
20401
20402
20403
20404
20405
20406
20407# Check whether --enable-strict-compilation was given.
20408if test ${enable_strict_compilation+y}
20409then :
20410  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20411else case e in #(
20412  e) STRICT_COMPILE=no ;;
20413esac
20414fi
20415
20416
20417
20418
20419
20420
20421STRICT_CFLAGS=""
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435xorg_testset_save_CFLAGS="$CFLAGS"
20436
20437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20442then :
20443  printf %s "(cached) " >&6
20444else case e in #(
20445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446/* end confdefs.h.  */
20447int i;
20448_ACEOF
20449if ac_fn_c_try_compile "$LINENO"
20450then :
20451  xorg_cv_cc_flag_unknown_warning_option=yes
20452else case e in #(
20453  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20454esac
20455fi
20456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20457esac
20458fi
20459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20462	CFLAGS="$xorg_testset_save_CFLAGS"
20463fi
20464
20465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20468	fi
20469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20473then :
20474  printf %s "(cached) " >&6
20475else case e in #(
20476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477/* end confdefs.h.  */
20478int i;
20479_ACEOF
20480if ac_fn_c_try_compile "$LINENO"
20481then :
20482  xorg_cv_cc_flag_unused_command_line_argument=yes
20483else case e in #(
20484  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20485esac
20486fi
20487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20488esac
20489fi
20490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20493	CFLAGS="$xorg_testset_save_CFLAGS"
20494fi
20495
20496found="no"
20497
20498	if test $found = "no" ; then
20499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20501		fi
20502
20503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20505		fi
20506
20507		CFLAGS="$CFLAGS -pedantic"
20508
20509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20510printf %s "checking if $CC supports -pedantic... " >&6; }
20511		cacheid=xorg_cv_cc_flag__pedantic
20512		if eval test \${$cacheid+y}
20513then :
20514  printf %s "(cached) " >&6
20515else case e in #(
20516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517/* end confdefs.h.  */
20518int i;
20519int
20520main (void)
20521{
20522
20523  ;
20524  return 0;
20525}
20526_ACEOF
20527if ac_fn_c_try_link "$LINENO"
20528then :
20529  eval $cacheid=yes
20530else case e in #(
20531  e) eval $cacheid=no ;;
20532esac
20533fi
20534rm -f core conftest.err conftest.$ac_objext conftest.beam \
20535    conftest$ac_exeext conftest.$ac_ext ;;
20536esac
20537fi
20538
20539
20540		CFLAGS="$xorg_testset_save_CFLAGS"
20541
20542		eval supported=\$$cacheid
20543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20544printf "%s\n" "$supported" >&6; }
20545		if test "$supported" = "yes" ; then
20546			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20547			found="yes"
20548		fi
20549	fi
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565xorg_testset_save_CFLAGS="$CFLAGS"
20566
20567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20572then :
20573  printf %s "(cached) " >&6
20574else case e in #(
20575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576/* end confdefs.h.  */
20577int i;
20578_ACEOF
20579if ac_fn_c_try_compile "$LINENO"
20580then :
20581  xorg_cv_cc_flag_unknown_warning_option=yes
20582else case e in #(
20583  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20584esac
20585fi
20586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20587esac
20588fi
20589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20592	CFLAGS="$xorg_testset_save_CFLAGS"
20593fi
20594
20595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20598	fi
20599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20603then :
20604  printf %s "(cached) " >&6
20605else case e in #(
20606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607/* end confdefs.h.  */
20608int i;
20609_ACEOF
20610if ac_fn_c_try_compile "$LINENO"
20611then :
20612  xorg_cv_cc_flag_unused_command_line_argument=yes
20613else case e in #(
20614  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20615esac
20616fi
20617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20618esac
20619fi
20620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20623	CFLAGS="$xorg_testset_save_CFLAGS"
20624fi
20625
20626found="no"
20627
20628	if test $found = "no" ; then
20629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20631		fi
20632
20633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20635		fi
20636
20637		CFLAGS="$CFLAGS -Werror"
20638
20639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20640printf %s "checking if $CC supports -Werror... " >&6; }
20641		cacheid=xorg_cv_cc_flag__Werror
20642		if eval test \${$cacheid+y}
20643then :
20644  printf %s "(cached) " >&6
20645else case e in #(
20646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647/* end confdefs.h.  */
20648int i;
20649int
20650main (void)
20651{
20652
20653  ;
20654  return 0;
20655}
20656_ACEOF
20657if ac_fn_c_try_link "$LINENO"
20658then :
20659  eval $cacheid=yes
20660else case e in #(
20661  e) eval $cacheid=no ;;
20662esac
20663fi
20664rm -f core conftest.err conftest.$ac_objext conftest.beam \
20665    conftest$ac_exeext conftest.$ac_ext ;;
20666esac
20667fi
20668
20669
20670		CFLAGS="$xorg_testset_save_CFLAGS"
20671
20672		eval supported=\$$cacheid
20673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20674printf "%s\n" "$supported" >&6; }
20675		if test "$supported" = "yes" ; then
20676			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20677			found="yes"
20678		fi
20679	fi
20680
20681	if test $found = "no" ; then
20682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20684		fi
20685
20686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20688		fi
20689
20690		CFLAGS="$CFLAGS -errwarn"
20691
20692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20693printf %s "checking if $CC supports -errwarn... " >&6; }
20694		cacheid=xorg_cv_cc_flag__errwarn
20695		if eval test \${$cacheid+y}
20696then :
20697  printf %s "(cached) " >&6
20698else case e in #(
20699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700/* end confdefs.h.  */
20701int i;
20702int
20703main (void)
20704{
20705
20706  ;
20707  return 0;
20708}
20709_ACEOF
20710if ac_fn_c_try_link "$LINENO"
20711then :
20712  eval $cacheid=yes
20713else case e in #(
20714  e) eval $cacheid=no ;;
20715esac
20716fi
20717rm -f core conftest.err conftest.$ac_objext conftest.beam \
20718    conftest$ac_exeext conftest.$ac_ext ;;
20719esac
20720fi
20721
20722
20723		CFLAGS="$xorg_testset_save_CFLAGS"
20724
20725		eval supported=\$$cacheid
20726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20727printf "%s\n" "$supported" >&6; }
20728		if test "$supported" = "yes" ; then
20729			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20730			found="yes"
20731		fi
20732	fi
20733
20734
20735
20736# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20737# activate it with -Werror, so we add it here explicitly.
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751xorg_testset_save_CFLAGS="$CFLAGS"
20752
20753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20754	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20757if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20758then :
20759  printf %s "(cached) " >&6
20760else case e in #(
20761  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762/* end confdefs.h.  */
20763int i;
20764_ACEOF
20765if ac_fn_c_try_compile "$LINENO"
20766then :
20767  xorg_cv_cc_flag_unknown_warning_option=yes
20768else case e in #(
20769  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20770esac
20771fi
20772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20773esac
20774fi
20775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20778	CFLAGS="$xorg_testset_save_CFLAGS"
20779fi
20780
20781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20784	fi
20785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20789then :
20790  printf %s "(cached) " >&6
20791else case e in #(
20792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793/* end confdefs.h.  */
20794int i;
20795_ACEOF
20796if ac_fn_c_try_compile "$LINENO"
20797then :
20798  xorg_cv_cc_flag_unused_command_line_argument=yes
20799else case e in #(
20800  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20801esac
20802fi
20803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20804esac
20805fi
20806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20809	CFLAGS="$xorg_testset_save_CFLAGS"
20810fi
20811
20812found="no"
20813
20814	if test $found = "no" ; then
20815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20817		fi
20818
20819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20821		fi
20822
20823		CFLAGS="$CFLAGS -Werror=attributes"
20824
20825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20826printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20827		cacheid=xorg_cv_cc_flag__Werror_attributes
20828		if eval test \${$cacheid+y}
20829then :
20830  printf %s "(cached) " >&6
20831else case e in #(
20832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833/* end confdefs.h.  */
20834int i;
20835int
20836main (void)
20837{
20838
20839  ;
20840  return 0;
20841}
20842_ACEOF
20843if ac_fn_c_try_link "$LINENO"
20844then :
20845  eval $cacheid=yes
20846else case e in #(
20847  e) eval $cacheid=no ;;
20848esac
20849fi
20850rm -f core conftest.err conftest.$ac_objext conftest.beam \
20851    conftest$ac_exeext conftest.$ac_ext ;;
20852esac
20853fi
20854
20855
20856		CFLAGS="$xorg_testset_save_CFLAGS"
20857
20858		eval supported=\$$cacheid
20859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20860printf "%s\n" "$supported" >&6; }
20861		if test "$supported" = "yes" ; then
20862			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20863			found="yes"
20864		fi
20865	fi
20866
20867
20868
20869if test "x$STRICT_COMPILE" = "xyes"; then
20870    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20871    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20872fi
20873
20874
20875
20876
20877
20878
20879
20880
20881cat >>confdefs.h <<_ACEOF
20882#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20883_ACEOF
20884
20885	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20886	if test "x$PVM" = "x"; then
20887		PVM="0"
20888	fi
20889
20890printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20891
20892	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20893	if test "x$PVP" = "x"; then
20894		PVP="0"
20895	fi
20896
20897printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20898
20899
20900
20901CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20902mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20903|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20904touch \$(top_srcdir)/ChangeLog; \
20905echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20906
20907
20908
20909
20910macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20911INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20912mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20913|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20914touch \$(top_srcdir)/INSTALL; \
20915echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20916
20917
20918
20919
20920
20921
20922case $host_os in
20923    solaris*)
20924        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20925        # check for a man page file found in later versions that use
20926        # traditional section numbers instead
20927        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20928printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20929if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20930then :
20931  printf %s "(cached) " >&6
20932else case e in #(
20933  e) test "$cross_compiling" = yes &&
20934  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20935if test -r "/usr/share/man/man7/attributes.7"; then
20936  ac_cv_file__usr_share_man_man7_attributes_7=yes
20937else
20938  ac_cv_file__usr_share_man_man7_attributes_7=no
20939fi ;;
20940esac
20941fi
20942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20943printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20944if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20945then :
20946  SYSV_MAN_SECTIONS=false
20947else case e in #(
20948  e) SYSV_MAN_SECTIONS=true ;;
20949esac
20950fi
20951
20952        ;;
20953    *) SYSV_MAN_SECTIONS=false ;;
20954esac
20955
20956if test x$APP_MAN_SUFFIX = x    ; then
20957    APP_MAN_SUFFIX=1
20958fi
20959if test x$APP_MAN_DIR = x    ; then
20960    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20961fi
20962
20963if test x$LIB_MAN_SUFFIX = x    ; then
20964    LIB_MAN_SUFFIX=3
20965fi
20966if test x$LIB_MAN_DIR = x    ; then
20967    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20968fi
20969
20970if test x$FILE_MAN_SUFFIX = x    ; then
20971    case $SYSV_MAN_SECTIONS in
20972	true)				FILE_MAN_SUFFIX=4  ;;
20973	*)				FILE_MAN_SUFFIX=5  ;;
20974    esac
20975fi
20976if test x$FILE_MAN_DIR = x    ; then
20977    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20978fi
20979
20980if test x$MISC_MAN_SUFFIX = x    ; then
20981    case $SYSV_MAN_SECTIONS in
20982	true)				MISC_MAN_SUFFIX=5  ;;
20983	*)				MISC_MAN_SUFFIX=7  ;;
20984    esac
20985fi
20986if test x$MISC_MAN_DIR = x    ; then
20987    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20988fi
20989
20990if test x$DRIVER_MAN_SUFFIX = x    ; then
20991    case $SYSV_MAN_SECTIONS in
20992	true)				DRIVER_MAN_SUFFIX=7  ;;
20993	*)				DRIVER_MAN_SUFFIX=4  ;;
20994    esac
20995fi
20996if test x$DRIVER_MAN_DIR = x    ; then
20997    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20998fi
20999
21000if test x$ADMIN_MAN_SUFFIX = x    ; then
21001    case $SYSV_MAN_SECTIONS in
21002	true)				ADMIN_MAN_SUFFIX=1m ;;
21003	*)				ADMIN_MAN_SUFFIX=8  ;;
21004    esac
21005fi
21006if test x$ADMIN_MAN_DIR = x    ; then
21007    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21008fi
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024XORG_MAN_PAGE="X Version 11"
21025
21026MAN_SUBSTS="\
21027	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
21028	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
21029	-e 's|__xservername__|Xorg|g' \
21030	-e 's|__xconfigfile__|xorg.conf|g' \
21031	-e 's|__projectroot__|\$(prefix)|g' \
21032	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
21033	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
21034	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
21035	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
21036	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
21037	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
21038	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
21039
21040
21041
21042
21043AM_DEFAULT_VERBOSITY=0
21044
21045
21046
21047
21048# Check whether --enable-specs was given.
21049if test ${enable_specs+y}
21050then :
21051  enableval=$enable_specs; build_specs=$enableval
21052else case e in #(
21053  e) build_specs=yes ;;
21054esac
21055fi
21056
21057
21058 if test x$build_specs = xyes; then
21059  ENABLE_SPECS_TRUE=
21060  ENABLE_SPECS_FALSE='#'
21061else
21062  ENABLE_SPECS_TRUE='#'
21063  ENABLE_SPECS_FALSE=
21064fi
21065
21066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
21067printf %s "checking whether to build functional specifications... " >&6; }
21068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
21069printf "%s\n" "$build_specs" >&6; }
21070
21071
21072
21073
21074
21075# Check whether --with-xmlto was given.
21076if test ${with_xmlto+y}
21077then :
21078  withval=$with_xmlto; use_xmlto=$withval
21079else case e in #(
21080  e) use_xmlto=auto ;;
21081esac
21082fi
21083
21084
21085
21086if test "x$use_xmlto" = x"auto"; then
21087   # Extract the first word of "xmlto", so it can be a program name with args.
21088set dummy xmlto; ac_word=$2
21089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21090printf %s "checking for $ac_word... " >&6; }
21091if test ${ac_cv_path_XMLTO+y}
21092then :
21093  printf %s "(cached) " >&6
21094else case e in #(
21095  e) case $XMLTO in
21096  [\\/]* | ?:[\\/]*)
21097  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
21098  ;;
21099  *)
21100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21101for as_dir in $PATH
21102do
21103  IFS=$as_save_IFS
21104  case $as_dir in #(((
21105    '') as_dir=./ ;;
21106    */) ;;
21107    *) as_dir=$as_dir/ ;;
21108  esac
21109    for ac_exec_ext in '' $ac_executable_extensions; do
21110  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21111    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
21112    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21113    break 2
21114  fi
21115done
21116  done
21117IFS=$as_save_IFS
21118
21119  ;;
21120esac ;;
21121esac
21122fi
21123XMLTO=$ac_cv_path_XMLTO
21124if test -n "$XMLTO"; then
21125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
21126printf "%s\n" "$XMLTO" >&6; }
21127else
21128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21129printf "%s\n" "no" >&6; }
21130fi
21131
21132
21133   if test "x$XMLTO" = "x"; then
21134        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
21135printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
21136	have_xmlto=no
21137   else
21138        have_xmlto=yes
21139   fi
21140elif test "x$use_xmlto" = x"yes" ; then
21141   # Extract the first word of "xmlto", so it can be a program name with args.
21142set dummy xmlto; ac_word=$2
21143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21144printf %s "checking for $ac_word... " >&6; }
21145if test ${ac_cv_path_XMLTO+y}
21146then :
21147  printf %s "(cached) " >&6
21148else case e in #(
21149  e) case $XMLTO in
21150  [\\/]* | ?:[\\/]*)
21151  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
21152  ;;
21153  *)
21154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155for as_dir in $PATH
21156do
21157  IFS=$as_save_IFS
21158  case $as_dir in #(((
21159    '') as_dir=./ ;;
21160    */) ;;
21161    *) as_dir=$as_dir/ ;;
21162  esac
21163    for ac_exec_ext in '' $ac_executable_extensions; do
21164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21165    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
21166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21167    break 2
21168  fi
21169done
21170  done
21171IFS=$as_save_IFS
21172
21173  ;;
21174esac ;;
21175esac
21176fi
21177XMLTO=$ac_cv_path_XMLTO
21178if test -n "$XMLTO"; then
21179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
21180printf "%s\n" "$XMLTO" >&6; }
21181else
21182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183printf "%s\n" "no" >&6; }
21184fi
21185
21186
21187   if test "x$XMLTO" = "x"; then
21188        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
21189   fi
21190   have_xmlto=yes
21191elif test "x$use_xmlto" = x"no" ; then
21192   if test "x$XMLTO" != "x"; then
21193      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
21194printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
21195   fi
21196   have_xmlto=no
21197else
21198   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
21199fi
21200
21201# Test for a minimum version of xmlto, if provided.
21202if test "$have_xmlto" = yes; then
21203    # scrape the xmlto version
21204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
21205printf %s "checking the xmlto version... " >&6; }
21206    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
21207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
21208printf "%s\n" "$xmlto_version" >&6; }
21209    as_arg_v1=$xmlto_version
21210as_arg_v2=0.0.22
21211awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
21212case $? in #(
21213  1) :
21214    if test "x$use_xmlto" = xauto; then
21215            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
21216printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
21217            have_xmlto=no
21218        else
21219            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
21220        fi ;; #(
21221  0) :
21222     ;; #(
21223  2) :
21224     ;; #(
21225  *) :
21226     ;;
21227esac
21228fi
21229
21230# Test for the ability of xmlto to generate a text target
21231#
21232# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
21233# following test for empty XML docbook files.
21234# For compatibility reasons use the following empty XML docbook file and if
21235# it fails try it again with a non-empty XML file.
21236have_xmlto_text=no
21237cat > conftest.xml << "EOF"
21238EOF
21239if test "$have_xmlto" = yes
21240then :
21241  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
21242then :
21243  have_xmlto_text=yes
21244else case e in #(
21245  e) # Try it again with a non-empty XML file.
21246              cat > conftest.xml << "EOF"
21247<x></x>
21248EOF
21249              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
21250then :
21251  have_xmlto_text=yes
21252else case e in #(
21253  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
21254printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
21255esac
21256fi ;;
21257esac
21258fi
21259fi
21260rm -f conftest.xml
21261 if test $have_xmlto_text = yes; then
21262  HAVE_XMLTO_TEXT_TRUE=
21263  HAVE_XMLTO_TEXT_FALSE='#'
21264else
21265  HAVE_XMLTO_TEXT_TRUE='#'
21266  HAVE_XMLTO_TEXT_FALSE=
21267fi
21268
21269 if test "$have_xmlto" = yes; then
21270  HAVE_XMLTO_TRUE=
21271  HAVE_XMLTO_FALSE='#'
21272else
21273  HAVE_XMLTO_TRUE='#'
21274  HAVE_XMLTO_FALSE=
21275fi
21276
21277
21278
21279
21280
21281
21282# Check whether --with-fop was given.
21283if test ${with_fop+y}
21284then :
21285  withval=$with_fop; use_fop=$withval
21286else case e in #(
21287  e) use_fop=no ;;
21288esac
21289fi
21290
21291
21292
21293if test "x$use_fop" = x"auto"; then
21294   # Extract the first word of "fop", so it can be a program name with args.
21295set dummy fop; ac_word=$2
21296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21297printf %s "checking for $ac_word... " >&6; }
21298if test ${ac_cv_path_FOP+y}
21299then :
21300  printf %s "(cached) " >&6
21301else case e in #(
21302  e) case $FOP in
21303  [\\/]* | ?:[\\/]*)
21304  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
21305  ;;
21306  *)
21307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21308for as_dir in $PATH
21309do
21310  IFS=$as_save_IFS
21311  case $as_dir in #(((
21312    '') as_dir=./ ;;
21313    */) ;;
21314    *) as_dir=$as_dir/ ;;
21315  esac
21316    for ac_exec_ext in '' $ac_executable_extensions; do
21317  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21318    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
21319    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21320    break 2
21321  fi
21322done
21323  done
21324IFS=$as_save_IFS
21325
21326  ;;
21327esac ;;
21328esac
21329fi
21330FOP=$ac_cv_path_FOP
21331if test -n "$FOP"; then
21332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
21333printf "%s\n" "$FOP" >&6; }
21334else
21335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336printf "%s\n" "no" >&6; }
21337fi
21338
21339
21340   if test "x$FOP" = "x"; then
21341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
21342printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
21343	have_fop=no
21344   else
21345        have_fop=yes
21346   fi
21347elif test "x$use_fop" = x"yes" ; then
21348   # Extract the first word of "fop", so it can be a program name with args.
21349set dummy fop; ac_word=$2
21350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21351printf %s "checking for $ac_word... " >&6; }
21352if test ${ac_cv_path_FOP+y}
21353then :
21354  printf %s "(cached) " >&6
21355else case e in #(
21356  e) case $FOP in
21357  [\\/]* | ?:[\\/]*)
21358  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
21359  ;;
21360  *)
21361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362for as_dir in $PATH
21363do
21364  IFS=$as_save_IFS
21365  case $as_dir in #(((
21366    '') as_dir=./ ;;
21367    */) ;;
21368    *) as_dir=$as_dir/ ;;
21369  esac
21370    for ac_exec_ext in '' $ac_executable_extensions; do
21371  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21372    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
21373    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21374    break 2
21375  fi
21376done
21377  done
21378IFS=$as_save_IFS
21379
21380  ;;
21381esac ;;
21382esac
21383fi
21384FOP=$ac_cv_path_FOP
21385if test -n "$FOP"; then
21386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
21387printf "%s\n" "$FOP" >&6; }
21388else
21389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390printf "%s\n" "no" >&6; }
21391fi
21392
21393
21394   if test "x$FOP" = "x"; then
21395        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
21396   fi
21397   have_fop=yes
21398elif test "x$use_fop" = x"no" ; then
21399   if test "x$FOP" != "x"; then
21400      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
21401printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
21402   fi
21403   have_fop=no
21404else
21405   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
21406fi
21407
21408# Test for a minimum version of fop, if provided.
21409
21410 if test "$have_fop" = yes; then
21411  HAVE_FOP_TRUE=
21412  HAVE_FOP_FALSE='#'
21413else
21414  HAVE_FOP_TRUE='#'
21415  HAVE_FOP_FALSE=
21416fi
21417
21418
21419
21420
21421# Preserves the interface, should it be implemented later
21422
21423
21424
21425# Check whether --with-xsltproc was given.
21426if test ${with_xsltproc+y}
21427then :
21428  withval=$with_xsltproc; use_xsltproc=$withval
21429else case e in #(
21430  e) use_xsltproc=auto ;;
21431esac
21432fi
21433
21434
21435
21436if test "x$use_xsltproc" = x"auto"; then
21437   # Extract the first word of "xsltproc", so it can be a program name with args.
21438set dummy xsltproc; ac_word=$2
21439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21440printf %s "checking for $ac_word... " >&6; }
21441if test ${ac_cv_path_XSLTPROC+y}
21442then :
21443  printf %s "(cached) " >&6
21444else case e in #(
21445  e) case $XSLTPROC in
21446  [\\/]* | ?:[\\/]*)
21447  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21448  ;;
21449  *)
21450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21451for as_dir in $PATH
21452do
21453  IFS=$as_save_IFS
21454  case $as_dir in #(((
21455    '') as_dir=./ ;;
21456    */) ;;
21457    *) as_dir=$as_dir/ ;;
21458  esac
21459    for ac_exec_ext in '' $ac_executable_extensions; do
21460  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21461    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
21462    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21463    break 2
21464  fi
21465done
21466  done
21467IFS=$as_save_IFS
21468
21469  ;;
21470esac ;;
21471esac
21472fi
21473XSLTPROC=$ac_cv_path_XSLTPROC
21474if test -n "$XSLTPROC"; then
21475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21476printf "%s\n" "$XSLTPROC" >&6; }
21477else
21478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21479printf "%s\n" "no" >&6; }
21480fi
21481
21482
21483   if test "x$XSLTPROC" = "x"; then
21484        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
21485printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
21486	have_xsltproc=no
21487   else
21488        have_xsltproc=yes
21489   fi
21490elif test "x$use_xsltproc" = x"yes" ; then
21491   # Extract the first word of "xsltproc", so it can be a program name with args.
21492set dummy xsltproc; ac_word=$2
21493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21494printf %s "checking for $ac_word... " >&6; }
21495if test ${ac_cv_path_XSLTPROC+y}
21496then :
21497  printf %s "(cached) " >&6
21498else case e in #(
21499  e) case $XSLTPROC in
21500  [\\/]* | ?:[\\/]*)
21501  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21502  ;;
21503  *)
21504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21505for as_dir in $PATH
21506do
21507  IFS=$as_save_IFS
21508  case $as_dir in #(((
21509    '') as_dir=./ ;;
21510    */) ;;
21511    *) as_dir=$as_dir/ ;;
21512  esac
21513    for ac_exec_ext in '' $ac_executable_extensions; do
21514  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21515    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
21516    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21517    break 2
21518  fi
21519done
21520  done
21521IFS=$as_save_IFS
21522
21523  ;;
21524esac ;;
21525esac
21526fi
21527XSLTPROC=$ac_cv_path_XSLTPROC
21528if test -n "$XSLTPROC"; then
21529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21530printf "%s\n" "$XSLTPROC" >&6; }
21531else
21532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533printf "%s\n" "no" >&6; }
21534fi
21535
21536
21537   if test "x$XSLTPROC" = "x"; then
21538        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
21539   fi
21540   have_xsltproc=yes
21541elif test "x$use_xsltproc" = x"no" ; then
21542   if test "x$XSLTPROC" != "x"; then
21543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
21544printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
21545   fi
21546   have_xsltproc=no
21547else
21548   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
21549fi
21550
21551 if test "$have_xsltproc" = yes; then
21552  HAVE_XSLTPROC_TRUE=
21553  HAVE_XSLTPROC_FALSE='#'
21554else
21555  HAVE_XSLTPROC_TRUE='#'
21556  HAVE_XSLTPROC_FALSE=
21557fi
21558
21559
21560
21561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
21562printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
21563XORG_SGML_PATH=
21564if test -n "$PKG_CONFIG" && \
21565    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
21566  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
21567  ac_status=$?
21568  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21569  test $ac_status = 0; }; then
21570  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
21571else
21572  :
21573
21574fi
21575
21576# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
21577# the path and the name of the doc stylesheet
21578if test "x$XORG_SGML_PATH" != "x" ; then
21579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
21580printf "%s\n" "$XORG_SGML_PATH" >&6; }
21581   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
21582   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
21583else
21584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585printf "%s\n" "no" >&6; }
21586fi
21587
21588
21589
21590
21591 if test "x$XSL_STYLESHEET" != "x"; then
21592  HAVE_STYLESHEETS_TRUE=
21593  HAVE_STYLESHEETS_FALSE='#'
21594else
21595  HAVE_STYLESHEETS_TRUE='#'
21596  HAVE_STYLESHEETS_FALSE=
21597fi
21598
21599
21600ac_ext=c
21601ac_cpp='$CPP $CPPFLAGS'
21602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21604ac_compiler_gnu=$ac_cv_c_compiler_gnu
21605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
21606printf %s "checking how to run the C preprocessor... " >&6; }
21607# On Suns, sometimes $CPP names a directory.
21608if test -n "$CPP" && test -d "$CPP"; then
21609  CPP=
21610fi
21611if test -z "$CPP"; then
21612  if test ${ac_cv_prog_CPP+y}
21613then :
21614  printf %s "(cached) " >&6
21615else case e in #(
21616  e)     # Double quotes because $CC needs to be expanded
21617    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
21618    do
21619      ac_preproc_ok=false
21620for ac_c_preproc_warn_flag in '' yes
21621do
21622  # Use a header file that comes with gcc, so configuring glibc
21623  # with a fresh cross-compiler works.
21624  # On the NeXT, cc -E runs the code through the compiler's parser,
21625  # not just through cpp. "Syntax error" is here to catch this case.
21626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627/* end confdefs.h.  */
21628#include <limits.h>
21629		     Syntax error
21630_ACEOF
21631if ac_fn_c_try_cpp "$LINENO"
21632then :
21633
21634else case e in #(
21635  e) # Broken: fails on valid input.
21636continue ;;
21637esac
21638fi
21639rm -f conftest.err conftest.i conftest.$ac_ext
21640
21641  # OK, works on sane cases.  Now check whether nonexistent headers
21642  # can be detected and how.
21643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644/* end confdefs.h.  */
21645#include <ac_nonexistent.h>
21646_ACEOF
21647if ac_fn_c_try_cpp "$LINENO"
21648then :
21649  # Broken: success on invalid input.
21650continue
21651else case e in #(
21652  e) # Passes both tests.
21653ac_preproc_ok=:
21654break ;;
21655esac
21656fi
21657rm -f conftest.err conftest.i conftest.$ac_ext
21658
21659done
21660# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21661rm -f conftest.i conftest.err conftest.$ac_ext
21662if $ac_preproc_ok
21663then :
21664  break
21665fi
21666
21667    done
21668    ac_cv_prog_CPP=$CPP
21669   ;;
21670esac
21671fi
21672  CPP=$ac_cv_prog_CPP
21673else
21674  ac_cv_prog_CPP=$CPP
21675fi
21676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
21677printf "%s\n" "$CPP" >&6; }
21678ac_preproc_ok=false
21679for ac_c_preproc_warn_flag in '' yes
21680do
21681  # Use a header file that comes with gcc, so configuring glibc
21682  # with a fresh cross-compiler works.
21683  # On the NeXT, cc -E runs the code through the compiler's parser,
21684  # not just through cpp. "Syntax error" is here to catch this case.
21685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686/* end confdefs.h.  */
21687#include <limits.h>
21688		     Syntax error
21689_ACEOF
21690if ac_fn_c_try_cpp "$LINENO"
21691then :
21692
21693else case e in #(
21694  e) # Broken: fails on valid input.
21695continue ;;
21696esac
21697fi
21698rm -f conftest.err conftest.i conftest.$ac_ext
21699
21700  # OK, works on sane cases.  Now check whether nonexistent headers
21701  # can be detected and how.
21702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703/* end confdefs.h.  */
21704#include <ac_nonexistent.h>
21705_ACEOF
21706if ac_fn_c_try_cpp "$LINENO"
21707then :
21708  # Broken: success on invalid input.
21709continue
21710else case e in #(
21711  e) # Passes both tests.
21712ac_preproc_ok=:
21713break ;;
21714esac
21715fi
21716rm -f conftest.err conftest.i conftest.$ac_ext
21717
21718done
21719# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21720rm -f conftest.i conftest.err conftest.$ac_ext
21721if $ac_preproc_ok
21722then :
21723
21724else case e in #(
21725  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21726printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21727as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
21728See 'config.log' for more details" "$LINENO" 5; } ;;
21729esac
21730fi
21731
21732ac_ext=c
21733ac_cpp='$CPP $CPPFLAGS'
21734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21736ac_compiler_gnu=$ac_cv_c_compiler_gnu
21737
21738
21739
21740if test -n "$ac_tool_prefix"; then
21741  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
21742set dummy ${ac_tool_prefix}cpp; ac_word=$2
21743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21744printf %s "checking for $ac_word... " >&6; }
21745if test ${ac_cv_path_RAWCPP+y}
21746then :
21747  printf %s "(cached) " >&6
21748else case e in #(
21749  e) case $RAWCPP in
21750  [\\/]* | ?:[\\/]*)
21751  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21752  ;;
21753  *)
21754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21756for as_dir in $as_dummy
21757do
21758  IFS=$as_save_IFS
21759  case $as_dir in #(((
21760    '') as_dir=./ ;;
21761    */) ;;
21762    *) as_dir=$as_dir/ ;;
21763  esac
21764    for ac_exec_ext in '' $ac_executable_extensions; do
21765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21766    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
21767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21768    break 2
21769  fi
21770done
21771  done
21772IFS=$as_save_IFS
21773
21774  ;;
21775esac ;;
21776esac
21777fi
21778RAWCPP=$ac_cv_path_RAWCPP
21779if test -n "$RAWCPP"; then
21780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
21781printf "%s\n" "$RAWCPP" >&6; }
21782else
21783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784printf "%s\n" "no" >&6; }
21785fi
21786
21787
21788fi
21789if test -z "$ac_cv_path_RAWCPP"; then
21790  ac_pt_RAWCPP=$RAWCPP
21791  # Extract the first word of "cpp", so it can be a program name with args.
21792set dummy cpp; ac_word=$2
21793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21794printf %s "checking for $ac_word... " >&6; }
21795if test ${ac_cv_path_ac_pt_RAWCPP+y}
21796then :
21797  printf %s "(cached) " >&6
21798else case e in #(
21799  e) case $ac_pt_RAWCPP in
21800  [\\/]* | ?:[\\/]*)
21801  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
21802  ;;
21803  *)
21804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21805as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21806for as_dir in $as_dummy
21807do
21808  IFS=$as_save_IFS
21809  case $as_dir in #(((
21810    '') as_dir=./ ;;
21811    */) ;;
21812    *) as_dir=$as_dir/ ;;
21813  esac
21814    for ac_exec_ext in '' $ac_executable_extensions; do
21815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21816    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
21817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21818    break 2
21819  fi
21820done
21821  done
21822IFS=$as_save_IFS
21823
21824  ;;
21825esac ;;
21826esac
21827fi
21828ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
21829if test -n "$ac_pt_RAWCPP"; then
21830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
21831printf "%s\n" "$ac_pt_RAWCPP" >&6; }
21832else
21833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834printf "%s\n" "no" >&6; }
21835fi
21836
21837  if test "x$ac_pt_RAWCPP" = x; then
21838    RAWCPP="${CPP}"
21839  else
21840    case $cross_compiling:$ac_tool_warned in
21841yes:)
21842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21844ac_tool_warned=yes ;;
21845esac
21846    RAWCPP=$ac_pt_RAWCPP
21847  fi
21848else
21849  RAWCPP="$ac_cv_path_RAWCPP"
21850fi
21851
21852
21853# Check for flag to avoid builtin definitions - assumes unix is predefined,
21854# which is not the best choice for supporting other OS'es, but covers most
21855# of the ones we need for now.
21856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
21857printf %s "checking if $RAWCPP requires -undef... " >&6; }
21858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859/* end confdefs.h.  */
21860Does cpp redefine unix ?
21861_ACEOF
21862if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864printf "%s\n" "no" >&6; }
21865else
21866	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21867		RAWCPPFLAGS=-undef
21868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21869printf "%s\n" "yes" >&6; }
21870	# under Cygwin unix is still defined even with -undef
21871	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21872		RAWCPPFLAGS="-undef -ansi"
21873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
21874printf "%s\n" "yes, with -ansi" >&6; }
21875	else
21876		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
21877	fi
21878fi
21879rm -f conftest.$ac_ext
21880
21881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
21882printf %s "checking if $RAWCPP requires -traditional... " >&6; }
21883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884/* end confdefs.h.  */
21885Does cpp preserve   "whitespace"?
21886_ACEOF
21887if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
21888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889printf "%s\n" "no" >&6; }
21890else
21891	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
21892		TRADITIONALCPPFLAGS="-traditional"
21893		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21894		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895printf "%s\n" "yes" >&6; }
21896	else
21897		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
21898	fi
21899fi
21900rm -f conftest.$ac_ext
21901
21902
21903
21904
21905
21906# Preserves the interface, should it be implemented later
21907
21908
21909
21910# Check whether --with-perl was given.
21911if test ${with_perl+y}
21912then :
21913  withval=$with_perl; use_perl=$withval
21914else case e in #(
21915  e) use_perl=auto ;;
21916esac
21917fi
21918
21919
21920
21921if test "x$use_perl" = x"auto"; then
21922   # Extract the first word of "perl", so it can be a program name with args.
21923set dummy perl; ac_word=$2
21924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21925printf %s "checking for $ac_word... " >&6; }
21926if test ${ac_cv_path_PERL+y}
21927then :
21928  printf %s "(cached) " >&6
21929else case e in #(
21930  e) case $PERL in
21931  [\\/]* | ?:[\\/]*)
21932  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
21933  ;;
21934  *)
21935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21936for as_dir in $PATH
21937do
21938  IFS=$as_save_IFS
21939  case $as_dir in #(((
21940    '') as_dir=./ ;;
21941    */) ;;
21942    *) as_dir=$as_dir/ ;;
21943  esac
21944    for ac_exec_ext in '' $ac_executable_extensions; do
21945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21946    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
21947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21948    break 2
21949  fi
21950done
21951  done
21952IFS=$as_save_IFS
21953
21954  ;;
21955esac ;;
21956esac
21957fi
21958PERL=$ac_cv_path_PERL
21959if test -n "$PERL"; then
21960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
21961printf "%s\n" "$PERL" >&6; }
21962else
21963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964printf "%s\n" "no" >&6; }
21965fi
21966
21967
21968   if test "x$PERL" = "x"; then
21969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
21970printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
21971	have_perl=no
21972   else
21973        have_perl=yes
21974   fi
21975elif test "x$use_perl" = x"yes" ; then
21976   # Extract the first word of "perl", so it can be a program name with args.
21977set dummy perl; ac_word=$2
21978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21979printf %s "checking for $ac_word... " >&6; }
21980if test ${ac_cv_path_PERL+y}
21981then :
21982  printf %s "(cached) " >&6
21983else case e in #(
21984  e) case $PERL in
21985  [\\/]* | ?:[\\/]*)
21986  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
21987  ;;
21988  *)
21989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21990for as_dir in $PATH
21991do
21992  IFS=$as_save_IFS
21993  case $as_dir in #(((
21994    '') as_dir=./ ;;
21995    */) ;;
21996    *) as_dir=$as_dir/ ;;
21997  esac
21998    for ac_exec_ext in '' $ac_executable_extensions; do
21999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22000    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
22001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22002    break 2
22003  fi
22004done
22005  done
22006IFS=$as_save_IFS
22007
22008  ;;
22009esac ;;
22010esac
22011fi
22012PERL=$ac_cv_path_PERL
22013if test -n "$PERL"; then
22014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22015printf "%s\n" "$PERL" >&6; }
22016else
22017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018printf "%s\n" "no" >&6; }
22019fi
22020
22021
22022   if test "x$PERL" = "x"; then
22023        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
22024   fi
22025   have_perl=yes
22026elif test "x$use_perl" = x"no" ; then
22027   if test "x$PERL" != "x"; then
22028      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
22029printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
22030   fi
22031   have_perl=no
22032else
22033   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
22034fi
22035
22036 if test "$have_perl" = yes; then
22037  HAVE_PERL_TRUE=
22038  HAVE_PERL_FALSE='#'
22039else
22040  HAVE_PERL_TRUE='#'
22041  HAVE_PERL_FALSE=
22042fi
22043
22044
22045
22046# Required when PKG_CHECK_MODULES called within an if statement
22047
22048
22049
22050
22051
22052
22053
22054if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22055	if test -n "$ac_tool_prefix"; then
22056  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22057set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22059printf %s "checking for $ac_word... " >&6; }
22060if test ${ac_cv_path_PKG_CONFIG+y}
22061then :
22062  printf %s "(cached) " >&6
22063else case e in #(
22064  e) case $PKG_CONFIG in
22065  [\\/]* | ?:[\\/]*)
22066  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22067  ;;
22068  *)
22069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22070for as_dir in $PATH
22071do
22072  IFS=$as_save_IFS
22073  case $as_dir in #(((
22074    '') as_dir=./ ;;
22075    */) ;;
22076    *) as_dir=$as_dir/ ;;
22077  esac
22078    for ac_exec_ext in '' $ac_executable_extensions; do
22079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22080    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22082    break 2
22083  fi
22084done
22085  done
22086IFS=$as_save_IFS
22087
22088  ;;
22089esac ;;
22090esac
22091fi
22092PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22093if test -n "$PKG_CONFIG"; then
22094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22095printf "%s\n" "$PKG_CONFIG" >&6; }
22096else
22097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22098printf "%s\n" "no" >&6; }
22099fi
22100
22101
22102fi
22103if test -z "$ac_cv_path_PKG_CONFIG"; then
22104  ac_pt_PKG_CONFIG=$PKG_CONFIG
22105  # Extract the first word of "pkg-config", so it can be a program name with args.
22106set dummy pkg-config; ac_word=$2
22107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22108printf %s "checking for $ac_word... " >&6; }
22109if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22110then :
22111  printf %s "(cached) " >&6
22112else case e in #(
22113  e) case $ac_pt_PKG_CONFIG in
22114  [\\/]* | ?:[\\/]*)
22115  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22116  ;;
22117  *)
22118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22119for as_dir in $PATH
22120do
22121  IFS=$as_save_IFS
22122  case $as_dir in #(((
22123    '') as_dir=./ ;;
22124    */) ;;
22125    *) as_dir=$as_dir/ ;;
22126  esac
22127    for ac_exec_ext in '' $ac_executable_extensions; do
22128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22129    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22130    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22131    break 2
22132  fi
22133done
22134  done
22135IFS=$as_save_IFS
22136
22137  ;;
22138esac ;;
22139esac
22140fi
22141ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22142if test -n "$ac_pt_PKG_CONFIG"; then
22143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22144printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22145else
22146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22147printf "%s\n" "no" >&6; }
22148fi
22149
22150  if test "x$ac_pt_PKG_CONFIG" = x; then
22151    PKG_CONFIG=""
22152  else
22153    case $cross_compiling:$ac_tool_warned in
22154yes:)
22155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22157ac_tool_warned=yes ;;
22158esac
22159    PKG_CONFIG=$ac_pt_PKG_CONFIG
22160  fi
22161else
22162  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22163fi
22164
22165fi
22166if test -n "$PKG_CONFIG"; then
22167	_pkg_min_version=0.9.0
22168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22169printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22170	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22172printf "%s\n" "yes" >&6; }
22173	else
22174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175printf "%s\n" "no" >&6; }
22176		PKG_CONFIG=""
22177	fi
22178fi
22179
22180if test x"$CC_FOR_BUILD" = x; then
22181	if test x"$cross_compiling" = xyes; then
22182	       for ac_prog in gcc cc
22183do
22184  # Extract the first word of "$ac_prog", so it can be a program name with args.
22185set dummy $ac_prog; ac_word=$2
22186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22187printf %s "checking for $ac_word... " >&6; }
22188if test ${ac_cv_prog_CC_FOR_BUILD+y}
22189then :
22190  printf %s "(cached) " >&6
22191else case e in #(
22192  e) if test -n "$CC_FOR_BUILD"; then
22193  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
22194else
22195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22196for as_dir in $PATH
22197do
22198  IFS=$as_save_IFS
22199  case $as_dir in #(((
22200    '') as_dir=./ ;;
22201    */) ;;
22202    *) as_dir=$as_dir/ ;;
22203  esac
22204    for ac_exec_ext in '' $ac_executable_extensions; do
22205  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22206    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
22207    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22208    break 2
22209  fi
22210done
22211  done
22212IFS=$as_save_IFS
22213
22214fi ;;
22215esac
22216fi
22217CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
22218if test -n "$CC_FOR_BUILD"; then
22219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
22220printf "%s\n" "$CC_FOR_BUILD" >&6; }
22221else
22222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223printf "%s\n" "no" >&6; }
22224fi
22225
22226
22227  test -n "$CC_FOR_BUILD" && break
22228done
22229
22230	else
22231	       CC_FOR_BUILD="$CC"
22232	fi
22233fi
22234
22235
22236if test x"$CPPFLAGS_FOR_BUILD" = x; then
22237	if test ! x"$cross_compiling" = xyes; then
22238		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
22239	fi
22240fi
22241
22242
22243if test x"$CFLAGS_FOR_BUILD" = x; then
22244	if test ! x"$cross_compiling" = xyes; then
22245		CFLAGS_FOR_BUILD=${CFLAGS}
22246	fi
22247fi
22248
22249
22250if test x"$LDFLAGS_FOR_BUILD" = x; then
22251	if test ! x"$cross_compiling" = xyes; then
22252		LDFLAGS_FOR_BUILD=${LDFLAGS}
22253	fi
22254fi
22255
22256
22257if test x"$EXEEXT_FOR_BUILD" = x; then
22258	if test x"$cross_compiling" = xno; then
22259		EXEEXT_FOR_BUILD=${EXEEXT}
22260	fi
22261	# If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
22262fi
22263
22264
22265# Checks for pkg-config packages
22266
22267# Always required
22268X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
22269X11_EXTRA_DEPS="xcb >= 1.11.1"
22270
22271
22272
22273
22274
22275
22276
22277
22278if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22279	if test -n "$ac_tool_prefix"; then
22280  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22281set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22283printf %s "checking for $ac_word... " >&6; }
22284if test ${ac_cv_path_PKG_CONFIG+y}
22285then :
22286  printf %s "(cached) " >&6
22287else case e in #(
22288  e) case $PKG_CONFIG in
22289  [\\/]* | ?:[\\/]*)
22290  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22291  ;;
22292  *)
22293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294for as_dir in $PATH
22295do
22296  IFS=$as_save_IFS
22297  case $as_dir in #(((
22298    '') as_dir=./ ;;
22299    */) ;;
22300    *) as_dir=$as_dir/ ;;
22301  esac
22302    for ac_exec_ext in '' $ac_executable_extensions; do
22303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22304    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22306    break 2
22307  fi
22308done
22309  done
22310IFS=$as_save_IFS
22311
22312  ;;
22313esac ;;
22314esac
22315fi
22316PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22317if test -n "$PKG_CONFIG"; then
22318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22319printf "%s\n" "$PKG_CONFIG" >&6; }
22320else
22321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22322printf "%s\n" "no" >&6; }
22323fi
22324
22325
22326fi
22327if test -z "$ac_cv_path_PKG_CONFIG"; then
22328  ac_pt_PKG_CONFIG=$PKG_CONFIG
22329  # Extract the first word of "pkg-config", so it can be a program name with args.
22330set dummy pkg-config; ac_word=$2
22331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22332printf %s "checking for $ac_word... " >&6; }
22333if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22334then :
22335  printf %s "(cached) " >&6
22336else case e in #(
22337  e) case $ac_pt_PKG_CONFIG in
22338  [\\/]* | ?:[\\/]*)
22339  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22340  ;;
22341  *)
22342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22343for as_dir in $PATH
22344do
22345  IFS=$as_save_IFS
22346  case $as_dir in #(((
22347    '') as_dir=./ ;;
22348    */) ;;
22349    *) as_dir=$as_dir/ ;;
22350  esac
22351    for ac_exec_ext in '' $ac_executable_extensions; do
22352  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22353    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22355    break 2
22356  fi
22357done
22358  done
22359IFS=$as_save_IFS
22360
22361  ;;
22362esac ;;
22363esac
22364fi
22365ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22366if test -n "$ac_pt_PKG_CONFIG"; then
22367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22368printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22369else
22370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22371printf "%s\n" "no" >&6; }
22372fi
22373
22374  if test "x$ac_pt_PKG_CONFIG" = x; then
22375    PKG_CONFIG=""
22376  else
22377    case $cross_compiling:$ac_tool_warned in
22378yes:)
22379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22381ac_tool_warned=yes ;;
22382esac
22383    PKG_CONFIG=$ac_pt_PKG_CONFIG
22384  fi
22385else
22386  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22387fi
22388
22389fi
22390if test -n "$PKG_CONFIG"; then
22391	_pkg_min_version=0.9.0
22392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22393printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22394	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22396printf "%s\n" "yes" >&6; }
22397	else
22398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22399printf "%s\n" "no" >&6; }
22400		PKG_CONFIG=""
22401	fi
22402fi
22403
22404
22405
22406# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
22407# was not expanded, since libX11 with no transport types is rather useless.
22408#
22409# If you're seeing an error here, be sure you installed the lib/xtrans module
22410# first and if it's not in the default location, that you set the ACLOCAL
22411# environment variable to find it, such as:
22412#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
22413
22414
22415# Transport selection macro from xtrans.m4
22416
22417
22418 case $host_os in
22419	mingw*)	unixdef="no"   ;;
22420	*)	unixdef="yes"  ;;
22421 esac
22422 # Check whether --enable-unix-transport was given.
22423if test ${enable_unix_transport+y}
22424then :
22425  enableval=$enable_unix_transport; UNIXCONN=$enableval
22426else case e in #(
22427  e) UNIXCONN=$unixdef ;;
22428esac
22429fi
22430
22431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
22432printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
22433 if test "$UNIXCONN" = "yes"; then
22434
22435printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
22436
22437 fi
22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
22439printf "%s\n" "$UNIXCONN" >&6; }
22440 # Check whether --enable-tcp-transport was given.
22441if test ${enable_tcp_transport+y}
22442then :
22443  enableval=$enable_tcp_transport; TCPCONN=$enableval
22444else case e in #(
22445  e) TCPCONN=yes ;;
22446esac
22447fi
22448
22449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
22450printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
22451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
22452printf "%s\n" "$TCPCONN" >&6; }
22453 if test "$TCPCONN" = "yes"; then
22454
22455printf "%s\n" "#define TCPCONN 1" >>confdefs.h
22456
22457
22458 # SVR4 hides these in libraries other than libc
22459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
22460printf %s "checking for library containing socket... " >&6; }
22461if test ${ac_cv_search_socket+y}
22462then :
22463  printf %s "(cached) " >&6
22464else case e in #(
22465  e) ac_func_search_save_LIBS=$LIBS
22466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467/* end confdefs.h.  */
22468
22469/* Override any GCC internal prototype to avoid an error.
22470   Use char because int might match the return type of a GCC
22471   builtin and then its argument prototype would still apply.
22472   The 'extern "C"' is for builds by C++ compilers;
22473   although this is not generally supported in C code supporting it here
22474   has little cost and some practical benefit (sr 110532).  */
22475#ifdef __cplusplus
22476extern "C"
22477#endif
22478char socket (void);
22479int
22480main (void)
22481{
22482return socket ();
22483  ;
22484  return 0;
22485}
22486_ACEOF
22487for ac_lib in '' socket
22488do
22489  if test -z "$ac_lib"; then
22490    ac_res="none required"
22491  else
22492    ac_res=-l$ac_lib
22493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22494  fi
22495  if ac_fn_c_try_link "$LINENO"
22496then :
22497  ac_cv_search_socket=$ac_res
22498fi
22499rm -f core conftest.err conftest.$ac_objext conftest.beam \
22500    conftest$ac_exeext
22501  if test ${ac_cv_search_socket+y}
22502then :
22503  break
22504fi
22505done
22506if test ${ac_cv_search_socket+y}
22507then :
22508
22509else case e in #(
22510  e) ac_cv_search_socket=no ;;
22511esac
22512fi
22513rm conftest.$ac_ext
22514LIBS=$ac_func_search_save_LIBS ;;
22515esac
22516fi
22517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22518printf "%s\n" "$ac_cv_search_socket" >&6; }
22519ac_res=$ac_cv_search_socket
22520if test "$ac_res" != no
22521then :
22522  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22523
22524fi
22525
22526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
22527printf %s "checking for library containing gethostbyname... " >&6; }
22528if test ${ac_cv_search_gethostbyname+y}
22529then :
22530  printf %s "(cached) " >&6
22531else case e in #(
22532  e) ac_func_search_save_LIBS=$LIBS
22533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534/* end confdefs.h.  */
22535
22536/* Override any GCC internal prototype to avoid an error.
22537   Use char because int might match the return type of a GCC
22538   builtin and then its argument prototype would still apply.
22539   The 'extern "C"' is for builds by C++ compilers;
22540   although this is not generally supported in C code supporting it here
22541   has little cost and some practical benefit (sr 110532).  */
22542#ifdef __cplusplus
22543extern "C"
22544#endif
22545char gethostbyname (void);
22546int
22547main (void)
22548{
22549return gethostbyname ();
22550  ;
22551  return 0;
22552}
22553_ACEOF
22554for ac_lib in '' nsl
22555do
22556  if test -z "$ac_lib"; then
22557    ac_res="none required"
22558  else
22559    ac_res=-l$ac_lib
22560    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22561  fi
22562  if ac_fn_c_try_link "$LINENO"
22563then :
22564  ac_cv_search_gethostbyname=$ac_res
22565fi
22566rm -f core conftest.err conftest.$ac_objext conftest.beam \
22567    conftest$ac_exeext
22568  if test ${ac_cv_search_gethostbyname+y}
22569then :
22570  break
22571fi
22572done
22573if test ${ac_cv_search_gethostbyname+y}
22574then :
22575
22576else case e in #(
22577  e) ac_cv_search_gethostbyname=no ;;
22578esac
22579fi
22580rm conftest.$ac_ext
22581LIBS=$ac_func_search_save_LIBS ;;
22582esac
22583fi
22584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
22585printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
22586ac_res=$ac_cv_search_gethostbyname
22587if test "$ac_res" != no
22588then :
22589  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22590
22591fi
22592
22593 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
22594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
22595printf %s "checking for main in -lws2_32... " >&6; }
22596if test ${ac_cv_lib_ws2_32_main+y}
22597then :
22598  printf %s "(cached) " >&6
22599else case e in #(
22600  e) ac_check_lib_save_LIBS=$LIBS
22601LIBS="-lws2_32  $LIBS"
22602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603/* end confdefs.h.  */
22604
22605
22606int
22607main (void)
22608{
22609return main ();
22610  ;
22611  return 0;
22612}
22613_ACEOF
22614if ac_fn_c_try_link "$LINENO"
22615then :
22616  ac_cv_lib_ws2_32_main=yes
22617else case e in #(
22618  e) ac_cv_lib_ws2_32_main=no ;;
22619esac
22620fi
22621rm -f core conftest.err conftest.$ac_objext conftest.beam \
22622    conftest$ac_exeext conftest.$ac_ext
22623LIBS=$ac_check_lib_save_LIBS ;;
22624esac
22625fi
22626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
22627printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
22628if test "x$ac_cv_lib_ws2_32_main" = xyes
22629then :
22630  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
22631
22632  LIBS="-lws2_32 $LIBS"
22633
22634fi
22635
22636 fi
22637
22638 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
22639 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
22640if test "x$ac_cv_func_getaddrinfo" = xyes
22641then :
22642  printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
22643
22644fi
22645ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
22646if test "x$ac_cv_func_inet_ntop" = xyes
22647then :
22648  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
22649
22650fi
22651
22652
22653 # Check whether --enable-ipv6 was given.
22654if test ${enable_ipv6+y}
22655then :
22656  enableval=$enable_ipv6; IPV6CONN=$enableval
22657else case e in #(
22658  e) IPV6CONN=$ac_cv_func_getaddrinfo ;;
22659esac
22660fi
22661
22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
22663printf %s "checking if IPv6 support should be built... " >&6; }
22664 if test "$IPV6CONN" = "yes"; then
22665
22666printf "%s\n" "#define IPv6 1" >>confdefs.h
22667
22668 fi
22669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
22670printf "%s\n" "$IPV6CONN" >&6; }
22671
22672 # 4.3BSD-Reno added a new member to struct sockaddr_in
22673 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
22674#include <sys/types.h>
22675#include <sys/socket.h>
22676#include <netinet/in.h>
22677
22678"
22679if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
22680then :
22681
22682printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
22683
22684fi
22685
22686
22687 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
22688 # and added a type defined to be large enough to hold any sockaddr format.
22689 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22690$ac_includes_default
22691#include <sys/socket.h>
22692
22693"
22694if test "x$ac_cv_type_socklen_t" = xyes
22695then :
22696
22697printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
22698
22699
22700fi
22701ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
22702$ac_includes_default
22703#include <sys/socket.h>
22704
22705"
22706if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
22707then :
22708
22709printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
22710
22711
22712fi
22713
22714
22715 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
22716 # _XOPEN_SOURCE to get it (such as on Solaris)
22717 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
22718$ac_includes_default
22719#include <sys/socket.h>
22720
22721"
22722if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
22723then :
22724
22725fi
22726
22727 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
22728 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
22729     unset ac_cv_member_struct_msghdr_msg_control
22730     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
22731printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
22732     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
22733#define _XOPEN_SOURCE 600
22734$ac_includes_default
22735#include <sys/socket.h>
22736
22737"
22738if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
22739then :
22740
22741printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
22742
22743
22744fi
22745
22746 fi
22747 # If that didn't work, fall back to XPG5/UNIX98 with C89
22748 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
22749     unset ac_cv_member_struct_msghdr_msg_control
22750     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
22751printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
22752     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
22753#define _XOPEN_SOURCE 500
22754$ac_includes_default
22755#include <sys/socket.h>
22756
22757"
22758if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
22759then :
22760
22761printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
22762
22763
22764fi
22765
22766 fi
22767
22768
22769
22770 fi
22771 case $host_os in
22772	solaris*)		localdef="yes" ;;
22773	*)			localdef="no"  ;;
22774 esac
22775 # Check whether --enable-local-transport was given.
22776if test ${enable_local_transport+y}
22777then :
22778  enableval=$enable_local_transport; LOCALCONN=$enableval
22779else case e in #(
22780  e) LOCALCONN=$localdef ;;
22781esac
22782fi
22783
22784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
22785printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
22786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
22787printf "%s\n" "$LOCALCONN" >&6; }
22788 if test "$LOCALCONN" = "yes"; then
22789
22790printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
22791
22792 fi
22793
22794 # Other functions Xtrans may need
22795 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22796if test "x$ac_cv_func_strcasecmp" = xyes
22797then :
22798  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
22799
22800fi
22801ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22802if test "x$ac_cv_func_strlcpy" = xyes
22803then :
22804  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
22805
22806fi
22807
22808
22809
22810
22811# Check for dlopen
22812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22813printf %s "checking for library containing dlopen... " >&6; }
22814if test ${ac_cv_search_dlopen+y}
22815then :
22816  printf %s "(cached) " >&6
22817else case e in #(
22818  e) ac_func_search_save_LIBS=$LIBS
22819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h.  */
22821
22822/* Override any GCC internal prototype to avoid an error.
22823   Use char because int might match the return type of a GCC
22824   builtin and then its argument prototype would still apply.
22825   The 'extern "C"' is for builds by C++ compilers;
22826   although this is not generally supported in C code supporting it here
22827   has little cost and some practical benefit (sr 110532).  */
22828#ifdef __cplusplus
22829extern "C"
22830#endif
22831char dlopen (void);
22832int
22833main (void)
22834{
22835return dlopen ();
22836  ;
22837  return 0;
22838}
22839_ACEOF
22840for ac_lib in '' dl svld
22841do
22842  if test -z "$ac_lib"; then
22843    ac_res="none required"
22844  else
22845    ac_res=-l$ac_lib
22846    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22847  fi
22848  if ac_fn_c_try_link "$LINENO"
22849then :
22850  ac_cv_search_dlopen=$ac_res
22851fi
22852rm -f core conftest.err conftest.$ac_objext conftest.beam \
22853    conftest$ac_exeext
22854  if test ${ac_cv_search_dlopen+y}
22855then :
22856  break
22857fi
22858done
22859if test ${ac_cv_search_dlopen+y}
22860then :
22861
22862else case e in #(
22863  e) ac_cv_search_dlopen=no ;;
22864esac
22865fi
22866rm conftest.$ac_ext
22867LIBS=$ac_func_search_save_LIBS ;;
22868esac
22869fi
22870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22871printf "%s\n" "$ac_cv_search_dlopen" >&6; }
22872ac_res=$ac_cv_search_dlopen
22873if test "$ac_res" != no
22874then :
22875  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22876
22877fi
22878
22879if test "x$ac_cv_search_dlopen" != xno; then
22880
22881printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
22882
22883	ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
22884if test "x$ac_cv_header_dlfcn_h" = xyes
22885then :
22886  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
22887
22888fi
22889
22890fi
22891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
22892printf %s "checking if run-time linking is supported... " >&6; }
22893if test "x$ac_cv_header_dlfcn_h" = xyes; then
22894	HAVE_LOADABLE_MODULES=yes
22895else
22896	HAVE_LOADABLE_MODULES=no
22897fi
22898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
22899printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
22900
22901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
22902printf %s "checking if loadable i18n module support should be enabled... " >&6; }
22903# Check whether --enable-loadable-i18n was given.
22904if test ${enable_loadable_i18n+y}
22905then :
22906  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
22907else case e in #(
22908  e) XLIB_LOADABLE_I18N="no" ;;
22909esac
22910fi
22911
22912if test x$XLIB_LOADABLE_I18N = xyes; then
22913	if test x$HAVE_LOADABLE_MODULES = xno; then
22914		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
22915	fi
22916
22917printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
22918
22919	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
22920
22921fi
22922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
22923printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
22924
22925 if test x$XLIB_LOADABLE_I18N = xyes; then
22926  XLIB_LOADABLE_I18N_TRUE=
22927  XLIB_LOADABLE_I18N_FALSE='#'
22928else
22929  XLIB_LOADABLE_I18N_TRUE='#'
22930  XLIB_LOADABLE_I18N_FALSE=
22931fi
22932
22933
22934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
22935printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
22936# Check whether --enable-loadable-xcursor was given.
22937if test ${enable_loadable_xcursor+y}
22938then :
22939  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
22940else case e in #(
22941  e) XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES ;;
22942esac
22943fi
22944
22945if test x$XLIB_LOADABLE_XCURSOR = xyes; then
22946
22947printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
22948
22949fi
22950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
22951printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
22952
22953# Check whether --enable-thread-safety-constructor was given.
22954if test ${enable_thread_safety_constructor+y}
22955then :
22956  enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
22957else case e in #(
22958  e) USE_THREAD_SAFETY_CONSTRUCTOR="yes" ;;
22959esac
22960fi
22961
22962if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
22963
22964printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
22965
22966fi
22967
22968# Checks for header files.
22969ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
22970if test "x$ac_cv_header_sys_filio_h" = xyes
22971then :
22972  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
22973
22974fi
22975ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22976if test "x$ac_cv_header_sys_select_h" = xyes
22977then :
22978  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
22979
22980fi
22981ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
22982if test "x$ac_cv_header_sys_ioctl_h" = xyes
22983then :
22984  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
22985
22986fi
22987ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22988if test "x$ac_cv_header_sys_socket_h" = xyes
22989then :
22990  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
22991
22992fi
22993
22994
22995# Checks for typedefs, structures, and compiler characteristics.
22996
22997
22998
22999    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
23000printf %s "checking for __builtin_popcountl... " >&6; }
23001if test ${ax_cv_have___builtin_popcountl+y}
23002then :
23003  printf %s "(cached) " >&6
23004else case e in #(
23005  e)
23006        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007/* end confdefs.h.  */
23008
23009int
23010main (void)
23011{
23012
23013            __builtin_popcountl(0)
23014
23015  ;
23016  return 0;
23017}
23018_ACEOF
23019if ac_fn_c_try_link "$LINENO"
23020then :
23021  ax_cv_have___builtin_popcountl=yes
23022else case e in #(
23023  e) ax_cv_have___builtin_popcountl=no ;;
23024esac
23025fi
23026rm -f core conftest.err conftest.$ac_objext conftest.beam \
23027    conftest$ac_exeext conftest.$ac_ext
23028     ;;
23029esac
23030fi
23031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
23032printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
23033
23034    if test yes = $ax_cv_have___builtin_popcountl
23035then :
23036
23037printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
23038
23039fi
23040
23041
23042
23043
23044# Checks for library functions.
23045ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
23046if test "x$ac_cv_func_strtol" = xyes
23047then :
23048  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
23049
23050fi
23051ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
23052if test "x$ac_cv_func_seteuid" = xyes
23053then :
23054  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
23055
23056fi
23057
23058ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
23059if test "x$ac_cv_func_reallocarray" = xyes
23060then :
23061  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
23062
23063else case e in #(
23064  e) case " $LIBOBJS " in
23065  *" reallocarray.$ac_objext "* ) ;;
23066  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
23067 ;;
23068esac
23069 ;;
23070esac
23071fi
23072
23073# Used in lcFile.c (see also --enable-xlocaledir settings below)
23074XLOCALEDIR_IS_SAFE="no"
23075ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
23076if test "x$ac_cv_have_decl_issetugid" = xyes
23077then :
23078
23079fi
23080ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
23081if test "x$ac_cv_func_issetugid" = xyes
23082then :
23083
23084fi
23085
23086if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
23087    XLOCALEDIR_IS_SAFE="yes"
23088
23089printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
23090
23091fi
23092ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
23093if test "x$ac_cv_func_getresuid" = xyes
23094then :
23095  XLOCALEDIR_IS_SAFE="yes"
23096
23097printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
23098
23099fi
23100
23101# Used in Font.c
23102ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
23103if test "x$ac_cv_func_shmat" = xyes
23104then :
23105
23106printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
23107
23108fi
23109
23110
23111# Checks for system services
23112# AC_PATH_XTRA
23113
23114# arch specific things
23115WCHAR32="1"
23116case $host_os in
23117  os2*) os2="true" ; WCHAR32="0" ;;
23118  *) ;;
23119esac
23120
23121
23122 if test x$os2 = xtrue; then
23123  OS2_TRUE=
23124  OS2_FALSE='#'
23125else
23126  OS2_TRUE='#'
23127  OS2_FALSE=
23128fi
23129
23130
23131
23132# Check whether --with-launchd was given.
23133if test ${with_launchd+y}
23134then :
23135  withval=$with_launchd; LAUNCHD=$withval
23136else case e in #(
23137  e) LAUNCHD=auto ;;
23138esac
23139fi
23140
23141if test "x$LAUNCHD" = xauto; then
23142	unset LAUNCHD
23143	# Extract the first word of "launchd", so it can be a program name with args.
23144set dummy launchd; ac_word=$2
23145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23146printf %s "checking for $ac_word... " >&6; }
23147if test ${ac_cv_prog_LAUNCHD+y}
23148then :
23149  printf %s "(cached) " >&6
23150else case e in #(
23151  e) if test -n "$LAUNCHD"; then
23152  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
23153else
23154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23155for as_dir in $PATH$PATH_SEPARATOR/sbin
23156do
23157  IFS=$as_save_IFS
23158  case $as_dir in #(((
23159    '') as_dir=./ ;;
23160    */) ;;
23161    *) as_dir=$as_dir/ ;;
23162  esac
23163    for ac_exec_ext in '' $ac_executable_extensions; do
23164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23165    ac_cv_prog_LAUNCHD="yes"
23166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23167    break 2
23168  fi
23169done
23170  done
23171IFS=$as_save_IFS
23172
23173  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
23174fi ;;
23175esac
23176fi
23177LAUNCHD=$ac_cv_prog_LAUNCHD
23178if test -n "$LAUNCHD"; then
23179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
23180printf "%s\n" "$LAUNCHD" >&6; }
23181else
23182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23183printf "%s\n" "no" >&6; }
23184fi
23185
23186
23187fi
23188
23189if test "x$LAUNCHD" = xyes ; then
23190
23191printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
23192
23193
23194printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
23195
23196fi
23197
23198# Check whether --enable-xthreads was given.
23199if test ${enable_xthreads+y}
23200then :
23201  enableval=$enable_xthreads; xthreads=$enableval
23202else case e in #(
23203  e) xthreads=yes ;;
23204esac
23205fi
23206
23207
23208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
23209printf %s "checking for getpwuid_r in -lc... " >&6; }
23210if test ${ac_cv_lib_c_getpwuid_r+y}
23211then :
23212  printf %s "(cached) " >&6
23213else case e in #(
23214  e) ac_check_lib_save_LIBS=$LIBS
23215LIBS="-lc  $LIBS"
23216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217/* end confdefs.h.  */
23218
23219/* Override any GCC internal prototype to avoid an error.
23220   Use char because int might match the return type of a GCC
23221   builtin and then its argument prototype would still apply.
23222   The 'extern "C"' is for builds by C++ compilers;
23223   although this is not generally supported in C code supporting it here
23224   has little cost and some practical benefit (sr 110532).  */
23225#ifdef __cplusplus
23226extern "C"
23227#endif
23228char getpwuid_r (void);
23229int
23230main (void)
23231{
23232return getpwuid_r ();
23233  ;
23234  return 0;
23235}
23236_ACEOF
23237if ac_fn_c_try_link "$LINENO"
23238then :
23239  ac_cv_lib_c_getpwuid_r=yes
23240else case e in #(
23241  e) ac_cv_lib_c_getpwuid_r=no ;;
23242esac
23243fi
23244rm -f core conftest.err conftest.$ac_objext conftest.beam \
23245    conftest$ac_exeext conftest.$ac_ext
23246LIBS=$ac_check_lib_save_LIBS ;;
23247esac
23248fi
23249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
23250printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
23251if test "x$ac_cv_lib_c_getpwuid_r" = xyes
23252then :
23253  mtsafeapi="yes"
23254else case e in #(
23255  e) mtsafeapi="no" ;;
23256esac
23257fi
23258
23259
23260case x$xthreads in
23261xyes)
23262
23263printf "%s\n" "#define XTHREADS 1" >>confdefs.h
23264
23265	if test x$mtsafeapi = xyes
23266	then
23267
23268printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
23269
23270	fi
23271	;;
23272*)
23273	;;
23274esac
23275
23276# XXX incomplete, please fill this in
23277if test x$xthreads = xyes ; then
23278    case $host_os in
23279    linux*|gnu*|k*bsd*-gnu)
23280        XTHREADLIB=-lpthread ;;
23281    netbsd*)
23282	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
23283	XTHREADLIB="-lpthread" ;;
23284    freebsd*)
23285        XTHREAD_CFLAGS="-D_THREAD_SAFE"
23286        XTHREADLIB="-pthread" ;;
23287    dragonfly*|openbsd*)
23288        XTHREADLIB="-pthread" ;;
23289    solaris*)
23290	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
23291    esac
23292fi
23293
23294
23295
23296if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
23297    USE_THREAD_LIBS="$XTHREADLIB"
23298else
23299    # This should be kept in sync with libxcb
23300    case $host_os in
23301    linux*|darwin*|solaris*|dragonfly*|freebsd*|netbsd*) ;;
23302         *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;;
23303    esac
23304fi
23305
23306
23307ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
23308if test "x$ac_cv_func_poll" = xyes
23309then :
23310
23311printf "%s\n" "#define USE_POLL 1" >>confdefs.h
23312
23313fi
23314
23315
23316#
23317# Find keysymdef.h
23318#
23319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
23320printf %s "checking keysym definitions... " >&6; }
23321
23322# Check whether --with-keysymdefdir was given.
23323if test ${with_keysymdefdir+y}
23324then :
23325  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
23326else case e in #(
23327  e) KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 ;;
23328esac
23329fi
23330
23331
23332if test ! -d "$KEYSYMDEFDIR"; then
23333	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
23334fi
23335
23336FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
23337for i in $FILES; do
23338    if test -f "$KEYSYMDEFDIR/$i"; then
23339            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
23340    elif test "x$i" = "xkeysymdef.h"; then
23341	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
23342    fi
23343done
23344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
23345printf "%s\n" "$KEYSYMDEFS" >&6; }
23346
23347
23348# Check whether --enable-xcms was given.
23349if test ${enable_xcms+y}
23350then :
23351  enableval=$enable_xcms; XCMS=$enableval
23352else case e in #(
23353  e) XCMS=yes ;;
23354esac
23355fi
23356
23357 if test x$XCMS = xyes ; then
23358  XCMS_TRUE=
23359  XCMS_FALSE='#'
23360else
23361  XCMS_TRUE='#'
23362  XCMS_FALSE=
23363fi
23364
23365if test x"$XCMS" = "xyes"; then
23366
23367printf "%s\n" "#define XCMS 1" >>confdefs.h
23368
23369fi
23370
23371# Check whether --enable-xlocale was given.
23372if test ${enable_xlocale+y}
23373then :
23374  enableval=$enable_xlocale; XLOCALE=$enableval
23375else case e in #(
23376  e) XLOCALE=yes ;;
23377esac
23378fi
23379
23380
23381 if  test x$XLOCALE = xyes ; then
23382  XLOCALE_TRUE=
23383  XLOCALE_FALSE='#'
23384else
23385  XLOCALE_TRUE='#'
23386  XLOCALE_FALSE=
23387fi
23388
23389if test x"$XLOCALE" = "xyes"; then
23390
23391printf "%s\n" "#define XLOCALE 1" >>confdefs.h
23392
23393fi
23394
23395# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
23396# don't have either issetugid() or getresuid(), and you need to protect
23397# clients that are setgid or setuid to an id other than 0.
23398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
23399printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
23400# Check whether --enable-xlocaledir was given.
23401if test ${enable_xlocaledir+y}
23402then :
23403  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
23404else case e in #(
23405  e) ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE ;;
23406esac
23407fi
23408
23409if test "x$ENABLE_XLOCALEDIR" = "xno"; then
23410
23411printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
23412
23413fi
23414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
23415printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
23416
23417# Check whether --enable-xf86bigfont was given.
23418if test ${enable_xf86bigfont+y}
23419then :
23420  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23421else case e in #(
23422  e) XF86BIGFONT="yes" ;;
23423esac
23424fi
23425
23426if test "x$XF86BIGFONT" = "xyes"; then
23427
23428pkg_failed=no
23429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
23430printf %s "checking for BIGFONT... " >&6; }
23431
23432if test -n "$BIGFONT_CFLAGS"; then
23433    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
23434 elif test -n "$PKG_CONFIG"; then
23435    if test -n "$PKG_CONFIG" && \
23436    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
23437  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
23438  ac_status=$?
23439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23440  test $ac_status = 0; }; then
23441  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
23442		      test "x$?" != "x0" && pkg_failed=yes
23443else
23444  pkg_failed=yes
23445fi
23446 else
23447    pkg_failed=untried
23448fi
23449if test -n "$BIGFONT_LIBS"; then
23450    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
23451 elif test -n "$PKG_CONFIG"; then
23452    if test -n "$PKG_CONFIG" && \
23453    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
23454  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
23455  ac_status=$?
23456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23457  test $ac_status = 0; }; then
23458  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
23459		      test "x$?" != "x0" && pkg_failed=yes
23460else
23461  pkg_failed=yes
23462fi
23463 else
23464    pkg_failed=untried
23465fi
23466
23467
23468
23469if test $pkg_failed = yes; then
23470   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23471printf "%s\n" "no" >&6; }
23472
23473if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23474        _pkg_short_errors_supported=yes
23475else
23476        _pkg_short_errors_supported=no
23477fi
23478        if test $_pkg_short_errors_supported = yes; then
23479	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
23480        else
23481	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
23482        fi
23483	# Put the nasty error message in config.log where it belongs
23484	echo "$BIGFONT_PKG_ERRORS" >&5
23485
23486	XF86BIGFONT="no"
23487elif test $pkg_failed = untried; then
23488     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23489printf "%s\n" "no" >&6; }
23490	XF86BIGFONT="no"
23491else
23492	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
23493	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
23494        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23495printf "%s\n" "yes" >&6; }
23496
23497printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
23498
23499fi
23500fi
23501
23502# Check whether --enable-xkb was given.
23503if test ${enable_xkb+y}
23504then :
23505  enableval=$enable_xkb; XKB=$enableval
23506else case e in #(
23507  e) XKB=yes ;;
23508esac
23509fi
23510
23511
23512 if  test x$XKB = xyes ; then
23513  XKB_TRUE=
23514  XKB_FALSE='#'
23515else
23516  XKB_TRUE='#'
23517  XKB_FALSE=
23518fi
23519
23520if test x"$XKB" = "xyes"; then
23521   XKBPROTO_REQUIRES="kbproto"
23522   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
23523
23524printf "%s\n" "#define XKB 1" >>confdefs.h
23525
23526else
23527   XKBPROTO_REQUIRES=""
23528fi
23529
23530
23531
23532ac_func=
23533for ac_item in $ac_func_c_list
23534do
23535  if test $ac_func; then
23536    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
23537    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
23538      echo "#define $ac_item 1" >> confdefs.h
23539    fi
23540    ac_func=
23541  else
23542    ac_func=$ac_item
23543  fi
23544done
23545
23546
23547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23548printf %s "checking for working mmap... " >&6; }
23549if test ${ac_cv_func_mmap_fixed_mapped+y}
23550then :
23551  printf %s "(cached) " >&6
23552else case e in #(
23553  e) if test "$cross_compiling" = yes
23554then :
23555  case "$host_os" in # ((
23556			  # Guess yes on platforms where we know the result.
23557		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
23558			  # If we don't know, assume the worst.
23559		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
23560		esac
23561else case e in #(
23562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563/* end confdefs.h.  */
23564$ac_includes_default
23565/* malloc might have been renamed as rpl_malloc. */
23566#undef malloc
23567
23568/* Thanks to Mike Haertel and Jim Avera for this test.
23569   Here is a matrix of mmap possibilities:
23570	mmap private not fixed
23571	mmap private fixed at somewhere currently unmapped
23572	mmap private fixed at somewhere already mapped
23573	mmap shared not fixed
23574	mmap shared fixed at somewhere currently unmapped
23575	mmap shared fixed at somewhere already mapped
23576   For private mappings, we should verify that changes cannot be read()
23577   back from the file, nor mmap's back from the file at a different
23578   address.  (There have been systems where private was not correctly
23579   implemented like the infamous i386 svr4.0, and systems where the
23580   VM page cache was not coherent with the file system buffer cache
23581   like early versions of FreeBSD and possibly contemporary NetBSD.)
23582   For shared mappings, we should conversely verify that changes get
23583   propagated back to all the places they're supposed to be.  */
23584
23585#include <fcntl.h>
23586#include <sys/mman.h>
23587
23588#ifndef getpagesize
23589/* Prefer sysconf to the legacy getpagesize function, as getpagesize has
23590   been removed from POSIX and is limited to page sizes that fit in 'int'.  */
23591# ifdef _SC_PAGESIZE
23592#  define getpagesize() sysconf (_SC_PAGESIZE)
23593# elif defined _SC_PAGE_SIZE
23594#  define getpagesize() sysconf (_SC_PAGE_SIZE)
23595# elif HAVE_GETPAGESIZE
23596int getpagesize ();
23597# else
23598#  ifdef HAVE_SYS_PARAM_H
23599#   include <sys/param.h>
23600#   ifdef EXEC_PAGESIZE
23601#    define getpagesize() EXEC_PAGESIZE
23602#   else /* no EXEC_PAGESIZE */
23603#    ifdef NBPG
23604#     define getpagesize() NBPG * CLSIZE
23605#     ifndef CLSIZE
23606#      define CLSIZE 1
23607#     endif /* no CLSIZE */
23608#    else /* no NBPG */
23609#     ifdef NBPC
23610#      define getpagesize() NBPC
23611#     else /* no NBPC */
23612#      ifdef PAGESIZE
23613#       define getpagesize() PAGESIZE
23614#      endif /* PAGESIZE */
23615#     endif /* no NBPC */
23616#    endif /* no NBPG */
23617#   endif /* no EXEC_PAGESIZE */
23618#  else /* no HAVE_SYS_PARAM_H */
23619#   define getpagesize() 8192	/* punt totally */
23620#  endif /* no HAVE_SYS_PARAM_H */
23621# endif
23622#endif
23623
23624int
23625main (void)
23626{
23627  char *data, *data2, *data3;
23628  const char *cdata2;
23629  long i, pagesize;
23630  int fd, fd2;
23631
23632  pagesize = getpagesize ();
23633
23634  /* First, make a file with some known garbage in it. */
23635  data = (char *) malloc (pagesize);
23636  if (!data)
23637    return 1;
23638  for (i = 0; i < pagesize; ++i)
23639    *(data + i) = rand ();
23640  umask (0);
23641  fd = creat ("conftest.mmap", 0600);
23642  if (fd < 0)
23643    return 2;
23644  if (write (fd, data, pagesize) != pagesize)
23645    return 3;
23646  close (fd);
23647
23648  /* Next, check that the tail of a page is zero-filled.  File must have
23649     non-zero length, otherwise we risk SIGBUS for entire page.  */
23650  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23651  if (fd2 < 0)
23652    return 4;
23653  cdata2 = "";
23654  if (write (fd2, cdata2, 1) != 1)
23655    return 5;
23656  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23657  if (data2 == MAP_FAILED)
23658    return 6;
23659  for (i = 0; i < pagesize; ++i)
23660    if (*(data2 + i))
23661      return 7;
23662  close (fd2);
23663  /* 'return 8;' not currently used.  */
23664
23665  /* Next, try to mmap the file at a fixed address which already has
23666     something else allocated at it.  If we can, also make sure that
23667     we see the same garbage.  */
23668  fd = open ("conftest.mmap", O_RDWR);
23669  if (fd < 0)
23670    return 9;
23671  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23672		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
23673    return 10;
23674  for (i = 0; i < pagesize; ++i)
23675    if (*(data + i) != *(data2 + i))
23676      return 11;
23677
23678  /* Finally, make sure that changes to the mapped area do not
23679     percolate back to the file as seen by read().  (This is a bug on
23680     some variants of i386 svr4.0.)  */
23681  for (i = 0; i < pagesize; ++i)
23682    *(data2 + i) = *(data2 + i) + 1;
23683  data3 = (char *) malloc (pagesize);
23684  if (!data3)
23685    return 12;
23686  if (read (fd, data3, pagesize) != pagesize)
23687    return 13;
23688  for (i = 0; i < pagesize; ++i)
23689    if (*(data + i) != *(data3 + i))
23690      return 14;
23691  close (fd);
23692  free (data);
23693  free (data3);
23694  return 0;
23695}
23696_ACEOF
23697if ac_fn_c_try_run "$LINENO"
23698then :
23699  ac_cv_func_mmap_fixed_mapped=yes
23700else case e in #(
23701  e) ac_cv_func_mmap_fixed_mapped=no ;;
23702esac
23703fi
23704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23705  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
23706esac
23707fi
23708 ;;
23709esac
23710fi
23711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23712printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
23713if test $ac_cv_func_mmap_fixed_mapped = yes; then
23714
23715printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
23716
23717fi
23718rm -f conftest.mmap conftest.txt
23719
23720composecache_default=$ac_cv_func_mmap_fixed_mapped
23721ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
23722if test "x$ac_cv_func_nl_langinfo" = xyes
23723then :
23724
23725else case e in #(
23726  e) composecache_default=no ;;
23727esac
23728fi
23729
23730# Check whether --enable-composecache was given.
23731if test ${enable_composecache+y}
23732then :
23733  enableval=$enable_composecache; COMPOSECACHE=$enableval
23734else case e in #(
23735  e) COMPOSECACHE=$composecache_default ;;
23736esac
23737fi
23738
23739if test x"$COMPOSECACHE" = "xyes"; then
23740
23741printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
23742
23743fi
23744
23745# Allow checking code with lint, sparse, etc.
23746
23747
23748
23749
23750
23751# Check whether --with-lint was given.
23752if test ${with_lint+y}
23753then :
23754  withval=$with_lint; use_lint=$withval
23755else case e in #(
23756  e) use_lint=no ;;
23757esac
23758fi
23759
23760
23761# Obtain platform specific info like program name and options
23762# The lint program on FreeBSD and NetBSD is different from the one on Solaris
23763case $host_os in
23764  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
23765	lint_name=splint
23766	lint_options="-badflag"
23767	;;
23768  *freebsd* | *netbsd*)
23769	lint_name=lint
23770	lint_options="-u -b"
23771	;;
23772  *solaris*)
23773	lint_name=lint
23774	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
23775	;;
23776esac
23777
23778# Test for the presence of the program (either guessed by the code or spelled out by the user)
23779if test "x$use_lint" = x"yes" ; then
23780   # Extract the first word of "$lint_name", so it can be a program name with args.
23781set dummy $lint_name; ac_word=$2
23782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23783printf %s "checking for $ac_word... " >&6; }
23784if test ${ac_cv_path_LINT+y}
23785then :
23786  printf %s "(cached) " >&6
23787else case e in #(
23788  e) case $LINT in
23789  [\\/]* | ?:[\\/]*)
23790  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
23791  ;;
23792  *)
23793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23794for as_dir in $PATH
23795do
23796  IFS=$as_save_IFS
23797  case $as_dir in #(((
23798    '') as_dir=./ ;;
23799    */) ;;
23800    *) as_dir=$as_dir/ ;;
23801  esac
23802    for ac_exec_ext in '' $ac_executable_extensions; do
23803  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23804    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
23805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23806    break 2
23807  fi
23808done
23809  done
23810IFS=$as_save_IFS
23811
23812  ;;
23813esac ;;
23814esac
23815fi
23816LINT=$ac_cv_path_LINT
23817if test -n "$LINT"; then
23818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
23819printf "%s\n" "$LINT" >&6; }
23820else
23821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23822printf "%s\n" "no" >&6; }
23823fi
23824
23825
23826   if test "x$LINT" = "x"; then
23827        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
23828   fi
23829elif test "x$use_lint" = x"no" ; then
23830   if test "x$LINT" != "x"; then
23831      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
23832printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
23833   fi
23834else
23835   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
23836fi
23837
23838# User supplied flags override default flags
23839if test "x$LINT_FLAGS" != "x"; then
23840   lint_options=$LINT_FLAGS
23841fi
23842
23843LINT_FLAGS=$lint_options
23844
23845 if test "x$LINT" != x; then
23846  LINT_TRUE=
23847  LINT_FALSE='#'
23848else
23849  LINT_TRUE='#'
23850  LINT_FALSE=
23851fi
23852
23853
23854
23855
23856
23857# Check whether --enable-lint-library was given.
23858if test ${enable_lint_library+y}
23859then :
23860  enableval=$enable_lint_library; make_lint_lib=$enableval
23861else case e in #(
23862  e) make_lint_lib=no ;;
23863esac
23864fi
23865
23866
23867if test "x$make_lint_lib" = x"yes" ; then
23868   LINTLIB=llib-lX11.ln
23869   if test "x$LINT" = "x"; then
23870        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
23871   fi
23872elif test "x$make_lint_lib" != x"no" ; then
23873   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
23874fi
23875
23876
23877 if test x$make_lint_lib != xno; then
23878  MAKE_LINT_LIB_TRUE=
23879  MAKE_LINT_LIB_FALSE='#'
23880else
23881  MAKE_LINT_LIB_TRUE='#'
23882  MAKE_LINT_LIB_FALSE=
23883fi
23884
23885
23886
23887
23888X11_DATADIR="${datadir}/X11"
23889
23890  prefix_NONE=
23891  exec_prefix_NONE=
23892  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23893  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23894  eval ax_define_dir="\"$X11_DATADIR\""
23895  eval ax_define_dir="\"$ax_define_dir\""
23896  X11_DATADIR="$ax_define_dir"
23897
23898
23899printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
23900
23901  test "$prefix_NONE" && prefix=NONE
23902  test "$exec_prefix_NONE" && exec_prefix=NONE
23903
23904
23905
23906X11_LIBDIR="${libdir}/X11"
23907
23908  prefix_NONE=
23909  exec_prefix_NONE=
23910  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23911  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23912  eval ax_define_dir="\"$X11_LIBDIR\""
23913  eval ax_define_dir="\"$ax_define_dir\""
23914  X11_LIBDIR="$ax_define_dir"
23915
23916
23917printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
23918
23919  test "$prefix_NONE" && prefix=NONE
23920  test "$exec_prefix_NONE" && exec_prefix=NONE
23921
23922
23923
23924
23925pkg_failed=no
23926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
23927printf %s "checking for X11... " >&6; }
23928
23929if test -n "$X11_CFLAGS"; then
23930    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
23931 elif test -n "$PKG_CONFIG"; then
23932    if test -n "$PKG_CONFIG" && \
23933    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
23934  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
23935  ac_status=$?
23936  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937  test $ac_status = 0; }; then
23938  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
23939		      test "x$?" != "x0" && pkg_failed=yes
23940else
23941  pkg_failed=yes
23942fi
23943 else
23944    pkg_failed=untried
23945fi
23946if test -n "$X11_LIBS"; then
23947    pkg_cv_X11_LIBS="$X11_LIBS"
23948 elif test -n "$PKG_CONFIG"; then
23949    if test -n "$PKG_CONFIG" && \
23950    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
23951  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
23952  ac_status=$?
23953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23954  test $ac_status = 0; }; then
23955  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
23956		      test "x$?" != "x0" && pkg_failed=yes
23957else
23958  pkg_failed=yes
23959fi
23960 else
23961    pkg_failed=untried
23962fi
23963
23964
23965
23966if test $pkg_failed = yes; then
23967   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23968printf "%s\n" "no" >&6; }
23969
23970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23971        _pkg_short_errors_supported=yes
23972else
23973        _pkg_short_errors_supported=no
23974fi
23975        if test $_pkg_short_errors_supported = yes; then
23976	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
23977        else
23978	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
23979        fi
23980	# Put the nasty error message in config.log where it belongs
23981	echo "$X11_PKG_ERRORS" >&5
23982
23983	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
23984
23985$X11_PKG_ERRORS
23986
23987Consider adjusting the PKG_CONFIG_PATH environment variable if you
23988installed software in a non-standard prefix.
23989
23990Alternatively, you may set the environment variables X11_CFLAGS
23991and X11_LIBS to avoid the need to call pkg-config.
23992See the pkg-config man page for more details." "$LINENO" 5
23993elif test $pkg_failed = untried; then
23994     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23995printf "%s\n" "no" >&6; }
23996	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23997printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23998as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23999is in your PATH or set the PKG_CONFIG environment variable to the full
24000path to pkg-config.
24001
24002Alternatively, you may set the environment variables X11_CFLAGS
24003and X11_LIBS to avoid the need to call pkg-config.
24004See the pkg-config man page for more details.
24005
24006To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24007See 'config.log' for more details" "$LINENO" 5; }
24008else
24009	X11_CFLAGS=$pkg_cv_X11_CFLAGS
24010	X11_LIBS=$pkg_cv_X11_LIBS
24011        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012printf "%s\n" "yes" >&6; }
24013
24014fi
24015X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
24016
24017#
24018# Yes, it would be nice to put the locale data in
24019# /usr/share, but the locale stuff includes loadable
24020# libraries which must be located in the same directory
24021# as the other locale data, so for now, everything lives
24022# in ${libdir}
24023#
24024
24025X11_LOCALEDATADIR="${X11_DATADIR}/locale"
24026
24027  prefix_NONE=
24028  exec_prefix_NONE=
24029  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24030  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24031  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
24032  eval ax_define_dir="\"$ax_define_dir\""
24033  XLOCALEDATADIR="$ax_define_dir"
24034
24035
24036printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
24037
24038  test "$prefix_NONE" && prefix=NONE
24039  test "$exec_prefix_NONE" && exec_prefix=NONE
24040
24041
24042
24043
24044# Check whether --with-locale-lib-dir was given.
24045if test ${with_locale_lib_dir+y}
24046then :
24047  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
24048else case e in #(
24049  e)  X11_LOCALELIBDIR="${X11_LIBDIR}/locale"  ;;
24050esac
24051fi
24052
24053
24054  prefix_NONE=
24055  exec_prefix_NONE=
24056  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24057  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24058  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
24059  eval ax_define_dir="\"$ax_define_dir\""
24060  XLOCALELIBDIR="$ax_define_dir"
24061
24062
24063printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
24064
24065  test "$prefix_NONE" && prefix=NONE
24066  test "$exec_prefix_NONE" && exec_prefix=NONE
24067
24068
24069
24070X11_LOCALEDIR="${X11_LOCALEDATADIR}"
24071
24072  prefix_NONE=
24073  exec_prefix_NONE=
24074  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24075  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24076  eval ax_define_dir="\"$X11_LOCALEDIR\""
24077  eval ax_define_dir="\"$ax_define_dir\""
24078  XLOCALEDIR="$ax_define_dir"
24079
24080
24081printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
24082
24083  test "$prefix_NONE" && prefix=NONE
24084  test "$exec_prefix_NONE" && exec_prefix=NONE
24085
24086
24087
24088locales="\
24089 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
24090 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
24091 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
24092 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
24093 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
24094 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
24095 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
24096 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
24097 ru_RU.UTF-8  sr_RS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
24098 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
24099 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
24100 zh_TW        zh_TW.big5  zh_TW.UTF-8"
24101
24102
24103XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
24104
24105  prefix_NONE=
24106  exec_prefix_NONE=
24107  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24108  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24109  eval ax_define_dir="\"$XKEYSYMDB\""
24110  eval ax_define_dir="\"$ax_define_dir\""
24111  XKEYSYMDB="$ax_define_dir"
24112
24113
24114printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
24115
24116  test "$prefix_NONE" && prefix=NONE
24117  test "$exec_prefix_NONE" && exec_prefix=NONE
24118
24119
24120XERRORDB="${X11_DATADIR}/XErrorDB"
24121
24122  prefix_NONE=
24123  exec_prefix_NONE=
24124  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
24125  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
24126  eval ax_define_dir="\"$XERRORDB\""
24127  eval ax_define_dir="\"$ax_define_dir\""
24128  XERRORDB="$ax_define_dir"
24129
24130
24131printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
24132
24133  test "$prefix_NONE" && prefix=NONE
24134  test "$exec_prefix_NONE" && exec_prefix=NONE
24135
24136
24137
24138# Check whether --enable-malloc0returnsnull was given.
24139if test ${enable_malloc0returnsnull+y}
24140then :
24141  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
24142else case e in #(
24143  e) MALLOC_ZERO_RETURNS_NULL=yes ;;
24144esac
24145fi
24146
24147
24148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5
24149printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; }
24150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
24151printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
24152
24153if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
24154	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
24155	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
24156	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
24157else
24158	MALLOC_ZERO_CFLAGS=""
24159	XMALLOC_ZERO_CFLAGS=""
24160	XTMALLOC_ZERO_CFLAGS=""
24161fi
24162
24163
24164
24165
24166
24167
24168ac_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"
24169
24170cat >confcache <<\_ACEOF
24171# This file is a shell script that caches the results of configure
24172# tests run on this system so they can be shared between configure
24173# scripts and configure runs, see configure's option --config-cache.
24174# It is not useful on other systems.  If it contains results you don't
24175# want to keep, you may remove or edit it.
24176#
24177# config.status only pays attention to the cache file if you give it
24178# the --recheck option to rerun configure.
24179#
24180# 'ac_cv_env_foo' variables (set or unset) will be overridden when
24181# loading this file, other *unset* 'ac_cv_foo' will be assigned the
24182# following values.
24183
24184_ACEOF
24185
24186# The following way of writing the cache mishandles newlines in values,
24187# but we know of no workaround that is simple, portable, and efficient.
24188# So, we kill variables containing newlines.
24189# Ultrix sh set writes to stderr and can't be redirected directly,
24190# and sets the high bit in the cache file unless we assign to the vars.
24191(
24192  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24193    eval ac_val=\$$ac_var
24194    case $ac_val in #(
24195    *${as_nl}*)
24196      case $ac_var in #(
24197      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24198printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24199      esac
24200      case $ac_var in #(
24201      _ | IFS | as_nl) ;; #(
24202      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24203      *) { eval $ac_var=; unset $ac_var;} ;;
24204      esac ;;
24205    esac
24206  done
24207
24208  (set) 2>&1 |
24209    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24210    *${as_nl}ac_space=\ *)
24211      # 'set' does not quote correctly, so add quotes: double-quote
24212      # substitution turns \\\\ into \\, and sed turns \\ into \.
24213      sed -n \
24214	"s/'/'\\\\''/g;
24215	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24216      ;; #(
24217    *)
24218      # 'set' quotes correctly as required by POSIX, so do not add quotes.
24219      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24220      ;;
24221    esac |
24222    sort
24223) |
24224  sed '
24225     /^ac_cv_env_/b end
24226     t clear
24227     :clear
24228     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24229     t end
24230     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24231     :end' >>confcache
24232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24233  if test -w "$cache_file"; then
24234    if test "x$cache_file" != "x/dev/null"; then
24235      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24236printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24237      if test ! -f "$cache_file" || test -h "$cache_file"; then
24238	cat confcache >"$cache_file"
24239      else
24240        case $cache_file in #(
24241        */* | ?:*)
24242	  mv -f confcache "$cache_file"$$ &&
24243	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24244        *)
24245	  mv -f confcache "$cache_file" ;;
24246	esac
24247      fi
24248    fi
24249  else
24250    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24251printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24252  fi
24253fi
24254rm -f confcache
24255
24256test "x$prefix" = xNONE && prefix=$ac_default_prefix
24257# Let make expand exec_prefix.
24258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24259
24260DEFS=-DHAVE_CONFIG_H
24261
24262ac_libobjs=
24263ac_ltlibobjs=
24264U=
24265for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24266  # 1. Remove the extension, and $U if already installed.
24267  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24268  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24269  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24270  #    will be set to the directory where LIBOBJS objects are built.
24271  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24272  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24273done
24274LIBOBJS=$ac_libobjs
24275
24276LTLIBOBJS=$ac_ltlibobjs
24277
24278
24279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24280printf %s "checking that generated files are newer than configure... " >&6; }
24281   if test -n "$am_sleep_pid"; then
24282     # Hide warnings about reused PIDs.
24283     wait $am_sleep_pid 2>/dev/null
24284   fi
24285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24286printf "%s\n" "done" >&6; }
24287if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24288  as_fn_error $? "conditional \"AMDEP\" was never defined.
24289Usually this means the macro was only invoked conditionally." "$LINENO" 5
24290fi
24291if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24292  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24293Usually this means the macro was only invoked conditionally." "$LINENO" 5
24294fi
24295case $enable_silent_rules in # (((
24296  yes) AM_DEFAULT_VERBOSITY=0;;
24297   no) AM_DEFAULT_VERBOSITY=1;;
24298esac
24299if test $am_cv_make_support_nested_variables = yes; then
24300    AM_V='$(V)'
24301  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
24302else
24303  AM_V=$AM_DEFAULT_VERBOSITY
24304  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
24305fi
24306
24307 if test -n "$EXEEXT"; then
24308  am__EXEEXT_TRUE=
24309  am__EXEEXT_FALSE='#'
24310else
24311  am__EXEEXT_TRUE='#'
24312  am__EXEEXT_FALSE=
24313fi
24314
24315# Check whether --enable-year2038 was given.
24316if test ${enable_year2038+y}
24317then :
24318  enableval=$enable_year2038;
24319fi
24320
24321if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
24322  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
24323Usually this means the macro was only invoked conditionally." "$LINENO" 5
24324fi
24325if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
24326  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
24327Usually this means the macro was only invoked conditionally." "$LINENO" 5
24328fi
24329if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
24330  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
24331Usually this means the macro was only invoked conditionally." "$LINENO" 5
24332fi
24333if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
24334  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
24335Usually this means the macro was only invoked conditionally." "$LINENO" 5
24336fi
24337if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
24338  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
24339Usually this means the macro was only invoked conditionally." "$LINENO" 5
24340fi
24341if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
24342  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
24343Usually this means the macro was only invoked conditionally." "$LINENO" 5
24344fi
24345if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
24346  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
24347Usually this means the macro was only invoked conditionally." "$LINENO" 5
24348fi
24349if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
24350  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
24351Usually this means the macro was only invoked conditionally." "$LINENO" 5
24352fi
24353if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
24354  as_fn_error $? "conditional \"OS2\" was never defined.
24355Usually this means the macro was only invoked conditionally." "$LINENO" 5
24356fi
24357if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
24358  as_fn_error $? "conditional \"XCMS\" was never defined.
24359Usually this means the macro was only invoked conditionally." "$LINENO" 5
24360fi
24361if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
24362  as_fn_error $? "conditional \"XLOCALE\" was never defined.
24363Usually this means the macro was only invoked conditionally." "$LINENO" 5
24364fi
24365if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
24366  as_fn_error $? "conditional \"XKB\" was never defined.
24367Usually this means the macro was only invoked conditionally." "$LINENO" 5
24368fi
24369if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
24370  as_fn_error $? "conditional \"LINT\" was never defined.
24371Usually this means the macro was only invoked conditionally." "$LINENO" 5
24372fi
24373if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
24374  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
24375Usually this means the macro was only invoked conditionally." "$LINENO" 5
24376fi
24377
24378: "${CONFIG_STATUS=./config.status}"
24379ac_write_fail=0
24380ac_clean_files_save=$ac_clean_files
24381ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24383printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24384as_write_fail=0
24385cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24386#! $SHELL
24387# Generated by $as_me.
24388# Run this file to recreate the current configuration.
24389# Compiler output produced by configure, useful for debugging
24390# configure, is in config.log if it exists.
24391
24392debug=false
24393ac_cs_recheck=false
24394ac_cs_silent=false
24395
24396SHELL=\${CONFIG_SHELL-$SHELL}
24397export SHELL
24398_ASEOF
24399cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24400## -------------------- ##
24401## M4sh Initialization. ##
24402## -------------------- ##
24403
24404# Be more Bourne compatible
24405DUALCASE=1; export DUALCASE # for MKS sh
24406if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24407then :
24408  emulate sh
24409  NULLCMD=:
24410  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24411  # is contrary to our usage.  Disable this feature.
24412  alias -g '${1+"$@"}'='"$@"'
24413  setopt NO_GLOB_SUBST
24414else case e in #(
24415  e) case `(set -o) 2>/dev/null` in #(
24416  *posix*) :
24417    set -o posix ;; #(
24418  *) :
24419     ;;
24420esac ;;
24421esac
24422fi
24423
24424
24425
24426# Reset variables that may have inherited troublesome values from
24427# the environment.
24428
24429# IFS needs to be set, to space, tab, and newline, in precisely that order.
24430# (If _AS_PATH_WALK were called with IFS unset, it would have the
24431# side effect of setting IFS to empty, thus disabling word splitting.)
24432# Quoting is to prevent editors from complaining about space-tab.
24433as_nl='
24434'
24435export as_nl
24436IFS=" ""	$as_nl"
24437
24438PS1='$ '
24439PS2='> '
24440PS4='+ '
24441
24442# Ensure predictable behavior from utilities with locale-dependent output.
24443LC_ALL=C
24444export LC_ALL
24445LANGUAGE=C
24446export LANGUAGE
24447
24448# We cannot yet rely on "unset" to work, but we need these variables
24449# to be unset--not just set to an empty or harmless value--now, to
24450# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
24451# also avoids known problems related to "unset" and subshell syntax
24452# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24453for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24454do eval test \${$as_var+y} \
24455  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24456done
24457
24458# Ensure that fds 0, 1, and 2 are open.
24459if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24460if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24461if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
24462
24463# The user is always right.
24464if ${PATH_SEPARATOR+false} :; then
24465  PATH_SEPARATOR=:
24466  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24467    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24468      PATH_SEPARATOR=';'
24469  }
24470fi
24471
24472
24473# Find who we are.  Look in the path if we contain no directory separator.
24474as_myself=
24475case $0 in #((
24476  *[\\/]* ) as_myself=$0 ;;
24477  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24478for as_dir in $PATH
24479do
24480  IFS=$as_save_IFS
24481  case $as_dir in #(((
24482    '') as_dir=./ ;;
24483    */) ;;
24484    *) as_dir=$as_dir/ ;;
24485  esac
24486    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24487  done
24488IFS=$as_save_IFS
24489
24490     ;;
24491esac
24492# We did not find ourselves, most probably we were run as 'sh COMMAND'
24493# in which case we are not to be found in the path.
24494if test "x$as_myself" = x; then
24495  as_myself=$0
24496fi
24497if test ! -f "$as_myself"; then
24498  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24499  exit 1
24500fi
24501
24502
24503
24504# as_fn_error STATUS ERROR [LINENO LOG_FD]
24505# ----------------------------------------
24506# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24507# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24508# script with STATUS, using 1 if that was 0.
24509as_fn_error ()
24510{
24511  as_status=$1; test $as_status -eq 0 && as_status=1
24512  if test "$4"; then
24513    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24514    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24515  fi
24516  printf "%s\n" "$as_me: error: $2" >&2
24517  as_fn_exit $as_status
24518} # as_fn_error
24519
24520
24521# as_fn_set_status STATUS
24522# -----------------------
24523# Set $? to STATUS, without forking.
24524as_fn_set_status ()
24525{
24526  return $1
24527} # as_fn_set_status
24528
24529# as_fn_exit STATUS
24530# -----------------
24531# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24532as_fn_exit ()
24533{
24534  set +e
24535  as_fn_set_status $1
24536  exit $1
24537} # as_fn_exit
24538
24539# as_fn_unset VAR
24540# ---------------
24541# Portably unset VAR.
24542as_fn_unset ()
24543{
24544  { eval $1=; unset $1;}
24545}
24546as_unset=as_fn_unset
24547
24548# as_fn_append VAR VALUE
24549# ----------------------
24550# Append the text in VALUE to the end of the definition contained in VAR. Take
24551# advantage of any shell optimizations that allow amortized linear growth over
24552# repeated appends, instead of the typical quadratic growth present in naive
24553# implementations.
24554if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24555then :
24556  eval 'as_fn_append ()
24557  {
24558    eval $1+=\$2
24559  }'
24560else case e in #(
24561  e) as_fn_append ()
24562  {
24563    eval $1=\$$1\$2
24564  } ;;
24565esac
24566fi # as_fn_append
24567
24568# as_fn_arith ARG...
24569# ------------------
24570# Perform arithmetic evaluation on the ARGs, and store the result in the
24571# global $as_val. Take advantage of shells that can avoid forks. The arguments
24572# must be portable across $(()) and expr.
24573if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24574then :
24575  eval 'as_fn_arith ()
24576  {
24577    as_val=$(( $* ))
24578  }'
24579else case e in #(
24580  e) as_fn_arith ()
24581  {
24582    as_val=`expr "$@" || test $? -eq 1`
24583  } ;;
24584esac
24585fi # as_fn_arith
24586
24587
24588if expr a : '\(a\)' >/dev/null 2>&1 &&
24589   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24590  as_expr=expr
24591else
24592  as_expr=false
24593fi
24594
24595if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24596  as_basename=basename
24597else
24598  as_basename=false
24599fi
24600
24601if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24602  as_dirname=dirname
24603else
24604  as_dirname=false
24605fi
24606
24607as_me=`$as_basename -- "$0" ||
24608$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24609	 X"$0" : 'X\(//\)$' \| \
24610	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24611printf "%s\n" X/"$0" |
24612    sed '/^.*\/\([^/][^/]*\)\/*$/{
24613	    s//\1/
24614	    q
24615	  }
24616	  /^X\/\(\/\/\)$/{
24617	    s//\1/
24618	    q
24619	  }
24620	  /^X\/\(\/\).*/{
24621	    s//\1/
24622	    q
24623	  }
24624	  s/.*/./; q'`
24625
24626# Avoid depending upon Character Ranges.
24627as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24628as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24629as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24630as_cr_digits='0123456789'
24631as_cr_alnum=$as_cr_Letters$as_cr_digits
24632
24633
24634# Determine whether it's possible to make 'echo' print without a newline.
24635# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24636# for compatibility with existing Makefiles.
24637ECHO_C= ECHO_N= ECHO_T=
24638case `echo -n x` in #(((((
24639-n*)
24640  case `echo 'xy\c'` in
24641  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24642  xy)  ECHO_C='\c';;
24643  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24644       ECHO_T='	';;
24645  esac;;
24646*)
24647  ECHO_N='-n';;
24648esac
24649
24650# For backward compatibility with old third-party macros, we provide
24651# the shell variables $as_echo and $as_echo_n.  New code should use
24652# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24653as_echo='printf %s\n'
24654as_echo_n='printf %s'
24655
24656rm -f conf$$ conf$$.exe conf$$.file
24657if test -d conf$$.dir; then
24658  rm -f conf$$.dir/conf$$.file
24659else
24660  rm -f conf$$.dir
24661  mkdir conf$$.dir 2>/dev/null
24662fi
24663if (echo >conf$$.file) 2>/dev/null; then
24664  if ln -s conf$$.file conf$$ 2>/dev/null; then
24665    as_ln_s='ln -s'
24666    # ... but there are two gotchas:
24667    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
24668    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
24669    # In both cases, we have to default to 'cp -pR'.
24670    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24671      as_ln_s='cp -pR'
24672  elif ln conf$$.file conf$$ 2>/dev/null; then
24673    as_ln_s=ln
24674  else
24675    as_ln_s='cp -pR'
24676  fi
24677else
24678  as_ln_s='cp -pR'
24679fi
24680rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24681rmdir conf$$.dir 2>/dev/null
24682
24683
24684# as_fn_mkdir_p
24685# -------------
24686# Create "$as_dir" as a directory, including parents if necessary.
24687as_fn_mkdir_p ()
24688{
24689
24690  case $as_dir in #(
24691  -*) as_dir=./$as_dir;;
24692  esac
24693  test -d "$as_dir" || eval $as_mkdir_p || {
24694    as_dirs=
24695    while :; do
24696      case $as_dir in #(
24697      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24698      *) as_qdir=$as_dir;;
24699      esac
24700      as_dirs="'$as_qdir' $as_dirs"
24701      as_dir=`$as_dirname -- "$as_dir" ||
24702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24703	 X"$as_dir" : 'X\(//\)[^/]' \| \
24704	 X"$as_dir" : 'X\(//\)$' \| \
24705	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24706printf "%s\n" X"$as_dir" |
24707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24708	    s//\1/
24709	    q
24710	  }
24711	  /^X\(\/\/\)[^/].*/{
24712	    s//\1/
24713	    q
24714	  }
24715	  /^X\(\/\/\)$/{
24716	    s//\1/
24717	    q
24718	  }
24719	  /^X\(\/\).*/{
24720	    s//\1/
24721	    q
24722	  }
24723	  s/.*/./; q'`
24724      test -d "$as_dir" && break
24725    done
24726    test -z "$as_dirs" || eval "mkdir $as_dirs"
24727  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24728
24729
24730} # as_fn_mkdir_p
24731if mkdir -p . 2>/dev/null; then
24732  as_mkdir_p='mkdir -p "$as_dir"'
24733else
24734  test -d ./-p && rmdir ./-p
24735  as_mkdir_p=false
24736fi
24737
24738
24739# as_fn_executable_p FILE
24740# -----------------------
24741# Test if FILE is an executable regular file.
24742as_fn_executable_p ()
24743{
24744  test -f "$1" && test -x "$1"
24745} # as_fn_executable_p
24746as_test_x='test -x'
24747as_executable_p=as_fn_executable_p
24748
24749# Sed expression to map a string onto a valid CPP name.
24750as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24751as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
24752
24753# Sed expression to map a string onto a valid variable name.
24754as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24755as_tr_sh="eval sed '$as_sed_sh'" # deprecated
24756
24757
24758exec 6>&1
24759## ----------------------------------- ##
24760## Main body of $CONFIG_STATUS script. ##
24761## ----------------------------------- ##
24762_ASEOF
24763test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24764
24765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24766# Save the log message, to keep $0 and so on meaningful, and to
24767# report actual input values of CONFIG_FILES etc. instead of their
24768# values after options handling.
24769ac_log="
24770This file was extended by libX11 $as_me 1.8.12, which was
24771generated by GNU Autoconf 2.72.  Invocation command line was
24772
24773  CONFIG_FILES    = $CONFIG_FILES
24774  CONFIG_HEADERS  = $CONFIG_HEADERS
24775  CONFIG_LINKS    = $CONFIG_LINKS
24776  CONFIG_COMMANDS = $CONFIG_COMMANDS
24777  $ $0 $@
24778
24779on `(hostname || uname -n) 2>/dev/null | sed 1q`
24780"
24781
24782_ACEOF
24783
24784case $ac_config_files in *"
24785"*) set x $ac_config_files; shift; ac_config_files=$*;;
24786esac
24787
24788case $ac_config_headers in *"
24789"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24790esac
24791
24792
24793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24794# Files that config.status was made for.
24795config_files="$ac_config_files"
24796config_headers="$ac_config_headers"
24797config_commands="$ac_config_commands"
24798
24799_ACEOF
24800
24801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24802ac_cs_usage="\
24803'$as_me' instantiates files and other configuration actions
24804from templates according to the current configuration.  Unless the files
24805and actions are specified as TAGs, all are instantiated by default.
24806
24807Usage: $0 [OPTION]... [TAG]...
24808
24809  -h, --help       print this help, then exit
24810  -V, --version    print version number and configuration settings, then exit
24811      --config     print configuration, then exit
24812  -q, --quiet, --silent
24813                   do not print progress messages
24814  -d, --debug      don't remove temporary files
24815      --recheck    update $as_me by reconfiguring in the same conditions
24816      --file=FILE[:TEMPLATE]
24817                   instantiate the configuration file FILE
24818      --header=FILE[:TEMPLATE]
24819                   instantiate the configuration header FILE
24820
24821Configuration files:
24822$config_files
24823
24824Configuration headers:
24825$config_headers
24826
24827Configuration commands:
24828$config_commands
24829
24830Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>."
24831
24832_ACEOF
24833ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24834ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24836ac_cs_config='$ac_cs_config_escaped'
24837ac_cs_version="\\
24838libX11 config.status 1.8.12
24839configured by $0, generated by GNU Autoconf 2.72,
24840  with options \\"\$ac_cs_config\\"
24841
24842Copyright (C) 2023 Free Software Foundation, Inc.
24843This config.status script is free software; the Free Software Foundation
24844gives unlimited permission to copy, distribute and modify it."
24845
24846ac_pwd='$ac_pwd'
24847srcdir='$srcdir'
24848INSTALL='$INSTALL'
24849MKDIR_P='$MKDIR_P'
24850AWK='$AWK'
24851test -n "\$AWK" || AWK=awk
24852_ACEOF
24853
24854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24855# The default lists apply if the user does not specify any file.
24856ac_need_defaults=:
24857while test $# != 0
24858do
24859  case $1 in
24860  --*=?*)
24861    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24862    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24863    ac_shift=:
24864    ;;
24865  --*=)
24866    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24867    ac_optarg=
24868    ac_shift=:
24869    ;;
24870  *)
24871    ac_option=$1
24872    ac_optarg=$2
24873    ac_shift=shift
24874    ;;
24875  esac
24876
24877  case $ac_option in
24878  # Handling of the options.
24879  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24880    ac_cs_recheck=: ;;
24881  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24882    printf "%s\n" "$ac_cs_version"; exit ;;
24883  --config | --confi | --conf | --con | --co | --c )
24884    printf "%s\n" "$ac_cs_config"; exit ;;
24885  --debug | --debu | --deb | --de | --d | -d )
24886    debug=: ;;
24887  --file | --fil | --fi | --f )
24888    $ac_shift
24889    case $ac_optarg in
24890    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24891    '') as_fn_error $? "missing file argument" ;;
24892    esac
24893    as_fn_append CONFIG_FILES " '$ac_optarg'"
24894    ac_need_defaults=false;;
24895  --header | --heade | --head | --hea )
24896    $ac_shift
24897    case $ac_optarg in
24898    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24899    esac
24900    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24901    ac_need_defaults=false;;
24902  --he | --h)
24903    # Conflict between --help and --header
24904    as_fn_error $? "ambiguous option: '$1'
24905Try '$0 --help' for more information.";;
24906  --help | --hel | -h )
24907    printf "%s\n" "$ac_cs_usage"; exit ;;
24908  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24909  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24910    ac_cs_silent=: ;;
24911
24912  # This is an error.
24913  -*) as_fn_error $? "unrecognized option: '$1'
24914Try '$0 --help' for more information." ;;
24915
24916  *) as_fn_append ac_config_targets " $1"
24917     ac_need_defaults=false ;;
24918
24919  esac
24920  shift
24921done
24922
24923ac_configure_extra_args=
24924
24925if $ac_cs_silent; then
24926  exec 6>/dev/null
24927  ac_configure_extra_args="$ac_configure_extra_args --silent"
24928fi
24929
24930_ACEOF
24931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24932if \$ac_cs_recheck; then
24933  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24934  shift
24935  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24936  CONFIG_SHELL='$SHELL'
24937  export CONFIG_SHELL
24938  exec "\$@"
24939fi
24940
24941_ACEOF
24942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24943exec 5>>config.log
24944{
24945  echo
24946  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24947## Running $as_me. ##
24948_ASBOX
24949  printf "%s\n" "$ac_log"
24950} >&5
24951
24952_ACEOF
24953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24954#
24955# INIT-COMMANDS
24956#
24957AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24958
24959
24960# The HP-UX ksh and POSIX shell print the target directory to stdout
24961# if CDPATH is set.
24962(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24963
24964sed_quote_subst='$sed_quote_subst'
24965double_quote_subst='$double_quote_subst'
24966delay_variable_subst='$delay_variable_subst'
24967macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24968macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24969enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24970enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24971pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24972enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24973shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24974SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24975ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24976PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24977host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24978host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24979host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24980build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24981build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24982build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24983SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24984Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24985GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24986EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24987FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24988LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24989NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24990LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24991max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24992ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24993exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24994lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24995lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24996lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24997lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24998lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24999reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25000reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25001FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
25002OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25003deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25004file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25005file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25006want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25007DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25008sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25009AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25010lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
25011AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25012archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25013STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25014RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25015old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25016old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25017old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25018lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25019CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25020CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25021compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25022GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25023lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25024lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25025lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25026lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25027lt_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"`'
25028lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25029nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25030lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25031lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25032objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25033MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25034lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25035lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25036lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25037lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25038lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25039need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25040MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25041DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25042NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25043LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25044OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25045OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25046libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25047shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25048extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25049archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25050enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25051export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25052whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25053compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25054old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25055old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25056archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25057archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25058module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25059module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25060with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25061allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25062no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25063hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25064hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25065hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25066hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25067hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25068hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25069hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25070inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25071link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25072always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25073export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25074exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25075include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25076prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25077postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25078file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25079variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25080need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25081need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25082version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25083runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25084shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25085shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25086libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25087library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25088soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25089install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25090postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25091postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25092finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25093finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25094hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25095sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25096configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25097configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25098hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25099enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25100enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25101enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25102old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25103striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25104
25105LTCC='$LTCC'
25106LTCFLAGS='$LTCFLAGS'
25107compiler='$compiler_DEFAULT'
25108
25109# A function that is used when there is no print builtin or printf.
25110func_fallback_echo ()
25111{
25112  eval 'cat <<_LTECHO_EOF
25113\$1
25114_LTECHO_EOF'
25115}
25116
25117# Quote evaled strings.
25118for var in SHELL \
25119ECHO \
25120PATH_SEPARATOR \
25121SED \
25122GREP \
25123EGREP \
25124FGREP \
25125LD \
25126NM \
25127LN_S \
25128lt_SP2NL \
25129lt_NL2SP \
25130reload_flag \
25131FILECMD \
25132OBJDUMP \
25133deplibs_check_method \
25134file_magic_cmd \
25135file_magic_glob \
25136want_nocaseglob \
25137DLLTOOL \
25138sharedlib_from_linklib_cmd \
25139AR \
25140archiver_list_spec \
25141STRIP \
25142RANLIB \
25143CC \
25144CFLAGS \
25145compiler \
25146lt_cv_sys_global_symbol_pipe \
25147lt_cv_sys_global_symbol_to_cdecl \
25148lt_cv_sys_global_symbol_to_import \
25149lt_cv_sys_global_symbol_to_c_name_address \
25150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25151lt_cv_nm_interface \
25152nm_file_list_spec \
25153lt_cv_truncate_bin \
25154lt_prog_compiler_no_builtin_flag \
25155lt_prog_compiler_pic \
25156lt_prog_compiler_wl \
25157lt_prog_compiler_static \
25158lt_cv_prog_compiler_c_o \
25159need_locks \
25160MANIFEST_TOOL \
25161DSYMUTIL \
25162NMEDIT \
25163LIPO \
25164OTOOL \
25165OTOOL64 \
25166shrext_cmds \
25167export_dynamic_flag_spec \
25168whole_archive_flag_spec \
25169compiler_needs_object \
25170with_gnu_ld \
25171allow_undefined_flag \
25172no_undefined_flag \
25173hardcode_libdir_flag_spec \
25174hardcode_libdir_separator \
25175exclude_expsyms \
25176include_expsyms \
25177file_list_spec \
25178variables_saved_for_relink \
25179libname_spec \
25180library_names_spec \
25181soname_spec \
25182install_override_mode \
25183finish_eval \
25184old_striplib \
25185striplib; do
25186    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25187    *[\\\\\\\`\\"\\\$]*)
25188      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25189      ;;
25190    *)
25191      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25192      ;;
25193    esac
25194done
25195
25196# Double-quote double-evaled strings.
25197for var in reload_cmds \
25198old_postinstall_cmds \
25199old_postuninstall_cmds \
25200old_archive_cmds \
25201extract_expsyms_cmds \
25202old_archive_from_new_cmds \
25203old_archive_from_expsyms_cmds \
25204archive_cmds \
25205archive_expsym_cmds \
25206module_cmds \
25207module_expsym_cmds \
25208export_symbols_cmds \
25209prelink_cmds \
25210postlink_cmds \
25211postinstall_cmds \
25212postuninstall_cmds \
25213finish_cmds \
25214sys_lib_search_path_spec \
25215configure_time_dlsearch_path \
25216configure_time_lt_sys_library_path; do
25217    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25218    *[\\\\\\\`\\"\\\$]*)
25219      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25220      ;;
25221    *)
25222      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25223      ;;
25224    esac
25225done
25226
25227ac_aux_dir='$ac_aux_dir'
25228
25229# See if we are running on zsh, and set the options that allow our
25230# commands through without removal of \ escapes INIT.
25231if test -n "\${ZSH_VERSION+set}"; then
25232   setopt NO_GLOB_SUBST
25233fi
25234
25235
25236    PACKAGE='$PACKAGE'
25237    VERSION='$VERSION'
25238    RM='$RM'
25239    ofile='$ofile'
25240
25241
25242
25243
25244_ACEOF
25245
25246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25247
25248# Handling of arguments.
25249for ac_config_target in $ac_config_targets
25250do
25251  case $ac_config_target in
25252    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25253    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
25254    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25255    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25256    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25257    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25258    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25259    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
25260    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25261    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
25262    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
25263    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
25264    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
25265    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
25266    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
25267    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
25268    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
25269    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
25270    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
25271    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
25272    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
25273    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
25274    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
25275    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
25276    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
25277    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
25278    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
25279    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
25280    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
25281    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
25282    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
25283    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
25284    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
25285    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
25286
25287  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
25288  esac
25289done
25290
25291
25292# If the user did not use the arguments to specify the items to instantiate,
25293# then the envvar interface is used.  Set only those that are not.
25294# We use the long form for the default assignment because of an extremely
25295# bizarre bug on SunOS 4.1.3.
25296if $ac_need_defaults; then
25297  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
25298  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
25299  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
25300fi
25301
25302# Have a temporary directory for convenience.  Make it in the build tree
25303# simply because there is no reason against having it here, and in addition,
25304# creating and moving files from /tmp can sometimes cause problems.
25305# Hook for its removal unless debugging.
25306# Note that there is a small window in which the directory will not be cleaned:
25307# after its creation but before its name has been assigned to '$tmp'.
25308$debug ||
25309{
25310  tmp= ac_tmp=
25311  trap 'exit_status=$?
25312  : "${ac_tmp:=$tmp}"
25313  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25314' 0
25315  trap 'as_fn_exit 1' 1 2 13 15
25316}
25317# Create a (secure) tmp directory for tmp files.
25318
25319{
25320  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25321  test -d "$tmp"
25322}  ||
25323{
25324  tmp=./conf$$-$RANDOM
25325  (umask 077 && mkdir "$tmp")
25326} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25327ac_tmp=$tmp
25328
25329# Set up the scripts for CONFIG_FILES section.
25330# No need to generate them if there are no CONFIG_FILES.
25331# This happens for instance with './config.status config.h'.
25332if test -n "$CONFIG_FILES"; then
25333
25334
25335ac_cr=`echo X | tr X '\015'`
25336# On cygwin, bash can eat \r inside `` if the user requested igncr.
25337# But we know of no other shell where ac_cr would be empty at this
25338# point, so we can use a bashism as a fallback.
25339if test "x$ac_cr" = x; then
25340  eval ac_cr=\$\'\\r\'
25341fi
25342ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25343if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25344  ac_cs_awk_cr='\\r'
25345else
25346  ac_cs_awk_cr=$ac_cr
25347fi
25348
25349echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25350_ACEOF
25351
25352
25353{
25354  echo "cat >conf$$subs.awk <<_ACEOF" &&
25355  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25356  echo "_ACEOF"
25357} >conf$$subs.sh ||
25358  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25359ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25360ac_delim='%!_!# '
25361for ac_last_try in false false false false false :; do
25362  . ./conf$$subs.sh ||
25363    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25364
25365  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25366  if test $ac_delim_n = $ac_delim_num; then
25367    break
25368  elif $ac_last_try; then
25369    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25370  else
25371    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25372  fi
25373done
25374rm -f conf$$subs.sh
25375
25376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25377cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25378_ACEOF
25379sed -n '
25380h
25381s/^/S["/; s/!.*/"]=/
25382p
25383g
25384s/^[^!]*!//
25385:repl
25386t repl
25387s/'"$ac_delim"'$//
25388t delim
25389:nl
25390h
25391s/\(.\{148\}\)..*/\1/
25392t more1
25393s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25394p
25395n
25396b repl
25397:more1
25398s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25399p
25400g
25401s/.\{148\}//
25402t nl
25403:delim
25404h
25405s/\(.\{148\}\)..*/\1/
25406t more2
25407s/["\\]/\\&/g; s/^/"/; s/$/"/
25408p
25409b
25410:more2
25411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25412p
25413g
25414s/.\{148\}//
25415t delim
25416' <conf$$subs.awk | sed '
25417/^[^""]/{
25418  N
25419  s/\n//
25420}
25421' >>$CONFIG_STATUS || ac_write_fail=1
25422rm -f conf$$subs.awk
25423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25424_ACAWK
25425cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25426  for (key in S) S_is_set[key] = 1
25427  FS = ""
25428
25429}
25430{
25431  line = $ 0
25432  nfields = split(line, field, "@")
25433  substed = 0
25434  len = length(field[1])
25435  for (i = 2; i < nfields; i++) {
25436    key = field[i]
25437    keylen = length(key)
25438    if (S_is_set[key]) {
25439      value = S[key]
25440      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25441      len += length(value) + length(field[++i])
25442      substed = 1
25443    } else
25444      len += 1 + keylen
25445  }
25446
25447  print line
25448}
25449
25450_ACAWK
25451_ACEOF
25452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25453if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25454  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25455else
25456  cat
25457fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25458  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25459_ACEOF
25460
25461# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25462# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25463# trailing colons and then remove the whole line if VPATH becomes empty
25464# (actually we leave an empty line to preserve line numbers).
25465if test "x$srcdir" = x.; then
25466  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25467h
25468s///
25469s/^/:/
25470s/[	 ]*$/:/
25471s/:\$(srcdir):/:/g
25472s/:\${srcdir}:/:/g
25473s/:@srcdir@:/:/g
25474s/^:*//
25475s/:*$//
25476x
25477s/\(=[	 ]*\).*/\1/
25478G
25479s/\n//
25480s/^[^=]*=[	 ]*$//
25481}'
25482fi
25483
25484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25485fi # test -n "$CONFIG_FILES"
25486
25487# Set up the scripts for CONFIG_HEADERS section.
25488# No need to generate them if there are no CONFIG_HEADERS.
25489# This happens for instance with './config.status Makefile'.
25490if test -n "$CONFIG_HEADERS"; then
25491cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25492BEGIN {
25493_ACEOF
25494
25495# Transform confdefs.h into an awk script 'defines.awk', embedded as
25496# here-document in config.status, that substitutes the proper values into
25497# config.h.in to produce config.h.
25498
25499# Create a delimiter string that does not exist in confdefs.h, to ease
25500# handling of long lines.
25501ac_delim='%!_!# '
25502for ac_last_try in false false :; do
25503  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25504  if test -z "$ac_tt"; then
25505    break
25506  elif $ac_last_try; then
25507    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25508  else
25509    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25510  fi
25511done
25512
25513# For the awk script, D is an array of macro values keyed by name,
25514# likewise P contains macro parameters if any.  Preserve backslash
25515# newline sequences.
25516
25517ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25518sed -n '
25519s/.\{148\}/&'"$ac_delim"'/g
25520t rset
25521:rset
25522s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25523t def
25524d
25525:def
25526s/\\$//
25527t bsnl
25528s/["\\]/\\&/g
25529s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25530D["\1"]=" \3"/p
25531s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25532d
25533:bsnl
25534s/["\\]/\\&/g
25535s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25536D["\1"]=" \3\\\\\\n"\\/p
25537t cont
25538s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25539t cont
25540d
25541:cont
25542n
25543s/.\{148\}/&'"$ac_delim"'/g
25544t clear
25545:clear
25546s/\\$//
25547t bsnlc
25548s/["\\]/\\&/g; s/^/"/; s/$/"/p
25549d
25550:bsnlc
25551s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25552b cont
25553' <confdefs.h | sed '
25554s/'"$ac_delim"'/"\\\
25555"/g' >>$CONFIG_STATUS || ac_write_fail=1
25556
25557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25558  for (key in D) D_is_set[key] = 1
25559  FS = ""
25560}
25561/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25562  line = \$ 0
25563  split(line, arg, " ")
25564  if (arg[1] == "#") {
25565    defundef = arg[2]
25566    mac1 = arg[3]
25567  } else {
25568    defundef = substr(arg[1], 2)
25569    mac1 = arg[2]
25570  }
25571  split(mac1, mac2, "(") #)
25572  macro = mac2[1]
25573  prefix = substr(line, 1, index(line, defundef) - 1)
25574  if (D_is_set[macro]) {
25575    # Preserve the white space surrounding the "#".
25576    print prefix "define", macro P[macro] D[macro]
25577    next
25578  } else {
25579    # Replace #undef with comments.  This is necessary, for example,
25580    # in the case of _POSIX_SOURCE, which is predefined and required
25581    # on some systems where configure will not decide to define it.
25582    if (defundef == "undef") {
25583      print "/*", prefix defundef, macro, "*/"
25584      next
25585    }
25586  }
25587}
25588{ print }
25589_ACAWK
25590_ACEOF
25591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25592  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25593fi # test -n "$CONFIG_HEADERS"
25594
25595
25596eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25597shift
25598for ac_tag
25599do
25600  case $ac_tag in
25601  :[FHLC]) ac_mode=$ac_tag; continue;;
25602  esac
25603  case $ac_mode$ac_tag in
25604  :[FHL]*:*);;
25605  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
25606  :[FH]-) ac_tag=-:-;;
25607  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25608  esac
25609  ac_save_IFS=$IFS
25610  IFS=:
25611  set x $ac_tag
25612  IFS=$ac_save_IFS
25613  shift
25614  ac_file=$1
25615  shift
25616
25617  case $ac_mode in
25618  :L) ac_source=$1;;
25619  :[FH])
25620    ac_file_inputs=
25621    for ac_f
25622    do
25623      case $ac_f in
25624      -) ac_f="$ac_tmp/stdin";;
25625      *) # Look for the file first in the build tree, then in the source tree
25626	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25627	 # because $ac_f cannot contain ':'.
25628	 test -f "$ac_f" ||
25629	   case $ac_f in
25630	   [\\/$]*) false;;
25631	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25632	   esac ||
25633	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
25634      esac
25635      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25636      as_fn_append ac_file_inputs " '$ac_f'"
25637    done
25638
25639    # Let's still pretend it is 'configure' which instantiates (i.e., don't
25640    # use $as_me), people would be surprised to read:
25641    #    /* config.h.  Generated by config.status.  */
25642    configure_input='Generated from '`
25643	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25644	`' by configure.'
25645    if test x"$ac_file" != x-; then
25646      configure_input="$ac_file.  $configure_input"
25647      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25648printf "%s\n" "$as_me: creating $ac_file" >&6;}
25649    fi
25650    # Neutralize special characters interpreted by sed in replacement strings.
25651    case $configure_input in #(
25652    *\&* | *\|* | *\\* )
25653       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25654       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25655    *) ac_sed_conf_input=$configure_input;;
25656    esac
25657
25658    case $ac_tag in
25659    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25660      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25661    esac
25662    ;;
25663  esac
25664
25665  ac_dir=`$as_dirname -- "$ac_file" ||
25666$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25667	 X"$ac_file" : 'X\(//\)[^/]' \| \
25668	 X"$ac_file" : 'X\(//\)$' \| \
25669	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25670printf "%s\n" X"$ac_file" |
25671    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25672	    s//\1/
25673	    q
25674	  }
25675	  /^X\(\/\/\)[^/].*/{
25676	    s//\1/
25677	    q
25678	  }
25679	  /^X\(\/\/\)$/{
25680	    s//\1/
25681	    q
25682	  }
25683	  /^X\(\/\).*/{
25684	    s//\1/
25685	    q
25686	  }
25687	  s/.*/./; q'`
25688  as_dir="$ac_dir"; as_fn_mkdir_p
25689  ac_builddir=.
25690
25691case "$ac_dir" in
25692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25693*)
25694  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25695  # A ".." for each directory in $ac_dir_suffix.
25696  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25697  case $ac_top_builddir_sub in
25698  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25699  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25700  esac ;;
25701esac
25702ac_abs_top_builddir=$ac_pwd
25703ac_abs_builddir=$ac_pwd$ac_dir_suffix
25704# for backward compatibility:
25705ac_top_builddir=$ac_top_build_prefix
25706
25707case $srcdir in
25708  .)  # We are building in place.
25709    ac_srcdir=.
25710    ac_top_srcdir=$ac_top_builddir_sub
25711    ac_abs_top_srcdir=$ac_pwd ;;
25712  [\\/]* | ?:[\\/]* )  # Absolute name.
25713    ac_srcdir=$srcdir$ac_dir_suffix;
25714    ac_top_srcdir=$srcdir
25715    ac_abs_top_srcdir=$srcdir ;;
25716  *) # Relative name.
25717    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25718    ac_top_srcdir=$ac_top_build_prefix$srcdir
25719    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25720esac
25721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25722
25723
25724  case $ac_mode in
25725  :F)
25726  #
25727  # CONFIG_FILE
25728  #
25729
25730  case $INSTALL in
25731  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25732  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25733  esac
25734  ac_MKDIR_P=$MKDIR_P
25735  case $MKDIR_P in
25736  [\\/$]* | ?:[\\/]* ) ;;
25737  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25738  esac
25739_ACEOF
25740
25741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25742# If the template does not know about datarootdir, expand it.
25743# FIXME: This hack should be removed a few years after 2.60.
25744ac_datarootdir_hack=; ac_datarootdir_seen=
25745ac_sed_dataroot='
25746/datarootdir/ {
25747  p
25748  q
25749}
25750/@datadir@/p
25751/@docdir@/p
25752/@infodir@/p
25753/@localedir@/p
25754/@mandir@/p'
25755case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25756*datarootdir*) ac_datarootdir_seen=yes;;
25757*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25759printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25760_ACEOF
25761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25762  ac_datarootdir_hack='
25763  s&@datadir@&$datadir&g
25764  s&@docdir@&$docdir&g
25765  s&@infodir@&$infodir&g
25766  s&@localedir@&$localedir&g
25767  s&@mandir@&$mandir&g
25768  s&\\\${datarootdir}&$datarootdir&g' ;;
25769esac
25770_ACEOF
25771
25772# Neutralize VPATH when '$srcdir' = '.'.
25773# Shell code in configure.ac might set extrasub.
25774# FIXME: do we really want to maintain this feature?
25775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25776ac_sed_extra="$ac_vpsub
25777$extrasub
25778_ACEOF
25779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25780:t
25781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25782s|@configure_input@|$ac_sed_conf_input|;t t
25783s&@top_builddir@&$ac_top_builddir_sub&;t t
25784s&@top_build_prefix@&$ac_top_build_prefix&;t t
25785s&@srcdir@&$ac_srcdir&;t t
25786s&@abs_srcdir@&$ac_abs_srcdir&;t t
25787s&@top_srcdir@&$ac_top_srcdir&;t t
25788s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25789s&@builddir@&$ac_builddir&;t t
25790s&@abs_builddir@&$ac_abs_builddir&;t t
25791s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25792s&@INSTALL@&$ac_INSTALL&;t t
25793s&@MKDIR_P@&$ac_MKDIR_P&;t t
25794$ac_datarootdir_hack
25795"
25796eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25797  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25798
25799test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25800  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25801  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25802      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
25804which seems to be undefined.  Please make sure it is defined" >&5
25805printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
25806which seems to be undefined.  Please make sure it is defined" >&2;}
25807
25808  rm -f "$ac_tmp/stdin"
25809  case $ac_file in
25810  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25811  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25812  esac \
25813  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25814 ;;
25815  :H)
25816  #
25817  # CONFIG_HEADER
25818  #
25819  if test x"$ac_file" != x-; then
25820    {
25821      printf "%s\n" "/* $configure_input  */" >&1 \
25822      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25823    } >"$ac_tmp/config.h" \
25824      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25825    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25826      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25827printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25828    else
25829      rm -f "$ac_file"
25830      mv "$ac_tmp/config.h" "$ac_file" \
25831	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25832    fi
25833  else
25834    printf "%s\n" "/* $configure_input  */" >&1 \
25835      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25836      || as_fn_error $? "could not create -" "$LINENO" 5
25837  fi
25838# Compute "$ac_file"'s index in $config_headers.
25839_am_arg="$ac_file"
25840_am_stamp_count=1
25841for _am_header in $config_headers :; do
25842  case $_am_header in
25843    $_am_arg | $_am_arg:* )
25844      break ;;
25845    * )
25846      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25847  esac
25848done
25849echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25850$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25851	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25852	 X"$_am_arg" : 'X\(//\)$' \| \
25853	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25854printf "%s\n" X"$_am_arg" |
25855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25856	    s//\1/
25857	    q
25858	  }
25859	  /^X\(\/\/\)[^/].*/{
25860	    s//\1/
25861	    q
25862	  }
25863	  /^X\(\/\/\)$/{
25864	    s//\1/
25865	    q
25866	  }
25867	  /^X\(\/\).*/{
25868	    s//\1/
25869	    q
25870	  }
25871	  s/.*/./; q'`/stamp-h$_am_stamp_count
25872 ;;
25873
25874  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25875printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25876 ;;
25877  esac
25878
25879
25880  case $ac_file$ac_mode in
25881    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25882  # Older Autoconf quotes --file arguments for eval, but not when files
25883  # are listed without --file.  Let's play safe and only enable the eval
25884  # if we detect the quoting.
25885  # TODO: see whether this extra hack can be removed once we start
25886  # requiring Autoconf 2.70 or later.
25887  case $CONFIG_FILES in #(
25888  *\'*) :
25889    eval set x "$CONFIG_FILES" ;; #(
25890  *) :
25891    set x $CONFIG_FILES ;; #(
25892  *) :
25893     ;;
25894esac
25895  shift
25896  # Used to flag and report bootstrapping failures.
25897  am_rc=0
25898  for am_mf
25899  do
25900    # Strip MF so we end up with the name of the file.
25901    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25902    # Check whether this is an Automake generated Makefile which includes
25903    # dependency-tracking related rules and includes.
25904    # Grep'ing the whole file directly is not great: AIX grep has a line
25905    # limit of 2048, but all sed's we know have understand at least 4000.
25906    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25907      || continue
25908    am_dirpart=`$as_dirname -- "$am_mf" ||
25909$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25910	 X"$am_mf" : 'X\(//\)[^/]' \| \
25911	 X"$am_mf" : 'X\(//\)$' \| \
25912	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25913printf "%s\n" X"$am_mf" |
25914    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25915	    s//\1/
25916	    q
25917	  }
25918	  /^X\(\/\/\)[^/].*/{
25919	    s//\1/
25920	    q
25921	  }
25922	  /^X\(\/\/\)$/{
25923	    s//\1/
25924	    q
25925	  }
25926	  /^X\(\/\).*/{
25927	    s//\1/
25928	    q
25929	  }
25930	  s/.*/./; q'`
25931    am_filepart=`$as_basename -- "$am_mf" ||
25932$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25933	 X"$am_mf" : 'X\(//\)$' \| \
25934	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25935printf "%s\n" X/"$am_mf" |
25936    sed '/^.*\/\([^/][^/]*\)\/*$/{
25937	    s//\1/
25938	    q
25939	  }
25940	  /^X\/\(\/\/\)$/{
25941	    s//\1/
25942	    q
25943	  }
25944	  /^X\/\(\/\).*/{
25945	    s//\1/
25946	    q
25947	  }
25948	  s/.*/./; q'`
25949    { echo "$as_me:$LINENO: cd "$am_dirpart" \
25950      && sed -e '/# am--include-marker/d' "$am_filepart" \
25951        | $MAKE -f - am--depfiles" >&5
25952   (cd "$am_dirpart" \
25953      && sed -e '/# am--include-marker/d' "$am_filepart" \
25954        | $MAKE -f - am--depfiles) >&5 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); } || am_rc=$?
25958  done
25959  if test $am_rc -ne 0; then
25960    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25961printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25962as_fn_error $? "Something went wrong bootstrapping makefile fragments
25963    for automatic dependency tracking.  If GNU make was not used, consider
25964    re-running the configure script with MAKE=\"gmake\" (or whatever is
25965    necessary).  You can also try re-running configure with the
25966    '--disable-dependency-tracking' option to at least be able to build
25967    the package (albeit without support for automatic dependency tracking).
25968See 'config.log' for more details" "$LINENO" 5; }
25969  fi
25970  { am_dirpart=; unset am_dirpart;}
25971  { am_filepart=; unset am_filepart;}
25972  { am_mf=; unset am_mf;}
25973  { am_rc=; unset am_rc;}
25974  rm -f conftest-deps.mk
25975}
25976 ;;
25977    "libtool":C)
25978
25979    # See if we are running on zsh, and set the options that allow our
25980    # commands through without removal of \ escapes.
25981    if test -n "${ZSH_VERSION+set}"; then
25982      setopt NO_GLOB_SUBST
25983    fi
25984
25985    cfgfile=${ofile}T
25986    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25987    $RM "$cfgfile"
25988
25989    cat <<_LT_EOF >> "$cfgfile"
25990#! $SHELL
25991# Generated automatically by $as_me ($PACKAGE) $VERSION
25992# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25993
25994# Provide generalized library-building support services.
25995# Written by Gordon Matzigkeit, 1996
25996
25997# Copyright (C) 2024 Free Software Foundation, Inc.
25998# This is free software; see the source for copying conditions.  There is NO
25999# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26000
26001# GNU Libtool is free software; you can redistribute it and/or modify
26002# it under the terms of the GNU General Public License as published by
26003# the Free Software Foundation; either version 2 of the License, or
26004# (at your option) any later version.
26005#
26006# As a special exception to the GNU General Public License, if you
26007# distribute this file as part of a program or library that is built
26008# using GNU Libtool, you may include this file under the  same
26009# distribution terms that you use for the rest of that program.
26010#
26011# GNU Libtool is distributed in the hope that it will be useful, but
26012# WITHOUT ANY WARRANTY; without even the implied warranty of
26013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26014# GNU General Public License for more details.
26015#
26016# You should have received a copy of the GNU General Public License
26017# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26018
26019
26020# The names of the tagged configurations supported by this script.
26021available_tags=''
26022
26023# Configured defaults for sys_lib_dlsearch_path munging.
26024: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26025
26026# ### BEGIN LIBTOOL CONFIG
26027
26028# Which release of libtool.m4 was used?
26029macro_version=$macro_version
26030macro_revision=$macro_revision
26031
26032# Whether or not to build shared libraries.
26033build_libtool_libs=$enable_shared
26034
26035# Whether or not to build static libraries.
26036build_old_libs=$enable_static
26037
26038# What type of objects to build.
26039pic_mode=$pic_mode
26040
26041# Whether or not to optimize for fast installation.
26042fast_install=$enable_fast_install
26043
26044# Shared archive member basename,for filename based shared library versioning on AIX.
26045shared_archive_member_spec=$shared_archive_member_spec
26046
26047# Shell to use when invoking shell scripts.
26048SHELL=$lt_SHELL
26049
26050# An echo program that protects backslashes.
26051ECHO=$lt_ECHO
26052
26053# The PATH separator for the build system.
26054PATH_SEPARATOR=$lt_PATH_SEPARATOR
26055
26056# The host system.
26057host_alias=$host_alias
26058host=$host
26059host_os=$host_os
26060
26061# The build system.
26062build_alias=$build_alias
26063build=$build
26064build_os=$build_os
26065
26066# A sed program that does not truncate output.
26067SED=$lt_SED
26068
26069# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26070Xsed="\$SED -e 1s/^X//"
26071
26072# A grep program that handles long lines.
26073GREP=$lt_GREP
26074
26075# An ERE matcher.
26076EGREP=$lt_EGREP
26077
26078# A literal string matcher.
26079FGREP=$lt_FGREP
26080
26081# A BSD- or MS-compatible name lister.
26082NM=$lt_NM
26083
26084# Whether we need soft or hard links.
26085LN_S=$lt_LN_S
26086
26087# What is the maximum length of a command?
26088max_cmd_len=$max_cmd_len
26089
26090# Object file suffix (normally "o").
26091objext=$ac_objext
26092
26093# Executable file suffix (normally "").
26094exeext=$exeext
26095
26096# whether the shell understands "unset".
26097lt_unset=$lt_unset
26098
26099# turn spaces into newlines.
26100SP2NL=$lt_lt_SP2NL
26101
26102# turn newlines into spaces.
26103NL2SP=$lt_lt_NL2SP
26104
26105# convert \$build file names to \$host format.
26106to_host_file_cmd=$lt_cv_to_host_file_cmd
26107
26108# convert \$build files to toolchain format.
26109to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26110
26111# A file(cmd) program that detects file types.
26112FILECMD=$lt_FILECMD
26113
26114# An object symbol dumper.
26115OBJDUMP=$lt_OBJDUMP
26116
26117# Method to check whether dependent libraries are shared objects.
26118deplibs_check_method=$lt_deplibs_check_method
26119
26120# Command to use when deplibs_check_method = "file_magic".
26121file_magic_cmd=$lt_file_magic_cmd
26122
26123# How to find potential files when deplibs_check_method = "file_magic".
26124file_magic_glob=$lt_file_magic_glob
26125
26126# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26127want_nocaseglob=$lt_want_nocaseglob
26128
26129# DLL creation program.
26130DLLTOOL=$lt_DLLTOOL
26131
26132# Command to associate shared and link libraries.
26133sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26134
26135# The archiver.
26136AR=$lt_AR
26137
26138# Flags to create an archive (by configure).
26139lt_ar_flags=$lt_ar_flags
26140
26141# Flags to create an archive.
26142AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
26143
26144# How to feed a file listing to the archiver.
26145archiver_list_spec=$lt_archiver_list_spec
26146
26147# A symbol stripping program.
26148STRIP=$lt_STRIP
26149
26150# Commands used to install an old-style archive.
26151RANLIB=$lt_RANLIB
26152old_postinstall_cmds=$lt_old_postinstall_cmds
26153old_postuninstall_cmds=$lt_old_postuninstall_cmds
26154
26155# Whether to use a lock for old archive extraction.
26156lock_old_archive_extraction=$lock_old_archive_extraction
26157
26158# A C compiler.
26159LTCC=$lt_CC
26160
26161# LTCC compiler flags.
26162LTCFLAGS=$lt_CFLAGS
26163
26164# Take the output of nm and produce a listing of raw symbols and C names.
26165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26166
26167# Transform the output of nm in a proper C declaration.
26168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26169
26170# Transform the output of nm into a list of symbols to manually relocate.
26171global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26172
26173# Transform the output of nm in a C name address pair.
26174global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26175
26176# Transform the output of nm in a C name address pair when lib prefix is needed.
26177global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26178
26179# The name lister interface.
26180nm_interface=$lt_lt_cv_nm_interface
26181
26182# Specify filename containing input files for \$NM.
26183nm_file_list_spec=$lt_nm_file_list_spec
26184
26185# The root where to search for dependent libraries,and where our libraries should be installed.
26186lt_sysroot=$lt_sysroot
26187
26188# Command to truncate a binary pipe.
26189lt_truncate_bin=$lt_lt_cv_truncate_bin
26190
26191# The name of the directory that contains temporary libtool files.
26192objdir=$objdir
26193
26194# Used to examine libraries when file_magic_cmd begins with "file".
26195MAGIC_CMD=$MAGIC_CMD
26196
26197# Must we lock files when doing compilation?
26198need_locks=$lt_need_locks
26199
26200# Manifest tool.
26201MANIFEST_TOOL=$lt_MANIFEST_TOOL
26202
26203# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26204DSYMUTIL=$lt_DSYMUTIL
26205
26206# Tool to change global to local symbols on Mac OS X.
26207NMEDIT=$lt_NMEDIT
26208
26209# Tool to manipulate fat objects and archives on Mac OS X.
26210LIPO=$lt_LIPO
26211
26212# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26213OTOOL=$lt_OTOOL
26214
26215# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26216OTOOL64=$lt_OTOOL64
26217
26218# Old archive suffix (normally "a").
26219libext=$libext
26220
26221# Shared library suffix (normally ".so").
26222shrext_cmds=$lt_shrext_cmds
26223
26224# The commands to extract the exported symbol list from a shared archive.
26225extract_expsyms_cmds=$lt_extract_expsyms_cmds
26226
26227# Variables whose values should be saved in libtool wrapper scripts and
26228# restored at link time.
26229variables_saved_for_relink=$lt_variables_saved_for_relink
26230
26231# Do we need the "lib" prefix for modules?
26232need_lib_prefix=$need_lib_prefix
26233
26234# Do we need a version for libraries?
26235need_version=$need_version
26236
26237# Library versioning type.
26238version_type=$version_type
26239
26240# Shared library runtime path variable.
26241runpath_var=$runpath_var
26242
26243# Shared library path variable.
26244shlibpath_var=$shlibpath_var
26245
26246# Is shlibpath searched before the hard-coded library search path?
26247shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26248
26249# Format of library name prefix.
26250libname_spec=$lt_libname_spec
26251
26252# List of archive names.  First name is the real one, the rest are links.
26253# The last name is the one that the linker finds with -lNAME
26254library_names_spec=$lt_library_names_spec
26255
26256# The coded name of the library, if different from the real name.
26257soname_spec=$lt_soname_spec
26258
26259# Permission mode override for installation of shared libraries.
26260install_override_mode=$lt_install_override_mode
26261
26262# Command to use after installation of a shared archive.
26263postinstall_cmds=$lt_postinstall_cmds
26264
26265# Command to use after uninstallation of a shared archive.
26266postuninstall_cmds=$lt_postuninstall_cmds
26267
26268# Commands used to finish a libtool library installation in a directory.
26269finish_cmds=$lt_finish_cmds
26270
26271# As "finish_cmds", except a single script fragment to be evaled but
26272# not shown.
26273finish_eval=$lt_finish_eval
26274
26275# Whether we should hardcode library paths into libraries.
26276hardcode_into_libs=$hardcode_into_libs
26277
26278# Compile-time system search path for libraries.
26279sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26280
26281# Detected run-time system search path for libraries.
26282sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26283
26284# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26285configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26286
26287# Whether dlopen is supported.
26288dlopen_support=$enable_dlopen
26289
26290# Whether dlopen of programs is supported.
26291dlopen_self=$enable_dlopen_self
26292
26293# Whether dlopen of statically linked programs is supported.
26294dlopen_self_static=$enable_dlopen_self_static
26295
26296# Commands to strip libraries.
26297old_striplib=$lt_old_striplib
26298striplib=$lt_striplib
26299
26300
26301# The linker used to build libraries.
26302LD=$lt_LD
26303
26304# How to create reloadable object files.
26305reload_flag=$lt_reload_flag
26306reload_cmds=$lt_reload_cmds
26307
26308# Commands used to build an old-style archive.
26309old_archive_cmds=$lt_old_archive_cmds
26310
26311# A language specific compiler.
26312CC=$lt_compiler
26313
26314# Is the compiler the GNU compiler?
26315with_gcc=$GCC
26316
26317# Compiler flag to turn off builtin functions.
26318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26319
26320# Additional compiler flags for building library objects.
26321pic_flag=$lt_lt_prog_compiler_pic
26322
26323# How to pass a linker flag through the compiler.
26324wl=$lt_lt_prog_compiler_wl
26325
26326# Compiler flag to prevent dynamic linking.
26327link_static_flag=$lt_lt_prog_compiler_static
26328
26329# Does compiler simultaneously support -c and -o options?
26330compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26331
26332# Whether or not to add -lc for building shared libraries.
26333build_libtool_need_lc=$archive_cmds_need_lc
26334
26335# Whether or not to disallow shared libs when runtime libs are static.
26336allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26337
26338# Compiler flag to allow reflexive dlopens.
26339export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26340
26341# Compiler flag to generate shared objects directly from archives.
26342whole_archive_flag_spec=$lt_whole_archive_flag_spec
26343
26344# Whether the compiler copes with passing no objects directly.
26345compiler_needs_object=$lt_compiler_needs_object
26346
26347# Create an old-style archive from a shared archive.
26348old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26349
26350# Create a temporary old-style archive to link instead of a shared archive.
26351old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26352
26353# Commands used to build a shared archive.
26354archive_cmds=$lt_archive_cmds
26355archive_expsym_cmds=$lt_archive_expsym_cmds
26356
26357# Commands used to build a loadable module if different from building
26358# a shared archive.
26359module_cmds=$lt_module_cmds
26360module_expsym_cmds=$lt_module_expsym_cmds
26361
26362# Whether we are building with GNU ld or not.
26363with_gnu_ld=$lt_with_gnu_ld
26364
26365# Flag that allows shared libraries with undefined symbols to be built.
26366allow_undefined_flag=$lt_allow_undefined_flag
26367
26368# Flag that enforces no undefined symbols.
26369no_undefined_flag=$lt_no_undefined_flag
26370
26371# Flag to hardcode \$libdir into a binary during linking.
26372# This must work even if \$libdir does not exist
26373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26374
26375# Whether we need a single "-rpath" flag with a separated argument.
26376hardcode_libdir_separator=$lt_hardcode_libdir_separator
26377
26378# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26379# DIR into the resulting binary.
26380hardcode_direct=$hardcode_direct
26381
26382# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26383# DIR into the resulting binary and the resulting library dependency is
26384# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
26385# library is relocated.
26386hardcode_direct_absolute=$hardcode_direct_absolute
26387
26388# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26389# into the resulting binary.
26390hardcode_minus_L=$hardcode_minus_L
26391
26392# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26393# into the resulting binary.
26394hardcode_shlibpath_var=$hardcode_shlibpath_var
26395
26396# Set to "yes" if building a shared library automatically hardcodes DIR
26397# into the library and all subsequent libraries and executables linked
26398# against it.
26399hardcode_automatic=$hardcode_automatic
26400
26401# Set to yes if linker adds runtime paths of dependent libraries
26402# to runtime path list.
26403inherit_rpath=$inherit_rpath
26404
26405# Whether libtool must link a program against all its dependency libraries.
26406link_all_deplibs=$link_all_deplibs
26407
26408# Set to "yes" if exported symbols are required.
26409always_export_symbols=$always_export_symbols
26410
26411# The commands to list exported symbols.
26412export_symbols_cmds=$lt_export_symbols_cmds
26413
26414# Symbols that should not be listed in the preloaded symbols.
26415exclude_expsyms=$lt_exclude_expsyms
26416
26417# Symbols that must always be exported.
26418include_expsyms=$lt_include_expsyms
26419
26420# Commands necessary for linking programs (against libraries) with templates.
26421prelink_cmds=$lt_prelink_cmds
26422
26423# Commands necessary for finishing linking programs.
26424postlink_cmds=$lt_postlink_cmds
26425
26426# Specify filename containing input files.
26427file_list_spec=$lt_file_list_spec
26428
26429# How to hardcode a shared library path into an executable.
26430hardcode_action=$hardcode_action
26431
26432# ### END LIBTOOL CONFIG
26433
26434_LT_EOF
26435
26436    cat <<'_LT_EOF' >> "$cfgfile"
26437
26438# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26439
26440# func_munge_path_list VARIABLE PATH
26441# -----------------------------------
26442# VARIABLE is name of variable containing _space_ separated list of
26443# directories to be munged by the contents of PATH, which is string
26444# having a format:
26445# "DIR[:DIR]:"
26446#       string "DIR[ DIR]" will be prepended to VARIABLE
26447# ":DIR[:DIR]"
26448#       string "DIR[ DIR]" will be appended to VARIABLE
26449# "DIRP[:DIRP]::[DIRA:]DIRA"
26450#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26451#       "DIRA[ DIRA]" will be appended to VARIABLE
26452# "DIR[:DIR]"
26453#       VARIABLE will be replaced by "DIR[ DIR]"
26454func_munge_path_list ()
26455{
26456    case x$2 in
26457    x)
26458        ;;
26459    *:)
26460        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26461        ;;
26462    x:*)
26463        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26464        ;;
26465    *::*)
26466        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26467        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26468        ;;
26469    *)
26470        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26471        ;;
26472    esac
26473}
26474
26475
26476# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26477func_cc_basename ()
26478{
26479    for cc_temp in $*""; do
26480      case $cc_temp in
26481        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26482        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26483        \-*) ;;
26484        *) break;;
26485      esac
26486    done
26487    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26488}
26489
26490
26491# ### END FUNCTIONS SHARED WITH CONFIGURE
26492
26493_LT_EOF
26494
26495  case $host_os in
26496  aix3*)
26497    cat <<\_LT_EOF >> "$cfgfile"
26498# AIX sometimes has problems with the GCC collect2 program.  For some
26499# reason, if we set the COLLECT_NAMES environment variable, the problems
26500# vanish in a puff of smoke.
26501if test set != "${COLLECT_NAMES+set}"; then
26502  COLLECT_NAMES=
26503  export COLLECT_NAMES
26504fi
26505_LT_EOF
26506    ;;
26507  esac
26508
26509
26510
26511ltmain=$ac_aux_dir/ltmain.sh
26512
26513
26514  # We use sed instead of cat because bash on DJGPP gets confused if
26515  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26516  # text mode, it properly converts lines to CR/LF.  This bash problem
26517  # is reportedly fixed, but why not run on old versions too?
26518  $SED '$q' "$ltmain" >> "$cfgfile" \
26519     || (rm -f "$cfgfile"; exit 1)
26520
26521   mv -f "$cfgfile" "$ofile" ||
26522    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26523  chmod +x "$ofile"
26524
26525 ;;
26526
26527  esac
26528done # for ac_tag
26529
26530
26531as_fn_exit 0
26532_ACEOF
26533ac_clean_files=$ac_clean_files_save
26534
26535test $ac_write_fail = 0 ||
26536  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26537
26538
26539# configure is writing to config.log, and then calls config.status.
26540# config.status does its own redirection, appending to config.log.
26541# Unfortunately, on DOS this fails, as config.log is still kept open
26542# by configure, so config.status won't be able to write to it; its
26543# output is simply discarded.  So we exec the FD to /dev/null,
26544# effectively closing config.log, so it can be properly (re)opened and
26545# appended to by config.status.  When coming back to configure, we
26546# need to make the FD available again.
26547if test "$no_create" != yes; then
26548  ac_cs_success=:
26549  ac_config_status_args=
26550  test "$silent" = yes &&
26551    ac_config_status_args="$ac_config_status_args --quiet"
26552  exec 5>/dev/null
26553  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26554  exec 5>>config.log
26555  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26556  # would make configure fail if this is the last instruction.
26557  $ac_cs_success || as_fn_exit 1
26558fi
26559if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26561printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26562fi
26563
26564
26565echo ""
26566echo "$PACKAGE_STRING will be built with the following settings:"
26567echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
26568echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
26569echo " Threading support:                       "$xthreads
26570echo " Use Threads safe API:                    "$mtsafeapi
26571echo " Use thread safety constructor:           "$USE_THREAD_SAFETY_CONSTRUCTOR
26572echo " XCMS:                                    "$XCMS
26573echo " Internationalization support:            "$XLOCALE
26574echo " XF86BigFont support:                     "$XF86BIGFONT
26575echo " XKB support:                             "$XKB
26576echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
26577echo " Compose table cache enabled:             "$COMPOSECACHE
26578echo " Functional specs building enabled:       "$build_specs
26579echo ""
26580
26581