1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libXdmcp 1.1.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/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/libxdmcp/-/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='libXdmcp'
677PACKAGE_TARNAME='libXdmcp'
678PACKAGE_VERSION='1.1.5'
679PACKAGE_STRING='libXdmcp 1.1.5'
680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/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_subst_vars='am__EXEEXT_FALSE
717am__EXEEXT_TRUE
718LTLIBOBJS
719LIBOBJS
720ENABLE_UNIT_TESTS_FALSE
721ENABLE_UNIT_TESTS_TRUE
722XORG_MALLOC_DEBUG_ENV
723MAKE_LINT_LIB_FALSE
724MAKE_LINT_LIB_TRUE
725LINTLIB
726LINT_FALSE
727LINT_TRUE
728LINT_FLAGS
729LINT
730HASXDMAUTH_FALSE
731HASXDMAUTH_TRUE
732XDMCP_LIBS
733XDMCP_CFLAGS
734LIBBSD_LIBS
735LIBBSD_CFLAGS
736HAVE_STYLESHEETS_FALSE
737HAVE_STYLESHEETS_TRUE
738XSL_STYLESHEET
739STYLESHEET_SRCDIR
740XORG_SGML_PATH
741HAVE_XSLTPROC_FALSE
742HAVE_XSLTPROC_TRUE
743XSLTPROC
744HAVE_FOP_FALSE
745HAVE_FOP_TRUE
746FOP
747HAVE_XMLTO_FALSE
748HAVE_XMLTO_TRUE
749HAVE_XMLTO_TEXT_FALSE
750HAVE_XMLTO_TEXT_TRUE
751XMLTO
752ENABLE_DOCS_FALSE
753ENABLE_DOCS_TRUE
754MAN_SUBSTS
755XORG_MAN_PAGE
756ADMIN_MAN_DIR
757DRIVER_MAN_DIR
758MISC_MAN_DIR
759FILE_MAN_DIR
760LIB_MAN_DIR
761APP_MAN_DIR
762ADMIN_MAN_SUFFIX
763DRIVER_MAN_SUFFIX
764MISC_MAN_SUFFIX
765FILE_MAN_SUFFIX
766LIB_MAN_SUFFIX
767APP_MAN_SUFFIX
768INSTALL_CMD
769PKG_CONFIG_LIBDIR
770PKG_CONFIG_PATH
771PKG_CONFIG
772CHANGELOG_CMD
773STRICT_CFLAGS
774CWARNFLAGS
775BASE_CFLAGS
776LT_SYS_LIBRARY_PATH
777OTOOL64
778OTOOL
779LIPO
780NMEDIT
781DSYMUTIL
782MANIFEST_TOOL
783RANLIB
784ac_ct_AR
785AR
786FILECMD
787LN_S
788NM
789ac_ct_DUMPBIN
790DUMPBIN
791LD
792FGREP
793EGREP
794GREP
795SED
796host_os
797host_vendor
798host_cpu
799host
800build_os
801build_vendor
802build_cpu
803build
804LIBTOOL
805OBJDUMP
806DLLTOOL
807AS
808AM_BACKSLASH
809AM_DEFAULT_VERBOSITY
810AM_DEFAULT_V
811AM_V
812CSCOPE
813ETAGS
814CTAGS
815am__fastdepCC_FALSE
816am__fastdepCC_TRUE
817CCDEPMODE
818am__nodep
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__include
823DEPDIR
824am__untar
825am__tar
826AMTAR
827am__leading_dot
828SET_MAKE
829AWK
830mkdir_p
831MKDIR_P
832INSTALL_STRIP_PROGRAM
833STRIP
834install_sh
835MAKEINFO
836AUTOHEADER
837AUTOMAKE
838AUTOCONF
839ACLOCAL
840VERSION
841PACKAGE
842CYGPATH_W
843am__isrc
844INSTALL_DATA
845INSTALL_SCRIPT
846INSTALL_PROGRAM
847OBJEXT
848EXEEXT
849ac_ct_CC
850CPPFLAGS
851LDFLAGS
852CFLAGS
853CC
854target_alias
855host_alias
856build_alias
857LIBS
858ECHO_T
859ECHO_N
860ECHO_C
861DEFS
862mandir
863localedir
864libdir
865psdir
866pdfdir
867dvidir
868htmldir
869infodir
870docdir
871oldincludedir
872includedir
873runstatedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_URL
886PACKAGE_BUGREPORT
887PACKAGE_STRING
888PACKAGE_VERSION
889PACKAGE_TARNAME
890PACKAGE_NAME
891PATH_SEPARATOR
892SHELL
893am__quote'
894ac_subst_files=''
895ac_user_opts='
896enable_option_checking
897enable_dependency_tracking
898enable_silent_rules
899enable_shared
900enable_static
901with_pic
902enable_fast_install
903with_aix_soname
904with_gnu_ld
905with_sysroot
906enable_libtool_lock
907enable_selective_werror
908enable_strict_compilation
909enable_docs
910with_xmlto
911with_fop
912with_xsltproc
913with_lint
914enable_lint_library
915enable_unit_tests
916'
917      ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
923LIBS
924CPPFLAGS
925LT_SYS_LIBRARY_PATH
926PKG_CONFIG
927PKG_CONFIG_PATH
928PKG_CONFIG_LIBDIR
929XMLTO
930FOP
931XSLTPROC
932LIBBSD_CFLAGS
933LIBBSD_LIBS
934XDMCP_CFLAGS
935XDMCP_LIBS
936LINT
937LINT_FLAGS
938XORG_MALLOC_DEBUG_ENV'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977runstatedir='${localstatedir}/run'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *=)   ac_optarg= ;;
1004  *)    ac_optarg=yes ;;
1005  esac
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: '$ac_useropt'"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: '$ac_useropt'"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -runstatedir | --runstatedir | --runstatedi | --runstated \
1229  | --runstate | --runstat | --runsta | --runst | --runs \
1230  | --run | --ru | --r)
1231    ac_prev=runstatedir ;;
1232  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234  | --run=* | --ru=* | --r=*)
1235    runstatedir=$ac_optarg ;;
1236
1237  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238    ac_prev=sbindir ;;
1239  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240  | --sbi=* | --sb=*)
1241    sbindir=$ac_optarg ;;
1242
1243  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245  | --sharedst | --shareds | --shared | --share | --shar \
1246  | --sha | --sh)
1247    ac_prev=sharedstatedir ;;
1248  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251  | --sha=* | --sh=*)
1252    sharedstatedir=$ac_optarg ;;
1253
1254  -site | --site | --sit)
1255    ac_prev=site ;;
1256  -site=* | --site=* | --sit=*)
1257    site=$ac_optarg ;;
1258
1259  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260    ac_prev=srcdir ;;
1261  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262    srcdir=$ac_optarg ;;
1263
1264  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265  | --syscon | --sysco | --sysc | --sys | --sy)
1266    ac_prev=sysconfdir ;;
1267  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269    sysconfdir=$ac_optarg ;;
1270
1271  -target | --target | --targe | --targ | --tar | --ta | --t)
1272    ac_prev=target_alias ;;
1273  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274    target_alias=$ac_optarg ;;
1275
1276  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277    verbose=yes ;;
1278
1279  -version | --version | --versio | --versi | --vers | -V)
1280    ac_init_version=: ;;
1281
1282  -with-* | --with-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: '$ac_useropt'"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=\$ac_optarg ;;
1297
1298  -without-* | --without-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      as_fn_error $? "invalid package name: '$ac_useropt'"
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=no ;;
1313
1314  --x)
1315    # Obsolete; use --with-x.
1316    with_x=yes ;;
1317
1318  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319  | --x-incl | --x-inc | --x-in | --x-i)
1320    ac_prev=x_includes ;;
1321  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323    x_includes=$ac_optarg ;;
1324
1325  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327    ac_prev=x_libraries ;;
1328  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330    x_libraries=$ac_optarg ;;
1331
1332  -*) as_fn_error $? "unrecognized option: '$ac_option'
1333Try '$0 --help' for more information"
1334    ;;
1335
1336  *=*)
1337    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338    # Reject names that are not valid shell variable names.
1339    case $ac_envvar in #(
1340      '' | [0-9]* | *[!_$as_cr_alnum]* )
1341      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1342    esac
1343    eval $ac_envvar=\$ac_optarg
1344    export $ac_envvar ;;
1345
1346  *)
1347    # FIXME: should be removed in autoconf 3.0.
1348    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352    ;;
1353
1354  esac
1355done
1356
1357if test -n "$ac_prev"; then
1358  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359  as_fn_error $? "missing argument to $ac_option"
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363  case $enable_option_checking in
1364    no) ;;
1365    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367  esac
1368fi
1369
1370# Check all directory arguments for consistency.
1371for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372		datadir sysconfdir sharedstatedir localstatedir includedir \
1373		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374		libdir localedir mandir runstatedir
1375do
1376  eval ac_val=\$$ac_var
1377  # Remove trailing slashes.
1378  case $ac_val in
1379    */ )
1380      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381      eval $ac_var=\$ac_val;;
1382  esac
1383  # Be sure to have absolute directory names.
1384  case $ac_val in
1385    [\\/$]* | ?:[\\/]* )  continue;;
1386    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387  esac
1388  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389done
1390
1391# There might be people who depend on the old broken behavior: '$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400  if test "x$build_alias" = x; then
1401    cross_compiling=maybe
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  as_fn_error $? "working directory cannot be determined"
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423  ac_srcdir_defaulted=yes
1424  # Try the directory containing this script, then the parent directory.
1425  ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428	 X"$as_myself" : 'X\(//\)$' \| \
1429	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430printf "%s\n" X"$as_myself" |
1431    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)[^/].*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)$/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\).*/{
1444	    s//\1/
1445	    q
1446	  }
1447	  s/.*/./; q'`
1448  srcdir=$ac_confdir
1449  if test ! -r "$srcdir/$ac_unique_file"; then
1450    srcdir=..
1451  fi
1452else
1453  ac_srcdir_defaulted=no
1454fi
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458fi
1459ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487'configure' configures libXdmcp 1.1.5 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print 'checking ...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for '--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, 'make install' will install all the files in
1514'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than '$ac_default_prefix' using '--prefix',
1516for instance '--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXdmcp]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libXdmcp 1.1.5:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-dependency-tracking
1567                          do not reject slow dependency extractors
1568  --disable-dependency-tracking
1569                          speeds up one-time build
1570  --enable-silent-rules   less verbose build output (undo: "make V=1")
1571  --disable-silent-rules  verbose build output (undo: "make V=0")
1572  --enable-shared[=PKGS]  build shared libraries [default=yes]
1573  --enable-static[=PKGS]  build static libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --disable-selective-werror
1578                          Turn off selective compiler errors. (default:
1579                          enabled)
1580  --enable-strict-compilation
1581                          Enable all warnings from compiler and make them
1582                          errors (default: disabled)
1583  --enable-docs           Enable building the documentation (default: yes)
1584  --enable-lint-library   Create lint library (default: disabled)
1585  --enable-unit-tests     Enable building unit test cases (default: yes)
1586
1587Optional Packages:
1588  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1591                          both]
1592  --with-aix-soname=aix|svr4|both
1593                          shared library versioning (aka "SONAME") variant to
1594                          provide on AIX, [default=aix].
1595  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1596  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1597                          compiler's sysroot if not specified).
1598  --with-xmlto            Use xmlto to regenerate documentation (default:
1599                          auto)
1600  --with-fop              Use fop to regenerate documentation (default: auto)
1601  --with-xsltproc         Use xsltproc for the transformation of XML documents
1602                          (default: auto)
1603  --with-lint             Use a lint-style source code checker (default:
1604                          disabled)
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  LIBS        libraries to pass to the linker, e.g. -l<library>
1612  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613              you have headers in a nonstandard directory <include dir>
1614  LT_SYS_LIBRARY_PATH
1615              User-defined run-time library search path.
1616  PKG_CONFIG  path to pkg-config utility
1617  PKG_CONFIG_PATH
1618              directories to add to pkg-config's search path
1619  PKG_CONFIG_LIBDIR
1620              path overriding pkg-config's built-in search path
1621  XMLTO       Path to xmlto command
1622  FOP         Path to fop command
1623  XSLTPROC    Path to xsltproc command
1624  LIBBSD_CFLAGS
1625              C compiler flags for LIBBSD, overriding pkg-config
1626  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1627  XDMCP_CFLAGS
1628              C compiler flags for XDMCP, overriding pkg-config
1629  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1630  LINT        Path to a lint-style command
1631  LINT_FLAGS  Flags for the lint-style command
1632  XORG_MALLOC_DEBUG_ENV
1633              Environment variables to enable memory checking in tests
1634
1635Use these variables to override the choices made by 'configure' or to help
1636it to find libraries and programs with nonstandard names/locations.
1637
1638Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>.
1639_ACEOF
1640ac_status=$?
1641fi
1642
1643if test "$ac_init_help" = "recursive"; then
1644  # If there are subdirs, report their specific --help.
1645  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646    test -d "$ac_dir" ||
1647      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648      continue
1649    ac_builddir=.
1650
1651case "$ac_dir" in
1652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653*)
1654  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1655  # A ".." for each directory in $ac_dir_suffix.
1656  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657  case $ac_top_builddir_sub in
1658  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660  esac ;;
1661esac
1662ac_abs_top_builddir=$ac_pwd
1663ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664# for backward compatibility:
1665ac_top_builddir=$ac_top_build_prefix
1666
1667case $srcdir in
1668  .)  # We are building in place.
1669    ac_srcdir=.
1670    ac_top_srcdir=$ac_top_builddir_sub
1671    ac_abs_top_srcdir=$ac_pwd ;;
1672  [\\/]* | ?:[\\/]* )  # Absolute name.
1673    ac_srcdir=$srcdir$ac_dir_suffix;
1674    ac_top_srcdir=$srcdir
1675    ac_abs_top_srcdir=$srcdir ;;
1676  *) # Relative name.
1677    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678    ac_top_srcdir=$ac_top_build_prefix$srcdir
1679    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680esac
1681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
1683    cd "$ac_dir" || { ac_status=$?; continue; }
1684    # Check for configure.gnu first; this name is used for a wrapper for
1685    # Metaconfig's "Configure" on case-insensitive file systems.
1686    if test -f "$ac_srcdir/configure.gnu"; then
1687      echo &&
1688      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689    elif test -f "$ac_srcdir/configure"; then
1690      echo &&
1691      $SHELL "$ac_srcdir/configure" --help=recursive
1692    else
1693      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694    fi || ac_status=$?
1695    cd "$ac_pwd" || { ac_status=$?; break; }
1696  done
1697fi
1698
1699test -n "$ac_init_help" && exit $ac_status
1700if $ac_init_version; then
1701  cat <<\_ACEOF
1702libXdmcp configure 1.1.5
1703generated by GNU Autoconf 2.72
1704
1705Copyright (C) 2023 Free Software Foundation, Inc.
1706This configure script is free software; the Free Software Foundation
1707gives unlimited permission to copy, distribute and modify it.
1708_ACEOF
1709  exit
1710fi
1711
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
1715
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest.beam
1723  if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729printf "%s\n" "$ac_try_echo"; } >&5
1730  (eval "$ac_compile") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest.$ac_objext
1742then :
1743  ac_retval=0
1744else case e in #(
1745  e) printf "%s\n" "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748	ac_retval=1 ;;
1749esac
1750fi
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_compile
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764printf %s "checking for $2... " >&6; }
1765if eval test \${$3+y}
1766then :
1767  printf %s "(cached) " >&6
1768else case e in #(
1769  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"
1775then :
1776  eval "$3=yes"
1777else case e in #(
1778  e) eval "$3=no" ;;
1779esac
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1782esac
1783fi
1784eval ac_res=\$$3
1785	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786printf "%s\n" "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804printf "%s\n" "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest$ac_exeext && {
1817	 test "$cross_compiling" = yes ||
1818	 test -x conftest$ac_exeext
1819       }
1820then :
1821  ac_retval=0
1822else case e in #(
1823  e) printf "%s\n" "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826	ac_retval=1 ;;
1827esac
1828fi
1829  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831  # interfere with the next link command; also delete a directory that is
1832  # left behind by Apple's compiler.  We do this before executing the actions.
1833  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_link
1838
1839# ac_fn_c_check_func LINENO FUNC VAR
1840# ----------------------------------
1841# Tests whether FUNC exists, setting the cache variable VAR accordingly
1842ac_fn_c_check_func ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846printf %s "checking for $2... " >&6; }
1847if eval test \${$3+y}
1848then :
1849  printf %s "(cached) " >&6
1850else case e in #(
1851  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h.  */
1853/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855#define $2 innocuous_$2
1856
1857/* System header to define __stub macros and hopefully few prototypes,
1858   which can conflict with char $2 (void); below.  */
1859
1860#include <limits.h>
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864   Use char because int might match the return type of a GCC
1865   builtin and then its argument prototype would still apply.  */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 (void);
1870/* The GNU C library defines this for functions which it implements
1871    to always fail with ENOSYS.  Some functions are actually named
1872    something starting with __ and the normal name is an alias.  */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main (void)
1879{
1880return $2 ();
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"
1886then :
1887  eval "$3=yes"
1888else case e in #(
1889  e) eval "$3=no" ;;
1890esac
1891fi
1892rm -f core conftest.err conftest.$ac_objext conftest.beam \
1893    conftest$ac_exeext conftest.$ac_ext ;;
1894esac
1895fi
1896eval ac_res=\$$3
1897	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898printf "%s\n" "$ac_res" >&6; }
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901} # ac_fn_c_check_func
1902
1903# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1904# ------------------------------------------------------------------
1905# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1906# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1907ac_fn_check_decl ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  as_decl_name=`echo $2|sed 's/ *(.*//'`
1911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1912printf %s "checking whether $as_decl_name is declared... " >&6; }
1913if eval test \${$3+y}
1914then :
1915  printf %s "(cached) " >&6
1916else case e in #(
1917  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1918  eval ac_save_FLAGS=\$$6
1919  as_fn_append $6 " $5"
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$4
1923int
1924main (void)
1925{
1926#ifndef $as_decl_name
1927#ifdef __cplusplus
1928  (void) $as_decl_use;
1929#else
1930  (void) $as_decl_name;
1931#endif
1932#endif
1933
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"
1939then :
1940  eval "$3=yes"
1941else case e in #(
1942  e) eval "$3=no" ;;
1943esac
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946  eval $6=\$ac_save_FLAGS
1947 ;;
1948esac
1949fi
1950eval ac_res=\$$3
1951	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952printf "%s\n" "$ac_res" >&6; }
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955} # ac_fn_check_decl
1956ac_configure_args_raw=
1957for ac_arg
1958do
1959  case $ac_arg in
1960  *\'*)
1961    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1962  esac
1963  as_fn_append ac_configure_args_raw " '$ac_arg'"
1964done
1965
1966case $ac_configure_args_raw in
1967  *$as_nl*)
1968    ac_safe_unquote= ;;
1969  *)
1970    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1971    ac_unsafe_a="$ac_unsafe_z#~"
1972    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1973    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1974esac
1975
1976cat >config.log <<_ACEOF
1977This file contains any messages produced by compilers while
1978running configure, to aid debugging if configure makes a mistake.
1979
1980It was created by libXdmcp $as_me 1.1.5, which was
1981generated by GNU Autoconf 2.72.  Invocation command line was
1982
1983  $ $0$ac_configure_args_raw
1984
1985_ACEOF
1986exec 5>>config.log
1987{
1988cat <<_ASUNAME
1989## --------- ##
1990## Platform. ##
1991## --------- ##
1992
1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
2002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
2010_ASUNAME
2011
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015  IFS=$as_save_IFS
2016  case $as_dir in #(((
2017    '') as_dir=./ ;;
2018    */) ;;
2019    *) as_dir=$as_dir/ ;;
2020  esac
2021    printf "%s\n" "PATH: $as_dir"
2022  done
2023IFS=$as_save_IFS
2024
2025} >&5
2026
2027cat >&5 <<_ACEOF
2028
2029
2030## ----------- ##
2031## Core tests. ##
2032## ----------- ##
2033
2034_ACEOF
2035
2036
2037# Keep a trace of the command line.
2038# Strip out --no-create and --no-recursion so they do not pile up.
2039# Strip out --silent because we don't want to record it for future runs.
2040# Also quote any args containing shell meta-characters.
2041# Make two passes to allow for proper duplicate-argument suppression.
2042ac_configure_args=
2043ac_configure_args0=
2044ac_configure_args1=
2045ac_must_keep_next=false
2046for ac_pass in 1 2
2047do
2048  for ac_arg
2049  do
2050    case $ac_arg in
2051    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053    | -silent | --silent | --silen | --sile | --sil)
2054      continue ;;
2055    *\'*)
2056      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057    esac
2058    case $ac_pass in
2059    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060    2)
2061      as_fn_append ac_configure_args1 " '$ac_arg'"
2062      if test $ac_must_keep_next = true; then
2063	ac_must_keep_next=false # Got value, back to normal.
2064      else
2065	case $ac_arg in
2066	  *=* | --config-cache | -C | -disable-* | --disable-* \
2067	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069	  | -with-* | --with-* | -without-* | --without-* | --x)
2070	    case "$ac_configure_args0 " in
2071	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072	    esac
2073	    ;;
2074	  -* ) ac_must_keep_next=true ;;
2075	esac
2076      fi
2077      as_fn_append ac_configure_args " '$ac_arg'"
2078      ;;
2079    esac
2080  done
2081done
2082{ ac_configure_args0=; unset ac_configure_args0;}
2083{ ac_configure_args1=; unset ac_configure_args1;}
2084
2085# When interrupted or exit'd, cleanup temporary files, and complete
2086# config.log.  We remove comments because anyway the quotes in there
2087# would cause problems or look ugly.
2088# WARNING: Use '\'' to represent an apostrophe within the trap.
2089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090trap 'exit_status=$?
2091  # Sanitize IFS.
2092  IFS=" ""	$as_nl"
2093  # Save into config.log some information that might help in debugging.
2094  {
2095    echo
2096
2097    printf "%s\n" "## ---------------- ##
2098## Cache variables. ##
2099## ---------------- ##"
2100    echo
2101    # The following way of writing the cache mishandles newlines in values,
2102(
2103  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104    eval ac_val=\$$ac_var
2105    case $ac_val in #(
2106    *${as_nl}*)
2107      case $ac_var in #(
2108      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110      esac
2111      case $ac_var in #(
2112      _ | IFS | as_nl) ;; #(
2113      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114      *) { eval $ac_var=; unset $ac_var;} ;;
2115      esac ;;
2116    esac
2117  done
2118  (set) 2>&1 |
2119    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120    *${as_nl}ac_space=\ *)
2121      sed -n \
2122	"s/'\''/'\''\\\\'\'''\''/g;
2123	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124      ;; #(
2125    *)
2126      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2127      ;;
2128    esac |
2129    sort
2130)
2131    echo
2132
2133    printf "%s\n" "## ----------------- ##
2134## Output variables. ##
2135## ----------------- ##"
2136    echo
2137    for ac_var in $ac_subst_vars
2138    do
2139      eval ac_val=\$$ac_var
2140      case $ac_val in
2141      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142      esac
2143      printf "%s\n" "$ac_var='\''$ac_val'\''"
2144    done | sort
2145    echo
2146
2147    if test -n "$ac_subst_files"; then
2148      printf "%s\n" "## ------------------- ##
2149## File substitutions. ##
2150## ------------------- ##"
2151      echo
2152      for ac_var in $ac_subst_files
2153      do
2154	eval ac_val=\$$ac_var
2155	case $ac_val in
2156	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157	esac
2158	printf "%s\n" "$ac_var='\''$ac_val'\''"
2159      done | sort
2160      echo
2161    fi
2162
2163    if test -s confdefs.h; then
2164      printf "%s\n" "## ----------- ##
2165## confdefs.h. ##
2166## ----------- ##"
2167      echo
2168      cat confdefs.h
2169      echo
2170    fi
2171    test "$ac_signal" != 0 &&
2172      printf "%s\n" "$as_me: caught signal $ac_signal"
2173    printf "%s\n" "$as_me: exit $exit_status"
2174  } >&5
2175  rm -f core *.core core.conftest.* &&
2176    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177    exit $exit_status
2178' 0
2179for ac_signal in 1 2 13 15; do
2180  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181done
2182ac_signal=0
2183
2184# confdefs.h avoids OS command line length limits that DEFS can exceed.
2185rm -f -r conftest* confdefs.h
2186
2187printf "%s\n" "/* confdefs.h */" > confdefs.h
2188
2189# Predefined preprocessor variables.
2190
2191printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2192
2193printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2194
2195printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2196
2197printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2198
2199printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2200
2201printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2202
2203
2204# Let the site file select an alternate cache file if it wants to.
2205# Prefer an explicitly selected file to automatically selected ones.
2206if test -n "$CONFIG_SITE"; then
2207  ac_site_files="$CONFIG_SITE"
2208elif test "x$prefix" != xNONE; then
2209  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2210else
2211  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2212fi
2213
2214for ac_site_file in $ac_site_files
2215do
2216  case $ac_site_file in #(
2217  */*) :
2218     ;; #(
2219  *) :
2220    ac_site_file=./$ac_site_file ;;
2221esac
2222  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2223    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2225    sed 's/^/| /' "$ac_site_file" >&5
2226    . "$ac_site_file" \
2227      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2228printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2229as_fn_error $? "failed to load site script $ac_site_file
2230See 'config.log' for more details" "$LINENO" 5; }
2231  fi
2232done
2233
2234if test -r "$cache_file"; then
2235  # Some versions of bash will fail to source /dev/null (special files
2236  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2237  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2240    case $cache_file in
2241      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242      *)                      . "./$cache_file";;
2243    esac
2244  fi
2245else
2246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2248  >$cache_file
2249fi
2250
2251as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2252# Test code for whether the C compiler supports C89 (global declarations)
2253ac_c_conftest_c89_globals='
2254/* Does the compiler advertise C89 conformance?
2255   Do not test the value of __STDC__, because some compilers set it to 0
2256   while being otherwise adequately conformant. */
2257#if !defined __STDC__
2258# error "Compiler does not advertise C89 conformance"
2259#endif
2260
2261#include <stddef.h>
2262#include <stdarg.h>
2263struct stat;
2264/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2265struct buf { int x; };
2266struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2267static char *e (char **p, int i)
2268{
2269  return p[i];
2270}
2271static char *f (char * (*g) (char **, int), char **p, ...)
2272{
2273  char *s;
2274  va_list v;
2275  va_start (v,p);
2276  s = g (p, va_arg (v,int));
2277  va_end (v);
2278  return s;
2279}
2280
2281/* C89 style stringification. */
2282#define noexpand_stringify(a) #a
2283const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2284
2285/* C89 style token pasting.  Exercises some of the corner cases that
2286   e.g. old MSVC gets wrong, but not very hard. */
2287#define noexpand_concat(a,b) a##b
2288#define expand_concat(a,b) noexpand_concat(a,b)
2289extern int vA;
2290extern int vbee;
2291#define aye A
2292#define bee B
2293int *pvA = &expand_concat(v,aye);
2294int *pvbee = &noexpand_concat(v,bee);
2295
2296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2297   function prototypes and stuff, but not \xHH hex character constants.
2298   These do not provoke an error unfortunately, instead are silently treated
2299   as an "x".  The following induces an error, until -std is added to get
2300   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2301   array size at least.  It is necessary to write \x00 == 0 to get something
2302   that is true only with -std.  */
2303int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2304
2305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2306   inside strings and character constants.  */
2307#define FOO(x) '\''x'\''
2308int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2309
2310int test (int i, double x);
2311struct s1 {int (*f) (int a);};
2312struct s2 {int (*f) (double a);};
2313int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2314               int, int);'
2315
2316# Test code for whether the C compiler supports C89 (body of main).
2317ac_c_conftest_c89_main='
2318ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2319'
2320
2321# Test code for whether the C compiler supports C99 (global declarations)
2322ac_c_conftest_c99_globals='
2323/* Does the compiler advertise C99 conformance? */
2324#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2325# error "Compiler does not advertise C99 conformance"
2326#endif
2327
2328// See if C++-style comments work.
2329
2330#include <stdbool.h>
2331extern int puts (const char *);
2332extern int printf (const char *, ...);
2333extern int dprintf (int, const char *, ...);
2334extern void *malloc (size_t);
2335extern void free (void *);
2336
2337// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2338// dprintf is used instead of fprintf to avoid needing to declare
2339// FILE and stderr.
2340#define debug(...) dprintf (2, __VA_ARGS__)
2341#define showlist(...) puts (#__VA_ARGS__)
2342#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2343static void
2344test_varargs_macros (void)
2345{
2346  int x = 1234;
2347  int y = 5678;
2348  debug ("Flag");
2349  debug ("X = %d\n", x);
2350  showlist (The first, second, and third items.);
2351  report (x>y, "x is %d but y is %d", x, y);
2352}
2353
2354// Check long long types.
2355#define BIG64 18446744073709551615ull
2356#define BIG32 4294967295ul
2357#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2358#if !BIG_OK
2359  #error "your preprocessor is broken"
2360#endif
2361#if BIG_OK
2362#else
2363  #error "your preprocessor is broken"
2364#endif
2365static long long int bignum = -9223372036854775807LL;
2366static unsigned long long int ubignum = BIG64;
2367
2368struct incomplete_array
2369{
2370  int datasize;
2371  double data[];
2372};
2373
2374struct named_init {
2375  int number;
2376  const wchar_t *name;
2377  double average;
2378};
2379
2380typedef const char *ccp;
2381
2382static inline int
2383test_restrict (ccp restrict text)
2384{
2385  // Iterate through items via the restricted pointer.
2386  // Also check for declarations in for loops.
2387  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2388    continue;
2389  return 0;
2390}
2391
2392// Check varargs and va_copy.
2393static bool
2394test_varargs (const char *format, ...)
2395{
2396  va_list args;
2397  va_start (args, format);
2398  va_list args_copy;
2399  va_copy (args_copy, args);
2400
2401  const char *str = "";
2402  int number = 0;
2403  float fnumber = 0;
2404
2405  while (*format)
2406    {
2407      switch (*format++)
2408	{
2409	case '\''s'\'': // string
2410	  str = va_arg (args_copy, const char *);
2411	  break;
2412	case '\''d'\'': // int
2413	  number = va_arg (args_copy, int);
2414	  break;
2415	case '\''f'\'': // float
2416	  fnumber = va_arg (args_copy, double);
2417	  break;
2418	default:
2419	  break;
2420	}
2421    }
2422  va_end (args_copy);
2423  va_end (args);
2424
2425  return *str && number && fnumber;
2426}
2427'
2428
2429# Test code for whether the C compiler supports C99 (body of main).
2430ac_c_conftest_c99_main='
2431  // Check bool.
2432  _Bool success = false;
2433  success |= (argc != 0);
2434
2435  // Check restrict.
2436  if (test_restrict ("String literal") == 0)
2437    success = true;
2438  char *restrict newvar = "Another string";
2439
2440  // Check varargs.
2441  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2442  test_varargs_macros ();
2443
2444  // Check flexible array members.
2445  struct incomplete_array *ia =
2446    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2447  ia->datasize = 10;
2448  for (int i = 0; i < ia->datasize; ++i)
2449    ia->data[i] = i * 1.234;
2450  // Work around memory leak warnings.
2451  free (ia);
2452
2453  // Check named initializers.
2454  struct named_init ni = {
2455    .number = 34,
2456    .name = L"Test wide string",
2457    .average = 543.34343,
2458  };
2459
2460  ni.number = 58;
2461
2462  int dynamic_array[ni.number];
2463  dynamic_array[0] = argv[0][0];
2464  dynamic_array[ni.number - 1] = 543;
2465
2466  // work around unused variable warnings
2467  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2468	 || dynamic_array[ni.number - 1] != 543);
2469'
2470
2471# Test code for whether the C compiler supports C11 (global declarations)
2472ac_c_conftest_c11_globals='
2473/* Does the compiler advertise C11 conformance? */
2474#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2475# error "Compiler does not advertise C11 conformance"
2476#endif
2477
2478// Check _Alignas.
2479char _Alignas (double) aligned_as_double;
2480char _Alignas (0) no_special_alignment;
2481extern char aligned_as_int;
2482char _Alignas (0) _Alignas (int) aligned_as_int;
2483
2484// Check _Alignof.
2485enum
2486{
2487  int_alignment = _Alignof (int),
2488  int_array_alignment = _Alignof (int[100]),
2489  char_alignment = _Alignof (char)
2490};
2491_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2492
2493// Check _Noreturn.
2494int _Noreturn does_not_return (void) { for (;;) continue; }
2495
2496// Check _Static_assert.
2497struct test_static_assert
2498{
2499  int x;
2500  _Static_assert (sizeof (int) <= sizeof (long int),
2501                  "_Static_assert does not work in struct");
2502  long int y;
2503};
2504
2505// Check UTF-8 literals.
2506#define u8 syntax error!
2507char const utf8_literal[] = u8"happens to be ASCII" "another string";
2508
2509// Check duplicate typedefs.
2510typedef long *long_ptr;
2511typedef long int *long_ptr;
2512typedef long_ptr long_ptr;
2513
2514// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2515struct anonymous
2516{
2517  union {
2518    struct { int i; int j; };
2519    struct { int k; long int l; } w;
2520  };
2521  int m;
2522} v1;
2523'
2524
2525# Test code for whether the C compiler supports C11 (body of main).
2526ac_c_conftest_c11_main='
2527  _Static_assert ((offsetof (struct anonymous, i)
2528		   == offsetof (struct anonymous, w.k)),
2529		  "Anonymous union alignment botch");
2530  v1.i = 2;
2531  v1.w.k = 5;
2532  ok |= v1.i != 5;
2533'
2534
2535# Test code for whether the C compiler supports C11 (complete).
2536ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2537${ac_c_conftest_c99_globals}
2538${ac_c_conftest_c11_globals}
2539
2540int
2541main (int argc, char **argv)
2542{
2543  int ok = 0;
2544  ${ac_c_conftest_c89_main}
2545  ${ac_c_conftest_c99_main}
2546  ${ac_c_conftest_c11_main}
2547  return ok;
2548}
2549"
2550
2551# Test code for whether the C compiler supports C99 (complete).
2552ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2553${ac_c_conftest_c99_globals}
2554
2555int
2556main (int argc, char **argv)
2557{
2558  int ok = 0;
2559  ${ac_c_conftest_c89_main}
2560  ${ac_c_conftest_c99_main}
2561  return ok;
2562}
2563"
2564
2565# Test code for whether the C compiler supports C89 (complete).
2566ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2567
2568int
2569main (int argc, char **argv)
2570{
2571  int ok = 0;
2572  ${ac_c_conftest_c89_main}
2573  return ok;
2574}
2575"
2576
2577as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2578as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2579as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2580as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2581as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2582as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2583as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2584as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2585as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2586as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2587
2588# Auxiliary files required by this configure script.
2589ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2590
2591# Locations in which to look for auxiliary files.
2592ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2593
2594# Search for a directory containing all of the required auxiliary files,
2595# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2596# If we don't find one directory that contains all the files we need,
2597# we report the set of missing files from the *first* directory in
2598# $ac_aux_dir_candidates and give up.
2599ac_missing_aux_files=""
2600ac_first_candidate=:
2601printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603as_found=false
2604for as_dir in $ac_aux_dir_candidates
2605do
2606  IFS=$as_save_IFS
2607  case $as_dir in #(((
2608    '') as_dir=./ ;;
2609    */) ;;
2610    *) as_dir=$as_dir/ ;;
2611  esac
2612  as_found=:
2613
2614  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2615  ac_aux_dir_found=yes
2616  ac_install_sh=
2617  for ac_aux in $ac_aux_files
2618  do
2619    # As a special case, if "install-sh" is required, that requirement
2620    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2621    # and $ac_install_sh is set appropriately for whichever one is found.
2622    if test x"$ac_aux" = x"install-sh"
2623    then
2624      if test -f "${as_dir}install-sh"; then
2625        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2626        ac_install_sh="${as_dir}install-sh -c"
2627      elif test -f "${as_dir}install.sh"; then
2628        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2629        ac_install_sh="${as_dir}install.sh -c"
2630      elif test -f "${as_dir}shtool"; then
2631        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2632        ac_install_sh="${as_dir}shtool install -c"
2633      else
2634        ac_aux_dir_found=no
2635        if $ac_first_candidate; then
2636          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2637        else
2638          break
2639        fi
2640      fi
2641    else
2642      if test -f "${as_dir}${ac_aux}"; then
2643        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2644      else
2645        ac_aux_dir_found=no
2646        if $ac_first_candidate; then
2647          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2648        else
2649          break
2650        fi
2651      fi
2652    fi
2653  done
2654  if test "$ac_aux_dir_found" = yes; then
2655    ac_aux_dir="$as_dir"
2656    break
2657  fi
2658  ac_first_candidate=false
2659
2660  as_found=false
2661done
2662IFS=$as_save_IFS
2663if $as_found
2664then :
2665
2666else case e in #(
2667  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2668esac
2669fi
2670
2671
2672# These three variables are undocumented and unsupported,
2673# and are intended to be withdrawn in a future Autoconf release.
2674# They can cause serious problems if a builder's source tree is in a directory
2675# whose full name contains unusual characters.
2676if test -f "${ac_aux_dir}config.guess"; then
2677  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2678fi
2679if test -f "${ac_aux_dir}config.sub"; then
2680  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2681fi
2682if test -f "$ac_aux_dir/configure"; then
2683  ac_configure="$SHELL ${ac_aux_dir}configure"
2684fi
2685
2686# Check that the precious variables saved in the cache have kept the same
2687# value.
2688ac_cache_corrupted=false
2689for ac_var in $ac_precious_vars; do
2690  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2691  eval ac_new_set=\$ac_env_${ac_var}_set
2692  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2693  eval ac_new_val=\$ac_env_${ac_var}_value
2694  case $ac_old_set,$ac_new_set in
2695    set,)
2696      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2697printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2698      ac_cache_corrupted=: ;;
2699    ,set)
2700      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2701printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2702      ac_cache_corrupted=: ;;
2703    ,);;
2704    *)
2705      if test "x$ac_old_val" != "x$ac_new_val"; then
2706	# differences in whitespace do not lead to failure.
2707	ac_old_val_w=`echo x $ac_old_val`
2708	ac_new_val_w=`echo x $ac_new_val`
2709	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2710	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2711printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2712	  ac_cache_corrupted=:
2713	else
2714	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2715printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2716	  eval $ac_var=\$ac_old_val
2717	fi
2718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2719printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2721printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2722      fi;;
2723  esac
2724  # Pass precious variables to config.status.
2725  if test "$ac_new_set" = set; then
2726    case $ac_new_val in
2727    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2728    *) ac_arg=$ac_var=$ac_new_val ;;
2729    esac
2730    case " $ac_configure_args " in
2731      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2732      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2733    esac
2734  fi
2735done
2736if $ac_cache_corrupted; then
2737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2738printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2740printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2741  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2742	    and start over" "$LINENO" 5
2743fi
2744## -------------------- ##
2745## Main body of script. ##
2746## -------------------- ##
2747
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755
2756ac_config_headers="$ac_config_headers config.h"
2757
2758
2759
2760# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2761# Must be called before any macros that run the compiler (like LT_INIT)
2762# to avoid autoconf errors.
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774# Expand $ac_aux_dir to an absolute path.
2775am_aux_dir=`cd "$ac_aux_dir" && pwd`
2776
2777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782if test -n "$ac_tool_prefix"; then
2783  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786printf %s "checking for $ac_word... " >&6; }
2787if test ${ac_cv_prog_CC+y}
2788then :
2789  printf %s "(cached) " >&6
2790else case e in #(
2791  e) if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  case $as_dir in #(((
2799    '') as_dir=./ ;;
2800    */) ;;
2801    *) as_dir=$as_dir/ ;;
2802  esac
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi ;;
2814esac
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819printf "%s\n" "$CC" >&6; }
2820else
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822printf "%s\n" "no" >&6; }
2823fi
2824
2825
2826fi
2827if test -z "$ac_cv_prog_CC"; then
2828  ac_ct_CC=$CC
2829  # Extract the first word of "gcc", so it can be a program name with args.
2830set dummy gcc; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_ac_ct_CC+y}
2834then :
2835  printf %s "(cached) " >&6
2836else case e in #(
2837  e) if test -n "$ac_ct_CC"; then
2838  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  case $as_dir in #(((
2845    '') as_dir=./ ;;
2846    */) ;;
2847    *) as_dir=$as_dir/ ;;
2848  esac
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851    ac_cv_prog_ac_ct_CC="gcc"
2852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859fi ;;
2860esac
2861fi
2862ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863if test -n "$ac_ct_CC"; then
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865printf "%s\n" "$ac_ct_CC" >&6; }
2866else
2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868printf "%s\n" "no" >&6; }
2869fi
2870
2871  if test "x$ac_ct_CC" = x; then
2872    CC=""
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    CC=$ac_ct_CC
2881  fi
2882else
2883  CC="$ac_cv_prog_CC"
2884fi
2885
2886if test -z "$CC"; then
2887          if test -n "$ac_tool_prefix"; then
2888    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}cc; ac_word=$2
2890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891printf %s "checking for $ac_word... " >&6; }
2892if test ${ac_cv_prog_CC+y}
2893then :
2894  printf %s "(cached) " >&6
2895else case e in #(
2896  e) if test -n "$CC"; then
2897  ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  case $as_dir in #(((
2904    '') as_dir=./ ;;
2905    */) ;;
2906    *) as_dir=$as_dir/ ;;
2907  esac
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2910    ac_cv_prog_CC="${ac_tool_prefix}cc"
2911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918fi ;;
2919esac
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924printf "%s\n" "$CC" >&6; }
2925else
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927printf "%s\n" "no" >&6; }
2928fi
2929
2930
2931  fi
2932fi
2933if test -z "$CC"; then
2934  # Extract the first word of "cc", so it can be a program name with args.
2935set dummy cc; ac_word=$2
2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937printf %s "checking for $ac_word... " >&6; }
2938if test ${ac_cv_prog_CC+y}
2939then :
2940  printf %s "(cached) " >&6
2941else case e in #(
2942  e) if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945  ac_prog_rejected=no
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  case $as_dir in #(((
2951    '') as_dir=./ ;;
2952    */) ;;
2953    *) as_dir=$as_dir/ ;;
2954  esac
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958       ac_prog_rejected=yes
2959       continue
2960     fi
2961    ac_cv_prog_CC="cc"
2962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969if test $ac_prog_rejected = yes; then
2970  # We found a bogon in the path, so make sure we never use it.
2971  set dummy $ac_cv_prog_CC
2972  shift
2973  if test $# != 0; then
2974    # We chose a different compiler from the bogus one.
2975    # However, it has the same basename, so the bogon will be chosen
2976    # first if we set CC to just the basename; use the full file name.
2977    shift
2978    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2979  fi
2980fi
2981fi ;;
2982esac
2983fi
2984CC=$ac_cv_prog_CC
2985if test -n "$CC"; then
2986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987printf "%s\n" "$CC" >&6; }
2988else
2989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990printf "%s\n" "no" >&6; }
2991fi
2992
2993
2994fi
2995if test -z "$CC"; then
2996  if test -n "$ac_tool_prefix"; then
2997  for ac_prog in cl.exe
2998  do
2999    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002printf %s "checking for $ac_word... " >&6; }
3003if test ${ac_cv_prog_CC+y}
3004then :
3005  printf %s "(cached) " >&6
3006else case e in #(
3007  e) if test -n "$CC"; then
3008  ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013  IFS=$as_save_IFS
3014  case $as_dir in #(((
3015    '') as_dir=./ ;;
3016    */) ;;
3017    *) as_dir=$as_dir/ ;;
3018  esac
3019    for ac_exec_ext in '' $ac_executable_extensions; do
3020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3021    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3023    break 2
3024  fi
3025done
3026  done
3027IFS=$as_save_IFS
3028
3029fi ;;
3030esac
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035printf "%s\n" "$CC" >&6; }
3036else
3037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038printf "%s\n" "no" >&6; }
3039fi
3040
3041
3042    test -n "$CC" && break
3043  done
3044fi
3045if test -z "$CC"; then
3046  ac_ct_CC=$CC
3047  for ac_prog in cl.exe
3048do
3049  # Extract the first word of "$ac_prog", so it can be a program name with args.
3050set dummy $ac_prog; ac_word=$2
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052printf %s "checking for $ac_word... " >&6; }
3053if test ${ac_cv_prog_ac_ct_CC+y}
3054then :
3055  printf %s "(cached) " >&6
3056else case e in #(
3057  e) if test -n "$ac_ct_CC"; then
3058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  case $as_dir in #(((
3065    '') as_dir=./ ;;
3066    */) ;;
3067    *) as_dir=$as_dir/ ;;
3068  esac
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_ac_ct_CC="$ac_prog"
3072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi ;;
3080esac
3081fi
3082ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083if test -n "$ac_ct_CC"; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085printf "%s\n" "$ac_ct_CC" >&6; }
3086else
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088printf "%s\n" "no" >&6; }
3089fi
3090
3091
3092  test -n "$ac_ct_CC" && break
3093done
3094
3095  if test "x$ac_ct_CC" = x; then
3096    CC=""
3097  else
3098    case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104    CC=$ac_ct_CC
3105  fi
3106fi
3107
3108fi
3109if test -z "$CC"; then
3110  if test -n "$ac_tool_prefix"; then
3111  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}clang; ac_word=$2
3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114printf %s "checking for $ac_word... " >&6; }
3115if test ${ac_cv_prog_CC+y}
3116then :
3117  printf %s "(cached) " >&6
3118else case e in #(
3119  e) if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  case $as_dir in #(((
3127    '') as_dir=./ ;;
3128    */) ;;
3129    *) as_dir=$as_dir/ ;;
3130  esac
3131    for ac_exec_ext in '' $ac_executable_extensions; do
3132  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3133    ac_cv_prog_CC="${ac_tool_prefix}clang"
3134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138  done
3139IFS=$as_save_IFS
3140
3141fi ;;
3142esac
3143fi
3144CC=$ac_cv_prog_CC
3145if test -n "$CC"; then
3146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147printf "%s\n" "$CC" >&6; }
3148else
3149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150printf "%s\n" "no" >&6; }
3151fi
3152
3153
3154fi
3155if test -z "$ac_cv_prog_CC"; then
3156  ac_ct_CC=$CC
3157  # Extract the first word of "clang", so it can be a program name with args.
3158set dummy clang; ac_word=$2
3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160printf %s "checking for $ac_word... " >&6; }
3161if test ${ac_cv_prog_ac_ct_CC+y}
3162then :
3163  printf %s "(cached) " >&6
3164else case e in #(
3165  e) if test -n "$ac_ct_CC"; then
3166  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171  IFS=$as_save_IFS
3172  case $as_dir in #(((
3173    '') as_dir=./ ;;
3174    */) ;;
3175    *) as_dir=$as_dir/ ;;
3176  esac
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3179    ac_cv_prog_ac_ct_CC="clang"
3180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi ;;
3188esac
3189fi
3190ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191if test -n "$ac_ct_CC"; then
3192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193printf "%s\n" "$ac_ct_CC" >&6; }
3194else
3195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196printf "%s\n" "no" >&6; }
3197fi
3198
3199  if test "x$ac_ct_CC" = x; then
3200    CC=""
3201  else
3202    case $cross_compiling:$ac_tool_warned in
3203yes:)
3204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206ac_tool_warned=yes ;;
3207esac
3208    CC=$ac_ct_CC
3209  fi
3210else
3211  CC="$ac_cv_prog_CC"
3212fi
3213
3214fi
3215
3216
3217test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3218printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3219as_fn_error $? "no acceptable C compiler found in \$PATH
3220See 'config.log' for more details" "$LINENO" 5; }
3221
3222# Provide some information about the compiler.
3223printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224set X $ac_compile
3225ac_compiler=$2
3226for ac_option in --version -v -V -qversion -version; do
3227  { { ac_try="$ac_compiler $ac_option >&5"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233printf "%s\n" "$ac_try_echo"; } >&5
3234  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235  ac_status=$?
3236  if test -s conftest.err; then
3237    sed '10a\
3238... rest of stderr output deleted ...
3239         10q' conftest.err >conftest.er1
3240    cat conftest.er1 >&5
3241  fi
3242  rm -f conftest.er1 conftest.err
3243  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244  test $ac_status = 0; }
3245done
3246
3247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248/* end confdefs.h.  */
3249
3250int
3251main (void)
3252{
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258ac_clean_files_save=$ac_clean_files
3259ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3260# Try to create an executable without -o first, disregard a.out.
3261# It will help us diagnose broken compilers, and finding out an intuition
3262# of exeext.
3263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3264printf %s "checking whether the C compiler works... " >&6; }
3265ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267# The possible output files:
3268ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270ac_rmfiles=
3271for ac_file in $ac_files
3272do
3273  case $ac_file in
3274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276  esac
3277done
3278rm -f $ac_rmfiles
3279
3280if { { ac_try="$ac_link_default"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286printf "%s\n" "$ac_try_echo"; } >&5
3287  (eval "$ac_link_default") 2>&5
3288  ac_status=$?
3289  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }
3291then :
3292  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3293# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3294# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3295# so that the user can short-circuit this test for compilers unknown to
3296# Autoconf.
3297for ac_file in $ac_files ''
3298do
3299  test -f "$ac_file" || continue
3300  case $ac_file in
3301    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302	;;
3303    [ab].out )
3304	# We found the default executable, but exeext='' is most
3305	# certainly right.
3306	break;;
3307    *.* )
3308	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3309	then :; else
3310	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311	fi
3312	# We set ac_cv_exeext here because the later test for it is not
3313	# safe: cross compilers may not add the suffix if given an '-o'
3314	# argument, so we may need to know it at that point already.
3315	# Even if this section looks crufty: it has the advantage of
3316	# actually working.
3317	break;;
3318    * )
3319	break;;
3320  esac
3321done
3322test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324else case e in #(
3325  e) ac_file='' ;;
3326esac
3327fi
3328if test -z "$ac_file"
3329then :
3330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331printf "%s\n" "no" >&6; }
3332printf "%s\n" "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3336printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3337as_fn_error 77 "C compiler cannot create executables
3338See 'config.log' for more details" "$LINENO" 5; }
3339else case e in #(
3340  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341printf "%s\n" "yes" >&6; } ;;
3342esac
3343fi
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345printf %s "checking for C compiler default output file name... " >&6; }
3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347printf "%s\n" "$ac_file" >&6; }
3348ac_exeext=$ac_cv_exeext
3349
3350rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351ac_clean_files=$ac_clean_files_save
3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353printf %s "checking for suffix of executables... " >&6; }
3354if { { ac_try="$ac_link"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360printf "%s\n" "$ac_try_echo"; } >&5
3361  (eval "$ac_link") 2>&5
3362  ac_status=$?
3363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364  test $ac_status = 0; }
3365then :
3366  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3367# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3368# work properly (i.e., refer to 'conftest.exe'), while it won't with
3369# 'rm'.
3370for ac_file in conftest.exe conftest conftest.*; do
3371  test -f "$ac_file" || continue
3372  case $ac_file in
3373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375	  break;;
3376    * ) break;;
3377  esac
3378done
3379else case e in #(
3380  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3381printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3382as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3383See 'config.log' for more details" "$LINENO" 5; } ;;
3384esac
3385fi
3386rm -f conftest conftest$ac_cv_exeext
3387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388printf "%s\n" "$ac_cv_exeext" >&6; }
3389
3390rm -f conftest.$ac_ext
3391EXEEXT=$ac_cv_exeext
3392ac_exeext=$EXEEXT
3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395#include <stdio.h>
3396int
3397main (void)
3398{
3399FILE *f = fopen ("conftest.out", "w");
3400 if (!f)
3401  return 1;
3402 return ferror (f) || fclose (f) != 0;
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408ac_clean_files="$ac_clean_files conftest.out"
3409# Check that the compiler produces executables we can run.  If not, either
3410# the compiler is broken, or we cross compile.
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412printf %s "checking whether we are cross compiling... " >&6; }
3413if test "$cross_compiling" != yes; then
3414  { { ac_try="$ac_link"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420printf "%s\n" "$ac_try_echo"; } >&5
3421  (eval "$ac_link") 2>&5
3422  ac_status=$?
3423  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424  test $ac_status = 0; }
3425  if { ac_try='./conftest$ac_cv_exeext'
3426  { { case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431printf "%s\n" "$ac_try_echo"; } >&5
3432  (eval "$ac_try") 2>&5
3433  ac_status=$?
3434  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435  test $ac_status = 0; }; }; then
3436    cross_compiling=no
3437  else
3438    if test "$cross_compiling" = maybe; then
3439	cross_compiling=yes
3440    else
3441	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3442printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3443as_fn_error 77 "cannot run C compiled programs.
3444If you meant to cross compile, use '--host'.
3445See 'config.log' for more details" "$LINENO" 5; }
3446    fi
3447  fi
3448fi
3449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450printf "%s\n" "$cross_compiling" >&6; }
3451
3452rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3453  conftest.o conftest.obj conftest.out
3454ac_clean_files=$ac_clean_files_save
3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456printf %s "checking for suffix of object files... " >&6; }
3457if test ${ac_cv_objext+y}
3458then :
3459  printf %s "(cached) " >&6
3460else case e in #(
3461  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main (void)
3466{
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472rm -f conftest.o conftest.obj
3473if { { ac_try="$ac_compile"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479printf "%s\n" "$ac_try_echo"; } >&5
3480  (eval "$ac_compile") 2>&5
3481  ac_status=$?
3482  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483  test $ac_status = 0; }
3484then :
3485  for ac_file in conftest.o conftest.obj conftest.*; do
3486  test -f "$ac_file" || continue;
3487  case $ac_file in
3488    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490       break;;
3491  esac
3492done
3493else case e in #(
3494  e) printf "%s\n" "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3498printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3499as_fn_error $? "cannot compute suffix of object files: cannot compile
3500See 'config.log' for more details" "$LINENO" 5; } ;;
3501esac
3502fi
3503rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3504esac
3505fi
3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3507printf "%s\n" "$ac_cv_objext" >&6; }
3508OBJEXT=$ac_cv_objext
3509ac_objext=$OBJEXT
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3511printf %s "checking whether the compiler supports GNU C... " >&6; }
3512if test ${ac_cv_c_compiler_gnu+y}
3513then :
3514  printf %s "(cached) " >&6
3515else case e in #(
3516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main (void)
3521{
3522#ifndef __GNUC__
3523       choke me
3524#endif
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"
3531then :
3532  ac_compiler_gnu=yes
3533else case e in #(
3534  e) ac_compiler_gnu=no ;;
3535esac
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539 ;;
3540esac
3541fi
3542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3544ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546if test $ac_compiler_gnu = yes; then
3547  GCC=yes
3548else
3549  GCC=
3550fi
3551ac_test_CFLAGS=${CFLAGS+y}
3552ac_save_CFLAGS=$CFLAGS
3553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3554printf %s "checking whether $CC accepts -g... " >&6; }
3555if test ${ac_cv_prog_cc_g+y}
3556then :
3557  printf %s "(cached) " >&6
3558else case e in #(
3559  e) ac_save_c_werror_flag=$ac_c_werror_flag
3560   ac_c_werror_flag=yes
3561   ac_cv_prog_cc_g=no
3562   CFLAGS="-g"
3563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565
3566int
3567main (void)
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"
3575then :
3576  ac_cv_prog_cc_g=yes
3577else case e in #(
3578  e) CFLAGS=""
3579      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h.  */
3581
3582int
3583main (void)
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"
3591then :
3592
3593else case e in #(
3594  e) ac_c_werror_flag=$ac_save_c_werror_flag
3595	 CFLAGS="-g"
3596	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main (void)
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"
3608then :
3609  ac_cv_prog_cc_g=yes
3610fi
3611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3612esac
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3615esac
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3618   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3619esac
3620fi
3621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3623if test $ac_test_CFLAGS; then
3624  CFLAGS=$ac_save_CFLAGS
3625elif test $ac_cv_prog_cc_g = yes; then
3626  if test "$GCC" = yes; then
3627    CFLAGS="-g -O2"
3628  else
3629    CFLAGS="-g"
3630  fi
3631else
3632  if test "$GCC" = yes; then
3633    CFLAGS="-O2"
3634  else
3635    CFLAGS=
3636  fi
3637fi
3638ac_prog_cc_stdc=no
3639if test x$ac_prog_cc_stdc = xno
3640then :
3641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3642printf %s "checking for $CC option to enable C11 features... " >&6; }
3643if test ${ac_cv_prog_cc_c11+y}
3644then :
3645  printf %s "(cached) " >&6
3646else case e in #(
3647  e) ac_cv_prog_cc_c11=no
3648ac_save_CC=$CC
3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651$ac_c_conftest_c11_program
3652_ACEOF
3653for ac_arg in '' -std=gnu11
3654do
3655  CC="$ac_save_CC $ac_arg"
3656  if ac_fn_c_try_compile "$LINENO"
3657then :
3658  ac_cv_prog_cc_c11=$ac_arg
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.beam
3661  test "x$ac_cv_prog_cc_c11" != "xno" && break
3662done
3663rm -f conftest.$ac_ext
3664CC=$ac_save_CC ;;
3665esac
3666fi
3667
3668if test "x$ac_cv_prog_cc_c11" = xno
3669then :
3670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671printf "%s\n" "unsupported" >&6; }
3672else case e in #(
3673  e) if test "x$ac_cv_prog_cc_c11" = x
3674then :
3675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3676printf "%s\n" "none needed" >&6; }
3677else case e in #(
3678  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3679printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3680     CC="$CC $ac_cv_prog_cc_c11" ;;
3681esac
3682fi
3683  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3684  ac_prog_cc_stdc=c11 ;;
3685esac
3686fi
3687fi
3688if test x$ac_prog_cc_stdc = xno
3689then :
3690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3691printf %s "checking for $CC option to enable C99 features... " >&6; }
3692if test ${ac_cv_prog_cc_c99+y}
3693then :
3694  printf %s "(cached) " >&6
3695else case e in #(
3696  e) ac_cv_prog_cc_c99=no
3697ac_save_CC=$CC
3698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700$ac_c_conftest_c99_program
3701_ACEOF
3702for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3703do
3704  CC="$ac_save_CC $ac_arg"
3705  if ac_fn_c_try_compile "$LINENO"
3706then :
3707  ac_cv_prog_cc_c99=$ac_arg
3708fi
3709rm -f core conftest.err conftest.$ac_objext conftest.beam
3710  test "x$ac_cv_prog_cc_c99" != "xno" && break
3711done
3712rm -f conftest.$ac_ext
3713CC=$ac_save_CC ;;
3714esac
3715fi
3716
3717if test "x$ac_cv_prog_cc_c99" = xno
3718then :
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720printf "%s\n" "unsupported" >&6; }
3721else case e in #(
3722  e) if test "x$ac_cv_prog_cc_c99" = x
3723then :
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725printf "%s\n" "none needed" >&6; }
3726else case e in #(
3727  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3728printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3729     CC="$CC $ac_cv_prog_cc_c99" ;;
3730esac
3731fi
3732  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3733  ac_prog_cc_stdc=c99 ;;
3734esac
3735fi
3736fi
3737if test x$ac_prog_cc_stdc = xno
3738then :
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3740printf %s "checking for $CC option to enable C89 features... " >&6; }
3741if test ${ac_cv_prog_cc_c89+y}
3742then :
3743  printf %s "(cached) " >&6
3744else case e in #(
3745  e) ac_cv_prog_cc_c89=no
3746ac_save_CC=$CC
3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h.  */
3749$ac_c_conftest_c89_program
3750_ACEOF
3751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752do
3753  CC="$ac_save_CC $ac_arg"
3754  if ac_fn_c_try_compile "$LINENO"
3755then :
3756  ac_cv_prog_cc_c89=$ac_arg
3757fi
3758rm -f core conftest.err conftest.$ac_objext conftest.beam
3759  test "x$ac_cv_prog_cc_c89" != "xno" && break
3760done
3761rm -f conftest.$ac_ext
3762CC=$ac_save_CC ;;
3763esac
3764fi
3765
3766if test "x$ac_cv_prog_cc_c89" = xno
3767then :
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769printf "%s\n" "unsupported" >&6; }
3770else case e in #(
3771  e) if test "x$ac_cv_prog_cc_c89" = x
3772then :
3773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774printf "%s\n" "none needed" >&6; }
3775else case e in #(
3776  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3778     CC="$CC $ac_cv_prog_cc_c89" ;;
3779esac
3780fi
3781  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3782  ac_prog_cc_stdc=c89 ;;
3783esac
3784fi
3785fi
3786
3787ac_ext=c
3788ac_cpp='$CPP $CPPFLAGS'
3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794  ac_ext=c
3795ac_cpp='$CPP $CPPFLAGS'
3796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3800printf %s "checking whether $CC understands -c and -o together... " >&6; }
3801if test ${am_cv_prog_cc_c_o+y}
3802then :
3803  printf %s "(cached) " >&6
3804else case e in #(
3805  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807
3808int
3809main (void)
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816  # Make sure it works both with $CC and with simple cc.
3817  # Following AC_PROG_CC_C_O, we do the test twice because some
3818  # compilers refuse to overwrite an existing .o file with -o,
3819  # though they will create one.
3820  am_cv_prog_cc_c_o=yes
3821  for am_i in 1 2; do
3822    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3823   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } \
3827         && test -f conftest2.$ac_objext; then
3828      : OK
3829    else
3830      am_cv_prog_cc_c_o=no
3831      break
3832    fi
3833  done
3834  rm -f core conftest*
3835  unset am_i ;;
3836esac
3837fi
3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3840if test "$am_cv_prog_cc_c_o" != yes; then
3841   # Losing compiler, so override with the script.
3842   # FIXME: It is wrong to rewrite CC.
3843   # But if we don't then we get into trouble of one sort or another.
3844   # A longer-term fix would be to have automake use am__CC in this case,
3845   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846   CC="$am_aux_dir/compile $CC"
3847fi
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854
3855
3856ac_header= ac_cache=
3857for ac_item in $ac_header_c_list
3858do
3859  if test $ac_cache; then
3860    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3861    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3862      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3863    fi
3864    ac_header= ac_cache=
3865  elif test $ac_header; then
3866    ac_cache=$ac_item
3867  else
3868    ac_header=$ac_item
3869  fi
3870done
3871
3872
3873
3874
3875
3876
3877
3878
3879if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3880then :
3881
3882printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3883
3884fi
3885
3886
3887
3888
3889
3890
3891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3892printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3893if test ${ac_cv_safe_to_define___extensions__+y}
3894then :
3895  printf %s "(cached) " >&6
3896else case e in #(
3897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899
3900#         define __EXTENSIONS__ 1
3901          $ac_includes_default
3902int
3903main (void)
3904{
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910if ac_fn_c_try_compile "$LINENO"
3911then :
3912  ac_cv_safe_to_define___extensions__=yes
3913else case e in #(
3914  e) ac_cv_safe_to_define___extensions__=no ;;
3915esac
3916fi
3917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3918esac
3919fi
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3921printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3922
3923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3924printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3925if test ${ac_cv_should_define__xopen_source+y}
3926then :
3927  printf %s "(cached) " >&6
3928else case e in #(
3929  e) ac_cv_should_define__xopen_source=no
3930    if test $ac_cv_header_wchar_h = yes
3931then :
3932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934
3935          #include <wchar.h>
3936          mbstate_t x;
3937int
3938main (void)
3939{
3940
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"
3946then :
3947
3948else case e in #(
3949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951
3952            #define _XOPEN_SOURCE 500
3953            #include <wchar.h>
3954            mbstate_t x;
3955int
3956main (void)
3957{
3958
3959  ;
3960  return 0;
3961}
3962_ACEOF
3963if ac_fn_c_try_compile "$LINENO"
3964then :
3965  ac_cv_should_define__xopen_source=yes
3966fi
3967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3968esac
3969fi
3970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3971fi ;;
3972esac
3973fi
3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3975printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3976
3977  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3978
3979  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3980
3981  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3982
3983  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3984
3985  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3986
3987  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3988
3989  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3990
3991  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3992
3993  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3994
3995  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3996
3997  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3998
3999  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4000
4001  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4002
4003  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4004
4005  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4006
4007  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4008
4009  if test $ac_cv_header_minix_config_h = yes
4010then :
4011  MINIX=yes
4012    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4013
4014    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4015
4016    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4017
4018else case e in #(
4019  e) MINIX= ;;
4020esac
4021fi
4022  if test $ac_cv_safe_to_define___extensions__ = yes
4023then :
4024  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4025
4026fi
4027  if test $ac_cv_should_define__xopen_source = yes
4028then :
4029  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4030
4031fi
4032
4033
4034# Initialize Automake
4035am__api_version='1.16'
4036
4037
4038  # Find a good install program.  We prefer a C program (faster),
4039# so one script is as good as another.  But avoid the broken or
4040# incompatible versions:
4041# SysV /etc/install, /usr/sbin/install
4042# SunOS /usr/etc/install
4043# IRIX /sbin/install
4044# AIX /bin/install
4045# AmigaOS /C/install, which installs bootblocks on floppy discs
4046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4049# OS/2's system install, which has a completely different semantic
4050# ./install, which can be erroneously created by make from ./install.sh.
4051# Reject install programs that cannot install multiple files.
4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4053printf %s "checking for a BSD-compatible install... " >&6; }
4054if test -z "$INSTALL"; then
4055if test ${ac_cv_path_install+y}
4056then :
4057  printf %s "(cached) " >&6
4058else case e in #(
4059  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062  IFS=$as_save_IFS
4063  case $as_dir in #(((
4064    '') as_dir=./ ;;
4065    */) ;;
4066    *) as_dir=$as_dir/ ;;
4067  esac
4068    # Account for fact that we put trailing slashes in our PATH walk.
4069case $as_dir in #((
4070  ./ | /[cC]/* | \
4071  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4072  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4073  /usr/ucb/* ) ;;
4074  *)
4075    # OSF1 and SCO ODT 3.0 have their own names for install.
4076    # Don't use installbsd from OSF since it installs stuff as root
4077    # by default.
4078    for ac_prog in ginstall scoinst install; do
4079      for ac_exec_ext in '' $ac_executable_extensions; do
4080	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4081	  if test $ac_prog = install &&
4082	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083	    # AIX install.  It has an incompatible calling convention.
4084	    :
4085	  elif test $ac_prog = install &&
4086	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4087	    # program-specific install script used by HP pwplus--don't use.
4088	    :
4089	  else
4090	    rm -rf conftest.one conftest.two conftest.dir
4091	    echo one > conftest.one
4092	    echo two > conftest.two
4093	    mkdir conftest.dir
4094	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4095	      test -s conftest.one && test -s conftest.two &&
4096	      test -s conftest.dir/conftest.one &&
4097	      test -s conftest.dir/conftest.two
4098	    then
4099	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4100	      break 3
4101	    fi
4102	  fi
4103	fi
4104      done
4105    done
4106    ;;
4107esac
4108
4109  done
4110IFS=$as_save_IFS
4111
4112rm -rf conftest.one conftest.two conftest.dir
4113 ;;
4114esac
4115fi
4116  if test ${ac_cv_path_install+y}; then
4117    INSTALL=$ac_cv_path_install
4118  else
4119    # As a last resort, use the slow shell script.  Don't cache a
4120    # value for INSTALL within a source directory, because that will
4121    # break other packages using the cache if that directory is
4122    # removed, or if the value is a relative name.
4123    INSTALL=$ac_install_sh
4124  fi
4125fi
4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4127printf "%s\n" "$INSTALL" >&6; }
4128
4129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4130# It thinks the first close brace ends the variable substitution.
4131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4132
4133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4134
4135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4136
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4138printf %s "checking whether build environment is sane... " >&6; }
4139# Reject unsafe characters in $srcdir or the absolute working directory
4140# name.  Accept space and tab only in the latter.
4141am_lf='
4142'
4143case `pwd` in
4144  *[\\\"\#\$\&\'\`$am_lf]*)
4145    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4146esac
4147case $srcdir in
4148  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4149    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4150esac
4151
4152# Do 'set' in a subshell so we don't clobber the current shell's
4153# arguments.  Must try -L first in case configure is actually a
4154# symlink; some systems play weird games with the mod time of symlinks
4155# (eg FreeBSD returns the mod time of the symlink's containing
4156# directory).
4157if (
4158   am_has_slept=no
4159   for am_try in 1 2; do
4160     echo "timestamp, slept: $am_has_slept" > conftest.file
4161     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4162     if test "$*" = "X"; then
4163	# -L didn't work.
4164	set X `ls -t "$srcdir/configure" conftest.file`
4165     fi
4166     if test "$*" != "X $srcdir/configure conftest.file" \
4167	&& test "$*" != "X conftest.file $srcdir/configure"; then
4168
4169	# If neither matched, then we have a broken ls.  This can happen
4170	# if, for instance, CONFIG_SHELL is bash and it inherits a
4171	# broken ls alias from the environment.  This has actually
4172	# happened.  Such a system could not be considered "sane".
4173	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4174  alias in your environment" "$LINENO" 5
4175     fi
4176     if test "$2" = conftest.file || test $am_try -eq 2; then
4177       break
4178     fi
4179     # Just in case.
4180     sleep 1
4181     am_has_slept=yes
4182   done
4183   test "$2" = conftest.file
4184   )
4185then
4186   # Ok.
4187   :
4188else
4189   as_fn_error $? "newly created file is older than distributed files!
4190Check your system clock" "$LINENO" 5
4191fi
4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193printf "%s\n" "yes" >&6; }
4194# If we didn't sleep, we still need to ensure time stamps of config.status and
4195# generated files are strictly newer.
4196am_sleep_pid=
4197if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4198  ( sleep 1 ) &
4199  am_sleep_pid=$!
4200fi
4201
4202rm -f conftest.file
4203
4204test "$program_prefix" != NONE &&
4205  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4206# Use a double $ so make ignores it.
4207test "$program_suffix" != NONE &&
4208  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4209# Double any \ or $.
4210# By default was 's,x,x', remove it if useless.
4211ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4212program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4213
4214
4215  if test x"${MISSING+set}" != xset; then
4216  MISSING="\${SHELL} '$am_aux_dir/missing'"
4217fi
4218# Use eval to expand $SHELL
4219if eval "$MISSING --is-lightweight"; then
4220  am_missing_run="$MISSING "
4221else
4222  am_missing_run=
4223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4224printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4225fi
4226
4227if test x"${install_sh+set}" != xset; then
4228  case $am_aux_dir in
4229  *\ * | *\	*)
4230    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4231  *)
4232    install_sh="\${SHELL} $am_aux_dir/install-sh"
4233  esac
4234fi
4235
4236# Installed binaries are usually stripped using 'strip' when the user
4237# run "make install-strip".  However 'strip' might not be the right
4238# tool to use in cross-compilation environments, therefore Automake
4239# will honor the 'STRIP' environment variable to overrule this program.
4240if test "$cross_compiling" != no; then
4241  if test -n "$ac_tool_prefix"; then
4242  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4243set dummy ${ac_tool_prefix}strip; ac_word=$2
4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245printf %s "checking for $ac_word... " >&6; }
4246if test ${ac_cv_prog_STRIP+y}
4247then :
4248  printf %s "(cached) " >&6
4249else case e in #(
4250  e) if test -n "$STRIP"; then
4251  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256  IFS=$as_save_IFS
4257  case $as_dir in #(((
4258    '') as_dir=./ ;;
4259    */) ;;
4260    *) as_dir=$as_dir/ ;;
4261  esac
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4264    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4265    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269  done
4270IFS=$as_save_IFS
4271
4272fi ;;
4273esac
4274fi
4275STRIP=$ac_cv_prog_STRIP
4276if test -n "$STRIP"; then
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4278printf "%s\n" "$STRIP" >&6; }
4279else
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281printf "%s\n" "no" >&6; }
4282fi
4283
4284
4285fi
4286if test -z "$ac_cv_prog_STRIP"; then
4287  ac_ct_STRIP=$STRIP
4288  # Extract the first word of "strip", so it can be a program name with args.
4289set dummy strip; ac_word=$2
4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291printf %s "checking for $ac_word... " >&6; }
4292if test ${ac_cv_prog_ac_ct_STRIP+y}
4293then :
4294  printf %s "(cached) " >&6
4295else case e in #(
4296  e) if test -n "$ac_ct_STRIP"; then
4297  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  case $as_dir in #(((
4304    '') as_dir=./ ;;
4305    */) ;;
4306    *) as_dir=$as_dir/ ;;
4307  esac
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4310    ac_cv_prog_ac_ct_STRIP="strip"
4311    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4312    break 2
4313  fi
4314done
4315  done
4316IFS=$as_save_IFS
4317
4318fi ;;
4319esac
4320fi
4321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4322if test -n "$ac_ct_STRIP"; then
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4324printf "%s\n" "$ac_ct_STRIP" >&6; }
4325else
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327printf "%s\n" "no" >&6; }
4328fi
4329
4330  if test "x$ac_ct_STRIP" = x; then
4331    STRIP=":"
4332  else
4333    case $cross_compiling:$ac_tool_warned in
4334yes:)
4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4336printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4337ac_tool_warned=yes ;;
4338esac
4339    STRIP=$ac_ct_STRIP
4340  fi
4341else
4342  STRIP="$ac_cv_prog_STRIP"
4343fi
4344
4345fi
4346INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4347
4348
4349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4350printf %s "checking for a race-free mkdir -p... " >&6; }
4351if test -z "$MKDIR_P"; then
4352  if test ${ac_cv_path_mkdir+y}
4353then :
4354  printf %s "(cached) " >&6
4355else case e in #(
4356  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4358do
4359  IFS=$as_save_IFS
4360  case $as_dir in #(((
4361    '') as_dir=./ ;;
4362    */) ;;
4363    *) as_dir=$as_dir/ ;;
4364  esac
4365    for ac_prog in mkdir gmkdir; do
4366	 for ac_exec_ext in '' $ac_executable_extensions; do
4367	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4368	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4369	     'mkdir ('*'coreutils) '* | \
4370	     *'BusyBox '* | \
4371	     'mkdir (fileutils) '4.1*)
4372	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4373	       break 3;;
4374	   esac
4375	 done
4376       done
4377  done
4378IFS=$as_save_IFS
4379 ;;
4380esac
4381fi
4382
4383  test -d ./--version && rmdir ./--version
4384  if test ${ac_cv_path_mkdir+y}; then
4385    MKDIR_P="$ac_cv_path_mkdir -p"
4386  else
4387    # As a last resort, use plain mkdir -p,
4388    # in the hope it doesn't have the bugs of ancient mkdir.
4389    MKDIR_P='mkdir -p'
4390  fi
4391fi
4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4393printf "%s\n" "$MKDIR_P" >&6; }
4394
4395for ac_prog in gawk mawk nawk awk
4396do
4397  # Extract the first word of "$ac_prog", so it can be a program name with args.
4398set dummy $ac_prog; ac_word=$2
4399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400printf %s "checking for $ac_word... " >&6; }
4401if test ${ac_cv_prog_AWK+y}
4402then :
4403  printf %s "(cached) " >&6
4404else case e in #(
4405  e) if test -n "$AWK"; then
4406  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411  IFS=$as_save_IFS
4412  case $as_dir in #(((
4413    '') as_dir=./ ;;
4414    */) ;;
4415    *) as_dir=$as_dir/ ;;
4416  esac
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4419    ac_cv_prog_AWK="$ac_prog"
4420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424  done
4425IFS=$as_save_IFS
4426
4427fi ;;
4428esac
4429fi
4430AWK=$ac_cv_prog_AWK
4431if test -n "$AWK"; then
4432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4433printf "%s\n" "$AWK" >&6; }
4434else
4435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436printf "%s\n" "no" >&6; }
4437fi
4438
4439
4440  test -n "$AWK" && break
4441done
4442
4443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4444printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4445set x ${MAKE-make}
4446ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4447if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4448then :
4449  printf %s "(cached) " >&6
4450else case e in #(
4451  e) cat >conftest.make <<\_ACEOF
4452SHELL = /bin/sh
4453all:
4454	@echo '@@@%%%=$(MAKE)=@@@%%%'
4455_ACEOF
4456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4457case `${MAKE-make} -f conftest.make 2>/dev/null` in
4458  *@@@%%%=?*=@@@%%%*)
4459    eval ac_cv_prog_make_${ac_make}_set=yes;;
4460  *)
4461    eval ac_cv_prog_make_${ac_make}_set=no;;
4462esac
4463rm -f conftest.make ;;
4464esac
4465fi
4466if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468printf "%s\n" "yes" >&6; }
4469  SET_MAKE=
4470else
4471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472printf "%s\n" "no" >&6; }
4473  SET_MAKE="MAKE=${MAKE-make}"
4474fi
4475
4476rm -rf .tst 2>/dev/null
4477mkdir .tst 2>/dev/null
4478if test -d .tst; then
4479  am__leading_dot=.
4480else
4481  am__leading_dot=_
4482fi
4483rmdir .tst 2>/dev/null
4484
4485DEPDIR="${am__leading_dot}deps"
4486
4487ac_config_commands="$ac_config_commands depfiles"
4488
4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4490printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4491cat > confinc.mk << 'END'
4492am__doit:
4493	@echo this is the am__doit target >confinc.out
4494.PHONY: am__doit
4495END
4496am__include="#"
4497am__quote=
4498# BSD make does it like this.
4499echo '.include "confinc.mk" # ignored' > confmf.BSD
4500# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4501echo 'include confinc.mk # ignored' > confmf.GNU
4502_am_result=no
4503for s in GNU BSD; do
4504  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4505   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }
4509  case $?:`cat confinc.out 2>/dev/null` in #(
4510  '0:this is the am__doit target') :
4511    case $s in #(
4512  BSD) :
4513    am__include='.include' am__quote='"' ;; #(
4514  *) :
4515    am__include='include' am__quote='' ;;
4516esac ;; #(
4517  *) :
4518     ;;
4519esac
4520  if test "$am__include" != "#"; then
4521    _am_result="yes ($s style)"
4522    break
4523  fi
4524done
4525rm -f confinc.* confmf.*
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4527printf "%s\n" "${_am_result}" >&6; }
4528
4529# Check whether --enable-dependency-tracking was given.
4530if test ${enable_dependency_tracking+y}
4531then :
4532  enableval=$enable_dependency_tracking;
4533fi
4534
4535if test "x$enable_dependency_tracking" != xno; then
4536  am_depcomp="$ac_aux_dir/depcomp"
4537  AMDEPBACKSLASH='\'
4538  am__nodep='_no'
4539fi
4540 if test "x$enable_dependency_tracking" != xno; then
4541  AMDEP_TRUE=
4542  AMDEP_FALSE='#'
4543else
4544  AMDEP_TRUE='#'
4545  AMDEP_FALSE=
4546fi
4547
4548
4549# Check whether --enable-silent-rules was given.
4550if test ${enable_silent_rules+y}
4551then :
4552  enableval=$enable_silent_rules;
4553fi
4554
4555case $enable_silent_rules in # (((
4556  yes) AM_DEFAULT_VERBOSITY=0;;
4557   no) AM_DEFAULT_VERBOSITY=1;;
4558    *) AM_DEFAULT_VERBOSITY=1;;
4559esac
4560am_make=${MAKE-make}
4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4562printf %s "checking whether $am_make supports nested variables... " >&6; }
4563if test ${am_cv_make_support_nested_variables+y}
4564then :
4565  printf %s "(cached) " >&6
4566else case e in #(
4567  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4568BAR0=false
4569BAR1=true
4570V=1
4571am__doit:
4572	@$(TRUE)
4573.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4574  am_cv_make_support_nested_variables=yes
4575else
4576  am_cv_make_support_nested_variables=no
4577fi ;;
4578esac
4579fi
4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4581printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4582if test $am_cv_make_support_nested_variables = yes; then
4583    AM_V='$(V)'
4584  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4585else
4586  AM_V=$AM_DEFAULT_VERBOSITY
4587  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4588fi
4589AM_BACKSLASH='\'
4590
4591if test "`cd $srcdir && pwd`" != "`pwd`"; then
4592  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4593  # is not polluted with repeated "-I."
4594  am__isrc=' -I$(srcdir)'
4595  # test to see if srcdir already configured
4596  if test -f $srcdir/config.status; then
4597    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4598  fi
4599fi
4600
4601# test whether we have cygpath
4602if test -z "$CYGPATH_W"; then
4603  if (cygpath --version) >/dev/null 2>/dev/null; then
4604    CYGPATH_W='cygpath -w'
4605  else
4606    CYGPATH_W=echo
4607  fi
4608fi
4609
4610
4611# Define the identity of the package.
4612 PACKAGE='libXdmcp'
4613 VERSION='1.1.5'
4614
4615
4616printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4617
4618
4619printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4620
4621# Some tools Automake needs.
4622
4623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4624
4625
4626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4627
4628
4629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4630
4631
4632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4633
4634
4635MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4636
4637# For better backward compatibility.  To be removed once Automake 1.9.x
4638# dies out for good.  For more background, see:
4639# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4640# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4641mkdir_p='$(MKDIR_P)'
4642
4643# We need awk for the "check" target (and possibly the TAP driver).  The
4644# system "awk" is bad on some platforms.
4645# Always define AMTAR for backward compatibility.  Yes, it's still used
4646# in the wild :-(  We should find a proper way to deprecate it ...
4647AMTAR='$${TAR-tar}'
4648
4649
4650# We'll loop over all known methods to create a tar archive until one works.
4651_am_tools='gnutar  pax cpio none'
4652
4653am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4654
4655
4656
4657
4658
4659depcc="$CC"   am_compiler_list=
4660
4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4662printf %s "checking dependency style of $depcc... " >&6; }
4663if test ${am_cv_CC_dependencies_compiler_type+y}
4664then :
4665  printf %s "(cached) " >&6
4666else case e in #(
4667  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4668  # We make a subdir and do the tests there.  Otherwise we can end up
4669  # making bogus files that we don't know about and never remove.  For
4670  # instance it was reported that on HP-UX the gcc test will end up
4671  # making a dummy file named 'D' -- because '-MD' means "put the output
4672  # in D".
4673  rm -rf conftest.dir
4674  mkdir conftest.dir
4675  # Copy depcomp to subdir because otherwise we won't find it if we're
4676  # using a relative directory.
4677  cp "$am_depcomp" conftest.dir
4678  cd conftest.dir
4679  # We will build objects and dependencies in a subdirectory because
4680  # it helps to detect inapplicable dependency modes.  For instance
4681  # both Tru64's cc and ICC support -MD to output dependencies as a
4682  # side effect of compilation, but ICC will put the dependencies in
4683  # the current directory while Tru64 will put them in the object
4684  # directory.
4685  mkdir sub
4686
4687  am_cv_CC_dependencies_compiler_type=none
4688  if test "$am_compiler_list" = ""; then
4689     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4690  fi
4691  am__universal=false
4692  case " $depcc " in #(
4693     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4694     esac
4695
4696  for depmode in $am_compiler_list; do
4697    # Setup a source with many dependencies, because some compilers
4698    # like to wrap large dependency lists on column 80 (with \), and
4699    # we should not choose a depcomp mode which is confused by this.
4700    #
4701    # We need to recreate these files for each test, as the compiler may
4702    # overwrite some of them when testing with obscure command lines.
4703    # This happens at least with the AIX C compiler.
4704    : > sub/conftest.c
4705    for i in 1 2 3 4 5 6; do
4706      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4707      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4708      # Solaris 10 /bin/sh.
4709      echo '/* dummy */' > sub/conftst$i.h
4710    done
4711    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4712
4713    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4714    # mode.  It turns out that the SunPro C++ compiler does not properly
4715    # handle '-M -o', and we need to detect this.  Also, some Intel
4716    # versions had trouble with output in subdirs.
4717    am__obj=sub/conftest.${OBJEXT-o}
4718    am__minus_obj="-o $am__obj"
4719    case $depmode in
4720    gcc)
4721      # This depmode causes a compiler race in universal mode.
4722      test "$am__universal" = false || continue
4723      ;;
4724    nosideeffect)
4725      # After this tag, mechanisms are not by side-effect, so they'll
4726      # only be used when explicitly requested.
4727      if test "x$enable_dependency_tracking" = xyes; then
4728	continue
4729      else
4730	break
4731      fi
4732      ;;
4733    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4734      # This compiler won't grok '-c -o', but also, the minuso test has
4735      # not run yet.  These depmodes are late enough in the game, and
4736      # so weak that their functioning should not be impacted.
4737      am__obj=conftest.${OBJEXT-o}
4738      am__minus_obj=
4739      ;;
4740    none) break ;;
4741    esac
4742    if depmode=$depmode \
4743       source=sub/conftest.c object=$am__obj \
4744       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4745       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4746         >/dev/null 2>conftest.err &&
4747       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4748       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4749       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4750       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4751      # icc doesn't choke on unknown options, it will just issue warnings
4752      # or remarks (even with -Werror).  So we grep stderr for any message
4753      # that says an option was ignored or not supported.
4754      # When given -MP, icc 7.0 and 7.1 complain thusly:
4755      #   icc: Command line warning: ignoring option '-M'; no argument required
4756      # The diagnosis changed in icc 8.0:
4757      #   icc: Command line remark: option '-MP' not supported
4758      if (grep 'ignoring option' conftest.err ||
4759          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4760        am_cv_CC_dependencies_compiler_type=$depmode
4761        break
4762      fi
4763    fi
4764  done
4765
4766  cd ..
4767  rm -rf conftest.dir
4768else
4769  am_cv_CC_dependencies_compiler_type=none
4770fi
4771 ;;
4772esac
4773fi
4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4775printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4776CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4777
4778 if
4779  test "x$enable_dependency_tracking" != xno \
4780  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4781  am__fastdepCC_TRUE=
4782  am__fastdepCC_FALSE='#'
4783else
4784  am__fastdepCC_TRUE='#'
4785  am__fastdepCC_FALSE=
4786fi
4787
4788
4789# Variables for tags utilities; see am/tags.am
4790if test -z "$CTAGS"; then
4791  CTAGS=ctags
4792fi
4793
4794if test -z "$ETAGS"; then
4795  ETAGS=etags
4796fi
4797
4798if test -z "$CSCOPE"; then
4799  CSCOPE=cscope
4800fi
4801
4802
4803
4804# POSIX will say in a future version that running "rm -f" with no argument
4805# is OK; and we want to be able to make that assumption in our Makefile
4806# recipes.  So use an aggressive probe to check that the usage we want is
4807# actually supported "in the wild" to an acceptable degree.
4808# See automake bug#10828.
4809# To make any issue more visible, cause the running configure to be aborted
4810# by default if the 'rm' program in use doesn't match our expectations; the
4811# user can still override this though.
4812if rm -f && rm -fr && rm -rf; then : OK; else
4813  cat >&2 <<'END'
4814Oops!
4815
4816Your 'rm' program seems unable to run without file operands specified
4817on the command line, even when the '-f' option is present.  This is contrary
4818to the behaviour of most rm programs out there, and not conforming with
4819the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4820
4821Please tell bug-automake@gnu.org about your system, including the value
4822of your $PATH and any error possibly output before this message.  This
4823can help us improve future automake versions.
4824
4825END
4826  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4827    echo 'Configuration will proceed anyway, since you have set the' >&2
4828    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4829    echo >&2
4830  else
4831    cat >&2 <<'END'
4832Aborting the configuration process, to ensure you take notice of the issue.
4833
4834You can download and install GNU coreutils to get an 'rm' implementation
4835that behaves properly: <https://www.gnu.org/software/coreutils/>.
4836
4837If you want to complete the configuration process using your problematic
4838'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4839to "yes", and re-run configure.
4840
4841END
4842    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4843  fi
4844fi
4845
4846
4847# Initialize libtool
4848case `pwd` in
4849  *\ * | *\	*)
4850    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4851printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4852esac
4853
4854
4855
4856macro_version='2.4.7'
4857macro_revision='2.4.7'
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872ltmain=$ac_aux_dir/ltmain.sh
4873
4874
4875
4876  # Make sure we can run config.sub.
4877$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4878  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4879
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4881printf %s "checking build system type... " >&6; }
4882if test ${ac_cv_build+y}
4883then :
4884  printf %s "(cached) " >&6
4885else case e in #(
4886  e) ac_build_alias=$build_alias
4887test "x$ac_build_alias" = x &&
4888  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4889test "x$ac_build_alias" = x &&
4890  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4891ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4892  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4893 ;;
4894esac
4895fi
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4897printf "%s\n" "$ac_cv_build" >&6; }
4898case $ac_cv_build in
4899*-*-*) ;;
4900*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4901esac
4902build=$ac_cv_build
4903ac_save_IFS=$IFS; IFS='-'
4904set x $ac_cv_build
4905shift
4906build_cpu=$1
4907build_vendor=$2
4908shift; shift
4909# Remember, the first character of IFS is used to create $*,
4910# except with old shells:
4911build_os=$*
4912IFS=$ac_save_IFS
4913case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4914
4915
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4917printf %s "checking host system type... " >&6; }
4918if test ${ac_cv_host+y}
4919then :
4920  printf %s "(cached) " >&6
4921else case e in #(
4922  e) if test "x$host_alias" = x; then
4923  ac_cv_host=$ac_cv_build
4924else
4925  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4926    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4927fi
4928 ;;
4929esac
4930fi
4931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4932printf "%s\n" "$ac_cv_host" >&6; }
4933case $ac_cv_host in
4934*-*-*) ;;
4935*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4936esac
4937host=$ac_cv_host
4938ac_save_IFS=$IFS; IFS='-'
4939set x $ac_cv_host
4940shift
4941host_cpu=$1
4942host_vendor=$2
4943shift; shift
4944# Remember, the first character of IFS is used to create $*,
4945# except with old shells:
4946host_os=$*
4947IFS=$ac_save_IFS
4948case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4949
4950
4951# Backslashify metacharacters that are still active within
4952# double-quoted strings.
4953sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4954
4955# Same as above, but do not quote variable references.
4956double_quote_subst='s/\(["`\\]\)/\\\1/g'
4957
4958# Sed substitution to delay expansion of an escaped shell variable in a
4959# double_quote_subst'ed string.
4960delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4961
4962# Sed substitution to delay expansion of an escaped single quote.
4963delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4964
4965# Sed substitution to avoid accidental globbing in evaled expressions
4966no_glob_subst='s/\*/\\\*/g'
4967
4968ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4969ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4970ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4971
4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4973printf %s "checking how to print strings... " >&6; }
4974# Test print first, because it will be a builtin if present.
4975if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4976   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4977  ECHO='print -r --'
4978elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4979  ECHO='printf %s\n'
4980else
4981  # Use this function as a fallback that always works.
4982  func_fallback_echo ()
4983  {
4984    eval 'cat <<_LTECHO_EOF
4985$1
4986_LTECHO_EOF'
4987  }
4988  ECHO='func_fallback_echo'
4989fi
4990
4991# func_echo_all arg...
4992# Invoke $ECHO with all args, space-separated.
4993func_echo_all ()
4994{
4995    $ECHO ""
4996}
4997
4998case $ECHO in
4999  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5000printf "%s\n" "printf" >&6; } ;;
5001  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5002printf "%s\n" "print -r" >&6; } ;;
5003  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5004printf "%s\n" "cat" >&6; } ;;
5005esac
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5021printf %s "checking for a sed that does not truncate output... " >&6; }
5022if test ${ac_cv_path_SED+y}
5023then :
5024  printf %s "(cached) " >&6
5025else case e in #(
5026  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5027     for ac_i in 1 2 3 4 5 6 7; do
5028       ac_script="$ac_script$as_nl$ac_script"
5029     done
5030     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5031     { ac_script=; unset ac_script;}
5032     if test -z "$SED"; then
5033  ac_path_SED_found=false
5034  # Loop through the user's path and test for each of PROGNAME-LIST
5035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038  IFS=$as_save_IFS
5039  case $as_dir in #(((
5040    '') as_dir=./ ;;
5041    */) ;;
5042    *) as_dir=$as_dir/ ;;
5043  esac
5044    for ac_prog in sed gsed
5045   do
5046    for ac_exec_ext in '' $ac_executable_extensions; do
5047      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5048      as_fn_executable_p "$ac_path_SED" || continue
5049# Check for GNU ac_path_SED and select it if it is found.
5050  # Check for GNU $ac_path_SED
5051case `"$ac_path_SED" --version 2>&1` in #(
5052*GNU*)
5053  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5054#(
5055*)
5056  ac_count=0
5057  printf %s 0123456789 >"conftest.in"
5058  while :
5059  do
5060    cat "conftest.in" "conftest.in" >"conftest.tmp"
5061    mv "conftest.tmp" "conftest.in"
5062    cp "conftest.in" "conftest.nl"
5063    printf "%s\n" '' >> "conftest.nl"
5064    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066    as_fn_arith $ac_count + 1 && ac_count=$as_val
5067    if test $ac_count -gt ${ac_path_SED_max-0}; then
5068      # Best one so far, save it but keep looking for a better one
5069      ac_cv_path_SED="$ac_path_SED"
5070      ac_path_SED_max=$ac_count
5071    fi
5072    # 10*(2^10) chars as input seems more than enough
5073    test $ac_count -gt 10 && break
5074  done
5075  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076esac
5077
5078      $ac_path_SED_found && break 3
5079    done
5080  done
5081  done
5082IFS=$as_save_IFS
5083  if test -z "$ac_cv_path_SED"; then
5084    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5085  fi
5086else
5087  ac_cv_path_SED=$SED
5088fi
5089 ;;
5090esac
5091fi
5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5093printf "%s\n" "$ac_cv_path_SED" >&6; }
5094 SED="$ac_cv_path_SED"
5095  rm -f conftest.sed
5096
5097test -z "$SED" && SED=sed
5098Xsed="$SED -e 1s/^X//"
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5111printf %s "checking for grep that handles long lines and -e... " >&6; }
5112if test ${ac_cv_path_GREP+y}
5113then :
5114  printf %s "(cached) " >&6
5115else case e in #(
5116  e) if test -z "$GREP"; then
5117  ac_path_GREP_found=false
5118  # Loop through the user's path and test for each of PROGNAME-LIST
5119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121do
5122  IFS=$as_save_IFS
5123  case $as_dir in #(((
5124    '') as_dir=./ ;;
5125    */) ;;
5126    *) as_dir=$as_dir/ ;;
5127  esac
5128    for ac_prog in grep ggrep
5129   do
5130    for ac_exec_ext in '' $ac_executable_extensions; do
5131      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5132      as_fn_executable_p "$ac_path_GREP" || continue
5133# Check for GNU ac_path_GREP and select it if it is found.
5134  # Check for GNU $ac_path_GREP
5135case `"$ac_path_GREP" --version 2>&1` in #(
5136*GNU*)
5137  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138#(
5139*)
5140  ac_count=0
5141  printf %s 0123456789 >"conftest.in"
5142  while :
5143  do
5144    cat "conftest.in" "conftest.in" >"conftest.tmp"
5145    mv "conftest.tmp" "conftest.in"
5146    cp "conftest.in" "conftest.nl"
5147    printf "%s\n" 'GREP' >> "conftest.nl"
5148    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5149    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5150    as_fn_arith $ac_count + 1 && ac_count=$as_val
5151    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5152      # Best one so far, save it but keep looking for a better one
5153      ac_cv_path_GREP="$ac_path_GREP"
5154      ac_path_GREP_max=$ac_count
5155    fi
5156    # 10*(2^10) chars as input seems more than enough
5157    test $ac_count -gt 10 && break
5158  done
5159  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5160esac
5161
5162      $ac_path_GREP_found && break 3
5163    done
5164  done
5165  done
5166IFS=$as_save_IFS
5167  if test -z "$ac_cv_path_GREP"; then
5168    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169  fi
5170else
5171  ac_cv_path_GREP=$GREP
5172fi
5173 ;;
5174esac
5175fi
5176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5177printf "%s\n" "$ac_cv_path_GREP" >&6; }
5178 GREP="$ac_cv_path_GREP"
5179
5180
5181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5182printf %s "checking for egrep... " >&6; }
5183if test ${ac_cv_path_EGREP+y}
5184then :
5185  printf %s "(cached) " >&6
5186else case e in #(
5187  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5188   then ac_cv_path_EGREP="$GREP -E"
5189   else
5190     if test -z "$EGREP"; then
5191  ac_path_EGREP_found=false
5192  # Loop through the user's path and test for each of PROGNAME-LIST
5193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195do
5196  IFS=$as_save_IFS
5197  case $as_dir in #(((
5198    '') as_dir=./ ;;
5199    */) ;;
5200    *) as_dir=$as_dir/ ;;
5201  esac
5202    for ac_prog in egrep
5203   do
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5206      as_fn_executable_p "$ac_path_EGREP" || continue
5207# Check for GNU ac_path_EGREP and select it if it is found.
5208  # Check for GNU $ac_path_EGREP
5209case `"$ac_path_EGREP" --version 2>&1` in #(
5210*GNU*)
5211  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5212#(
5213*)
5214  ac_count=0
5215  printf %s 0123456789 >"conftest.in"
5216  while :
5217  do
5218    cat "conftest.in" "conftest.in" >"conftest.tmp"
5219    mv "conftest.tmp" "conftest.in"
5220    cp "conftest.in" "conftest.nl"
5221    printf "%s\n" 'EGREP' >> "conftest.nl"
5222    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5223    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5224    as_fn_arith $ac_count + 1 && ac_count=$as_val
5225    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5226      # Best one so far, save it but keep looking for a better one
5227      ac_cv_path_EGREP="$ac_path_EGREP"
5228      ac_path_EGREP_max=$ac_count
5229    fi
5230    # 10*(2^10) chars as input seems more than enough
5231    test $ac_count -gt 10 && break
5232  done
5233  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5234esac
5235
5236      $ac_path_EGREP_found && break 3
5237    done
5238  done
5239  done
5240IFS=$as_save_IFS
5241  if test -z "$ac_cv_path_EGREP"; then
5242    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5243  fi
5244else
5245  ac_cv_path_EGREP=$EGREP
5246fi
5247
5248   fi ;;
5249esac
5250fi
5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5252printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5253 EGREP="$ac_cv_path_EGREP"
5254
5255         EGREP_TRADITIONAL=$EGREP
5256 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5257
5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5259printf %s "checking for fgrep... " >&6; }
5260if test ${ac_cv_path_FGREP+y}
5261then :
5262  printf %s "(cached) " >&6
5263else case e in #(
5264  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5265   then ac_cv_path_FGREP="$GREP -F"
5266   else
5267     if test -z "$FGREP"; then
5268  ac_path_FGREP_found=false
5269  # Loop through the user's path and test for each of PROGNAME-LIST
5270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272do
5273  IFS=$as_save_IFS
5274  case $as_dir in #(((
5275    '') as_dir=./ ;;
5276    */) ;;
5277    *) as_dir=$as_dir/ ;;
5278  esac
5279    for ac_prog in fgrep
5280   do
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5283      as_fn_executable_p "$ac_path_FGREP" || continue
5284# Check for GNU ac_path_FGREP and select it if it is found.
5285  # Check for GNU $ac_path_FGREP
5286case `"$ac_path_FGREP" --version 2>&1` in #(
5287*GNU*)
5288  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5289#(
5290*)
5291  ac_count=0
5292  printf %s 0123456789 >"conftest.in"
5293  while :
5294  do
5295    cat "conftest.in" "conftest.in" >"conftest.tmp"
5296    mv "conftest.tmp" "conftest.in"
5297    cp "conftest.in" "conftest.nl"
5298    printf "%s\n" 'FGREP' >> "conftest.nl"
5299    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301    as_fn_arith $ac_count + 1 && ac_count=$as_val
5302    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5303      # Best one so far, save it but keep looking for a better one
5304      ac_cv_path_FGREP="$ac_path_FGREP"
5305      ac_path_FGREP_max=$ac_count
5306    fi
5307    # 10*(2^10) chars as input seems more than enough
5308    test $ac_count -gt 10 && break
5309  done
5310  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311esac
5312
5313      $ac_path_FGREP_found && break 3
5314    done
5315  done
5316  done
5317IFS=$as_save_IFS
5318  if test -z "$ac_cv_path_FGREP"; then
5319    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320  fi
5321else
5322  ac_cv_path_FGREP=$FGREP
5323fi
5324
5325   fi ;;
5326esac
5327fi
5328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5329printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5330 FGREP="$ac_cv_path_FGREP"
5331
5332
5333test -z "$GREP" && GREP=grep
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353# Check whether --with-gnu-ld was given.
5354if test ${with_gnu_ld+y}
5355then :
5356  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5357else case e in #(
5358  e) with_gnu_ld=no ;;
5359esac
5360fi
5361
5362ac_prog=ld
5363if test yes = "$GCC"; then
5364  # Check if gcc -print-prog-name=ld gives a path.
5365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5366printf %s "checking for ld used by $CC... " >&6; }
5367  case $host in
5368  *-*-mingw*)
5369    # gcc leaves a trailing carriage return, which upsets mingw
5370    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5371  *)
5372    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5373  esac
5374  case $ac_prog in
5375    # Accept absolute paths.
5376    [\\/]* | ?:[\\/]*)
5377      re_direlt='/[^/][^/]*/\.\./'
5378      # Canonicalize the pathname of ld
5379      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5380      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5381	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5382      done
5383      test -z "$LD" && LD=$ac_prog
5384      ;;
5385  "")
5386    # If it fails, then pretend we aren't using GCC.
5387    ac_prog=ld
5388    ;;
5389  *)
5390    # If it is relative, then search for the first ld in PATH.
5391    with_gnu_ld=unknown
5392    ;;
5393  esac
5394elif test yes = "$with_gnu_ld"; then
5395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5396printf %s "checking for GNU ld... " >&6; }
5397else
5398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5399printf %s "checking for non-GNU ld... " >&6; }
5400fi
5401if test ${lt_cv_path_LD+y}
5402then :
5403  printf %s "(cached) " >&6
5404else case e in #(
5405  e) if test -z "$LD"; then
5406  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5407  for ac_dir in $PATH; do
5408    IFS=$lt_save_ifs
5409    test -z "$ac_dir" && ac_dir=.
5410    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5411      lt_cv_path_LD=$ac_dir/$ac_prog
5412      # Check to see if the program is GNU ld.  I'd rather use --version,
5413      # but apparently some variants of GNU ld only accept -v.
5414      # Break only if it was the GNU/non-GNU ld that we prefer.
5415      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5416      *GNU* | *'with BFD'*)
5417	test no != "$with_gnu_ld" && break
5418	;;
5419      *)
5420	test yes != "$with_gnu_ld" && break
5421	;;
5422      esac
5423    fi
5424  done
5425  IFS=$lt_save_ifs
5426else
5427  lt_cv_path_LD=$LD # Let the user override the test with a path.
5428fi ;;
5429esac
5430fi
5431
5432LD=$lt_cv_path_LD
5433if test -n "$LD"; then
5434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5435printf "%s\n" "$LD" >&6; }
5436else
5437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438printf "%s\n" "no" >&6; }
5439fi
5440test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5442printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5443if test ${lt_cv_prog_gnu_ld+y}
5444then :
5445  printf %s "(cached) " >&6
5446else case e in #(
5447  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448case `$LD -v 2>&1 </dev/null` in
5449*GNU* | *'with BFD'*)
5450  lt_cv_prog_gnu_ld=yes
5451  ;;
5452*)
5453  lt_cv_prog_gnu_ld=no
5454  ;;
5455esac ;;
5456esac
5457fi
5458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5459printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5460with_gnu_ld=$lt_cv_prog_gnu_ld
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5471printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5472if test ${lt_cv_path_NM+y}
5473then :
5474  printf %s "(cached) " >&6
5475else case e in #(
5476  e) if test -n "$NM"; then
5477  # Let the user override the test.
5478  lt_cv_path_NM=$NM
5479else
5480  lt_nm_to_check=${ac_tool_prefix}nm
5481  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5482    lt_nm_to_check="$lt_nm_to_check nm"
5483  fi
5484  for lt_tmp_nm in $lt_nm_to_check; do
5485    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5486    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5487      IFS=$lt_save_ifs
5488      test -z "$ac_dir" && ac_dir=.
5489      tmp_nm=$ac_dir/$lt_tmp_nm
5490      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5491	# Check to see if the nm accepts a BSD-compat flag.
5492	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5493	#   nm: unknown option "B" ignored
5494	# Tru64's nm complains that /dev/null is an invalid object file
5495	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5496	case $build_os in
5497	mingw*) lt_bad_file=conftest.nm/nofile ;;
5498	*) lt_bad_file=/dev/null ;;
5499	esac
5500	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5501	*$lt_bad_file* | *'Invalid file or object type'*)
5502	  lt_cv_path_NM="$tmp_nm -B"
5503	  break 2
5504	  ;;
5505	*)
5506	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5507	  */dev/null*)
5508	    lt_cv_path_NM="$tmp_nm -p"
5509	    break 2
5510	    ;;
5511	  *)
5512	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513	    continue # so that we can try to find one that supports BSD flags
5514	    ;;
5515	  esac
5516	  ;;
5517	esac
5518      fi
5519    done
5520    IFS=$lt_save_ifs
5521  done
5522  : ${lt_cv_path_NM=no}
5523fi ;;
5524esac
5525fi
5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5527printf "%s\n" "$lt_cv_path_NM" >&6; }
5528if test no != "$lt_cv_path_NM"; then
5529  NM=$lt_cv_path_NM
5530else
5531  # Didn't find any BSD compatible name lister, look for dumpbin.
5532  if test -n "$DUMPBIN"; then :
5533    # Let the user override the test.
5534  else
5535    if test -n "$ac_tool_prefix"; then
5536  for ac_prog in dumpbin "link -dump"
5537  do
5538    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541printf %s "checking for $ac_word... " >&6; }
5542if test ${ac_cv_prog_DUMPBIN+y}
5543then :
5544  printf %s "(cached) " >&6
5545else case e in #(
5546  e) if test -n "$DUMPBIN"; then
5547  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  case $as_dir in #(((
5554    '') as_dir=./ ;;
5555    */) ;;
5556    *) as_dir=$as_dir/ ;;
5557  esac
5558    for ac_exec_ext in '' $ac_executable_extensions; do
5559  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5560    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5561    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5562    break 2
5563  fi
5564done
5565  done
5566IFS=$as_save_IFS
5567
5568fi ;;
5569esac
5570fi
5571DUMPBIN=$ac_cv_prog_DUMPBIN
5572if test -n "$DUMPBIN"; then
5573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5574printf "%s\n" "$DUMPBIN" >&6; }
5575else
5576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577printf "%s\n" "no" >&6; }
5578fi
5579
5580
5581    test -n "$DUMPBIN" && break
5582  done
5583fi
5584if test -z "$DUMPBIN"; then
5585  ac_ct_DUMPBIN=$DUMPBIN
5586  for ac_prog in dumpbin "link -dump"
5587do
5588  # Extract the first word of "$ac_prog", so it can be a program name with args.
5589set dummy $ac_prog; ac_word=$2
5590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591printf %s "checking for $ac_word... " >&6; }
5592if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5593then :
5594  printf %s "(cached) " >&6
5595else case e in #(
5596  e) if test -n "$ac_ct_DUMPBIN"; then
5597  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  case $as_dir in #(((
5604    '') as_dir=./ ;;
5605    */) ;;
5606    *) as_dir=$as_dir/ ;;
5607  esac
5608    for ac_exec_ext in '' $ac_executable_extensions; do
5609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5610    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5612    break 2
5613  fi
5614done
5615  done
5616IFS=$as_save_IFS
5617
5618fi ;;
5619esac
5620fi
5621ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5622if test -n "$ac_ct_DUMPBIN"; then
5623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5624printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5625else
5626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627printf "%s\n" "no" >&6; }
5628fi
5629
5630
5631  test -n "$ac_ct_DUMPBIN" && break
5632done
5633
5634  if test "x$ac_ct_DUMPBIN" = x; then
5635    DUMPBIN=":"
5636  else
5637    case $cross_compiling:$ac_tool_warned in
5638yes:)
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641ac_tool_warned=yes ;;
5642esac
5643    DUMPBIN=$ac_ct_DUMPBIN
5644  fi
5645fi
5646
5647    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5648    *COFF*)
5649      DUMPBIN="$DUMPBIN -symbols -headers"
5650      ;;
5651    *)
5652      DUMPBIN=:
5653      ;;
5654    esac
5655  fi
5656
5657  if test : != "$DUMPBIN"; then
5658    NM=$DUMPBIN
5659  fi
5660fi
5661test -z "$NM" && NM=nm
5662
5663
5664
5665
5666
5667
5668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5669printf %s "checking the name lister ($NM) interface... " >&6; }
5670if test ${lt_cv_nm_interface+y}
5671then :
5672  printf %s "(cached) " >&6
5673else case e in #(
5674  e) lt_cv_nm_interface="BSD nm"
5675  echo "int some_variable = 0;" > conftest.$ac_ext
5676  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5677  (eval "$ac_compile" 2>conftest.err)
5678  cat conftest.err >&5
5679  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5680  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5681  cat conftest.err >&5
5682  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5683  cat conftest.out >&5
5684  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5685    lt_cv_nm_interface="MS dumpbin"
5686  fi
5687  rm -f conftest* ;;
5688esac
5689fi
5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5691printf "%s\n" "$lt_cv_nm_interface" >&6; }
5692
5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5694printf %s "checking whether ln -s works... " >&6; }
5695LN_S=$as_ln_s
5696if test "$LN_S" = "ln -s"; then
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698printf "%s\n" "yes" >&6; }
5699else
5700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5701printf "%s\n" "no, using $LN_S" >&6; }
5702fi
5703
5704# find the maximum length of command line arguments
5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5706printf %s "checking the maximum length of command line arguments... " >&6; }
5707if test ${lt_cv_sys_max_cmd_len+y}
5708then :
5709  printf %s "(cached) " >&6
5710else case e in #(
5711  e)   i=0
5712  teststring=ABCD
5713
5714  case $build_os in
5715  msdosdjgpp*)
5716    # On DJGPP, this test can blow up pretty badly due to problems in libc
5717    # (any single argument exceeding 2000 bytes causes a buffer overrun
5718    # during glob expansion).  Even if it were fixed, the result of this
5719    # check would be larger than it should be.
5720    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5721    ;;
5722
5723  gnu*)
5724    # Under GNU Hurd, this test is not required because there is
5725    # no limit to the length of command line arguments.
5726    # Libtool will interpret -1 as no limit whatsoever
5727    lt_cv_sys_max_cmd_len=-1;
5728    ;;
5729
5730  cygwin* | mingw* | cegcc*)
5731    # On Win9x/ME, this test blows up -- it succeeds, but takes
5732    # about 5 minutes as the teststring grows exponentially.
5733    # Worse, since 9x/ME are not pre-emptively multitasking,
5734    # you end up with a "frozen" computer, even though with patience
5735    # the test eventually succeeds (with a max line length of 256k).
5736    # Instead, let's just punt: use the minimum linelength reported by
5737    # all of the supported platforms: 8192 (on NT/2K/XP).
5738    lt_cv_sys_max_cmd_len=8192;
5739    ;;
5740
5741  mint*)
5742    # On MiNT this can take a long time and run out of memory.
5743    lt_cv_sys_max_cmd_len=8192;
5744    ;;
5745
5746  amigaos*)
5747    # On AmigaOS with pdksh, this test takes hours, literally.
5748    # So we just punt and use a minimum line length of 8192.
5749    lt_cv_sys_max_cmd_len=8192;
5750    ;;
5751
5752  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5753    # This has been around since 386BSD, at least.  Likely further.
5754    if test -x /sbin/sysctl; then
5755      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5756    elif test -x /usr/sbin/sysctl; then
5757      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5758    else
5759      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5760    fi
5761    # And add a safety zone
5762    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5763    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5764    ;;
5765
5766  interix*)
5767    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5768    lt_cv_sys_max_cmd_len=196608
5769    ;;
5770
5771  os2*)
5772    # The test takes a long time on OS/2.
5773    lt_cv_sys_max_cmd_len=8192
5774    ;;
5775
5776  osf*)
5777    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5778    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5779    # nice to cause kernel panics so lets avoid the loop below.
5780    # First set a reasonable default.
5781    lt_cv_sys_max_cmd_len=16384
5782    #
5783    if test -x /sbin/sysconfig; then
5784      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5785        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5786      esac
5787    fi
5788    ;;
5789  sco3.2v5*)
5790    lt_cv_sys_max_cmd_len=102400
5791    ;;
5792  sysv5* | sco5v6* | sysv4.2uw2*)
5793    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5794    if test -n "$kargmax"; then
5795      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5796    else
5797      lt_cv_sys_max_cmd_len=32768
5798    fi
5799    ;;
5800  *)
5801    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5802    if test -n "$lt_cv_sys_max_cmd_len" && \
5803       test undefined != "$lt_cv_sys_max_cmd_len"; then
5804      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5805      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806    else
5807      # Make teststring a little bigger before we do anything with it.
5808      # a 1K string should be a reasonable start.
5809      for i in 1 2 3 4 5 6 7 8; do
5810        teststring=$teststring$teststring
5811      done
5812      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5813      # If test is not a shell built-in, we'll probably end up computing a
5814      # maximum length that is only half of the actual maximum length, but
5815      # we can't tell.
5816      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5817	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5818	      test 17 != "$i" # 1/2 MB should be enough
5819      do
5820        i=`expr $i + 1`
5821        teststring=$teststring$teststring
5822      done
5823      # Only check the string length outside the loop.
5824      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5825      teststring=
5826      # Add a significant safety factor because C++ compilers can tack on
5827      # massive amounts of additional arguments before passing them to the
5828      # linker.  It appears as though 1/2 is a usable value.
5829      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5830    fi
5831    ;;
5832  esac
5833 ;;
5834esac
5835fi
5836
5837if test -n "$lt_cv_sys_max_cmd_len"; then
5838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5839printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5840else
5841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5842printf "%s\n" "none" >&6; }
5843fi
5844max_cmd_len=$lt_cv_sys_max_cmd_len
5845
5846
5847
5848
5849
5850
5851: ${CP="cp -f"}
5852: ${MV="mv -f"}
5853: ${RM="rm -f"}
5854
5855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5856  lt_unset=unset
5857else
5858  lt_unset=false
5859fi
5860
5861
5862
5863
5864
5865# test EBCDIC or ASCII
5866case `echo X|tr X '\101'` in
5867 A) # ASCII based system
5868    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5869  lt_SP2NL='tr \040 \012'
5870  lt_NL2SP='tr \015\012 \040\040'
5871  ;;
5872 *) # EBCDIC based system
5873  lt_SP2NL='tr \100 \n'
5874  lt_NL2SP='tr \r\n \100\100'
5875  ;;
5876esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5887printf %s "checking how to convert $build file names to $host format... " >&6; }
5888if test ${lt_cv_to_host_file_cmd+y}
5889then :
5890  printf %s "(cached) " >&6
5891else case e in #(
5892  e) case $host in
5893  *-*-mingw* )
5894    case $build in
5895      *-*-mingw* ) # actually msys
5896        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5897        ;;
5898      *-*-cygwin* )
5899        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5900        ;;
5901      * ) # otherwise, assume *nix
5902        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5903        ;;
5904    esac
5905    ;;
5906  *-*-cygwin* )
5907    case $build in
5908      *-*-mingw* ) # actually msys
5909        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5910        ;;
5911      *-*-cygwin* )
5912        lt_cv_to_host_file_cmd=func_convert_file_noop
5913        ;;
5914      * ) # otherwise, assume *nix
5915        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5916        ;;
5917    esac
5918    ;;
5919  * ) # unhandled hosts (and "normal" native builds)
5920    lt_cv_to_host_file_cmd=func_convert_file_noop
5921    ;;
5922esac
5923 ;;
5924esac
5925fi
5926
5927to_host_file_cmd=$lt_cv_to_host_file_cmd
5928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5929printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5930
5931
5932
5933
5934
5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5936printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5937if test ${lt_cv_to_tool_file_cmd+y}
5938then :
5939  printf %s "(cached) " >&6
5940else case e in #(
5941  e) #assume ordinary cross tools, or native build.
5942lt_cv_to_tool_file_cmd=func_convert_file_noop
5943case $host in
5944  *-*-mingw* )
5945    case $build in
5946      *-*-mingw* ) # actually msys
5947        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5948        ;;
5949    esac
5950    ;;
5951esac
5952 ;;
5953esac
5954fi
5955
5956to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5958printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5959
5960
5961
5962
5963
5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5965printf %s "checking for $LD option to reload object files... " >&6; }
5966if test ${lt_cv_ld_reload_flag+y}
5967then :
5968  printf %s "(cached) " >&6
5969else case e in #(
5970  e) lt_cv_ld_reload_flag='-r' ;;
5971esac
5972fi
5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5974printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5975reload_flag=$lt_cv_ld_reload_flag
5976case $reload_flag in
5977"" | " "*) ;;
5978*) reload_flag=" $reload_flag" ;;
5979esac
5980reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981case $host_os in
5982  cygwin* | mingw* | pw32* | cegcc*)
5983    if test yes != "$GCC"; then
5984      reload_cmds=false
5985    fi
5986    ;;
5987  darwin*)
5988    if test yes = "$GCC"; then
5989      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5990    else
5991      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992    fi
5993    ;;
5994esac
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004if test -n "$ac_tool_prefix"; then
6005  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6006set dummy ${ac_tool_prefix}file; ac_word=$2
6007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008printf %s "checking for $ac_word... " >&6; }
6009if test ${ac_cv_prog_FILECMD+y}
6010then :
6011  printf %s "(cached) " >&6
6012else case e in #(
6013  e) if test -n "$FILECMD"; then
6014  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019  IFS=$as_save_IFS
6020  case $as_dir in #(((
6021    '') as_dir=./ ;;
6022    */) ;;
6023    *) as_dir=$as_dir/ ;;
6024  esac
6025    for ac_exec_ext in '' $ac_executable_extensions; do
6026  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6027    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6029    break 2
6030  fi
6031done
6032  done
6033IFS=$as_save_IFS
6034
6035fi ;;
6036esac
6037fi
6038FILECMD=$ac_cv_prog_FILECMD
6039if test -n "$FILECMD"; then
6040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6041printf "%s\n" "$FILECMD" >&6; }
6042else
6043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044printf "%s\n" "no" >&6; }
6045fi
6046
6047
6048fi
6049if test -z "$ac_cv_prog_FILECMD"; then
6050  ac_ct_FILECMD=$FILECMD
6051  # Extract the first word of "file", so it can be a program name with args.
6052set dummy file; ac_word=$2
6053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054printf %s "checking for $ac_word... " >&6; }
6055if test ${ac_cv_prog_ac_ct_FILECMD+y}
6056then :
6057  printf %s "(cached) " >&6
6058else case e in #(
6059  e) if test -n "$ac_ct_FILECMD"; then
6060  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  case $as_dir in #(((
6067    '') as_dir=./ ;;
6068    */) ;;
6069    *) as_dir=$as_dir/ ;;
6070  esac
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073    ac_cv_prog_ac_ct_FILECMD="file"
6074    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi ;;
6082esac
6083fi
6084ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6085if test -n "$ac_ct_FILECMD"; then
6086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6087printf "%s\n" "$ac_ct_FILECMD" >&6; }
6088else
6089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090printf "%s\n" "no" >&6; }
6091fi
6092
6093  if test "x$ac_ct_FILECMD" = x; then
6094    FILECMD=":"
6095  else
6096    case $cross_compiling:$ac_tool_warned in
6097yes:)
6098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100ac_tool_warned=yes ;;
6101esac
6102    FILECMD=$ac_ct_FILECMD
6103  fi
6104else
6105  FILECMD="$ac_cv_prog_FILECMD"
6106fi
6107
6108
6109
6110
6111
6112
6113
6114if test -n "$ac_tool_prefix"; then
6115  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6116set dummy ${ac_tool_prefix}objdump; ac_word=$2
6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118printf %s "checking for $ac_word... " >&6; }
6119if test ${ac_cv_prog_OBJDUMP+y}
6120then :
6121  printf %s "(cached) " >&6
6122else case e in #(
6123  e) if test -n "$OBJDUMP"; then
6124  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129  IFS=$as_save_IFS
6130  case $as_dir in #(((
6131    '') as_dir=./ ;;
6132    */) ;;
6133    *) as_dir=$as_dir/ ;;
6134  esac
6135    for ac_exec_ext in '' $ac_executable_extensions; do
6136  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6137    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6138    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6139    break 2
6140  fi
6141done
6142  done
6143IFS=$as_save_IFS
6144
6145fi ;;
6146esac
6147fi
6148OBJDUMP=$ac_cv_prog_OBJDUMP
6149if test -n "$OBJDUMP"; then
6150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6151printf "%s\n" "$OBJDUMP" >&6; }
6152else
6153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154printf "%s\n" "no" >&6; }
6155fi
6156
6157
6158fi
6159if test -z "$ac_cv_prog_OBJDUMP"; then
6160  ac_ct_OBJDUMP=$OBJDUMP
6161  # Extract the first word of "objdump", so it can be a program name with args.
6162set dummy objdump; ac_word=$2
6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164printf %s "checking for $ac_word... " >&6; }
6165if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6166then :
6167  printf %s "(cached) " >&6
6168else case e in #(
6169  e) if test -n "$ac_ct_OBJDUMP"; then
6170  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175  IFS=$as_save_IFS
6176  case $as_dir in #(((
6177    '') as_dir=./ ;;
6178    */) ;;
6179    *) as_dir=$as_dir/ ;;
6180  esac
6181    for ac_exec_ext in '' $ac_executable_extensions; do
6182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6183    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6185    break 2
6186  fi
6187done
6188  done
6189IFS=$as_save_IFS
6190
6191fi ;;
6192esac
6193fi
6194ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6195if test -n "$ac_ct_OBJDUMP"; then
6196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6197printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6198else
6199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200printf "%s\n" "no" >&6; }
6201fi
6202
6203  if test "x$ac_ct_OBJDUMP" = x; then
6204    OBJDUMP="false"
6205  else
6206    case $cross_compiling:$ac_tool_warned in
6207yes:)
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210ac_tool_warned=yes ;;
6211esac
6212    OBJDUMP=$ac_ct_OBJDUMP
6213  fi
6214else
6215  OBJDUMP="$ac_cv_prog_OBJDUMP"
6216fi
6217
6218test -z "$OBJDUMP" && OBJDUMP=objdump
6219
6220
6221
6222
6223
6224
6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6226printf %s "checking how to recognize dependent libraries... " >&6; }
6227if test ${lt_cv_deplibs_check_method+y}
6228then :
6229  printf %s "(cached) " >&6
6230else case e in #(
6231  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6232lt_cv_file_magic_test_file=
6233lt_cv_deplibs_check_method='unknown'
6234# Need to set the preceding variable on all platforms that support
6235# interlibrary dependencies.
6236# 'none' -- dependencies not supported.
6237# 'unknown' -- same as none, but documents that we really don't know.
6238# 'pass_all' -- all dependencies passed with no checks.
6239# 'test_compile' -- check by making test program.
6240# 'file_magic [[regex]]' -- check by looking for files in library path
6241# that responds to the $file_magic_cmd with a given extended regex.
6242# If you have 'file' or equivalent on your system and you're not sure
6243# whether 'pass_all' will *always* work, you probably want this one.
6244
6245case $host_os in
6246aix[4-9]*)
6247  lt_cv_deplibs_check_method=pass_all
6248  ;;
6249
6250beos*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253
6254bsdi[45]*)
6255  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6256  lt_cv_file_magic_cmd='$FILECMD -L'
6257  lt_cv_file_magic_test_file=/shlib/libc.so
6258  ;;
6259
6260cygwin*)
6261  # func_win32_libid is a shell function defined in ltmain.sh
6262  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263  lt_cv_file_magic_cmd='func_win32_libid'
6264  ;;
6265
6266mingw* | pw32*)
6267  # Base MSYS/MinGW do not provide the 'file' command needed by
6268  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6269  # unless we find 'file', for example because we are cross-compiling.
6270  if ( file / ) >/dev/null 2>&1; then
6271    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6272    lt_cv_file_magic_cmd='func_win32_libid'
6273  else
6274    # Keep this pattern in sync with the one in func_win32_libid.
6275    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6276    lt_cv_file_magic_cmd='$OBJDUMP -f'
6277  fi
6278  ;;
6279
6280cegcc*)
6281  # use the weaker test based on 'objdump'. See mingw*.
6282  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6283  lt_cv_file_magic_cmd='$OBJDUMP -f'
6284  ;;
6285
6286darwin* | rhapsody*)
6287  lt_cv_deplibs_check_method=pass_all
6288  ;;
6289
6290freebsd* | dragonfly* | midnightbsd*)
6291  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6292    case $host_cpu in
6293    i*86 )
6294      # Not sure whether the presence of OpenBSD here was a mistake.
6295      # Let's accept both of them until this is cleared up.
6296      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6297      lt_cv_file_magic_cmd=$FILECMD
6298      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6299      ;;
6300    esac
6301  else
6302    lt_cv_deplibs_check_method=pass_all
6303  fi
6304  ;;
6305
6306haiku*)
6307  lt_cv_deplibs_check_method=pass_all
6308  ;;
6309
6310hpux10.20* | hpux11*)
6311  lt_cv_file_magic_cmd=$FILECMD
6312  case $host_cpu in
6313  ia64*)
6314    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6315    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6316    ;;
6317  hppa*64*)
6318    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]'
6319    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6320    ;;
6321  *)
6322    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6323    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6324    ;;
6325  esac
6326  ;;
6327
6328interix[3-9]*)
6329  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6330  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6331  ;;
6332
6333irix5* | irix6* | nonstopux*)
6334  case $LD in
6335  *-32|*"-32 ") libmagic=32-bit;;
6336  *-n32|*"-n32 ") libmagic=N32;;
6337  *-64|*"-64 ") libmagic=64-bit;;
6338  *) libmagic=never-match;;
6339  esac
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343# This must be glibc/ELF.
6344linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6345  lt_cv_deplibs_check_method=pass_all
6346  ;;
6347
6348netbsd*)
6349  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6351  else
6352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6353  fi
6354  ;;
6355
6356newos6*)
6357  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6358  lt_cv_file_magic_cmd=$FILECMD
6359  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6360  ;;
6361
6362*nto* | *qnx*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365
6366openbsd* | bitrig*)
6367  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6369  else
6370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6371  fi
6372  ;;
6373
6374osf3* | osf4* | osf5*)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377
6378rdos*)
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381
6382solaris*)
6383  lt_cv_deplibs_check_method=pass_all
6384  ;;
6385
6386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6387  lt_cv_deplibs_check_method=pass_all
6388  ;;
6389
6390sysv4 | sysv4.3*)
6391  case $host_vendor in
6392  motorola)
6393    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]'
6394    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395    ;;
6396  ncr)
6397    lt_cv_deplibs_check_method=pass_all
6398    ;;
6399  sequent)
6400    lt_cv_file_magic_cmd='/bin/file'
6401    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402    ;;
6403  sni)
6404    lt_cv_file_magic_cmd='/bin/file'
6405    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406    lt_cv_file_magic_test_file=/lib/libc.so
6407    ;;
6408  siemens)
6409    lt_cv_deplibs_check_method=pass_all
6410    ;;
6411  pc)
6412    lt_cv_deplibs_check_method=pass_all
6413    ;;
6414  esac
6415  ;;
6416
6417tpf*)
6418  lt_cv_deplibs_check_method=pass_all
6419  ;;
6420os2*)
6421  lt_cv_deplibs_check_method=pass_all
6422  ;;
6423esac
6424 ;;
6425esac
6426fi
6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6428printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6429
6430file_magic_glob=
6431want_nocaseglob=no
6432if test "$build" = "$host"; then
6433  case $host_os in
6434  mingw* | pw32*)
6435    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6436      want_nocaseglob=yes
6437    else
6438      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6439    fi
6440    ;;
6441  esac
6442fi
6443
6444file_magic_cmd=$lt_cv_file_magic_cmd
6445deplibs_check_method=$lt_cv_deplibs_check_method
6446test -z "$deplibs_check_method" && deplibs_check_method=unknown
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473printf %s "checking for $ac_word... " >&6; }
6474if test ${ac_cv_prog_DLLTOOL+y}
6475then :
6476  printf %s "(cached) " >&6
6477else case e in #(
6478  e) if test -n "$DLLTOOL"; then
6479  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  case $as_dir in #(((
6486    '') as_dir=./ ;;
6487    */) ;;
6488    *) as_dir=$as_dir/ ;;
6489  esac
6490    for ac_exec_ext in '' $ac_executable_extensions; do
6491  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6492    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6493    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497  done
6498IFS=$as_save_IFS
6499
6500fi ;;
6501esac
6502fi
6503DLLTOOL=$ac_cv_prog_DLLTOOL
6504if test -n "$DLLTOOL"; then
6505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6506printf "%s\n" "$DLLTOOL" >&6; }
6507else
6508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509printf "%s\n" "no" >&6; }
6510fi
6511
6512
6513fi
6514if test -z "$ac_cv_prog_DLLTOOL"; then
6515  ac_ct_DLLTOOL=$DLLTOOL
6516  # Extract the first word of "dlltool", so it can be a program name with args.
6517set dummy dlltool; ac_word=$2
6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519printf %s "checking for $ac_word... " >&6; }
6520if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6521then :
6522  printf %s "(cached) " >&6
6523else case e in #(
6524  e) if test -n "$ac_ct_DLLTOOL"; then
6525  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  case $as_dir in #(((
6532    '') as_dir=./ ;;
6533    */) ;;
6534    *) as_dir=$as_dir/ ;;
6535  esac
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6538    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546fi ;;
6547esac
6548fi
6549ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6550if test -n "$ac_ct_DLLTOOL"; then
6551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6552printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6553else
6554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555printf "%s\n" "no" >&6; }
6556fi
6557
6558  if test "x$ac_ct_DLLTOOL" = x; then
6559    DLLTOOL="false"
6560  else
6561    case $cross_compiling:$ac_tool_warned in
6562yes:)
6563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565ac_tool_warned=yes ;;
6566esac
6567    DLLTOOL=$ac_ct_DLLTOOL
6568  fi
6569else
6570  DLLTOOL="$ac_cv_prog_DLLTOOL"
6571fi
6572
6573test -z "$DLLTOOL" && DLLTOOL=dlltool
6574
6575
6576
6577
6578
6579
6580
6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6582printf %s "checking how to associate runtime and link libraries... " >&6; }
6583if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6584then :
6585  printf %s "(cached) " >&6
6586else case e in #(
6587  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6588
6589case $host_os in
6590cygwin* | mingw* | pw32* | cegcc*)
6591  # two different shell functions defined in ltmain.sh;
6592  # decide which one to use based on capabilities of $DLLTOOL
6593  case `$DLLTOOL --help 2>&1` in
6594  *--identify-strict*)
6595    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6596    ;;
6597  *)
6598    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6599    ;;
6600  esac
6601  ;;
6602*)
6603  # fallback: assume linklib IS sharedlib
6604  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6605  ;;
6606esac
6607 ;;
6608esac
6609fi
6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6611printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6612sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6613test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6614
6615
6616
6617
6618
6619
6620
6621if test -n "$ac_tool_prefix"; then
6622  for ac_prog in ar
6623  do
6624    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627printf %s "checking for $ac_word... " >&6; }
6628if test ${ac_cv_prog_AR+y}
6629then :
6630  printf %s "(cached) " >&6
6631else case e in #(
6632  e) if test -n "$AR"; then
6633  ac_cv_prog_AR="$AR" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638  IFS=$as_save_IFS
6639  case $as_dir in #(((
6640    '') as_dir=./ ;;
6641    */) ;;
6642    *) as_dir=$as_dir/ ;;
6643  esac
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6646    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651  done
6652IFS=$as_save_IFS
6653
6654fi ;;
6655esac
6656fi
6657AR=$ac_cv_prog_AR
6658if test -n "$AR"; then
6659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6660printf "%s\n" "$AR" >&6; }
6661else
6662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663printf "%s\n" "no" >&6; }
6664fi
6665
6666
6667    test -n "$AR" && break
6668  done
6669fi
6670if test -z "$AR"; then
6671  ac_ct_AR=$AR
6672  for ac_prog in ar
6673do
6674  # Extract the first word of "$ac_prog", so it can be a program name with args.
6675set dummy $ac_prog; ac_word=$2
6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677printf %s "checking for $ac_word... " >&6; }
6678if test ${ac_cv_prog_ac_ct_AR+y}
6679then :
6680  printf %s "(cached) " >&6
6681else case e in #(
6682  e) if test -n "$ac_ct_AR"; then
6683  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  case $as_dir in #(((
6690    '') as_dir=./ ;;
6691    */) ;;
6692    *) as_dir=$as_dir/ ;;
6693  esac
6694    for ac_exec_ext in '' $ac_executable_extensions; do
6695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6696    ac_cv_prog_ac_ct_AR="$ac_prog"
6697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6698    break 2
6699  fi
6700done
6701  done
6702IFS=$as_save_IFS
6703
6704fi ;;
6705esac
6706fi
6707ac_ct_AR=$ac_cv_prog_ac_ct_AR
6708if test -n "$ac_ct_AR"; then
6709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6710printf "%s\n" "$ac_ct_AR" >&6; }
6711else
6712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713printf "%s\n" "no" >&6; }
6714fi
6715
6716
6717  test -n "$ac_ct_AR" && break
6718done
6719
6720  if test "x$ac_ct_AR" = x; then
6721    AR="false"
6722  else
6723    case $cross_compiling:$ac_tool_warned in
6724yes:)
6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727ac_tool_warned=yes ;;
6728esac
6729    AR=$ac_ct_AR
6730  fi
6731fi
6732
6733: ${AR=ar}
6734
6735
6736
6737
6738
6739
6740# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6741# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6742# higher priority because thats what people were doing historically (setting
6743# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6744# variable obsoleted/removed.
6745
6746test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6747lt_ar_flags=$AR_FLAGS
6748
6749
6750
6751
6752
6753
6754# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6755# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6756
6757
6758
6759
6760
6761
6762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6763printf %s "checking for archiver @FILE support... " >&6; }
6764if test ${lt_cv_ar_at_file+y}
6765then :
6766  printf %s "(cached) " >&6
6767else case e in #(
6768  e) lt_cv_ar_at_file=no
6769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771
6772int
6773main (void)
6774{
6775
6776  ;
6777  return 0;
6778}
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"
6781then :
6782  echo conftest.$ac_objext > conftest.lst
6783      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6784      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6785  (eval $lt_ar_try) 2>&5
6786  ac_status=$?
6787  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788  test $ac_status = 0; }
6789      if test 0 -eq "$ac_status"; then
6790	# Ensure the archiver fails upon bogus file names.
6791	rm -f conftest.$ac_objext libconftest.a
6792	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6793  (eval $lt_ar_try) 2>&5
6794  ac_status=$?
6795  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796  test $ac_status = 0; }
6797	if test 0 -ne "$ac_status"; then
6798          lt_cv_ar_at_file=@
6799        fi
6800      fi
6801      rm -f conftest.* libconftest.a
6802
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6805   ;;
6806esac
6807fi
6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6809printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6810
6811if test no = "$lt_cv_ar_at_file"; then
6812  archiver_list_spec=
6813else
6814  archiver_list_spec=$lt_cv_ar_at_file
6815fi
6816
6817
6818
6819
6820
6821
6822
6823if test -n "$ac_tool_prefix"; then
6824  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6825set dummy ${ac_tool_prefix}strip; ac_word=$2
6826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827printf %s "checking for $ac_word... " >&6; }
6828if test ${ac_cv_prog_STRIP+y}
6829then :
6830  printf %s "(cached) " >&6
6831else case e in #(
6832  e) if test -n "$STRIP"; then
6833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838  IFS=$as_save_IFS
6839  case $as_dir in #(((
6840    '') as_dir=./ ;;
6841    */) ;;
6842    *) as_dir=$as_dir/ ;;
6843  esac
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6846    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854fi ;;
6855esac
6856fi
6857STRIP=$ac_cv_prog_STRIP
6858if test -n "$STRIP"; then
6859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6860printf "%s\n" "$STRIP" >&6; }
6861else
6862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863printf "%s\n" "no" >&6; }
6864fi
6865
6866
6867fi
6868if test -z "$ac_cv_prog_STRIP"; then
6869  ac_ct_STRIP=$STRIP
6870  # Extract the first word of "strip", so it can be a program name with args.
6871set dummy strip; ac_word=$2
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873printf %s "checking for $ac_word... " >&6; }
6874if test ${ac_cv_prog_ac_ct_STRIP+y}
6875then :
6876  printf %s "(cached) " >&6
6877else case e in #(
6878  e) if test -n "$ac_ct_STRIP"; then
6879  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884  IFS=$as_save_IFS
6885  case $as_dir in #(((
6886    '') as_dir=./ ;;
6887    */) ;;
6888    *) as_dir=$as_dir/ ;;
6889  esac
6890    for ac_exec_ext in '' $ac_executable_extensions; do
6891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892    ac_cv_prog_ac_ct_STRIP="strip"
6893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897  done
6898IFS=$as_save_IFS
6899
6900fi ;;
6901esac
6902fi
6903ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6904if test -n "$ac_ct_STRIP"; then
6905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6906printf "%s\n" "$ac_ct_STRIP" >&6; }
6907else
6908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909printf "%s\n" "no" >&6; }
6910fi
6911
6912  if test "x$ac_ct_STRIP" = x; then
6913    STRIP=":"
6914  else
6915    case $cross_compiling:$ac_tool_warned in
6916yes:)
6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919ac_tool_warned=yes ;;
6920esac
6921    STRIP=$ac_ct_STRIP
6922  fi
6923else
6924  STRIP="$ac_cv_prog_STRIP"
6925fi
6926
6927test -z "$STRIP" && STRIP=:
6928
6929
6930
6931
6932
6933
6934if test -n "$ac_tool_prefix"; then
6935  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938printf %s "checking for $ac_word... " >&6; }
6939if test ${ac_cv_prog_RANLIB+y}
6940then :
6941  printf %s "(cached) " >&6
6942else case e in #(
6943  e) if test -n "$RANLIB"; then
6944  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  case $as_dir in #(((
6951    '') as_dir=./ ;;
6952    */) ;;
6953    *) as_dir=$as_dir/ ;;
6954  esac
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi ;;
6966esac
6967fi
6968RANLIB=$ac_cv_prog_RANLIB
6969if test -n "$RANLIB"; then
6970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6971printf "%s\n" "$RANLIB" >&6; }
6972else
6973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974printf "%s\n" "no" >&6; }
6975fi
6976
6977
6978fi
6979if test -z "$ac_cv_prog_RANLIB"; then
6980  ac_ct_RANLIB=$RANLIB
6981  # Extract the first word of "ranlib", so it can be a program name with args.
6982set dummy ranlib; ac_word=$2
6983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984printf %s "checking for $ac_word... " >&6; }
6985if test ${ac_cv_prog_ac_ct_RANLIB+y}
6986then :
6987  printf %s "(cached) " >&6
6988else case e in #(
6989  e) if test -n "$ac_ct_RANLIB"; then
6990  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  case $as_dir in #(((
6997    '') as_dir=./ ;;
6998    */) ;;
6999    *) as_dir=$as_dir/ ;;
7000  esac
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_ac_ct_RANLIB="ranlib"
7004    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi ;;
7012esac
7013fi
7014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7015if test -n "$ac_ct_RANLIB"; then
7016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7017printf "%s\n" "$ac_ct_RANLIB" >&6; }
7018else
7019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020printf "%s\n" "no" >&6; }
7021fi
7022
7023  if test "x$ac_ct_RANLIB" = x; then
7024    RANLIB=":"
7025  else
7026    case $cross_compiling:$ac_tool_warned in
7027yes:)
7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030ac_tool_warned=yes ;;
7031esac
7032    RANLIB=$ac_ct_RANLIB
7033  fi
7034else
7035  RANLIB="$ac_cv_prog_RANLIB"
7036fi
7037
7038test -z "$RANLIB" && RANLIB=:
7039
7040
7041
7042
7043
7044
7045# Determine commands to create old-style static archives.
7046old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7047old_postinstall_cmds='chmod 644 $oldlib'
7048old_postuninstall_cmds=
7049
7050if test -n "$RANLIB"; then
7051  case $host_os in
7052  bitrig* | openbsd*)
7053    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7054    ;;
7055  *)
7056    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7057    ;;
7058  esac
7059  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7060fi
7061
7062case $host_os in
7063  darwin*)
7064    lock_old_archive_extraction=yes ;;
7065  *)
7066    lock_old_archive_extraction=no ;;
7067esac
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107# If no C compiler was specified, use CC.
7108LTCC=${LTCC-"$CC"}
7109
7110# If no C compiler flags were specified, use CFLAGS.
7111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7112
7113# Allow CC to be a program name with arguments.
7114compiler=$CC
7115
7116
7117# Check for command to grab the raw symbol name followed by C symbol from nm.
7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7119printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7120if test ${lt_cv_sys_global_symbol_pipe+y}
7121then :
7122  printf %s "(cached) " >&6
7123else case e in #(
7124  e)
7125# These are sane defaults that work on at least a few old systems.
7126# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7127
7128# Character class describing NM global symbol codes.
7129symcode='[BCDEGRST]'
7130
7131# Regexp to match symbols that can be accessed directly from C.
7132sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7133
7134# Define system-specific variables.
7135case $host_os in
7136aix*)
7137  symcode='[BCDT]'
7138  ;;
7139cygwin* | mingw* | pw32* | cegcc*)
7140  symcode='[ABCDGISTW]'
7141  ;;
7142hpux*)
7143  if test ia64 = "$host_cpu"; then
7144    symcode='[ABCDEGRST]'
7145  fi
7146  ;;
7147irix* | nonstopux*)
7148  symcode='[BCDEGRST]'
7149  ;;
7150osf*)
7151  symcode='[BCDEGQRST]'
7152  ;;
7153solaris*)
7154  symcode='[BDRT]'
7155  ;;
7156sco3.2v5*)
7157  symcode='[DT]'
7158  ;;
7159sysv4.2uw2*)
7160  symcode='[DT]'
7161  ;;
7162sysv5* | sco5v6* | unixware* | OpenUNIX*)
7163  symcode='[ABDT]'
7164  ;;
7165sysv4)
7166  symcode='[DFNSTU]'
7167  ;;
7168esac
7169
7170# If we're using GNU nm, then use its standard symbol codes.
7171case `$NM -V 2>&1` in
7172*GNU* | *'with BFD'*)
7173  symcode='[ABCDGIRSTW]' ;;
7174esac
7175
7176if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7177  # Gets list of data symbols to import.
7178  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7179  # Adjust the below global symbol transforms to fixup imported variables.
7180  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7181  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7182  lt_c_name_lib_hook="\
7183  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7184  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7185else
7186  # Disable hooks by default.
7187  lt_cv_sys_global_symbol_to_import=
7188  lt_cdecl_hook=
7189  lt_c_name_hook=
7190  lt_c_name_lib_hook=
7191fi
7192
7193# Transform an extracted symbol line into a proper C declaration.
7194# Some systems (esp. on ia64) link data and code symbols differently,
7195# so use this general approach.
7196lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7197$lt_cdecl_hook\
7198" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7199" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7200
7201# Transform an extracted symbol line into symbol name and symbol address
7202lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7203$lt_c_name_hook\
7204" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7205" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7206
7207# Transform an extracted symbol line into symbol name with lib prefix and
7208# symbol address.
7209lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7210$lt_c_name_lib_hook\
7211" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7212" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7213" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7214
7215# Handle CRLF in mingw tool chain
7216opt_cr=
7217case $build_os in
7218mingw*)
7219  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7220  ;;
7221esac
7222
7223# Try without a prefix underscore, then with it.
7224for ac_symprfx in "" "_"; do
7225
7226  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7227  symxfrm="\\1 $ac_symprfx\\2 \\2"
7228
7229  # Write the raw and C identifiers.
7230  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7231    # Fake it for dumpbin and say T for any non-static function,
7232    # D for any global variable and I for any imported variable.
7233    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7234    # which start with @ or ?.
7235    lt_cv_sys_global_symbol_pipe="$AWK '"\
7236"     {last_section=section; section=\$ 3};"\
7237"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7238"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7239"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7240"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7241"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7242"     \$ 0!~/External *\|/{next};"\
7243"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7244"     {if(hide[section]) next};"\
7245"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7246"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7247"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7248"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7249"     ' prfx=^$ac_symprfx"
7250  else
7251    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7252  fi
7253  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7254
7255  # Check to see that the pipe works correctly.
7256  pipe_works=no
7257
7258  rm -f conftest*
7259  cat > conftest.$ac_ext <<_LT_EOF
7260#ifdef __cplusplus
7261extern "C" {
7262#endif
7263char nm_test_var;
7264void nm_test_func(void);
7265void nm_test_func(void){}
7266#ifdef __cplusplus
7267}
7268#endif
7269int main(){nm_test_var='a';nm_test_func();return(0);}
7270_LT_EOF
7271
7272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273  (eval $ac_compile) 2>&5
7274  ac_status=$?
7275  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276  test $ac_status = 0; }; then
7277    # Now try to grab the symbols.
7278    nlist=conftest.nm
7279    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7280  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7281  ac_status=$?
7282  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283  test $ac_status = 0; } && test -s "$nlist"; then
7284      # Try sorting and uniquifying the output.
7285      if sort "$nlist" | uniq > "$nlist"T; then
7286	mv -f "$nlist"T "$nlist"
7287      else
7288	rm -f "$nlist"T
7289      fi
7290
7291      # Make sure that we snagged all the symbols we need.
7292      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7293	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7294	  cat <<_LT_EOF > conftest.$ac_ext
7295/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7296#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7297/* DATA imports from DLLs on WIN32 can't be const, because runtime
7298   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7299# define LT_DLSYM_CONST
7300#elif defined __osf__
7301/* This system does not cope well with relocations in const data.  */
7302# define LT_DLSYM_CONST
7303#else
7304# define LT_DLSYM_CONST const
7305#endif
7306
7307#ifdef __cplusplus
7308extern "C" {
7309#endif
7310
7311_LT_EOF
7312	  # Now generate the symbol file.
7313	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7314
7315	  cat <<_LT_EOF >> conftest.$ac_ext
7316
7317/* The mapping between symbol names and symbols.  */
7318LT_DLSYM_CONST struct {
7319  const char *name;
7320  void       *address;
7321}
7322lt__PROGRAM__LTX_preloaded_symbols[] =
7323{
7324  { "@PROGRAM@", (void *) 0 },
7325_LT_EOF
7326	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7327	  cat <<\_LT_EOF >> conftest.$ac_ext
7328  {0, (void *) 0}
7329};
7330
7331/* This works around a problem in FreeBSD linker */
7332#ifdef FREEBSD_WORKAROUND
7333static const void *lt_preloaded_setup() {
7334  return lt__PROGRAM__LTX_preloaded_symbols;
7335}
7336#endif
7337
7338#ifdef __cplusplus
7339}
7340#endif
7341_LT_EOF
7342	  # Now try linking the two files.
7343	  mv conftest.$ac_objext conftstm.$ac_objext
7344	  lt_globsym_save_LIBS=$LIBS
7345	  lt_globsym_save_CFLAGS=$CFLAGS
7346	  LIBS=conftstm.$ac_objext
7347	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7348	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7349  (eval $ac_link) 2>&5
7350  ac_status=$?
7351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7353	    pipe_works=yes
7354	  fi
7355	  LIBS=$lt_globsym_save_LIBS
7356	  CFLAGS=$lt_globsym_save_CFLAGS
7357	else
7358	  echo "cannot find nm_test_func in $nlist" >&5
7359	fi
7360      else
7361	echo "cannot find nm_test_var in $nlist" >&5
7362      fi
7363    else
7364      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7365    fi
7366  else
7367    echo "$progname: failed program was:" >&5
7368    cat conftest.$ac_ext >&5
7369  fi
7370  rm -rf conftest* conftst*
7371
7372  # Do not use the global_symbol_pipe unless it works.
7373  if test yes = "$pipe_works"; then
7374    break
7375  else
7376    lt_cv_sys_global_symbol_pipe=
7377  fi
7378done
7379 ;;
7380esac
7381fi
7382
7383if test -z "$lt_cv_sys_global_symbol_pipe"; then
7384  lt_cv_sys_global_symbol_to_cdecl=
7385fi
7386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7388printf "%s\n" "failed" >&6; }
7389else
7390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7391printf "%s\n" "ok" >&6; }
7392fi
7393
7394# Response file support.
7395if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7396  nm_file_list_spec='@'
7397elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7398  nm_file_list_spec='@'
7399fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7438printf %s "checking for sysroot... " >&6; }
7439
7440# Check whether --with-sysroot was given.
7441if test ${with_sysroot+y}
7442then :
7443  withval=$with_sysroot;
7444else case e in #(
7445  e) with_sysroot=no ;;
7446esac
7447fi
7448
7449
7450lt_sysroot=
7451case $with_sysroot in #(
7452 yes)
7453   if test yes = "$GCC"; then
7454     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7455   fi
7456   ;; #(
7457 /*)
7458   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7459   ;; #(
7460 no|'')
7461   ;; #(
7462 *)
7463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7464printf "%s\n" "$with_sysroot" >&6; }
7465   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7466   ;;
7467esac
7468
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7470printf "%s\n" "${lt_sysroot:-no}" >&6; }
7471
7472
7473
7474
7475
7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7477printf %s "checking for a working dd... " >&6; }
7478if test ${ac_cv_path_lt_DD+y}
7479then :
7480  printf %s "(cached) " >&6
7481else case e in #(
7482  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7483cat conftest.i conftest.i >conftest2.i
7484: ${lt_DD:=$DD}
7485if test -z "$lt_DD"; then
7486  ac_path_lt_DD_found=false
7487  # Loop through the user's path and test for each of PROGNAME-LIST
7488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  case $as_dir in #(((
7493    '') as_dir=./ ;;
7494    */) ;;
7495    *) as_dir=$as_dir/ ;;
7496  esac
7497    for ac_prog in dd
7498   do
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7501      as_fn_executable_p "$ac_path_lt_DD" || continue
7502if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7503  cmp -s conftest.i conftest.out \
7504  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7505fi
7506      $ac_path_lt_DD_found && break 3
7507    done
7508  done
7509  done
7510IFS=$as_save_IFS
7511  if test -z "$ac_cv_path_lt_DD"; then
7512    :
7513  fi
7514else
7515  ac_cv_path_lt_DD=$lt_DD
7516fi
7517
7518rm -f conftest.i conftest2.i conftest.out ;;
7519esac
7520fi
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7522printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7523
7524
7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7526printf %s "checking how to truncate binary pipes... " >&6; }
7527if test ${lt_cv_truncate_bin+y}
7528then :
7529  printf %s "(cached) " >&6
7530else case e in #(
7531  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7532cat conftest.i conftest.i >conftest2.i
7533lt_cv_truncate_bin=
7534if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7535  cmp -s conftest.i conftest.out \
7536  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7537fi
7538rm -f conftest.i conftest2.i conftest.out
7539test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7540esac
7541fi
7542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7543printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7544
7545
7546
7547
7548
7549
7550
7551# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7552func_cc_basename ()
7553{
7554    for cc_temp in $*""; do
7555      case $cc_temp in
7556        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7557        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558        \-*) ;;
7559        *) break;;
7560      esac
7561    done
7562    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7563}
7564
7565# Check whether --enable-libtool-lock was given.
7566if test ${enable_libtool_lock+y}
7567then :
7568  enableval=$enable_libtool_lock;
7569fi
7570
7571test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7572
7573# Some flags need to be propagated to the compiler or linker for good
7574# libtool support.
7575case $host in
7576ia64-*-hpux*)
7577  # Find out what ABI is being produced by ac_compile, and set mode
7578  # options accordingly.
7579  echo 'int i;' > conftest.$ac_ext
7580  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7581  (eval $ac_compile) 2>&5
7582  ac_status=$?
7583  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584  test $ac_status = 0; }; then
7585    case `$FILECMD conftest.$ac_objext` in
7586      *ELF-32*)
7587	HPUX_IA64_MODE=32
7588	;;
7589      *ELF-64*)
7590	HPUX_IA64_MODE=64
7591	;;
7592    esac
7593  fi
7594  rm -rf conftest*
7595  ;;
7596*-*-irix6*)
7597  # Find out what ABI is being produced by ac_compile, and set linker
7598  # options accordingly.
7599  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7600  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601  (eval $ac_compile) 2>&5
7602  ac_status=$?
7603  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604  test $ac_status = 0; }; then
7605    if test yes = "$lt_cv_prog_gnu_ld"; then
7606      case `$FILECMD conftest.$ac_objext` in
7607	*32-bit*)
7608	  LD="${LD-ld} -melf32bsmip"
7609	  ;;
7610	*N32*)
7611	  LD="${LD-ld} -melf32bmipn32"
7612	  ;;
7613	*64-bit*)
7614	  LD="${LD-ld} -melf64bmip"
7615	;;
7616      esac
7617    else
7618      case `$FILECMD conftest.$ac_objext` in
7619	*32-bit*)
7620	  LD="${LD-ld} -32"
7621	  ;;
7622	*N32*)
7623	  LD="${LD-ld} -n32"
7624	  ;;
7625	*64-bit*)
7626	  LD="${LD-ld} -64"
7627	  ;;
7628      esac
7629    fi
7630  fi
7631  rm -rf conftest*
7632  ;;
7633
7634mips64*-*linux*)
7635  # Find out what ABI is being produced by ac_compile, and set linker
7636  # options accordingly.
7637  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7638  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639  (eval $ac_compile) 2>&5
7640  ac_status=$?
7641  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642  test $ac_status = 0; }; then
7643    emul=elf
7644    case `$FILECMD conftest.$ac_objext` in
7645      *32-bit*)
7646	emul="${emul}32"
7647	;;
7648      *64-bit*)
7649	emul="${emul}64"
7650	;;
7651    esac
7652    case `$FILECMD conftest.$ac_objext` in
7653      *MSB*)
7654	emul="${emul}btsmip"
7655	;;
7656      *LSB*)
7657	emul="${emul}ltsmip"
7658	;;
7659    esac
7660    case `$FILECMD conftest.$ac_objext` in
7661      *N32*)
7662	emul="${emul}n32"
7663	;;
7664    esac
7665    LD="${LD-ld} -m $emul"
7666  fi
7667  rm -rf conftest*
7668  ;;
7669
7670x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7671s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7672  # Find out what ABI is being produced by ac_compile, and set linker
7673  # options accordingly.  Note that the listed cases only cover the
7674  # situations where additional linker options are needed (such as when
7675  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7676  # vice versa); the common cases where no linker options are needed do
7677  # not appear in the list.
7678  echo 'int i;' > conftest.$ac_ext
7679  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680  (eval $ac_compile) 2>&5
7681  ac_status=$?
7682  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683  test $ac_status = 0; }; then
7684    case `$FILECMD conftest.o` in
7685      *32-bit*)
7686	case $host in
7687	  x86_64-*kfreebsd*-gnu)
7688	    LD="${LD-ld} -m elf_i386_fbsd"
7689	    ;;
7690	  x86_64-*linux*)
7691	    case `$FILECMD conftest.o` in
7692	      *x86-64*)
7693		LD="${LD-ld} -m elf32_x86_64"
7694		;;
7695	      *)
7696		LD="${LD-ld} -m elf_i386"
7697		;;
7698	    esac
7699	    ;;
7700	  powerpc64le-*linux*)
7701	    LD="${LD-ld} -m elf32lppclinux"
7702	    ;;
7703	  powerpc64-*linux*)
7704	    LD="${LD-ld} -m elf32ppclinux"
7705	    ;;
7706	  s390x-*linux*)
7707	    LD="${LD-ld} -m elf_s390"
7708	    ;;
7709	  sparc64-*linux*)
7710	    LD="${LD-ld} -m elf32_sparc"
7711	    ;;
7712	esac
7713	;;
7714      *64-bit*)
7715	case $host in
7716	  x86_64-*kfreebsd*-gnu)
7717	    LD="${LD-ld} -m elf_x86_64_fbsd"
7718	    ;;
7719	  x86_64-*linux*)
7720	    LD="${LD-ld} -m elf_x86_64"
7721	    ;;
7722	  powerpcle-*linux*)
7723	    LD="${LD-ld} -m elf64lppc"
7724	    ;;
7725	  powerpc-*linux*)
7726	    LD="${LD-ld} -m elf64ppc"
7727	    ;;
7728	  s390*-*linux*|s390*-*tpf*)
7729	    LD="${LD-ld} -m elf64_s390"
7730	    ;;
7731	  sparc*-*linux*)
7732	    LD="${LD-ld} -m elf64_sparc"
7733	    ;;
7734	esac
7735	;;
7736    esac
7737  fi
7738  rm -rf conftest*
7739  ;;
7740
7741*-*-sco3.2v5*)
7742  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7743  SAVE_CFLAGS=$CFLAGS
7744  CFLAGS="$CFLAGS -belf"
7745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7746printf %s "checking whether the C compiler needs -belf... " >&6; }
7747if test ${lt_cv_cc_needs_belf+y}
7748then :
7749  printf %s "(cached) " >&6
7750else case e in #(
7751  e) ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759
7760int
7761main (void)
7762{
7763
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_link "$LINENO"
7769then :
7770  lt_cv_cc_needs_belf=yes
7771else case e in #(
7772  e) lt_cv_cc_needs_belf=no ;;
7773esac
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam \
7776    conftest$ac_exeext conftest.$ac_ext
7777     ac_ext=c
7778ac_cpp='$CPP $CPPFLAGS'
7779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 ;;
7783esac
7784fi
7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7786printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7787  if test yes != "$lt_cv_cc_needs_belf"; then
7788    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7789    CFLAGS=$SAVE_CFLAGS
7790  fi
7791  ;;
7792*-*solaris*)
7793  # Find out what ABI is being produced by ac_compile, and set linker
7794  # options accordingly.
7795  echo 'int i;' > conftest.$ac_ext
7796  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7797  (eval $ac_compile) 2>&5
7798  ac_status=$?
7799  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800  test $ac_status = 0; }; then
7801    case `$FILECMD conftest.o` in
7802    *64-bit*)
7803      case $lt_cv_prog_gnu_ld in
7804      yes*)
7805        case $host in
7806        i?86-*-solaris*|x86_64-*-solaris*)
7807          LD="${LD-ld} -m elf_x86_64"
7808          ;;
7809        sparc*-*-solaris*)
7810          LD="${LD-ld} -m elf64_sparc"
7811          ;;
7812        esac
7813        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7814        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7815          LD=${LD-ld}_sol2
7816        fi
7817        ;;
7818      *)
7819	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7820	  LD="${LD-ld} -64"
7821	fi
7822	;;
7823      esac
7824      ;;
7825    esac
7826  fi
7827  rm -rf conftest*
7828  ;;
7829esac
7830
7831need_locks=$enable_libtool_lock
7832
7833if test -n "$ac_tool_prefix"; then
7834  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7835set dummy ${ac_tool_prefix}mt; ac_word=$2
7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837printf %s "checking for $ac_word... " >&6; }
7838if test ${ac_cv_prog_MANIFEST_TOOL+y}
7839then :
7840  printf %s "(cached) " >&6
7841else case e in #(
7842  e) if test -n "$MANIFEST_TOOL"; then
7843  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  case $as_dir in #(((
7850    '') as_dir=./ ;;
7851    */) ;;
7852    *) as_dir=$as_dir/ ;;
7853  esac
7854    for ac_exec_ext in '' $ac_executable_extensions; do
7855  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7856    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861  done
7862IFS=$as_save_IFS
7863
7864fi ;;
7865esac
7866fi
7867MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7868if test -n "$MANIFEST_TOOL"; then
7869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7870printf "%s\n" "$MANIFEST_TOOL" >&6; }
7871else
7872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873printf "%s\n" "no" >&6; }
7874fi
7875
7876
7877fi
7878if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7879  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7880  # Extract the first word of "mt", so it can be a program name with args.
7881set dummy mt; ac_word=$2
7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883printf %s "checking for $ac_word... " >&6; }
7884if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7885then :
7886  printf %s "(cached) " >&6
7887else case e in #(
7888  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7889  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  case $as_dir in #(((
7896    '') as_dir=./ ;;
7897    */) ;;
7898    *) as_dir=$as_dir/ ;;
7899  esac
7900    for ac_exec_ext in '' $ac_executable_extensions; do
7901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904    break 2
7905  fi
7906done
7907  done
7908IFS=$as_save_IFS
7909
7910fi ;;
7911esac
7912fi
7913ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7914if test -n "$ac_ct_MANIFEST_TOOL"; then
7915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7916printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7917else
7918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919printf "%s\n" "no" >&6; }
7920fi
7921
7922  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7923    MANIFEST_TOOL=":"
7924  else
7925    case $cross_compiling:$ac_tool_warned in
7926yes:)
7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929ac_tool_warned=yes ;;
7930esac
7931    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7932  fi
7933else
7934  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7935fi
7936
7937test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7939printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7940if test ${lt_cv_path_mainfest_tool+y}
7941then :
7942  printf %s "(cached) " >&6
7943else case e in #(
7944  e) lt_cv_path_mainfest_tool=no
7945  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7946  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7947  cat conftest.err >&5
7948  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7949    lt_cv_path_mainfest_tool=yes
7950  fi
7951  rm -f conftest* ;;
7952esac
7953fi
7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7955printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7956if test yes != "$lt_cv_path_mainfest_tool"; then
7957  MANIFEST_TOOL=:
7958fi
7959
7960
7961
7962
7963
7964
7965  case $host_os in
7966    rhapsody* | darwin*)
7967    if test -n "$ac_tool_prefix"; then
7968  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7969set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971printf %s "checking for $ac_word... " >&6; }
7972if test ${ac_cv_prog_DSYMUTIL+y}
7973then :
7974  printf %s "(cached) " >&6
7975else case e in #(
7976  e) if test -n "$DSYMUTIL"; then
7977  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7978else
7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982  IFS=$as_save_IFS
7983  case $as_dir in #(((
7984    '') as_dir=./ ;;
7985    */) ;;
7986    *) as_dir=$as_dir/ ;;
7987  esac
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7991    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998fi ;;
7999esac
8000fi
8001DSYMUTIL=$ac_cv_prog_DSYMUTIL
8002if test -n "$DSYMUTIL"; then
8003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8004printf "%s\n" "$DSYMUTIL" >&6; }
8005else
8006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007printf "%s\n" "no" >&6; }
8008fi
8009
8010
8011fi
8012if test -z "$ac_cv_prog_DSYMUTIL"; then
8013  ac_ct_DSYMUTIL=$DSYMUTIL
8014  # Extract the first word of "dsymutil", so it can be a program name with args.
8015set dummy dsymutil; ac_word=$2
8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017printf %s "checking for $ac_word... " >&6; }
8018if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8019then :
8020  printf %s "(cached) " >&6
8021else case e in #(
8022  e) if test -n "$ac_ct_DSYMUTIL"; then
8023  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  case $as_dir in #(((
8030    '') as_dir=./ ;;
8031    */) ;;
8032    *) as_dir=$as_dir/ ;;
8033  esac
8034    for ac_exec_ext in '' $ac_executable_extensions; do
8035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038    break 2
8039  fi
8040done
8041  done
8042IFS=$as_save_IFS
8043
8044fi ;;
8045esac
8046fi
8047ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8048if test -n "$ac_ct_DSYMUTIL"; then
8049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8050printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8051else
8052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053printf "%s\n" "no" >&6; }
8054fi
8055
8056  if test "x$ac_ct_DSYMUTIL" = x; then
8057    DSYMUTIL=":"
8058  else
8059    case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065    DSYMUTIL=$ac_ct_DSYMUTIL
8066  fi
8067else
8068  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8069fi
8070
8071    if test -n "$ac_tool_prefix"; then
8072  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8073set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075printf %s "checking for $ac_word... " >&6; }
8076if test ${ac_cv_prog_NMEDIT+y}
8077then :
8078  printf %s "(cached) " >&6
8079else case e in #(
8080  e) if test -n "$NMEDIT"; then
8081  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086  IFS=$as_save_IFS
8087  case $as_dir in #(((
8088    '') as_dir=./ ;;
8089    */) ;;
8090    *) as_dir=$as_dir/ ;;
8091  esac
8092    for ac_exec_ext in '' $ac_executable_extensions; do
8093  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8095    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096    break 2
8097  fi
8098done
8099  done
8100IFS=$as_save_IFS
8101
8102fi ;;
8103esac
8104fi
8105NMEDIT=$ac_cv_prog_NMEDIT
8106if test -n "$NMEDIT"; then
8107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8108printf "%s\n" "$NMEDIT" >&6; }
8109else
8110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111printf "%s\n" "no" >&6; }
8112fi
8113
8114
8115fi
8116if test -z "$ac_cv_prog_NMEDIT"; then
8117  ac_ct_NMEDIT=$NMEDIT
8118  # Extract the first word of "nmedit", so it can be a program name with args.
8119set dummy nmedit; ac_word=$2
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121printf %s "checking for $ac_word... " >&6; }
8122if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8123then :
8124  printf %s "(cached) " >&6
8125else case e in #(
8126  e) if test -n "$ac_ct_NMEDIT"; then
8127  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132  IFS=$as_save_IFS
8133  case $as_dir in #(((
8134    '') as_dir=./ ;;
8135    */) ;;
8136    *) as_dir=$as_dir/ ;;
8137  esac
8138    for ac_exec_ext in '' $ac_executable_extensions; do
8139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142    break 2
8143  fi
8144done
8145  done
8146IFS=$as_save_IFS
8147
8148fi ;;
8149esac
8150fi
8151ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8152if test -n "$ac_ct_NMEDIT"; then
8153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8154printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8155else
8156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157printf "%s\n" "no" >&6; }
8158fi
8159
8160  if test "x$ac_ct_NMEDIT" = x; then
8161    NMEDIT=":"
8162  else
8163    case $cross_compiling:$ac_tool_warned in
8164yes:)
8165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167ac_tool_warned=yes ;;
8168esac
8169    NMEDIT=$ac_ct_NMEDIT
8170  fi
8171else
8172  NMEDIT="$ac_cv_prog_NMEDIT"
8173fi
8174
8175    if test -n "$ac_tool_prefix"; then
8176  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8177set dummy ${ac_tool_prefix}lipo; ac_word=$2
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179printf %s "checking for $ac_word... " >&6; }
8180if test ${ac_cv_prog_LIPO+y}
8181then :
8182  printf %s "(cached) " >&6
8183else case e in #(
8184  e) if test -n "$LIPO"; then
8185  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8186else
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190  IFS=$as_save_IFS
8191  case $as_dir in #(((
8192    '') as_dir=./ ;;
8193    */) ;;
8194    *) as_dir=$as_dir/ ;;
8195  esac
8196    for ac_exec_ext in '' $ac_executable_extensions; do
8197  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200    break 2
8201  fi
8202done
8203  done
8204IFS=$as_save_IFS
8205
8206fi ;;
8207esac
8208fi
8209LIPO=$ac_cv_prog_LIPO
8210if test -n "$LIPO"; then
8211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8212printf "%s\n" "$LIPO" >&6; }
8213else
8214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215printf "%s\n" "no" >&6; }
8216fi
8217
8218
8219fi
8220if test -z "$ac_cv_prog_LIPO"; then
8221  ac_ct_LIPO=$LIPO
8222  # Extract the first word of "lipo", so it can be a program name with args.
8223set dummy lipo; ac_word=$2
8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225printf %s "checking for $ac_word... " >&6; }
8226if test ${ac_cv_prog_ac_ct_LIPO+y}
8227then :
8228  printf %s "(cached) " >&6
8229else case e in #(
8230  e) if test -n "$ac_ct_LIPO"; then
8231  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236  IFS=$as_save_IFS
8237  case $as_dir in #(((
8238    '') as_dir=./ ;;
8239    */) ;;
8240    *) as_dir=$as_dir/ ;;
8241  esac
8242    for ac_exec_ext in '' $ac_executable_extensions; do
8243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244    ac_cv_prog_ac_ct_LIPO="lipo"
8245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8246    break 2
8247  fi
8248done
8249  done
8250IFS=$as_save_IFS
8251
8252fi ;;
8253esac
8254fi
8255ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8256if test -n "$ac_ct_LIPO"; then
8257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8258printf "%s\n" "$ac_ct_LIPO" >&6; }
8259else
8260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261printf "%s\n" "no" >&6; }
8262fi
8263
8264  if test "x$ac_ct_LIPO" = x; then
8265    LIPO=":"
8266  else
8267    case $cross_compiling:$ac_tool_warned in
8268yes:)
8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271ac_tool_warned=yes ;;
8272esac
8273    LIPO=$ac_ct_LIPO
8274  fi
8275else
8276  LIPO="$ac_cv_prog_LIPO"
8277fi
8278
8279    if test -n "$ac_tool_prefix"; then
8280  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8281set dummy ${ac_tool_prefix}otool; ac_word=$2
8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283printf %s "checking for $ac_word... " >&6; }
8284if test ${ac_cv_prog_OTOOL+y}
8285then :
8286  printf %s "(cached) " >&6
8287else case e in #(
8288  e) if test -n "$OTOOL"; then
8289  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294  IFS=$as_save_IFS
8295  case $as_dir in #(((
8296    '') as_dir=./ ;;
8297    */) ;;
8298    *) as_dir=$as_dir/ ;;
8299  esac
8300    for ac_exec_ext in '' $ac_executable_extensions; do
8301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8302    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8304    break 2
8305  fi
8306done
8307  done
8308IFS=$as_save_IFS
8309
8310fi ;;
8311esac
8312fi
8313OTOOL=$ac_cv_prog_OTOOL
8314if test -n "$OTOOL"; then
8315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8316printf "%s\n" "$OTOOL" >&6; }
8317else
8318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319printf "%s\n" "no" >&6; }
8320fi
8321
8322
8323fi
8324if test -z "$ac_cv_prog_OTOOL"; then
8325  ac_ct_OTOOL=$OTOOL
8326  # Extract the first word of "otool", so it can be a program name with args.
8327set dummy otool; ac_word=$2
8328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329printf %s "checking for $ac_word... " >&6; }
8330if test ${ac_cv_prog_ac_ct_OTOOL+y}
8331then :
8332  printf %s "(cached) " >&6
8333else case e in #(
8334  e) if test -n "$ac_ct_OTOOL"; then
8335  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8336else
8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340  IFS=$as_save_IFS
8341  case $as_dir in #(((
8342    '') as_dir=./ ;;
8343    */) ;;
8344    *) as_dir=$as_dir/ ;;
8345  esac
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8348    ac_cv_prog_ac_ct_OTOOL="otool"
8349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356fi ;;
8357esac
8358fi
8359ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8360if test -n "$ac_ct_OTOOL"; then
8361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8362printf "%s\n" "$ac_ct_OTOOL" >&6; }
8363else
8364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365printf "%s\n" "no" >&6; }
8366fi
8367
8368  if test "x$ac_ct_OTOOL" = x; then
8369    OTOOL=":"
8370  else
8371    case $cross_compiling:$ac_tool_warned in
8372yes:)
8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375ac_tool_warned=yes ;;
8376esac
8377    OTOOL=$ac_ct_OTOOL
8378  fi
8379else
8380  OTOOL="$ac_cv_prog_OTOOL"
8381fi
8382
8383    if test -n "$ac_tool_prefix"; then
8384  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8385set dummy ${ac_tool_prefix}otool64; ac_word=$2
8386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387printf %s "checking for $ac_word... " >&6; }
8388if test ${ac_cv_prog_OTOOL64+y}
8389then :
8390  printf %s "(cached) " >&6
8391else case e in #(
8392  e) if test -n "$OTOOL64"; then
8393  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  case $as_dir in #(((
8400    '') as_dir=./ ;;
8401    */) ;;
8402    *) as_dir=$as_dir/ ;;
8403  esac
8404    for ac_exec_ext in '' $ac_executable_extensions; do
8405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8406    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8408    break 2
8409  fi
8410done
8411  done
8412IFS=$as_save_IFS
8413
8414fi ;;
8415esac
8416fi
8417OTOOL64=$ac_cv_prog_OTOOL64
8418if test -n "$OTOOL64"; then
8419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8420printf "%s\n" "$OTOOL64" >&6; }
8421else
8422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423printf "%s\n" "no" >&6; }
8424fi
8425
8426
8427fi
8428if test -z "$ac_cv_prog_OTOOL64"; then
8429  ac_ct_OTOOL64=$OTOOL64
8430  # Extract the first word of "otool64", so it can be a program name with args.
8431set dummy otool64; ac_word=$2
8432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433printf %s "checking for $ac_word... " >&6; }
8434if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8435then :
8436  printf %s "(cached) " >&6
8437else case e in #(
8438  e) if test -n "$ac_ct_OTOOL64"; then
8439  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8440else
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444  IFS=$as_save_IFS
8445  case $as_dir in #(((
8446    '') as_dir=./ ;;
8447    */) ;;
8448    *) as_dir=$as_dir/ ;;
8449  esac
8450    for ac_exec_ext in '' $ac_executable_extensions; do
8451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8452    ac_cv_prog_ac_ct_OTOOL64="otool64"
8453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8454    break 2
8455  fi
8456done
8457  done
8458IFS=$as_save_IFS
8459
8460fi ;;
8461esac
8462fi
8463ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8464if test -n "$ac_ct_OTOOL64"; then
8465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8466printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8467else
8468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469printf "%s\n" "no" >&6; }
8470fi
8471
8472  if test "x$ac_ct_OTOOL64" = x; then
8473    OTOOL64=":"
8474  else
8475    case $cross_compiling:$ac_tool_warned in
8476yes:)
8477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8478printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8479ac_tool_warned=yes ;;
8480esac
8481    OTOOL64=$ac_ct_OTOOL64
8482  fi
8483else
8484  OTOOL64="$ac_cv_prog_OTOOL64"
8485fi
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8514printf %s "checking for -single_module linker flag... " >&6; }
8515if test ${lt_cv_apple_cc_single_mod+y}
8516then :
8517  printf %s "(cached) " >&6
8518else case e in #(
8519  e) lt_cv_apple_cc_single_mod=no
8520      if test -z "$LT_MULTI_MODULE"; then
8521	# By default we will add the -single_module flag. You can override
8522	# by either setting the environment variable LT_MULTI_MODULE
8523	# non-empty at configure time, or by adding -multi_module to the
8524	# link flags.
8525	rm -rf libconftest.dylib*
8526	echo "int foo(void){return 1;}" > conftest.c
8527	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528-dynamiclib -Wl,-single_module conftest.c" >&5
8529	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531        _lt_result=$?
8532	# If there is a non-empty error log, and "single_module"
8533	# appears in it, assume the flag caused a linker warning
8534        if test -s conftest.err && $GREP single_module conftest.err; then
8535	  cat conftest.err >&5
8536	# Otherwise, if the output was created with a 0 exit code from
8537	# the compiler, it worked.
8538	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8539	  lt_cv_apple_cc_single_mod=yes
8540	else
8541	  cat conftest.err >&5
8542	fi
8543	rm -rf libconftest.dylib*
8544	rm -f conftest.*
8545      fi ;;
8546esac
8547fi
8548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8549printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8550
8551    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8552printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8553if test ${lt_cv_ld_exported_symbols_list+y}
8554then :
8555  printf %s "(cached) " >&6
8556else case e in #(
8557  e) lt_cv_ld_exported_symbols_list=no
8558      save_LDFLAGS=$LDFLAGS
8559      echo "_main" > conftest.sym
8560      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8561      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563
8564int
8565main (void)
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_link "$LINENO"
8573then :
8574  lt_cv_ld_exported_symbols_list=yes
8575else case e in #(
8576  e) lt_cv_ld_exported_symbols_list=no ;;
8577esac
8578fi
8579rm -f core conftest.err conftest.$ac_objext conftest.beam \
8580    conftest$ac_exeext conftest.$ac_ext
8581	LDFLAGS=$save_LDFLAGS
8582     ;;
8583esac
8584fi
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8586printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8587
8588    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8589printf %s "checking for -force_load linker flag... " >&6; }
8590if test ${lt_cv_ld_force_load+y}
8591then :
8592  printf %s "(cached) " >&6
8593else case e in #(
8594  e) lt_cv_ld_force_load=no
8595      cat > conftest.c << _LT_EOF
8596int forced_loaded() { return 2;}
8597_LT_EOF
8598      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8599      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8600      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8601      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8602      echo "$RANLIB libconftest.a" >&5
8603      $RANLIB libconftest.a 2>&5
8604      cat > conftest.c << _LT_EOF
8605int main() { return 0;}
8606_LT_EOF
8607      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8608      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8609      _lt_result=$?
8610      if test -s conftest.err && $GREP force_load conftest.err; then
8611	cat conftest.err >&5
8612      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8613	lt_cv_ld_force_load=yes
8614      else
8615	cat conftest.err >&5
8616      fi
8617        rm -f conftest.err libconftest.a conftest conftest.c
8618        rm -rf conftest.dSYM
8619     ;;
8620esac
8621fi
8622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8623printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8624    case $host_os in
8625    rhapsody* | darwin1.[012])
8626      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8627    darwin1.*)
8628      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8629    darwin*)
8630      case $MACOSX_DEPLOYMENT_TARGET,$host in
8631        10.[012],*|,*powerpc*-darwin[5-8]*)
8632          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8633        *)
8634          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8635      esac
8636    ;;
8637  esac
8638    if test yes = "$lt_cv_apple_cc_single_mod"; then
8639      _lt_dar_single_mod='$single_module'
8640    fi
8641    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8642      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8643    else
8644      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8645    fi
8646    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8647      _lt_dsymutil='~$DSYMUTIL $lib || :'
8648    else
8649      _lt_dsymutil=
8650    fi
8651    ;;
8652  esac
8653
8654# func_munge_path_list VARIABLE PATH
8655# -----------------------------------
8656# VARIABLE is name of variable containing _space_ separated list of
8657# directories to be munged by the contents of PATH, which is string
8658# having a format:
8659# "DIR[:DIR]:"
8660#       string "DIR[ DIR]" will be prepended to VARIABLE
8661# ":DIR[:DIR]"
8662#       string "DIR[ DIR]" will be appended to VARIABLE
8663# "DIRP[:DIRP]::[DIRA:]DIRA"
8664#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8665#       "DIRA[ DIRA]" will be appended to VARIABLE
8666# "DIR[:DIR]"
8667#       VARIABLE will be replaced by "DIR[ DIR]"
8668func_munge_path_list ()
8669{
8670    case x$2 in
8671    x)
8672        ;;
8673    *:)
8674        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8675        ;;
8676    x:*)
8677        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8678        ;;
8679    *::*)
8680        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8681        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8682        ;;
8683    *)
8684        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8685        ;;
8686    esac
8687}
8688
8689ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690"
8691if test "x$ac_cv_header_dlfcn_h" = xyes
8692then :
8693  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8694
8695fi
8696
8697
8698
8699
8700
8701# Set options
8702enable_win32_dll=yes
8703
8704case $host in
8705*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8706  if test -n "$ac_tool_prefix"; then
8707  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8708set dummy ${ac_tool_prefix}as; ac_word=$2
8709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710printf %s "checking for $ac_word... " >&6; }
8711if test ${ac_cv_prog_AS+y}
8712then :
8713  printf %s "(cached) " >&6
8714else case e in #(
8715  e) if test -n "$AS"; then
8716  ac_cv_prog_AS="$AS" # Let the user override the test.
8717else
8718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719for as_dir in $PATH
8720do
8721  IFS=$as_save_IFS
8722  case $as_dir in #(((
8723    '') as_dir=./ ;;
8724    */) ;;
8725    *) as_dir=$as_dir/ ;;
8726  esac
8727    for ac_exec_ext in '' $ac_executable_extensions; do
8728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8729    ac_cv_prog_AS="${ac_tool_prefix}as"
8730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8731    break 2
8732  fi
8733done
8734  done
8735IFS=$as_save_IFS
8736
8737fi ;;
8738esac
8739fi
8740AS=$ac_cv_prog_AS
8741if test -n "$AS"; then
8742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8743printf "%s\n" "$AS" >&6; }
8744else
8745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746printf "%s\n" "no" >&6; }
8747fi
8748
8749
8750fi
8751if test -z "$ac_cv_prog_AS"; then
8752  ac_ct_AS=$AS
8753  # Extract the first word of "as", so it can be a program name with args.
8754set dummy as; ac_word=$2
8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756printf %s "checking for $ac_word... " >&6; }
8757if test ${ac_cv_prog_ac_ct_AS+y}
8758then :
8759  printf %s "(cached) " >&6
8760else case e in #(
8761  e) if test -n "$ac_ct_AS"; then
8762  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767  IFS=$as_save_IFS
8768  case $as_dir in #(((
8769    '') as_dir=./ ;;
8770    */) ;;
8771    *) as_dir=$as_dir/ ;;
8772  esac
8773    for ac_exec_ext in '' $ac_executable_extensions; do
8774  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8775    ac_cv_prog_ac_ct_AS="as"
8776    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8777    break 2
8778  fi
8779done
8780  done
8781IFS=$as_save_IFS
8782
8783fi ;;
8784esac
8785fi
8786ac_ct_AS=$ac_cv_prog_ac_ct_AS
8787if test -n "$ac_ct_AS"; then
8788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8789printf "%s\n" "$ac_ct_AS" >&6; }
8790else
8791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792printf "%s\n" "no" >&6; }
8793fi
8794
8795  if test "x$ac_ct_AS" = x; then
8796    AS="false"
8797  else
8798    case $cross_compiling:$ac_tool_warned in
8799yes:)
8800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802ac_tool_warned=yes ;;
8803esac
8804    AS=$ac_ct_AS
8805  fi
8806else
8807  AS="$ac_cv_prog_AS"
8808fi
8809
8810  if test -n "$ac_tool_prefix"; then
8811  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8812set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814printf %s "checking for $ac_word... " >&6; }
8815if test ${ac_cv_prog_DLLTOOL+y}
8816then :
8817  printf %s "(cached) " >&6
8818else case e in #(
8819  e) if test -n "$DLLTOOL"; then
8820  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8821else
8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in $PATH
8824do
8825  IFS=$as_save_IFS
8826  case $as_dir in #(((
8827    '') as_dir=./ ;;
8828    */) ;;
8829    *) as_dir=$as_dir/ ;;
8830  esac
8831    for ac_exec_ext in '' $ac_executable_extensions; do
8832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8833    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8835    break 2
8836  fi
8837done
8838  done
8839IFS=$as_save_IFS
8840
8841fi ;;
8842esac
8843fi
8844DLLTOOL=$ac_cv_prog_DLLTOOL
8845if test -n "$DLLTOOL"; then
8846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8847printf "%s\n" "$DLLTOOL" >&6; }
8848else
8849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850printf "%s\n" "no" >&6; }
8851fi
8852
8853
8854fi
8855if test -z "$ac_cv_prog_DLLTOOL"; then
8856  ac_ct_DLLTOOL=$DLLTOOL
8857  # Extract the first word of "dlltool", so it can be a program name with args.
8858set dummy dlltool; ac_word=$2
8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860printf %s "checking for $ac_word... " >&6; }
8861if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8862then :
8863  printf %s "(cached) " >&6
8864else case e in #(
8865  e) if test -n "$ac_ct_DLLTOOL"; then
8866  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8867else
8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871  IFS=$as_save_IFS
8872  case $as_dir in #(((
8873    '') as_dir=./ ;;
8874    */) ;;
8875    *) as_dir=$as_dir/ ;;
8876  esac
8877    for ac_exec_ext in '' $ac_executable_extensions; do
8878  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8879    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8880    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8881    break 2
8882  fi
8883done
8884  done
8885IFS=$as_save_IFS
8886
8887fi ;;
8888esac
8889fi
8890ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8891if test -n "$ac_ct_DLLTOOL"; then
8892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8893printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8894else
8895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896printf "%s\n" "no" >&6; }
8897fi
8898
8899  if test "x$ac_ct_DLLTOOL" = x; then
8900    DLLTOOL="false"
8901  else
8902    case $cross_compiling:$ac_tool_warned in
8903yes:)
8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8906ac_tool_warned=yes ;;
8907esac
8908    DLLTOOL=$ac_ct_DLLTOOL
8909  fi
8910else
8911  DLLTOOL="$ac_cv_prog_DLLTOOL"
8912fi
8913
8914  if test -n "$ac_tool_prefix"; then
8915  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8916set dummy ${ac_tool_prefix}objdump; ac_word=$2
8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918printf %s "checking for $ac_word... " >&6; }
8919if test ${ac_cv_prog_OBJDUMP+y}
8920then :
8921  printf %s "(cached) " >&6
8922else case e in #(
8923  e) if test -n "$OBJDUMP"; then
8924  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929  IFS=$as_save_IFS
8930  case $as_dir in #(((
8931    '') as_dir=./ ;;
8932    */) ;;
8933    *) as_dir=$as_dir/ ;;
8934  esac
8935    for ac_exec_ext in '' $ac_executable_extensions; do
8936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8937    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8939    break 2
8940  fi
8941done
8942  done
8943IFS=$as_save_IFS
8944
8945fi ;;
8946esac
8947fi
8948OBJDUMP=$ac_cv_prog_OBJDUMP
8949if test -n "$OBJDUMP"; then
8950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8951printf "%s\n" "$OBJDUMP" >&6; }
8952else
8953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954printf "%s\n" "no" >&6; }
8955fi
8956
8957
8958fi
8959if test -z "$ac_cv_prog_OBJDUMP"; then
8960  ac_ct_OBJDUMP=$OBJDUMP
8961  # Extract the first word of "objdump", so it can be a program name with args.
8962set dummy objdump; ac_word=$2
8963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964printf %s "checking for $ac_word... " >&6; }
8965if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8966then :
8967  printf %s "(cached) " >&6
8968else case e in #(
8969  e) if test -n "$ac_ct_OBJDUMP"; then
8970  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975  IFS=$as_save_IFS
8976  case $as_dir in #(((
8977    '') as_dir=./ ;;
8978    */) ;;
8979    *) as_dir=$as_dir/ ;;
8980  esac
8981    for ac_exec_ext in '' $ac_executable_extensions; do
8982  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8983    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8984    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8985    break 2
8986  fi
8987done
8988  done
8989IFS=$as_save_IFS
8990
8991fi ;;
8992esac
8993fi
8994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8995if test -n "$ac_ct_OBJDUMP"; then
8996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8997printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8998else
8999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000printf "%s\n" "no" >&6; }
9001fi
9002
9003  if test "x$ac_ct_OBJDUMP" = x; then
9004    OBJDUMP="false"
9005  else
9006    case $cross_compiling:$ac_tool_warned in
9007yes:)
9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010ac_tool_warned=yes ;;
9011esac
9012    OBJDUMP=$ac_ct_OBJDUMP
9013  fi
9014else
9015  OBJDUMP="$ac_cv_prog_OBJDUMP"
9016fi
9017
9018  ;;
9019esac
9020
9021test -z "$AS" && AS=as
9022
9023
9024
9025
9026
9027test -z "$DLLTOOL" && DLLTOOL=dlltool
9028
9029
9030
9031
9032
9033test -z "$OBJDUMP" && OBJDUMP=objdump
9034
9035
9036
9037
9038
9039
9040
9041        enable_dlopen=no
9042
9043
9044
9045            # Check whether --enable-shared was given.
9046if test ${enable_shared+y}
9047then :
9048  enableval=$enable_shared; p=${PACKAGE-default}
9049    case $enableval in
9050    yes) enable_shared=yes ;;
9051    no) enable_shared=no ;;
9052    *)
9053      enable_shared=no
9054      # Look at the argument we got.  We use all the common list separators.
9055      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9056      for pkg in $enableval; do
9057	IFS=$lt_save_ifs
9058	if test "X$pkg" = "X$p"; then
9059	  enable_shared=yes
9060	fi
9061      done
9062      IFS=$lt_save_ifs
9063      ;;
9064    esac
9065else case e in #(
9066  e) enable_shared=yes ;;
9067esac
9068fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078  # Check whether --enable-static was given.
9079if test ${enable_static+y}
9080then :
9081  enableval=$enable_static; p=${PACKAGE-default}
9082    case $enableval in
9083    yes) enable_static=yes ;;
9084    no) enable_static=no ;;
9085    *)
9086     enable_static=no
9087      # Look at the argument we got.  We use all the common list separators.
9088      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9089      for pkg in $enableval; do
9090	IFS=$lt_save_ifs
9091	if test "X$pkg" = "X$p"; then
9092	  enable_static=yes
9093	fi
9094      done
9095      IFS=$lt_save_ifs
9096      ;;
9097    esac
9098else case e in #(
9099  e) enable_static=yes ;;
9100esac
9101fi
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112# Check whether --with-pic was given.
9113if test ${with_pic+y}
9114then :
9115  withval=$with_pic; lt_p=${PACKAGE-default}
9116    case $withval in
9117    yes|no) pic_mode=$withval ;;
9118    *)
9119      pic_mode=default
9120      # Look at the argument we got.  We use all the common list separators.
9121      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122      for lt_pkg in $withval; do
9123	IFS=$lt_save_ifs
9124	if test "X$lt_pkg" = "X$lt_p"; then
9125	  pic_mode=yes
9126	fi
9127      done
9128      IFS=$lt_save_ifs
9129      ;;
9130    esac
9131else case e in #(
9132  e) pic_mode=default ;;
9133esac
9134fi
9135
9136
9137
9138
9139
9140
9141
9142
9143  # Check whether --enable-fast-install was given.
9144if test ${enable_fast_install+y}
9145then :
9146  enableval=$enable_fast_install; p=${PACKAGE-default}
9147    case $enableval in
9148    yes) enable_fast_install=yes ;;
9149    no) enable_fast_install=no ;;
9150    *)
9151      enable_fast_install=no
9152      # Look at the argument we got.  We use all the common list separators.
9153      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9154      for pkg in $enableval; do
9155	IFS=$lt_save_ifs
9156	if test "X$pkg" = "X$p"; then
9157	  enable_fast_install=yes
9158	fi
9159      done
9160      IFS=$lt_save_ifs
9161      ;;
9162    esac
9163else case e in #(
9164  e) enable_fast_install=yes ;;
9165esac
9166fi
9167
9168
9169
9170
9171
9172
9173
9174
9175  shared_archive_member_spec=
9176case $host,$enable_shared in
9177power*-*-aix[5-9]*,yes)
9178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9179printf %s "checking which variant of shared library versioning to provide... " >&6; }
9180
9181# Check whether --with-aix-soname was given.
9182if test ${with_aix_soname+y}
9183then :
9184  withval=$with_aix_soname; case $withval in
9185    aix|svr4|both)
9186      ;;
9187    *)
9188      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9189      ;;
9190    esac
9191    lt_cv_with_aix_soname=$with_aix_soname
9192else case e in #(
9193  e) if test ${lt_cv_with_aix_soname+y}
9194then :
9195  printf %s "(cached) " >&6
9196else case e in #(
9197  e) lt_cv_with_aix_soname=aix ;;
9198esac
9199fi
9200
9201    with_aix_soname=$lt_cv_with_aix_soname ;;
9202esac
9203fi
9204
9205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9206printf "%s\n" "$with_aix_soname" >&6; }
9207  if test aix != "$with_aix_soname"; then
9208    # For the AIX way of multilib, we name the shared archive member
9209    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9210    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9211    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9212    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9213    if test 64 = "${OBJECT_MODE-32}"; then
9214      shared_archive_member_spec=shr_64
9215    else
9216      shared_archive_member_spec=shr
9217    fi
9218  fi
9219  ;;
9220*)
9221  with_aix_soname=aix
9222  ;;
9223esac
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234# This can be used to rebuild libtool when needed
9235LIBTOOL_DEPS=$ltmain
9236
9237# Always use our own libtool.
9238LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269test -z "$LN_S" && LN_S="ln -s"
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284if test -n "${ZSH_VERSION+set}"; then
9285   setopt NO_GLOB_SUBST
9286fi
9287
9288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9289printf %s "checking for objdir... " >&6; }
9290if test ${lt_cv_objdir+y}
9291then :
9292  printf %s "(cached) " >&6
9293else case e in #(
9294  e) rm -f .libs 2>/dev/null
9295mkdir .libs 2>/dev/null
9296if test -d .libs; then
9297  lt_cv_objdir=.libs
9298else
9299  # MS-DOS does not allow filenames that begin with a dot.
9300  lt_cv_objdir=_libs
9301fi
9302rmdir .libs 2>/dev/null ;;
9303esac
9304fi
9305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9306printf "%s\n" "$lt_cv_objdir" >&6; }
9307objdir=$lt_cv_objdir
9308
9309
9310
9311
9312
9313printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9314
9315
9316
9317
9318case $host_os in
9319aix3*)
9320  # AIX sometimes has problems with the GCC collect2 program.  For some
9321  # reason, if we set the COLLECT_NAMES environment variable, the problems
9322  # vanish in a puff of smoke.
9323  if test set != "${COLLECT_NAMES+set}"; then
9324    COLLECT_NAMES=
9325    export COLLECT_NAMES
9326  fi
9327  ;;
9328esac
9329
9330# Global variables:
9331ofile=libtool
9332can_build_shared=yes
9333
9334# All known linkers require a '.a' archive for static linking (except MSVC and
9335# ICC, which need '.lib').
9336libext=a
9337
9338with_gnu_ld=$lt_cv_prog_gnu_ld
9339
9340old_CC=$CC
9341old_CFLAGS=$CFLAGS
9342
9343# Set sane defaults for various variables
9344test -z "$CC" && CC=cc
9345test -z "$LTCC" && LTCC=$CC
9346test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9347test -z "$LD" && LD=ld
9348test -z "$ac_objext" && ac_objext=o
9349
9350func_cc_basename $compiler
9351cc_basename=$func_cc_basename_result
9352
9353
9354# Only perform the check for file, if the check method requires it
9355test -z "$MAGIC_CMD" && MAGIC_CMD=file
9356case $deplibs_check_method in
9357file_magic*)
9358  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9359    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9360printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9361if test ${lt_cv_path_MAGIC_CMD+y}
9362then :
9363  printf %s "(cached) " >&6
9364else case e in #(
9365  e) case $MAGIC_CMD in
9366[\\/*] |  ?:[\\/]*)
9367  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9368  ;;
9369*)
9370  lt_save_MAGIC_CMD=$MAGIC_CMD
9371  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9372  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9373  for ac_dir in $ac_dummy; do
9374    IFS=$lt_save_ifs
9375    test -z "$ac_dir" && ac_dir=.
9376    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9377      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9378      if test -n "$file_magic_test_file"; then
9379	case $deplibs_check_method in
9380	"file_magic "*)
9381	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9382	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9383	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9384	    $EGREP "$file_magic_regex" > /dev/null; then
9385	    :
9386	  else
9387	    cat <<_LT_EOF 1>&2
9388
9389*** Warning: the command libtool uses to detect shared libraries,
9390*** $file_magic_cmd, produces output that libtool cannot recognize.
9391*** The result is that libtool may fail to recognize shared libraries
9392*** as such.  This will affect the creation of libtool libraries that
9393*** depend on shared libraries, but programs linked with such libtool
9394*** libraries will work regardless of this problem.  Nevertheless, you
9395*** may want to report the problem to your system manager and/or to
9396*** bug-libtool@gnu.org
9397
9398_LT_EOF
9399	  fi ;;
9400	esac
9401      fi
9402      break
9403    fi
9404  done
9405  IFS=$lt_save_ifs
9406  MAGIC_CMD=$lt_save_MAGIC_CMD
9407  ;;
9408esac ;;
9409esac
9410fi
9411
9412MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9413if test -n "$MAGIC_CMD"; then
9414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9415printf "%s\n" "$MAGIC_CMD" >&6; }
9416else
9417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418printf "%s\n" "no" >&6; }
9419fi
9420
9421
9422
9423
9424
9425if test -z "$lt_cv_path_MAGIC_CMD"; then
9426  if test -n "$ac_tool_prefix"; then
9427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9428printf %s "checking for file... " >&6; }
9429if test ${lt_cv_path_MAGIC_CMD+y}
9430then :
9431  printf %s "(cached) " >&6
9432else case e in #(
9433  e) case $MAGIC_CMD in
9434[\\/*] |  ?:[\\/]*)
9435  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9436  ;;
9437*)
9438  lt_save_MAGIC_CMD=$MAGIC_CMD
9439  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9440  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9441  for ac_dir in $ac_dummy; do
9442    IFS=$lt_save_ifs
9443    test -z "$ac_dir" && ac_dir=.
9444    if test -f "$ac_dir/file"; then
9445      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9446      if test -n "$file_magic_test_file"; then
9447	case $deplibs_check_method in
9448	"file_magic "*)
9449	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9450	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9451	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9452	    $EGREP "$file_magic_regex" > /dev/null; then
9453	    :
9454	  else
9455	    cat <<_LT_EOF 1>&2
9456
9457*** Warning: the command libtool uses to detect shared libraries,
9458*** $file_magic_cmd, produces output that libtool cannot recognize.
9459*** The result is that libtool may fail to recognize shared libraries
9460*** as such.  This will affect the creation of libtool libraries that
9461*** depend on shared libraries, but programs linked with such libtool
9462*** libraries will work regardless of this problem.  Nevertheless, you
9463*** may want to report the problem to your system manager and/or to
9464*** bug-libtool@gnu.org
9465
9466_LT_EOF
9467	  fi ;;
9468	esac
9469      fi
9470      break
9471    fi
9472  done
9473  IFS=$lt_save_ifs
9474  MAGIC_CMD=$lt_save_MAGIC_CMD
9475  ;;
9476esac ;;
9477esac
9478fi
9479
9480MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9481if test -n "$MAGIC_CMD"; then
9482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9483printf "%s\n" "$MAGIC_CMD" >&6; }
9484else
9485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486printf "%s\n" "no" >&6; }
9487fi
9488
9489
9490  else
9491    MAGIC_CMD=:
9492  fi
9493fi
9494
9495  fi
9496  ;;
9497esac
9498
9499# Use C for the default configuration in the libtool script
9500
9501lt_save_CC=$CC
9502ac_ext=c
9503ac_cpp='$CPP $CPPFLAGS'
9504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
9509# Source file extension for C test sources.
9510ac_ext=c
9511
9512# Object file extension for compiled C test sources.
9513objext=o
9514objext=$objext
9515
9516# Code to be used in simple compile tests
9517lt_simple_compile_test_code="int some_variable = 0;"
9518
9519# Code to be used in simple link tests
9520lt_simple_link_test_code='int main(){return(0);}'
9521
9522
9523
9524
9525
9526
9527
9528# If no C compiler was specified, use CC.
9529LTCC=${LTCC-"$CC"}
9530
9531# If no C compiler flags were specified, use CFLAGS.
9532LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9533
9534# Allow CC to be a program name with arguments.
9535compiler=$CC
9536
9537# Save the default compiler, since it gets overwritten when the other
9538# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9539compiler_DEFAULT=$CC
9540
9541# save warnings/boilerplate of simple test code
9542ac_outfile=conftest.$ac_objext
9543echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9545_lt_compiler_boilerplate=`cat conftest.err`
9546$RM conftest*
9547
9548ac_outfile=conftest.$ac_objext
9549echo "$lt_simple_link_test_code" >conftest.$ac_ext
9550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9551_lt_linker_boilerplate=`cat conftest.err`
9552$RM -r conftest*
9553
9554
9555## CAVEAT EMPTOR:
9556## There is no encapsulation within the following macros, do not change
9557## the running order or otherwise move them around unless you know exactly
9558## what you are doing...
9559if test -n "$compiler"; then
9560
9561lt_prog_compiler_no_builtin_flag=
9562
9563if test yes = "$GCC"; then
9564  case $cc_basename in
9565  nvcc*)
9566    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9567  *)
9568    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9569  esac
9570
9571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9572printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9573if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9574then :
9575  printf %s "(cached) " >&6
9576else case e in #(
9577  e) lt_cv_prog_compiler_rtti_exceptions=no
9578   ac_outfile=conftest.$ac_objext
9579   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9581   # Insert the option either (1) after the last *FLAGS variable, or
9582   # (2) before a word containing "conftest.", or (3) at the end.
9583   # Note that $ac_compile itself does not contain backslashes and begins
9584   # with a dollar sign (not a hyphen), so the echo should work correctly.
9585   # The option is referenced via a variable to avoid confusing sed.
9586   lt_compile=`echo "$ac_compile" | $SED \
9587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589   -e 's:$: $lt_compiler_flag:'`
9590   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591   (eval "$lt_compile" 2>conftest.err)
9592   ac_status=$?
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   if (exit $ac_status) && test -s "$ac_outfile"; then
9596     # The compiler can only warn and ignore the option if not recognized
9597     # So say no if there are warnings other than the usual output.
9598     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9599     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9600     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9601       lt_cv_prog_compiler_rtti_exceptions=yes
9602     fi
9603   fi
9604   $RM conftest*
9605 ;;
9606esac
9607fi
9608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9609printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9610
9611if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9612    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9613else
9614    :
9615fi
9616
9617fi
9618
9619
9620
9621
9622
9623
9624  lt_prog_compiler_wl=
9625lt_prog_compiler_pic=
9626lt_prog_compiler_static=
9627
9628
9629  if test yes = "$GCC"; then
9630    lt_prog_compiler_wl='-Wl,'
9631    lt_prog_compiler_static='-static'
9632
9633    case $host_os in
9634      aix*)
9635      # All AIX code is PIC.
9636      if test ia64 = "$host_cpu"; then
9637	# AIX 5 now supports IA64 processor
9638	lt_prog_compiler_static='-Bstatic'
9639      fi
9640      lt_prog_compiler_pic='-fPIC'
9641      ;;
9642
9643    amigaos*)
9644      case $host_cpu in
9645      powerpc)
9646            # see comment about AmigaOS4 .so support
9647            lt_prog_compiler_pic='-fPIC'
9648        ;;
9649      m68k)
9650            # FIXME: we need at least 68020 code to build shared libraries, but
9651            # adding the '-m68020' flag to GCC prevents building anything better,
9652            # like '-m68040'.
9653            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9654        ;;
9655      esac
9656      ;;
9657
9658    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9659      # PIC is the default for these OSes.
9660      ;;
9661
9662    mingw* | cygwin* | pw32* | os2* | cegcc*)
9663      # This hack is so that the source file can tell whether it is being
9664      # built for inclusion in a dll (and should export symbols for example).
9665      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9666      # (--disable-auto-import) libraries
9667      lt_prog_compiler_pic='-DDLL_EXPORT'
9668      case $host_os in
9669      os2*)
9670	lt_prog_compiler_static='$wl-static'
9671	;;
9672      esac
9673      ;;
9674
9675    darwin* | rhapsody*)
9676      # PIC is the default on this platform
9677      # Common symbols not allowed in MH_DYLIB files
9678      lt_prog_compiler_pic='-fno-common'
9679      ;;
9680
9681    haiku*)
9682      # PIC is the default for Haiku.
9683      # The "-static" flag exists, but is broken.
9684      lt_prog_compiler_static=
9685      ;;
9686
9687    hpux*)
9688      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9689      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9690      # sets the default TLS model and affects inlining.
9691      case $host_cpu in
9692      hppa*64*)
9693	# +Z the default
9694	;;
9695      *)
9696	lt_prog_compiler_pic='-fPIC'
9697	;;
9698      esac
9699      ;;
9700
9701    interix[3-9]*)
9702      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9703      # Instead, we relocate shared libraries at runtime.
9704      ;;
9705
9706    msdosdjgpp*)
9707      # Just because we use GCC doesn't mean we suddenly get shared libraries
9708      # on systems that don't support them.
9709      lt_prog_compiler_can_build_shared=no
9710      enable_shared=no
9711      ;;
9712
9713    *nto* | *qnx*)
9714      # QNX uses GNU C++, but need to define -shared option too, otherwise
9715      # it will coredump.
9716      lt_prog_compiler_pic='-fPIC -shared'
9717      ;;
9718
9719    sysv4*MP*)
9720      if test -d /usr/nec; then
9721	lt_prog_compiler_pic=-Kconform_pic
9722      fi
9723      ;;
9724
9725    *)
9726      lt_prog_compiler_pic='-fPIC'
9727      ;;
9728    esac
9729
9730    case $cc_basename in
9731    nvcc*) # Cuda Compiler Driver 2.2
9732      lt_prog_compiler_wl='-Xlinker '
9733      if test -n "$lt_prog_compiler_pic"; then
9734        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9735      fi
9736      ;;
9737    esac
9738  else
9739    # PORTME Check for flag to pass linker flags through the system compiler.
9740    case $host_os in
9741    aix*)
9742      lt_prog_compiler_wl='-Wl,'
9743      if test ia64 = "$host_cpu"; then
9744	# AIX 5 now supports IA64 processor
9745	lt_prog_compiler_static='-Bstatic'
9746      else
9747	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9748      fi
9749      ;;
9750
9751    darwin* | rhapsody*)
9752      # PIC is the default on this platform
9753      # Common symbols not allowed in MH_DYLIB files
9754      lt_prog_compiler_pic='-fno-common'
9755      case $cc_basename in
9756      nagfor*)
9757        # NAG Fortran compiler
9758        lt_prog_compiler_wl='-Wl,-Wl,,'
9759        lt_prog_compiler_pic='-PIC'
9760        lt_prog_compiler_static='-Bstatic'
9761        ;;
9762      esac
9763      ;;
9764
9765    mingw* | cygwin* | pw32* | os2* | cegcc*)
9766      # This hack is so that the source file can tell whether it is being
9767      # built for inclusion in a dll (and should export symbols for example).
9768      lt_prog_compiler_pic='-DDLL_EXPORT'
9769      case $host_os in
9770      os2*)
9771	lt_prog_compiler_static='$wl-static'
9772	;;
9773      esac
9774      ;;
9775
9776    hpux9* | hpux10* | hpux11*)
9777      lt_prog_compiler_wl='-Wl,'
9778      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9779      # not for PA HP-UX.
9780      case $host_cpu in
9781      hppa*64*|ia64*)
9782	# +Z the default
9783	;;
9784      *)
9785	lt_prog_compiler_pic='+Z'
9786	;;
9787      esac
9788      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9789      lt_prog_compiler_static='$wl-a ${wl}archive'
9790      ;;
9791
9792    irix5* | irix6* | nonstopux*)
9793      lt_prog_compiler_wl='-Wl,'
9794      # PIC (with -KPIC) is the default.
9795      lt_prog_compiler_static='-non_shared'
9796      ;;
9797
9798    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9799      case $cc_basename in
9800      # old Intel for x86_64, which still supported -KPIC.
9801      ecc*)
9802	lt_prog_compiler_wl='-Wl,'
9803	lt_prog_compiler_pic='-KPIC'
9804	lt_prog_compiler_static='-static'
9805        ;;
9806      # icc used to be incompatible with GCC.
9807      # ICC 10 doesn't accept -KPIC any more.
9808      icc* | ifort*)
9809	lt_prog_compiler_wl='-Wl,'
9810	lt_prog_compiler_pic='-fPIC'
9811	lt_prog_compiler_static='-static'
9812        ;;
9813      # Lahey Fortran 8.1.
9814      lf95*)
9815	lt_prog_compiler_wl='-Wl,'
9816	lt_prog_compiler_pic='--shared'
9817	lt_prog_compiler_static='--static'
9818	;;
9819      nagfor*)
9820	# NAG Fortran compiler
9821	lt_prog_compiler_wl='-Wl,-Wl,,'
9822	lt_prog_compiler_pic='-PIC'
9823	lt_prog_compiler_static='-Bstatic'
9824	;;
9825      tcc*)
9826	# Fabrice Bellard et al's Tiny C Compiler
9827	lt_prog_compiler_wl='-Wl,'
9828	lt_prog_compiler_pic='-fPIC'
9829	lt_prog_compiler_static='-static'
9830	;;
9831      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9832        # Portland Group compilers (*not* the Pentium gcc compiler,
9833	# which looks to be a dead project)
9834	lt_prog_compiler_wl='-Wl,'
9835	lt_prog_compiler_pic='-fpic'
9836	lt_prog_compiler_static='-Bstatic'
9837        ;;
9838      ccc*)
9839        lt_prog_compiler_wl='-Wl,'
9840        # All Alpha code is PIC.
9841        lt_prog_compiler_static='-non_shared'
9842        ;;
9843      xl* | bgxl* | bgf* | mpixl*)
9844	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9845	lt_prog_compiler_wl='-Wl,'
9846	lt_prog_compiler_pic='-qpic'
9847	lt_prog_compiler_static='-qstaticlink'
9848	;;
9849      *)
9850	case `$CC -V 2>&1 | $SED 5q` in
9851	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9852	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9853	  lt_prog_compiler_pic='-KPIC'
9854	  lt_prog_compiler_static='-Bstatic'
9855	  lt_prog_compiler_wl=''
9856	  ;;
9857	*Sun\ F* | *Sun*Fortran*)
9858	  lt_prog_compiler_pic='-KPIC'
9859	  lt_prog_compiler_static='-Bstatic'
9860	  lt_prog_compiler_wl='-Qoption ld '
9861	  ;;
9862	*Sun\ C*)
9863	  # Sun C 5.9
9864	  lt_prog_compiler_pic='-KPIC'
9865	  lt_prog_compiler_static='-Bstatic'
9866	  lt_prog_compiler_wl='-Wl,'
9867	  ;;
9868        *Intel*\ [CF]*Compiler*)
9869	  lt_prog_compiler_wl='-Wl,'
9870	  lt_prog_compiler_pic='-fPIC'
9871	  lt_prog_compiler_static='-static'
9872	  ;;
9873	*Portland\ Group*)
9874	  lt_prog_compiler_wl='-Wl,'
9875	  lt_prog_compiler_pic='-fpic'
9876	  lt_prog_compiler_static='-Bstatic'
9877	  ;;
9878	esac
9879	;;
9880      esac
9881      ;;
9882
9883    newsos6)
9884      lt_prog_compiler_pic='-KPIC'
9885      lt_prog_compiler_static='-Bstatic'
9886      ;;
9887
9888    *nto* | *qnx*)
9889      # QNX uses GNU C++, but need to define -shared option too, otherwise
9890      # it will coredump.
9891      lt_prog_compiler_pic='-fPIC -shared'
9892      ;;
9893
9894    osf3* | osf4* | osf5*)
9895      lt_prog_compiler_wl='-Wl,'
9896      # All OSF/1 code is PIC.
9897      lt_prog_compiler_static='-non_shared'
9898      ;;
9899
9900    rdos*)
9901      lt_prog_compiler_static='-non_shared'
9902      ;;
9903
9904    solaris*)
9905      lt_prog_compiler_pic='-KPIC'
9906      lt_prog_compiler_static='-Bstatic'
9907      case $cc_basename in
9908      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9909	lt_prog_compiler_wl='-Qoption ld ';;
9910      *)
9911	lt_prog_compiler_wl='-Wl,';;
9912      esac
9913      ;;
9914
9915    sunos4*)
9916      lt_prog_compiler_wl='-Qoption ld '
9917      lt_prog_compiler_pic='-PIC'
9918      lt_prog_compiler_static='-Bstatic'
9919      ;;
9920
9921    sysv4 | sysv4.2uw2* | sysv4.3*)
9922      lt_prog_compiler_wl='-Wl,'
9923      lt_prog_compiler_pic='-KPIC'
9924      lt_prog_compiler_static='-Bstatic'
9925      ;;
9926
9927    sysv4*MP*)
9928      if test -d /usr/nec; then
9929	lt_prog_compiler_pic='-Kconform_pic'
9930	lt_prog_compiler_static='-Bstatic'
9931      fi
9932      ;;
9933
9934    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9935      lt_prog_compiler_wl='-Wl,'
9936      lt_prog_compiler_pic='-KPIC'
9937      lt_prog_compiler_static='-Bstatic'
9938      ;;
9939
9940    unicos*)
9941      lt_prog_compiler_wl='-Wl,'
9942      lt_prog_compiler_can_build_shared=no
9943      ;;
9944
9945    uts4*)
9946      lt_prog_compiler_pic='-pic'
9947      lt_prog_compiler_static='-Bstatic'
9948      ;;
9949
9950    *)
9951      lt_prog_compiler_can_build_shared=no
9952      ;;
9953    esac
9954  fi
9955
9956case $host_os in
9957  # For platforms that do not support PIC, -DPIC is meaningless:
9958  *djgpp*)
9959    lt_prog_compiler_pic=
9960    ;;
9961  *)
9962    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9963    ;;
9964esac
9965
9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9967printf %s "checking for $compiler option to produce PIC... " >&6; }
9968if test ${lt_cv_prog_compiler_pic+y}
9969then :
9970  printf %s "(cached) " >&6
9971else case e in #(
9972  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9973esac
9974fi
9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9976printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9977lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9978
9979#
9980# Check to make sure the PIC flag actually works.
9981#
9982if test -n "$lt_prog_compiler_pic"; then
9983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9984printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9985if test ${lt_cv_prog_compiler_pic_works+y}
9986then :
9987  printf %s "(cached) " >&6
9988else case e in #(
9989  e) lt_cv_prog_compiler_pic_works=no
9990   ac_outfile=conftest.$ac_objext
9991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9993   # Insert the option either (1) after the last *FLAGS variable, or
9994   # (2) before a word containing "conftest.", or (3) at the end.
9995   # Note that $ac_compile itself does not contain backslashes and begins
9996   # with a dollar sign (not a hyphen), so the echo should work correctly.
9997   # The option is referenced via a variable to avoid confusing sed.
9998   lt_compile=`echo "$ac_compile" | $SED \
9999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10001   -e 's:$: $lt_compiler_flag:'`
10002   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10003   (eval "$lt_compile" 2>conftest.err)
10004   ac_status=$?
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   if (exit $ac_status) && test -s "$ac_outfile"; then
10008     # The compiler can only warn and ignore the option if not recognized
10009     # So say no if there are warnings other than the usual output.
10010     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10013       lt_cv_prog_compiler_pic_works=yes
10014     fi
10015   fi
10016   $RM conftest*
10017 ;;
10018esac
10019fi
10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10021printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10022
10023if test yes = "$lt_cv_prog_compiler_pic_works"; then
10024    case $lt_prog_compiler_pic in
10025     "" | " "*) ;;
10026     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10027     esac
10028else
10029    lt_prog_compiler_pic=
10030     lt_prog_compiler_can_build_shared=no
10031fi
10032
10033fi
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045#
10046# Check to make sure the static flag actually works.
10047#
10048wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10050printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10051if test ${lt_cv_prog_compiler_static_works+y}
10052then :
10053  printf %s "(cached) " >&6
10054else case e in #(
10055  e) lt_cv_prog_compiler_static_works=no
10056   save_LDFLAGS=$LDFLAGS
10057   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10058   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060     # The linker can only warn and ignore the option if not recognized
10061     # So say no if there are warnings
10062     if test -s conftest.err; then
10063       # Append any errors to the config.log.
10064       cat conftest.err 1>&5
10065       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067       if diff conftest.exp conftest.er2 >/dev/null; then
10068         lt_cv_prog_compiler_static_works=yes
10069       fi
10070     else
10071       lt_cv_prog_compiler_static_works=yes
10072     fi
10073   fi
10074   $RM -r conftest*
10075   LDFLAGS=$save_LDFLAGS
10076 ;;
10077esac
10078fi
10079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10080printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10081
10082if test yes = "$lt_cv_prog_compiler_static_works"; then
10083    :
10084else
10085    lt_prog_compiler_static=
10086fi
10087
10088
10089
10090
10091
10092
10093
10094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096if test ${lt_cv_prog_compiler_c_o+y}
10097then :
10098  printf %s "(cached) " >&6
10099else case e in #(
10100  e) lt_cv_prog_compiler_c_o=no
10101   $RM -r conftest 2>/dev/null
10102   mkdir conftest
10103   cd conftest
10104   mkdir out
10105   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10106
10107   lt_compiler_flag="-o out/conftest2.$ac_objext"
10108   # Insert the option either (1) after the last *FLAGS variable, or
10109   # (2) before a word containing "conftest.", or (3) at the end.
10110   # Note that $ac_compile itself does not contain backslashes and begins
10111   # with a dollar sign (not a hyphen), so the echo should work correctly.
10112   lt_compile=`echo "$ac_compile" | $SED \
10113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10115   -e 's:$: $lt_compiler_flag:'`
10116   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10117   (eval "$lt_compile" 2>out/conftest.err)
10118   ac_status=$?
10119   cat out/conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10122   then
10123     # The compiler can only warn and ignore the option if not recognized
10124     # So say no if there are warnings
10125     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10126     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10127     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10128       lt_cv_prog_compiler_c_o=yes
10129     fi
10130   fi
10131   chmod u+w . 2>&5
10132   $RM conftest*
10133   # SGI C++ compiler will create directory out/ii_files/ for
10134   # template instantiation
10135   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10136   $RM out/* && rmdir out
10137   cd ..
10138   $RM -r conftest
10139   $RM conftest*
10140 ;;
10141esac
10142fi
10143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10144printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10145
10146
10147
10148
10149
10150
10151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10152printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10153if test ${lt_cv_prog_compiler_c_o+y}
10154then :
10155  printf %s "(cached) " >&6
10156else case e in #(
10157  e) lt_cv_prog_compiler_c_o=no
10158   $RM -r conftest 2>/dev/null
10159   mkdir conftest
10160   cd conftest
10161   mkdir out
10162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10163
10164   lt_compiler_flag="-o out/conftest2.$ac_objext"
10165   # Insert the option either (1) after the last *FLAGS variable, or
10166   # (2) before a word containing "conftest.", or (3) at the end.
10167   # Note that $ac_compile itself does not contain backslashes and begins
10168   # with a dollar sign (not a hyphen), so the echo should work correctly.
10169   lt_compile=`echo "$ac_compile" | $SED \
10170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10172   -e 's:$: $lt_compiler_flag:'`
10173   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10174   (eval "$lt_compile" 2>out/conftest.err)
10175   ac_status=$?
10176   cat out/conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10179   then
10180     # The compiler can only warn and ignore the option if not recognized
10181     # So say no if there are warnings
10182     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10183     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10184     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10185       lt_cv_prog_compiler_c_o=yes
10186     fi
10187   fi
10188   chmod u+w . 2>&5
10189   $RM conftest*
10190   # SGI C++ compiler will create directory out/ii_files/ for
10191   # template instantiation
10192   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10193   $RM out/* && rmdir out
10194   cd ..
10195   $RM -r conftest
10196   $RM conftest*
10197 ;;
10198esac
10199fi
10200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10201printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10202
10203
10204
10205
10206hard_links=nottested
10207if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10208  # do not overwrite the value of need_locks provided by the user
10209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10210printf %s "checking if we can lock with hard links... " >&6; }
10211  hard_links=yes
10212  $RM conftest*
10213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10214  touch conftest.a
10215  ln conftest.a conftest.b 2>&5 || hard_links=no
10216  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10218printf "%s\n" "$hard_links" >&6; }
10219  if test no = "$hard_links"; then
10220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10221printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10222    need_locks=warn
10223  fi
10224else
10225  need_locks=no
10226fi
10227
10228
10229
10230
10231
10232
10233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10234printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10235
10236  runpath_var=
10237  allow_undefined_flag=
10238  always_export_symbols=no
10239  archive_cmds=
10240  archive_expsym_cmds=
10241  compiler_needs_object=no
10242  enable_shared_with_static_runtimes=no
10243  export_dynamic_flag_spec=
10244  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10245  hardcode_automatic=no
10246  hardcode_direct=no
10247  hardcode_direct_absolute=no
10248  hardcode_libdir_flag_spec=
10249  hardcode_libdir_separator=
10250  hardcode_minus_L=no
10251  hardcode_shlibpath_var=unsupported
10252  inherit_rpath=no
10253  link_all_deplibs=unknown
10254  module_cmds=
10255  module_expsym_cmds=
10256  old_archive_from_new_cmds=
10257  old_archive_from_expsyms_cmds=
10258  thread_safe_flag_spec=
10259  whole_archive_flag_spec=
10260  # include_expsyms should be a list of space-separated symbols to be *always*
10261  # included in the symbol list
10262  include_expsyms=
10263  # exclude_expsyms can be an extended regexp of symbols to exclude
10264  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10265  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10266  # as well as any symbol that contains 'd'.
10267  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10268  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10269  # platforms (ab)use it in PIC code, but their linkers get confused if
10270  # the symbol is explicitly referenced.  Since portable code cannot
10271  # rely on this symbol name, it's probably fine to never include it in
10272  # preloaded symbol tables.
10273  # Exclude shared library initialization/finalization symbols.
10274  extract_expsyms_cmds=
10275
10276  case $host_os in
10277  cygwin* | mingw* | pw32* | cegcc*)
10278    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10279    # When not using gcc, we currently assume that we are using
10280    # Microsoft Visual C++ or Intel C++ Compiler.
10281    if test yes != "$GCC"; then
10282      with_gnu_ld=no
10283    fi
10284    ;;
10285  interix*)
10286    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10287    with_gnu_ld=yes
10288    ;;
10289  openbsd* | bitrig*)
10290    with_gnu_ld=no
10291    ;;
10292  esac
10293
10294  ld_shlibs=yes
10295
10296  # On some targets, GNU ld is compatible enough with the native linker
10297  # that we're better off using the native interface for both.
10298  lt_use_gnu_ld_interface=no
10299  if test yes = "$with_gnu_ld"; then
10300    case $host_os in
10301      aix*)
10302	# The AIX port of GNU ld has always aspired to compatibility
10303	# with the native linker.  However, as the warning in the GNU ld
10304	# block says, versions before 2.19.5* couldn't really create working
10305	# shared libraries, regardless of the interface used.
10306	case `$LD -v 2>&1` in
10307	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10308	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10309	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10310	  *)
10311	    lt_use_gnu_ld_interface=yes
10312	    ;;
10313	esac
10314	;;
10315      *)
10316	lt_use_gnu_ld_interface=yes
10317	;;
10318    esac
10319  fi
10320
10321  if test yes = "$lt_use_gnu_ld_interface"; then
10322    # If archive_cmds runs LD, not CC, wlarc should be empty
10323    wlarc='$wl'
10324
10325    # Set some defaults for GNU ld with shared library support. These
10326    # are reset later if shared libraries are not supported. Putting them
10327    # here allows them to be overridden if necessary.
10328    runpath_var=LD_RUN_PATH
10329    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330    export_dynamic_flag_spec='$wl--export-dynamic'
10331    # ancient GNU ld didn't support --whole-archive et. al.
10332    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10333      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10334    else
10335      whole_archive_flag_spec=
10336    fi
10337    supports_anon_versioning=no
10338    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10339      *GNU\ gold*) supports_anon_versioning=yes ;;
10340      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10341      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10342      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10343      *\ 2.11.*) ;; # other 2.11 versions
10344      *) supports_anon_versioning=yes ;;
10345    esac
10346
10347    # See if GNU ld supports shared libraries.
10348    case $host_os in
10349    aix[3-9]*)
10350      # On AIX/PPC, the GNU linker is very broken
10351      if test ia64 != "$host_cpu"; then
10352	ld_shlibs=no
10353	cat <<_LT_EOF 1>&2
10354
10355*** Warning: the GNU linker, at least up to release 2.19, is reported
10356*** to be unable to reliably create shared libraries on AIX.
10357*** Therefore, libtool is disabling shared libraries support.  If you
10358*** really care for shared libraries, you may want to install binutils
10359*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10360*** You will then need to restart the configuration process.
10361
10362_LT_EOF
10363      fi
10364      ;;
10365
10366    amigaos*)
10367      case $host_cpu in
10368      powerpc)
10369            # see comment about AmigaOS4 .so support
10370            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10371            archive_expsym_cmds=''
10372        ;;
10373      m68k)
10374            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)'
10375            hardcode_libdir_flag_spec='-L$libdir'
10376            hardcode_minus_L=yes
10377        ;;
10378      esac
10379      ;;
10380
10381    beos*)
10382      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10383	allow_undefined_flag=unsupported
10384	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10385	# support --undefined.  This deserves some investigation.  FIXME
10386	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10387      else
10388	ld_shlibs=no
10389      fi
10390      ;;
10391
10392    cygwin* | mingw* | pw32* | cegcc*)
10393      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10394      # as there is no search path for DLLs.
10395      hardcode_libdir_flag_spec='-L$libdir'
10396      export_dynamic_flag_spec='$wl--export-all-symbols'
10397      allow_undefined_flag=unsupported
10398      always_export_symbols=no
10399      enable_shared_with_static_runtimes=yes
10400      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'
10401      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10402
10403      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10404        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10405	# If the export-symbols file already is a .def file, use it as
10406	# is; otherwise, prepend EXPORTS...
10407	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10408          cp $export_symbols $output_objdir/$soname.def;
10409        else
10410          echo EXPORTS > $output_objdir/$soname.def;
10411          cat $export_symbols >> $output_objdir/$soname.def;
10412        fi~
10413        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10414      else
10415	ld_shlibs=no
10416      fi
10417      ;;
10418
10419    haiku*)
10420      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421      link_all_deplibs=yes
10422      ;;
10423
10424    os2*)
10425      hardcode_libdir_flag_spec='-L$libdir'
10426      hardcode_minus_L=yes
10427      allow_undefined_flag=unsupported
10428      shrext_cmds=.dll
10429      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432	$ECHO EXPORTS >> $output_objdir/$libname.def~
10433	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10434	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10435	emximp -o $lib $output_objdir/$libname.def'
10436      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10437	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10438	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10439	$ECHO EXPORTS >> $output_objdir/$libname.def~
10440	prefix_cmds="$SED"~
10441	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10442	  prefix_cmds="$prefix_cmds -e 1d";
10443	fi~
10444	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10445	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10446	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10447	emximp -o $lib $output_objdir/$libname.def'
10448      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10449      enable_shared_with_static_runtimes=yes
10450      file_list_spec='@'
10451      ;;
10452
10453    interix[3-9]*)
10454      hardcode_direct=no
10455      hardcode_shlibpath_var=no
10456      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10457      export_dynamic_flag_spec='$wl-E'
10458      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10459      # Instead, shared libraries are loaded at an image base (0x10000000 by
10460      # default) and relocated if they conflict, which is a slow very memory
10461      # consuming and fragmenting process.  To avoid this, we pick a random,
10462      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10463      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10464      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10465      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'
10466      ;;
10467
10468    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10469      tmp_diet=no
10470      if test linux-dietlibc = "$host_os"; then
10471	case $cc_basename in
10472	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10473	esac
10474      fi
10475      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10476	 && test no = "$tmp_diet"
10477      then
10478	tmp_addflag=' $pic_flag'
10479	tmp_sharedflag='-shared'
10480	case $cc_basename,$host_cpu in
10481        pgcc*)				# Portland Group C compiler
10482	  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'
10483	  tmp_addflag=' $pic_flag'
10484	  ;;
10485	pgf77* | pgf90* | pgf95* | pgfortran*)
10486					# Portland Group f77 and f90 compilers
10487	  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'
10488	  tmp_addflag=' $pic_flag -Mnomain' ;;
10489	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10490	  tmp_addflag=' -i_dynamic' ;;
10491	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10492	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10493	ifc* | ifort*)			# Intel Fortran compiler
10494	  tmp_addflag=' -nofor_main' ;;
10495	lf95*)				# Lahey Fortran 8.1
10496	  whole_archive_flag_spec=
10497	  tmp_sharedflag='--shared' ;;
10498        nagfor*)                        # NAGFOR 5.3
10499          tmp_sharedflag='-Wl,-shared' ;;
10500	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10501	  tmp_sharedflag='-qmkshrobj'
10502	  tmp_addflag= ;;
10503	nvcc*)	# Cuda Compiler Driver 2.2
10504	  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'
10505	  compiler_needs_object=yes
10506	  ;;
10507	esac
10508	case `$CC -V 2>&1 | $SED 5q` in
10509	*Sun\ C*)			# Sun C 5.9
10510	  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'
10511	  compiler_needs_object=yes
10512	  tmp_sharedflag='-G' ;;
10513	*Sun\ F*)			# Sun Fortran 8.3
10514	  tmp_sharedflag='-G' ;;
10515	esac
10516	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10517
10518        if test yes = "$supports_anon_versioning"; then
10519          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521            echo "local: *; };" >> $output_objdir/$libname.ver~
10522            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10523        fi
10524
10525	case $cc_basename in
10526	tcc*)
10527	  export_dynamic_flag_spec='-rdynamic'
10528	  ;;
10529	xlf* | bgf* | bgxlf* | mpixlf*)
10530	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10531	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10532	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10533	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10534	  if test yes = "$supports_anon_versioning"; then
10535	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10536              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10537              echo "local: *; };" >> $output_objdir/$libname.ver~
10538              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10539	  fi
10540	  ;;
10541	esac
10542      else
10543        ld_shlibs=no
10544      fi
10545      ;;
10546
10547    netbsd*)
10548      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10549	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10550	wlarc=
10551      else
10552	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10554      fi
10555      ;;
10556
10557    solaris*)
10558      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10559	ld_shlibs=no
10560	cat <<_LT_EOF 1>&2
10561
10562*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10563*** create shared libraries on Solaris systems.  Therefore, libtool
10564*** is disabling shared libraries support.  We urge you to upgrade GNU
10565*** binutils to release 2.9.1 or newer.  Another option is to modify
10566*** your PATH or compiler configuration so that the native linker is
10567*** used, and then restart.
10568
10569_LT_EOF
10570      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10571	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10572	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10573      else
10574	ld_shlibs=no
10575      fi
10576      ;;
10577
10578    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10579      case `$LD -v 2>&1` in
10580        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10581	ld_shlibs=no
10582	cat <<_LT_EOF 1>&2
10583
10584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10585*** reliably create shared libraries on SCO systems.  Therefore, libtool
10586*** is disabling shared libraries support.  We urge you to upgrade GNU
10587*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10588*** your PATH or compiler configuration so that the native linker is
10589*** used, and then restart.
10590
10591_LT_EOF
10592	;;
10593	*)
10594	  # For security reasons, it is highly recommended that you always
10595	  # use absolute paths for naming shared libraries, and exclude the
10596	  # DT_RUNPATH tag from executables and libraries.  But doing so
10597	  # requires that you compile everything twice, which is a pain.
10598	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10599	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10600	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10601	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602	  else
10603	    ld_shlibs=no
10604	  fi
10605	;;
10606      esac
10607      ;;
10608
10609    sunos4*)
10610      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10611      wlarc=
10612      hardcode_direct=yes
10613      hardcode_shlibpath_var=no
10614      ;;
10615
10616    *)
10617      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10618	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10620      else
10621	ld_shlibs=no
10622      fi
10623      ;;
10624    esac
10625
10626    if test no = "$ld_shlibs"; then
10627      runpath_var=
10628      hardcode_libdir_flag_spec=
10629      export_dynamic_flag_spec=
10630      whole_archive_flag_spec=
10631    fi
10632  else
10633    # PORTME fill in a description of your system's linker (not GNU ld)
10634    case $host_os in
10635    aix3*)
10636      allow_undefined_flag=unsupported
10637      always_export_symbols=yes
10638      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'
10639      # Note: this linker hardcodes the directories in LIBPATH if there
10640      # are no directories specified by -L.
10641      hardcode_minus_L=yes
10642      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10643	# Neither direct hardcoding nor static linking is supported with a
10644	# broken collect2.
10645	hardcode_direct=unsupported
10646      fi
10647      ;;
10648
10649    aix[4-9]*)
10650      if test ia64 = "$host_cpu"; then
10651	# On IA64, the linker does run time linking by default, so we don't
10652	# have to do anything special.
10653	aix_use_runtimelinking=no
10654	exp_sym_flag='-Bexport'
10655	no_entry_flag=
10656      else
10657	# If we're using GNU nm, then we don't want the "-C" option.
10658	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10659	# Without the "-l" option, or with the "-B" option, AIX nm treats
10660	# weak defined symbols like other global defined symbols, whereas
10661	# GNU nm marks them as "W".
10662	# While the 'weak' keyword is ignored in the Export File, we need
10663	# it in the Import File for the 'aix-soname' feature, so we have
10664	# to replace the "-B" option with "-P" for AIX nm.
10665	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10666	  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'
10667	else
10668	  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'
10669	fi
10670	aix_use_runtimelinking=no
10671
10672	# Test if we are trying to use run time linking or normal
10673	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10674	# have runtime linking enabled, and use it for executables.
10675	# For shared libraries, we enable/disable runtime linking
10676	# depending on the kind of the shared library created -
10677	# when "with_aix_soname,aix_use_runtimelinking" is:
10678	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10679	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10680	#            lib.a           static archive
10681	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10682	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10683	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10684	#            lib.a(lib.so.V) shared, rtl:no
10685	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10686	#            lib.a           static archive
10687	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688	  for ld_flag in $LDFLAGS; do
10689	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10690	    aix_use_runtimelinking=yes
10691	    break
10692	  fi
10693	  done
10694	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10695	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10696	    # so we don't have lib.a shared libs to link our executables.
10697	    # We have to force runtime linking in this case.
10698	    aix_use_runtimelinking=yes
10699	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10700	  fi
10701	  ;;
10702	esac
10703
10704	exp_sym_flag='-bexport'
10705	no_entry_flag='-bnoentry'
10706      fi
10707
10708      # When large executables or shared objects are built, AIX ld can
10709      # have problems creating the table of contents.  If linking a library
10710      # or program results in "error TOC overflow" add -mminimal-toc to
10711      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10712      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10713
10714      archive_cmds=''
10715      hardcode_direct=yes
10716      hardcode_direct_absolute=yes
10717      hardcode_libdir_separator=':'
10718      link_all_deplibs=yes
10719      file_list_spec='$wl-f,'
10720      case $with_aix_soname,$aix_use_runtimelinking in
10721      aix,*) ;; # traditional, no import file
10722      svr4,* | *,yes) # use import file
10723	# The Import File defines what to hardcode.
10724	hardcode_direct=no
10725	hardcode_direct_absolute=no
10726	;;
10727      esac
10728
10729      if test yes = "$GCC"; then
10730	case $host_os in aix4.[012]|aix4.[012].*)
10731	# We only want to do this on AIX 4.2 and lower, the check
10732	# below for broken collect2 doesn't work under 4.3+
10733	  collect2name=`$CC -print-prog-name=collect2`
10734	  if test -f "$collect2name" &&
10735	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10736	  then
10737	  # We have reworked collect2
10738	  :
10739	  else
10740	  # We have old collect2
10741	  hardcode_direct=unsupported
10742	  # It fails to find uninstalled libraries when the uninstalled
10743	  # path is not listed in the libpath.  Setting hardcode_minus_L
10744	  # to unsupported forces relinking
10745	  hardcode_minus_L=yes
10746	  hardcode_libdir_flag_spec='-L$libdir'
10747	  hardcode_libdir_separator=
10748	  fi
10749	  ;;
10750	esac
10751	shared_flag='-shared'
10752	if test yes = "$aix_use_runtimelinking"; then
10753	  shared_flag="$shared_flag "'$wl-G'
10754	fi
10755	# Need to ensure runtime linking is disabled for the traditional
10756	# shared library, or the linker may eventually find shared libraries
10757	# /with/ Import File - we do not want to mix them.
10758	shared_flag_aix='-shared'
10759	shared_flag_svr4='-shared $wl-G'
10760      else
10761	# not using gcc
10762	if test ia64 = "$host_cpu"; then
10763	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10764	# chokes on -Wl,-G. The following line is correct:
10765	  shared_flag='-G'
10766	else
10767	  if test yes = "$aix_use_runtimelinking"; then
10768	    shared_flag='$wl-G'
10769	  else
10770	    shared_flag='$wl-bM:SRE'
10771	  fi
10772	  shared_flag_aix='$wl-bM:SRE'
10773	  shared_flag_svr4='$wl-G'
10774	fi
10775      fi
10776
10777      export_dynamic_flag_spec='$wl-bexpall'
10778      # It seems that -bexpall does not export symbols beginning with
10779      # underscore (_), so it is better to generate a list of symbols to export.
10780      always_export_symbols=yes
10781      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10782	# Warning - without using the other runtime loading flags (-brtl),
10783	# -berok will link without error, but may produce a broken library.
10784	allow_undefined_flag='-berok'
10785        # Determine the default libpath from the value encoded in an
10786        # empty executable.
10787        if test set = "${lt_cv_aix_libpath+set}"; then
10788  aix_libpath=$lt_cv_aix_libpath
10789else
10790  if test ${lt_cv_aix_libpath_+y}
10791then :
10792  printf %s "(cached) " >&6
10793else case e in #(
10794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h.  */
10796
10797int
10798main (void)
10799{
10800
10801  ;
10802  return 0;
10803}
10804_ACEOF
10805if ac_fn_c_try_link "$LINENO"
10806then :
10807
10808  lt_aix_libpath_sed='
10809      /Import File Strings/,/^$/ {
10810	  /^0/ {
10811	      s/^0  *\([^ ]*\) *$/\1/
10812	      p
10813	  }
10814      }'
10815  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10816  # Check for a 64-bit object if we didn't find anything.
10817  if test -z "$lt_cv_aix_libpath_"; then
10818    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10819  fi
10820fi
10821rm -f core conftest.err conftest.$ac_objext conftest.beam \
10822    conftest$ac_exeext conftest.$ac_ext
10823  if test -z "$lt_cv_aix_libpath_"; then
10824    lt_cv_aix_libpath_=/usr/lib:/lib
10825  fi
10826   ;;
10827esac
10828fi
10829
10830  aix_libpath=$lt_cv_aix_libpath_
10831fi
10832
10833        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10834        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
10835      else
10836	if test ia64 = "$host_cpu"; then
10837	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10838	  allow_undefined_flag="-z nodefs"
10839	  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"
10840	else
10841	 # Determine the default libpath from the value encoded in an
10842	 # empty executable.
10843	 if test set = "${lt_cv_aix_libpath+set}"; then
10844  aix_libpath=$lt_cv_aix_libpath
10845else
10846  if test ${lt_cv_aix_libpath_+y}
10847then :
10848  printf %s "(cached) " >&6
10849else case e in #(
10850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h.  */
10852
10853int
10854main (void)
10855{
10856
10857  ;
10858  return 0;
10859}
10860_ACEOF
10861if ac_fn_c_try_link "$LINENO"
10862then :
10863
10864  lt_aix_libpath_sed='
10865      /Import File Strings/,/^$/ {
10866	  /^0/ {
10867	      s/^0  *\([^ ]*\) *$/\1/
10868	      p
10869	  }
10870      }'
10871  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10872  # Check for a 64-bit object if we didn't find anything.
10873  if test -z "$lt_cv_aix_libpath_"; then
10874    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10875  fi
10876fi
10877rm -f core conftest.err conftest.$ac_objext conftest.beam \
10878    conftest$ac_exeext conftest.$ac_ext
10879  if test -z "$lt_cv_aix_libpath_"; then
10880    lt_cv_aix_libpath_=/usr/lib:/lib
10881  fi
10882   ;;
10883esac
10884fi
10885
10886  aix_libpath=$lt_cv_aix_libpath_
10887fi
10888
10889	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10890	  # Warning - without using the other run time loading flags,
10891	  # -berok will link without error, but may produce a broken library.
10892	  no_undefined_flag=' $wl-bernotok'
10893	  allow_undefined_flag=' $wl-berok'
10894	  if test yes = "$with_gnu_ld"; then
10895	    # We only use this code for GNU lds that support --whole-archive.
10896	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10897	  else
10898	    # Exported symbols can be pulled into shared objects from archives
10899	    whole_archive_flag_spec='$convenience'
10900	  fi
10901	  archive_cmds_need_lc=yes
10902	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10903	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10904	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10905	  if test svr4 != "$with_aix_soname"; then
10906	    # This is similar to how AIX traditionally builds its shared libraries.
10907	    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'
10908	  fi
10909	  if test aix != "$with_aix_soname"; then
10910	    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'
10911	  else
10912	    # used by -dlpreopen to get the symbols
10913	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10914	  fi
10915	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10916	fi
10917      fi
10918      ;;
10919
10920    amigaos*)
10921      case $host_cpu in
10922      powerpc)
10923            # see comment about AmigaOS4 .so support
10924            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10925            archive_expsym_cmds=''
10926        ;;
10927      m68k)
10928            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)'
10929            hardcode_libdir_flag_spec='-L$libdir'
10930            hardcode_minus_L=yes
10931        ;;
10932      esac
10933      ;;
10934
10935    bsdi[45]*)
10936      export_dynamic_flag_spec=-rdynamic
10937      ;;
10938
10939    cygwin* | mingw* | pw32* | cegcc*)
10940      # When not using gcc, we currently assume that we are using
10941      # Microsoft Visual C++ or Intel C++ Compiler.
10942      # hardcode_libdir_flag_spec is actually meaningless, as there is
10943      # no search path for DLLs.
10944      case $cc_basename in
10945      cl* | icl*)
10946	# Native MSVC or ICC
10947	hardcode_libdir_flag_spec=' '
10948	allow_undefined_flag=unsupported
10949	always_export_symbols=yes
10950	file_list_spec='@'
10951	# Tell ltmain to make .lib files, not .a files.
10952	libext=lib
10953	# Tell ltmain to make .dll files, not .so files.
10954	shrext_cmds=.dll
10955	# FIXME: Setting linknames here is a bad hack.
10956	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10957	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10958            cp "$export_symbols" "$output_objdir/$soname.def";
10959            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10960          else
10961            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10962          fi~
10963          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10964          linknames='
10965	# The linker will not automatically build a static lib if we build a DLL.
10966	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10967	enable_shared_with_static_runtimes=yes
10968	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10969	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10970	# Don't use ranlib
10971	old_postinstall_cmds='chmod 644 $oldlib'
10972	postlink_cmds='lt_outputfile="@OUTPUT@"~
10973          lt_tool_outputfile="@TOOL_OUTPUT@"~
10974          case $lt_outputfile in
10975            *.exe|*.EXE) ;;
10976            *)
10977              lt_outputfile=$lt_outputfile.exe
10978              lt_tool_outputfile=$lt_tool_outputfile.exe
10979              ;;
10980          esac~
10981          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10982            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10983            $RM "$lt_outputfile.manifest";
10984          fi'
10985	;;
10986      *)
10987	# Assume MSVC and ICC wrapper
10988	hardcode_libdir_flag_spec=' '
10989	allow_undefined_flag=unsupported
10990	# Tell ltmain to make .lib files, not .a files.
10991	libext=lib
10992	# Tell ltmain to make .dll files, not .so files.
10993	shrext_cmds=.dll
10994	# FIXME: Setting linknames here is a bad hack.
10995	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10996	# The linker will automatically build a .lib file if we build a DLL.
10997	old_archive_from_new_cmds='true'
10998	# FIXME: Should let the user specify the lib program.
10999	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11000	enable_shared_with_static_runtimes=yes
11001	;;
11002      esac
11003      ;;
11004
11005    darwin* | rhapsody*)
11006
11007
11008  archive_cmds_need_lc=no
11009  hardcode_direct=no
11010  hardcode_automatic=yes
11011  hardcode_shlibpath_var=unsupported
11012  if test yes = "$lt_cv_ld_force_load"; then
11013    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\"`'
11014
11015  else
11016    whole_archive_flag_spec=''
11017  fi
11018  link_all_deplibs=yes
11019  allow_undefined_flag=$_lt_dar_allow_undefined
11020  case $cc_basename in
11021     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11022     *) _lt_dar_can_shared=$GCC ;;
11023  esac
11024  if test yes = "$_lt_dar_can_shared"; then
11025    output_verbose_link_cmd=func_echo_all
11026    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11027    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11028    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"
11029    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"
11030
11031  else
11032  ld_shlibs=no
11033  fi
11034
11035      ;;
11036
11037    dgux*)
11038      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039      hardcode_libdir_flag_spec='-L$libdir'
11040      hardcode_shlibpath_var=no
11041      ;;
11042
11043    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11044    # support.  Future versions do this automatically, but an explicit c++rt0.o
11045    # does not break anything, and helps significantly (at the cost of a little
11046    # extra space).
11047    freebsd2.2*)
11048      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11049      hardcode_libdir_flag_spec='-R$libdir'
11050      hardcode_direct=yes
11051      hardcode_shlibpath_var=no
11052      ;;
11053
11054    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11055    freebsd2.*)
11056      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11057      hardcode_direct=yes
11058      hardcode_minus_L=yes
11059      hardcode_shlibpath_var=no
11060      ;;
11061
11062    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11063    freebsd* | dragonfly* | midnightbsd*)
11064      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11065      hardcode_libdir_flag_spec='-R$libdir'
11066      hardcode_direct=yes
11067      hardcode_shlibpath_var=no
11068      ;;
11069
11070    hpux9*)
11071      if test yes = "$GCC"; then
11072	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'
11073      else
11074	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'
11075      fi
11076      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11077      hardcode_libdir_separator=:
11078      hardcode_direct=yes
11079
11080      # hardcode_minus_L: Not really in the search PATH,
11081      # but as the default location of the library.
11082      hardcode_minus_L=yes
11083      export_dynamic_flag_spec='$wl-E'
11084      ;;
11085
11086    hpux10*)
11087      if test yes,no = "$GCC,$with_gnu_ld"; then
11088	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11089      else
11090	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11091      fi
11092      if test no = "$with_gnu_ld"; then
11093	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11094	hardcode_libdir_separator=:
11095	hardcode_direct=yes
11096	hardcode_direct_absolute=yes
11097	export_dynamic_flag_spec='$wl-E'
11098	# hardcode_minus_L: Not really in the search PATH,
11099	# but as the default location of the library.
11100	hardcode_minus_L=yes
11101      fi
11102      ;;
11103
11104    hpux11*)
11105      if test yes,no = "$GCC,$with_gnu_ld"; then
11106	case $host_cpu in
11107	hppa*64*)
11108	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11109	  ;;
11110	ia64*)
11111	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11112	  ;;
11113	*)
11114	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11115	  ;;
11116	esac
11117      else
11118	case $host_cpu in
11119	hppa*64*)
11120	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11121	  ;;
11122	ia64*)
11123	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11124	  ;;
11125	*)
11126
11127	  # Older versions of the 11.00 compiler do not understand -b yet
11128	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11129	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11130printf %s "checking if $CC understands -b... " >&6; }
11131if test ${lt_cv_prog_compiler__b+y}
11132then :
11133  printf %s "(cached) " >&6
11134else case e in #(
11135  e) lt_cv_prog_compiler__b=no
11136   save_LDFLAGS=$LDFLAGS
11137   LDFLAGS="$LDFLAGS -b"
11138   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11139   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11140     # The linker can only warn and ignore the option if not recognized
11141     # So say no if there are warnings
11142     if test -s conftest.err; then
11143       # Append any errors to the config.log.
11144       cat conftest.err 1>&5
11145       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11146       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11147       if diff conftest.exp conftest.er2 >/dev/null; then
11148         lt_cv_prog_compiler__b=yes
11149       fi
11150     else
11151       lt_cv_prog_compiler__b=yes
11152     fi
11153   fi
11154   $RM -r conftest*
11155   LDFLAGS=$save_LDFLAGS
11156 ;;
11157esac
11158fi
11159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11160printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11161
11162if test yes = "$lt_cv_prog_compiler__b"; then
11163    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11164else
11165    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11166fi
11167
11168	  ;;
11169	esac
11170      fi
11171      if test no = "$with_gnu_ld"; then
11172	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11173	hardcode_libdir_separator=:
11174
11175	case $host_cpu in
11176	hppa*64*|ia64*)
11177	  hardcode_direct=no
11178	  hardcode_shlibpath_var=no
11179	  ;;
11180	*)
11181	  hardcode_direct=yes
11182	  hardcode_direct_absolute=yes
11183	  export_dynamic_flag_spec='$wl-E'
11184
11185	  # hardcode_minus_L: Not really in the search PATH,
11186	  # but as the default location of the library.
11187	  hardcode_minus_L=yes
11188	  ;;
11189	esac
11190      fi
11191      ;;
11192
11193    irix5* | irix6* | nonstopux*)
11194      if test yes = "$GCC"; then
11195	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'
11196	# Try to use the -exported_symbol ld option, if it does not
11197	# work, assume that -exports_file does not work either and
11198	# implicitly export all symbols.
11199	# This should be the same for all languages, so no per-tag cache variable.
11200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11201printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11202if test ${lt_cv_irix_exported_symbol+y}
11203then :
11204  printf %s "(cached) " >&6
11205else case e in #(
11206  e) save_LDFLAGS=$LDFLAGS
11207	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11208	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h.  */
11210int foo (void) { return 0; }
11211_ACEOF
11212if ac_fn_c_try_link "$LINENO"
11213then :
11214  lt_cv_irix_exported_symbol=yes
11215else case e in #(
11216  e) lt_cv_irix_exported_symbol=no ;;
11217esac
11218fi
11219rm -f core conftest.err conftest.$ac_objext conftest.beam \
11220    conftest$ac_exeext conftest.$ac_ext
11221           LDFLAGS=$save_LDFLAGS ;;
11222esac
11223fi
11224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11225printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11226	if test yes = "$lt_cv_irix_exported_symbol"; then
11227          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'
11228	fi
11229      else
11230	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'
11231	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'
11232      fi
11233      archive_cmds_need_lc='no'
11234      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11235      hardcode_libdir_separator=:
11236      inherit_rpath=yes
11237      link_all_deplibs=yes
11238      ;;
11239
11240    linux*)
11241      case $cc_basename in
11242      tcc*)
11243	# Fabrice Bellard et al's Tiny C Compiler
11244	ld_shlibs=yes
11245	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11246	;;
11247      esac
11248      ;;
11249
11250    netbsd*)
11251      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11252	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11253      else
11254	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11255      fi
11256      hardcode_libdir_flag_spec='-R$libdir'
11257      hardcode_direct=yes
11258      hardcode_shlibpath_var=no
11259      ;;
11260
11261    newsos6)
11262      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11263      hardcode_direct=yes
11264      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11265      hardcode_libdir_separator=:
11266      hardcode_shlibpath_var=no
11267      ;;
11268
11269    *nto* | *qnx*)
11270      ;;
11271
11272    openbsd* | bitrig*)
11273      if test -f /usr/libexec/ld.so; then
11274	hardcode_direct=yes
11275	hardcode_shlibpath_var=no
11276	hardcode_direct_absolute=yes
11277	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11278	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11279	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11280	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11281	  export_dynamic_flag_spec='$wl-E'
11282	else
11283	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11285	fi
11286      else
11287	ld_shlibs=no
11288      fi
11289      ;;
11290
11291    os2*)
11292      hardcode_libdir_flag_spec='-L$libdir'
11293      hardcode_minus_L=yes
11294      allow_undefined_flag=unsupported
11295      shrext_cmds=.dll
11296      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11297	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11298	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11299	$ECHO EXPORTS >> $output_objdir/$libname.def~
11300	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11301	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11302	emximp -o $lib $output_objdir/$libname.def'
11303      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11304	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11305	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11306	$ECHO EXPORTS >> $output_objdir/$libname.def~
11307	prefix_cmds="$SED"~
11308	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11309	  prefix_cmds="$prefix_cmds -e 1d";
11310	fi~
11311	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11312	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11314	emximp -o $lib $output_objdir/$libname.def'
11315      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11316      enable_shared_with_static_runtimes=yes
11317      file_list_spec='@'
11318      ;;
11319
11320    osf3*)
11321      if test yes = "$GCC"; then
11322	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11323	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'
11324      else
11325	allow_undefined_flag=' -expect_unresolved \*'
11326	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'
11327      fi
11328      archive_cmds_need_lc='no'
11329      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11330      hardcode_libdir_separator=:
11331      ;;
11332
11333    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11334      if test yes = "$GCC"; then
11335	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11336	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'
11337	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11338      else
11339	allow_undefined_flag=' -expect_unresolved \*'
11340	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'
11341	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~
11342          $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'
11343
11344	# Both c and cxx compiler support -rpath directly
11345	hardcode_libdir_flag_spec='-rpath $libdir'
11346      fi
11347      archive_cmds_need_lc='no'
11348      hardcode_libdir_separator=:
11349      ;;
11350
11351    solaris*)
11352      no_undefined_flag=' -z defs'
11353      if test yes = "$GCC"; then
11354	wlarc='$wl'
11355	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11356	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11357          $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'
11358      else
11359	case `$CC -V 2>&1` in
11360	*"Compilers 5.0"*)
11361	  wlarc=''
11362	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11364            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11365	  ;;
11366	*)
11367	  wlarc='$wl'
11368	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11369	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11370            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11371	  ;;
11372	esac
11373      fi
11374      hardcode_libdir_flag_spec='-R$libdir'
11375      hardcode_shlibpath_var=no
11376      case $host_os in
11377      solaris2.[0-5] | solaris2.[0-5].*) ;;
11378      *)
11379	# The compiler driver will combine and reorder linker options,
11380	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11381	# but is careful enough not to reorder.
11382	# Supported since Solaris 2.6 (maybe 2.5.1?)
11383	if test yes = "$GCC"; then
11384	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11385	else
11386	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11387	fi
11388	;;
11389      esac
11390      link_all_deplibs=yes
11391      ;;
11392
11393    sunos4*)
11394      if test sequent = "$host_vendor"; then
11395	# Use $CC to link under sequent, because it throws in some extra .o
11396	# files that make .init and .fini sections work.
11397	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11398      else
11399	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11400      fi
11401      hardcode_libdir_flag_spec='-L$libdir'
11402      hardcode_direct=yes
11403      hardcode_minus_L=yes
11404      hardcode_shlibpath_var=no
11405      ;;
11406
11407    sysv4)
11408      case $host_vendor in
11409	sni)
11410	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411	  hardcode_direct=yes # is this really true???
11412	;;
11413	siemens)
11414	  ## LD is ld it makes a PLAMLIB
11415	  ## CC just makes a GrossModule.
11416	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11417	  reload_cmds='$CC -r -o $output$reload_objs'
11418	  hardcode_direct=no
11419        ;;
11420	motorola)
11421	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11422	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11423	;;
11424      esac
11425      runpath_var='LD_RUN_PATH'
11426      hardcode_shlibpath_var=no
11427      ;;
11428
11429    sysv4.3*)
11430      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431      hardcode_shlibpath_var=no
11432      export_dynamic_flag_spec='-Bexport'
11433      ;;
11434
11435    sysv4*MP*)
11436      if test -d /usr/nec; then
11437	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438	hardcode_shlibpath_var=no
11439	runpath_var=LD_RUN_PATH
11440	hardcode_runpath_var=yes
11441	ld_shlibs=yes
11442      fi
11443      ;;
11444
11445    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11446      no_undefined_flag='$wl-z,text'
11447      archive_cmds_need_lc=no
11448      hardcode_shlibpath_var=no
11449      runpath_var='LD_RUN_PATH'
11450
11451      if test yes = "$GCC"; then
11452	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11453	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11454      else
11455	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11457      fi
11458      ;;
11459
11460    sysv5* | sco3.2v5* | sco5v6*)
11461      # Note: We CANNOT use -z defs as we might desire, because we do not
11462      # link with -lc, and that would cause any symbols used from libc to
11463      # always be unresolved, which means just about no library would
11464      # ever link correctly.  If we're not using GNU ld we use -z text
11465      # though, which does catch some bad symbols but isn't as heavy-handed
11466      # as -z defs.
11467      no_undefined_flag='$wl-z,text'
11468      allow_undefined_flag='$wl-z,nodefs'
11469      archive_cmds_need_lc=no
11470      hardcode_shlibpath_var=no
11471      hardcode_libdir_flag_spec='$wl-R,$libdir'
11472      hardcode_libdir_separator=':'
11473      link_all_deplibs=yes
11474      export_dynamic_flag_spec='$wl-Bexport'
11475      runpath_var='LD_RUN_PATH'
11476
11477      if test yes = "$GCC"; then
11478	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480      else
11481	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483      fi
11484      ;;
11485
11486    uts4*)
11487      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488      hardcode_libdir_flag_spec='-L$libdir'
11489      hardcode_shlibpath_var=no
11490      ;;
11491
11492    *)
11493      ld_shlibs=no
11494      ;;
11495    esac
11496
11497    if test sni = "$host_vendor"; then
11498      case $host in
11499      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11500	export_dynamic_flag_spec='$wl-Blargedynsym'
11501	;;
11502      esac
11503    fi
11504  fi
11505
11506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11507printf "%s\n" "$ld_shlibs" >&6; }
11508test no = "$ld_shlibs" && can_build_shared=no
11509
11510with_gnu_ld=$with_gnu_ld
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526#
11527# Do we need to explicitly link libc?
11528#
11529case "x$archive_cmds_need_lc" in
11530x|xyes)
11531  # Assume -lc should be added
11532  archive_cmds_need_lc=yes
11533
11534  if test yes,yes = "$GCC,$enable_shared"; then
11535    case $archive_cmds in
11536    *'~'*)
11537      # FIXME: we may have to deal with multi-command sequences.
11538      ;;
11539    '$CC '*)
11540      # Test whether the compiler implicitly links with -lc since on some
11541      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11542      # to ld, don't add -lc before -lgcc.
11543      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11544printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11545if test ${lt_cv_archive_cmds_need_lc+y}
11546then :
11547  printf %s "(cached) " >&6
11548else case e in #(
11549  e) $RM conftest*
11550	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11551
11552	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11553  (eval $ac_compile) 2>&5
11554  ac_status=$?
11555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556  test $ac_status = 0; } 2>conftest.err; then
11557	  soname=conftest
11558	  lib=conftest
11559	  libobjs=conftest.$ac_objext
11560	  deplibs=
11561	  wl=$lt_prog_compiler_wl
11562	  pic_flag=$lt_prog_compiler_pic
11563	  compiler_flags=-v
11564	  linker_flags=-v
11565	  verstring=
11566	  output_objdir=.
11567	  libname=conftest
11568	  lt_save_allow_undefined_flag=$allow_undefined_flag
11569	  allow_undefined_flag=
11570	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11571  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11572  ac_status=$?
11573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574  test $ac_status = 0; }
11575	  then
11576	    lt_cv_archive_cmds_need_lc=no
11577	  else
11578	    lt_cv_archive_cmds_need_lc=yes
11579	  fi
11580	  allow_undefined_flag=$lt_save_allow_undefined_flag
11581	else
11582	  cat conftest.err 1>&5
11583	fi
11584	$RM conftest*
11585	 ;;
11586esac
11587fi
11588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11589printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11590      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11591      ;;
11592    esac
11593  fi
11594  ;;
11595esac
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11749printf %s "checking dynamic linker characteristics... " >&6; }
11750
11751if test yes = "$GCC"; then
11752  case $host_os in
11753    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11754    *) lt_awk_arg='/^libraries:/' ;;
11755  esac
11756  case $host_os in
11757    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11758    *) lt_sed_strip_eq='s|=/|/|g' ;;
11759  esac
11760  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11761  case $lt_search_path_spec in
11762  *\;*)
11763    # if the path contains ";" then we assume it to be the separator
11764    # otherwise default to the standard path separator (i.e. ":") - it is
11765    # assumed that no part of a normal pathname contains ";" but that should
11766    # okay in the real world where ";" in dirpaths is itself problematic.
11767    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11768    ;;
11769  *)
11770    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11771    ;;
11772  esac
11773  # Ok, now we have the path, separated by spaces, we can step through it
11774  # and add multilib dir if necessary...
11775  lt_tmp_lt_search_path_spec=
11776  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11777  # ...but if some path component already ends with the multilib dir we assume
11778  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11779  case "$lt_multi_os_dir; $lt_search_path_spec " in
11780  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11781    lt_multi_os_dir=
11782    ;;
11783  esac
11784  for lt_sys_path in $lt_search_path_spec; do
11785    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11786      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11787    elif test -n "$lt_multi_os_dir"; then
11788      test -d "$lt_sys_path" && \
11789	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11790    fi
11791  done
11792  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11793BEGIN {RS = " "; FS = "/|\n";} {
11794  lt_foo = "";
11795  lt_count = 0;
11796  for (lt_i = NF; lt_i > 0; lt_i--) {
11797    if ($lt_i != "" && $lt_i != ".") {
11798      if ($lt_i == "..") {
11799        lt_count++;
11800      } else {
11801        if (lt_count == 0) {
11802          lt_foo = "/" $lt_i lt_foo;
11803        } else {
11804          lt_count--;
11805        }
11806      }
11807    }
11808  }
11809  if (lt_foo != "") { lt_freq[lt_foo]++; }
11810  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11811}'`
11812  # AWK program above erroneously prepends '/' to C:/dos/paths
11813  # for these hosts.
11814  case $host_os in
11815    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11816      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11817  esac
11818  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11819else
11820  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11821fi
11822library_names_spec=
11823libname_spec='lib$name'
11824soname_spec=
11825shrext_cmds=.so
11826postinstall_cmds=
11827postuninstall_cmds=
11828finish_cmds=
11829finish_eval=
11830shlibpath_var=
11831shlibpath_overrides_runpath=unknown
11832version_type=none
11833dynamic_linker="$host_os ld.so"
11834sys_lib_dlsearch_path_spec="/lib /usr/lib"
11835need_lib_prefix=unknown
11836hardcode_into_libs=no
11837
11838# when you set need_version to no, make sure it does not cause -set_version
11839# flags to be left without arguments
11840need_version=unknown
11841
11842
11843
11844case $host_os in
11845aix3*)
11846  version_type=linux # correct to gnu/linux during the next big refactor
11847  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11848  shlibpath_var=LIBPATH
11849
11850  # AIX 3 has no versioning support, so we append a major version to the name.
11851  soname_spec='$libname$release$shared_ext$major'
11852  ;;
11853
11854aix[4-9]*)
11855  version_type=linux # correct to gnu/linux during the next big refactor
11856  need_lib_prefix=no
11857  need_version=no
11858  hardcode_into_libs=yes
11859  if test ia64 = "$host_cpu"; then
11860    # AIX 5 supports IA64
11861    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11862    shlibpath_var=LD_LIBRARY_PATH
11863  else
11864    # With GCC up to 2.95.x, collect2 would create an import file
11865    # for dependence libraries.  The import file would start with
11866    # the line '#! .'.  This would cause the generated library to
11867    # depend on '.', always an invalid library.  This was fixed in
11868    # development snapshots of GCC prior to 3.0.
11869    case $host_os in
11870      aix4 | aix4.[01] | aix4.[01].*)
11871      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11872	   echo ' yes '
11873	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11874	:
11875      else
11876	can_build_shared=no
11877      fi
11878      ;;
11879    esac
11880    # Using Import Files as archive members, it is possible to support
11881    # filename-based versioning of shared library archives on AIX. While
11882    # this would work for both with and without runtime linking, it will
11883    # prevent static linking of such archives. So we do filename-based
11884    # shared library versioning with .so extension only, which is used
11885    # when both runtime linking and shared linking is enabled.
11886    # Unfortunately, runtime linking may impact performance, so we do
11887    # not want this to be the default eventually. Also, we use the
11888    # versioned .so libs for executables only if there is the -brtl
11889    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11890    # To allow for filename-based versioning support, we need to create
11891    # libNAME.so.V as an archive file, containing:
11892    # *) an Import File, referring to the versioned filename of the
11893    #    archive as well as the shared archive member, telling the
11894    #    bitwidth (32 or 64) of that shared object, and providing the
11895    #    list of exported symbols of that shared object, eventually
11896    #    decorated with the 'weak' keyword
11897    # *) the shared object with the F_LOADONLY flag set, to really avoid
11898    #    it being seen by the linker.
11899    # At run time we better use the real file rather than another symlink,
11900    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11901
11902    case $with_aix_soname,$aix_use_runtimelinking in
11903    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11904    # soname into executable. Probably we can add versioning support to
11905    # collect2, so additional links can be useful in future.
11906    aix,yes) # traditional libtool
11907      dynamic_linker='AIX unversionable lib.so'
11908      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11909      # instead of lib<name>.a to let people know that these are not
11910      # typical AIX shared libraries.
11911      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912      ;;
11913    aix,no) # traditional AIX only
11914      dynamic_linker='AIX lib.a(lib.so.V)'
11915      # We preserve .a as extension for shared libraries through AIX4.2
11916      # and later when we are not doing run time linking.
11917      library_names_spec='$libname$release.a $libname.a'
11918      soname_spec='$libname$release$shared_ext$major'
11919      ;;
11920    svr4,*) # full svr4 only
11921      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11922      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11923      # We do not specify a path in Import Files, so LIBPATH fires.
11924      shlibpath_overrides_runpath=yes
11925      ;;
11926    *,yes) # both, prefer svr4
11927      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11928      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11929      # unpreferred sharedlib libNAME.a needs extra handling
11930      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"'
11931      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"'
11932      # We do not specify a path in Import Files, so LIBPATH fires.
11933      shlibpath_overrides_runpath=yes
11934      ;;
11935    *,no) # both, prefer aix
11936      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11937      library_names_spec='$libname$release.a $libname.a'
11938      soname_spec='$libname$release$shared_ext$major'
11939      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11940      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)'
11941      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"'
11942      ;;
11943    esac
11944    shlibpath_var=LIBPATH
11945  fi
11946  ;;
11947
11948amigaos*)
11949  case $host_cpu in
11950  powerpc)
11951    # Since July 2007 AmigaOS4 officially supports .so libraries.
11952    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11953    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954    ;;
11955  m68k)
11956    library_names_spec='$libname.ixlibrary $libname.a'
11957    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11958    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'
11959    ;;
11960  esac
11961  ;;
11962
11963beos*)
11964  library_names_spec='$libname$shared_ext'
11965  dynamic_linker="$host_os ld.so"
11966  shlibpath_var=LIBRARY_PATH
11967  ;;
11968
11969bsdi[45]*)
11970  version_type=linux # correct to gnu/linux during the next big refactor
11971  need_version=no
11972  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973  soname_spec='$libname$release$shared_ext$major'
11974  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11975  shlibpath_var=LD_LIBRARY_PATH
11976  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11977  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11978  # the default ld.so.conf also contains /usr/contrib/lib and
11979  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11980  # libtool to hard-code these into programs
11981  ;;
11982
11983cygwin* | mingw* | pw32* | cegcc*)
11984  version_type=windows
11985  shrext_cmds=.dll
11986  need_version=no
11987  need_lib_prefix=no
11988
11989  case $GCC,$cc_basename in
11990  yes,*)
11991    # gcc
11992    library_names_spec='$libname.dll.a'
11993    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11994    postinstall_cmds='base_file=`basename \$file`~
11995      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11996      dldir=$destdir/`dirname \$dlpath`~
11997      test -d \$dldir || mkdir -p \$dldir~
11998      $install_prog $dir/$dlname \$dldir/$dlname~
11999      chmod a+x \$dldir/$dlname~
12000      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12001        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12002      fi'
12003    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12004      dlpath=$dir/\$dldll~
12005       $RM \$dlpath'
12006    shlibpath_overrides_runpath=yes
12007
12008    case $host_os in
12009    cygwin*)
12010      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12011      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12012
12013      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12014      ;;
12015    mingw* | cegcc*)
12016      # MinGW DLLs use traditional 'lib' prefix
12017      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12018      ;;
12019    pw32*)
12020      # pw32 DLLs use 'pw' prefix rather than 'lib'
12021      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12022      ;;
12023    esac
12024    dynamic_linker='Win32 ld.exe'
12025    ;;
12026
12027  *,cl* | *,icl*)
12028    # Native MSVC or ICC
12029    libname_spec='$name'
12030    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12031    library_names_spec='$libname.dll.lib'
12032
12033    case $build_os in
12034    mingw*)
12035      sys_lib_search_path_spec=
12036      lt_save_ifs=$IFS
12037      IFS=';'
12038      for lt_path in $LIB
12039      do
12040        IFS=$lt_save_ifs
12041        # Let DOS variable expansion print the short 8.3 style file name.
12042        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12043        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12044      done
12045      IFS=$lt_save_ifs
12046      # Convert to MSYS style.
12047      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12048      ;;
12049    cygwin*)
12050      # Convert to unix form, then to dos form, then back to unix form
12051      # but this time dos style (no spaces!) so that the unix form looks
12052      # like /cygdrive/c/PROGRA~1:/cygdr...
12053      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12054      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12055      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12056      ;;
12057    *)
12058      sys_lib_search_path_spec=$LIB
12059      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12060        # It is most probably a Windows format PATH.
12061        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12062      else
12063        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12064      fi
12065      # FIXME: find the short name or the path components, as spaces are
12066      # common. (e.g. "Program Files" -> "PROGRA~1")
12067      ;;
12068    esac
12069
12070    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12071    postinstall_cmds='base_file=`basename \$file`~
12072      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12073      dldir=$destdir/`dirname \$dlpath`~
12074      test -d \$dldir || mkdir -p \$dldir~
12075      $install_prog $dir/$dlname \$dldir/$dlname'
12076    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077      dlpath=$dir/\$dldll~
12078       $RM \$dlpath'
12079    shlibpath_overrides_runpath=yes
12080    dynamic_linker='Win32 link.exe'
12081    ;;
12082
12083  *)
12084    # Assume MSVC and ICC wrapper
12085    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12086    dynamic_linker='Win32 ld.exe'
12087    ;;
12088  esac
12089  # FIXME: first we should search . and the directory the executable is in
12090  shlibpath_var=PATH
12091  ;;
12092
12093darwin* | rhapsody*)
12094  dynamic_linker="$host_os dyld"
12095  version_type=darwin
12096  need_lib_prefix=no
12097  need_version=no
12098  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12099  soname_spec='$libname$release$major$shared_ext'
12100  shlibpath_overrides_runpath=yes
12101  shlibpath_var=DYLD_LIBRARY_PATH
12102  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12103
12104  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12105  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12106  ;;
12107
12108dgux*)
12109  version_type=linux # correct to gnu/linux during the next big refactor
12110  need_lib_prefix=no
12111  need_version=no
12112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113  soname_spec='$libname$release$shared_ext$major'
12114  shlibpath_var=LD_LIBRARY_PATH
12115  ;;
12116
12117freebsd* | dragonfly* | midnightbsd*)
12118  # DragonFly does not have aout.  When/if they implement a new
12119  # versioning mechanism, adjust this.
12120  if test -x /usr/bin/objformat; then
12121    objformat=`/usr/bin/objformat`
12122  else
12123    case $host_os in
12124    freebsd[23].*) objformat=aout ;;
12125    *) objformat=elf ;;
12126    esac
12127  fi
12128  version_type=freebsd-$objformat
12129  case $version_type in
12130    freebsd-elf*)
12131      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132      soname_spec='$libname$release$shared_ext$major'
12133      need_version=no
12134      need_lib_prefix=no
12135      ;;
12136    freebsd-*)
12137      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12138      need_version=yes
12139      ;;
12140  esac
12141  shlibpath_var=LD_LIBRARY_PATH
12142  case $host_os in
12143  freebsd2.*)
12144    shlibpath_overrides_runpath=yes
12145    ;;
12146  freebsd3.[01]* | freebsdelf3.[01]*)
12147    shlibpath_overrides_runpath=yes
12148    hardcode_into_libs=yes
12149    ;;
12150  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12151  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12152    shlibpath_overrides_runpath=no
12153    hardcode_into_libs=yes
12154    ;;
12155  *) # from 4.6 on, and DragonFly
12156    shlibpath_overrides_runpath=yes
12157    hardcode_into_libs=yes
12158    ;;
12159  esac
12160  ;;
12161
12162haiku*)
12163  version_type=linux # correct to gnu/linux during the next big refactor
12164  need_lib_prefix=no
12165  need_version=no
12166  dynamic_linker="$host_os runtime_loader"
12167  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168  soname_spec='$libname$release$shared_ext$major'
12169  shlibpath_var=LIBRARY_PATH
12170  shlibpath_overrides_runpath=no
12171  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12172  hardcode_into_libs=yes
12173  ;;
12174
12175hpux9* | hpux10* | hpux11*)
12176  # Give a soname corresponding to the major version so that dld.sl refuses to
12177  # link against other versions.
12178  version_type=sunos
12179  need_lib_prefix=no
12180  need_version=no
12181  case $host_cpu in
12182  ia64*)
12183    shrext_cmds='.so'
12184    hardcode_into_libs=yes
12185    dynamic_linker="$host_os dld.so"
12186    shlibpath_var=LD_LIBRARY_PATH
12187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12188    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189    soname_spec='$libname$release$shared_ext$major'
12190    if test 32 = "$HPUX_IA64_MODE"; then
12191      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12192      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12193    else
12194      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12195      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12196    fi
12197    ;;
12198  hppa*64*)
12199    shrext_cmds='.sl'
12200    hardcode_into_libs=yes
12201    dynamic_linker="$host_os dld.sl"
12202    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12204    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205    soname_spec='$libname$release$shared_ext$major'
12206    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12207    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12208    ;;
12209  *)
12210    shrext_cmds='.sl'
12211    dynamic_linker="$host_os dld.sl"
12212    shlibpath_var=SHLIB_PATH
12213    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12214    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12215    soname_spec='$libname$release$shared_ext$major'
12216    ;;
12217  esac
12218  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12219  postinstall_cmds='chmod 555 $lib'
12220  # or fails outright, so override atomically:
12221  install_override_mode=555
12222  ;;
12223
12224interix[3-9]*)
12225  version_type=linux # correct to gnu/linux during the next big refactor
12226  need_lib_prefix=no
12227  need_version=no
12228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229  soname_spec='$libname$release$shared_ext$major'
12230  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12231  shlibpath_var=LD_LIBRARY_PATH
12232  shlibpath_overrides_runpath=no
12233  hardcode_into_libs=yes
12234  ;;
12235
12236irix5* | irix6* | nonstopux*)
12237  case $host_os in
12238    nonstopux*) version_type=nonstopux ;;
12239    *)
12240	if test yes = "$lt_cv_prog_gnu_ld"; then
12241		version_type=linux # correct to gnu/linux during the next big refactor
12242	else
12243		version_type=irix
12244	fi ;;
12245  esac
12246  need_lib_prefix=no
12247  need_version=no
12248  soname_spec='$libname$release$shared_ext$major'
12249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12250  case $host_os in
12251  irix5* | nonstopux*)
12252    libsuff= shlibsuff=
12253    ;;
12254  *)
12255    case $LD in # libtool.m4 will add one of these switches to LD
12256    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12257      libsuff= shlibsuff= libmagic=32-bit;;
12258    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12259      libsuff=32 shlibsuff=N32 libmagic=N32;;
12260    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12261      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12262    *) libsuff= shlibsuff= libmagic=never-match;;
12263    esac
12264    ;;
12265  esac
12266  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12267  shlibpath_overrides_runpath=no
12268  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12269  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12270  hardcode_into_libs=yes
12271  ;;
12272
12273# No shared lib support for Linux oldld, aout, or coff.
12274linux*oldld* | linux*aout* | linux*coff*)
12275  dynamic_linker=no
12276  ;;
12277
12278linux*android*)
12279  version_type=none # Android doesn't support versioned libraries.
12280  need_lib_prefix=no
12281  need_version=no
12282  library_names_spec='$libname$release$shared_ext'
12283  soname_spec='$libname$release$shared_ext'
12284  finish_cmds=
12285  shlibpath_var=LD_LIBRARY_PATH
12286  shlibpath_overrides_runpath=yes
12287
12288  # This implies no fast_install, which is unacceptable.
12289  # Some rework will be needed to allow for fast_install
12290  # before this can be enabled.
12291  hardcode_into_libs=yes
12292
12293  dynamic_linker='Android linker'
12294  # Don't embed -rpath directories since the linker doesn't support them.
12295  hardcode_libdir_flag_spec='-L$libdir'
12296  ;;
12297
12298# This must be glibc/ELF.
12299linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12300  version_type=linux # correct to gnu/linux during the next big refactor
12301  need_lib_prefix=no
12302  need_version=no
12303  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304  soname_spec='$libname$release$shared_ext$major'
12305  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12306  shlibpath_var=LD_LIBRARY_PATH
12307  shlibpath_overrides_runpath=no
12308
12309  # Some binutils ld are patched to set DT_RUNPATH
12310  if test ${lt_cv_shlibpath_overrides_runpath+y}
12311then :
12312  printf %s "(cached) " >&6
12313else case e in #(
12314  e) lt_cv_shlibpath_overrides_runpath=no
12315    save_LDFLAGS=$LDFLAGS
12316    save_libdir=$libdir
12317    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12318	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h.  */
12321
12322int
12323main (void)
12324{
12325
12326  ;
12327  return 0;
12328}
12329_ACEOF
12330if ac_fn_c_try_link "$LINENO"
12331then :
12332  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12333then :
12334  lt_cv_shlibpath_overrides_runpath=yes
12335fi
12336fi
12337rm -f core conftest.err conftest.$ac_objext conftest.beam \
12338    conftest$ac_exeext conftest.$ac_ext
12339    LDFLAGS=$save_LDFLAGS
12340    libdir=$save_libdir
12341     ;;
12342esac
12343fi
12344
12345  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12346
12347  # This implies no fast_install, which is unacceptable.
12348  # Some rework will be needed to allow for fast_install
12349  # before this can be enabled.
12350  hardcode_into_libs=yes
12351
12352  # Ideally, we could use ldconfig to report *all* directores which are
12353  # searched for libraries, however this is still not possible.  Aside from not
12354  # being certain /sbin/ldconfig is available, command
12355  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12356  # even though it is searched at run-time.  Try to do the best guess by
12357  # appending ld.so.conf contents (and includes) to the search path.
12358  if test -f /etc/ld.so.conf; then
12359    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' ' '`
12360    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12361  fi
12362
12363  # We used to test for /lib/ld.so.1 and disable shared libraries on
12364  # powerpc, because MkLinux only supported shared libraries with the
12365  # GNU dynamic linker.  Since this was broken with cross compilers,
12366  # most powerpc-linux boxes support dynamic linking these days and
12367  # people can always --disable-shared, the test was removed, and we
12368  # assume the GNU/Linux dynamic linker is in use.
12369  dynamic_linker='GNU/Linux ld.so'
12370  ;;
12371
12372netbsd*)
12373  version_type=sunos
12374  need_lib_prefix=no
12375  need_version=no
12376  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12378    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12379    dynamic_linker='NetBSD (a.out) ld.so'
12380  else
12381    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382    soname_spec='$libname$release$shared_ext$major'
12383    dynamic_linker='NetBSD ld.elf_so'
12384  fi
12385  shlibpath_var=LD_LIBRARY_PATH
12386  shlibpath_overrides_runpath=yes
12387  hardcode_into_libs=yes
12388  ;;
12389
12390newsos6)
12391  version_type=linux # correct to gnu/linux during the next big refactor
12392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12393  shlibpath_var=LD_LIBRARY_PATH
12394  shlibpath_overrides_runpath=yes
12395  ;;
12396
12397*nto* | *qnx*)
12398  version_type=qnx
12399  need_lib_prefix=no
12400  need_version=no
12401  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402  soname_spec='$libname$release$shared_ext$major'
12403  shlibpath_var=LD_LIBRARY_PATH
12404  shlibpath_overrides_runpath=no
12405  hardcode_into_libs=yes
12406  dynamic_linker='ldqnx.so'
12407  ;;
12408
12409openbsd* | bitrig*)
12410  version_type=sunos
12411  sys_lib_dlsearch_path_spec=/usr/lib
12412  need_lib_prefix=no
12413  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12414    need_version=no
12415  else
12416    need_version=yes
12417  fi
12418  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12419  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12420  shlibpath_var=LD_LIBRARY_PATH
12421  shlibpath_overrides_runpath=yes
12422  ;;
12423
12424os2*)
12425  libname_spec='$name'
12426  version_type=windows
12427  shrext_cmds=.dll
12428  need_version=no
12429  need_lib_prefix=no
12430  # OS/2 can only load a DLL with a base name of 8 characters or less.
12431  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12432    v=$($ECHO $release$versuffix | tr -d .-);
12433    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12434    $ECHO $n$v`$shared_ext'
12435  library_names_spec='${libname}_dll.$libext'
12436  dynamic_linker='OS/2 ld.exe'
12437  shlibpath_var=BEGINLIBPATH
12438  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12439  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12440  postinstall_cmds='base_file=`basename \$file`~
12441    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12442    dldir=$destdir/`dirname \$dlpath`~
12443    test -d \$dldir || mkdir -p \$dldir~
12444    $install_prog $dir/$dlname \$dldir/$dlname~
12445    chmod a+x \$dldir/$dlname~
12446    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12447      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12448    fi'
12449  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12450    dlpath=$dir/\$dldll~
12451    $RM \$dlpath'
12452  ;;
12453
12454osf3* | osf4* | osf5*)
12455  version_type=osf
12456  need_lib_prefix=no
12457  need_version=no
12458  soname_spec='$libname$release$shared_ext$major'
12459  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460  shlibpath_var=LD_LIBRARY_PATH
12461  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12462  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12463  ;;
12464
12465rdos*)
12466  dynamic_linker=no
12467  ;;
12468
12469solaris*)
12470  version_type=linux # correct to gnu/linux during the next big refactor
12471  need_lib_prefix=no
12472  need_version=no
12473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474  soname_spec='$libname$release$shared_ext$major'
12475  shlibpath_var=LD_LIBRARY_PATH
12476  shlibpath_overrides_runpath=yes
12477  hardcode_into_libs=yes
12478  # ldd complains unless libraries are executable
12479  postinstall_cmds='chmod +x $lib'
12480  ;;
12481
12482sunos4*)
12483  version_type=sunos
12484  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12485  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12486  shlibpath_var=LD_LIBRARY_PATH
12487  shlibpath_overrides_runpath=yes
12488  if test yes = "$with_gnu_ld"; then
12489    need_lib_prefix=no
12490  fi
12491  need_version=yes
12492  ;;
12493
12494sysv4 | sysv4.3*)
12495  version_type=linux # correct to gnu/linux during the next big refactor
12496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497  soname_spec='$libname$release$shared_ext$major'
12498  shlibpath_var=LD_LIBRARY_PATH
12499  case $host_vendor in
12500    sni)
12501      shlibpath_overrides_runpath=no
12502      need_lib_prefix=no
12503      runpath_var=LD_RUN_PATH
12504      ;;
12505    siemens)
12506      need_lib_prefix=no
12507      ;;
12508    motorola)
12509      need_lib_prefix=no
12510      need_version=no
12511      shlibpath_overrides_runpath=no
12512      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12513      ;;
12514  esac
12515  ;;
12516
12517sysv4*MP*)
12518  if test -d /usr/nec; then
12519    version_type=linux # correct to gnu/linux during the next big refactor
12520    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12521    soname_spec='$libname$shared_ext.$major'
12522    shlibpath_var=LD_LIBRARY_PATH
12523  fi
12524  ;;
12525
12526sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12527  version_type=sco
12528  need_lib_prefix=no
12529  need_version=no
12530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12531  soname_spec='$libname$release$shared_ext$major'
12532  shlibpath_var=LD_LIBRARY_PATH
12533  shlibpath_overrides_runpath=yes
12534  hardcode_into_libs=yes
12535  if test yes = "$with_gnu_ld"; then
12536    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12537  else
12538    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12539    case $host_os in
12540      sco3.2v5*)
12541        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12542	;;
12543    esac
12544  fi
12545  sys_lib_dlsearch_path_spec='/usr/lib'
12546  ;;
12547
12548tpf*)
12549  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12550  version_type=linux # correct to gnu/linux during the next big refactor
12551  need_lib_prefix=no
12552  need_version=no
12553  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554  shlibpath_var=LD_LIBRARY_PATH
12555  shlibpath_overrides_runpath=no
12556  hardcode_into_libs=yes
12557  ;;
12558
12559uts4*)
12560  version_type=linux # correct to gnu/linux during the next big refactor
12561  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12562  soname_spec='$libname$release$shared_ext$major'
12563  shlibpath_var=LD_LIBRARY_PATH
12564  ;;
12565
12566*)
12567  dynamic_linker=no
12568  ;;
12569esac
12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12571printf "%s\n" "$dynamic_linker" >&6; }
12572test no = "$dynamic_linker" && can_build_shared=no
12573
12574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12575if test yes = "$GCC"; then
12576  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12577fi
12578
12579if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12580  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12581fi
12582
12583if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12584  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12585fi
12586
12587# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12588configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12589
12590# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12591func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12592
12593# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12594configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12693printf %s "checking how to hardcode library paths into programs... " >&6; }
12694hardcode_action=
12695if test -n "$hardcode_libdir_flag_spec" ||
12696   test -n "$runpath_var" ||
12697   test yes = "$hardcode_automatic"; then
12698
12699  # We can hardcode non-existent directories.
12700  if test no != "$hardcode_direct" &&
12701     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12702     # have to relink, otherwise we might link with an installed library
12703     # when we should be linking with a yet-to-be-installed one
12704     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12705     test no != "$hardcode_minus_L"; then
12706    # Linking always hardcodes the temporary library directory.
12707    hardcode_action=relink
12708  else
12709    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12710    hardcode_action=immediate
12711  fi
12712else
12713  # We cannot hardcode anything, or else we can only hardcode existing
12714  # directories.
12715  hardcode_action=unsupported
12716fi
12717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12718printf "%s\n" "$hardcode_action" >&6; }
12719
12720if test relink = "$hardcode_action" ||
12721   test yes = "$inherit_rpath"; then
12722  # Fast installation is not supported
12723  enable_fast_install=no
12724elif test yes = "$shlibpath_overrides_runpath" ||
12725     test no = "$enable_shared"; then
12726  # Fast installation is not necessary
12727  enable_fast_install=needless
12728fi
12729
12730
12731
12732
12733
12734
12735  if test yes != "$enable_dlopen"; then
12736  enable_dlopen=unknown
12737  enable_dlopen_self=unknown
12738  enable_dlopen_self_static=unknown
12739else
12740  lt_cv_dlopen=no
12741  lt_cv_dlopen_libs=
12742
12743  case $host_os in
12744  beos*)
12745    lt_cv_dlopen=load_add_on
12746    lt_cv_dlopen_libs=
12747    lt_cv_dlopen_self=yes
12748    ;;
12749
12750  mingw* | pw32* | cegcc*)
12751    lt_cv_dlopen=LoadLibrary
12752    lt_cv_dlopen_libs=
12753    ;;
12754
12755  cygwin*)
12756    lt_cv_dlopen=dlopen
12757    lt_cv_dlopen_libs=
12758    ;;
12759
12760  darwin*)
12761    # if libdl is installed we need to link against it
12762    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12763printf %s "checking for dlopen in -ldl... " >&6; }
12764if test ${ac_cv_lib_dl_dlopen+y}
12765then :
12766  printf %s "(cached) " >&6
12767else case e in #(
12768  e) ac_check_lib_save_LIBS=$LIBS
12769LIBS="-ldl  $LIBS"
12770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771/* end confdefs.h.  */
12772
12773/* Override any GCC internal prototype to avoid an error.
12774   Use char because int might match the return type of a GCC
12775   builtin and then its argument prototype would still apply.
12776   The 'extern "C"' is for builds by C++ compilers;
12777   although this is not generally supported in C code supporting it here
12778   has little cost and some practical benefit (sr 110532).  */
12779#ifdef __cplusplus
12780extern "C"
12781#endif
12782char dlopen (void);
12783int
12784main (void)
12785{
12786return dlopen ();
12787  ;
12788  return 0;
12789}
12790_ACEOF
12791if ac_fn_c_try_link "$LINENO"
12792then :
12793  ac_cv_lib_dl_dlopen=yes
12794else case e in #(
12795  e) ac_cv_lib_dl_dlopen=no ;;
12796esac
12797fi
12798rm -f core conftest.err conftest.$ac_objext conftest.beam \
12799    conftest$ac_exeext conftest.$ac_ext
12800LIBS=$ac_check_lib_save_LIBS ;;
12801esac
12802fi
12803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12804printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12805if test "x$ac_cv_lib_dl_dlopen" = xyes
12806then :
12807  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12808else case e in #(
12809  e)
12810    lt_cv_dlopen=dyld
12811    lt_cv_dlopen_libs=
12812    lt_cv_dlopen_self=yes
12813     ;;
12814esac
12815fi
12816
12817    ;;
12818
12819  tpf*)
12820    # Don't try to run any link tests for TPF.  We know it's impossible
12821    # because TPF is a cross-compiler, and we know how we open DSOs.
12822    lt_cv_dlopen=dlopen
12823    lt_cv_dlopen_libs=
12824    lt_cv_dlopen_self=no
12825    ;;
12826
12827  *)
12828    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12829if test "x$ac_cv_func_shl_load" = xyes
12830then :
12831  lt_cv_dlopen=shl_load
12832else case e in #(
12833  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12834printf %s "checking for shl_load in -ldld... " >&6; }
12835if test ${ac_cv_lib_dld_shl_load+y}
12836then :
12837  printf %s "(cached) " >&6
12838else case e in #(
12839  e) ac_check_lib_save_LIBS=$LIBS
12840LIBS="-ldld  $LIBS"
12841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h.  */
12843
12844/* Override any GCC internal prototype to avoid an error.
12845   Use char because int might match the return type of a GCC
12846   builtin and then its argument prototype would still apply.
12847   The 'extern "C"' is for builds by C++ compilers;
12848   although this is not generally supported in C code supporting it here
12849   has little cost and some practical benefit (sr 110532).  */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char shl_load (void);
12854int
12855main (void)
12856{
12857return shl_load ();
12858  ;
12859  return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_link "$LINENO"
12863then :
12864  ac_cv_lib_dld_shl_load=yes
12865else case e in #(
12866  e) ac_cv_lib_dld_shl_load=no ;;
12867esac
12868fi
12869rm -f core conftest.err conftest.$ac_objext conftest.beam \
12870    conftest$ac_exeext conftest.$ac_ext
12871LIBS=$ac_check_lib_save_LIBS ;;
12872esac
12873fi
12874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12875printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12876if test "x$ac_cv_lib_dld_shl_load" = xyes
12877then :
12878  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12879else case e in #(
12880  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12881if test "x$ac_cv_func_dlopen" = xyes
12882then :
12883  lt_cv_dlopen=dlopen
12884else case e in #(
12885  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886printf %s "checking for dlopen in -ldl... " >&6; }
12887if test ${ac_cv_lib_dl_dlopen+y}
12888then :
12889  printf %s "(cached) " >&6
12890else case e in #(
12891  e) ac_check_lib_save_LIBS=$LIBS
12892LIBS="-ldl  $LIBS"
12893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894/* end confdefs.h.  */
12895
12896/* Override any GCC internal prototype to avoid an error.
12897   Use char because int might match the return type of a GCC
12898   builtin and then its argument prototype would still apply.
12899   The 'extern "C"' is for builds by C++ compilers;
12900   although this is not generally supported in C code supporting it here
12901   has little cost and some practical benefit (sr 110532).  */
12902#ifdef __cplusplus
12903extern "C"
12904#endif
12905char dlopen (void);
12906int
12907main (void)
12908{
12909return dlopen ();
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914if ac_fn_c_try_link "$LINENO"
12915then :
12916  ac_cv_lib_dl_dlopen=yes
12917else case e in #(
12918  e) ac_cv_lib_dl_dlopen=no ;;
12919esac
12920fi
12921rm -f core conftest.err conftest.$ac_objext conftest.beam \
12922    conftest$ac_exeext conftest.$ac_ext
12923LIBS=$ac_check_lib_save_LIBS ;;
12924esac
12925fi
12926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12927printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12928if test "x$ac_cv_lib_dl_dlopen" = xyes
12929then :
12930  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12931else case e in #(
12932  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12933printf %s "checking for dlopen in -lsvld... " >&6; }
12934if test ${ac_cv_lib_svld_dlopen+y}
12935then :
12936  printf %s "(cached) " >&6
12937else case e in #(
12938  e) ac_check_lib_save_LIBS=$LIBS
12939LIBS="-lsvld  $LIBS"
12940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942
12943/* Override any GCC internal prototype to avoid an error.
12944   Use char because int might match the return type of a GCC
12945   builtin and then its argument prototype would still apply.
12946   The 'extern "C"' is for builds by C++ compilers;
12947   although this is not generally supported in C code supporting it here
12948   has little cost and some practical benefit (sr 110532).  */
12949#ifdef __cplusplus
12950extern "C"
12951#endif
12952char dlopen (void);
12953int
12954main (void)
12955{
12956return dlopen ();
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_link "$LINENO"
12962then :
12963  ac_cv_lib_svld_dlopen=yes
12964else case e in #(
12965  e) ac_cv_lib_svld_dlopen=no ;;
12966esac
12967fi
12968rm -f core conftest.err conftest.$ac_objext conftest.beam \
12969    conftest$ac_exeext conftest.$ac_ext
12970LIBS=$ac_check_lib_save_LIBS ;;
12971esac
12972fi
12973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12974printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12975if test "x$ac_cv_lib_svld_dlopen" = xyes
12976then :
12977  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12978else case e in #(
12979  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12980printf %s "checking for dld_link in -ldld... " >&6; }
12981if test ${ac_cv_lib_dld_dld_link+y}
12982then :
12983  printf %s "(cached) " >&6
12984else case e in #(
12985  e) ac_check_lib_save_LIBS=$LIBS
12986LIBS="-ldld  $LIBS"
12987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988/* end confdefs.h.  */
12989
12990/* Override any GCC internal prototype to avoid an error.
12991   Use char because int might match the return type of a GCC
12992   builtin and then its argument prototype would still apply.
12993   The 'extern "C"' is for builds by C++ compilers;
12994   although this is not generally supported in C code supporting it here
12995   has little cost and some practical benefit (sr 110532).  */
12996#ifdef __cplusplus
12997extern "C"
12998#endif
12999char dld_link (void);
13000int
13001main (void)
13002{
13003return dld_link ();
13004  ;
13005  return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_link "$LINENO"
13009then :
13010  ac_cv_lib_dld_dld_link=yes
13011else case e in #(
13012  e) ac_cv_lib_dld_dld_link=no ;;
13013esac
13014fi
13015rm -f core conftest.err conftest.$ac_objext conftest.beam \
13016    conftest$ac_exeext conftest.$ac_ext
13017LIBS=$ac_check_lib_save_LIBS ;;
13018esac
13019fi
13020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13021printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13022if test "x$ac_cv_lib_dld_dld_link" = xyes
13023then :
13024  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13025fi
13026
13027	       ;;
13028esac
13029fi
13030
13031	     ;;
13032esac
13033fi
13034
13035	   ;;
13036esac
13037fi
13038
13039	 ;;
13040esac
13041fi
13042
13043       ;;
13044esac
13045fi
13046
13047    ;;
13048  esac
13049
13050  if test no = "$lt_cv_dlopen"; then
13051    enable_dlopen=no
13052  else
13053    enable_dlopen=yes
13054  fi
13055
13056  case $lt_cv_dlopen in
13057  dlopen)
13058    save_CPPFLAGS=$CPPFLAGS
13059    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13060
13061    save_LDFLAGS=$LDFLAGS
13062    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13063
13064    save_LIBS=$LIBS
13065    LIBS="$lt_cv_dlopen_libs $LIBS"
13066
13067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13068printf %s "checking whether a program can dlopen itself... " >&6; }
13069if test ${lt_cv_dlopen_self+y}
13070then :
13071  printf %s "(cached) " >&6
13072else case e in #(
13073  e) 	  if test yes = "$cross_compiling"; then :
13074  lt_cv_dlopen_self=cross
13075else
13076  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13077  lt_status=$lt_dlunknown
13078  cat > conftest.$ac_ext <<_LT_EOF
13079#line $LINENO "configure"
13080#include "confdefs.h"
13081
13082#if HAVE_DLFCN_H
13083#include <dlfcn.h>
13084#endif
13085
13086#include <stdio.h>
13087
13088#ifdef RTLD_GLOBAL
13089#  define LT_DLGLOBAL		RTLD_GLOBAL
13090#else
13091#  ifdef DL_GLOBAL
13092#    define LT_DLGLOBAL		DL_GLOBAL
13093#  else
13094#    define LT_DLGLOBAL		0
13095#  endif
13096#endif
13097
13098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13099   find out it does not work in some platform. */
13100#ifndef LT_DLLAZY_OR_NOW
13101#  ifdef RTLD_LAZY
13102#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13103#  else
13104#    ifdef DL_LAZY
13105#      define LT_DLLAZY_OR_NOW		DL_LAZY
13106#    else
13107#      ifdef RTLD_NOW
13108#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13109#      else
13110#        ifdef DL_NOW
13111#          define LT_DLLAZY_OR_NOW	DL_NOW
13112#        else
13113#          define LT_DLLAZY_OR_NOW	0
13114#        endif
13115#      endif
13116#    endif
13117#  endif
13118#endif
13119
13120/* When -fvisibility=hidden is used, assume the code has been annotated
13121   correspondingly for the symbols needed.  */
13122#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13123int fnord () __attribute__((visibility("default")));
13124#endif
13125
13126int fnord () { return 42; }
13127int main ()
13128{
13129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13130  int status = $lt_dlunknown;
13131
13132  if (self)
13133    {
13134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13135      else
13136        {
13137	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13138          else puts (dlerror ());
13139	}
13140      /* dlclose (self); */
13141    }
13142  else
13143    puts (dlerror ());
13144
13145  return status;
13146}
13147_LT_EOF
13148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13149  (eval $ac_link) 2>&5
13150  ac_status=$?
13151  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13152  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13153    (./conftest; exit; ) >&5 2>/dev/null
13154    lt_status=$?
13155    case x$lt_status in
13156      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13157      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13158      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13159    esac
13160  else :
13161    # compilation failed
13162    lt_cv_dlopen_self=no
13163  fi
13164fi
13165rm -fr conftest*
13166
13167     ;;
13168esac
13169fi
13170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13171printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13172
13173    if test yes = "$lt_cv_dlopen_self"; then
13174      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13176printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13177if test ${lt_cv_dlopen_self_static+y}
13178then :
13179  printf %s "(cached) " >&6
13180else case e in #(
13181  e) 	  if test yes = "$cross_compiling"; then :
13182  lt_cv_dlopen_self_static=cross
13183else
13184  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13185  lt_status=$lt_dlunknown
13186  cat > conftest.$ac_ext <<_LT_EOF
13187#line $LINENO "configure"
13188#include "confdefs.h"
13189
13190#if HAVE_DLFCN_H
13191#include <dlfcn.h>
13192#endif
13193
13194#include <stdio.h>
13195
13196#ifdef RTLD_GLOBAL
13197#  define LT_DLGLOBAL		RTLD_GLOBAL
13198#else
13199#  ifdef DL_GLOBAL
13200#    define LT_DLGLOBAL		DL_GLOBAL
13201#  else
13202#    define LT_DLGLOBAL		0
13203#  endif
13204#endif
13205
13206/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13207   find out it does not work in some platform. */
13208#ifndef LT_DLLAZY_OR_NOW
13209#  ifdef RTLD_LAZY
13210#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13211#  else
13212#    ifdef DL_LAZY
13213#      define LT_DLLAZY_OR_NOW		DL_LAZY
13214#    else
13215#      ifdef RTLD_NOW
13216#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13217#      else
13218#        ifdef DL_NOW
13219#          define LT_DLLAZY_OR_NOW	DL_NOW
13220#        else
13221#          define LT_DLLAZY_OR_NOW	0
13222#        endif
13223#      endif
13224#    endif
13225#  endif
13226#endif
13227
13228/* When -fvisibility=hidden is used, assume the code has been annotated
13229   correspondingly for the symbols needed.  */
13230#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13231int fnord () __attribute__((visibility("default")));
13232#endif
13233
13234int fnord () { return 42; }
13235int main ()
13236{
13237  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13238  int status = $lt_dlunknown;
13239
13240  if (self)
13241    {
13242      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13243      else
13244        {
13245	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13246          else puts (dlerror ());
13247	}
13248      /* dlclose (self); */
13249    }
13250  else
13251    puts (dlerror ());
13252
13253  return status;
13254}
13255_LT_EOF
13256  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13257  (eval $ac_link) 2>&5
13258  ac_status=$?
13259  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13261    (./conftest; exit; ) >&5 2>/dev/null
13262    lt_status=$?
13263    case x$lt_status in
13264      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13265      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13266      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13267    esac
13268  else :
13269    # compilation failed
13270    lt_cv_dlopen_self_static=no
13271  fi
13272fi
13273rm -fr conftest*
13274
13275       ;;
13276esac
13277fi
13278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13279printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13280    fi
13281
13282    CPPFLAGS=$save_CPPFLAGS
13283    LDFLAGS=$save_LDFLAGS
13284    LIBS=$save_LIBS
13285    ;;
13286  esac
13287
13288  case $lt_cv_dlopen_self in
13289  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13290  *) enable_dlopen_self=unknown ;;
13291  esac
13292
13293  case $lt_cv_dlopen_self_static in
13294  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13295  *) enable_dlopen_self_static=unknown ;;
13296  esac
13297fi
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315striplib=
13316old_striplib=
13317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13318printf %s "checking whether stripping libraries is possible... " >&6; }
13319if test -z "$STRIP"; then
13320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321printf "%s\n" "no" >&6; }
13322else
13323  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13324    old_striplib="$STRIP --strip-debug"
13325    striplib="$STRIP --strip-unneeded"
13326    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13327printf "%s\n" "yes" >&6; }
13328  else
13329    case $host_os in
13330    darwin*)
13331      # FIXME - insert some real tests, host_os isn't really good enough
13332      striplib="$STRIP -x"
13333      old_striplib="$STRIP -S"
13334      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335printf "%s\n" "yes" >&6; }
13336      ;;
13337    freebsd*)
13338      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13339        old_striplib="$STRIP --strip-debug"
13340        striplib="$STRIP --strip-unneeded"
13341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342printf "%s\n" "yes" >&6; }
13343      else
13344        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345printf "%s\n" "no" >&6; }
13346      fi
13347      ;;
13348    *)
13349      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350printf "%s\n" "no" >&6; }
13351      ;;
13352    esac
13353  fi
13354fi
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367  # Report what library types will actually be built
13368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13369printf %s "checking if libtool supports shared libraries... " >&6; }
13370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13371printf "%s\n" "$can_build_shared" >&6; }
13372
13373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13374printf %s "checking whether to build shared libraries... " >&6; }
13375  test no = "$can_build_shared" && enable_shared=no
13376
13377  # On AIX, shared libraries and static libraries use the same namespace, and
13378  # are all built from PIC.
13379  case $host_os in
13380  aix3*)
13381    test yes = "$enable_shared" && enable_static=no
13382    if test -n "$RANLIB"; then
13383      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13384      postinstall_cmds='$RANLIB $lib'
13385    fi
13386    ;;
13387
13388  aix[4-9]*)
13389    if test ia64 != "$host_cpu"; then
13390      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13391      yes,aix,yes) ;;			# shared object as lib.so file only
13392      yes,svr4,*) ;;			# shared object as lib.so archive member only
13393      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13394      esac
13395    fi
13396    ;;
13397  esac
13398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13399printf "%s\n" "$enable_shared" >&6; }
13400
13401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13402printf %s "checking whether to build static libraries... " >&6; }
13403  # Make sure either enable_shared or enable_static is yes.
13404  test yes = "$enable_shared" || enable_static=yes
13405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13406printf "%s\n" "$enable_static" >&6; }
13407
13408
13409
13410
13411fi
13412ac_ext=c
13413ac_cpp='$CPP $CPPFLAGS'
13414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416ac_compiler_gnu=$ac_cv_c_compiler_gnu
13417
13418CC=$lt_save_CC
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434        ac_config_commands="$ac_config_commands libtool"
13435
13436
13437
13438
13439# Only expand once:
13440
13441
13442
13443# Require xorg-macros minimum of 1.16 for unit testing with memory checks
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13456printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13457if test ${ac_cv_c_undeclared_builtin_options+y}
13458then :
13459  printf %s "(cached) " >&6
13460else case e in #(
13461  e) ac_save_CFLAGS=$CFLAGS
13462   ac_cv_c_undeclared_builtin_options='cannot detect'
13463   for ac_arg in '' -fno-builtin; do
13464     CFLAGS="$ac_save_CFLAGS $ac_arg"
13465     # This test program should *not* compile successfully.
13466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467/* end confdefs.h.  */
13468
13469int
13470main (void)
13471{
13472(void) strchr;
13473  ;
13474  return 0;
13475}
13476_ACEOF
13477if ac_fn_c_try_compile "$LINENO"
13478then :
13479
13480else case e in #(
13481  e) # This test program should compile successfully.
13482        # No library function is consistently available on
13483        # freestanding implementations, so test against a dummy
13484        # declaration.  Include always-available headers on the
13485        # off chance that they somehow elicit warnings.
13486        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488#include <float.h>
13489#include <limits.h>
13490#include <stdarg.h>
13491#include <stddef.h>
13492extern void ac_decl (int, char *);
13493
13494int
13495main (void)
13496{
13497(void) ac_decl (0, (char *) 0);
13498  (void) ac_decl;
13499
13500  ;
13501  return 0;
13502}
13503_ACEOF
13504if ac_fn_c_try_compile "$LINENO"
13505then :
13506  if test x"$ac_arg" = x
13507then :
13508  ac_cv_c_undeclared_builtin_options='none needed'
13509else case e in #(
13510  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13511esac
13512fi
13513          break
13514fi
13515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13516esac
13517fi
13518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13519    done
13520    CFLAGS=$ac_save_CFLAGS
13521   ;;
13522esac
13523fi
13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13525printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13526  case $ac_cv_c_undeclared_builtin_options in #(
13527  'cannot detect') :
13528    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13529printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13530as_fn_error $? "cannot make $CC report undeclared builtins
13531See 'config.log' for more details" "$LINENO" 5; } ;; #(
13532  'none needed') :
13533    ac_c_undeclared_builtin_options='' ;; #(
13534  *) :
13535    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13536esac
13537
13538
13539
13540
13541
13542ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13543if test "x$ac_cv_have_decl___clang__" = xyes
13544then :
13545  CLANGCC="yes"
13546else case e in #(
13547  e) CLANGCC="no" ;;
13548esac
13549fi
13550ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13551if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13552then :
13553  INTELCC="yes"
13554else case e in #(
13555  e) INTELCC="no" ;;
13556esac
13557fi
13558ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13559if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13560then :
13561  SUNCC="yes"
13562else case e in #(
13563  e) SUNCC="no" ;;
13564esac
13565fi
13566
13567
13568
13569
13570
13571
13572
13573
13574if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13575	if test -n "$ac_tool_prefix"; then
13576  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13577set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579printf %s "checking for $ac_word... " >&6; }
13580if test ${ac_cv_path_PKG_CONFIG+y}
13581then :
13582  printf %s "(cached) " >&6
13583else case e in #(
13584  e) case $PKG_CONFIG in
13585  [\\/]* | ?:[\\/]*)
13586  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13587  ;;
13588  *)
13589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592  IFS=$as_save_IFS
13593  case $as_dir in #(((
13594    '') as_dir=./ ;;
13595    */) ;;
13596    *) as_dir=$as_dir/ ;;
13597  esac
13598    for ac_exec_ext in '' $ac_executable_extensions; do
13599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13600    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13602    break 2
13603  fi
13604done
13605  done
13606IFS=$as_save_IFS
13607
13608  ;;
13609esac ;;
13610esac
13611fi
13612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13613if test -n "$PKG_CONFIG"; then
13614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13615printf "%s\n" "$PKG_CONFIG" >&6; }
13616else
13617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618printf "%s\n" "no" >&6; }
13619fi
13620
13621
13622fi
13623if test -z "$ac_cv_path_PKG_CONFIG"; then
13624  ac_pt_PKG_CONFIG=$PKG_CONFIG
13625  # Extract the first word of "pkg-config", so it can be a program name with args.
13626set dummy pkg-config; ac_word=$2
13627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628printf %s "checking for $ac_word... " >&6; }
13629if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13630then :
13631  printf %s "(cached) " >&6
13632else case e in #(
13633  e) case $ac_pt_PKG_CONFIG in
13634  [\\/]* | ?:[\\/]*)
13635  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13636  ;;
13637  *)
13638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639for as_dir in $PATH
13640do
13641  IFS=$as_save_IFS
13642  case $as_dir in #(((
13643    '') as_dir=./ ;;
13644    */) ;;
13645    *) as_dir=$as_dir/ ;;
13646  esac
13647    for ac_exec_ext in '' $ac_executable_extensions; do
13648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13649    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13651    break 2
13652  fi
13653done
13654  done
13655IFS=$as_save_IFS
13656
13657  ;;
13658esac ;;
13659esac
13660fi
13661ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13662if test -n "$ac_pt_PKG_CONFIG"; then
13663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13664printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13665else
13666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667printf "%s\n" "no" >&6; }
13668fi
13669
13670  if test "x$ac_pt_PKG_CONFIG" = x; then
13671    PKG_CONFIG=""
13672  else
13673    case $cross_compiling:$ac_tool_warned in
13674yes:)
13675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13677ac_tool_warned=yes ;;
13678esac
13679    PKG_CONFIG=$ac_pt_PKG_CONFIG
13680  fi
13681else
13682  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13683fi
13684
13685fi
13686if test -n "$PKG_CONFIG"; then
13687	_pkg_min_version=0.9.0
13688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13689printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13690	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13692printf "%s\n" "yes" >&6; }
13693	else
13694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695printf "%s\n" "no" >&6; }
13696		PKG_CONFIG=""
13697	fi
13698fi
13699
13700
13701
13702
13703
13704# Check whether --enable-selective-werror was given.
13705if test ${enable_selective_werror+y}
13706then :
13707  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13708else case e in #(
13709  e) SELECTIVE_WERROR=yes ;;
13710esac
13711fi
13712
13713
13714
13715
13716
13717# -v is too short to test reliably with XORG_TESTSET_CFLAG
13718if test "x$SUNCC" = "xyes"; then
13719    BASE_CFLAGS="-v"
13720else
13721    BASE_CFLAGS=""
13722fi
13723
13724# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738xorg_testset_save_CFLAGS="$CFLAGS"
13739
13740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13744if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13745then :
13746  printf %s "(cached) " >&6
13747else case e in #(
13748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749/* end confdefs.h.  */
13750int i;
13751_ACEOF
13752if ac_fn_c_try_compile "$LINENO"
13753then :
13754  xorg_cv_cc_flag_unknown_warning_option=yes
13755else case e in #(
13756  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13757esac
13758fi
13759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13760esac
13761fi
13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13765	CFLAGS="$xorg_testset_save_CFLAGS"
13766fi
13767
13768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771	fi
13772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13776then :
13777  printf %s "(cached) " >&6
13778else case e in #(
13779  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780/* end confdefs.h.  */
13781int i;
13782_ACEOF
13783if ac_fn_c_try_compile "$LINENO"
13784then :
13785  xorg_cv_cc_flag_unused_command_line_argument=yes
13786else case e in #(
13787  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13788esac
13789fi
13790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13791esac
13792fi
13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13796	CFLAGS="$xorg_testset_save_CFLAGS"
13797fi
13798
13799found="no"
13800
13801	if test $found = "no" ; then
13802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804		fi
13805
13806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808		fi
13809
13810		CFLAGS="$CFLAGS -Wall"
13811
13812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13813printf %s "checking if $CC supports -Wall... " >&6; }
13814		cacheid=xorg_cv_cc_flag__Wall
13815		if eval test \${$cacheid+y}
13816then :
13817  printf %s "(cached) " >&6
13818else case e in #(
13819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h.  */
13821int i;
13822int
13823main (void)
13824{
13825
13826  ;
13827  return 0;
13828}
13829_ACEOF
13830if ac_fn_c_try_link "$LINENO"
13831then :
13832  eval $cacheid=yes
13833else case e in #(
13834  e) eval $cacheid=no ;;
13835esac
13836fi
13837rm -f core conftest.err conftest.$ac_objext conftest.beam \
13838    conftest$ac_exeext conftest.$ac_ext ;;
13839esac
13840fi
13841
13842
13843		CFLAGS="$xorg_testset_save_CFLAGS"
13844
13845		eval supported=\$$cacheid
13846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13847printf "%s\n" "$supported" >&6; }
13848		if test "$supported" = "yes" ; then
13849			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13850			found="yes"
13851		fi
13852	fi
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868xorg_testset_save_CFLAGS="$CFLAGS"
13869
13870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13874if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13875then :
13876  printf %s "(cached) " >&6
13877else case e in #(
13878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h.  */
13880int i;
13881_ACEOF
13882if ac_fn_c_try_compile "$LINENO"
13883then :
13884  xorg_cv_cc_flag_unknown_warning_option=yes
13885else case e in #(
13886  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13887esac
13888fi
13889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13890esac
13891fi
13892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13895	CFLAGS="$xorg_testset_save_CFLAGS"
13896fi
13897
13898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901	fi
13902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13906then :
13907  printf %s "(cached) " >&6
13908else case e in #(
13909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911int i;
13912_ACEOF
13913if ac_fn_c_try_compile "$LINENO"
13914then :
13915  xorg_cv_cc_flag_unused_command_line_argument=yes
13916else case e in #(
13917  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13918esac
13919fi
13920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13921esac
13922fi
13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13926	CFLAGS="$xorg_testset_save_CFLAGS"
13927fi
13928
13929found="no"
13930
13931	if test $found = "no" ; then
13932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13934		fi
13935
13936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13938		fi
13939
13940		CFLAGS="$CFLAGS -Wpointer-arith"
13941
13942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13943printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13944		cacheid=xorg_cv_cc_flag__Wpointer_arith
13945		if eval test \${$cacheid+y}
13946then :
13947  printf %s "(cached) " >&6
13948else case e in #(
13949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951int i;
13952int
13953main (void)
13954{
13955
13956  ;
13957  return 0;
13958}
13959_ACEOF
13960if ac_fn_c_try_link "$LINENO"
13961then :
13962  eval $cacheid=yes
13963else case e in #(
13964  e) eval $cacheid=no ;;
13965esac
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.beam \
13968    conftest$ac_exeext conftest.$ac_ext ;;
13969esac
13970fi
13971
13972
13973		CFLAGS="$xorg_testset_save_CFLAGS"
13974
13975		eval supported=\$$cacheid
13976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13977printf "%s\n" "$supported" >&6; }
13978		if test "$supported" = "yes" ; then
13979			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13980			found="yes"
13981		fi
13982	fi
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998xorg_testset_save_CFLAGS="$CFLAGS"
13999
14000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14004if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14005then :
14006  printf %s "(cached) " >&6
14007else case e in #(
14008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009/* end confdefs.h.  */
14010int i;
14011_ACEOF
14012if ac_fn_c_try_compile "$LINENO"
14013then :
14014  xorg_cv_cc_flag_unknown_warning_option=yes
14015else case e in #(
14016  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14017esac
14018fi
14019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14020esac
14021fi
14022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14025	CFLAGS="$xorg_testset_save_CFLAGS"
14026fi
14027
14028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14031	fi
14032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14036then :
14037  printf %s "(cached) " >&6
14038else case e in #(
14039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041int i;
14042_ACEOF
14043if ac_fn_c_try_compile "$LINENO"
14044then :
14045  xorg_cv_cc_flag_unused_command_line_argument=yes
14046else case e in #(
14047  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14048esac
14049fi
14050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14051esac
14052fi
14053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14056	CFLAGS="$xorg_testset_save_CFLAGS"
14057fi
14058
14059found="no"
14060
14061	if test $found = "no" ; then
14062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14064		fi
14065
14066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14068		fi
14069
14070		CFLAGS="$CFLAGS -Wmissing-declarations"
14071
14072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14073printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14074		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14075		if eval test \${$cacheid+y}
14076then :
14077  printf %s "(cached) " >&6
14078else case e in #(
14079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081int i;
14082int
14083main (void)
14084{
14085
14086  ;
14087  return 0;
14088}
14089_ACEOF
14090if ac_fn_c_try_link "$LINENO"
14091then :
14092  eval $cacheid=yes
14093else case e in #(
14094  e) eval $cacheid=no ;;
14095esac
14096fi
14097rm -f core conftest.err conftest.$ac_objext conftest.beam \
14098    conftest$ac_exeext conftest.$ac_ext ;;
14099esac
14100fi
14101
14102
14103		CFLAGS="$xorg_testset_save_CFLAGS"
14104
14105		eval supported=\$$cacheid
14106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14107printf "%s\n" "$supported" >&6; }
14108		if test "$supported" = "yes" ; then
14109			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14110			found="yes"
14111		fi
14112	fi
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128xorg_testset_save_CFLAGS="$CFLAGS"
14129
14130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14135then :
14136  printf %s "(cached) " >&6
14137else case e in #(
14138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139/* end confdefs.h.  */
14140int i;
14141_ACEOF
14142if ac_fn_c_try_compile "$LINENO"
14143then :
14144  xorg_cv_cc_flag_unknown_warning_option=yes
14145else case e in #(
14146  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14147esac
14148fi
14149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14150esac
14151fi
14152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14155	CFLAGS="$xorg_testset_save_CFLAGS"
14156fi
14157
14158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14161	fi
14162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14166then :
14167  printf %s "(cached) " >&6
14168else case e in #(
14169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170/* end confdefs.h.  */
14171int i;
14172_ACEOF
14173if ac_fn_c_try_compile "$LINENO"
14174then :
14175  xorg_cv_cc_flag_unused_command_line_argument=yes
14176else case e in #(
14177  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14178esac
14179fi
14180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14181esac
14182fi
14183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14186	CFLAGS="$xorg_testset_save_CFLAGS"
14187fi
14188
14189found="no"
14190
14191	if test $found = "no" ; then
14192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14194		fi
14195
14196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14198		fi
14199
14200		CFLAGS="$CFLAGS -Wformat=2"
14201
14202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14203printf %s "checking if $CC supports -Wformat=2... " >&6; }
14204		cacheid=xorg_cv_cc_flag__Wformat_2
14205		if eval test \${$cacheid+y}
14206then :
14207  printf %s "(cached) " >&6
14208else case e in #(
14209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h.  */
14211int i;
14212int
14213main (void)
14214{
14215
14216  ;
14217  return 0;
14218}
14219_ACEOF
14220if ac_fn_c_try_link "$LINENO"
14221then :
14222  eval $cacheid=yes
14223else case e in #(
14224  e) eval $cacheid=no ;;
14225esac
14226fi
14227rm -f core conftest.err conftest.$ac_objext conftest.beam \
14228    conftest$ac_exeext conftest.$ac_ext ;;
14229esac
14230fi
14231
14232
14233		CFLAGS="$xorg_testset_save_CFLAGS"
14234
14235		eval supported=\$$cacheid
14236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14237printf "%s\n" "$supported" >&6; }
14238		if test "$supported" = "yes" ; then
14239			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14240			found="yes"
14241		fi
14242	fi
14243
14244	if test $found = "no" ; then
14245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247		fi
14248
14249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251		fi
14252
14253		CFLAGS="$CFLAGS -Wformat"
14254
14255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14256printf %s "checking if $CC supports -Wformat... " >&6; }
14257		cacheid=xorg_cv_cc_flag__Wformat
14258		if eval test \${$cacheid+y}
14259then :
14260  printf %s "(cached) " >&6
14261else case e in #(
14262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264int i;
14265int
14266main (void)
14267{
14268
14269  ;
14270  return 0;
14271}
14272_ACEOF
14273if ac_fn_c_try_link "$LINENO"
14274then :
14275  eval $cacheid=yes
14276else case e in #(
14277  e) eval $cacheid=no ;;
14278esac
14279fi
14280rm -f core conftest.err conftest.$ac_objext conftest.beam \
14281    conftest$ac_exeext conftest.$ac_ext ;;
14282esac
14283fi
14284
14285
14286		CFLAGS="$xorg_testset_save_CFLAGS"
14287
14288		eval supported=\$$cacheid
14289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14290printf "%s\n" "$supported" >&6; }
14291		if test "$supported" = "yes" ; then
14292			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14293			found="yes"
14294		fi
14295	fi
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313xorg_testset_save_CFLAGS="$CFLAGS"
14314
14315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14320then :
14321  printf %s "(cached) " >&6
14322else case e in #(
14323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325int i;
14326_ACEOF
14327if ac_fn_c_try_compile "$LINENO"
14328then :
14329  xorg_cv_cc_flag_unknown_warning_option=yes
14330else case e in #(
14331  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14332esac
14333fi
14334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14335esac
14336fi
14337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14340	CFLAGS="$xorg_testset_save_CFLAGS"
14341fi
14342
14343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346	fi
14347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14351then :
14352  printf %s "(cached) " >&6
14353else case e in #(
14354  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356int i;
14357_ACEOF
14358if ac_fn_c_try_compile "$LINENO"
14359then :
14360  xorg_cv_cc_flag_unused_command_line_argument=yes
14361else case e in #(
14362  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14363esac
14364fi
14365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14366esac
14367fi
14368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371	CFLAGS="$xorg_testset_save_CFLAGS"
14372fi
14373
14374found="no"
14375
14376	if test $found = "no" ; then
14377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379		fi
14380
14381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383		fi
14384
14385		CFLAGS="$CFLAGS -Wstrict-prototypes"
14386
14387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14388printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14389		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14390		if eval test \${$cacheid+y}
14391then :
14392  printf %s "(cached) " >&6
14393else case e in #(
14394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395/* end confdefs.h.  */
14396int i;
14397int
14398main (void)
14399{
14400
14401  ;
14402  return 0;
14403}
14404_ACEOF
14405if ac_fn_c_try_link "$LINENO"
14406then :
14407  eval $cacheid=yes
14408else case e in #(
14409  e) eval $cacheid=no ;;
14410esac
14411fi
14412rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413    conftest$ac_exeext conftest.$ac_ext ;;
14414esac
14415fi
14416
14417
14418		CFLAGS="$xorg_testset_save_CFLAGS"
14419
14420		eval supported=\$$cacheid
14421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14422printf "%s\n" "$supported" >&6; }
14423		if test "$supported" = "yes" ; then
14424			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14425			found="yes"
14426		fi
14427	fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443xorg_testset_save_CFLAGS="$CFLAGS"
14444
14445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14449if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14450then :
14451  printf %s "(cached) " >&6
14452else case e in #(
14453  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454/* end confdefs.h.  */
14455int i;
14456_ACEOF
14457if ac_fn_c_try_compile "$LINENO"
14458then :
14459  xorg_cv_cc_flag_unknown_warning_option=yes
14460else case e in #(
14461  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14462esac
14463fi
14464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14465esac
14466fi
14467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14470	CFLAGS="$xorg_testset_save_CFLAGS"
14471fi
14472
14473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476	fi
14477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14478	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14480if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14481then :
14482  printf %s "(cached) " >&6
14483else case e in #(
14484  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485/* end confdefs.h.  */
14486int i;
14487_ACEOF
14488if ac_fn_c_try_compile "$LINENO"
14489then :
14490  xorg_cv_cc_flag_unused_command_line_argument=yes
14491else case e in #(
14492  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14493esac
14494fi
14495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14496esac
14497fi
14498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14501	CFLAGS="$xorg_testset_save_CFLAGS"
14502fi
14503
14504found="no"
14505
14506	if test $found = "no" ; then
14507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509		fi
14510
14511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513		fi
14514
14515		CFLAGS="$CFLAGS -Wmissing-prototypes"
14516
14517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14518printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14519		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14520		if eval test \${$cacheid+y}
14521then :
14522  printf %s "(cached) " >&6
14523else case e in #(
14524  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h.  */
14526int i;
14527int
14528main (void)
14529{
14530
14531  ;
14532  return 0;
14533}
14534_ACEOF
14535if ac_fn_c_try_link "$LINENO"
14536then :
14537  eval $cacheid=yes
14538else case e in #(
14539  e) eval $cacheid=no ;;
14540esac
14541fi
14542rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543    conftest$ac_exeext conftest.$ac_ext ;;
14544esac
14545fi
14546
14547
14548		CFLAGS="$xorg_testset_save_CFLAGS"
14549
14550		eval supported=\$$cacheid
14551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14552printf "%s\n" "$supported" >&6; }
14553		if test "$supported" = "yes" ; then
14554			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14555			found="yes"
14556		fi
14557	fi
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573xorg_testset_save_CFLAGS="$CFLAGS"
14574
14575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14579if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14580then :
14581  printf %s "(cached) " >&6
14582else case e in #(
14583  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584/* end confdefs.h.  */
14585int i;
14586_ACEOF
14587if ac_fn_c_try_compile "$LINENO"
14588then :
14589  xorg_cv_cc_flag_unknown_warning_option=yes
14590else case e in #(
14591  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14592esac
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14595esac
14596fi
14597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14600	CFLAGS="$xorg_testset_save_CFLAGS"
14601fi
14602
14603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14606	fi
14607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14610if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14611then :
14612  printf %s "(cached) " >&6
14613else case e in #(
14614  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616int i;
14617_ACEOF
14618if ac_fn_c_try_compile "$LINENO"
14619then :
14620  xorg_cv_cc_flag_unused_command_line_argument=yes
14621else case e in #(
14622  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14623esac
14624fi
14625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14626esac
14627fi
14628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14631	CFLAGS="$xorg_testset_save_CFLAGS"
14632fi
14633
14634found="no"
14635
14636	if test $found = "no" ; then
14637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14639		fi
14640
14641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643		fi
14644
14645		CFLAGS="$CFLAGS -Wnested-externs"
14646
14647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14648printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14649		cacheid=xorg_cv_cc_flag__Wnested_externs
14650		if eval test \${$cacheid+y}
14651then :
14652  printf %s "(cached) " >&6
14653else case e in #(
14654  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655/* end confdefs.h.  */
14656int i;
14657int
14658main (void)
14659{
14660
14661  ;
14662  return 0;
14663}
14664_ACEOF
14665if ac_fn_c_try_link "$LINENO"
14666then :
14667  eval $cacheid=yes
14668else case e in #(
14669  e) eval $cacheid=no ;;
14670esac
14671fi
14672rm -f core conftest.err conftest.$ac_objext conftest.beam \
14673    conftest$ac_exeext conftest.$ac_ext ;;
14674esac
14675fi
14676
14677
14678		CFLAGS="$xorg_testset_save_CFLAGS"
14679
14680		eval supported=\$$cacheid
14681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14682printf "%s\n" "$supported" >&6; }
14683		if test "$supported" = "yes" ; then
14684			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14685			found="yes"
14686		fi
14687	fi
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703xorg_testset_save_CFLAGS="$CFLAGS"
14704
14705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14709if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14710then :
14711  printf %s "(cached) " >&6
14712else case e in #(
14713  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h.  */
14715int i;
14716_ACEOF
14717if ac_fn_c_try_compile "$LINENO"
14718then :
14719  xorg_cv_cc_flag_unknown_warning_option=yes
14720else case e in #(
14721  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14722esac
14723fi
14724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14725esac
14726fi
14727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14729	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14730	CFLAGS="$xorg_testset_save_CFLAGS"
14731fi
14732
14733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14734	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14735		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14736	fi
14737	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14740if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14741then :
14742  printf %s "(cached) " >&6
14743else case e in #(
14744  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745/* end confdefs.h.  */
14746int i;
14747_ACEOF
14748if ac_fn_c_try_compile "$LINENO"
14749then :
14750  xorg_cv_cc_flag_unused_command_line_argument=yes
14751else case e in #(
14752  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14753esac
14754fi
14755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14756esac
14757fi
14758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14761	CFLAGS="$xorg_testset_save_CFLAGS"
14762fi
14763
14764found="no"
14765
14766	if test $found = "no" ; then
14767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14769		fi
14770
14771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14773		fi
14774
14775		CFLAGS="$CFLAGS -Wbad-function-cast"
14776
14777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14778printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14779		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14780		if eval test \${$cacheid+y}
14781then :
14782  printf %s "(cached) " >&6
14783else case e in #(
14784  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786int i;
14787int
14788main (void)
14789{
14790
14791  ;
14792  return 0;
14793}
14794_ACEOF
14795if ac_fn_c_try_link "$LINENO"
14796then :
14797  eval $cacheid=yes
14798else case e in #(
14799  e) eval $cacheid=no ;;
14800esac
14801fi
14802rm -f core conftest.err conftest.$ac_objext conftest.beam \
14803    conftest$ac_exeext conftest.$ac_ext ;;
14804esac
14805fi
14806
14807
14808		CFLAGS="$xorg_testset_save_CFLAGS"
14809
14810		eval supported=\$$cacheid
14811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14812printf "%s\n" "$supported" >&6; }
14813		if test "$supported" = "yes" ; then
14814			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14815			found="yes"
14816		fi
14817	fi
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833xorg_testset_save_CFLAGS="$CFLAGS"
14834
14835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14840then :
14841  printf %s "(cached) " >&6
14842else case e in #(
14843  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845int i;
14846_ACEOF
14847if ac_fn_c_try_compile "$LINENO"
14848then :
14849  xorg_cv_cc_flag_unknown_warning_option=yes
14850else case e in #(
14851  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14852esac
14853fi
14854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14855esac
14856fi
14857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14860	CFLAGS="$xorg_testset_save_CFLAGS"
14861fi
14862
14863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866	fi
14867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14871then :
14872  printf %s "(cached) " >&6
14873else case e in #(
14874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876int i;
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"
14879then :
14880  xorg_cv_cc_flag_unused_command_line_argument=yes
14881else case e in #(
14882  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14883esac
14884fi
14885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14886esac
14887fi
14888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14891	CFLAGS="$xorg_testset_save_CFLAGS"
14892fi
14893
14894found="no"
14895
14896	if test $found = "no" ; then
14897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14899		fi
14900
14901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14903		fi
14904
14905		CFLAGS="$CFLAGS -Wold-style-definition"
14906
14907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14908printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14909		cacheid=xorg_cv_cc_flag__Wold_style_definition
14910		if eval test \${$cacheid+y}
14911then :
14912  printf %s "(cached) " >&6
14913else case e in #(
14914  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916int i;
14917int
14918main (void)
14919{
14920
14921  ;
14922  return 0;
14923}
14924_ACEOF
14925if ac_fn_c_try_link "$LINENO"
14926then :
14927  eval $cacheid=yes
14928else case e in #(
14929  e) eval $cacheid=no ;;
14930esac
14931fi
14932rm -f core conftest.err conftest.$ac_objext conftest.beam \
14933    conftest$ac_exeext conftest.$ac_ext ;;
14934esac
14935fi
14936
14937
14938		CFLAGS="$xorg_testset_save_CFLAGS"
14939
14940		eval supported=\$$cacheid
14941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14942printf "%s\n" "$supported" >&6; }
14943		if test "$supported" = "yes" ; then
14944			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14945			found="yes"
14946		fi
14947	fi
14948
14949	if test $found = "no" ; then
14950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952		fi
14953
14954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956		fi
14957
14958		CFLAGS="$CFLAGS -fd"
14959
14960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14961printf %s "checking if $CC supports -fd... " >&6; }
14962		cacheid=xorg_cv_cc_flag__fd
14963		if eval test \${$cacheid+y}
14964then :
14965  printf %s "(cached) " >&6
14966else case e in #(
14967  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h.  */
14969int i;
14970int
14971main (void)
14972{
14973
14974  ;
14975  return 0;
14976}
14977_ACEOF
14978if ac_fn_c_try_link "$LINENO"
14979then :
14980  eval $cacheid=yes
14981else case e in #(
14982  e) eval $cacheid=no ;;
14983esac
14984fi
14985rm -f core conftest.err conftest.$ac_objext conftest.beam \
14986    conftest$ac_exeext conftest.$ac_ext ;;
14987esac
14988fi
14989
14990
14991		CFLAGS="$xorg_testset_save_CFLAGS"
14992
14993		eval supported=\$$cacheid
14994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14995printf "%s\n" "$supported" >&6; }
14996		if test "$supported" = "yes" ; then
14997			BASE_CFLAGS="$BASE_CFLAGS -fd"
14998			found="yes"
14999		fi
15000	fi
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016xorg_testset_save_CFLAGS="$CFLAGS"
15017
15018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15022if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15023then :
15024  printf %s "(cached) " >&6
15025else case e in #(
15026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027/* end confdefs.h.  */
15028int i;
15029_ACEOF
15030if ac_fn_c_try_compile "$LINENO"
15031then :
15032  xorg_cv_cc_flag_unknown_warning_option=yes
15033else case e in #(
15034  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15035esac
15036fi
15037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15038esac
15039fi
15040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15043	CFLAGS="$xorg_testset_save_CFLAGS"
15044fi
15045
15046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15049	fi
15050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15053if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15054then :
15055  printf %s "(cached) " >&6
15056else case e in #(
15057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h.  */
15059int i;
15060_ACEOF
15061if ac_fn_c_try_compile "$LINENO"
15062then :
15063  xorg_cv_cc_flag_unused_command_line_argument=yes
15064else case e in #(
15065  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15066esac
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15069esac
15070fi
15071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15074	CFLAGS="$xorg_testset_save_CFLAGS"
15075fi
15076
15077found="no"
15078
15079	if test $found = "no" ; then
15080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082		fi
15083
15084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086		fi
15087
15088		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15089
15090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
15091printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
15092		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
15093		if eval test \${$cacheid+y}
15094then :
15095  printf %s "(cached) " >&6
15096else case e in #(
15097  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098/* end confdefs.h.  */
15099int i;
15100int
15101main (void)
15102{
15103
15104  ;
15105  return 0;
15106}
15107_ACEOF
15108if ac_fn_c_try_link "$LINENO"
15109then :
15110  eval $cacheid=yes
15111else case e in #(
15112  e) eval $cacheid=no ;;
15113esac
15114fi
15115rm -f core conftest.err conftest.$ac_objext conftest.beam \
15116    conftest$ac_exeext conftest.$ac_ext ;;
15117esac
15118fi
15119
15120
15121		CFLAGS="$xorg_testset_save_CFLAGS"
15122
15123		eval supported=\$$cacheid
15124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15125printf "%s\n" "$supported" >&6; }
15126		if test "$supported" = "yes" ; then
15127			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15128			found="yes"
15129		fi
15130	fi
15131
15132
15133
15134
15135
15136# This chunk adds additional warnings that could catch undesired effects.
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150xorg_testset_save_CFLAGS="$CFLAGS"
15151
15152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15157then :
15158  printf %s "(cached) " >&6
15159else case e in #(
15160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"
15165then :
15166  xorg_cv_cc_flag_unknown_warning_option=yes
15167else case e in #(
15168  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15169esac
15170fi
15171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15172esac
15173fi
15174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15175printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15177	CFLAGS="$xorg_testset_save_CFLAGS"
15178fi
15179
15180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15183	fi
15184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15186printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15187if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15188then :
15189  printf %s "(cached) " >&6
15190else case e in #(
15191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192/* end confdefs.h.  */
15193int i;
15194_ACEOF
15195if ac_fn_c_try_compile "$LINENO"
15196then :
15197  xorg_cv_cc_flag_unused_command_line_argument=yes
15198else case e in #(
15199  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15200esac
15201fi
15202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15203esac
15204fi
15205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15208	CFLAGS="$xorg_testset_save_CFLAGS"
15209fi
15210
15211found="no"
15212
15213	if test $found = "no" ; then
15214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216		fi
15217
15218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15220		fi
15221
15222		CFLAGS="$CFLAGS -Wunused"
15223
15224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15225printf %s "checking if $CC supports -Wunused... " >&6; }
15226		cacheid=xorg_cv_cc_flag__Wunused
15227		if eval test \${$cacheid+y}
15228then :
15229  printf %s "(cached) " >&6
15230else case e in #(
15231  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232/* end confdefs.h.  */
15233int i;
15234int
15235main (void)
15236{
15237
15238  ;
15239  return 0;
15240}
15241_ACEOF
15242if ac_fn_c_try_link "$LINENO"
15243then :
15244  eval $cacheid=yes
15245else case e in #(
15246  e) eval $cacheid=no ;;
15247esac
15248fi
15249rm -f core conftest.err conftest.$ac_objext conftest.beam \
15250    conftest$ac_exeext conftest.$ac_ext ;;
15251esac
15252fi
15253
15254
15255		CFLAGS="$xorg_testset_save_CFLAGS"
15256
15257		eval supported=\$$cacheid
15258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15259printf "%s\n" "$supported" >&6; }
15260		if test "$supported" = "yes" ; then
15261			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15262			found="yes"
15263		fi
15264	fi
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280xorg_testset_save_CFLAGS="$CFLAGS"
15281
15282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15285printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15286if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15287then :
15288  printf %s "(cached) " >&6
15289else case e in #(
15290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292int i;
15293_ACEOF
15294if ac_fn_c_try_compile "$LINENO"
15295then :
15296  xorg_cv_cc_flag_unknown_warning_option=yes
15297else case e in #(
15298  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15299esac
15300fi
15301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15302esac
15303fi
15304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307	CFLAGS="$xorg_testset_save_CFLAGS"
15308fi
15309
15310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313	fi
15314	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15318then :
15319  printf %s "(cached) " >&6
15320else case e in #(
15321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322/* end confdefs.h.  */
15323int i;
15324_ACEOF
15325if ac_fn_c_try_compile "$LINENO"
15326then :
15327  xorg_cv_cc_flag_unused_command_line_argument=yes
15328else case e in #(
15329  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15330esac
15331fi
15332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15333esac
15334fi
15335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15338	CFLAGS="$xorg_testset_save_CFLAGS"
15339fi
15340
15341found="no"
15342
15343	if test $found = "no" ; then
15344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15346		fi
15347
15348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350		fi
15351
15352		CFLAGS="$CFLAGS -Wuninitialized"
15353
15354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15355printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15356		cacheid=xorg_cv_cc_flag__Wuninitialized
15357		if eval test \${$cacheid+y}
15358then :
15359  printf %s "(cached) " >&6
15360else case e in #(
15361  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362/* end confdefs.h.  */
15363int i;
15364int
15365main (void)
15366{
15367
15368  ;
15369  return 0;
15370}
15371_ACEOF
15372if ac_fn_c_try_link "$LINENO"
15373then :
15374  eval $cacheid=yes
15375else case e in #(
15376  e) eval $cacheid=no ;;
15377esac
15378fi
15379rm -f core conftest.err conftest.$ac_objext conftest.beam \
15380    conftest$ac_exeext conftest.$ac_ext ;;
15381esac
15382fi
15383
15384
15385		CFLAGS="$xorg_testset_save_CFLAGS"
15386
15387		eval supported=\$$cacheid
15388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15389printf "%s\n" "$supported" >&6; }
15390		if test "$supported" = "yes" ; then
15391			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15392			found="yes"
15393		fi
15394	fi
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410xorg_testset_save_CFLAGS="$CFLAGS"
15411
15412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15416if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15417then :
15418  printf %s "(cached) " >&6
15419else case e in #(
15420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422int i;
15423_ACEOF
15424if ac_fn_c_try_compile "$LINENO"
15425then :
15426  xorg_cv_cc_flag_unknown_warning_option=yes
15427else case e in #(
15428  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15429esac
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15432esac
15433fi
15434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15437	CFLAGS="$xorg_testset_save_CFLAGS"
15438fi
15439
15440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443	fi
15444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15448then :
15449  printf %s "(cached) " >&6
15450else case e in #(
15451  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h.  */
15453int i;
15454_ACEOF
15455if ac_fn_c_try_compile "$LINENO"
15456then :
15457  xorg_cv_cc_flag_unused_command_line_argument=yes
15458else case e in #(
15459  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15460esac
15461fi
15462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15463esac
15464fi
15465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15468	CFLAGS="$xorg_testset_save_CFLAGS"
15469fi
15470
15471found="no"
15472
15473	if test $found = "no" ; then
15474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15476		fi
15477
15478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480		fi
15481
15482		CFLAGS="$CFLAGS -Wshadow"
15483
15484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15485printf %s "checking if $CC supports -Wshadow... " >&6; }
15486		cacheid=xorg_cv_cc_flag__Wshadow
15487		if eval test \${$cacheid+y}
15488then :
15489  printf %s "(cached) " >&6
15490else case e in #(
15491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492/* end confdefs.h.  */
15493int i;
15494int
15495main (void)
15496{
15497
15498  ;
15499  return 0;
15500}
15501_ACEOF
15502if ac_fn_c_try_link "$LINENO"
15503then :
15504  eval $cacheid=yes
15505else case e in #(
15506  e) eval $cacheid=no ;;
15507esac
15508fi
15509rm -f core conftest.err conftest.$ac_objext conftest.beam \
15510    conftest$ac_exeext conftest.$ac_ext ;;
15511esac
15512fi
15513
15514
15515		CFLAGS="$xorg_testset_save_CFLAGS"
15516
15517		eval supported=\$$cacheid
15518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15519printf "%s\n" "$supported" >&6; }
15520		if test "$supported" = "yes" ; then
15521			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15522			found="yes"
15523		fi
15524	fi
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540xorg_testset_save_CFLAGS="$CFLAGS"
15541
15542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15547then :
15548  printf %s "(cached) " >&6
15549else case e in #(
15550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551/* end confdefs.h.  */
15552int i;
15553_ACEOF
15554if ac_fn_c_try_compile "$LINENO"
15555then :
15556  xorg_cv_cc_flag_unknown_warning_option=yes
15557else case e in #(
15558  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15559esac
15560fi
15561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15562esac
15563fi
15564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15567	CFLAGS="$xorg_testset_save_CFLAGS"
15568fi
15569
15570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15573	fi
15574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15578then :
15579  printf %s "(cached) " >&6
15580else case e in #(
15581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582/* end confdefs.h.  */
15583int i;
15584_ACEOF
15585if ac_fn_c_try_compile "$LINENO"
15586then :
15587  xorg_cv_cc_flag_unused_command_line_argument=yes
15588else case e in #(
15589  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15590esac
15591fi
15592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15593esac
15594fi
15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598	CFLAGS="$xorg_testset_save_CFLAGS"
15599fi
15600
15601found="no"
15602
15603	if test $found = "no" ; then
15604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606		fi
15607
15608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610		fi
15611
15612		CFLAGS="$CFLAGS -Wmissing-noreturn"
15613
15614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15615printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15616		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15617		if eval test \${$cacheid+y}
15618then :
15619  printf %s "(cached) " >&6
15620else case e in #(
15621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622/* end confdefs.h.  */
15623int i;
15624int
15625main (void)
15626{
15627
15628  ;
15629  return 0;
15630}
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"
15633then :
15634  eval $cacheid=yes
15635else case e in #(
15636  e) eval $cacheid=no ;;
15637esac
15638fi
15639rm -f core conftest.err conftest.$ac_objext conftest.beam \
15640    conftest$ac_exeext conftest.$ac_ext ;;
15641esac
15642fi
15643
15644
15645		CFLAGS="$xorg_testset_save_CFLAGS"
15646
15647		eval supported=\$$cacheid
15648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15649printf "%s\n" "$supported" >&6; }
15650		if test "$supported" = "yes" ; then
15651			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15652			found="yes"
15653		fi
15654	fi
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670xorg_testset_save_CFLAGS="$CFLAGS"
15671
15672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15677then :
15678  printf %s "(cached) " >&6
15679else case e in #(
15680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681/* end confdefs.h.  */
15682int i;
15683_ACEOF
15684if ac_fn_c_try_compile "$LINENO"
15685then :
15686  xorg_cv_cc_flag_unknown_warning_option=yes
15687else case e in #(
15688  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15689esac
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15692esac
15693fi
15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	fi
15704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15708then :
15709  printf %s "(cached) " >&6
15710else case e in #(
15711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713int i;
15714_ACEOF
15715if ac_fn_c_try_compile "$LINENO"
15716then :
15717  xorg_cv_cc_flag_unused_command_line_argument=yes
15718else case e in #(
15719  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15720esac
15721fi
15722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15723esac
15724fi
15725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15726printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15728	CFLAGS="$xorg_testset_save_CFLAGS"
15729fi
15730
15731found="no"
15732
15733	if test $found = "no" ; then
15734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736		fi
15737
15738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15740		fi
15741
15742		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15743
15744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15745printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15746		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15747		if eval test \${$cacheid+y}
15748then :
15749  printf %s "(cached) " >&6
15750else case e in #(
15751  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h.  */
15753int i;
15754int
15755main (void)
15756{
15757
15758  ;
15759  return 0;
15760}
15761_ACEOF
15762if ac_fn_c_try_link "$LINENO"
15763then :
15764  eval $cacheid=yes
15765else case e in #(
15766  e) eval $cacheid=no ;;
15767esac
15768fi
15769rm -f core conftest.err conftest.$ac_objext conftest.beam \
15770    conftest$ac_exeext conftest.$ac_ext ;;
15771esac
15772fi
15773
15774
15775		CFLAGS="$xorg_testset_save_CFLAGS"
15776
15777		eval supported=\$$cacheid
15778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15779printf "%s\n" "$supported" >&6; }
15780		if test "$supported" = "yes" ; then
15781			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15782			found="yes"
15783		fi
15784	fi
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800xorg_testset_save_CFLAGS="$CFLAGS"
15801
15802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15806if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15807then :
15808  printf %s "(cached) " >&6
15809else case e in #(
15810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811/* end confdefs.h.  */
15812int i;
15813_ACEOF
15814if ac_fn_c_try_compile "$LINENO"
15815then :
15816  xorg_cv_cc_flag_unknown_warning_option=yes
15817else case e in #(
15818  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15819esac
15820fi
15821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15822esac
15823fi
15824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15827	CFLAGS="$xorg_testset_save_CFLAGS"
15828fi
15829
15830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833	fi
15834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15838then :
15839  printf %s "(cached) " >&6
15840else case e in #(
15841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h.  */
15843int i;
15844_ACEOF
15845if ac_fn_c_try_compile "$LINENO"
15846then :
15847  xorg_cv_cc_flag_unused_command_line_argument=yes
15848else case e in #(
15849  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15850esac
15851fi
15852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15853esac
15854fi
15855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15858	CFLAGS="$xorg_testset_save_CFLAGS"
15859fi
15860
15861found="no"
15862
15863	if test $found = "no" ; then
15864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15866		fi
15867
15868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15870		fi
15871
15872		CFLAGS="$CFLAGS -Wredundant-decls"
15873
15874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15875printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15876		cacheid=xorg_cv_cc_flag__Wredundant_decls
15877		if eval test \${$cacheid+y}
15878then :
15879  printf %s "(cached) " >&6
15880else case e in #(
15881  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883int i;
15884int
15885main (void)
15886{
15887
15888  ;
15889  return 0;
15890}
15891_ACEOF
15892if ac_fn_c_try_link "$LINENO"
15893then :
15894  eval $cacheid=yes
15895else case e in #(
15896  e) eval $cacheid=no ;;
15897esac
15898fi
15899rm -f core conftest.err conftest.$ac_objext conftest.beam \
15900    conftest$ac_exeext conftest.$ac_ext ;;
15901esac
15902fi
15903
15904
15905		CFLAGS="$xorg_testset_save_CFLAGS"
15906
15907		eval supported=\$$cacheid
15908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15909printf "%s\n" "$supported" >&6; }
15910		if test "$supported" = "yes" ; then
15911			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15912			found="yes"
15913		fi
15914	fi
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930xorg_testset_save_CFLAGS="$CFLAGS"
15931
15932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15933	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15936if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15937then :
15938  printf %s "(cached) " >&6
15939else case e in #(
15940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941/* end confdefs.h.  */
15942int i;
15943_ACEOF
15944if ac_fn_c_try_compile "$LINENO"
15945then :
15946  xorg_cv_cc_flag_unknown_warning_option=yes
15947else case e in #(
15948  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15949esac
15950fi
15951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15952esac
15953fi
15954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15957	CFLAGS="$xorg_testset_save_CFLAGS"
15958fi
15959
15960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963	fi
15964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15967if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15968then :
15969  printf %s "(cached) " >&6
15970else case e in #(
15971  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"
15976then :
15977  xorg_cv_cc_flag_unused_command_line_argument=yes
15978else case e in #(
15979  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15980esac
15981fi
15982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15983esac
15984fi
15985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15988	CFLAGS="$xorg_testset_save_CFLAGS"
15989fi
15990
15991found="no"
15992
15993	if test $found = "no" ; then
15994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996		fi
15997
15998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16000		fi
16001
16002		CFLAGS="$CFLAGS -Wlogical-op"
16003
16004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16005printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16006		cacheid=xorg_cv_cc_flag__Wlogical_op
16007		if eval test \${$cacheid+y}
16008then :
16009  printf %s "(cached) " >&6
16010else case e in #(
16011  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013int i;
16014int
16015main (void)
16016{
16017
16018  ;
16019  return 0;
16020}
16021_ACEOF
16022if ac_fn_c_try_link "$LINENO"
16023then :
16024  eval $cacheid=yes
16025else case e in #(
16026  e) eval $cacheid=no ;;
16027esac
16028fi
16029rm -f core conftest.err conftest.$ac_objext conftest.beam \
16030    conftest$ac_exeext conftest.$ac_ext ;;
16031esac
16032fi
16033
16034
16035		CFLAGS="$xorg_testset_save_CFLAGS"
16036
16037		eval supported=\$$cacheid
16038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16039printf "%s\n" "$supported" >&6; }
16040		if test "$supported" = "yes" ; then
16041			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16042			found="yes"
16043		fi
16044	fi
16045
16046
16047
16048# These are currently disabled because they are noisy.  They will be enabled
16049# in the future once the codebase is sufficiently modernized to silence
16050# them.  For now, I don't want them to drown out the other warnings.
16051# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16052# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16053# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16054
16055# Turn some warnings into errors, so we don't accidentally get successful builds
16056# when there are problems that should be fixed.
16057
16058if test "x$SELECTIVE_WERROR" = "xyes" ; then
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16079then :
16080  printf %s "(cached) " >&6
16081else case e in #(
16082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h.  */
16084int i;
16085_ACEOF
16086if ac_fn_c_try_compile "$LINENO"
16087then :
16088  xorg_cv_cc_flag_unknown_warning_option=yes
16089else case e in #(
16090  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16091esac
16092fi
16093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16094esac
16095fi
16096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099	CFLAGS="$xorg_testset_save_CFLAGS"
16100fi
16101
16102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105	fi
16106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16110then :
16111  printf %s "(cached) " >&6
16112else case e in #(
16113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"
16118then :
16119  xorg_cv_cc_flag_unused_command_line_argument=yes
16120else case e in #(
16121  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16122esac
16123fi
16124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125esac
16126fi
16127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130	CFLAGS="$xorg_testset_save_CFLAGS"
16131fi
16132
16133found="no"
16134
16135	if test $found = "no" ; then
16136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138		fi
16139
16140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142		fi
16143
16144		CFLAGS="$CFLAGS -Werror=implicit"
16145
16146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16147printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16148		cacheid=xorg_cv_cc_flag__Werror_implicit
16149		if eval test \${$cacheid+y}
16150then :
16151  printf %s "(cached) " >&6
16152else case e in #(
16153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155int i;
16156int
16157main (void)
16158{
16159
16160  ;
16161  return 0;
16162}
16163_ACEOF
16164if ac_fn_c_try_link "$LINENO"
16165then :
16166  eval $cacheid=yes
16167else case e in #(
16168  e) eval $cacheid=no ;;
16169esac
16170fi
16171rm -f core conftest.err conftest.$ac_objext conftest.beam \
16172    conftest$ac_exeext conftest.$ac_ext ;;
16173esac
16174fi
16175
16176
16177		CFLAGS="$xorg_testset_save_CFLAGS"
16178
16179		eval supported=\$$cacheid
16180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16181printf "%s\n" "$supported" >&6; }
16182		if test "$supported" = "yes" ; then
16183			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16184			found="yes"
16185		fi
16186	fi
16187
16188	if test $found = "no" ; then
16189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191		fi
16192
16193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16195		fi
16196
16197		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16198
16199		{ 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
16200printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16201		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16202		if eval test \${$cacheid+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;
16209int
16210main (void)
16211{
16212
16213  ;
16214  return 0;
16215}
16216_ACEOF
16217if ac_fn_c_try_link "$LINENO"
16218then :
16219  eval $cacheid=yes
16220else case e in #(
16221  e) eval $cacheid=no ;;
16222esac
16223fi
16224rm -f core conftest.err conftest.$ac_objext conftest.beam \
16225    conftest$ac_exeext conftest.$ac_ext ;;
16226esac
16227fi
16228
16229
16230		CFLAGS="$xorg_testset_save_CFLAGS"
16231
16232		eval supported=\$$cacheid
16233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16234printf "%s\n" "$supported" >&6; }
16235		if test "$supported" = "yes" ; then
16236			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16237			found="yes"
16238		fi
16239	fi
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255xorg_testset_save_CFLAGS="$CFLAGS"
16256
16257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16261if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16262then :
16263  printf %s "(cached) " >&6
16264else case e in #(
16265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h.  */
16267int i;
16268_ACEOF
16269if ac_fn_c_try_compile "$LINENO"
16270then :
16271  xorg_cv_cc_flag_unknown_warning_option=yes
16272else case e in #(
16273  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16274esac
16275fi
16276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16277esac
16278fi
16279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16282	CFLAGS="$xorg_testset_save_CFLAGS"
16283fi
16284
16285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288	fi
16289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16293then :
16294  printf %s "(cached) " >&6
16295else case e in #(
16296  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h.  */
16298int i;
16299_ACEOF
16300if ac_fn_c_try_compile "$LINENO"
16301then :
16302  xorg_cv_cc_flag_unused_command_line_argument=yes
16303else case e in #(
16304  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16305esac
16306fi
16307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16308esac
16309fi
16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16313	CFLAGS="$xorg_testset_save_CFLAGS"
16314fi
16315
16316found="no"
16317
16318	if test $found = "no" ; then
16319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16321		fi
16322
16323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16325		fi
16326
16327		CFLAGS="$CFLAGS -Werror=nonnull"
16328
16329		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16330printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16331		cacheid=xorg_cv_cc_flag__Werror_nonnull
16332		if eval test \${$cacheid+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;
16339int
16340main (void)
16341{
16342
16343  ;
16344  return 0;
16345}
16346_ACEOF
16347if ac_fn_c_try_link "$LINENO"
16348then :
16349  eval $cacheid=yes
16350else case e in #(
16351  e) eval $cacheid=no ;;
16352esac
16353fi
16354rm -f core conftest.err conftest.$ac_objext conftest.beam \
16355    conftest$ac_exeext conftest.$ac_ext ;;
16356esac
16357fi
16358
16359
16360		CFLAGS="$xorg_testset_save_CFLAGS"
16361
16362		eval supported=\$$cacheid
16363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16364printf "%s\n" "$supported" >&6; }
16365		if test "$supported" = "yes" ; then
16366			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16367			found="yes"
16368		fi
16369	fi
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385xorg_testset_save_CFLAGS="$CFLAGS"
16386
16387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16391if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16392then :
16393  printf %s "(cached) " >&6
16394else case e in #(
16395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396/* end confdefs.h.  */
16397int i;
16398_ACEOF
16399if ac_fn_c_try_compile "$LINENO"
16400then :
16401  xorg_cv_cc_flag_unknown_warning_option=yes
16402else case e in #(
16403  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16404esac
16405fi
16406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16407esac
16408fi
16409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16412	CFLAGS="$xorg_testset_save_CFLAGS"
16413fi
16414
16415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16418	fi
16419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16423then :
16424  printf %s "(cached) " >&6
16425else case e in #(
16426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427/* end confdefs.h.  */
16428int i;
16429_ACEOF
16430if ac_fn_c_try_compile "$LINENO"
16431then :
16432  xorg_cv_cc_flag_unused_command_line_argument=yes
16433else case e in #(
16434  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16435esac
16436fi
16437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16438esac
16439fi
16440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443	CFLAGS="$xorg_testset_save_CFLAGS"
16444fi
16445
16446found="no"
16447
16448	if test $found = "no" ; then
16449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451		fi
16452
16453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455		fi
16456
16457		CFLAGS="$CFLAGS -Werror=init-self"
16458
16459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16460printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16461		cacheid=xorg_cv_cc_flag__Werror_init_self
16462		if eval test \${$cacheid+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;
16469int
16470main (void)
16471{
16472
16473  ;
16474  return 0;
16475}
16476_ACEOF
16477if ac_fn_c_try_link "$LINENO"
16478then :
16479  eval $cacheid=yes
16480else case e in #(
16481  e) eval $cacheid=no ;;
16482esac
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.beam \
16485    conftest$ac_exeext conftest.$ac_ext ;;
16486esac
16487fi
16488
16489
16490		CFLAGS="$xorg_testset_save_CFLAGS"
16491
16492		eval supported=\$$cacheid
16493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16494printf "%s\n" "$supported" >&6; }
16495		if test "$supported" = "yes" ; then
16496			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16497			found="yes"
16498		fi
16499	fi
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515xorg_testset_save_CFLAGS="$CFLAGS"
16516
16517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16521if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16522then :
16523  printf %s "(cached) " >&6
16524else case e in #(
16525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526/* end confdefs.h.  */
16527int i;
16528_ACEOF
16529if ac_fn_c_try_compile "$LINENO"
16530then :
16531  xorg_cv_cc_flag_unknown_warning_option=yes
16532else case e in #(
16533  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16534esac
16535fi
16536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16537esac
16538fi
16539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16542	CFLAGS="$xorg_testset_save_CFLAGS"
16543fi
16544
16545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548	fi
16549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16552if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16553then :
16554  printf %s "(cached) " >&6
16555else case e in #(
16556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558int i;
16559_ACEOF
16560if ac_fn_c_try_compile "$LINENO"
16561then :
16562  xorg_cv_cc_flag_unused_command_line_argument=yes
16563else case e in #(
16564  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16565esac
16566fi
16567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16568esac
16569fi
16570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16573	CFLAGS="$xorg_testset_save_CFLAGS"
16574fi
16575
16576found="no"
16577
16578	if test $found = "no" ; then
16579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581		fi
16582
16583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585		fi
16586
16587		CFLAGS="$CFLAGS -Werror=main"
16588
16589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16590printf %s "checking if $CC supports -Werror=main... " >&6; }
16591		cacheid=xorg_cv_cc_flag__Werror_main
16592		if eval test \${$cacheid+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;
16599int
16600main (void)
16601{
16602
16603  ;
16604  return 0;
16605}
16606_ACEOF
16607if ac_fn_c_try_link "$LINENO"
16608then :
16609  eval $cacheid=yes
16610else case e in #(
16611  e) eval $cacheid=no ;;
16612esac
16613fi
16614rm -f core conftest.err conftest.$ac_objext conftest.beam \
16615    conftest$ac_exeext conftest.$ac_ext ;;
16616esac
16617fi
16618
16619
16620		CFLAGS="$xorg_testset_save_CFLAGS"
16621
16622		eval supported=\$$cacheid
16623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16624printf "%s\n" "$supported" >&6; }
16625		if test "$supported" = "yes" ; then
16626			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16627			found="yes"
16628		fi
16629	fi
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645xorg_testset_save_CFLAGS="$CFLAGS"
16646
16647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16652then :
16653  printf %s "(cached) " >&6
16654else case e in #(
16655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h.  */
16657int i;
16658_ACEOF
16659if ac_fn_c_try_compile "$LINENO"
16660then :
16661  xorg_cv_cc_flag_unknown_warning_option=yes
16662else case e in #(
16663  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16664esac
16665fi
16666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16667esac
16668fi
16669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16672	CFLAGS="$xorg_testset_save_CFLAGS"
16673fi
16674
16675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678	fi
16679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16682if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16683then :
16684  printf %s "(cached) " >&6
16685else case e in #(
16686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h.  */
16688int i;
16689_ACEOF
16690if ac_fn_c_try_compile "$LINENO"
16691then :
16692  xorg_cv_cc_flag_unused_command_line_argument=yes
16693else case e in #(
16694  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16695esac
16696fi
16697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16698esac
16699fi
16700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16703	CFLAGS="$xorg_testset_save_CFLAGS"
16704fi
16705
16706found="no"
16707
16708	if test $found = "no" ; then
16709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711		fi
16712
16713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715		fi
16716
16717		CFLAGS="$CFLAGS -Werror=missing-braces"
16718
16719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16720printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16721		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16722		if eval test \${$cacheid+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;
16729int
16730main (void)
16731{
16732
16733  ;
16734  return 0;
16735}
16736_ACEOF
16737if ac_fn_c_try_link "$LINENO"
16738then :
16739  eval $cacheid=yes
16740else case e in #(
16741  e) eval $cacheid=no ;;
16742esac
16743fi
16744rm -f core conftest.err conftest.$ac_objext conftest.beam \
16745    conftest$ac_exeext conftest.$ac_ext ;;
16746esac
16747fi
16748
16749
16750		CFLAGS="$xorg_testset_save_CFLAGS"
16751
16752		eval supported=\$$cacheid
16753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16754printf "%s\n" "$supported" >&6; }
16755		if test "$supported" = "yes" ; then
16756			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16757			found="yes"
16758		fi
16759	fi
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775xorg_testset_save_CFLAGS="$CFLAGS"
16776
16777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16782then :
16783  printf %s "(cached) " >&6
16784else case e in #(
16785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786/* end confdefs.h.  */
16787int i;
16788_ACEOF
16789if ac_fn_c_try_compile "$LINENO"
16790then :
16791  xorg_cv_cc_flag_unknown_warning_option=yes
16792else case e in #(
16793  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16794esac
16795fi
16796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16797esac
16798fi
16799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16802	CFLAGS="$xorg_testset_save_CFLAGS"
16803fi
16804
16805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16808	fi
16809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16813then :
16814  printf %s "(cached) " >&6
16815else case e in #(
16816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h.  */
16818int i;
16819_ACEOF
16820if ac_fn_c_try_compile "$LINENO"
16821then :
16822  xorg_cv_cc_flag_unused_command_line_argument=yes
16823else case e in #(
16824  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16825esac
16826fi
16827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16828esac
16829fi
16830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16833	CFLAGS="$xorg_testset_save_CFLAGS"
16834fi
16835
16836found="no"
16837
16838	if test $found = "no" ; then
16839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841		fi
16842
16843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16845		fi
16846
16847		CFLAGS="$CFLAGS -Werror=sequence-point"
16848
16849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16850printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16851		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16852		if eval test \${$cacheid+y}
16853then :
16854  printf %s "(cached) " >&6
16855else case e in #(
16856  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857/* end confdefs.h.  */
16858int i;
16859int
16860main (void)
16861{
16862
16863  ;
16864  return 0;
16865}
16866_ACEOF
16867if ac_fn_c_try_link "$LINENO"
16868then :
16869  eval $cacheid=yes
16870else case e in #(
16871  e) eval $cacheid=no ;;
16872esac
16873fi
16874rm -f core conftest.err conftest.$ac_objext conftest.beam \
16875    conftest$ac_exeext conftest.$ac_ext ;;
16876esac
16877fi
16878
16879
16880		CFLAGS="$xorg_testset_save_CFLAGS"
16881
16882		eval supported=\$$cacheid
16883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884printf "%s\n" "$supported" >&6; }
16885		if test "$supported" = "yes" ; then
16886			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16887			found="yes"
16888		fi
16889	fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905xorg_testset_save_CFLAGS="$CFLAGS"
16906
16907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16912then :
16913  printf %s "(cached) " >&6
16914else case e in #(
16915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h.  */
16917int i;
16918_ACEOF
16919if ac_fn_c_try_compile "$LINENO"
16920then :
16921  xorg_cv_cc_flag_unknown_warning_option=yes
16922else case e in #(
16923  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16924esac
16925fi
16926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16927esac
16928fi
16929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16932	CFLAGS="$xorg_testset_save_CFLAGS"
16933fi
16934
16935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16938	fi
16939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16942if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16943then :
16944  printf %s "(cached) " >&6
16945else case e in #(
16946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947/* end confdefs.h.  */
16948int i;
16949_ACEOF
16950if ac_fn_c_try_compile "$LINENO"
16951then :
16952  xorg_cv_cc_flag_unused_command_line_argument=yes
16953else case e in #(
16954  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16955esac
16956fi
16957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16958esac
16959fi
16960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16963	CFLAGS="$xorg_testset_save_CFLAGS"
16964fi
16965
16966found="no"
16967
16968	if test $found = "no" ; then
16969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971		fi
16972
16973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16975		fi
16976
16977		CFLAGS="$CFLAGS -Werror=return-type"
16978
16979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16980printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16981		cacheid=xorg_cv_cc_flag__Werror_return_type
16982		if eval test \${$cacheid+y}
16983then :
16984  printf %s "(cached) " >&6
16985else case e in #(
16986  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987/* end confdefs.h.  */
16988int i;
16989int
16990main (void)
16991{
16992
16993  ;
16994  return 0;
16995}
16996_ACEOF
16997if ac_fn_c_try_link "$LINENO"
16998then :
16999  eval $cacheid=yes
17000else case e in #(
17001  e) eval $cacheid=no ;;
17002esac
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.beam \
17005    conftest$ac_exeext conftest.$ac_ext ;;
17006esac
17007fi
17008
17009
17010		CFLAGS="$xorg_testset_save_CFLAGS"
17011
17012		eval supported=\$$cacheid
17013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17014printf "%s\n" "$supported" >&6; }
17015		if test "$supported" = "yes" ; then
17016			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17017			found="yes"
17018		fi
17019	fi
17020
17021	if test $found = "no" ; then
17022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024		fi
17025
17026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17028		fi
17029
17030		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17031
17032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17033printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17034		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17035		if eval test \${$cacheid+y}
17036then :
17037  printf %s "(cached) " >&6
17038else case e in #(
17039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040/* end confdefs.h.  */
17041int i;
17042int
17043main (void)
17044{
17045
17046  ;
17047  return 0;
17048}
17049_ACEOF
17050if ac_fn_c_try_link "$LINENO"
17051then :
17052  eval $cacheid=yes
17053else case e in #(
17054  e) eval $cacheid=no ;;
17055esac
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.beam \
17058    conftest$ac_exeext conftest.$ac_ext ;;
17059esac
17060fi
17061
17062
17063		CFLAGS="$xorg_testset_save_CFLAGS"
17064
17065		eval supported=\$$cacheid
17066		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17067printf "%s\n" "$supported" >&6; }
17068		if test "$supported" = "yes" ; then
17069			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17070			found="yes"
17071		fi
17072	fi
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088xorg_testset_save_CFLAGS="$CFLAGS"
17089
17090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17094if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17095then :
17096  printf %s "(cached) " >&6
17097else case e in #(
17098  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h.  */
17100int i;
17101_ACEOF
17102if ac_fn_c_try_compile "$LINENO"
17103then :
17104  xorg_cv_cc_flag_unknown_warning_option=yes
17105else case e in #(
17106  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17107esac
17108fi
17109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17110esac
17111fi
17112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17115	CFLAGS="$xorg_testset_save_CFLAGS"
17116fi
17117
17118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121	fi
17122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17126then :
17127  printf %s "(cached) " >&6
17128else case e in #(
17129  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130/* end confdefs.h.  */
17131int i;
17132_ACEOF
17133if ac_fn_c_try_compile "$LINENO"
17134then :
17135  xorg_cv_cc_flag_unused_command_line_argument=yes
17136else case e in #(
17137  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17138esac
17139fi
17140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17141esac
17142fi
17143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17146	CFLAGS="$xorg_testset_save_CFLAGS"
17147fi
17148
17149found="no"
17150
17151	if test $found = "no" ; then
17152		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17154		fi
17155
17156		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17158		fi
17159
17160		CFLAGS="$CFLAGS -Werror=trigraphs"
17161
17162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17163printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17164		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17165		if eval test \${$cacheid+y}
17166then :
17167  printf %s "(cached) " >&6
17168else case e in #(
17169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170/* end confdefs.h.  */
17171int i;
17172int
17173main (void)
17174{
17175
17176  ;
17177  return 0;
17178}
17179_ACEOF
17180if ac_fn_c_try_link "$LINENO"
17181then :
17182  eval $cacheid=yes
17183else case e in #(
17184  e) eval $cacheid=no ;;
17185esac
17186fi
17187rm -f core conftest.err conftest.$ac_objext conftest.beam \
17188    conftest$ac_exeext conftest.$ac_ext ;;
17189esac
17190fi
17191
17192
17193		CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195		eval supported=\$$cacheid
17196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197printf "%s\n" "$supported" >&6; }
17198		if test "$supported" = "yes" ; then
17199			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17200			found="yes"
17201		fi
17202	fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225then :
17226  printf %s "(cached) " >&6
17227else case e in #(
17228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230int i;
17231_ACEOF
17232if ac_fn_c_try_compile "$LINENO"
17233then :
17234  xorg_cv_cc_flag_unknown_warning_option=yes
17235else case e in #(
17236  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17237esac
17238fi
17239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17240esac
17241fi
17242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17245	CFLAGS="$xorg_testset_save_CFLAGS"
17246fi
17247
17248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251	fi
17252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17256then :
17257  printf %s "(cached) " >&6
17258else case e in #(
17259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260/* end confdefs.h.  */
17261int i;
17262_ACEOF
17263if ac_fn_c_try_compile "$LINENO"
17264then :
17265  xorg_cv_cc_flag_unused_command_line_argument=yes
17266else case e in #(
17267  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17268esac
17269fi
17270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17271esac
17272fi
17273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17276	CFLAGS="$xorg_testset_save_CFLAGS"
17277fi
17278
17279found="no"
17280
17281	if test $found = "no" ; then
17282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284		fi
17285
17286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17288		fi
17289
17290		CFLAGS="$CFLAGS -Werror=array-bounds"
17291
17292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17293printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17294		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17295		if eval test \${$cacheid+y}
17296then :
17297  printf %s "(cached) " >&6
17298else case e in #(
17299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300/* end confdefs.h.  */
17301int i;
17302int
17303main (void)
17304{
17305
17306  ;
17307  return 0;
17308}
17309_ACEOF
17310if ac_fn_c_try_link "$LINENO"
17311then :
17312  eval $cacheid=yes
17313else case e in #(
17314  e) eval $cacheid=no ;;
17315esac
17316fi
17317rm -f core conftest.err conftest.$ac_objext conftest.beam \
17318    conftest$ac_exeext conftest.$ac_ext ;;
17319esac
17320fi
17321
17322
17323		CFLAGS="$xorg_testset_save_CFLAGS"
17324
17325		eval supported=\$$cacheid
17326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17327printf "%s\n" "$supported" >&6; }
17328		if test "$supported" = "yes" ; then
17329			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17330			found="yes"
17331		fi
17332	fi
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348xorg_testset_save_CFLAGS="$CFLAGS"
17349
17350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17355then :
17356  printf %s "(cached) " >&6
17357else case e in #(
17358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h.  */
17360int i;
17361_ACEOF
17362if ac_fn_c_try_compile "$LINENO"
17363then :
17364  xorg_cv_cc_flag_unknown_warning_option=yes
17365else case e in #(
17366  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17367esac
17368fi
17369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17370esac
17371fi
17372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17375	CFLAGS="$xorg_testset_save_CFLAGS"
17376fi
17377
17378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381	fi
17382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17385if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17386then :
17387  printf %s "(cached) " >&6
17388else case e in #(
17389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390/* end confdefs.h.  */
17391int i;
17392_ACEOF
17393if ac_fn_c_try_compile "$LINENO"
17394then :
17395  xorg_cv_cc_flag_unused_command_line_argument=yes
17396else case e in #(
17397  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17398esac
17399fi
17400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17401esac
17402fi
17403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17406	CFLAGS="$xorg_testset_save_CFLAGS"
17407fi
17408
17409found="no"
17410
17411	if test $found = "no" ; then
17412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17414		fi
17415
17416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17418		fi
17419
17420		CFLAGS="$CFLAGS -Werror=write-strings"
17421
17422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17423printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17424		cacheid=xorg_cv_cc_flag__Werror_write_strings
17425		if eval test \${$cacheid+y}
17426then :
17427  printf %s "(cached) " >&6
17428else case e in #(
17429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430/* end confdefs.h.  */
17431int i;
17432int
17433main (void)
17434{
17435
17436  ;
17437  return 0;
17438}
17439_ACEOF
17440if ac_fn_c_try_link "$LINENO"
17441then :
17442  eval $cacheid=yes
17443else case e in #(
17444  e) eval $cacheid=no ;;
17445esac
17446fi
17447rm -f core conftest.err conftest.$ac_objext conftest.beam \
17448    conftest$ac_exeext conftest.$ac_ext ;;
17449esac
17450fi
17451
17452
17453		CFLAGS="$xorg_testset_save_CFLAGS"
17454
17455		eval supported=\$$cacheid
17456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17457printf "%s\n" "$supported" >&6; }
17458		if test "$supported" = "yes" ; then
17459			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17460			found="yes"
17461		fi
17462	fi
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478xorg_testset_save_CFLAGS="$CFLAGS"
17479
17480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17485then :
17486  printf %s "(cached) " >&6
17487else case e in #(
17488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489/* end confdefs.h.  */
17490int i;
17491_ACEOF
17492if ac_fn_c_try_compile "$LINENO"
17493then :
17494  xorg_cv_cc_flag_unknown_warning_option=yes
17495else case e in #(
17496  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17497esac
17498fi
17499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17500esac
17501fi
17502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17504	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17505	CFLAGS="$xorg_testset_save_CFLAGS"
17506fi
17507
17508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17509	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17510		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17511	fi
17512	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17513	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17515if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17516then :
17517  printf %s "(cached) " >&6
17518else case e in #(
17519  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520/* end confdefs.h.  */
17521int i;
17522_ACEOF
17523if ac_fn_c_try_compile "$LINENO"
17524then :
17525  xorg_cv_cc_flag_unused_command_line_argument=yes
17526else case e in #(
17527  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17528esac
17529fi
17530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17531esac
17532fi
17533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17536	CFLAGS="$xorg_testset_save_CFLAGS"
17537fi
17538
17539found="no"
17540
17541	if test $found = "no" ; then
17542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17544		fi
17545
17546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17548		fi
17549
17550		CFLAGS="$CFLAGS -Werror=address"
17551
17552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17553printf %s "checking if $CC supports -Werror=address... " >&6; }
17554		cacheid=xorg_cv_cc_flag__Werror_address
17555		if eval test \${$cacheid+y}
17556then :
17557  printf %s "(cached) " >&6
17558else case e in #(
17559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560/* end confdefs.h.  */
17561int i;
17562int
17563main (void)
17564{
17565
17566  ;
17567  return 0;
17568}
17569_ACEOF
17570if ac_fn_c_try_link "$LINENO"
17571then :
17572  eval $cacheid=yes
17573else case e in #(
17574  e) eval $cacheid=no ;;
17575esac
17576fi
17577rm -f core conftest.err conftest.$ac_objext conftest.beam \
17578    conftest$ac_exeext conftest.$ac_ext ;;
17579esac
17580fi
17581
17582
17583		CFLAGS="$xorg_testset_save_CFLAGS"
17584
17585		eval supported=\$$cacheid
17586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17587printf "%s\n" "$supported" >&6; }
17588		if test "$supported" = "yes" ; then
17589			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17590			found="yes"
17591		fi
17592	fi
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608xorg_testset_save_CFLAGS="$CFLAGS"
17609
17610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17615then :
17616  printf %s "(cached) " >&6
17617else case e in #(
17618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620int i;
17621_ACEOF
17622if ac_fn_c_try_compile "$LINENO"
17623then :
17624  xorg_cv_cc_flag_unknown_warning_option=yes
17625else case e in #(
17626  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17627esac
17628fi
17629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17630esac
17631fi
17632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17635	CFLAGS="$xorg_testset_save_CFLAGS"
17636fi
17637
17638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17641	fi
17642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17646then :
17647  printf %s "(cached) " >&6
17648else case e in #(
17649  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650/* end confdefs.h.  */
17651int i;
17652_ACEOF
17653if ac_fn_c_try_compile "$LINENO"
17654then :
17655  xorg_cv_cc_flag_unused_command_line_argument=yes
17656else case e in #(
17657  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17658esac
17659fi
17660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17661esac
17662fi
17663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17666	CFLAGS="$xorg_testset_save_CFLAGS"
17667fi
17668
17669found="no"
17670
17671	if test $found = "no" ; then
17672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674		fi
17675
17676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17678		fi
17679
17680		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17681
17682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17683printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17684		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17685		if eval test \${$cacheid+y}
17686then :
17687  printf %s "(cached) " >&6
17688else case e in #(
17689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690/* end confdefs.h.  */
17691int i;
17692int
17693main (void)
17694{
17695
17696  ;
17697  return 0;
17698}
17699_ACEOF
17700if ac_fn_c_try_link "$LINENO"
17701then :
17702  eval $cacheid=yes
17703else case e in #(
17704  e) eval $cacheid=no ;;
17705esac
17706fi
17707rm -f core conftest.err conftest.$ac_objext conftest.beam \
17708    conftest$ac_exeext conftest.$ac_ext ;;
17709esac
17710fi
17711
17712
17713		CFLAGS="$xorg_testset_save_CFLAGS"
17714
17715		eval supported=\$$cacheid
17716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17717printf "%s\n" "$supported" >&6; }
17718		if test "$supported" = "yes" ; then
17719			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17720			found="yes"
17721		fi
17722	fi
17723
17724	if test $found = "no" ; then
17725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727		fi
17728
17729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17731		fi
17732
17733		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17734
17735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17736printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17737		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17738		if eval test \${$cacheid+y}
17739then :
17740  printf %s "(cached) " >&6
17741else case e in #(
17742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h.  */
17744int i;
17745int
17746main (void)
17747{
17748
17749  ;
17750  return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_link "$LINENO"
17754then :
17755  eval $cacheid=yes
17756else case e in #(
17757  e) eval $cacheid=no ;;
17758esac
17759fi
17760rm -f core conftest.err conftest.$ac_objext conftest.beam \
17761    conftest$ac_exeext conftest.$ac_ext ;;
17762esac
17763fi
17764
17765
17766		CFLAGS="$xorg_testset_save_CFLAGS"
17767
17768		eval supported=\$$cacheid
17769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17770printf "%s\n" "$supported" >&6; }
17771		if test "$supported" = "yes" ; then
17772			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17773			found="yes"
17774		fi
17775	fi
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791xorg_testset_save_CFLAGS="$CFLAGS"
17792
17793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17798then :
17799  printf %s "(cached) " >&6
17800else case e in #(
17801  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802/* end confdefs.h.  */
17803int i;
17804_ACEOF
17805if ac_fn_c_try_compile "$LINENO"
17806then :
17807  xorg_cv_cc_flag_unknown_warning_option=yes
17808else case e in #(
17809  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17810esac
17811fi
17812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17813esac
17814fi
17815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17818	CFLAGS="$xorg_testset_save_CFLAGS"
17819fi
17820
17821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824	fi
17825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17828if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17829then :
17830  printf %s "(cached) " >&6
17831else case e in #(
17832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834int i;
17835_ACEOF
17836if ac_fn_c_try_compile "$LINENO"
17837then :
17838  xorg_cv_cc_flag_unused_command_line_argument=yes
17839else case e in #(
17840  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17841esac
17842fi
17843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17844esac
17845fi
17846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17849	CFLAGS="$xorg_testset_save_CFLAGS"
17850fi
17851
17852found="no"
17853
17854	if test $found = "no" ; then
17855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857		fi
17858
17859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17861		fi
17862
17863		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17864
17865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17866printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17867		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17868		if eval test \${$cacheid+y}
17869then :
17870  printf %s "(cached) " >&6
17871else case e in #(
17872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873/* end confdefs.h.  */
17874int i;
17875int
17876main (void)
17877{
17878
17879  ;
17880  return 0;
17881}
17882_ACEOF
17883if ac_fn_c_try_link "$LINENO"
17884then :
17885  eval $cacheid=yes
17886else case e in #(
17887  e) eval $cacheid=no ;;
17888esac
17889fi
17890rm -f core conftest.err conftest.$ac_objext conftest.beam \
17891    conftest$ac_exeext conftest.$ac_ext ;;
17892esac
17893fi
17894
17895
17896		CFLAGS="$xorg_testset_save_CFLAGS"
17897
17898		eval supported=\$$cacheid
17899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17900printf "%s\n" "$supported" >&6; }
17901		if test "$supported" = "yes" ; then
17902			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17903			found="yes"
17904		fi
17905	fi
17906
17907 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17908else
17909{ 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
17910printf "%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;}
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924xorg_testset_save_CFLAGS="$CFLAGS"
17925
17926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17930if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17931then :
17932  printf %s "(cached) " >&6
17933else case e in #(
17934  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h.  */
17936int i;
17937_ACEOF
17938if ac_fn_c_try_compile "$LINENO"
17939then :
17940  xorg_cv_cc_flag_unknown_warning_option=yes
17941else case e in #(
17942  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17943esac
17944fi
17945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17946esac
17947fi
17948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17951	CFLAGS="$xorg_testset_save_CFLAGS"
17952fi
17953
17954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17957	fi
17958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17962then :
17963  printf %s "(cached) " >&6
17964else case e in #(
17965  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966/* end confdefs.h.  */
17967int i;
17968_ACEOF
17969if ac_fn_c_try_compile "$LINENO"
17970then :
17971  xorg_cv_cc_flag_unused_command_line_argument=yes
17972else case e in #(
17973  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17974esac
17975fi
17976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17977esac
17978fi
17979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17982	CFLAGS="$xorg_testset_save_CFLAGS"
17983fi
17984
17985found="no"
17986
17987	if test $found = "no" ; then
17988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990		fi
17991
17992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17994		fi
17995
17996		CFLAGS="$CFLAGS -Wimplicit"
17997
17998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17999printf %s "checking if $CC supports -Wimplicit... " >&6; }
18000		cacheid=xorg_cv_cc_flag__Wimplicit
18001		if eval test \${$cacheid+y}
18002then :
18003  printf %s "(cached) " >&6
18004else case e in #(
18005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007int i;
18008int
18009main (void)
18010{
18011
18012  ;
18013  return 0;
18014}
18015_ACEOF
18016if ac_fn_c_try_link "$LINENO"
18017then :
18018  eval $cacheid=yes
18019else case e in #(
18020  e) eval $cacheid=no ;;
18021esac
18022fi
18023rm -f core conftest.err conftest.$ac_objext conftest.beam \
18024    conftest$ac_exeext conftest.$ac_ext ;;
18025esac
18026fi
18027
18028
18029		CFLAGS="$xorg_testset_save_CFLAGS"
18030
18031		eval supported=\$$cacheid
18032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18033printf "%s\n" "$supported" >&6; }
18034		if test "$supported" = "yes" ; then
18035			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18036			found="yes"
18037		fi
18038	fi
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054xorg_testset_save_CFLAGS="$CFLAGS"
18055
18056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18060if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18061then :
18062  printf %s "(cached) " >&6
18063else case e in #(
18064  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065/* end confdefs.h.  */
18066int i;
18067_ACEOF
18068if ac_fn_c_try_compile "$LINENO"
18069then :
18070  xorg_cv_cc_flag_unknown_warning_option=yes
18071else case e in #(
18072  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18073esac
18074fi
18075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18076esac
18077fi
18078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18081	CFLAGS="$xorg_testset_save_CFLAGS"
18082fi
18083
18084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18087	fi
18088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18091if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18092then :
18093  printf %s "(cached) " >&6
18094else case e in #(
18095  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096/* end confdefs.h.  */
18097int i;
18098_ACEOF
18099if ac_fn_c_try_compile "$LINENO"
18100then :
18101  xorg_cv_cc_flag_unused_command_line_argument=yes
18102else case e in #(
18103  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18104esac
18105fi
18106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18107esac
18108fi
18109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18112	CFLAGS="$xorg_testset_save_CFLAGS"
18113fi
18114
18115found="no"
18116
18117	if test $found = "no" ; then
18118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18120		fi
18121
18122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18124		fi
18125
18126		CFLAGS="$CFLAGS -Wnonnull"
18127
18128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18129printf %s "checking if $CC supports -Wnonnull... " >&6; }
18130		cacheid=xorg_cv_cc_flag__Wnonnull
18131		if eval test \${$cacheid+y}
18132then :
18133  printf %s "(cached) " >&6
18134else case e in #(
18135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136/* end confdefs.h.  */
18137int i;
18138int
18139main (void)
18140{
18141
18142  ;
18143  return 0;
18144}
18145_ACEOF
18146if ac_fn_c_try_link "$LINENO"
18147then :
18148  eval $cacheid=yes
18149else case e in #(
18150  e) eval $cacheid=no ;;
18151esac
18152fi
18153rm -f core conftest.err conftest.$ac_objext conftest.beam \
18154    conftest$ac_exeext conftest.$ac_ext ;;
18155esac
18156fi
18157
18158
18159		CFLAGS="$xorg_testset_save_CFLAGS"
18160
18161		eval supported=\$$cacheid
18162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18163printf "%s\n" "$supported" >&6; }
18164		if test "$supported" = "yes" ; then
18165			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18166			found="yes"
18167		fi
18168	fi
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184xorg_testset_save_CFLAGS="$CFLAGS"
18185
18186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18190if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18191then :
18192  printf %s "(cached) " >&6
18193else case e in #(
18194  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195/* end confdefs.h.  */
18196int i;
18197_ACEOF
18198if ac_fn_c_try_compile "$LINENO"
18199then :
18200  xorg_cv_cc_flag_unknown_warning_option=yes
18201else case e in #(
18202  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18203esac
18204fi
18205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18206esac
18207fi
18208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18211	CFLAGS="$xorg_testset_save_CFLAGS"
18212fi
18213
18214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18217	fi
18218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18221if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18222then :
18223  printf %s "(cached) " >&6
18224else case e in #(
18225  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227int i;
18228_ACEOF
18229if ac_fn_c_try_compile "$LINENO"
18230then :
18231  xorg_cv_cc_flag_unused_command_line_argument=yes
18232else case e in #(
18233  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18234esac
18235fi
18236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18237esac
18238fi
18239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18242	CFLAGS="$xorg_testset_save_CFLAGS"
18243fi
18244
18245found="no"
18246
18247	if test $found = "no" ; then
18248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18250		fi
18251
18252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18254		fi
18255
18256		CFLAGS="$CFLAGS -Winit-self"
18257
18258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18259printf %s "checking if $CC supports -Winit-self... " >&6; }
18260		cacheid=xorg_cv_cc_flag__Winit_self
18261		if eval test \${$cacheid+y}
18262then :
18263  printf %s "(cached) " >&6
18264else case e in #(
18265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266/* end confdefs.h.  */
18267int i;
18268int
18269main (void)
18270{
18271
18272  ;
18273  return 0;
18274}
18275_ACEOF
18276if ac_fn_c_try_link "$LINENO"
18277then :
18278  eval $cacheid=yes
18279else case e in #(
18280  e) eval $cacheid=no ;;
18281esac
18282fi
18283rm -f core conftest.err conftest.$ac_objext conftest.beam \
18284    conftest$ac_exeext conftest.$ac_ext ;;
18285esac
18286fi
18287
18288
18289		CFLAGS="$xorg_testset_save_CFLAGS"
18290
18291		eval supported=\$$cacheid
18292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18293printf "%s\n" "$supported" >&6; }
18294		if test "$supported" = "yes" ; then
18295			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18296			found="yes"
18297		fi
18298	fi
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314xorg_testset_save_CFLAGS="$CFLAGS"
18315
18316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18321then :
18322  printf %s "(cached) " >&6
18323else case e in #(
18324  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325/* end confdefs.h.  */
18326int i;
18327_ACEOF
18328if ac_fn_c_try_compile "$LINENO"
18329then :
18330  xorg_cv_cc_flag_unknown_warning_option=yes
18331else case e in #(
18332  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18333esac
18334fi
18335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18336esac
18337fi
18338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18341	CFLAGS="$xorg_testset_save_CFLAGS"
18342fi
18343
18344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18347	fi
18348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18352then :
18353  printf %s "(cached) " >&6
18354else case e in #(
18355  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357int i;
18358_ACEOF
18359if ac_fn_c_try_compile "$LINENO"
18360then :
18361  xorg_cv_cc_flag_unused_command_line_argument=yes
18362else case e in #(
18363  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18364esac
18365fi
18366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18367esac
18368fi
18369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18372	CFLAGS="$xorg_testset_save_CFLAGS"
18373fi
18374
18375found="no"
18376
18377	if test $found = "no" ; then
18378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18380		fi
18381
18382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18384		fi
18385
18386		CFLAGS="$CFLAGS -Wmain"
18387
18388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18389printf %s "checking if $CC supports -Wmain... " >&6; }
18390		cacheid=xorg_cv_cc_flag__Wmain
18391		if eval test \${$cacheid+y}
18392then :
18393  printf %s "(cached) " >&6
18394else case e in #(
18395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396/* end confdefs.h.  */
18397int i;
18398int
18399main (void)
18400{
18401
18402  ;
18403  return 0;
18404}
18405_ACEOF
18406if ac_fn_c_try_link "$LINENO"
18407then :
18408  eval $cacheid=yes
18409else case e in #(
18410  e) eval $cacheid=no ;;
18411esac
18412fi
18413rm -f core conftest.err conftest.$ac_objext conftest.beam \
18414    conftest$ac_exeext conftest.$ac_ext ;;
18415esac
18416fi
18417
18418
18419		CFLAGS="$xorg_testset_save_CFLAGS"
18420
18421		eval supported=\$$cacheid
18422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18423printf "%s\n" "$supported" >&6; }
18424		if test "$supported" = "yes" ; then
18425			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18426			found="yes"
18427		fi
18428	fi
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444xorg_testset_save_CFLAGS="$CFLAGS"
18445
18446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18451then :
18452  printf %s "(cached) " >&6
18453else case e in #(
18454  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455/* end confdefs.h.  */
18456int i;
18457_ACEOF
18458if ac_fn_c_try_compile "$LINENO"
18459then :
18460  xorg_cv_cc_flag_unknown_warning_option=yes
18461else case e in #(
18462  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18463esac
18464fi
18465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18466esac
18467fi
18468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18471	CFLAGS="$xorg_testset_save_CFLAGS"
18472fi
18473
18474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477	fi
18478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18482then :
18483  printf %s "(cached) " >&6
18484else case e in #(
18485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486/* end confdefs.h.  */
18487int i;
18488_ACEOF
18489if ac_fn_c_try_compile "$LINENO"
18490then :
18491  xorg_cv_cc_flag_unused_command_line_argument=yes
18492else case e in #(
18493  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18494esac
18495fi
18496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18497esac
18498fi
18499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18502	CFLAGS="$xorg_testset_save_CFLAGS"
18503fi
18504
18505found="no"
18506
18507	if test $found = "no" ; then
18508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18510		fi
18511
18512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18514		fi
18515
18516		CFLAGS="$CFLAGS -Wmissing-braces"
18517
18518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18519printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18520		cacheid=xorg_cv_cc_flag__Wmissing_braces
18521		if eval test \${$cacheid+y}
18522then :
18523  printf %s "(cached) " >&6
18524else case e in #(
18525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526/* end confdefs.h.  */
18527int i;
18528int
18529main (void)
18530{
18531
18532  ;
18533  return 0;
18534}
18535_ACEOF
18536if ac_fn_c_try_link "$LINENO"
18537then :
18538  eval $cacheid=yes
18539else case e in #(
18540  e) eval $cacheid=no ;;
18541esac
18542fi
18543rm -f core conftest.err conftest.$ac_objext conftest.beam \
18544    conftest$ac_exeext conftest.$ac_ext ;;
18545esac
18546fi
18547
18548
18549		CFLAGS="$xorg_testset_save_CFLAGS"
18550
18551		eval supported=\$$cacheid
18552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18553printf "%s\n" "$supported" >&6; }
18554		if test "$supported" = "yes" ; then
18555			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18556			found="yes"
18557		fi
18558	fi
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574xorg_testset_save_CFLAGS="$CFLAGS"
18575
18576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18581then :
18582  printf %s "(cached) " >&6
18583else case e in #(
18584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585/* end confdefs.h.  */
18586int i;
18587_ACEOF
18588if ac_fn_c_try_compile "$LINENO"
18589then :
18590  xorg_cv_cc_flag_unknown_warning_option=yes
18591else case e in #(
18592  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18593esac
18594fi
18595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18596esac
18597fi
18598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18601	CFLAGS="$xorg_testset_save_CFLAGS"
18602fi
18603
18604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18607	fi
18608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18612then :
18613  printf %s "(cached) " >&6
18614else case e in #(
18615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616/* end confdefs.h.  */
18617int i;
18618_ACEOF
18619if ac_fn_c_try_compile "$LINENO"
18620then :
18621  xorg_cv_cc_flag_unused_command_line_argument=yes
18622else case e in #(
18623  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18624esac
18625fi
18626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18627esac
18628fi
18629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18632	CFLAGS="$xorg_testset_save_CFLAGS"
18633fi
18634
18635found="no"
18636
18637	if test $found = "no" ; then
18638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18640		fi
18641
18642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18644		fi
18645
18646		CFLAGS="$CFLAGS -Wsequence-point"
18647
18648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18649printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18650		cacheid=xorg_cv_cc_flag__Wsequence_point
18651		if eval test \${$cacheid+y}
18652then :
18653  printf %s "(cached) " >&6
18654else case e in #(
18655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656/* end confdefs.h.  */
18657int i;
18658int
18659main (void)
18660{
18661
18662  ;
18663  return 0;
18664}
18665_ACEOF
18666if ac_fn_c_try_link "$LINENO"
18667then :
18668  eval $cacheid=yes
18669else case e in #(
18670  e) eval $cacheid=no ;;
18671esac
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.beam \
18674    conftest$ac_exeext conftest.$ac_ext ;;
18675esac
18676fi
18677
18678
18679		CFLAGS="$xorg_testset_save_CFLAGS"
18680
18681		eval supported=\$$cacheid
18682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18683printf "%s\n" "$supported" >&6; }
18684		if test "$supported" = "yes" ; then
18685			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18686			found="yes"
18687		fi
18688	fi
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704xorg_testset_save_CFLAGS="$CFLAGS"
18705
18706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18711then :
18712  printf %s "(cached) " >&6
18713else case e in #(
18714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716int i;
18717_ACEOF
18718if ac_fn_c_try_compile "$LINENO"
18719then :
18720  xorg_cv_cc_flag_unknown_warning_option=yes
18721else case e in #(
18722  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18723esac
18724fi
18725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18726esac
18727fi
18728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18731	CFLAGS="$xorg_testset_save_CFLAGS"
18732fi
18733
18734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18737	fi
18738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18742then :
18743  printf %s "(cached) " >&6
18744else case e in #(
18745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746/* end confdefs.h.  */
18747int i;
18748_ACEOF
18749if ac_fn_c_try_compile "$LINENO"
18750then :
18751  xorg_cv_cc_flag_unused_command_line_argument=yes
18752else case e in #(
18753  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18754esac
18755fi
18756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18757esac
18758fi
18759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18762	CFLAGS="$xorg_testset_save_CFLAGS"
18763fi
18764
18765found="no"
18766
18767	if test $found = "no" ; then
18768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18770		fi
18771
18772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18774		fi
18775
18776		CFLAGS="$CFLAGS -Wreturn-type"
18777
18778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18779printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18780		cacheid=xorg_cv_cc_flag__Wreturn_type
18781		if eval test \${$cacheid+y}
18782then :
18783  printf %s "(cached) " >&6
18784else case e in #(
18785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786/* end confdefs.h.  */
18787int i;
18788int
18789main (void)
18790{
18791
18792  ;
18793  return 0;
18794}
18795_ACEOF
18796if ac_fn_c_try_link "$LINENO"
18797then :
18798  eval $cacheid=yes
18799else case e in #(
18800  e) eval $cacheid=no ;;
18801esac
18802fi
18803rm -f core conftest.err conftest.$ac_objext conftest.beam \
18804    conftest$ac_exeext conftest.$ac_ext ;;
18805esac
18806fi
18807
18808
18809		CFLAGS="$xorg_testset_save_CFLAGS"
18810
18811		eval supported=\$$cacheid
18812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18813printf "%s\n" "$supported" >&6; }
18814		if test "$supported" = "yes" ; then
18815			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18816			found="yes"
18817		fi
18818	fi
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834xorg_testset_save_CFLAGS="$CFLAGS"
18835
18836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18841then :
18842  printf %s "(cached) " >&6
18843else case e in #(
18844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845/* end confdefs.h.  */
18846int i;
18847_ACEOF
18848if ac_fn_c_try_compile "$LINENO"
18849then :
18850  xorg_cv_cc_flag_unknown_warning_option=yes
18851else case e in #(
18852  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18853esac
18854fi
18855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18856esac
18857fi
18858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18861	CFLAGS="$xorg_testset_save_CFLAGS"
18862fi
18863
18864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18867	fi
18868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18872then :
18873  printf %s "(cached) " >&6
18874else case e in #(
18875  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h.  */
18877int i;
18878_ACEOF
18879if ac_fn_c_try_compile "$LINENO"
18880then :
18881  xorg_cv_cc_flag_unused_command_line_argument=yes
18882else case e in #(
18883  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18884esac
18885fi
18886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18887esac
18888fi
18889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18892	CFLAGS="$xorg_testset_save_CFLAGS"
18893fi
18894
18895found="no"
18896
18897	if test $found = "no" ; then
18898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18900		fi
18901
18902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18904		fi
18905
18906		CFLAGS="$CFLAGS -Wtrigraphs"
18907
18908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18909printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18910		cacheid=xorg_cv_cc_flag__Wtrigraphs
18911		if eval test \${$cacheid+y}
18912then :
18913  printf %s "(cached) " >&6
18914else case e in #(
18915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916/* end confdefs.h.  */
18917int i;
18918int
18919main (void)
18920{
18921
18922  ;
18923  return 0;
18924}
18925_ACEOF
18926if ac_fn_c_try_link "$LINENO"
18927then :
18928  eval $cacheid=yes
18929else case e in #(
18930  e) eval $cacheid=no ;;
18931esac
18932fi
18933rm -f core conftest.err conftest.$ac_objext conftest.beam \
18934    conftest$ac_exeext conftest.$ac_ext ;;
18935esac
18936fi
18937
18938
18939		CFLAGS="$xorg_testset_save_CFLAGS"
18940
18941		eval supported=\$$cacheid
18942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18943printf "%s\n" "$supported" >&6; }
18944		if test "$supported" = "yes" ; then
18945			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18946			found="yes"
18947		fi
18948	fi
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964xorg_testset_save_CFLAGS="$CFLAGS"
18965
18966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18971then :
18972  printf %s "(cached) " >&6
18973else case e in #(
18974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975/* end confdefs.h.  */
18976int i;
18977_ACEOF
18978if ac_fn_c_try_compile "$LINENO"
18979then :
18980  xorg_cv_cc_flag_unknown_warning_option=yes
18981else case e in #(
18982  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18983esac
18984fi
18985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18986esac
18987fi
18988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18991	CFLAGS="$xorg_testset_save_CFLAGS"
18992fi
18993
18994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18997	fi
18998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19002then :
19003  printf %s "(cached) " >&6
19004else case e in #(
19005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006/* end confdefs.h.  */
19007int i;
19008_ACEOF
19009if ac_fn_c_try_compile "$LINENO"
19010then :
19011  xorg_cv_cc_flag_unused_command_line_argument=yes
19012else case e in #(
19013  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19014esac
19015fi
19016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19017esac
19018fi
19019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19022	CFLAGS="$xorg_testset_save_CFLAGS"
19023fi
19024
19025found="no"
19026
19027	if test $found = "no" ; then
19028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19030		fi
19031
19032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19034		fi
19035
19036		CFLAGS="$CFLAGS -Warray-bounds"
19037
19038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19039printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19040		cacheid=xorg_cv_cc_flag__Warray_bounds
19041		if eval test \${$cacheid+y}
19042then :
19043  printf %s "(cached) " >&6
19044else case e in #(
19045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046/* end confdefs.h.  */
19047int i;
19048int
19049main (void)
19050{
19051
19052  ;
19053  return 0;
19054}
19055_ACEOF
19056if ac_fn_c_try_link "$LINENO"
19057then :
19058  eval $cacheid=yes
19059else case e in #(
19060  e) eval $cacheid=no ;;
19061esac
19062fi
19063rm -f core conftest.err conftest.$ac_objext conftest.beam \
19064    conftest$ac_exeext conftest.$ac_ext ;;
19065esac
19066fi
19067
19068
19069		CFLAGS="$xorg_testset_save_CFLAGS"
19070
19071		eval supported=\$$cacheid
19072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19073printf "%s\n" "$supported" >&6; }
19074		if test "$supported" = "yes" ; then
19075			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19076			found="yes"
19077		fi
19078	fi
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094xorg_testset_save_CFLAGS="$CFLAGS"
19095
19096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19101then :
19102  printf %s "(cached) " >&6
19103else case e in #(
19104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105/* end confdefs.h.  */
19106int i;
19107_ACEOF
19108if ac_fn_c_try_compile "$LINENO"
19109then :
19110  xorg_cv_cc_flag_unknown_warning_option=yes
19111else case e in #(
19112  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19113esac
19114fi
19115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19116esac
19117fi
19118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19121	CFLAGS="$xorg_testset_save_CFLAGS"
19122fi
19123
19124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19127	fi
19128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19132then :
19133  printf %s "(cached) " >&6
19134else case e in #(
19135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136/* end confdefs.h.  */
19137int i;
19138_ACEOF
19139if ac_fn_c_try_compile "$LINENO"
19140then :
19141  xorg_cv_cc_flag_unused_command_line_argument=yes
19142else case e in #(
19143  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19144esac
19145fi
19146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19147esac
19148fi
19149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19152	CFLAGS="$xorg_testset_save_CFLAGS"
19153fi
19154
19155found="no"
19156
19157	if test $found = "no" ; then
19158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19160		fi
19161
19162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19164		fi
19165
19166		CFLAGS="$CFLAGS -Wwrite-strings"
19167
19168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19169printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19170		cacheid=xorg_cv_cc_flag__Wwrite_strings
19171		if eval test \${$cacheid+y}
19172then :
19173  printf %s "(cached) " >&6
19174else case e in #(
19175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176/* end confdefs.h.  */
19177int i;
19178int
19179main (void)
19180{
19181
19182  ;
19183  return 0;
19184}
19185_ACEOF
19186if ac_fn_c_try_link "$LINENO"
19187then :
19188  eval $cacheid=yes
19189else case e in #(
19190  e) eval $cacheid=no ;;
19191esac
19192fi
19193rm -f core conftest.err conftest.$ac_objext conftest.beam \
19194    conftest$ac_exeext conftest.$ac_ext ;;
19195esac
19196fi
19197
19198
19199		CFLAGS="$xorg_testset_save_CFLAGS"
19200
19201		eval supported=\$$cacheid
19202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19203printf "%s\n" "$supported" >&6; }
19204		if test "$supported" = "yes" ; then
19205			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19206			found="yes"
19207		fi
19208	fi
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224xorg_testset_save_CFLAGS="$CFLAGS"
19225
19226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19231then :
19232  printf %s "(cached) " >&6
19233else case e in #(
19234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235/* end confdefs.h.  */
19236int i;
19237_ACEOF
19238if ac_fn_c_try_compile "$LINENO"
19239then :
19240  xorg_cv_cc_flag_unknown_warning_option=yes
19241else case e in #(
19242  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19243esac
19244fi
19245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19246esac
19247fi
19248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19251	CFLAGS="$xorg_testset_save_CFLAGS"
19252fi
19253
19254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19257	fi
19258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19262then :
19263  printf %s "(cached) " >&6
19264else case e in #(
19265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266/* end confdefs.h.  */
19267int i;
19268_ACEOF
19269if ac_fn_c_try_compile "$LINENO"
19270then :
19271  xorg_cv_cc_flag_unused_command_line_argument=yes
19272else case e in #(
19273  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19274esac
19275fi
19276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19277esac
19278fi
19279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19282	CFLAGS="$xorg_testset_save_CFLAGS"
19283fi
19284
19285found="no"
19286
19287	if test $found = "no" ; then
19288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19290		fi
19291
19292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19294		fi
19295
19296		CFLAGS="$CFLAGS -Waddress"
19297
19298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19299printf %s "checking if $CC supports -Waddress... " >&6; }
19300		cacheid=xorg_cv_cc_flag__Waddress
19301		if eval test \${$cacheid+y}
19302then :
19303  printf %s "(cached) " >&6
19304else case e in #(
19305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306/* end confdefs.h.  */
19307int i;
19308int
19309main (void)
19310{
19311
19312  ;
19313  return 0;
19314}
19315_ACEOF
19316if ac_fn_c_try_link "$LINENO"
19317then :
19318  eval $cacheid=yes
19319else case e in #(
19320  e) eval $cacheid=no ;;
19321esac
19322fi
19323rm -f core conftest.err conftest.$ac_objext conftest.beam \
19324    conftest$ac_exeext conftest.$ac_ext ;;
19325esac
19326fi
19327
19328
19329		CFLAGS="$xorg_testset_save_CFLAGS"
19330
19331		eval supported=\$$cacheid
19332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19333printf "%s\n" "$supported" >&6; }
19334		if test "$supported" = "yes" ; then
19335			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19336			found="yes"
19337		fi
19338	fi
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354xorg_testset_save_CFLAGS="$CFLAGS"
19355
19356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19361then :
19362  printf %s "(cached) " >&6
19363else case e in #(
19364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365/* end confdefs.h.  */
19366int i;
19367_ACEOF
19368if ac_fn_c_try_compile "$LINENO"
19369then :
19370  xorg_cv_cc_flag_unknown_warning_option=yes
19371else case e in #(
19372  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19373esac
19374fi
19375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19376esac
19377fi
19378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19381	CFLAGS="$xorg_testset_save_CFLAGS"
19382fi
19383
19384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19387	fi
19388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19392then :
19393  printf %s "(cached) " >&6
19394else case e in #(
19395  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396/* end confdefs.h.  */
19397int i;
19398_ACEOF
19399if ac_fn_c_try_compile "$LINENO"
19400then :
19401  xorg_cv_cc_flag_unused_command_line_argument=yes
19402else case e in #(
19403  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19404esac
19405fi
19406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19407esac
19408fi
19409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19412	CFLAGS="$xorg_testset_save_CFLAGS"
19413fi
19414
19415found="no"
19416
19417	if test $found = "no" ; then
19418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19420		fi
19421
19422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19424		fi
19425
19426		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19427
19428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19429printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19430		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19431		if eval test \${$cacheid+y}
19432then :
19433  printf %s "(cached) " >&6
19434else case e in #(
19435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436/* end confdefs.h.  */
19437int i;
19438int
19439main (void)
19440{
19441
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446if ac_fn_c_try_link "$LINENO"
19447then :
19448  eval $cacheid=yes
19449else case e in #(
19450  e) eval $cacheid=no ;;
19451esac
19452fi
19453rm -f core conftest.err conftest.$ac_objext conftest.beam \
19454    conftest$ac_exeext conftest.$ac_ext ;;
19455esac
19456fi
19457
19458
19459		CFLAGS="$xorg_testset_save_CFLAGS"
19460
19461		eval supported=\$$cacheid
19462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19463printf "%s\n" "$supported" >&6; }
19464		if test "$supported" = "yes" ; then
19465			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19466			found="yes"
19467		fi
19468	fi
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484xorg_testset_save_CFLAGS="$CFLAGS"
19485
19486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19489printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19490if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19491then :
19492  printf %s "(cached) " >&6
19493else case e in #(
19494  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495/* end confdefs.h.  */
19496int i;
19497_ACEOF
19498if ac_fn_c_try_compile "$LINENO"
19499then :
19500  xorg_cv_cc_flag_unknown_warning_option=yes
19501else case e in #(
19502  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19503esac
19504fi
19505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19506esac
19507fi
19508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19511	CFLAGS="$xorg_testset_save_CFLAGS"
19512fi
19513
19514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19517	fi
19518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19522then :
19523  printf %s "(cached) " >&6
19524else case e in #(
19525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526/* end confdefs.h.  */
19527int i;
19528_ACEOF
19529if ac_fn_c_try_compile "$LINENO"
19530then :
19531  xorg_cv_cc_flag_unused_command_line_argument=yes
19532else case e in #(
19533  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19534esac
19535fi
19536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19537esac
19538fi
19539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19542	CFLAGS="$xorg_testset_save_CFLAGS"
19543fi
19544
19545found="no"
19546
19547	if test $found = "no" ; then
19548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19550		fi
19551
19552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19554		fi
19555
19556		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19557
19558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19559printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19560		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19561		if eval test \${$cacheid+y}
19562then :
19563  printf %s "(cached) " >&6
19564else case e in #(
19565  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566/* end confdefs.h.  */
19567int i;
19568int
19569main (void)
19570{
19571
19572  ;
19573  return 0;
19574}
19575_ACEOF
19576if ac_fn_c_try_link "$LINENO"
19577then :
19578  eval $cacheid=yes
19579else case e in #(
19580  e) eval $cacheid=no ;;
19581esac
19582fi
19583rm -f core conftest.err conftest.$ac_objext conftest.beam \
19584    conftest$ac_exeext conftest.$ac_ext ;;
19585esac
19586fi
19587
19588
19589		CFLAGS="$xorg_testset_save_CFLAGS"
19590
19591		eval supported=\$$cacheid
19592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19593printf "%s\n" "$supported" >&6; }
19594		if test "$supported" = "yes" ; then
19595			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19596			found="yes"
19597		fi
19598	fi
19599
19600
19601fi
19602
19603
19604
19605
19606
19607
19608
19609		CWARNFLAGS="$BASE_CFLAGS"
19610		if  test "x$GCC" = xyes ; then
19611		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19612		fi
19613
19614
19615
19616
19617
19618
19619
19620
19621# Check whether --enable-strict-compilation was given.
19622if test ${enable_strict_compilation+y}
19623then :
19624  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19625else case e in #(
19626  e) STRICT_COMPILE=no ;;
19627esac
19628fi
19629
19630
19631
19632
19633
19634
19635STRICT_CFLAGS=""
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649xorg_testset_save_CFLAGS="$CFLAGS"
19650
19651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19655if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19656then :
19657  printf %s "(cached) " >&6
19658else case e in #(
19659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660/* end confdefs.h.  */
19661int i;
19662_ACEOF
19663if ac_fn_c_try_compile "$LINENO"
19664then :
19665  xorg_cv_cc_flag_unknown_warning_option=yes
19666else case e in #(
19667  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19668esac
19669fi
19670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19671esac
19672fi
19673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19676	CFLAGS="$xorg_testset_save_CFLAGS"
19677fi
19678
19679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19682	fi
19683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19687then :
19688  printf %s "(cached) " >&6
19689else case e in #(
19690  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h.  */
19692int i;
19693_ACEOF
19694if ac_fn_c_try_compile "$LINENO"
19695then :
19696  xorg_cv_cc_flag_unused_command_line_argument=yes
19697else case e in #(
19698  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19699esac
19700fi
19701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19702esac
19703fi
19704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19707	CFLAGS="$xorg_testset_save_CFLAGS"
19708fi
19709
19710found="no"
19711
19712	if test $found = "no" ; then
19713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19715		fi
19716
19717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19719		fi
19720
19721		CFLAGS="$CFLAGS -pedantic"
19722
19723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19724printf %s "checking if $CC supports -pedantic... " >&6; }
19725		cacheid=xorg_cv_cc_flag__pedantic
19726		if eval test \${$cacheid+y}
19727then :
19728  printf %s "(cached) " >&6
19729else case e in #(
19730  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731/* end confdefs.h.  */
19732int i;
19733int
19734main (void)
19735{
19736
19737  ;
19738  return 0;
19739}
19740_ACEOF
19741if ac_fn_c_try_link "$LINENO"
19742then :
19743  eval $cacheid=yes
19744else case e in #(
19745  e) eval $cacheid=no ;;
19746esac
19747fi
19748rm -f core conftest.err conftest.$ac_objext conftest.beam \
19749    conftest$ac_exeext conftest.$ac_ext ;;
19750esac
19751fi
19752
19753
19754		CFLAGS="$xorg_testset_save_CFLAGS"
19755
19756		eval supported=\$$cacheid
19757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19758printf "%s\n" "$supported" >&6; }
19759		if test "$supported" = "yes" ; then
19760			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19761			found="yes"
19762		fi
19763	fi
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779xorg_testset_save_CFLAGS="$CFLAGS"
19780
19781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19785if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19786then :
19787  printf %s "(cached) " >&6
19788else case e in #(
19789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790/* end confdefs.h.  */
19791int i;
19792_ACEOF
19793if ac_fn_c_try_compile "$LINENO"
19794then :
19795  xorg_cv_cc_flag_unknown_warning_option=yes
19796else case e in #(
19797  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19798esac
19799fi
19800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19801esac
19802fi
19803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19806	CFLAGS="$xorg_testset_save_CFLAGS"
19807fi
19808
19809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19812	fi
19813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19816if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19817then :
19818  printf %s "(cached) " >&6
19819else case e in #(
19820  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821/* end confdefs.h.  */
19822int i;
19823_ACEOF
19824if ac_fn_c_try_compile "$LINENO"
19825then :
19826  xorg_cv_cc_flag_unused_command_line_argument=yes
19827else case e in #(
19828  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19829esac
19830fi
19831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19832esac
19833fi
19834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19837	CFLAGS="$xorg_testset_save_CFLAGS"
19838fi
19839
19840found="no"
19841
19842	if test $found = "no" ; then
19843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19845		fi
19846
19847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19849		fi
19850
19851		CFLAGS="$CFLAGS -Werror"
19852
19853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19854printf %s "checking if $CC supports -Werror... " >&6; }
19855		cacheid=xorg_cv_cc_flag__Werror
19856		if eval test \${$cacheid+y}
19857then :
19858  printf %s "(cached) " >&6
19859else case e in #(
19860  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861/* end confdefs.h.  */
19862int i;
19863int
19864main (void)
19865{
19866
19867  ;
19868  return 0;
19869}
19870_ACEOF
19871if ac_fn_c_try_link "$LINENO"
19872then :
19873  eval $cacheid=yes
19874else case e in #(
19875  e) eval $cacheid=no ;;
19876esac
19877fi
19878rm -f core conftest.err conftest.$ac_objext conftest.beam \
19879    conftest$ac_exeext conftest.$ac_ext ;;
19880esac
19881fi
19882
19883
19884		CFLAGS="$xorg_testset_save_CFLAGS"
19885
19886		eval supported=\$$cacheid
19887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19888printf "%s\n" "$supported" >&6; }
19889		if test "$supported" = "yes" ; then
19890			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19891			found="yes"
19892		fi
19893	fi
19894
19895	if test $found = "no" ; then
19896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19898		fi
19899
19900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19902		fi
19903
19904		CFLAGS="$CFLAGS -errwarn"
19905
19906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19907printf %s "checking if $CC supports -errwarn... " >&6; }
19908		cacheid=xorg_cv_cc_flag__errwarn
19909		if eval test \${$cacheid+y}
19910then :
19911  printf %s "(cached) " >&6
19912else case e in #(
19913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914/* end confdefs.h.  */
19915int i;
19916int
19917main (void)
19918{
19919
19920  ;
19921  return 0;
19922}
19923_ACEOF
19924if ac_fn_c_try_link "$LINENO"
19925then :
19926  eval $cacheid=yes
19927else case e in #(
19928  e) eval $cacheid=no ;;
19929esac
19930fi
19931rm -f core conftest.err conftest.$ac_objext conftest.beam \
19932    conftest$ac_exeext conftest.$ac_ext ;;
19933esac
19934fi
19935
19936
19937		CFLAGS="$xorg_testset_save_CFLAGS"
19938
19939		eval supported=\$$cacheid
19940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19941printf "%s\n" "$supported" >&6; }
19942		if test "$supported" = "yes" ; then
19943			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19944			found="yes"
19945		fi
19946	fi
19947
19948
19949
19950# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19951# activate it with -Werror, so we add it here explicitly.
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965xorg_testset_save_CFLAGS="$CFLAGS"
19966
19967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19972then :
19973  printf %s "(cached) " >&6
19974else case e in #(
19975  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976/* end confdefs.h.  */
19977int i;
19978_ACEOF
19979if ac_fn_c_try_compile "$LINENO"
19980then :
19981  xorg_cv_cc_flag_unknown_warning_option=yes
19982else case e in #(
19983  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19984esac
19985fi
19986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19987esac
19988fi
19989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19992	CFLAGS="$xorg_testset_save_CFLAGS"
19993fi
19994
19995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19998	fi
19999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20002if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20003then :
20004  printf %s "(cached) " >&6
20005else case e in #(
20006  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h.  */
20008int i;
20009_ACEOF
20010if ac_fn_c_try_compile "$LINENO"
20011then :
20012  xorg_cv_cc_flag_unused_command_line_argument=yes
20013else case e in #(
20014  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20015esac
20016fi
20017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20018esac
20019fi
20020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20023	CFLAGS="$xorg_testset_save_CFLAGS"
20024fi
20025
20026found="no"
20027
20028	if test $found = "no" ; then
20029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20031		fi
20032
20033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20035		fi
20036
20037		CFLAGS="$CFLAGS -Werror=attributes"
20038
20039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20040printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20041		cacheid=xorg_cv_cc_flag__Werror_attributes
20042		if eval test \${$cacheid+y}
20043then :
20044  printf %s "(cached) " >&6
20045else case e in #(
20046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047/* end confdefs.h.  */
20048int i;
20049int
20050main (void)
20051{
20052
20053  ;
20054  return 0;
20055}
20056_ACEOF
20057if ac_fn_c_try_link "$LINENO"
20058then :
20059  eval $cacheid=yes
20060else case e in #(
20061  e) eval $cacheid=no ;;
20062esac
20063fi
20064rm -f core conftest.err conftest.$ac_objext conftest.beam \
20065    conftest$ac_exeext conftest.$ac_ext ;;
20066esac
20067fi
20068
20069
20070		CFLAGS="$xorg_testset_save_CFLAGS"
20071
20072		eval supported=\$$cacheid
20073		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20074printf "%s\n" "$supported" >&6; }
20075		if test "$supported" = "yes" ; then
20076			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20077			found="yes"
20078		fi
20079	fi
20080
20081
20082
20083if test "x$STRICT_COMPILE" = "xyes"; then
20084    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20085    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20086fi
20087
20088
20089
20090
20091
20092
20093
20094
20095cat >>confdefs.h <<_ACEOF
20096#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20097_ACEOF
20098
20099	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20100	if test "x$PVM" = "x"; then
20101		PVM="0"
20102	fi
20103
20104printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20105
20106	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20107	if test "x$PVP" = "x"; then
20108		PVP="0"
20109	fi
20110
20111printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20112
20113
20114
20115CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20116mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20117|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20118touch \$(top_srcdir)/ChangeLog; \
20119echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20120
20121
20122
20123
20124macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20125INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20126mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20127|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20128touch \$(top_srcdir)/INSTALL; \
20129echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20130
20131
20132
20133
20134
20135
20136case $host_os in
20137    solaris*)
20138        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20139        # check for a man page file found in later versions that use
20140        # traditional section numbers instead
20141        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20142printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20143if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20144then :
20145  printf %s "(cached) " >&6
20146else case e in #(
20147  e) test "$cross_compiling" = yes &&
20148  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20149if test -r "/usr/share/man/man7/attributes.7"; then
20150  ac_cv_file__usr_share_man_man7_attributes_7=yes
20151else
20152  ac_cv_file__usr_share_man_man7_attributes_7=no
20153fi ;;
20154esac
20155fi
20156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20157printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20158if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20159then :
20160  SYSV_MAN_SECTIONS=false
20161else case e in #(
20162  e) SYSV_MAN_SECTIONS=true ;;
20163esac
20164fi
20165
20166        ;;
20167    *) SYSV_MAN_SECTIONS=false ;;
20168esac
20169
20170if test x$APP_MAN_SUFFIX = x    ; then
20171    APP_MAN_SUFFIX=1
20172fi
20173if test x$APP_MAN_DIR = x    ; then
20174    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20175fi
20176
20177if test x$LIB_MAN_SUFFIX = x    ; then
20178    LIB_MAN_SUFFIX=3
20179fi
20180if test x$LIB_MAN_DIR = x    ; then
20181    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20182fi
20183
20184if test x$FILE_MAN_SUFFIX = x    ; then
20185    case $SYSV_MAN_SECTIONS in
20186	true)				FILE_MAN_SUFFIX=4  ;;
20187	*)				FILE_MAN_SUFFIX=5  ;;
20188    esac
20189fi
20190if test x$FILE_MAN_DIR = x    ; then
20191    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20192fi
20193
20194if test x$MISC_MAN_SUFFIX = x    ; then
20195    case $SYSV_MAN_SECTIONS in
20196	true)				MISC_MAN_SUFFIX=5  ;;
20197	*)				MISC_MAN_SUFFIX=7  ;;
20198    esac
20199fi
20200if test x$MISC_MAN_DIR = x    ; then
20201    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20202fi
20203
20204if test x$DRIVER_MAN_SUFFIX = x    ; then
20205    case $SYSV_MAN_SECTIONS in
20206	true)				DRIVER_MAN_SUFFIX=7  ;;
20207	*)				DRIVER_MAN_SUFFIX=4  ;;
20208    esac
20209fi
20210if test x$DRIVER_MAN_DIR = x    ; then
20211    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20212fi
20213
20214if test x$ADMIN_MAN_SUFFIX = x    ; then
20215    case $SYSV_MAN_SECTIONS in
20216	true)				ADMIN_MAN_SUFFIX=1m ;;
20217	*)				ADMIN_MAN_SUFFIX=8  ;;
20218    esac
20219fi
20220if test x$ADMIN_MAN_DIR = x    ; then
20221    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20222fi
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238XORG_MAN_PAGE="X Version 11"
20239
20240MAN_SUBSTS="\
20241	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20242	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20243	-e 's|__xservername__|Xorg|g' \
20244	-e 's|__xconfigfile__|xorg.conf|g' \
20245	-e 's|__projectroot__|\$(prefix)|g' \
20246	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20247	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20248	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20249	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20250	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20251	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20252	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20253
20254
20255
20256# Check whether --enable-silent-rules was given.
20257if test ${enable_silent_rules+y}
20258then :
20259  enableval=$enable_silent_rules;
20260fi
20261
20262case $enable_silent_rules in # (((
20263  yes) AM_DEFAULT_VERBOSITY=0;;
20264   no) AM_DEFAULT_VERBOSITY=1;;
20265    *) AM_DEFAULT_VERBOSITY=0;;
20266esac
20267am_make=${MAKE-make}
20268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20269printf %s "checking whether $am_make supports nested variables... " >&6; }
20270if test ${am_cv_make_support_nested_variables+y}
20271then :
20272  printf %s "(cached) " >&6
20273else case e in #(
20274  e) if printf "%s\n" 'TRUE=$(BAR$(V))
20275BAR0=false
20276BAR1=true
20277V=1
20278am__doit:
20279	@$(TRUE)
20280.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20281  am_cv_make_support_nested_variables=yes
20282else
20283  am_cv_make_support_nested_variables=no
20284fi ;;
20285esac
20286fi
20287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20288printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
20289if test $am_cv_make_support_nested_variables = yes; then
20290    AM_V='$(V)'
20291  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20292else
20293  AM_V=$AM_DEFAULT_VERBOSITY
20294  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20295fi
20296AM_BACKSLASH='\'
20297
20298
20299
20300
20301
20302# Check whether --enable-docs was given.
20303if test ${enable_docs+y}
20304then :
20305  enableval=$enable_docs; build_docs=$enableval
20306else case e in #(
20307  e) build_docs=yes ;;
20308esac
20309fi
20310
20311
20312 if test x$build_docs = xyes; then
20313  ENABLE_DOCS_TRUE=
20314  ENABLE_DOCS_FALSE='#'
20315else
20316  ENABLE_DOCS_TRUE='#'
20317  ENABLE_DOCS_FALSE=
20318fi
20319
20320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
20321printf %s "checking whether to build documentation... " >&6; }
20322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
20323printf "%s\n" "$build_docs" >&6; }
20324
20325
20326
20327
20328
20329# Check whether --with-xmlto was given.
20330if test ${with_xmlto+y}
20331then :
20332  withval=$with_xmlto; use_xmlto=$withval
20333else case e in #(
20334  e) use_xmlto=auto ;;
20335esac
20336fi
20337
20338
20339
20340if test "x$use_xmlto" = x"auto"; then
20341   # Extract the first word of "xmlto", so it can be a program name with args.
20342set dummy xmlto; ac_word=$2
20343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20344printf %s "checking for $ac_word... " >&6; }
20345if test ${ac_cv_path_XMLTO+y}
20346then :
20347  printf %s "(cached) " >&6
20348else case e in #(
20349  e) case $XMLTO in
20350  [\\/]* | ?:[\\/]*)
20351  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20352  ;;
20353  *)
20354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355for as_dir in $PATH
20356do
20357  IFS=$as_save_IFS
20358  case $as_dir in #(((
20359    '') as_dir=./ ;;
20360    */) ;;
20361    *) as_dir=$as_dir/ ;;
20362  esac
20363    for ac_exec_ext in '' $ac_executable_extensions; do
20364  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20365    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20366    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20367    break 2
20368  fi
20369done
20370  done
20371IFS=$as_save_IFS
20372
20373  ;;
20374esac ;;
20375esac
20376fi
20377XMLTO=$ac_cv_path_XMLTO
20378if test -n "$XMLTO"; then
20379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20380printf "%s\n" "$XMLTO" >&6; }
20381else
20382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383printf "%s\n" "no" >&6; }
20384fi
20385
20386
20387   if test "x$XMLTO" = "x"; then
20388        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20389printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20390	have_xmlto=no
20391   else
20392        have_xmlto=yes
20393   fi
20394elif test "x$use_xmlto" = x"yes" ; then
20395   # Extract the first word of "xmlto", so it can be a program name with args.
20396set dummy xmlto; ac_word=$2
20397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20398printf %s "checking for $ac_word... " >&6; }
20399if test ${ac_cv_path_XMLTO+y}
20400then :
20401  printf %s "(cached) " >&6
20402else case e in #(
20403  e) case $XMLTO in
20404  [\\/]* | ?:[\\/]*)
20405  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20406  ;;
20407  *)
20408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20409for as_dir in $PATH
20410do
20411  IFS=$as_save_IFS
20412  case $as_dir in #(((
20413    '') as_dir=./ ;;
20414    */) ;;
20415    *) as_dir=$as_dir/ ;;
20416  esac
20417    for ac_exec_ext in '' $ac_executable_extensions; do
20418  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20419    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20420    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20421    break 2
20422  fi
20423done
20424  done
20425IFS=$as_save_IFS
20426
20427  ;;
20428esac ;;
20429esac
20430fi
20431XMLTO=$ac_cv_path_XMLTO
20432if test -n "$XMLTO"; then
20433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20434printf "%s\n" "$XMLTO" >&6; }
20435else
20436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437printf "%s\n" "no" >&6; }
20438fi
20439
20440
20441   if test "x$XMLTO" = "x"; then
20442        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20443   fi
20444   have_xmlto=yes
20445elif test "x$use_xmlto" = x"no" ; then
20446   if test "x$XMLTO" != "x"; then
20447      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20448printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20449   fi
20450   have_xmlto=no
20451else
20452   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20453fi
20454
20455# Test for a minimum version of xmlto, if provided.
20456if test "$have_xmlto" = yes; then
20457    # scrape the xmlto version
20458    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20459printf %s "checking the xmlto version... " >&6; }
20460    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20462printf "%s\n" "$xmlto_version" >&6; }
20463    as_arg_v1=$xmlto_version
20464as_arg_v2=0.0.22
20465awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20466case $? in #(
20467  1) :
20468    if test "x$use_xmlto" = xauto; then
20469            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20470printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20471            have_xmlto=no
20472        else
20473            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20474        fi ;; #(
20475  0) :
20476     ;; #(
20477  2) :
20478     ;; #(
20479  *) :
20480     ;;
20481esac
20482fi
20483
20484# Test for the ability of xmlto to generate a text target
20485#
20486# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20487# following test for empty XML docbook files.
20488# For compatibility reasons use the following empty XML docbook file and if
20489# it fails try it again with a non-empty XML file.
20490have_xmlto_text=no
20491cat > conftest.xml << "EOF"
20492EOF
20493if test "$have_xmlto" = yes
20494then :
20495  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20496then :
20497  have_xmlto_text=yes
20498else case e in #(
20499  e) # Try it again with a non-empty XML file.
20500              cat > conftest.xml << "EOF"
20501<x></x>
20502EOF
20503              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20504then :
20505  have_xmlto_text=yes
20506else case e in #(
20507  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20508printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
20509esac
20510fi ;;
20511esac
20512fi
20513fi
20514rm -f conftest.xml
20515 if test $have_xmlto_text = yes; then
20516  HAVE_XMLTO_TEXT_TRUE=
20517  HAVE_XMLTO_TEXT_FALSE='#'
20518else
20519  HAVE_XMLTO_TEXT_TRUE='#'
20520  HAVE_XMLTO_TEXT_FALSE=
20521fi
20522
20523 if test "$have_xmlto" = yes; then
20524  HAVE_XMLTO_TRUE=
20525  HAVE_XMLTO_FALSE='#'
20526else
20527  HAVE_XMLTO_TRUE='#'
20528  HAVE_XMLTO_FALSE=
20529fi
20530
20531
20532
20533
20534
20535
20536# Check whether --with-fop was given.
20537if test ${with_fop+y}
20538then :
20539  withval=$with_fop; use_fop=$withval
20540else case e in #(
20541  e) use_fop=auto ;;
20542esac
20543fi
20544
20545
20546
20547if test "x$use_fop" = x"auto"; then
20548   # Extract the first word of "fop", so it can be a program name with args.
20549set dummy fop; ac_word=$2
20550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20551printf %s "checking for $ac_word... " >&6; }
20552if test ${ac_cv_path_FOP+y}
20553then :
20554  printf %s "(cached) " >&6
20555else case e in #(
20556  e) case $FOP in
20557  [\\/]* | ?:[\\/]*)
20558  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20559  ;;
20560  *)
20561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562for as_dir in $PATH
20563do
20564  IFS=$as_save_IFS
20565  case $as_dir in #(((
20566    '') as_dir=./ ;;
20567    */) ;;
20568    *) as_dir=$as_dir/ ;;
20569  esac
20570    for ac_exec_ext in '' $ac_executable_extensions; do
20571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20572    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20574    break 2
20575  fi
20576done
20577  done
20578IFS=$as_save_IFS
20579
20580  ;;
20581esac ;;
20582esac
20583fi
20584FOP=$ac_cv_path_FOP
20585if test -n "$FOP"; then
20586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20587printf "%s\n" "$FOP" >&6; }
20588else
20589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590printf "%s\n" "no" >&6; }
20591fi
20592
20593
20594   if test "x$FOP" = "x"; then
20595        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20596printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20597	have_fop=no
20598   else
20599        have_fop=yes
20600   fi
20601elif test "x$use_fop" = x"yes" ; then
20602   # Extract the first word of "fop", so it can be a program name with args.
20603set dummy fop; ac_word=$2
20604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20605printf %s "checking for $ac_word... " >&6; }
20606if test ${ac_cv_path_FOP+y}
20607then :
20608  printf %s "(cached) " >&6
20609else case e in #(
20610  e) case $FOP in
20611  [\\/]* | ?:[\\/]*)
20612  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20613  ;;
20614  *)
20615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20616for as_dir in $PATH
20617do
20618  IFS=$as_save_IFS
20619  case $as_dir in #(((
20620    '') as_dir=./ ;;
20621    */) ;;
20622    *) as_dir=$as_dir/ ;;
20623  esac
20624    for ac_exec_ext in '' $ac_executable_extensions; do
20625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20626    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20627    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20628    break 2
20629  fi
20630done
20631  done
20632IFS=$as_save_IFS
20633
20634  ;;
20635esac ;;
20636esac
20637fi
20638FOP=$ac_cv_path_FOP
20639if test -n "$FOP"; then
20640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20641printf "%s\n" "$FOP" >&6; }
20642else
20643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644printf "%s\n" "no" >&6; }
20645fi
20646
20647
20648   if test "x$FOP" = "x"; then
20649        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20650   fi
20651   have_fop=yes
20652elif test "x$use_fop" = x"no" ; then
20653   if test "x$FOP" != "x"; then
20654      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20655printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20656   fi
20657   have_fop=no
20658else
20659   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20660fi
20661
20662# Test for a minimum version of fop, if provided.
20663
20664 if test "$have_fop" = yes; then
20665  HAVE_FOP_TRUE=
20666  HAVE_FOP_FALSE='#'
20667else
20668  HAVE_FOP_TRUE='#'
20669  HAVE_FOP_FALSE=
20670fi
20671
20672
20673
20674
20675# Preserves the interface, should it be implemented later
20676
20677
20678
20679# Check whether --with-xsltproc was given.
20680if test ${with_xsltproc+y}
20681then :
20682  withval=$with_xsltproc; use_xsltproc=$withval
20683else case e in #(
20684  e) use_xsltproc=auto ;;
20685esac
20686fi
20687
20688
20689
20690if test "x$use_xsltproc" = x"auto"; then
20691   # Extract the first word of "xsltproc", so it can be a program name with args.
20692set dummy xsltproc; ac_word=$2
20693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20694printf %s "checking for $ac_word... " >&6; }
20695if test ${ac_cv_path_XSLTPROC+y}
20696then :
20697  printf %s "(cached) " >&6
20698else case e in #(
20699  e) case $XSLTPROC in
20700  [\\/]* | ?:[\\/]*)
20701  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20702  ;;
20703  *)
20704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20705for as_dir in $PATH
20706do
20707  IFS=$as_save_IFS
20708  case $as_dir in #(((
20709    '') as_dir=./ ;;
20710    */) ;;
20711    *) as_dir=$as_dir/ ;;
20712  esac
20713    for ac_exec_ext in '' $ac_executable_extensions; do
20714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20715    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20717    break 2
20718  fi
20719done
20720  done
20721IFS=$as_save_IFS
20722
20723  ;;
20724esac ;;
20725esac
20726fi
20727XSLTPROC=$ac_cv_path_XSLTPROC
20728if test -n "$XSLTPROC"; then
20729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20730printf "%s\n" "$XSLTPROC" >&6; }
20731else
20732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20733printf "%s\n" "no" >&6; }
20734fi
20735
20736
20737   if test "x$XSLTPROC" = "x"; then
20738        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20739printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20740	have_xsltproc=no
20741   else
20742        have_xsltproc=yes
20743   fi
20744elif test "x$use_xsltproc" = x"yes" ; then
20745   # Extract the first word of "xsltproc", so it can be a program name with args.
20746set dummy xsltproc; ac_word=$2
20747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20748printf %s "checking for $ac_word... " >&6; }
20749if test ${ac_cv_path_XSLTPROC+y}
20750then :
20751  printf %s "(cached) " >&6
20752else case e in #(
20753  e) case $XSLTPROC in
20754  [\\/]* | ?:[\\/]*)
20755  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20756  ;;
20757  *)
20758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20759for as_dir in $PATH
20760do
20761  IFS=$as_save_IFS
20762  case $as_dir in #(((
20763    '') as_dir=./ ;;
20764    */) ;;
20765    *) as_dir=$as_dir/ ;;
20766  esac
20767    for ac_exec_ext in '' $ac_executable_extensions; do
20768  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20769    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20770    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20771    break 2
20772  fi
20773done
20774  done
20775IFS=$as_save_IFS
20776
20777  ;;
20778esac ;;
20779esac
20780fi
20781XSLTPROC=$ac_cv_path_XSLTPROC
20782if test -n "$XSLTPROC"; then
20783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20784printf "%s\n" "$XSLTPROC" >&6; }
20785else
20786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20787printf "%s\n" "no" >&6; }
20788fi
20789
20790
20791   if test "x$XSLTPROC" = "x"; then
20792        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20793   fi
20794   have_xsltproc=yes
20795elif test "x$use_xsltproc" = x"no" ; then
20796   if test "x$XSLTPROC" != "x"; then
20797      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20798printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20799   fi
20800   have_xsltproc=no
20801else
20802   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20803fi
20804
20805 if test "$have_xsltproc" = yes; then
20806  HAVE_XSLTPROC_TRUE=
20807  HAVE_XSLTPROC_FALSE='#'
20808else
20809  HAVE_XSLTPROC_TRUE='#'
20810  HAVE_XSLTPROC_FALSE=
20811fi
20812
20813
20814
20815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20816printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20817XORG_SGML_PATH=
20818if test -n "$PKG_CONFIG" && \
20819    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20820  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20821  ac_status=$?
20822  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20823  test $ac_status = 0; }; then
20824  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20825else
20826  :
20827
20828fi
20829
20830# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20831# the path and the name of the doc stylesheet
20832if test "x$XORG_SGML_PATH" != "x" ; then
20833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20834printf "%s\n" "$XORG_SGML_PATH" >&6; }
20835   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20836   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20837else
20838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20839printf "%s\n" "no" >&6; }
20840fi
20841
20842
20843
20844
20845 if test "x$XSL_STYLESHEET" != "x"; then
20846  HAVE_STYLESHEETS_TRUE=
20847  HAVE_STYLESHEETS_FALSE='#'
20848else
20849  HAVE_STYLESHEETS_TRUE='#'
20850  HAVE_STYLESHEETS_FALSE=
20851fi
20852
20853
20854
20855# Checks for programs.
20856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20857printf %s "checking whether ln -s works... " >&6; }
20858LN_S=$as_ln_s
20859if test "$LN_S" = "ln -s"; then
20860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20861printf "%s\n" "yes" >&6; }
20862else
20863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20864printf "%s\n" "no, using $LN_S" >&6; }
20865fi
20866
20867
20868# Checks for header files.
20869ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
20870if test "x$ac_cv_header_sys_random_h" = xyes
20871then :
20872  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
20873
20874fi
20875
20876
20877# Checks for libraries.
20878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
20879printf %s "checking for library containing recvfrom... " >&6; }
20880if test ${ac_cv_search_recvfrom+y}
20881then :
20882  printf %s "(cached) " >&6
20883else case e in #(
20884  e) ac_func_search_save_LIBS=$LIBS
20885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886/* end confdefs.h.  */
20887
20888/* Override any GCC internal prototype to avoid an error.
20889   Use char because int might match the return type of a GCC
20890   builtin and then its argument prototype would still apply.
20891   The 'extern "C"' is for builds by C++ compilers;
20892   although this is not generally supported in C code supporting it here
20893   has little cost and some practical benefit (sr 110532).  */
20894#ifdef __cplusplus
20895extern "C"
20896#endif
20897char recvfrom (void);
20898int
20899main (void)
20900{
20901return recvfrom ();
20902  ;
20903  return 0;
20904}
20905_ACEOF
20906for ac_lib in '' socket
20907do
20908  if test -z "$ac_lib"; then
20909    ac_res="none required"
20910  else
20911    ac_res=-l$ac_lib
20912    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20913  fi
20914  if ac_fn_c_try_link "$LINENO"
20915then :
20916  ac_cv_search_recvfrom=$ac_res
20917fi
20918rm -f core conftest.err conftest.$ac_objext conftest.beam \
20919    conftest$ac_exeext
20920  if test ${ac_cv_search_recvfrom+y}
20921then :
20922  break
20923fi
20924done
20925if test ${ac_cv_search_recvfrom+y}
20926then :
20927
20928else case e in #(
20929  e) ac_cv_search_recvfrom=no ;;
20930esac
20931fi
20932rm conftest.$ac_ext
20933LIBS=$ac_func_search_save_LIBS ;;
20934esac
20935fi
20936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
20937printf "%s\n" "$ac_cv_search_recvfrom" >&6; }
20938ac_res=$ac_cv_search_recvfrom
20939if test "$ac_res" != no
20940then :
20941  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20942
20943fi
20944
20945
20946case $host_os in
20947     *mingw*)
20948        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20949printf %s "checking for main in -lws2_32... " >&6; }
20950if test ${ac_cv_lib_ws2_32_main+y}
20951then :
20952  printf %s "(cached) " >&6
20953else case e in #(
20954  e) ac_check_lib_save_LIBS=$LIBS
20955LIBS="-lws2_32  $LIBS"
20956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957/* end confdefs.h.  */
20958
20959
20960int
20961main (void)
20962{
20963return main ();
20964  ;
20965  return 0;
20966}
20967_ACEOF
20968if ac_fn_c_try_link "$LINENO"
20969then :
20970  ac_cv_lib_ws2_32_main=yes
20971else case e in #(
20972  e) ac_cv_lib_ws2_32_main=no ;;
20973esac
20974fi
20975rm -f core conftest.err conftest.$ac_objext conftest.beam \
20976    conftest$ac_exeext conftest.$ac_ext
20977LIBS=$ac_check_lib_save_LIBS ;;
20978esac
20979fi
20980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20981printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20982if test "x$ac_cv_lib_ws2_32_main" = xyes
20983then :
20984  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20985
20986  LIBS="-lws2_32 $LIBS"
20987
20988fi
20989
20990        ;;
20991     *)
20992        ;;
20993esac
20994
20995# Checks for non-standard functions and fallback to libbsd if we can
20996# We only check for arc4random_buf, because if we have that, we don't
20997# need/use getentropy.
20998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999/* end confdefs.h.  */
21000
21001/* Override any GCC internal prototype to avoid an error.
21002   Use char because int might match the return type of a GCC
21003   builtin and then its argument prototype would still apply.
21004   The 'extern "C"' is for builds by C++ compilers;
21005   although this is not generally supported in C code supporting it here
21006   has little cost and some practical benefit (sr 110532).  */
21007#ifdef __cplusplus
21008extern "C"
21009#endif
21010char arc4random_buf (void);
21011int
21012main (void)
21013{
21014return arc4random_buf ();
21015  ;
21016  return 0;
21017}
21018_ACEOF
21019if ac_fn_c_try_link "$LINENO"
21020then :
21021  TRY_LIBBSD="no"
21022else case e in #(
21023  e) TRY_LIBBSD="yes" ;;
21024esac
21025fi
21026rm -f core conftest.err conftest.$ac_objext conftest.beam \
21027    conftest$ac_exeext conftest.$ac_ext
21028if test "x$TRY_LIBBSD" = "xyes"
21029then :
21030
21031pkg_failed=no
21032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
21033printf %s "checking for LIBBSD... " >&6; }
21034
21035if test -n "$LIBBSD_CFLAGS"; then
21036    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
21037 elif test -n "$PKG_CONFIG"; then
21038    if test -n "$PKG_CONFIG" && \
21039    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
21040  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
21041  ac_status=$?
21042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21043  test $ac_status = 0; }; then
21044  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
21045		      test "x$?" != "x0" && pkg_failed=yes
21046else
21047  pkg_failed=yes
21048fi
21049 else
21050    pkg_failed=untried
21051fi
21052if test -n "$LIBBSD_LIBS"; then
21053    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
21054 elif test -n "$PKG_CONFIG"; then
21055    if test -n "$PKG_CONFIG" && \
21056    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
21057  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
21058  ac_status=$?
21059  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060  test $ac_status = 0; }; then
21061  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
21062		      test "x$?" != "x0" && pkg_failed=yes
21063else
21064  pkg_failed=yes
21065fi
21066 else
21067    pkg_failed=untried
21068fi
21069
21070
21071
21072if test $pkg_failed = yes; then
21073   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074printf "%s\n" "no" >&6; }
21075
21076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21077        _pkg_short_errors_supported=yes
21078else
21079        _pkg_short_errors_supported=no
21080fi
21081        if test $_pkg_short_errors_supported = yes; then
21082	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
21083        else
21084	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
21085        fi
21086	# Put the nasty error message in config.log where it belongs
21087	echo "$LIBBSD_PKG_ERRORS" >&5
21088
21089	:
21090elif test $pkg_failed = untried; then
21091     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092printf "%s\n" "no" >&6; }
21093	:
21094else
21095	LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
21096	LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
21097        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21098printf "%s\n" "yes" >&6; }
21099
21100	CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
21101	LIBS="$LIBS $LIBBSD_LIBS"
21102
21103fi
21104fi
21105
21106# Checks for library functions.
21107ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
21108if test "x$ac_cv_func_srand48" = xyes
21109then :
21110  printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
21111
21112fi
21113ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
21114if test "x$ac_cv_func_lrand48" = xyes
21115then :
21116  printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
21117
21118fi
21119ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
21120if test "x$ac_cv_func_arc4random_buf" = xyes
21121then :
21122  printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
21123
21124fi
21125ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21126if test "x$ac_cv_func_getentropy" = xyes
21127then :
21128  printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
21129
21130fi
21131
21132
21133# Obtain compiler/linker options for dependencies
21134
21135pkg_failed=no
21136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
21137printf %s "checking for XDMCP... " >&6; }
21138
21139if test -n "$XDMCP_CFLAGS"; then
21140    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
21141 elif test -n "$PKG_CONFIG"; then
21142    if test -n "$PKG_CONFIG" && \
21143    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
21144  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
21145  ac_status=$?
21146  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21147  test $ac_status = 0; }; then
21148  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
21149		      test "x$?" != "x0" && pkg_failed=yes
21150else
21151  pkg_failed=yes
21152fi
21153 else
21154    pkg_failed=untried
21155fi
21156if test -n "$XDMCP_LIBS"; then
21157    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
21158 elif test -n "$PKG_CONFIG"; then
21159    if test -n "$PKG_CONFIG" && \
21160    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
21161  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
21162  ac_status=$?
21163  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21164  test $ac_status = 0; }; then
21165  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
21166		      test "x$?" != "x0" && pkg_failed=yes
21167else
21168  pkg_failed=yes
21169fi
21170 else
21171    pkg_failed=untried
21172fi
21173
21174
21175
21176if test $pkg_failed = yes; then
21177   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21178printf "%s\n" "no" >&6; }
21179
21180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21181        _pkg_short_errors_supported=yes
21182else
21183        _pkg_short_errors_supported=no
21184fi
21185        if test $_pkg_short_errors_supported = yes; then
21186	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
21187        else
21188	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
21189        fi
21190	# Put the nasty error message in config.log where it belongs
21191	echo "$XDMCP_PKG_ERRORS" >&5
21192
21193	as_fn_error $? "Package requirements (xproto) were not met:
21194
21195$XDMCP_PKG_ERRORS
21196
21197Consider adjusting the PKG_CONFIG_PATH environment variable if you
21198installed software in a non-standard prefix.
21199
21200Alternatively, you may set the environment variables XDMCP_CFLAGS
21201and XDMCP_LIBS to avoid the need to call pkg-config.
21202See the pkg-config man page for more details." "$LINENO" 5
21203elif test $pkg_failed = untried; then
21204     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205printf "%s\n" "no" >&6; }
21206	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21207printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21208as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21209is in your PATH or set the PKG_CONFIG environment variable to the full
21210path to pkg-config.
21211
21212Alternatively, you may set the environment variables XDMCP_CFLAGS
21213and XDMCP_LIBS to avoid the need to call pkg-config.
21214See the pkg-config man page for more details.
21215
21216To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21217See 'config.log' for more details" "$LINENO" 5; }
21218else
21219	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
21220	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
21221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21222printf "%s\n" "yes" >&6; }
21223
21224fi
21225
21226if test -f ${srcdir}/Wraphelp.c; then
21227
21228printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
21229
21230	HASXDMAUTH=yes
21231else
21232	HASXDMAUTH=no
21233fi
21234
21235 if test x$HASXDMAUTH = xyes; then
21236  HASXDMAUTH_TRUE=
21237  HASXDMAUTH_FALSE='#'
21238else
21239  HASXDMAUTH_TRUE='#'
21240  HASXDMAUTH_FALSE=
21241fi
21242
21243
21244# Allow checking code with lint, sparse, etc.
21245
21246
21247
21248
21249
21250# Check whether --with-lint was given.
21251if test ${with_lint+y}
21252then :
21253  withval=$with_lint; use_lint=$withval
21254else case e in #(
21255  e) use_lint=no ;;
21256esac
21257fi
21258
21259
21260# Obtain platform specific info like program name and options
21261# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21262case $host_os in
21263  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21264	lint_name=splint
21265	lint_options="-badflag"
21266	;;
21267  *freebsd* | *netbsd*)
21268	lint_name=lint
21269	lint_options="-u -b"
21270	;;
21271  *solaris*)
21272	lint_name=lint
21273	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21274	;;
21275esac
21276
21277# Test for the presence of the program (either guessed by the code or spelled out by the user)
21278if test "x$use_lint" = x"yes" ; then
21279   # Extract the first word of "$lint_name", so it can be a program name with args.
21280set dummy $lint_name; ac_word=$2
21281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21282printf %s "checking for $ac_word... " >&6; }
21283if test ${ac_cv_path_LINT+y}
21284then :
21285  printf %s "(cached) " >&6
21286else case e in #(
21287  e) case $LINT in
21288  [\\/]* | ?:[\\/]*)
21289  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21290  ;;
21291  *)
21292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21293for as_dir in $PATH
21294do
21295  IFS=$as_save_IFS
21296  case $as_dir in #(((
21297    '') as_dir=./ ;;
21298    */) ;;
21299    *) as_dir=$as_dir/ ;;
21300  esac
21301    for ac_exec_ext in '' $ac_executable_extensions; do
21302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21303    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21305    break 2
21306  fi
21307done
21308  done
21309IFS=$as_save_IFS
21310
21311  ;;
21312esac ;;
21313esac
21314fi
21315LINT=$ac_cv_path_LINT
21316if test -n "$LINT"; then
21317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21318printf "%s\n" "$LINT" >&6; }
21319else
21320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21321printf "%s\n" "no" >&6; }
21322fi
21323
21324
21325   if test "x$LINT" = "x"; then
21326        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21327   fi
21328elif test "x$use_lint" = x"no" ; then
21329   if test "x$LINT" != "x"; then
21330      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21331printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21332   fi
21333else
21334   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21335fi
21336
21337# User supplied flags override default flags
21338if test "x$LINT_FLAGS" != "x"; then
21339   lint_options=$LINT_FLAGS
21340fi
21341
21342LINT_FLAGS=$lint_options
21343
21344 if test "x$LINT" != x; then
21345  LINT_TRUE=
21346  LINT_FALSE='#'
21347else
21348  LINT_TRUE='#'
21349  LINT_FALSE=
21350fi
21351
21352
21353
21354
21355
21356# Check whether --enable-lint-library was given.
21357if test ${enable_lint_library+y}
21358then :
21359  enableval=$enable_lint_library; make_lint_lib=$enableval
21360else case e in #(
21361  e) make_lint_lib=no ;;
21362esac
21363fi
21364
21365
21366if test "x$make_lint_lib" = x"yes" ; then
21367   LINTLIB=llib-lXdmcp.ln
21368   if test "x$LINT" = "x"; then
21369        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21370   fi
21371elif test "x$make_lint_lib" != x"no" ; then
21372   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21373fi
21374
21375
21376 if test x$make_lint_lib != xno; then
21377  MAKE_LINT_LIB_TRUE=
21378  MAKE_LINT_LIB_FALSE='#'
21379else
21380  MAKE_LINT_LIB_TRUE='#'
21381  MAKE_LINT_LIB_FALSE=
21382fi
21383
21384
21385
21386
21387#  --enable-unit-tests
21388
21389
21390
21391
21392
21393# Check for different types of support on different platforms
21394case $host_os in
21395    solaris*)
21396        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
21397printf %s "checking for umem_alloc in -lumem... " >&6; }
21398if test ${ac_cv_lib_umem_umem_alloc+y}
21399then :
21400  printf %s "(cached) " >&6
21401else case e in #(
21402  e) ac_check_lib_save_LIBS=$LIBS
21403LIBS="-lumem  $LIBS"
21404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405/* end confdefs.h.  */
21406
21407/* Override any GCC internal prototype to avoid an error.
21408   Use char because int might match the return type of a GCC
21409   builtin and then its argument prototype would still apply.
21410   The 'extern "C"' is for builds by C++ compilers;
21411   although this is not generally supported in C code supporting it here
21412   has little cost and some practical benefit (sr 110532).  */
21413#ifdef __cplusplus
21414extern "C"
21415#endif
21416char umem_alloc (void);
21417int
21418main (void)
21419{
21420return umem_alloc ();
21421  ;
21422  return 0;
21423}
21424_ACEOF
21425if ac_fn_c_try_link "$LINENO"
21426then :
21427  ac_cv_lib_umem_umem_alloc=yes
21428else case e in #(
21429  e) ac_cv_lib_umem_umem_alloc=no ;;
21430esac
21431fi
21432rm -f core conftest.err conftest.$ac_objext conftest.beam \
21433    conftest$ac_exeext conftest.$ac_ext
21434LIBS=$ac_check_lib_save_LIBS ;;
21435esac
21436fi
21437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
21438printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
21439if test "x$ac_cv_lib_umem_umem_alloc" = xyes
21440then :
21441  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
21442fi
21443
21444        ;;
21445    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
21446        # both directly and inverted, so should not be 0 or 255.
21447        malloc_debug_env='MALLOC_PERTURB_=15'
21448        ;;
21449    darwin*)
21450        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
21451        ;;
21452    *bsd*)
21453        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
21454        ;;
21455esac
21456
21457# User supplied flags override default flags
21458if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
21459    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
21460fi
21461
21462XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
21463
21464
21465
21466
21467
21468
21469
21470# Check whether --enable-unit-tests was given.
21471if test ${enable_unit_tests+y}
21472then :
21473  enableval=$enable_unit_tests; enable_unit_tests=$enableval
21474else case e in #(
21475  e) enable_unit_tests=yes ;;
21476esac
21477fi
21478
21479
21480 if test "x$enable_unit_tests" != xno; then
21481  ENABLE_UNIT_TESTS_TRUE=
21482  ENABLE_UNIT_TESTS_FALSE='#'
21483else
21484  ENABLE_UNIT_TESTS_TRUE='#'
21485  ENABLE_UNIT_TESTS_FALSE=
21486fi
21487
21488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
21489printf %s "checking whether to build unit test cases... " >&6; }
21490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
21491printf "%s\n" "$enable_unit_tests" >&6; }
21492
21493
21494ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile xdmcp.pc"
21495
21496cat >confcache <<\_ACEOF
21497# This file is a shell script that caches the results of configure
21498# tests run on this system so they can be shared between configure
21499# scripts and configure runs, see configure's option --config-cache.
21500# It is not useful on other systems.  If it contains results you don't
21501# want to keep, you may remove or edit it.
21502#
21503# config.status only pays attention to the cache file if you give it
21504# the --recheck option to rerun configure.
21505#
21506# 'ac_cv_env_foo' variables (set or unset) will be overridden when
21507# loading this file, other *unset* 'ac_cv_foo' will be assigned the
21508# following values.
21509
21510_ACEOF
21511
21512# The following way of writing the cache mishandles newlines in values,
21513# but we know of no workaround that is simple, portable, and efficient.
21514# So, we kill variables containing newlines.
21515# Ultrix sh set writes to stderr and can't be redirected directly,
21516# and sets the high bit in the cache file unless we assign to the vars.
21517(
21518  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21519    eval ac_val=\$$ac_var
21520    case $ac_val in #(
21521    *${as_nl}*)
21522      case $ac_var in #(
21523      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21524printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21525      esac
21526      case $ac_var in #(
21527      _ | IFS | as_nl) ;; #(
21528      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21529      *) { eval $ac_var=; unset $ac_var;} ;;
21530      esac ;;
21531    esac
21532  done
21533
21534  (set) 2>&1 |
21535    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21536    *${as_nl}ac_space=\ *)
21537      # 'set' does not quote correctly, so add quotes: double-quote
21538      # substitution turns \\\\ into \\, and sed turns \\ into \.
21539      sed -n \
21540	"s/'/'\\\\''/g;
21541	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21542      ;; #(
21543    *)
21544      # 'set' quotes correctly as required by POSIX, so do not add quotes.
21545      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21546      ;;
21547    esac |
21548    sort
21549) |
21550  sed '
21551     /^ac_cv_env_/b end
21552     t clear
21553     :clear
21554     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21555     t end
21556     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21557     :end' >>confcache
21558if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21559  if test -w "$cache_file"; then
21560    if test "x$cache_file" != "x/dev/null"; then
21561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21562printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21563      if test ! -f "$cache_file" || test -h "$cache_file"; then
21564	cat confcache >"$cache_file"
21565      else
21566        case $cache_file in #(
21567        */* | ?:*)
21568	  mv -f confcache "$cache_file"$$ &&
21569	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21570        *)
21571	  mv -f confcache "$cache_file" ;;
21572	esac
21573      fi
21574    fi
21575  else
21576    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21577printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21578  fi
21579fi
21580rm -f confcache
21581
21582test "x$prefix" = xNONE && prefix=$ac_default_prefix
21583# Let make expand exec_prefix.
21584test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21585
21586DEFS=-DHAVE_CONFIG_H
21587
21588ac_libobjs=
21589ac_ltlibobjs=
21590U=
21591for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21592  # 1. Remove the extension, and $U if already installed.
21593  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21594  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21595  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21596  #    will be set to the directory where LIBOBJS objects are built.
21597  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21598  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21599done
21600LIBOBJS=$ac_libobjs
21601
21602LTLIBOBJS=$ac_ltlibobjs
21603
21604
21605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21606printf %s "checking that generated files are newer than configure... " >&6; }
21607   if test -n "$am_sleep_pid"; then
21608     # Hide warnings about reused PIDs.
21609     wait $am_sleep_pid 2>/dev/null
21610   fi
21611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21612printf "%s\n" "done" >&6; }
21613if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21614  as_fn_error $? "conditional \"AMDEP\" was never defined.
21615Usually this means the macro was only invoked conditionally." "$LINENO" 5
21616fi
21617if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21618  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21619Usually this means the macro was only invoked conditionally." "$LINENO" 5
21620fi
21621 if test -n "$EXEEXT"; then
21622  am__EXEEXT_TRUE=
21623  am__EXEEXT_FALSE='#'
21624else
21625  am__EXEEXT_TRUE='#'
21626  am__EXEEXT_FALSE=
21627fi
21628
21629if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21630  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21631Usually this means the macro was only invoked conditionally." "$LINENO" 5
21632fi
21633if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21634  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21635Usually this means the macro was only invoked conditionally." "$LINENO" 5
21636fi
21637if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21638  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21639Usually this means the macro was only invoked conditionally." "$LINENO" 5
21640fi
21641if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21642  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21643Usually this means the macro was only invoked conditionally." "$LINENO" 5
21644fi
21645if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21646  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21647Usually this means the macro was only invoked conditionally." "$LINENO" 5
21648fi
21649if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21650  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21651Usually this means the macro was only invoked conditionally." "$LINENO" 5
21652fi
21653if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then
21654  as_fn_error $? "conditional \"HASXDMAUTH\" was never defined.
21655Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656fi
21657if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21658  as_fn_error $? "conditional \"LINT\" was never defined.
21659Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660fi
21661if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21662  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21663Usually this means the macro was only invoked conditionally." "$LINENO" 5
21664fi
21665if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
21666  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
21667Usually this means the macro was only invoked conditionally." "$LINENO" 5
21668fi
21669
21670: "${CONFIG_STATUS=./config.status}"
21671ac_write_fail=0
21672ac_clean_files_save=$ac_clean_files
21673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21675printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21676as_write_fail=0
21677cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21678#! $SHELL
21679# Generated by $as_me.
21680# Run this file to recreate the current configuration.
21681# Compiler output produced by configure, useful for debugging
21682# configure, is in config.log if it exists.
21683
21684debug=false
21685ac_cs_recheck=false
21686ac_cs_silent=false
21687
21688SHELL=\${CONFIG_SHELL-$SHELL}
21689export SHELL
21690_ASEOF
21691cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21692## -------------------- ##
21693## M4sh Initialization. ##
21694## -------------------- ##
21695
21696# Be more Bourne compatible
21697DUALCASE=1; export DUALCASE # for MKS sh
21698if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21699then :
21700  emulate sh
21701  NULLCMD=:
21702  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21703  # is contrary to our usage.  Disable this feature.
21704  alias -g '${1+"$@"}'='"$@"'
21705  setopt NO_GLOB_SUBST
21706else case e in #(
21707  e) case `(set -o) 2>/dev/null` in #(
21708  *posix*) :
21709    set -o posix ;; #(
21710  *) :
21711     ;;
21712esac ;;
21713esac
21714fi
21715
21716
21717
21718# Reset variables that may have inherited troublesome values from
21719# the environment.
21720
21721# IFS needs to be set, to space, tab, and newline, in precisely that order.
21722# (If _AS_PATH_WALK were called with IFS unset, it would have the
21723# side effect of setting IFS to empty, thus disabling word splitting.)
21724# Quoting is to prevent editors from complaining about space-tab.
21725as_nl='
21726'
21727export as_nl
21728IFS=" ""	$as_nl"
21729
21730PS1='$ '
21731PS2='> '
21732PS4='+ '
21733
21734# Ensure predictable behavior from utilities with locale-dependent output.
21735LC_ALL=C
21736export LC_ALL
21737LANGUAGE=C
21738export LANGUAGE
21739
21740# We cannot yet rely on "unset" to work, but we need these variables
21741# to be unset--not just set to an empty or harmless value--now, to
21742# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21743# also avoids known problems related to "unset" and subshell syntax
21744# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21745for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21746do eval test \${$as_var+y} \
21747  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21748done
21749
21750# Ensure that fds 0, 1, and 2 are open.
21751if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21752if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21753if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21754
21755# The user is always right.
21756if ${PATH_SEPARATOR+false} :; then
21757  PATH_SEPARATOR=:
21758  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21759    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21760      PATH_SEPARATOR=';'
21761  }
21762fi
21763
21764
21765# Find who we are.  Look in the path if we contain no directory separator.
21766as_myself=
21767case $0 in #((
21768  *[\\/]* ) as_myself=$0 ;;
21769  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770for as_dir in $PATH
21771do
21772  IFS=$as_save_IFS
21773  case $as_dir in #(((
21774    '') as_dir=./ ;;
21775    */) ;;
21776    *) as_dir=$as_dir/ ;;
21777  esac
21778    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21779  done
21780IFS=$as_save_IFS
21781
21782     ;;
21783esac
21784# We did not find ourselves, most probably we were run as 'sh COMMAND'
21785# in which case we are not to be found in the path.
21786if test "x$as_myself" = x; then
21787  as_myself=$0
21788fi
21789if test ! -f "$as_myself"; then
21790  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21791  exit 1
21792fi
21793
21794
21795
21796# as_fn_error STATUS ERROR [LINENO LOG_FD]
21797# ----------------------------------------
21798# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21799# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21800# script with STATUS, using 1 if that was 0.
21801as_fn_error ()
21802{
21803  as_status=$1; test $as_status -eq 0 && as_status=1
21804  if test "$4"; then
21805    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21807  fi
21808  printf "%s\n" "$as_me: error: $2" >&2
21809  as_fn_exit $as_status
21810} # as_fn_error
21811
21812
21813# as_fn_set_status STATUS
21814# -----------------------
21815# Set $? to STATUS, without forking.
21816as_fn_set_status ()
21817{
21818  return $1
21819} # as_fn_set_status
21820
21821# as_fn_exit STATUS
21822# -----------------
21823# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21824as_fn_exit ()
21825{
21826  set +e
21827  as_fn_set_status $1
21828  exit $1
21829} # as_fn_exit
21830
21831# as_fn_unset VAR
21832# ---------------
21833# Portably unset VAR.
21834as_fn_unset ()
21835{
21836  { eval $1=; unset $1;}
21837}
21838as_unset=as_fn_unset
21839
21840# as_fn_append VAR VALUE
21841# ----------------------
21842# Append the text in VALUE to the end of the definition contained in VAR. Take
21843# advantage of any shell optimizations that allow amortized linear growth over
21844# repeated appends, instead of the typical quadratic growth present in naive
21845# implementations.
21846if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21847then :
21848  eval 'as_fn_append ()
21849  {
21850    eval $1+=\$2
21851  }'
21852else case e in #(
21853  e) as_fn_append ()
21854  {
21855    eval $1=\$$1\$2
21856  } ;;
21857esac
21858fi # as_fn_append
21859
21860# as_fn_arith ARG...
21861# ------------------
21862# Perform arithmetic evaluation on the ARGs, and store the result in the
21863# global $as_val. Take advantage of shells that can avoid forks. The arguments
21864# must be portable across $(()) and expr.
21865if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21866then :
21867  eval 'as_fn_arith ()
21868  {
21869    as_val=$(( $* ))
21870  }'
21871else case e in #(
21872  e) as_fn_arith ()
21873  {
21874    as_val=`expr "$@" || test $? -eq 1`
21875  } ;;
21876esac
21877fi # as_fn_arith
21878
21879
21880if expr a : '\(a\)' >/dev/null 2>&1 &&
21881   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21882  as_expr=expr
21883else
21884  as_expr=false
21885fi
21886
21887if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21888  as_basename=basename
21889else
21890  as_basename=false
21891fi
21892
21893if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21894  as_dirname=dirname
21895else
21896  as_dirname=false
21897fi
21898
21899as_me=`$as_basename -- "$0" ||
21900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21901	 X"$0" : 'X\(//\)$' \| \
21902	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21903printf "%s\n" X/"$0" |
21904    sed '/^.*\/\([^/][^/]*\)\/*$/{
21905	    s//\1/
21906	    q
21907	  }
21908	  /^X\/\(\/\/\)$/{
21909	    s//\1/
21910	    q
21911	  }
21912	  /^X\/\(\/\).*/{
21913	    s//\1/
21914	    q
21915	  }
21916	  s/.*/./; q'`
21917
21918# Avoid depending upon Character Ranges.
21919as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21920as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21921as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21922as_cr_digits='0123456789'
21923as_cr_alnum=$as_cr_Letters$as_cr_digits
21924
21925
21926# Determine whether it's possible to make 'echo' print without a newline.
21927# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21928# for compatibility with existing Makefiles.
21929ECHO_C= ECHO_N= ECHO_T=
21930case `echo -n x` in #(((((
21931-n*)
21932  case `echo 'xy\c'` in
21933  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21934  xy)  ECHO_C='\c';;
21935  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21936       ECHO_T='	';;
21937  esac;;
21938*)
21939  ECHO_N='-n';;
21940esac
21941
21942# For backward compatibility with old third-party macros, we provide
21943# the shell variables $as_echo and $as_echo_n.  New code should use
21944# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21945as_echo='printf %s\n'
21946as_echo_n='printf %s'
21947
21948rm -f conf$$ conf$$.exe conf$$.file
21949if test -d conf$$.dir; then
21950  rm -f conf$$.dir/conf$$.file
21951else
21952  rm -f conf$$.dir
21953  mkdir conf$$.dir 2>/dev/null
21954fi
21955if (echo >conf$$.file) 2>/dev/null; then
21956  if ln -s conf$$.file conf$$ 2>/dev/null; then
21957    as_ln_s='ln -s'
21958    # ... but there are two gotchas:
21959    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21960    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21961    # In both cases, we have to default to 'cp -pR'.
21962    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21963      as_ln_s='cp -pR'
21964  elif ln conf$$.file conf$$ 2>/dev/null; then
21965    as_ln_s=ln
21966  else
21967    as_ln_s='cp -pR'
21968  fi
21969else
21970  as_ln_s='cp -pR'
21971fi
21972rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21973rmdir conf$$.dir 2>/dev/null
21974
21975
21976# as_fn_mkdir_p
21977# -------------
21978# Create "$as_dir" as a directory, including parents if necessary.
21979as_fn_mkdir_p ()
21980{
21981
21982  case $as_dir in #(
21983  -*) as_dir=./$as_dir;;
21984  esac
21985  test -d "$as_dir" || eval $as_mkdir_p || {
21986    as_dirs=
21987    while :; do
21988      case $as_dir in #(
21989      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21990      *) as_qdir=$as_dir;;
21991      esac
21992      as_dirs="'$as_qdir' $as_dirs"
21993      as_dir=`$as_dirname -- "$as_dir" ||
21994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21995	 X"$as_dir" : 'X\(//\)[^/]' \| \
21996	 X"$as_dir" : 'X\(//\)$' \| \
21997	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21998printf "%s\n" X"$as_dir" |
21999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22000	    s//\1/
22001	    q
22002	  }
22003	  /^X\(\/\/\)[^/].*/{
22004	    s//\1/
22005	    q
22006	  }
22007	  /^X\(\/\/\)$/{
22008	    s//\1/
22009	    q
22010	  }
22011	  /^X\(\/\).*/{
22012	    s//\1/
22013	    q
22014	  }
22015	  s/.*/./; q'`
22016      test -d "$as_dir" && break
22017    done
22018    test -z "$as_dirs" || eval "mkdir $as_dirs"
22019  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22020
22021
22022} # as_fn_mkdir_p
22023if mkdir -p . 2>/dev/null; then
22024  as_mkdir_p='mkdir -p "$as_dir"'
22025else
22026  test -d ./-p && rmdir ./-p
22027  as_mkdir_p=false
22028fi
22029
22030
22031# as_fn_executable_p FILE
22032# -----------------------
22033# Test if FILE is an executable regular file.
22034as_fn_executable_p ()
22035{
22036  test -f "$1" && test -x "$1"
22037} # as_fn_executable_p
22038as_test_x='test -x'
22039as_executable_p=as_fn_executable_p
22040
22041# Sed expression to map a string onto a valid CPP name.
22042as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22043as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22044
22045# Sed expression to map a string onto a valid variable name.
22046as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22047as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22048
22049
22050exec 6>&1
22051## ----------------------------------- ##
22052## Main body of $CONFIG_STATUS script. ##
22053## ----------------------------------- ##
22054_ASEOF
22055test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22056
22057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22058# Save the log message, to keep $0 and so on meaningful, and to
22059# report actual input values of CONFIG_FILES etc. instead of their
22060# values after options handling.
22061ac_log="
22062This file was extended by libXdmcp $as_me 1.1.5, which was
22063generated by GNU Autoconf 2.72.  Invocation command line was
22064
22065  CONFIG_FILES    = $CONFIG_FILES
22066  CONFIG_HEADERS  = $CONFIG_HEADERS
22067  CONFIG_LINKS    = $CONFIG_LINKS
22068  CONFIG_COMMANDS = $CONFIG_COMMANDS
22069  $ $0 $@
22070
22071on `(hostname || uname -n) 2>/dev/null | sed 1q`
22072"
22073
22074_ACEOF
22075
22076case $ac_config_files in *"
22077"*) set x $ac_config_files; shift; ac_config_files=$*;;
22078esac
22079
22080case $ac_config_headers in *"
22081"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22082esac
22083
22084
22085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22086# Files that config.status was made for.
22087config_files="$ac_config_files"
22088config_headers="$ac_config_headers"
22089config_commands="$ac_config_commands"
22090
22091_ACEOF
22092
22093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094ac_cs_usage="\
22095'$as_me' instantiates files and other configuration actions
22096from templates according to the current configuration.  Unless the files
22097and actions are specified as TAGs, all are instantiated by default.
22098
22099Usage: $0 [OPTION]... [TAG]...
22100
22101  -h, --help       print this help, then exit
22102  -V, --version    print version number and configuration settings, then exit
22103      --config     print configuration, then exit
22104  -q, --quiet, --silent
22105                   do not print progress messages
22106  -d, --debug      don't remove temporary files
22107      --recheck    update $as_me by reconfiguring in the same conditions
22108      --file=FILE[:TEMPLATE]
22109                   instantiate the configuration file FILE
22110      --header=FILE[:TEMPLATE]
22111                   instantiate the configuration header FILE
22112
22113Configuration files:
22114$config_files
22115
22116Configuration headers:
22117$config_headers
22118
22119Configuration commands:
22120$config_commands
22121
22122Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>."
22123
22124_ACEOF
22125ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22126ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22128ac_cs_config='$ac_cs_config_escaped'
22129ac_cs_version="\\
22130libXdmcp config.status 1.1.5
22131configured by $0, generated by GNU Autoconf 2.72,
22132  with options \\"\$ac_cs_config\\"
22133
22134Copyright (C) 2023 Free Software Foundation, Inc.
22135This config.status script is free software; the Free Software Foundation
22136gives unlimited permission to copy, distribute and modify it."
22137
22138ac_pwd='$ac_pwd'
22139srcdir='$srcdir'
22140INSTALL='$INSTALL'
22141MKDIR_P='$MKDIR_P'
22142AWK='$AWK'
22143test -n "\$AWK" || AWK=awk
22144_ACEOF
22145
22146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147# The default lists apply if the user does not specify any file.
22148ac_need_defaults=:
22149while test $# != 0
22150do
22151  case $1 in
22152  --*=?*)
22153    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22154    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22155    ac_shift=:
22156    ;;
22157  --*=)
22158    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22159    ac_optarg=
22160    ac_shift=:
22161    ;;
22162  *)
22163    ac_option=$1
22164    ac_optarg=$2
22165    ac_shift=shift
22166    ;;
22167  esac
22168
22169  case $ac_option in
22170  # Handling of the options.
22171  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22172    ac_cs_recheck=: ;;
22173  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22174    printf "%s\n" "$ac_cs_version"; exit ;;
22175  --config | --confi | --conf | --con | --co | --c )
22176    printf "%s\n" "$ac_cs_config"; exit ;;
22177  --debug | --debu | --deb | --de | --d | -d )
22178    debug=: ;;
22179  --file | --fil | --fi | --f )
22180    $ac_shift
22181    case $ac_optarg in
22182    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22183    '') as_fn_error $? "missing file argument" ;;
22184    esac
22185    as_fn_append CONFIG_FILES " '$ac_optarg'"
22186    ac_need_defaults=false;;
22187  --header | --heade | --head | --hea )
22188    $ac_shift
22189    case $ac_optarg in
22190    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22191    esac
22192    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22193    ac_need_defaults=false;;
22194  --he | --h)
22195    # Conflict between --help and --header
22196    as_fn_error $? "ambiguous option: '$1'
22197Try '$0 --help' for more information.";;
22198  --help | --hel | -h )
22199    printf "%s\n" "$ac_cs_usage"; exit ;;
22200  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22201  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22202    ac_cs_silent=: ;;
22203
22204  # This is an error.
22205  -*) as_fn_error $? "unrecognized option: '$1'
22206Try '$0 --help' for more information." ;;
22207
22208  *) as_fn_append ac_config_targets " $1"
22209     ac_need_defaults=false ;;
22210
22211  esac
22212  shift
22213done
22214
22215ac_configure_extra_args=
22216
22217if $ac_cs_silent; then
22218  exec 6>/dev/null
22219  ac_configure_extra_args="$ac_configure_extra_args --silent"
22220fi
22221
22222_ACEOF
22223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22224if \$ac_cs_recheck; then
22225  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22226  shift
22227  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22228  CONFIG_SHELL='$SHELL'
22229  export CONFIG_SHELL
22230  exec "\$@"
22231fi
22232
22233_ACEOF
22234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22235exec 5>>config.log
22236{
22237  echo
22238  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22239## Running $as_me. ##
22240_ASBOX
22241  printf "%s\n" "$ac_log"
22242} >&5
22243
22244_ACEOF
22245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22246#
22247# INIT-COMMANDS
22248#
22249AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22250
22251
22252# The HP-UX ksh and POSIX shell print the target directory to stdout
22253# if CDPATH is set.
22254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22255
22256sed_quote_subst='$sed_quote_subst'
22257double_quote_subst='$double_quote_subst'
22258delay_variable_subst='$delay_variable_subst'
22259macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22260macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22261AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22262DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22263OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22264enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22265enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22266pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22267enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22268shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22269SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22270ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22271PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22272host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22273host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22274host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22275build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22276build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22277build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22278SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22279Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22280GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22281EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22282FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22283LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22284NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22285LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22286max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22287ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22288exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22289lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22290lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22291lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22292lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22293lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22294reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22295reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22296FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22297deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22298file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22299file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22300want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22301sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22302AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22303lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22304AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22305archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22306STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22307RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22308old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22309old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22310old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22311lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22312CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22313CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22314compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22315GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22316lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22317lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22318lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22319lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22320lt_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"`'
22321lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22322nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22323lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22324lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22325objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22326MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22327lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22328lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22329lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22330lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22331lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22332need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22333MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22334DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22335NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22336LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22337OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22338OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22339libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22340shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22341extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22342archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22343enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22344export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22345whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22346compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22347old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22348old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22349archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22350archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22351module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22352module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22353with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22354allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22355no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22356hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22357hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22358hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22359hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22360hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22361hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22362hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22363inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22364link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22365always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22366export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22367exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22368include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22369prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22370postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22371file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22372variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22373need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22374need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22375version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22376runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22377shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22378shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22379libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22380library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22381soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22382install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22383postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22384postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22385finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22386finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22387hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22388sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22389configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22390configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22391hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22392enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22393enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22394enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22395old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22396striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22397
22398LTCC='$LTCC'
22399LTCFLAGS='$LTCFLAGS'
22400compiler='$compiler_DEFAULT'
22401
22402# A function that is used when there is no print builtin or printf.
22403func_fallback_echo ()
22404{
22405  eval 'cat <<_LTECHO_EOF
22406\$1
22407_LTECHO_EOF'
22408}
22409
22410# Quote evaled strings.
22411for var in AS \
22412DLLTOOL \
22413OBJDUMP \
22414SHELL \
22415ECHO \
22416PATH_SEPARATOR \
22417SED \
22418GREP \
22419EGREP \
22420FGREP \
22421LD \
22422NM \
22423LN_S \
22424lt_SP2NL \
22425lt_NL2SP \
22426reload_flag \
22427FILECMD \
22428deplibs_check_method \
22429file_magic_cmd \
22430file_magic_glob \
22431want_nocaseglob \
22432sharedlib_from_linklib_cmd \
22433AR \
22434archiver_list_spec \
22435STRIP \
22436RANLIB \
22437CC \
22438CFLAGS \
22439compiler \
22440lt_cv_sys_global_symbol_pipe \
22441lt_cv_sys_global_symbol_to_cdecl \
22442lt_cv_sys_global_symbol_to_import \
22443lt_cv_sys_global_symbol_to_c_name_address \
22444lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22445lt_cv_nm_interface \
22446nm_file_list_spec \
22447lt_cv_truncate_bin \
22448lt_prog_compiler_no_builtin_flag \
22449lt_prog_compiler_pic \
22450lt_prog_compiler_wl \
22451lt_prog_compiler_static \
22452lt_cv_prog_compiler_c_o \
22453need_locks \
22454MANIFEST_TOOL \
22455DSYMUTIL \
22456NMEDIT \
22457LIPO \
22458OTOOL \
22459OTOOL64 \
22460shrext_cmds \
22461export_dynamic_flag_spec \
22462whole_archive_flag_spec \
22463compiler_needs_object \
22464with_gnu_ld \
22465allow_undefined_flag \
22466no_undefined_flag \
22467hardcode_libdir_flag_spec \
22468hardcode_libdir_separator \
22469exclude_expsyms \
22470include_expsyms \
22471file_list_spec \
22472variables_saved_for_relink \
22473libname_spec \
22474library_names_spec \
22475soname_spec \
22476install_override_mode \
22477finish_eval \
22478old_striplib \
22479striplib; do
22480    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22481    *[\\\\\\\`\\"\\\$]*)
22482      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22483      ;;
22484    *)
22485      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22486      ;;
22487    esac
22488done
22489
22490# Double-quote double-evaled strings.
22491for var in reload_cmds \
22492old_postinstall_cmds \
22493old_postuninstall_cmds \
22494old_archive_cmds \
22495extract_expsyms_cmds \
22496old_archive_from_new_cmds \
22497old_archive_from_expsyms_cmds \
22498archive_cmds \
22499archive_expsym_cmds \
22500module_cmds \
22501module_expsym_cmds \
22502export_symbols_cmds \
22503prelink_cmds \
22504postlink_cmds \
22505postinstall_cmds \
22506postuninstall_cmds \
22507finish_cmds \
22508sys_lib_search_path_spec \
22509configure_time_dlsearch_path \
22510configure_time_lt_sys_library_path; do
22511    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22512    *[\\\\\\\`\\"\\\$]*)
22513      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22514      ;;
22515    *)
22516      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22517      ;;
22518    esac
22519done
22520
22521ac_aux_dir='$ac_aux_dir'
22522
22523# See if we are running on zsh, and set the options that allow our
22524# commands through without removal of \ escapes INIT.
22525if test -n "\${ZSH_VERSION+set}"; then
22526   setopt NO_GLOB_SUBST
22527fi
22528
22529
22530    PACKAGE='$PACKAGE'
22531    VERSION='$VERSION'
22532    RM='$RM'
22533    ofile='$ofile'
22534
22535
22536
22537
22538_ACEOF
22539
22540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22541
22542# Handling of arguments.
22543for ac_config_target in $ac_config_targets
22544do
22545  case $ac_config_target in
22546    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22547    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22548    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22549    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22550    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22551    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22552    "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;;
22553
22554  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22555  esac
22556done
22557
22558
22559# If the user did not use the arguments to specify the items to instantiate,
22560# then the envvar interface is used.  Set only those that are not.
22561# We use the long form for the default assignment because of an extremely
22562# bizarre bug on SunOS 4.1.3.
22563if $ac_need_defaults; then
22564  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22565  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22566  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22567fi
22568
22569# Have a temporary directory for convenience.  Make it in the build tree
22570# simply because there is no reason against having it here, and in addition,
22571# creating and moving files from /tmp can sometimes cause problems.
22572# Hook for its removal unless debugging.
22573# Note that there is a small window in which the directory will not be cleaned:
22574# after its creation but before its name has been assigned to '$tmp'.
22575$debug ||
22576{
22577  tmp= ac_tmp=
22578  trap 'exit_status=$?
22579  : "${ac_tmp:=$tmp}"
22580  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22581' 0
22582  trap 'as_fn_exit 1' 1 2 13 15
22583}
22584# Create a (secure) tmp directory for tmp files.
22585
22586{
22587  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22588  test -d "$tmp"
22589}  ||
22590{
22591  tmp=./conf$$-$RANDOM
22592  (umask 077 && mkdir "$tmp")
22593} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22594ac_tmp=$tmp
22595
22596# Set up the scripts for CONFIG_FILES section.
22597# No need to generate them if there are no CONFIG_FILES.
22598# This happens for instance with './config.status config.h'.
22599if test -n "$CONFIG_FILES"; then
22600
22601
22602ac_cr=`echo X | tr X '\015'`
22603# On cygwin, bash can eat \r inside `` if the user requested igncr.
22604# But we know of no other shell where ac_cr would be empty at this
22605# point, so we can use a bashism as a fallback.
22606if test "x$ac_cr" = x; then
22607  eval ac_cr=\$\'\\r\'
22608fi
22609ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22610if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22611  ac_cs_awk_cr='\\r'
22612else
22613  ac_cs_awk_cr=$ac_cr
22614fi
22615
22616echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22617_ACEOF
22618
22619
22620{
22621  echo "cat >conf$$subs.awk <<_ACEOF" &&
22622  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22623  echo "_ACEOF"
22624} >conf$$subs.sh ||
22625  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22626ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22627ac_delim='%!_!# '
22628for ac_last_try in false false false false false :; do
22629  . ./conf$$subs.sh ||
22630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22631
22632  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22633  if test $ac_delim_n = $ac_delim_num; then
22634    break
22635  elif $ac_last_try; then
22636    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22637  else
22638    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22639  fi
22640done
22641rm -f conf$$subs.sh
22642
22643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22644cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22645_ACEOF
22646sed -n '
22647h
22648s/^/S["/; s/!.*/"]=/
22649p
22650g
22651s/^[^!]*!//
22652:repl
22653t repl
22654s/'"$ac_delim"'$//
22655t delim
22656:nl
22657h
22658s/\(.\{148\}\)..*/\1/
22659t more1
22660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22661p
22662n
22663b repl
22664:more1
22665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22666p
22667g
22668s/.\{148\}//
22669t nl
22670:delim
22671h
22672s/\(.\{148\}\)..*/\1/
22673t more2
22674s/["\\]/\\&/g; s/^/"/; s/$/"/
22675p
22676b
22677:more2
22678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22679p
22680g
22681s/.\{148\}//
22682t delim
22683' <conf$$subs.awk | sed '
22684/^[^""]/{
22685  N
22686  s/\n//
22687}
22688' >>$CONFIG_STATUS || ac_write_fail=1
22689rm -f conf$$subs.awk
22690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22691_ACAWK
22692cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22693  for (key in S) S_is_set[key] = 1
22694  FS = ""
22695
22696}
22697{
22698  line = $ 0
22699  nfields = split(line, field, "@")
22700  substed = 0
22701  len = length(field[1])
22702  for (i = 2; i < nfields; i++) {
22703    key = field[i]
22704    keylen = length(key)
22705    if (S_is_set[key]) {
22706      value = S[key]
22707      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22708      len += length(value) + length(field[++i])
22709      substed = 1
22710    } else
22711      len += 1 + keylen
22712  }
22713
22714  print line
22715}
22716
22717_ACAWK
22718_ACEOF
22719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22720if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22721  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22722else
22723  cat
22724fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22725  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22726_ACEOF
22727
22728# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22729# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22730# trailing colons and then remove the whole line if VPATH becomes empty
22731# (actually we leave an empty line to preserve line numbers).
22732if test "x$srcdir" = x.; then
22733  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22734h
22735s///
22736s/^/:/
22737s/[	 ]*$/:/
22738s/:\$(srcdir):/:/g
22739s/:\${srcdir}:/:/g
22740s/:@srcdir@:/:/g
22741s/^:*//
22742s/:*$//
22743x
22744s/\(=[	 ]*\).*/\1/
22745G
22746s/\n//
22747s/^[^=]*=[	 ]*$//
22748}'
22749fi
22750
22751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752fi # test -n "$CONFIG_FILES"
22753
22754# Set up the scripts for CONFIG_HEADERS section.
22755# No need to generate them if there are no CONFIG_HEADERS.
22756# This happens for instance with './config.status Makefile'.
22757if test -n "$CONFIG_HEADERS"; then
22758cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22759BEGIN {
22760_ACEOF
22761
22762# Transform confdefs.h into an awk script 'defines.awk', embedded as
22763# here-document in config.status, that substitutes the proper values into
22764# config.h.in to produce config.h.
22765
22766# Create a delimiter string that does not exist in confdefs.h, to ease
22767# handling of long lines.
22768ac_delim='%!_!# '
22769for ac_last_try in false false :; do
22770  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22771  if test -z "$ac_tt"; then
22772    break
22773  elif $ac_last_try; then
22774    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22775  else
22776    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22777  fi
22778done
22779
22780# For the awk script, D is an array of macro values keyed by name,
22781# likewise P contains macro parameters if any.  Preserve backslash
22782# newline sequences.
22783
22784ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22785sed -n '
22786s/.\{148\}/&'"$ac_delim"'/g
22787t rset
22788:rset
22789s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22790t def
22791d
22792:def
22793s/\\$//
22794t bsnl
22795s/["\\]/\\&/g
22796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22797D["\1"]=" \3"/p
22798s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22799d
22800:bsnl
22801s/["\\]/\\&/g
22802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22803D["\1"]=" \3\\\\\\n"\\/p
22804t cont
22805s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22806t cont
22807d
22808:cont
22809n
22810s/.\{148\}/&'"$ac_delim"'/g
22811t clear
22812:clear
22813s/\\$//
22814t bsnlc
22815s/["\\]/\\&/g; s/^/"/; s/$/"/p
22816d
22817:bsnlc
22818s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22819b cont
22820' <confdefs.h | sed '
22821s/'"$ac_delim"'/"\\\
22822"/g' >>$CONFIG_STATUS || ac_write_fail=1
22823
22824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22825  for (key in D) D_is_set[key] = 1
22826  FS = ""
22827}
22828/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22829  line = \$ 0
22830  split(line, arg, " ")
22831  if (arg[1] == "#") {
22832    defundef = arg[2]
22833    mac1 = arg[3]
22834  } else {
22835    defundef = substr(arg[1], 2)
22836    mac1 = arg[2]
22837  }
22838  split(mac1, mac2, "(") #)
22839  macro = mac2[1]
22840  prefix = substr(line, 1, index(line, defundef) - 1)
22841  if (D_is_set[macro]) {
22842    # Preserve the white space surrounding the "#".
22843    print prefix "define", macro P[macro] D[macro]
22844    next
22845  } else {
22846    # Replace #undef with comments.  This is necessary, for example,
22847    # in the case of _POSIX_SOURCE, which is predefined and required
22848    # on some systems where configure will not decide to define it.
22849    if (defundef == "undef") {
22850      print "/*", prefix defundef, macro, "*/"
22851      next
22852    }
22853  }
22854}
22855{ print }
22856_ACAWK
22857_ACEOF
22858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22859  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22860fi # test -n "$CONFIG_HEADERS"
22861
22862
22863eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22864shift
22865for ac_tag
22866do
22867  case $ac_tag in
22868  :[FHLC]) ac_mode=$ac_tag; continue;;
22869  esac
22870  case $ac_mode$ac_tag in
22871  :[FHL]*:*);;
22872  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22873  :[FH]-) ac_tag=-:-;;
22874  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22875  esac
22876  ac_save_IFS=$IFS
22877  IFS=:
22878  set x $ac_tag
22879  IFS=$ac_save_IFS
22880  shift
22881  ac_file=$1
22882  shift
22883
22884  case $ac_mode in
22885  :L) ac_source=$1;;
22886  :[FH])
22887    ac_file_inputs=
22888    for ac_f
22889    do
22890      case $ac_f in
22891      -) ac_f="$ac_tmp/stdin";;
22892      *) # Look for the file first in the build tree, then in the source tree
22893	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22894	 # because $ac_f cannot contain ':'.
22895	 test -f "$ac_f" ||
22896	   case $ac_f in
22897	   [\\/$]*) false;;
22898	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22899	   esac ||
22900	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22901      esac
22902      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22903      as_fn_append ac_file_inputs " '$ac_f'"
22904    done
22905
22906    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22907    # use $as_me), people would be surprised to read:
22908    #    /* config.h.  Generated by config.status.  */
22909    configure_input='Generated from '`
22910	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22911	`' by configure.'
22912    if test x"$ac_file" != x-; then
22913      configure_input="$ac_file.  $configure_input"
22914      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22915printf "%s\n" "$as_me: creating $ac_file" >&6;}
22916    fi
22917    # Neutralize special characters interpreted by sed in replacement strings.
22918    case $configure_input in #(
22919    *\&* | *\|* | *\\* )
22920       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22921       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22922    *) ac_sed_conf_input=$configure_input;;
22923    esac
22924
22925    case $ac_tag in
22926    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22927      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22928    esac
22929    ;;
22930  esac
22931
22932  ac_dir=`$as_dirname -- "$ac_file" ||
22933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22934	 X"$ac_file" : 'X\(//\)[^/]' \| \
22935	 X"$ac_file" : 'X\(//\)$' \| \
22936	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22937printf "%s\n" X"$ac_file" |
22938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22939	    s//\1/
22940	    q
22941	  }
22942	  /^X\(\/\/\)[^/].*/{
22943	    s//\1/
22944	    q
22945	  }
22946	  /^X\(\/\/\)$/{
22947	    s//\1/
22948	    q
22949	  }
22950	  /^X\(\/\).*/{
22951	    s//\1/
22952	    q
22953	  }
22954	  s/.*/./; q'`
22955  as_dir="$ac_dir"; as_fn_mkdir_p
22956  ac_builddir=.
22957
22958case "$ac_dir" in
22959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22960*)
22961  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22962  # A ".." for each directory in $ac_dir_suffix.
22963  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22964  case $ac_top_builddir_sub in
22965  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22966  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22967  esac ;;
22968esac
22969ac_abs_top_builddir=$ac_pwd
22970ac_abs_builddir=$ac_pwd$ac_dir_suffix
22971# for backward compatibility:
22972ac_top_builddir=$ac_top_build_prefix
22973
22974case $srcdir in
22975  .)  # We are building in place.
22976    ac_srcdir=.
22977    ac_top_srcdir=$ac_top_builddir_sub
22978    ac_abs_top_srcdir=$ac_pwd ;;
22979  [\\/]* | ?:[\\/]* )  # Absolute name.
22980    ac_srcdir=$srcdir$ac_dir_suffix;
22981    ac_top_srcdir=$srcdir
22982    ac_abs_top_srcdir=$srcdir ;;
22983  *) # Relative name.
22984    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22985    ac_top_srcdir=$ac_top_build_prefix$srcdir
22986    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22987esac
22988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22989
22990
22991  case $ac_mode in
22992  :F)
22993  #
22994  # CONFIG_FILE
22995  #
22996
22997  case $INSTALL in
22998  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22999  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23000  esac
23001  ac_MKDIR_P=$MKDIR_P
23002  case $MKDIR_P in
23003  [\\/$]* | ?:[\\/]* ) ;;
23004  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23005  esac
23006_ACEOF
23007
23008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23009# If the template does not know about datarootdir, expand it.
23010# FIXME: This hack should be removed a few years after 2.60.
23011ac_datarootdir_hack=; ac_datarootdir_seen=
23012ac_sed_dataroot='
23013/datarootdir/ {
23014  p
23015  q
23016}
23017/@datadir@/p
23018/@docdir@/p
23019/@infodir@/p
23020/@localedir@/p
23021/@mandir@/p'
23022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23023*datarootdir*) ac_datarootdir_seen=yes;;
23024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23026printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23027_ACEOF
23028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23029  ac_datarootdir_hack='
23030  s&@datadir@&$datadir&g
23031  s&@docdir@&$docdir&g
23032  s&@infodir@&$infodir&g
23033  s&@localedir@&$localedir&g
23034  s&@mandir@&$mandir&g
23035  s&\\\${datarootdir}&$datarootdir&g' ;;
23036esac
23037_ACEOF
23038
23039# Neutralize VPATH when '$srcdir' = '.'.
23040# Shell code in configure.ac might set extrasub.
23041# FIXME: do we really want to maintain this feature?
23042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23043ac_sed_extra="$ac_vpsub
23044$extrasub
23045_ACEOF
23046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047:t
23048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23049s|@configure_input@|$ac_sed_conf_input|;t t
23050s&@top_builddir@&$ac_top_builddir_sub&;t t
23051s&@top_build_prefix@&$ac_top_build_prefix&;t t
23052s&@srcdir@&$ac_srcdir&;t t
23053s&@abs_srcdir@&$ac_abs_srcdir&;t t
23054s&@top_srcdir@&$ac_top_srcdir&;t t
23055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23056s&@builddir@&$ac_builddir&;t t
23057s&@abs_builddir@&$ac_abs_builddir&;t t
23058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23059s&@INSTALL@&$ac_INSTALL&;t t
23060s&@MKDIR_P@&$ac_MKDIR_P&;t t
23061$ac_datarootdir_hack
23062"
23063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23064  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23065
23066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23067  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23068  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23069      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23071which seems to be undefined.  Please make sure it is defined" >&5
23072printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23073which seems to be undefined.  Please make sure it is defined" >&2;}
23074
23075  rm -f "$ac_tmp/stdin"
23076  case $ac_file in
23077  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23078  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23079  esac \
23080  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23081 ;;
23082  :H)
23083  #
23084  # CONFIG_HEADER
23085  #
23086  if test x"$ac_file" != x-; then
23087    {
23088      printf "%s\n" "/* $configure_input  */" >&1 \
23089      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23090    } >"$ac_tmp/config.h" \
23091      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23092    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23093      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23094printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23095    else
23096      rm -f "$ac_file"
23097      mv "$ac_tmp/config.h" "$ac_file" \
23098	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23099    fi
23100  else
23101    printf "%s\n" "/* $configure_input  */" >&1 \
23102      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23103      || as_fn_error $? "could not create -" "$LINENO" 5
23104  fi
23105# Compute "$ac_file"'s index in $config_headers.
23106_am_arg="$ac_file"
23107_am_stamp_count=1
23108for _am_header in $config_headers :; do
23109  case $_am_header in
23110    $_am_arg | $_am_arg:* )
23111      break ;;
23112    * )
23113      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23114  esac
23115done
23116echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23117$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23118	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23119	 X"$_am_arg" : 'X\(//\)$' \| \
23120	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23121printf "%s\n" X"$_am_arg" |
23122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23123	    s//\1/
23124	    q
23125	  }
23126	  /^X\(\/\/\)[^/].*/{
23127	    s//\1/
23128	    q
23129	  }
23130	  /^X\(\/\/\)$/{
23131	    s//\1/
23132	    q
23133	  }
23134	  /^X\(\/\).*/{
23135	    s//\1/
23136	    q
23137	  }
23138	  s/.*/./; q'`/stamp-h$_am_stamp_count
23139 ;;
23140
23141  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23142printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23143 ;;
23144  esac
23145
23146
23147  case $ac_file$ac_mode in
23148    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23149  # Older Autoconf quotes --file arguments for eval, but not when files
23150  # are listed without --file.  Let's play safe and only enable the eval
23151  # if we detect the quoting.
23152  # TODO: see whether this extra hack can be removed once we start
23153  # requiring Autoconf 2.70 or later.
23154  case $CONFIG_FILES in #(
23155  *\'*) :
23156    eval set x "$CONFIG_FILES" ;; #(
23157  *) :
23158    set x $CONFIG_FILES ;; #(
23159  *) :
23160     ;;
23161esac
23162  shift
23163  # Used to flag and report bootstrapping failures.
23164  am_rc=0
23165  for am_mf
23166  do
23167    # Strip MF so we end up with the name of the file.
23168    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23169    # Check whether this is an Automake generated Makefile which includes
23170    # dependency-tracking related rules and includes.
23171    # Grep'ing the whole file directly is not great: AIX grep has a line
23172    # limit of 2048, but all sed's we know have understand at least 4000.
23173    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23174      || continue
23175    am_dirpart=`$as_dirname -- "$am_mf" ||
23176$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177	 X"$am_mf" : 'X\(//\)[^/]' \| \
23178	 X"$am_mf" : 'X\(//\)$' \| \
23179	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23180printf "%s\n" X"$am_mf" |
23181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182	    s//\1/
23183	    q
23184	  }
23185	  /^X\(\/\/\)[^/].*/{
23186	    s//\1/
23187	    q
23188	  }
23189	  /^X\(\/\/\)$/{
23190	    s//\1/
23191	    q
23192	  }
23193	  /^X\(\/\).*/{
23194	    s//\1/
23195	    q
23196	  }
23197	  s/.*/./; q'`
23198    am_filepart=`$as_basename -- "$am_mf" ||
23199$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23200	 X"$am_mf" : 'X\(//\)$' \| \
23201	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23202printf "%s\n" X/"$am_mf" |
23203    sed '/^.*\/\([^/][^/]*\)\/*$/{
23204	    s//\1/
23205	    q
23206	  }
23207	  /^X\/\(\/\/\)$/{
23208	    s//\1/
23209	    q
23210	  }
23211	  /^X\/\(\/\).*/{
23212	    s//\1/
23213	    q
23214	  }
23215	  s/.*/./; q'`
23216    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23217      && sed -e '/# am--include-marker/d' "$am_filepart" \
23218        | $MAKE -f - am--depfiles" >&5
23219   (cd "$am_dirpart" \
23220      && sed -e '/# am--include-marker/d' "$am_filepart" \
23221        | $MAKE -f - am--depfiles) >&5 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } || am_rc=$?
23225  done
23226  if test $am_rc -ne 0; then
23227    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23228printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23229as_fn_error $? "Something went wrong bootstrapping makefile fragments
23230    for automatic dependency tracking.  If GNU make was not used, consider
23231    re-running the configure script with MAKE=\"gmake\" (or whatever is
23232    necessary).  You can also try re-running configure with the
23233    '--disable-dependency-tracking' option to at least be able to build
23234    the package (albeit without support for automatic dependency tracking).
23235See 'config.log' for more details" "$LINENO" 5; }
23236  fi
23237  { am_dirpart=; unset am_dirpart;}
23238  { am_filepart=; unset am_filepart;}
23239  { am_mf=; unset am_mf;}
23240  { am_rc=; unset am_rc;}
23241  rm -f conftest-deps.mk
23242}
23243 ;;
23244    "libtool":C)
23245
23246    # See if we are running on zsh, and set the options that allow our
23247    # commands through without removal of \ escapes.
23248    if test -n "${ZSH_VERSION+set}"; then
23249      setopt NO_GLOB_SUBST
23250    fi
23251
23252    cfgfile=${ofile}T
23253    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23254    $RM "$cfgfile"
23255
23256    cat <<_LT_EOF >> "$cfgfile"
23257#! $SHELL
23258# Generated automatically by $as_me ($PACKAGE) $VERSION
23259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23260# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23261
23262# Provide generalized library-building support services.
23263# Written by Gordon Matzigkeit, 1996
23264
23265# Copyright (C) 2014 Free Software Foundation, Inc.
23266# This is free software; see the source for copying conditions.  There is NO
23267# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23268
23269# GNU Libtool is free software; you can redistribute it and/or modify
23270# it under the terms of the GNU General Public License as published by
23271# the Free Software Foundation; either version 2 of of the License, or
23272# (at your option) any later version.
23273#
23274# As a special exception to the GNU General Public License, if you
23275# distribute this file as part of a program or library that is built
23276# using GNU Libtool, you may include this file under the  same
23277# distribution terms that you use for the rest of that program.
23278#
23279# GNU Libtool is distributed in the hope that it will be useful, but
23280# WITHOUT ANY WARRANTY; without even the implied warranty of
23281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23282# GNU General Public License for more details.
23283#
23284# You should have received a copy of the GNU General Public License
23285# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23286
23287
23288# The names of the tagged configurations supported by this script.
23289available_tags=''
23290
23291# Configured defaults for sys_lib_dlsearch_path munging.
23292: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23293
23294# ### BEGIN LIBTOOL CONFIG
23295
23296# Which release of libtool.m4 was used?
23297macro_version=$macro_version
23298macro_revision=$macro_revision
23299
23300# Assembler program.
23301AS=$lt_AS
23302
23303# DLL creation program.
23304DLLTOOL=$lt_DLLTOOL
23305
23306# Object dumper program.
23307OBJDUMP=$lt_OBJDUMP
23308
23309# Whether or not to build shared libraries.
23310build_libtool_libs=$enable_shared
23311
23312# Whether or not to build static libraries.
23313build_old_libs=$enable_static
23314
23315# What type of objects to build.
23316pic_mode=$pic_mode
23317
23318# Whether or not to optimize for fast installation.
23319fast_install=$enable_fast_install
23320
23321# Shared archive member basename,for filename based shared library versioning on AIX.
23322shared_archive_member_spec=$shared_archive_member_spec
23323
23324# Shell to use when invoking shell scripts.
23325SHELL=$lt_SHELL
23326
23327# An echo program that protects backslashes.
23328ECHO=$lt_ECHO
23329
23330# The PATH separator for the build system.
23331PATH_SEPARATOR=$lt_PATH_SEPARATOR
23332
23333# The host system.
23334host_alias=$host_alias
23335host=$host
23336host_os=$host_os
23337
23338# The build system.
23339build_alias=$build_alias
23340build=$build
23341build_os=$build_os
23342
23343# A sed program that does not truncate output.
23344SED=$lt_SED
23345
23346# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23347Xsed="\$SED -e 1s/^X//"
23348
23349# A grep program that handles long lines.
23350GREP=$lt_GREP
23351
23352# An ERE matcher.
23353EGREP=$lt_EGREP
23354
23355# A literal string matcher.
23356FGREP=$lt_FGREP
23357
23358# A BSD- or MS-compatible name lister.
23359NM=$lt_NM
23360
23361# Whether we need soft or hard links.
23362LN_S=$lt_LN_S
23363
23364# What is the maximum length of a command?
23365max_cmd_len=$max_cmd_len
23366
23367# Object file suffix (normally "o").
23368objext=$ac_objext
23369
23370# Executable file suffix (normally "").
23371exeext=$exeext
23372
23373# whether the shell understands "unset".
23374lt_unset=$lt_unset
23375
23376# turn spaces into newlines.
23377SP2NL=$lt_lt_SP2NL
23378
23379# turn newlines into spaces.
23380NL2SP=$lt_lt_NL2SP
23381
23382# convert \$build file names to \$host format.
23383to_host_file_cmd=$lt_cv_to_host_file_cmd
23384
23385# convert \$build files to toolchain format.
23386to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23387
23388# A file(cmd) program that detects file types.
23389FILECMD=$lt_FILECMD
23390
23391# Method to check whether dependent libraries are shared objects.
23392deplibs_check_method=$lt_deplibs_check_method
23393
23394# Command to use when deplibs_check_method = "file_magic".
23395file_magic_cmd=$lt_file_magic_cmd
23396
23397# How to find potential files when deplibs_check_method = "file_magic".
23398file_magic_glob=$lt_file_magic_glob
23399
23400# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23401want_nocaseglob=$lt_want_nocaseglob
23402
23403# Command to associate shared and link libraries.
23404sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23405
23406# The archiver.
23407AR=$lt_AR
23408
23409# Flags to create an archive (by configure).
23410lt_ar_flags=$lt_ar_flags
23411
23412# Flags to create an archive.
23413AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23414
23415# How to feed a file listing to the archiver.
23416archiver_list_spec=$lt_archiver_list_spec
23417
23418# A symbol stripping program.
23419STRIP=$lt_STRIP
23420
23421# Commands used to install an old-style archive.
23422RANLIB=$lt_RANLIB
23423old_postinstall_cmds=$lt_old_postinstall_cmds
23424old_postuninstall_cmds=$lt_old_postuninstall_cmds
23425
23426# Whether to use a lock for old archive extraction.
23427lock_old_archive_extraction=$lock_old_archive_extraction
23428
23429# A C compiler.
23430LTCC=$lt_CC
23431
23432# LTCC compiler flags.
23433LTCFLAGS=$lt_CFLAGS
23434
23435# Take the output of nm and produce a listing of raw symbols and C names.
23436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23437
23438# Transform the output of nm in a proper C declaration.
23439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23440
23441# Transform the output of nm into a list of symbols to manually relocate.
23442global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23443
23444# Transform the output of nm in a C name address pair.
23445global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23446
23447# Transform the output of nm in a C name address pair when lib prefix is needed.
23448global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23449
23450# The name lister interface.
23451nm_interface=$lt_lt_cv_nm_interface
23452
23453# Specify filename containing input files for \$NM.
23454nm_file_list_spec=$lt_nm_file_list_spec
23455
23456# The root where to search for dependent libraries,and where our libraries should be installed.
23457lt_sysroot=$lt_sysroot
23458
23459# Command to truncate a binary pipe.
23460lt_truncate_bin=$lt_lt_cv_truncate_bin
23461
23462# The name of the directory that contains temporary libtool files.
23463objdir=$objdir
23464
23465# Used to examine libraries when file_magic_cmd begins with "file".
23466MAGIC_CMD=$MAGIC_CMD
23467
23468# Must we lock files when doing compilation?
23469need_locks=$lt_need_locks
23470
23471# Manifest tool.
23472MANIFEST_TOOL=$lt_MANIFEST_TOOL
23473
23474# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23475DSYMUTIL=$lt_DSYMUTIL
23476
23477# Tool to change global to local symbols on Mac OS X.
23478NMEDIT=$lt_NMEDIT
23479
23480# Tool to manipulate fat objects and archives on Mac OS X.
23481LIPO=$lt_LIPO
23482
23483# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23484OTOOL=$lt_OTOOL
23485
23486# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23487OTOOL64=$lt_OTOOL64
23488
23489# Old archive suffix (normally "a").
23490libext=$libext
23491
23492# Shared library suffix (normally ".so").
23493shrext_cmds=$lt_shrext_cmds
23494
23495# The commands to extract the exported symbol list from a shared archive.
23496extract_expsyms_cmds=$lt_extract_expsyms_cmds
23497
23498# Variables whose values should be saved in libtool wrapper scripts and
23499# restored at link time.
23500variables_saved_for_relink=$lt_variables_saved_for_relink
23501
23502# Do we need the "lib" prefix for modules?
23503need_lib_prefix=$need_lib_prefix
23504
23505# Do we need a version for libraries?
23506need_version=$need_version
23507
23508# Library versioning type.
23509version_type=$version_type
23510
23511# Shared library runtime path variable.
23512runpath_var=$runpath_var
23513
23514# Shared library path variable.
23515shlibpath_var=$shlibpath_var
23516
23517# Is shlibpath searched before the hard-coded library search path?
23518shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23519
23520# Format of library name prefix.
23521libname_spec=$lt_libname_spec
23522
23523# List of archive names.  First name is the real one, the rest are links.
23524# The last name is the one that the linker finds with -lNAME
23525library_names_spec=$lt_library_names_spec
23526
23527# The coded name of the library, if different from the real name.
23528soname_spec=$lt_soname_spec
23529
23530# Permission mode override for installation of shared libraries.
23531install_override_mode=$lt_install_override_mode
23532
23533# Command to use after installation of a shared archive.
23534postinstall_cmds=$lt_postinstall_cmds
23535
23536# Command to use after uninstallation of a shared archive.
23537postuninstall_cmds=$lt_postuninstall_cmds
23538
23539# Commands used to finish a libtool library installation in a directory.
23540finish_cmds=$lt_finish_cmds
23541
23542# As "finish_cmds", except a single script fragment to be evaled but
23543# not shown.
23544finish_eval=$lt_finish_eval
23545
23546# Whether we should hardcode library paths into libraries.
23547hardcode_into_libs=$hardcode_into_libs
23548
23549# Compile-time system search path for libraries.
23550sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23551
23552# Detected run-time system search path for libraries.
23553sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23554
23555# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23556configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23557
23558# Whether dlopen is supported.
23559dlopen_support=$enable_dlopen
23560
23561# Whether dlopen of programs is supported.
23562dlopen_self=$enable_dlopen_self
23563
23564# Whether dlopen of statically linked programs is supported.
23565dlopen_self_static=$enable_dlopen_self_static
23566
23567# Commands to strip libraries.
23568old_striplib=$lt_old_striplib
23569striplib=$lt_striplib
23570
23571
23572# The linker used to build libraries.
23573LD=$lt_LD
23574
23575# How to create reloadable object files.
23576reload_flag=$lt_reload_flag
23577reload_cmds=$lt_reload_cmds
23578
23579# Commands used to build an old-style archive.
23580old_archive_cmds=$lt_old_archive_cmds
23581
23582# A language specific compiler.
23583CC=$lt_compiler
23584
23585# Is the compiler the GNU compiler?
23586with_gcc=$GCC
23587
23588# Compiler flag to turn off builtin functions.
23589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23590
23591# Additional compiler flags for building library objects.
23592pic_flag=$lt_lt_prog_compiler_pic
23593
23594# How to pass a linker flag through the compiler.
23595wl=$lt_lt_prog_compiler_wl
23596
23597# Compiler flag to prevent dynamic linking.
23598link_static_flag=$lt_lt_prog_compiler_static
23599
23600# Does compiler simultaneously support -c and -o options?
23601compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23602
23603# Whether or not to add -lc for building shared libraries.
23604build_libtool_need_lc=$archive_cmds_need_lc
23605
23606# Whether or not to disallow shared libs when runtime libs are static.
23607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23608
23609# Compiler flag to allow reflexive dlopens.
23610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23611
23612# Compiler flag to generate shared objects directly from archives.
23613whole_archive_flag_spec=$lt_whole_archive_flag_spec
23614
23615# Whether the compiler copes with passing no objects directly.
23616compiler_needs_object=$lt_compiler_needs_object
23617
23618# Create an old-style archive from a shared archive.
23619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23620
23621# Create a temporary old-style archive to link instead of a shared archive.
23622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23623
23624# Commands used to build a shared archive.
23625archive_cmds=$lt_archive_cmds
23626archive_expsym_cmds=$lt_archive_expsym_cmds
23627
23628# Commands used to build a loadable module if different from building
23629# a shared archive.
23630module_cmds=$lt_module_cmds
23631module_expsym_cmds=$lt_module_expsym_cmds
23632
23633# Whether we are building with GNU ld or not.
23634with_gnu_ld=$lt_with_gnu_ld
23635
23636# Flag that allows shared libraries with undefined symbols to be built.
23637allow_undefined_flag=$lt_allow_undefined_flag
23638
23639# Flag that enforces no undefined symbols.
23640no_undefined_flag=$lt_no_undefined_flag
23641
23642# Flag to hardcode \$libdir into a binary during linking.
23643# This must work even if \$libdir does not exist
23644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23645
23646# Whether we need a single "-rpath" flag with a separated argument.
23647hardcode_libdir_separator=$lt_hardcode_libdir_separator
23648
23649# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23650# DIR into the resulting binary.
23651hardcode_direct=$hardcode_direct
23652
23653# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23654# DIR into the resulting binary and the resulting library dependency is
23655# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23656# library is relocated.
23657hardcode_direct_absolute=$hardcode_direct_absolute
23658
23659# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23660# into the resulting binary.
23661hardcode_minus_L=$hardcode_minus_L
23662
23663# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23664# into the resulting binary.
23665hardcode_shlibpath_var=$hardcode_shlibpath_var
23666
23667# Set to "yes" if building a shared library automatically hardcodes DIR
23668# into the library and all subsequent libraries and executables linked
23669# against it.
23670hardcode_automatic=$hardcode_automatic
23671
23672# Set to yes if linker adds runtime paths of dependent libraries
23673# to runtime path list.
23674inherit_rpath=$inherit_rpath
23675
23676# Whether libtool must link a program against all its dependency libraries.
23677link_all_deplibs=$link_all_deplibs
23678
23679# Set to "yes" if exported symbols are required.
23680always_export_symbols=$always_export_symbols
23681
23682# The commands to list exported symbols.
23683export_symbols_cmds=$lt_export_symbols_cmds
23684
23685# Symbols that should not be listed in the preloaded symbols.
23686exclude_expsyms=$lt_exclude_expsyms
23687
23688# Symbols that must always be exported.
23689include_expsyms=$lt_include_expsyms
23690
23691# Commands necessary for linking programs (against libraries) with templates.
23692prelink_cmds=$lt_prelink_cmds
23693
23694# Commands necessary for finishing linking programs.
23695postlink_cmds=$lt_postlink_cmds
23696
23697# Specify filename containing input files.
23698file_list_spec=$lt_file_list_spec
23699
23700# How to hardcode a shared library path into an executable.
23701hardcode_action=$hardcode_action
23702
23703# ### END LIBTOOL CONFIG
23704
23705_LT_EOF
23706
23707    cat <<'_LT_EOF' >> "$cfgfile"
23708
23709# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23710
23711# func_munge_path_list VARIABLE PATH
23712# -----------------------------------
23713# VARIABLE is name of variable containing _space_ separated list of
23714# directories to be munged by the contents of PATH, which is string
23715# having a format:
23716# "DIR[:DIR]:"
23717#       string "DIR[ DIR]" will be prepended to VARIABLE
23718# ":DIR[:DIR]"
23719#       string "DIR[ DIR]" will be appended to VARIABLE
23720# "DIRP[:DIRP]::[DIRA:]DIRA"
23721#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23722#       "DIRA[ DIRA]" will be appended to VARIABLE
23723# "DIR[:DIR]"
23724#       VARIABLE will be replaced by "DIR[ DIR]"
23725func_munge_path_list ()
23726{
23727    case x$2 in
23728    x)
23729        ;;
23730    *:)
23731        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23732        ;;
23733    x:*)
23734        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23735        ;;
23736    *::*)
23737        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23738        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23739        ;;
23740    *)
23741        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23742        ;;
23743    esac
23744}
23745
23746
23747# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23748func_cc_basename ()
23749{
23750    for cc_temp in $*""; do
23751      case $cc_temp in
23752        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23753        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23754        \-*) ;;
23755        *) break;;
23756      esac
23757    done
23758    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23759}
23760
23761
23762# ### END FUNCTIONS SHARED WITH CONFIGURE
23763
23764_LT_EOF
23765
23766  case $host_os in
23767  aix3*)
23768    cat <<\_LT_EOF >> "$cfgfile"
23769# AIX sometimes has problems with the GCC collect2 program.  For some
23770# reason, if we set the COLLECT_NAMES environment variable, the problems
23771# vanish in a puff of smoke.
23772if test set != "${COLLECT_NAMES+set}"; then
23773  COLLECT_NAMES=
23774  export COLLECT_NAMES
23775fi
23776_LT_EOF
23777    ;;
23778  esac
23779
23780
23781
23782ltmain=$ac_aux_dir/ltmain.sh
23783
23784
23785  # We use sed instead of cat because bash on DJGPP gets confused if
23786  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23787  # text mode, it properly converts lines to CR/LF.  This bash problem
23788  # is reportedly fixed, but why not run on old versions too?
23789  $SED '$q' "$ltmain" >> "$cfgfile" \
23790     || (rm -f "$cfgfile"; exit 1)
23791
23792   mv -f "$cfgfile" "$ofile" ||
23793    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23794  chmod +x "$ofile"
23795
23796 ;;
23797
23798  esac
23799done # for ac_tag
23800
23801
23802as_fn_exit 0
23803_ACEOF
23804ac_clean_files=$ac_clean_files_save
23805
23806test $ac_write_fail = 0 ||
23807  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23808
23809
23810# configure is writing to config.log, and then calls config.status.
23811# config.status does its own redirection, appending to config.log.
23812# Unfortunately, on DOS this fails, as config.log is still kept open
23813# by configure, so config.status won't be able to write to it; its
23814# output is simply discarded.  So we exec the FD to /dev/null,
23815# effectively closing config.log, so it can be properly (re)opened and
23816# appended to by config.status.  When coming back to configure, we
23817# need to make the FD available again.
23818if test "$no_create" != yes; then
23819  ac_cs_success=:
23820  ac_config_status_args=
23821  test "$silent" = yes &&
23822    ac_config_status_args="$ac_config_status_args --quiet"
23823  exec 5>/dev/null
23824  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23825  exec 5>>config.log
23826  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23827  # would make configure fail if this is the last instruction.
23828  $ac_cs_success || as_fn_exit 1
23829fi
23830if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23832printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23833fi
23834
23835
23836