configure revision fdf6a26f
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXt 1.3.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601as_awk_strverscmp='
602  # Use only awk features that work with 7th edition Unix awk (1978).
603  # My, what an old awk you have, Mr. Solaris!
604  END {
605    while (length(v1) && length(v2)) {
606      # Set d1 to be the next thing to compare from v1, and likewise for d2.
607      # Normally this is a single character, but if v1 and v2 contain digits,
608      # compare them as integers and fractions as strverscmp does.
609      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610	# Split v1 and v2 into their leading digit string components d1 and d2,
611	# and advance v1 and v2 past the leading digit strings.
612	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616	if (d1 ~ /^0/) {
617	  if (d2 ~ /^0/) {
618	    # Compare two fractions.
619	    while (d1 ~ /^0/ && d2 ~ /^0/) {
620	      d1 = substr(d1, 2); len1--
621	      d2 = substr(d2, 2); len2--
622	    }
623	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624	      # The two components differ in length, and the common prefix
625	      # contains only leading zeros.  Consider the longer to be less.
626	      d1 = -len1
627	      d2 = -len2
628	    } else {
629	      # Otherwise, compare as strings.
630	      d1 = "x" d1
631	      d2 = "x" d2
632	    }
633	  } else {
634	    # A fraction is less than an integer.
635	    exit 1
636	  }
637	} else {
638	  if (d2 ~ /^0/) {
639	    # An integer is greater than a fraction.
640	    exit 2
641	  } else {
642	    # Compare two integers.
643	    d1 += 0
644	    d2 += 0
645	  }
646	}
647      } else {
648	# The normal case, without worrying about digits.
649	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651      }
652      if (d1 < d2) exit 1
653      if (d1 > d2) exit 2
654    }
655    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656    # which mishandles some comparisons of empty strings to integers.
657    if (length(v2)) exit 1
658    if (length(v1)) exit 2
659  }
660'
661
662test -n "$DJDIR" || exec 7<&0 </dev/null
663exec 6>&1
664
665# Name of the host.
666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667# so uname gets run too.
668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670#
671# Initializations.
672#
673ac_default_prefix=/usr/local
674ac_clean_files=
675ac_config_libobj_dir=.
676LIBOBJS=
677cross_compiling=no
678subdirs=
679MFLAGS=
680MAKEFLAGS=
681
682# Identity of this package.
683PACKAGE_NAME='libXt'
684PACKAGE_TARNAME='libXt'
685PACKAGE_VERSION='1.3.0'
686PACKAGE_STRING='libXt 1.3.0'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/'
688PACKAGE_URL=''
689
690ac_unique_file="Makefile.am"
691# Factoring default headers for most tests.
692ac_includes_default="\
693#include <stddef.h>
694#ifdef HAVE_STDIO_H
695# include <stdio.h>
696#endif
697#ifdef HAVE_STDLIB_H
698# include <stdlib.h>
699#endif
700#ifdef HAVE_STRING_H
701# include <string.h>
702#endif
703#ifdef HAVE_INTTYPES_H
704# include <inttypes.h>
705#endif
706#ifdef HAVE_STDINT_H
707# include <stdint.h>
708#endif
709#ifdef HAVE_STRINGS_H
710# include <strings.h>
711#endif
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef HAVE_UNISTD_H
719# include <unistd.h>
720#endif"
721
722ac_header_c_list=
723ac_subst_vars='am__EXEEXT_FALSE
724am__EXEEXT_TRUE
725LTLIBOBJS
726LIBOBJS
727ERRORDBDIR
728STRINGSABIOPTIONS
729appdefaultdir
730XFILESEARCHPATHDEFAULT
731HAVE_GLIB_FALSE
732HAVE_GLIB_TRUE
733GLIB_LIBS
734GLIB_CFLAGS
735ENABLE_UNIT_TESTS_FALSE
736ENABLE_UNIT_TESTS_TRUE
737XORG_MALLOC_DEBUG_ENV
738LDFLAGS_FOR_BUILD
739CFLAGS_FOR_BUILD
740CPPFLAGS_FOR_BUILD
741CC_FOR_BUILD
742XT_LIBS
743XT_CFLAGS
744HAVE_PERL_FALSE
745HAVE_PERL_TRUE
746PERL
747TRADITIONALCPPFLAGS
748RAWCPPFLAGS
749RAWCPP
750CPP
751HAVE_STYLESHEETS_FALSE
752HAVE_STYLESHEETS_TRUE
753XSL_STYLESHEET
754STYLESHEET_SRCDIR
755XORG_SGML_PATH
756HAVE_XSLTPROC_FALSE
757HAVE_XSLTPROC_TRUE
758XSLTPROC
759HAVE_FOP_FALSE
760HAVE_FOP_TRUE
761FOP
762HAVE_XMLTO_FALSE
763HAVE_XMLTO_TRUE
764HAVE_XMLTO_TEXT_FALSE
765HAVE_XMLTO_TEXT_TRUE
766XMLTO
767ENABLE_SPECS_FALSE
768ENABLE_SPECS_TRUE
769XTMALLOC_ZERO_CFLAGS
770XMALLOC_ZERO_CFLAGS
771MALLOC_ZERO_CFLAGS
772MAN_SUBSTS
773XORG_MAN_PAGE
774ADMIN_MAN_DIR
775DRIVER_MAN_DIR
776MISC_MAN_DIR
777FILE_MAN_DIR
778LIB_MAN_DIR
779APP_MAN_DIR
780ADMIN_MAN_SUFFIX
781DRIVER_MAN_SUFFIX
782MISC_MAN_SUFFIX
783FILE_MAN_SUFFIX
784LIB_MAN_SUFFIX
785APP_MAN_SUFFIX
786INSTALL_CMD
787PKG_CONFIG_LIBDIR
788PKG_CONFIG_PATH
789PKG_CONFIG
790CHANGELOG_CMD
791STRICT_CFLAGS
792CWARNFLAGS
793BASE_CFLAGS
794LT_SYS_LIBRARY_PATH
795OTOOL64
796OTOOL
797LIPO
798NMEDIT
799DSYMUTIL
800MANIFEST_TOOL
801RANLIB
802ac_ct_AR
803AR
804DLLTOOL
805OBJDUMP
806FILECMD
807LN_S
808NM
809ac_ct_DUMPBIN
810DUMPBIN
811LD
812FGREP
813EGREP
814GREP
815SED
816host_os
817host_vendor
818host_cpu
819host
820build_os
821build_vendor
822build_cpu
823build
824LIBTOOL
825AM_BACKSLASH
826AM_DEFAULT_VERBOSITY
827AM_DEFAULT_V
828AM_V
829CSCOPE
830ETAGS
831CTAGS
832am__fastdepCC_FALSE
833am__fastdepCC_TRUE
834CCDEPMODE
835am__nodep
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__include
840DEPDIR
841am__untar
842am__tar
843AMTAR
844am__leading_dot
845SET_MAKE
846AWK
847mkdir_p
848MKDIR_P
849INSTALL_STRIP_PROGRAM
850STRIP
851install_sh
852MAKEINFO
853AUTOHEADER
854AUTOMAKE
855AUTOCONF
856ACLOCAL
857VERSION
858PACKAGE
859CYGPATH_W
860am__isrc
861INSTALL_DATA
862INSTALL_SCRIPT
863INSTALL_PROGRAM
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871target_alias
872host_alias
873build_alias
874LIBS
875ECHO_T
876ECHO_N
877ECHO_C
878DEFS
879mandir
880localedir
881libdir
882psdir
883pdfdir
884dvidir
885htmldir
886infodir
887docdir
888oldincludedir
889includedir
890runstatedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_URL
903PACKAGE_BUGREPORT
904PACKAGE_STRING
905PACKAGE_VERSION
906PACKAGE_TARNAME
907PACKAGE_NAME
908PATH_SEPARATOR
909SHELL
910am__quote'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_dependency_tracking
915enable_silent_rules
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920with_aix_soname
921with_gnu_ld
922with_sysroot
923enable_libtool_lock
924enable_selective_werror
925enable_strict_compilation
926enable_malloc0returnsnull
927enable_specs
928with_xmlto
929with_fop
930with_xsltproc
931with_perl
932enable_xkb
933enable_const
934enable_geo_tattler
935enable_unit_tests
936with_glib
937with_xfile_search_path
938with_appdefaultdir
939'
940      ac_precious_vars='build_alias
941host_alias
942target_alias
943CC
944CFLAGS
945LDFLAGS
946LIBS
947CPPFLAGS
948LT_SYS_LIBRARY_PATH
949PKG_CONFIG
950PKG_CONFIG_PATH
951PKG_CONFIG_LIBDIR
952XMLTO
953FOP
954XSLTPROC
955CPP
956PERL
957XT_CFLAGS
958XT_LIBS
959XORG_MALLOC_DEBUG_ENV
960GLIB_CFLAGS
961GLIB_LIBS'
962
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
967ac_unrecognized_opts=
968ac_unrecognized_sep=
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000runstatedir='${localstatedir}/run'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *=)   ac_optarg= ;;
1027  *)    ac_optarg=yes ;;
1028  esac
1029
1030  case $ac_dashdash$ac_option in
1031  --)
1032    ac_dashdash=yes ;;
1033
1034  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035    ac_prev=bindir ;;
1036  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037    bindir=$ac_optarg ;;
1038
1039  -build | --build | --buil | --bui | --bu)
1040    ac_prev=build_alias ;;
1041  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042    build_alias=$ac_optarg ;;
1043
1044  -cache-file | --cache-file | --cache-fil | --cache-fi \
1045  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046    ac_prev=cache_file ;;
1047  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049    cache_file=$ac_optarg ;;
1050
1051  --config-cache | -C)
1052    cache_file=config.cache ;;
1053
1054  -datadir | --datadir | --datadi | --datad)
1055    ac_prev=datadir ;;
1056  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057    datadir=$ac_optarg ;;
1058
1059  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060  | --dataroo | --dataro | --datar)
1061    ac_prev=datarootdir ;;
1062  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064    datarootdir=$ac_optarg ;;
1065
1066  -disable-* | --disable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"enable_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval enable_$ac_useropt=no ;;
1081
1082  -docdir | --docdir | --docdi | --doc | --do)
1083    ac_prev=docdir ;;
1084  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085    docdir=$ac_optarg ;;
1086
1087  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088    ac_prev=dvidir ;;
1089  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090    dvidir=$ac_optarg ;;
1091
1092  -enable-* | --enable-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"enable_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104	 ac_unrecognized_sep=', ';;
1105    esac
1106    eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110  | --exec | --exe | --ex)
1111    ac_prev=exec_prefix ;;
1112  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114  | --exec=* | --exe=* | --ex=*)
1115    exec_prefix=$ac_optarg ;;
1116
1117  -gas | --gas | --ga | --g)
1118    # Obsolete; use --with-gas.
1119    with_gas=yes ;;
1120
1121  -help | --help | --hel | --he | -h)
1122    ac_init_help=long ;;
1123  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124    ac_init_help=recursive ;;
1125  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126    ac_init_help=short ;;
1127
1128  -host | --host | --hos | --ho)
1129    ac_prev=host_alias ;;
1130  -host=* | --host=* | --hos=* | --ho=*)
1131    host_alias=$ac_optarg ;;
1132
1133  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134    ac_prev=htmldir ;;
1135  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136  | --ht=*)
1137    htmldir=$ac_optarg ;;
1138
1139  -includedir | --includedir | --includedi | --included | --include \
1140  | --includ | --inclu | --incl | --inc)
1141    ac_prev=includedir ;;
1142  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143  | --includ=* | --inclu=* | --incl=* | --inc=*)
1144    includedir=$ac_optarg ;;
1145
1146  -infodir | --infodir | --infodi | --infod | --info | --inf)
1147    ac_prev=infodir ;;
1148  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149    infodir=$ac_optarg ;;
1150
1151  -libdir | --libdir | --libdi | --libd)
1152    ac_prev=libdir ;;
1153  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154    libdir=$ac_optarg ;;
1155
1156  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157  | --libexe | --libex | --libe)
1158    ac_prev=libexecdir ;;
1159  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160  | --libexe=* | --libex=* | --libe=*)
1161    libexecdir=$ac_optarg ;;
1162
1163  -localedir | --localedir | --localedi | --localed | --locale)
1164    ac_prev=localedir ;;
1165  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166    localedir=$ac_optarg ;;
1167
1168  -localstatedir | --localstatedir | --localstatedi | --localstated \
1169  | --localstate | --localstat | --localsta | --localst | --locals)
1170    ac_prev=localstatedir ;;
1171  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173    localstatedir=$ac_optarg ;;
1174
1175  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176    ac_prev=mandir ;;
1177  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178    mandir=$ac_optarg ;;
1179
1180  -nfp | --nfp | --nf)
1181    # Obsolete; use --without-fp.
1182    with_fp=no ;;
1183
1184  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185  | --no-cr | --no-c | -n)
1186    no_create=yes ;;
1187
1188  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190    no_recursion=yes ;;
1191
1192  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194  | --oldin | --oldi | --old | --ol | --o)
1195    ac_prev=oldincludedir ;;
1196  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199    oldincludedir=$ac_optarg ;;
1200
1201  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202    ac_prev=prefix ;;
1203  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204    prefix=$ac_optarg ;;
1205
1206  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207  | --program-pre | --program-pr | --program-p)
1208    ac_prev=program_prefix ;;
1209  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211    program_prefix=$ac_optarg ;;
1212
1213  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214  | --program-suf | --program-su | --program-s)
1215    ac_prev=program_suffix ;;
1216  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218    program_suffix=$ac_optarg ;;
1219
1220  -program-transform-name | --program-transform-name \
1221  | --program-transform-nam | --program-transform-na \
1222  | --program-transform-n | --program-transform- \
1223  | --program-transform | --program-transfor \
1224  | --program-transfo | --program-transf \
1225  | --program-trans | --program-tran \
1226  | --progr-tra | --program-tr | --program-t)
1227    ac_prev=program_transform_name ;;
1228  -program-transform-name=* | --program-transform-name=* \
1229  | --program-transform-nam=* | --program-transform-na=* \
1230  | --program-transform-n=* | --program-transform-=* \
1231  | --program-transform=* | --program-transfor=* \
1232  | --program-transfo=* | --program-transf=* \
1233  | --program-trans=* | --program-tran=* \
1234  | --progr-tra=* | --program-tr=* | --program-t=*)
1235    program_transform_name=$ac_optarg ;;
1236
1237  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238    ac_prev=pdfdir ;;
1239  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240    pdfdir=$ac_optarg ;;
1241
1242  -psdir | --psdir | --psdi | --psd | --ps)
1243    ac_prev=psdir ;;
1244  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245    psdir=$ac_optarg ;;
1246
1247  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248  | -silent | --silent | --silen | --sile | --sil)
1249    silent=yes ;;
1250
1251  -runstatedir | --runstatedir | --runstatedi | --runstated \
1252  | --runstate | --runstat | --runsta | --runst | --runs \
1253  | --run | --ru | --r)
1254    ac_prev=runstatedir ;;
1255  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1256  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1257  | --run=* | --ru=* | --r=*)
1258    runstatedir=$ac_optarg ;;
1259
1260  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261    ac_prev=sbindir ;;
1262  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263  | --sbi=* | --sb=*)
1264    sbindir=$ac_optarg ;;
1265
1266  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268  | --sharedst | --shareds | --shared | --share | --shar \
1269  | --sha | --sh)
1270    ac_prev=sharedstatedir ;;
1271  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274  | --sha=* | --sh=*)
1275    sharedstatedir=$ac_optarg ;;
1276
1277  -site | --site | --sit)
1278    ac_prev=site ;;
1279  -site=* | --site=* | --sit=*)
1280    site=$ac_optarg ;;
1281
1282  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283    ac_prev=srcdir ;;
1284  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285    srcdir=$ac_optarg ;;
1286
1287  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288  | --syscon | --sysco | --sysc | --sys | --sy)
1289    ac_prev=sysconfdir ;;
1290  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292    sysconfdir=$ac_optarg ;;
1293
1294  -target | --target | --targe | --targ | --tar | --ta | --t)
1295    ac_prev=target_alias ;;
1296  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297    target_alias=$ac_optarg ;;
1298
1299  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300    verbose=yes ;;
1301
1302  -version | --version | --versio | --versi | --vers | -V)
1303    ac_init_version=: ;;
1304
1305  -with-* | --with-*)
1306    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307    # Reject names that are not valid shell variable names.
1308    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309      as_fn_error $? "invalid package name: \`$ac_useropt'"
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"with_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval with_$ac_useropt=\$ac_optarg ;;
1320
1321  -without-* | --without-*)
1322    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323    # Reject names that are not valid shell variable names.
1324    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325      as_fn_error $? "invalid package name: \`$ac_useropt'"
1326    ac_useropt_orig=$ac_useropt
1327    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1328    case $ac_user_opts in
1329      *"
1330"with_$ac_useropt"
1331"*) ;;
1332      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333	 ac_unrecognized_sep=', ';;
1334    esac
1335    eval with_$ac_useropt=no ;;
1336
1337  --x)
1338    # Obsolete; use --with-x.
1339    with_x=yes ;;
1340
1341  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342  | --x-incl | --x-inc | --x-in | --x-i)
1343    ac_prev=x_includes ;;
1344  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346    x_includes=$ac_optarg ;;
1347
1348  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350    ac_prev=x_libraries ;;
1351  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353    x_libraries=$ac_optarg ;;
1354
1355  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356Try \`$0 --help' for more information"
1357    ;;
1358
1359  *=*)
1360    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361    # Reject names that are not valid shell variable names.
1362    case $ac_envvar in #(
1363      '' | [0-9]* | *[!_$as_cr_alnum]* )
1364      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365    esac
1366    eval $ac_envvar=\$ac_optarg
1367    export $ac_envvar ;;
1368
1369  *)
1370    # FIXME: should be removed in autoconf 3.0.
1371    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1372    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1374    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1375    ;;
1376
1377  esac
1378done
1379
1380if test -n "$ac_prev"; then
1381  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382  as_fn_error $? "missing argument to $ac_option"
1383fi
1384
1385if test -n "$ac_unrecognized_opts"; then
1386  case $enable_option_checking in
1387    no) ;;
1388    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390  esac
1391fi
1392
1393# Check all directory arguments for consistency.
1394for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395		datadir sysconfdir sharedstatedir localstatedir includedir \
1396		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397		libdir localedir mandir runstatedir
1398do
1399  eval ac_val=\$$ac_var
1400  # Remove trailing slashes.
1401  case $ac_val in
1402    */ )
1403      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404      eval $ac_var=\$ac_val;;
1405  esac
1406  # Be sure to have absolute directory names.
1407  case $ac_val in
1408    [\\/$]* | ?:[\\/]* )  continue;;
1409    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410  esac
1411  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412done
1413
1414# There might be people who depend on the old broken behavior: `$host'
1415# used to hold the argument of --host etc.
1416# FIXME: To remove some day.
1417build=$build_alias
1418host=$host_alias
1419target=$target_alias
1420
1421# FIXME: To remove some day.
1422if test "x$host_alias" != x; then
1423  if test "x$build_alias" = x; then
1424    cross_compiling=maybe
1425  elif test "x$build_alias" != "x$host_alias"; then
1426    cross_compiling=yes
1427  fi
1428fi
1429
1430ac_tool_prefix=
1431test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433test "$silent" = yes && exec 6>/dev/null
1434
1435
1436ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437ac_ls_di=`ls -di .` &&
1438ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439  as_fn_error $? "working directory cannot be determined"
1440test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441  as_fn_error $? "pwd does not report name of working directory"
1442
1443
1444# Find the source files, if location was not specified.
1445if test -z "$srcdir"; then
1446  ac_srcdir_defaulted=yes
1447  # Try the directory containing this script, then the parent directory.
1448  ac_confdir=`$as_dirname -- "$as_myself" ||
1449$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450	 X"$as_myself" : 'X\(//\)[^/]' \| \
1451	 X"$as_myself" : 'X\(//\)$' \| \
1452	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453printf "%s\n" X"$as_myself" |
1454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455	    s//\1/
1456	    q
1457	  }
1458	  /^X\(\/\/\)[^/].*/{
1459	    s//\1/
1460	    q
1461	  }
1462	  /^X\(\/\/\)$/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\).*/{
1467	    s//\1/
1468	    q
1469	  }
1470	  s/.*/./; q'`
1471  srcdir=$ac_confdir
1472  if test ! -r "$srcdir/$ac_unique_file"; then
1473    srcdir=..
1474  fi
1475else
1476  ac_srcdir_defaulted=no
1477fi
1478if test ! -r "$srcdir/$ac_unique_file"; then
1479  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1481fi
1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483ac_abs_confdir=`(
1484	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485	pwd)`
1486# When building in place, set srcdir=.
1487if test "$ac_abs_confdir" = "$ac_pwd"; then
1488  srcdir=.
1489fi
1490# Remove unnecessary trailing slashes from srcdir.
1491# Double slashes in file names in object file debugging info
1492# mess up M-x gdb in Emacs.
1493case $srcdir in
1494*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495esac
1496for ac_var in $ac_precious_vars; do
1497  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498  eval ac_env_${ac_var}_value=\$${ac_var}
1499  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501done
1502
1503#
1504# Report the --help message.
1505#
1506if test "$ac_init_help" = "long"; then
1507  # Omit some internal or obsolete options to make the list less imposing.
1508  # This message is too long to be a string in the A/UX 3.1 sh.
1509  cat <<_ACEOF
1510\`configure' configures libXt 1.3.0 to adapt to many kinds of systems.
1511
1512Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515VAR=VALUE.  See below for descriptions of some of the useful variables.
1516
1517Defaults for the options are specified in brackets.
1518
1519Configuration:
1520  -h, --help              display this help and exit
1521      --help=short        display options specific to this package
1522      --help=recursive    display the short help of all the included packages
1523  -V, --version           display version information and exit
1524  -q, --quiet, --silent   do not print \`checking ...' messages
1525      --cache-file=FILE   cache test results in FILE [disabled]
1526  -C, --config-cache      alias for \`--cache-file=config.cache'
1527  -n, --no-create         do not create output files
1528      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1529
1530Installation directories:
1531  --prefix=PREFIX         install architecture-independent files in PREFIX
1532                          [$ac_default_prefix]
1533  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1534                          [PREFIX]
1535
1536By default, \`make install' will install all the files in
1537\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1538an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539for instance \`--prefix=\$HOME'.
1540
1541For better control, use the options below.
1542
1543Fine tuning of the installation directories:
1544  --bindir=DIR            user executables [EPREFIX/bin]
1545  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1546  --libexecdir=DIR        program executables [EPREFIX/libexec]
1547  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1548  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1549  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1550  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1551  --libdir=DIR            object code libraries [EPREFIX/lib]
1552  --includedir=DIR        C header files [PREFIX/include]
1553  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1554  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1555  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1556  --infodir=DIR           info documentation [DATAROOTDIR/info]
1557  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1558  --mandir=DIR            man documentation [DATAROOTDIR/man]
1559  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXt]
1560  --htmldir=DIR           html documentation [DOCDIR]
1561  --dvidir=DIR            dvi documentation [DOCDIR]
1562  --pdfdir=DIR            pdf documentation [DOCDIR]
1563  --psdir=DIR             ps documentation [DOCDIR]
1564_ACEOF
1565
1566  cat <<\_ACEOF
1567
1568Program names:
1569  --program-prefix=PREFIX            prepend PREFIX to installed program names
1570  --program-suffix=SUFFIX            append SUFFIX to installed program names
1571  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1572
1573System types:
1574  --build=BUILD     configure for building on BUILD [guessed]
1575  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1576_ACEOF
1577fi
1578
1579if test -n "$ac_init_help"; then
1580  case $ac_init_help in
1581     short | recursive ) echo "Configuration of libXt 1.3.0:";;
1582   esac
1583  cat <<\_ACEOF
1584
1585Optional Features:
1586  --disable-option-checking  ignore unrecognized --enable/--with options
1587  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1588  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1589  --enable-dependency-tracking
1590                          do not reject slow dependency extractors
1591  --disable-dependency-tracking
1592                          speeds up one-time build
1593  --enable-silent-rules   less verbose build output (undo: "make V=1")
1594  --disable-silent-rules  verbose build output (undo: "make V=0")
1595  --enable-shared[=PKGS]  build shared libraries [default=yes]
1596  --enable-static[=PKGS]  build static libraries [default=yes]
1597  --enable-fast-install[=PKGS]
1598                          optimize for fast installation [default=yes]
1599  --disable-libtool-lock  avoid locking (might break parallel builds)
1600  --disable-selective-werror
1601                          Turn off selective compiler errors. (default:
1602                          enabled)
1603  --enable-strict-compilation
1604                          Enable all warnings from compiler and make them
1605                          errors (default: disabled)
1606  --enable-malloc0returnsnull
1607                          malloc(0) returns NULL (default: auto)
1608  --enable-specs          Enable building the specs (default: yes)
1609  --disable-xkb           Disable XKB support
1610  --disable-const         Disable const-support
1611  --enable-geo-tattler    Enable geo-tattler traces
1612  --enable-unit-tests     Enable building unit test cases (default: auto)
1613
1614Optional Packages:
1615  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1617  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1618                          both]
1619  --with-aix-soname=aix|svr4|both
1620                          shared library versioning (aka "SONAME") variant to
1621                          provide on AIX, [default=aix].
1622  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1623  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1624                          compiler's sysroot if not specified).
1625  --with-xmlto            Use xmlto to regenerate documentation (default:
1626                          auto)
1627  --with-fop              Use fop to regenerate documentation (default: auto)
1628  --with-xsltproc         Use xsltproc for the transformation of XML documents
1629                          (default: auto)
1630  --with-perl             Use perl for extracting information from files
1631                          (default: auto)
1632  --with-glib             Use GLib library for unit testing (default: auto)
1633  --with-xfile-search-path=<path>
1634                          Set path to search for app-defaults and other files
1635  --with-appdefaultdir=<path>
1636                          Set app-default directory (default:
1637                          ${datadir}/X11/app-defaults)
1638
1639Some influential environment variables:
1640  CC          C compiler command
1641  CFLAGS      C compiler flags
1642  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1643              nonstandard directory <lib dir>
1644  LIBS        libraries to pass to the linker, e.g. -l<library>
1645  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1646              you have headers in a nonstandard directory <include dir>
1647  LT_SYS_LIBRARY_PATH
1648              User-defined run-time library search path.
1649  PKG_CONFIG  path to pkg-config utility
1650  PKG_CONFIG_PATH
1651              directories to add to pkg-config's search path
1652  PKG_CONFIG_LIBDIR
1653              path overriding pkg-config's built-in search path
1654  XMLTO       Path to xmlto command
1655  FOP         Path to fop command
1656  XSLTPROC    Path to xsltproc command
1657  CPP         C preprocessor
1658  PERL        Path to perl command
1659  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1660  XT_LIBS     linker flags for XT, overriding pkg-config
1661  XORG_MALLOC_DEBUG_ENV
1662              Environment variables to enable memory checking in tests
1663  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1664  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1665
1666Use these variables to override the choices made by `configure' or to help
1667it to find libraries and programs with nonstandard names/locations.
1668
1669Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/>.
1670_ACEOF
1671ac_status=$?
1672fi
1673
1674if test "$ac_init_help" = "recursive"; then
1675  # If there are subdirs, report their specific --help.
1676  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677    test -d "$ac_dir" ||
1678      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1679      continue
1680    ac_builddir=.
1681
1682case "$ac_dir" in
1683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684*)
1685  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1686  # A ".." for each directory in $ac_dir_suffix.
1687  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688  case $ac_top_builddir_sub in
1689  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1691  esac ;;
1692esac
1693ac_abs_top_builddir=$ac_pwd
1694ac_abs_builddir=$ac_pwd$ac_dir_suffix
1695# for backward compatibility:
1696ac_top_builddir=$ac_top_build_prefix
1697
1698case $srcdir in
1699  .)  # We are building in place.
1700    ac_srcdir=.
1701    ac_top_srcdir=$ac_top_builddir_sub
1702    ac_abs_top_srcdir=$ac_pwd ;;
1703  [\\/]* | ?:[\\/]* )  # Absolute name.
1704    ac_srcdir=$srcdir$ac_dir_suffix;
1705    ac_top_srcdir=$srcdir
1706    ac_abs_top_srcdir=$srcdir ;;
1707  *) # Relative name.
1708    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709    ac_top_srcdir=$ac_top_build_prefix$srcdir
1710    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711esac
1712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713
1714    cd "$ac_dir" || { ac_status=$?; continue; }
1715    # Check for configure.gnu first; this name is used for a wrapper for
1716    # Metaconfig's "Configure" on case-insensitive file systems.
1717    if test -f "$ac_srcdir/configure.gnu"; then
1718      echo &&
1719      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720    elif test -f "$ac_srcdir/configure"; then
1721      echo &&
1722      $SHELL "$ac_srcdir/configure" --help=recursive
1723    else
1724      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725    fi || ac_status=$?
1726    cd "$ac_pwd" || { ac_status=$?; break; }
1727  done
1728fi
1729
1730test -n "$ac_init_help" && exit $ac_status
1731if $ac_init_version; then
1732  cat <<\_ACEOF
1733libXt configure 1.3.0
1734generated by GNU Autoconf 2.71
1735
1736Copyright (C) 2021 Free Software Foundation, Inc.
1737This configure script is free software; the Free Software Foundation
1738gives unlimited permission to copy, distribute and modify it.
1739_ACEOF
1740  exit
1741fi
1742
1743## ------------------------ ##
1744## Autoconf initialization. ##
1745## ------------------------ ##
1746
1747# ac_fn_c_try_compile LINENO
1748# --------------------------
1749# Try to compile conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_compile ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  rm -f conftest.$ac_objext conftest.beam
1754  if { { ac_try="$ac_compile"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760printf "%s\n" "$ac_try_echo"; } >&5
1761  (eval "$ac_compile") 2>conftest.err
1762  ac_status=$?
1763  if test -s conftest.err; then
1764    grep -v '^ *+' conftest.err >conftest.er1
1765    cat conftest.er1 >&5
1766    mv -f conftest.er1 conftest.err
1767  fi
1768  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && {
1770	 test -z "$ac_c_werror_flag" ||
1771	 test ! -s conftest.err
1772       } && test -s conftest.$ac_objext
1773then :
1774  ac_retval=0
1775else $as_nop
1776  printf "%s\n" "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779	ac_retval=1
1780fi
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_compile
1785
1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists and can be compiled using the include files in
1789# INCLUDES, setting the cache variable VAR accordingly.
1790ac_fn_c_check_header_compile ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794printf %s "checking for $2... " >&6; }
1795if eval test \${$3+y}
1796then :
1797  printf %s "(cached) " >&6
1798else $as_nop
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"
1805then :
1806  eval "$3=yes"
1807else $as_nop
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814printf "%s\n" "$ac_res" >&6; }
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_header_compile
1818
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1826  if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832printf "%s\n" "$ac_try_echo"; } >&5
1833  (eval "$ac_link") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } && {
1842	 test -z "$ac_c_werror_flag" ||
1843	 test ! -s conftest.err
1844       } && test -s conftest$ac_exeext && {
1845	 test "$cross_compiling" = yes ||
1846	 test -x conftest$ac_exeext
1847       }
1848then :
1849  ac_retval=0
1850else $as_nop
1851  printf "%s\n" "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854	ac_retval=1
1855fi
1856  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858  # interfere with the next link command; also delete a directory that is
1859  # left behind by Apple's compiler.  We do this before executing the actions.
1860  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862  as_fn_set_status $ac_retval
1863
1864} # ac_fn_c_try_link
1865
1866# ac_fn_c_check_func LINENO FUNC VAR
1867# ----------------------------------
1868# Tests whether FUNC exists, setting the cache variable VAR accordingly
1869ac_fn_c_check_func ()
1870{
1871  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873printf %s "checking for $2... " >&6; }
1874if eval test \${$3+y}
1875then :
1876  printf %s "(cached) " >&6
1877else $as_nop
1878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h.  */
1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1882#define $2 innocuous_$2
1883
1884/* System header to define __stub macros and hopefully few prototypes,
1885   which can conflict with char $2 (); below.  */
1886
1887#include <limits.h>
1888#undef $2
1889
1890/* Override any GCC internal prototype to avoid an error.
1891   Use char because int might match the return type of a GCC
1892   builtin and then its argument prototype would still apply.  */
1893#ifdef __cplusplus
1894extern "C"
1895#endif
1896char $2 ();
1897/* The GNU C library defines this for functions which it implements
1898    to always fail with ENOSYS.  Some functions are actually named
1899    something starting with __ and the normal name is an alias.  */
1900#if defined __stub_$2 || defined __stub___$2
1901choke me
1902#endif
1903
1904int
1905main (void)
1906{
1907return $2 ();
1908  ;
1909  return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_link "$LINENO"
1913then :
1914  eval "$3=yes"
1915else $as_nop
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.beam \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923printf "%s\n" "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1929# ------------------------------------------------------------------
1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1932ac_fn_check_decl ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  as_decl_name=`echo $2|sed 's/ *(.*//'`
1936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937printf %s "checking whether $as_decl_name is declared... " >&6; }
1938if eval test \${$3+y}
1939then :
1940  printf %s "(cached) " >&6
1941else $as_nop
1942  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1943  eval ac_save_FLAGS=\$$6
1944  as_fn_append $6 " $5"
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main (void)
1950{
1951#ifndef $as_decl_name
1952#ifdef __cplusplus
1953  (void) $as_decl_use;
1954#else
1955  (void) $as_decl_name;
1956#endif
1957#endif
1958
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"
1964then :
1965  eval "$3=yes"
1966else $as_nop
1967  eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1970  eval $6=\$ac_save_FLAGS
1971
1972fi
1973eval ac_res=\$$3
1974	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975printf "%s\n" "$ac_res" >&6; }
1976  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_check_decl
1979
1980# ac_fn_c_try_run LINENO
1981# ----------------------
1982# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1983# executables *can* be run.
1984ac_fn_c_try_run ()
1985{
1986  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987  if { { ac_try="$ac_link"
1988case "(($ac_try" in
1989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990  *) ac_try_echo=$ac_try;;
1991esac
1992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993printf "%s\n" "$ac_try_echo"; } >&5
1994  (eval "$ac_link") 2>&5
1995  ac_status=$?
1996  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998  { { case "(($ac_try" in
1999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000  *) ac_try_echo=$ac_try;;
2001esac
2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003printf "%s\n" "$ac_try_echo"; } >&5
2004  (eval "$ac_try") 2>&5
2005  ac_status=$?
2006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007  test $ac_status = 0; }; }
2008then :
2009  ac_retval=0
2010else $as_nop
2011  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2012       printf "%s\n" "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015       ac_retval=$ac_status
2016fi
2017  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019  as_fn_set_status $ac_retval
2020
2021} # ac_fn_c_try_run
2022
2023# ac_fn_c_try_cpp LINENO
2024# ----------------------
2025# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_c_try_cpp ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  if { { ac_try="$ac_cpp conftest.$ac_ext"
2030case "(($ac_try" in
2031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032  *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035printf "%s\n" "$ac_try_echo"; } >&5
2036  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037  ac_status=$?
2038  if test -s conftest.err; then
2039    grep -v '^ *+' conftest.err >conftest.er1
2040    cat conftest.er1 >&5
2041    mv -f conftest.er1 conftest.err
2042  fi
2043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044  test $ac_status = 0; } > conftest.i && {
2045	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2046	 test ! -s conftest.err
2047       }
2048then :
2049  ac_retval=0
2050else $as_nop
2051  printf "%s\n" "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054    ac_retval=1
2055fi
2056  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057  as_fn_set_status $ac_retval
2058
2059} # ac_fn_c_try_cpp
2060ac_configure_args_raw=
2061for ac_arg
2062do
2063  case $ac_arg in
2064  *\'*)
2065    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2066  esac
2067  as_fn_append ac_configure_args_raw " '$ac_arg'"
2068done
2069
2070case $ac_configure_args_raw in
2071  *$as_nl*)
2072    ac_safe_unquote= ;;
2073  *)
2074    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2075    ac_unsafe_a="$ac_unsafe_z#~"
2076    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2077    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2078esac
2079
2080cat >config.log <<_ACEOF
2081This file contains any messages produced by compilers while
2082running configure, to aid debugging if configure makes a mistake.
2083
2084It was created by libXt $as_me 1.3.0, which was
2085generated by GNU Autoconf 2.71.  Invocation command line was
2086
2087  $ $0$ac_configure_args_raw
2088
2089_ACEOF
2090exec 5>>config.log
2091{
2092cat <<_ASUNAME
2093## --------- ##
2094## Platform. ##
2095## --------- ##
2096
2097hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
2106/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
2114_ASUNAME
2115
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119  IFS=$as_save_IFS
2120  case $as_dir in #(((
2121    '') as_dir=./ ;;
2122    */) ;;
2123    *) as_dir=$as_dir/ ;;
2124  esac
2125    printf "%s\n" "PATH: $as_dir"
2126  done
2127IFS=$as_save_IFS
2128
2129} >&5
2130
2131cat >&5 <<_ACEOF
2132
2133
2134## ----------- ##
2135## Core tests. ##
2136## ----------- ##
2137
2138_ACEOF
2139
2140
2141# Keep a trace of the command line.
2142# Strip out --no-create and --no-recursion so they do not pile up.
2143# Strip out --silent because we don't want to record it for future runs.
2144# Also quote any args containing shell meta-characters.
2145# Make two passes to allow for proper duplicate-argument suppression.
2146ac_configure_args=
2147ac_configure_args0=
2148ac_configure_args1=
2149ac_must_keep_next=false
2150for ac_pass in 1 2
2151do
2152  for ac_arg
2153  do
2154    case $ac_arg in
2155    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157    | -silent | --silent | --silen | --sile | --sil)
2158      continue ;;
2159    *\'*)
2160      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161    esac
2162    case $ac_pass in
2163    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164    2)
2165      as_fn_append ac_configure_args1 " '$ac_arg'"
2166      if test $ac_must_keep_next = true; then
2167	ac_must_keep_next=false # Got value, back to normal.
2168      else
2169	case $ac_arg in
2170	  *=* | --config-cache | -C | -disable-* | --disable-* \
2171	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173	  | -with-* | --with-* | -without-* | --without-* | --x)
2174	    case "$ac_configure_args0 " in
2175	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176	    esac
2177	    ;;
2178	  -* ) ac_must_keep_next=true ;;
2179	esac
2180      fi
2181      as_fn_append ac_configure_args " '$ac_arg'"
2182      ;;
2183    esac
2184  done
2185done
2186{ ac_configure_args0=; unset ac_configure_args0;}
2187{ ac_configure_args1=; unset ac_configure_args1;}
2188
2189# When interrupted or exit'd, cleanup temporary files, and complete
2190# config.log.  We remove comments because anyway the quotes in there
2191# would cause problems or look ugly.
2192# WARNING: Use '\'' to represent an apostrophe within the trap.
2193# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194trap 'exit_status=$?
2195  # Sanitize IFS.
2196  IFS=" ""	$as_nl"
2197  # Save into config.log some information that might help in debugging.
2198  {
2199    echo
2200
2201    printf "%s\n" "## ---------------- ##
2202## Cache variables. ##
2203## ---------------- ##"
2204    echo
2205    # The following way of writing the cache mishandles newlines in values,
2206(
2207  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208    eval ac_val=\$$ac_var
2209    case $ac_val in #(
2210    *${as_nl}*)
2211      case $ac_var in #(
2212      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214      esac
2215      case $ac_var in #(
2216      _ | IFS | as_nl) ;; #(
2217      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218      *) { eval $ac_var=; unset $ac_var;} ;;
2219      esac ;;
2220    esac
2221  done
2222  (set) 2>&1 |
2223    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224    *${as_nl}ac_space=\ *)
2225      sed -n \
2226	"s/'\''/'\''\\\\'\'''\''/g;
2227	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228      ;; #(
2229    *)
2230      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231      ;;
2232    esac |
2233    sort
2234)
2235    echo
2236
2237    printf "%s\n" "## ----------------- ##
2238## Output variables. ##
2239## ----------------- ##"
2240    echo
2241    for ac_var in $ac_subst_vars
2242    do
2243      eval ac_val=\$$ac_var
2244      case $ac_val in
2245      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246      esac
2247      printf "%s\n" "$ac_var='\''$ac_val'\''"
2248    done | sort
2249    echo
2250
2251    if test -n "$ac_subst_files"; then
2252      printf "%s\n" "## ------------------- ##
2253## File substitutions. ##
2254## ------------------- ##"
2255      echo
2256      for ac_var in $ac_subst_files
2257      do
2258	eval ac_val=\$$ac_var
2259	case $ac_val in
2260	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261	esac
2262	printf "%s\n" "$ac_var='\''$ac_val'\''"
2263      done | sort
2264      echo
2265    fi
2266
2267    if test -s confdefs.h; then
2268      printf "%s\n" "## ----------- ##
2269## confdefs.h. ##
2270## ----------- ##"
2271      echo
2272      cat confdefs.h
2273      echo
2274    fi
2275    test "$ac_signal" != 0 &&
2276      printf "%s\n" "$as_me: caught signal $ac_signal"
2277    printf "%s\n" "$as_me: exit $exit_status"
2278  } >&5
2279  rm -f core *.core core.conftest.* &&
2280    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281    exit $exit_status
2282' 0
2283for ac_signal in 1 2 13 15; do
2284  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285done
2286ac_signal=0
2287
2288# confdefs.h avoids OS command line length limits that DEFS can exceed.
2289rm -f -r conftest* confdefs.h
2290
2291printf "%s\n" "/* confdefs.h */" > confdefs.h
2292
2293# Predefined preprocessor variables.
2294
2295printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2296
2297printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2298
2299printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2300
2301printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2302
2303printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2304
2305printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2306
2307
2308# Let the site file select an alternate cache file if it wants to.
2309# Prefer an explicitly selected file to automatically selected ones.
2310if test -n "$CONFIG_SITE"; then
2311  ac_site_files="$CONFIG_SITE"
2312elif test "x$prefix" != xNONE; then
2313  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2314else
2315  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2316fi
2317
2318for ac_site_file in $ac_site_files
2319do
2320  case $ac_site_file in #(
2321  */*) :
2322     ;; #(
2323  *) :
2324    ac_site_file=./$ac_site_file ;;
2325esac
2326  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2327    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2328printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2329    sed 's/^/| /' "$ac_site_file" >&5
2330    . "$ac_site_file" \
2331      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2333as_fn_error $? "failed to load site script $ac_site_file
2334See \`config.log' for more details" "$LINENO" 5; }
2335  fi
2336done
2337
2338if test -r "$cache_file"; then
2339  # Some versions of bash will fail to source /dev/null (special files
2340  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2341  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2343printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2344    case $cache_file in
2345      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2346      *)                      . "./$cache_file";;
2347    esac
2348  fi
2349else
2350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2351printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2352  >$cache_file
2353fi
2354
2355as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2356# Test code for whether the C compiler supports C89 (global declarations)
2357ac_c_conftest_c89_globals='
2358/* Does the compiler advertise C89 conformance?
2359   Do not test the value of __STDC__, because some compilers set it to 0
2360   while being otherwise adequately conformant. */
2361#if !defined __STDC__
2362# error "Compiler does not advertise C89 conformance"
2363#endif
2364
2365#include <stddef.h>
2366#include <stdarg.h>
2367struct stat;
2368/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2369struct buf { int x; };
2370struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2371static char *e (p, i)
2372     char **p;
2373     int i;
2374{
2375  return p[i];
2376}
2377static char *f (char * (*g) (char **, int), char **p, ...)
2378{
2379  char *s;
2380  va_list v;
2381  va_start (v,p);
2382  s = g (p, va_arg (v,int));
2383  va_end (v);
2384  return s;
2385}
2386
2387/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2388   function prototypes and stuff, but not \xHH hex character constants.
2389   These do not provoke an error unfortunately, instead are silently treated
2390   as an "x".  The following induces an error, until -std is added to get
2391   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2392   array size at least.  It is necessary to write \x00 == 0 to get something
2393   that is true only with -std.  */
2394int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2395
2396/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2397   inside strings and character constants.  */
2398#define FOO(x) '\''x'\''
2399int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2400
2401int test (int i, double x);
2402struct s1 {int (*f) (int a);};
2403struct s2 {int (*f) (double a);};
2404int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2405               int, int);'
2406
2407# Test code for whether the C compiler supports C89 (body of main).
2408ac_c_conftest_c89_main='
2409ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2410'
2411
2412# Test code for whether the C compiler supports C99 (global declarations)
2413ac_c_conftest_c99_globals='
2414// Does the compiler advertise C99 conformance?
2415#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2416# error "Compiler does not advertise C99 conformance"
2417#endif
2418
2419#include <stdbool.h>
2420extern int puts (const char *);
2421extern int printf (const char *, ...);
2422extern int dprintf (int, const char *, ...);
2423extern void *malloc (size_t);
2424
2425// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2426// dprintf is used instead of fprintf to avoid needing to declare
2427// FILE and stderr.
2428#define debug(...) dprintf (2, __VA_ARGS__)
2429#define showlist(...) puts (#__VA_ARGS__)
2430#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2431static void
2432test_varargs_macros (void)
2433{
2434  int x = 1234;
2435  int y = 5678;
2436  debug ("Flag");
2437  debug ("X = %d\n", x);
2438  showlist (The first, second, and third items.);
2439  report (x>y, "x is %d but y is %d", x, y);
2440}
2441
2442// Check long long types.
2443#define BIG64 18446744073709551615ull
2444#define BIG32 4294967295ul
2445#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2446#if !BIG_OK
2447  #error "your preprocessor is broken"
2448#endif
2449#if BIG_OK
2450#else
2451  #error "your preprocessor is broken"
2452#endif
2453static long long int bignum = -9223372036854775807LL;
2454static unsigned long long int ubignum = BIG64;
2455
2456struct incomplete_array
2457{
2458  int datasize;
2459  double data[];
2460};
2461
2462struct named_init {
2463  int number;
2464  const wchar_t *name;
2465  double average;
2466};
2467
2468typedef const char *ccp;
2469
2470static inline int
2471test_restrict (ccp restrict text)
2472{
2473  // See if C++-style comments work.
2474  // Iterate through items via the restricted pointer.
2475  // Also check for declarations in for loops.
2476  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2477    continue;
2478  return 0;
2479}
2480
2481// Check varargs and va_copy.
2482static bool
2483test_varargs (const char *format, ...)
2484{
2485  va_list args;
2486  va_start (args, format);
2487  va_list args_copy;
2488  va_copy (args_copy, args);
2489
2490  const char *str = "";
2491  int number = 0;
2492  float fnumber = 0;
2493
2494  while (*format)
2495    {
2496      switch (*format++)
2497	{
2498	case '\''s'\'': // string
2499	  str = va_arg (args_copy, const char *);
2500	  break;
2501	case '\''d'\'': // int
2502	  number = va_arg (args_copy, int);
2503	  break;
2504	case '\''f'\'': // float
2505	  fnumber = va_arg (args_copy, double);
2506	  break;
2507	default:
2508	  break;
2509	}
2510    }
2511  va_end (args_copy);
2512  va_end (args);
2513
2514  return *str && number && fnumber;
2515}
2516'
2517
2518# Test code for whether the C compiler supports C99 (body of main).
2519ac_c_conftest_c99_main='
2520  // Check bool.
2521  _Bool success = false;
2522  success |= (argc != 0);
2523
2524  // Check restrict.
2525  if (test_restrict ("String literal") == 0)
2526    success = true;
2527  char *restrict newvar = "Another string";
2528
2529  // Check varargs.
2530  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2531  test_varargs_macros ();
2532
2533  // Check flexible array members.
2534  struct incomplete_array *ia =
2535    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2536  ia->datasize = 10;
2537  for (int i = 0; i < ia->datasize; ++i)
2538    ia->data[i] = i * 1.234;
2539
2540  // Check named initializers.
2541  struct named_init ni = {
2542    .number = 34,
2543    .name = L"Test wide string",
2544    .average = 543.34343,
2545  };
2546
2547  ni.number = 58;
2548
2549  int dynamic_array[ni.number];
2550  dynamic_array[0] = argv[0][0];
2551  dynamic_array[ni.number - 1] = 543;
2552
2553  // work around unused variable warnings
2554  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2555	 || dynamic_array[ni.number - 1] != 543);
2556'
2557
2558# Test code for whether the C compiler supports C11 (global declarations)
2559ac_c_conftest_c11_globals='
2560// Does the compiler advertise C11 conformance?
2561#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2562# error "Compiler does not advertise C11 conformance"
2563#endif
2564
2565// Check _Alignas.
2566char _Alignas (double) aligned_as_double;
2567char _Alignas (0) no_special_alignment;
2568extern char aligned_as_int;
2569char _Alignas (0) _Alignas (int) aligned_as_int;
2570
2571// Check _Alignof.
2572enum
2573{
2574  int_alignment = _Alignof (int),
2575  int_array_alignment = _Alignof (int[100]),
2576  char_alignment = _Alignof (char)
2577};
2578_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2579
2580// Check _Noreturn.
2581int _Noreturn does_not_return (void) { for (;;) continue; }
2582
2583// Check _Static_assert.
2584struct test_static_assert
2585{
2586  int x;
2587  _Static_assert (sizeof (int) <= sizeof (long int),
2588                  "_Static_assert does not work in struct");
2589  long int y;
2590};
2591
2592// Check UTF-8 literals.
2593#define u8 syntax error!
2594char const utf8_literal[] = u8"happens to be ASCII" "another string";
2595
2596// Check duplicate typedefs.
2597typedef long *long_ptr;
2598typedef long int *long_ptr;
2599typedef long_ptr long_ptr;
2600
2601// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2602struct anonymous
2603{
2604  union {
2605    struct { int i; int j; };
2606    struct { int k; long int l; } w;
2607  };
2608  int m;
2609} v1;
2610'
2611
2612# Test code for whether the C compiler supports C11 (body of main).
2613ac_c_conftest_c11_main='
2614  _Static_assert ((offsetof (struct anonymous, i)
2615		   == offsetof (struct anonymous, w.k)),
2616		  "Anonymous union alignment botch");
2617  v1.i = 2;
2618  v1.w.k = 5;
2619  ok |= v1.i != 5;
2620'
2621
2622# Test code for whether the C compiler supports C11 (complete).
2623ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2624${ac_c_conftest_c99_globals}
2625${ac_c_conftest_c11_globals}
2626
2627int
2628main (int argc, char **argv)
2629{
2630  int ok = 0;
2631  ${ac_c_conftest_c89_main}
2632  ${ac_c_conftest_c99_main}
2633  ${ac_c_conftest_c11_main}
2634  return ok;
2635}
2636"
2637
2638# Test code for whether the C compiler supports C99 (complete).
2639ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2640${ac_c_conftest_c99_globals}
2641
2642int
2643main (int argc, char **argv)
2644{
2645  int ok = 0;
2646  ${ac_c_conftest_c89_main}
2647  ${ac_c_conftest_c99_main}
2648  return ok;
2649}
2650"
2651
2652# Test code for whether the C compiler supports C89 (complete).
2653ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2654
2655int
2656main (int argc, char **argv)
2657{
2658  int ok = 0;
2659  ${ac_c_conftest_c89_main}
2660  return ok;
2661}
2662"
2663
2664as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2665as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2666as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2667as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2668as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2669as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2670as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2671as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2672as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2673as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2674
2675# Auxiliary files required by this configure script.
2676ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2677
2678# Locations in which to look for auxiliary files.
2679ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2680
2681# Search for a directory containing all of the required auxiliary files,
2682# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2683# If we don't find one directory that contains all the files we need,
2684# we report the set of missing files from the *first* directory in
2685# $ac_aux_dir_candidates and give up.
2686ac_missing_aux_files=""
2687ac_first_candidate=:
2688printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690as_found=false
2691for as_dir in $ac_aux_dir_candidates
2692do
2693  IFS=$as_save_IFS
2694  case $as_dir in #(((
2695    '') as_dir=./ ;;
2696    */) ;;
2697    *) as_dir=$as_dir/ ;;
2698  esac
2699  as_found=:
2700
2701  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2702  ac_aux_dir_found=yes
2703  ac_install_sh=
2704  for ac_aux in $ac_aux_files
2705  do
2706    # As a special case, if "install-sh" is required, that requirement
2707    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2708    # and $ac_install_sh is set appropriately for whichever one is found.
2709    if test x"$ac_aux" = x"install-sh"
2710    then
2711      if test -f "${as_dir}install-sh"; then
2712        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2713        ac_install_sh="${as_dir}install-sh -c"
2714      elif test -f "${as_dir}install.sh"; then
2715        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2716        ac_install_sh="${as_dir}install.sh -c"
2717      elif test -f "${as_dir}shtool"; then
2718        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2719        ac_install_sh="${as_dir}shtool install -c"
2720      else
2721        ac_aux_dir_found=no
2722        if $ac_first_candidate; then
2723          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2724        else
2725          break
2726        fi
2727      fi
2728    else
2729      if test -f "${as_dir}${ac_aux}"; then
2730        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2731      else
2732        ac_aux_dir_found=no
2733        if $ac_first_candidate; then
2734          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2735        else
2736          break
2737        fi
2738      fi
2739    fi
2740  done
2741  if test "$ac_aux_dir_found" = yes; then
2742    ac_aux_dir="$as_dir"
2743    break
2744  fi
2745  ac_first_candidate=false
2746
2747  as_found=false
2748done
2749IFS=$as_save_IFS
2750if $as_found
2751then :
2752
2753else $as_nop
2754  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2755fi
2756
2757
2758# These three variables are undocumented and unsupported,
2759# and are intended to be withdrawn in a future Autoconf release.
2760# They can cause serious problems if a builder's source tree is in a directory
2761# whose full name contains unusual characters.
2762if test -f "${ac_aux_dir}config.guess"; then
2763  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2764fi
2765if test -f "${ac_aux_dir}config.sub"; then
2766  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2767fi
2768if test -f "$ac_aux_dir/configure"; then
2769  ac_configure="$SHELL ${ac_aux_dir}configure"
2770fi
2771
2772# Check that the precious variables saved in the cache have kept the same
2773# value.
2774ac_cache_corrupted=false
2775for ac_var in $ac_precious_vars; do
2776  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2777  eval ac_new_set=\$ac_env_${ac_var}_set
2778  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2779  eval ac_new_val=\$ac_env_${ac_var}_value
2780  case $ac_old_set,$ac_new_set in
2781    set,)
2782      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2783printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2784      ac_cache_corrupted=: ;;
2785    ,set)
2786      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2787printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2788      ac_cache_corrupted=: ;;
2789    ,);;
2790    *)
2791      if test "x$ac_old_val" != "x$ac_new_val"; then
2792	# differences in whitespace do not lead to failure.
2793	ac_old_val_w=`echo x $ac_old_val`
2794	ac_new_val_w=`echo x $ac_new_val`
2795	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2796	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2797printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2798	  ac_cache_corrupted=:
2799	else
2800	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2801printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2802	  eval $ac_var=\$ac_old_val
2803	fi
2804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2805printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2807printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2808      fi;;
2809  esac
2810  # Pass precious variables to config.status.
2811  if test "$ac_new_set" = set; then
2812    case $ac_new_val in
2813    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2814    *) ac_arg=$ac_var=$ac_new_val ;;
2815    esac
2816    case " $ac_configure_args " in
2817      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2818      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2819    esac
2820  fi
2821done
2822if $ac_cache_corrupted; then
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2826printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2827  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2828	    and start over" "$LINENO" 5
2829fi
2830## -------------------- ##
2831## Main body of script. ##
2832## -------------------- ##
2833
2834ac_ext=c
2835ac_cpp='$CPP $CPPFLAGS'
2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839
2840
2841
2842ac_config_headers="$ac_config_headers config.h"
2843
2844
2845
2846# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2847# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2848# to avoid autoconf errors.
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860# Expand $ac_aux_dir to an absolute path.
2861am_aux_dir=`cd "$ac_aux_dir" && pwd`
2862
2863ac_ext=c
2864ac_cpp='$CPP $CPPFLAGS'
2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872printf %s "checking for $ac_word... " >&6; }
2873if test ${ac_cv_prog_CC+y}
2874then :
2875  printf %s "(cached) " >&6
2876else $as_nop
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  case $as_dir in #(((
2885    '') as_dir=./ ;;
2886    */) ;;
2887    *) as_dir=$as_dir/ ;;
2888  esac
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904printf "%s\n" "$CC" >&6; }
2905else
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907printf "%s\n" "no" >&6; }
2908fi
2909
2910
2911fi
2912if test -z "$ac_cv_prog_CC"; then
2913  ac_ct_CC=$CC
2914  # Extract the first word of "gcc", so it can be a program name with args.
2915set dummy gcc; ac_word=$2
2916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917printf %s "checking for $ac_word... " >&6; }
2918if test ${ac_cv_prog_ac_ct_CC+y}
2919then :
2920  printf %s "(cached) " >&6
2921else $as_nop
2922  if test -n "$ac_ct_CC"; then
2923  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  case $as_dir in #(((
2930    '') as_dir=./ ;;
2931    */) ;;
2932    *) as_dir=$as_dir/ ;;
2933  esac
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2936    ac_cv_prog_ac_ct_CC="gcc"
2937    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949printf "%s\n" "$ac_ct_CC" >&6; }
2950else
2951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952printf "%s\n" "no" >&6; }
2953fi
2954
2955  if test "x$ac_ct_CC" = x; then
2956    CC=""
2957  else
2958    case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964    CC=$ac_ct_CC
2965  fi
2966else
2967  CC="$ac_cv_prog_CC"
2968fi
2969
2970if test -z "$CC"; then
2971          if test -n "$ac_tool_prefix"; then
2972    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}cc; ac_word=$2
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975printf %s "checking for $ac_word... " >&6; }
2976if test ${ac_cv_prog_CC+y}
2977then :
2978  printf %s "(cached) " >&6
2979else $as_nop
2980  if test -n "$CC"; then
2981  ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986  IFS=$as_save_IFS
2987  case $as_dir in #(((
2988    '') as_dir=./ ;;
2989    */) ;;
2990    *) as_dir=$as_dir/ ;;
2991  esac
2992    for ac_exec_ext in '' $ac_executable_extensions; do
2993  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2994    ac_cv_prog_CC="${ac_tool_prefix}cc"
2995    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2996    break 2
2997  fi
2998done
2999  done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
3006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007printf "%s\n" "$CC" >&6; }
3008else
3009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010printf "%s\n" "no" >&6; }
3011fi
3012
3013
3014  fi
3015fi
3016if test -z "$CC"; then
3017  # Extract the first word of "cc", so it can be a program name with args.
3018set dummy cc; ac_word=$2
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020printf %s "checking for $ac_word... " >&6; }
3021if test ${ac_cv_prog_CC+y}
3022then :
3023  printf %s "(cached) " >&6
3024else $as_nop
3025  if test -n "$CC"; then
3026  ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028  ac_prog_rejected=no
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  case $as_dir in #(((
3034    '') as_dir=./ ;;
3035    */) ;;
3036    *) as_dir=$as_dir/ ;;
3037  esac
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3040    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041       ac_prog_rejected=yes
3042       continue
3043     fi
3044    ac_cv_prog_CC="cc"
3045    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052if test $ac_prog_rejected = yes; then
3053  # We found a bogon in the path, so make sure we never use it.
3054  set dummy $ac_cv_prog_CC
3055  shift
3056  if test $# != 0; then
3057    # We chose a different compiler from the bogus one.
3058    # However, it has the same basename, so the bogon will be chosen
3059    # first if we set CC to just the basename; use the full file name.
3060    shift
3061    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3062  fi
3063fi
3064fi
3065fi
3066CC=$ac_cv_prog_CC
3067if test -n "$CC"; then
3068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069printf "%s\n" "$CC" >&6; }
3070else
3071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072printf "%s\n" "no" >&6; }
3073fi
3074
3075
3076fi
3077if test -z "$CC"; then
3078  if test -n "$ac_tool_prefix"; then
3079  for ac_prog in cl.exe
3080  do
3081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084printf %s "checking for $ac_word... " >&6; }
3085if test ${ac_cv_prog_CC+y}
3086then :
3087  printf %s "(cached) " >&6
3088else $as_nop
3089  if test -n "$CC"; then
3090  ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  case $as_dir in #(((
3097    '') as_dir=./ ;;
3098    */) ;;
3099    *) as_dir=$as_dir/ ;;
3100  esac
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3103    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116printf "%s\n" "$CC" >&6; }
3117else
3118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119printf "%s\n" "no" >&6; }
3120fi
3121
3122
3123    test -n "$CC" && break
3124  done
3125fi
3126if test -z "$CC"; then
3127  ac_ct_CC=$CC
3128  for ac_prog in cl.exe
3129do
3130  # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133printf %s "checking for $ac_word... " >&6; }
3134if test ${ac_cv_prog_ac_ct_CC+y}
3135then :
3136  printf %s "(cached) " >&6
3137else $as_nop
3138  if test -n "$ac_ct_CC"; then
3139  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  case $as_dir in #(((
3146    '') as_dir=./ ;;
3147    */) ;;
3148    *) as_dir=$as_dir/ ;;
3149  esac
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3152    ac_cv_prog_ac_ct_CC="$ac_prog"
3153    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162ac_ct_CC=$ac_cv_prog_ac_ct_CC
3163if test -n "$ac_ct_CC"; then
3164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3165printf "%s\n" "$ac_ct_CC" >&6; }
3166else
3167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168printf "%s\n" "no" >&6; }
3169fi
3170
3171
3172  test -n "$ac_ct_CC" && break
3173done
3174
3175  if test "x$ac_ct_CC" = x; then
3176    CC=""
3177  else
3178    case $cross_compiling:$ac_tool_warned in
3179yes:)
3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182ac_tool_warned=yes ;;
3183esac
3184    CC=$ac_ct_CC
3185  fi
3186fi
3187
3188fi
3189if test -z "$CC"; then
3190  if test -n "$ac_tool_prefix"; then
3191  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3192set dummy ${ac_tool_prefix}clang; ac_word=$2
3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194printf %s "checking for $ac_word... " >&6; }
3195if test ${ac_cv_prog_CC+y}
3196then :
3197  printf %s "(cached) " >&6
3198else $as_nop
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  case $as_dir in #(((
3207    '') as_dir=./ ;;
3208    */) ;;
3209    *) as_dir=$as_dir/ ;;
3210  esac
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3213    ac_cv_prog_CC="${ac_tool_prefix}clang"
3214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218  done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226printf "%s\n" "$CC" >&6; }
3227else
3228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229printf "%s\n" "no" >&6; }
3230fi
3231
3232
3233fi
3234if test -z "$ac_cv_prog_CC"; then
3235  ac_ct_CC=$CC
3236  # Extract the first word of "clang", so it can be a program name with args.
3237set dummy clang; ac_word=$2
3238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239printf %s "checking for $ac_word... " >&6; }
3240if test ${ac_cv_prog_ac_ct_CC+y}
3241then :
3242  printf %s "(cached) " >&6
3243else $as_nop
3244  if test -n "$ac_ct_CC"; then
3245  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250  IFS=$as_save_IFS
3251  case $as_dir in #(((
3252    '') as_dir=./ ;;
3253    */) ;;
3254    *) as_dir=$as_dir/ ;;
3255  esac
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_CC="clang"
3259    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269if test -n "$ac_ct_CC"; then
3270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271printf "%s\n" "$ac_ct_CC" >&6; }
3272else
3273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274printf "%s\n" "no" >&6; }
3275fi
3276
3277  if test "x$ac_ct_CC" = x; then
3278    CC=""
3279  else
3280    case $cross_compiling:$ac_tool_warned in
3281yes:)
3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284ac_tool_warned=yes ;;
3285esac
3286    CC=$ac_ct_CC
3287  fi
3288else
3289  CC="$ac_cv_prog_CC"
3290fi
3291
3292fi
3293
3294
3295test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3297as_fn_error $? "no acceptable C compiler found in \$PATH
3298See \`config.log' for more details" "$LINENO" 5; }
3299
3300# Provide some information about the compiler.
3301printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302set X $ac_compile
3303ac_compiler=$2
3304for ac_option in --version -v -V -qversion -version; do
3305  { { ac_try="$ac_compiler $ac_option >&5"
3306case "(($ac_try" in
3307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308  *) ac_try_echo=$ac_try;;
3309esac
3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311printf "%s\n" "$ac_try_echo"; } >&5
3312  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3313  ac_status=$?
3314  if test -s conftest.err; then
3315    sed '10a\
3316... rest of stderr output deleted ...
3317         10q' conftest.err >conftest.er1
3318    cat conftest.er1 >&5
3319  fi
3320  rm -f conftest.er1 conftest.err
3321  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322  test $ac_status = 0; }
3323done
3324
3325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327
3328int
3329main (void)
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336ac_clean_files_save=$ac_clean_files
3337ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3338# Try to create an executable without -o first, disregard a.out.
3339# It will help us diagnose broken compilers, and finding out an intuition
3340# of exeext.
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3342printf %s "checking whether the C compiler works... " >&6; }
3343ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344
3345# The possible output files:
3346ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347
3348ac_rmfiles=
3349for ac_file in $ac_files
3350do
3351  case $ac_file in
3352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3354  esac
3355done
3356rm -f $ac_rmfiles
3357
3358if { { ac_try="$ac_link_default"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364printf "%s\n" "$ac_try_echo"; } >&5
3365  (eval "$ac_link_default") 2>&5
3366  ac_status=$?
3367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }
3369then :
3370  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3373# so that the user can short-circuit this test for compilers unknown to
3374# Autoconf.
3375for ac_file in $ac_files ''
3376do
3377  test -f "$ac_file" || continue
3378  case $ac_file in
3379    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380	;;
3381    [ab].out )
3382	# We found the default executable, but exeext='' is most
3383	# certainly right.
3384	break;;
3385    *.* )
3386	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3387	then :; else
3388	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389	fi
3390	# We set ac_cv_exeext here because the later test for it is not
3391	# safe: cross compilers may not add the suffix if given an `-o'
3392	# argument, so we may need to know it at that point already.
3393	# Even if this section looks crufty: it has the advantage of
3394	# actually working.
3395	break;;
3396    * )
3397	break;;
3398  esac
3399done
3400test "$ac_cv_exeext" = no && ac_cv_exeext=
3401
3402else $as_nop
3403  ac_file=''
3404fi
3405if test -z "$ac_file"
3406then :
3407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408printf "%s\n" "no" >&6; }
3409printf "%s\n" "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error 77 "C compiler cannot create executables
3415See \`config.log' for more details" "$LINENO" 5; }
3416else $as_nop
3417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418printf "%s\n" "yes" >&6; }
3419fi
3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421printf %s "checking for C compiler default output file name... " >&6; }
3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423printf "%s\n" "$ac_file" >&6; }
3424ac_exeext=$ac_cv_exeext
3425
3426rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427ac_clean_files=$ac_clean_files_save
3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429printf %s "checking for suffix of executables... " >&6; }
3430if { { ac_try="$ac_link"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436printf "%s\n" "$ac_try_echo"; } >&5
3437  (eval "$ac_link") 2>&5
3438  ac_status=$?
3439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440  test $ac_status = 0; }
3441then :
3442  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444# work properly (i.e., refer to `conftest.exe'), while it won't with
3445# `rm'.
3446for ac_file in conftest.exe conftest conftest.*; do
3447  test -f "$ac_file" || continue
3448  case $ac_file in
3449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451	  break;;
3452    * ) break;;
3453  esac
3454done
3455else $as_nop
3456  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3458as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3459See \`config.log' for more details" "$LINENO" 5; }
3460fi
3461rm -f conftest conftest$ac_cv_exeext
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3463printf "%s\n" "$ac_cv_exeext" >&6; }
3464
3465rm -f conftest.$ac_ext
3466EXEEXT=$ac_cv_exeext
3467ac_exeext=$EXEEXT
3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#include <stdio.h>
3471int
3472main (void)
3473{
3474FILE *f = fopen ("conftest.out", "w");
3475 return ferror (f) || fclose (f) != 0;
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481ac_clean_files="$ac_clean_files conftest.out"
3482# Check that the compiler produces executables we can run.  If not, either
3483# the compiler is broken, or we cross compile.
3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3485printf %s "checking whether we are cross compiling... " >&6; }
3486if test "$cross_compiling" != yes; then
3487  { { ac_try="$ac_link"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493printf "%s\n" "$ac_try_echo"; } >&5
3494  (eval "$ac_link") 2>&5
3495  ac_status=$?
3496  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497  test $ac_status = 0; }
3498  if { ac_try='./conftest$ac_cv_exeext'
3499  { { case "(($ac_try" in
3500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501  *) ac_try_echo=$ac_try;;
3502esac
3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504printf "%s\n" "$ac_try_echo"; } >&5
3505  (eval "$ac_try") 2>&5
3506  ac_status=$?
3507  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508  test $ac_status = 0; }; }; then
3509    cross_compiling=no
3510  else
3511    if test "$cross_compiling" = maybe; then
3512	cross_compiling=yes
3513    else
3514	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error 77 "cannot run C compiled programs.
3517If you meant to cross compile, use \`--host'.
3518See \`config.log' for more details" "$LINENO" 5; }
3519    fi
3520  fi
3521fi
3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3523printf "%s\n" "$cross_compiling" >&6; }
3524
3525rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3526ac_clean_files=$ac_clean_files_save
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3528printf %s "checking for suffix of object files... " >&6; }
3529if test ${ac_cv_objext+y}
3530then :
3531  printf %s "(cached) " >&6
3532else $as_nop
3533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main (void)
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544rm -f conftest.o conftest.obj
3545if { { ac_try="$ac_compile"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551printf "%s\n" "$ac_try_echo"; } >&5
3552  (eval "$ac_compile") 2>&5
3553  ac_status=$?
3554  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }
3556then :
3557  for ac_file in conftest.o conftest.obj conftest.*; do
3558  test -f "$ac_file" || continue;
3559  case $ac_file in
3560    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3561    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562       break;;
3563  esac
3564done
3565else $as_nop
3566  printf "%s\n" "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "cannot compute suffix of object files: cannot compile
3572See \`config.log' for more details" "$LINENO" 5; }
3573fi
3574rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575fi
3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577printf "%s\n" "$ac_cv_objext" >&6; }
3578OBJEXT=$ac_cv_objext
3579ac_objext=$OBJEXT
3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3581printf %s "checking whether the compiler supports GNU C... " >&6; }
3582if test ${ac_cv_c_compiler_gnu+y}
3583then :
3584  printf %s "(cached) " >&6
3585else $as_nop
3586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main (void)
3591{
3592#ifndef __GNUC__
3593       choke me
3594#endif
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"
3601then :
3602  ac_compiler_gnu=yes
3603else $as_nop
3604  ac_compiler_gnu=no
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3607ac_cv_c_compiler_gnu=$ac_compiler_gnu
3608
3609fi
3610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3611printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614if test $ac_compiler_gnu = yes; then
3615  GCC=yes
3616else
3617  GCC=
3618fi
3619ac_test_CFLAGS=${CFLAGS+y}
3620ac_save_CFLAGS=$CFLAGS
3621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3622printf %s "checking whether $CC accepts -g... " >&6; }
3623if test ${ac_cv_prog_cc_g+y}
3624then :
3625  printf %s "(cached) " >&6
3626else $as_nop
3627  ac_save_c_werror_flag=$ac_c_werror_flag
3628   ac_c_werror_flag=yes
3629   ac_cv_prog_cc_g=no
3630   CFLAGS="-g"
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main (void)
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_compile "$LINENO"
3643then :
3644  ac_cv_prog_cc_g=yes
3645else $as_nop
3646  CFLAGS=""
3647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649
3650int
3651main (void)
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658if ac_fn_c_try_compile "$LINENO"
3659then :
3660
3661else $as_nop
3662  ac_c_werror_flag=$ac_save_c_werror_flag
3663	 CFLAGS="-g"
3664	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main (void)
3669{
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675if ac_fn_c_try_compile "$LINENO"
3676then :
3677  ac_cv_prog_cc_g=yes
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3684   ac_c_werror_flag=$ac_save_c_werror_flag
3685fi
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3688if test $ac_test_CFLAGS; then
3689  CFLAGS=$ac_save_CFLAGS
3690elif test $ac_cv_prog_cc_g = yes; then
3691  if test "$GCC" = yes; then
3692    CFLAGS="-g -O2"
3693  else
3694    CFLAGS="-g"
3695  fi
3696else
3697  if test "$GCC" = yes; then
3698    CFLAGS="-O2"
3699  else
3700    CFLAGS=
3701  fi
3702fi
3703ac_prog_cc_stdc=no
3704if test x$ac_prog_cc_stdc = xno
3705then :
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3707printf %s "checking for $CC option to enable C11 features... " >&6; }
3708if test ${ac_cv_prog_cc_c11+y}
3709then :
3710  printf %s "(cached) " >&6
3711else $as_nop
3712  ac_cv_prog_cc_c11=no
3713ac_save_CC=$CC
3714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716$ac_c_conftest_c11_program
3717_ACEOF
3718for ac_arg in '' -std=gnu11
3719do
3720  CC="$ac_save_CC $ac_arg"
3721  if ac_fn_c_try_compile "$LINENO"
3722then :
3723  ac_cv_prog_cc_c11=$ac_arg
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.beam
3726  test "x$ac_cv_prog_cc_c11" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730fi
3731
3732if test "x$ac_cv_prog_cc_c11" = xno
3733then :
3734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735printf "%s\n" "unsupported" >&6; }
3736else $as_nop
3737  if test "x$ac_cv_prog_cc_c11" = x
3738then :
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3740printf "%s\n" "none needed" >&6; }
3741else $as_nop
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3743printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3744     CC="$CC $ac_cv_prog_cc_c11"
3745fi
3746  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3747  ac_prog_cc_stdc=c11
3748fi
3749fi
3750if test x$ac_prog_cc_stdc = xno
3751then :
3752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3753printf %s "checking for $CC option to enable C99 features... " >&6; }
3754if test ${ac_cv_prog_cc_c99+y}
3755then :
3756  printf %s "(cached) " >&6
3757else $as_nop
3758  ac_cv_prog_cc_c99=no
3759ac_save_CC=$CC
3760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762$ac_c_conftest_c99_program
3763_ACEOF
3764for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3765do
3766  CC="$ac_save_CC $ac_arg"
3767  if ac_fn_c_try_compile "$LINENO"
3768then :
3769  ac_cv_prog_cc_c99=$ac_arg
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.beam
3772  test "x$ac_cv_prog_cc_c99" != "xno" && break
3773done
3774rm -f conftest.$ac_ext
3775CC=$ac_save_CC
3776fi
3777
3778if test "x$ac_cv_prog_cc_c99" = xno
3779then :
3780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781printf "%s\n" "unsupported" >&6; }
3782else $as_nop
3783  if test "x$ac_cv_prog_cc_c99" = x
3784then :
3785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786printf "%s\n" "none needed" >&6; }
3787else $as_nop
3788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3789printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3790     CC="$CC $ac_cv_prog_cc_c99"
3791fi
3792  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3793  ac_prog_cc_stdc=c99
3794fi
3795fi
3796if test x$ac_prog_cc_stdc = xno
3797then :
3798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3799printf %s "checking for $CC option to enable C89 features... " >&6; }
3800if test ${ac_cv_prog_cc_c89+y}
3801then :
3802  printf %s "(cached) " >&6
3803else $as_nop
3804  ac_cv_prog_cc_c89=no
3805ac_save_CC=$CC
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808$ac_c_conftest_c89_program
3809_ACEOF
3810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811do
3812  CC="$ac_save_CC $ac_arg"
3813  if ac_fn_c_try_compile "$LINENO"
3814then :
3815  ac_cv_prog_cc_c89=$ac_arg
3816fi
3817rm -f core conftest.err conftest.$ac_objext conftest.beam
3818  test "x$ac_cv_prog_cc_c89" != "xno" && break
3819done
3820rm -f conftest.$ac_ext
3821CC=$ac_save_CC
3822fi
3823
3824if test "x$ac_cv_prog_cc_c89" = xno
3825then :
3826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827printf "%s\n" "unsupported" >&6; }
3828else $as_nop
3829  if test "x$ac_cv_prog_cc_c89" = x
3830then :
3831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3832printf "%s\n" "none needed" >&6; }
3833else $as_nop
3834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3836     CC="$CC $ac_cv_prog_cc_c89"
3837fi
3838  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3839  ac_prog_cc_stdc=c89
3840fi
3841fi
3842
3843ac_ext=c
3844ac_cpp='$CPP $CPPFLAGS'
3845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849
3850  ac_ext=c
3851ac_cpp='$CPP $CPPFLAGS'
3852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3856printf %s "checking whether $CC understands -c and -o together... " >&6; }
3857if test ${am_cv_prog_cc_c_o+y}
3858then :
3859  printf %s "(cached) " >&6
3860else $as_nop
3861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h.  */
3863
3864int
3865main (void)
3866{
3867
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872  # Make sure it works both with $CC and with simple cc.
3873  # Following AC_PROG_CC_C_O, we do the test twice because some
3874  # compilers refuse to overwrite an existing .o file with -o,
3875  # though they will create one.
3876  am_cv_prog_cc_c_o=yes
3877  for am_i in 1 2; do
3878    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3879   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } \
3883         && test -f conftest2.$ac_objext; then
3884      : OK
3885    else
3886      am_cv_prog_cc_c_o=no
3887      break
3888    fi
3889  done
3890  rm -f core conftest*
3891  unset am_i
3892fi
3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3894printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3895if test "$am_cv_prog_cc_c_o" != yes; then
3896   # Losing compiler, so override with the script.
3897   # FIXME: It is wrong to rewrite CC.
3898   # But if we don't then we get into trouble of one sort or another.
3899   # A longer-term fix would be to have automake use am__CC in this case,
3900   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3901   CC="$am_aux_dir/compile $CC"
3902fi
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910
3911ac_header= ac_cache=
3912for ac_item in $ac_header_c_list
3913do
3914  if test $ac_cache; then
3915    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3916    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3917      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3918    fi
3919    ac_header= ac_cache=
3920  elif test $ac_header; then
3921    ac_cache=$ac_item
3922  else
3923    ac_header=$ac_item
3924  fi
3925done
3926
3927
3928
3929
3930
3931
3932
3933
3934if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3935then :
3936
3937printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3938
3939fi
3940
3941
3942
3943
3944
3945
3946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3947printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3948if test ${ac_cv_safe_to_define___extensions__+y}
3949then :
3950  printf %s "(cached) " >&6
3951else $as_nop
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954
3955#         define __EXTENSIONS__ 1
3956          $ac_includes_default
3957int
3958main (void)
3959{
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965if ac_fn_c_try_compile "$LINENO"
3966then :
3967  ac_cv_safe_to_define___extensions__=yes
3968else $as_nop
3969  ac_cv_safe_to_define___extensions__=no
3970fi
3971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3972fi
3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3974printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3975
3976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3977printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3978if test ${ac_cv_should_define__xopen_source+y}
3979then :
3980  printf %s "(cached) " >&6
3981else $as_nop
3982  ac_cv_should_define__xopen_source=no
3983    if test $ac_cv_header_wchar_h = yes
3984then :
3985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988          #include <wchar.h>
3989          mbstate_t x;
3990int
3991main (void)
3992{
3993
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998if ac_fn_c_try_compile "$LINENO"
3999then :
4000
4001else $as_nop
4002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004
4005            #define _XOPEN_SOURCE 500
4006            #include <wchar.h>
4007            mbstate_t x;
4008int
4009main (void)
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"
4017then :
4018  ac_cv_should_define__xopen_source=yes
4019fi
4020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023fi
4024fi
4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4026printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4027
4028  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4029
4030  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4031
4032  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4033
4034  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4035
4036  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4037
4038  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4039
4040  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4041
4042  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4043
4044  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4045
4046  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4047
4048  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4049
4050  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4051
4052  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4053
4054  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4055
4056  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4057
4058  if test $ac_cv_header_minix_config_h = yes
4059then :
4060  MINIX=yes
4061    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4062
4063    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4064
4065    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4066
4067else $as_nop
4068  MINIX=
4069fi
4070  if test $ac_cv_safe_to_define___extensions__ = yes
4071then :
4072  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4073
4074fi
4075  if test $ac_cv_should_define__xopen_source = yes
4076then :
4077  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4078
4079fi
4080
4081
4082# Initialize Automake
4083am__api_version='1.16'
4084
4085
4086  # Find a good install program.  We prefer a C program (faster),
4087# so one script is as good as another.  But avoid the broken or
4088# incompatible versions:
4089# SysV /etc/install, /usr/sbin/install
4090# SunOS /usr/etc/install
4091# IRIX /sbin/install
4092# AIX /bin/install
4093# AmigaOS /C/install, which installs bootblocks on floppy discs
4094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4095# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4097# OS/2's system install, which has a completely different semantic
4098# ./install, which can be erroneously created by make from ./install.sh.
4099# Reject install programs that cannot install multiple files.
4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4101printf %s "checking for a BSD-compatible install... " >&6; }
4102if test -z "$INSTALL"; then
4103if test ${ac_cv_path_install+y}
4104then :
4105  printf %s "(cached) " >&6
4106else $as_nop
4107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  case $as_dir in #(((
4112    '') as_dir=./ ;;
4113    */) ;;
4114    *) as_dir=$as_dir/ ;;
4115  esac
4116    # Account for fact that we put trailing slashes in our PATH walk.
4117case $as_dir in #((
4118  ./ | /[cC]/* | \
4119  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4120  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4121  /usr/ucb/* ) ;;
4122  *)
4123    # OSF1 and SCO ODT 3.0 have their own names for install.
4124    # Don't use installbsd from OSF since it installs stuff as root
4125    # by default.
4126    for ac_prog in ginstall scoinst install; do
4127      for ac_exec_ext in '' $ac_executable_extensions; do
4128	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4129	  if test $ac_prog = install &&
4130	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4131	    # AIX install.  It has an incompatible calling convention.
4132	    :
4133	  elif test $ac_prog = install &&
4134	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4135	    # program-specific install script used by HP pwplus--don't use.
4136	    :
4137	  else
4138	    rm -rf conftest.one conftest.two conftest.dir
4139	    echo one > conftest.one
4140	    echo two > conftest.two
4141	    mkdir conftest.dir
4142	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4143	      test -s conftest.one && test -s conftest.two &&
4144	      test -s conftest.dir/conftest.one &&
4145	      test -s conftest.dir/conftest.two
4146	    then
4147	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4148	      break 3
4149	    fi
4150	  fi
4151	fi
4152      done
4153    done
4154    ;;
4155esac
4156
4157  done
4158IFS=$as_save_IFS
4159
4160rm -rf conftest.one conftest.two conftest.dir
4161
4162fi
4163  if test ${ac_cv_path_install+y}; then
4164    INSTALL=$ac_cv_path_install
4165  else
4166    # As a last resort, use the slow shell script.  Don't cache a
4167    # value for INSTALL within a source directory, because that will
4168    # break other packages using the cache if that directory is
4169    # removed, or if the value is a relative name.
4170    INSTALL=$ac_install_sh
4171  fi
4172fi
4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4174printf "%s\n" "$INSTALL" >&6; }
4175
4176# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4177# It thinks the first close brace ends the variable substitution.
4178test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4179
4180test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4181
4182test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4183
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4185printf %s "checking whether build environment is sane... " >&6; }
4186# Reject unsafe characters in $srcdir or the absolute working directory
4187# name.  Accept space and tab only in the latter.
4188am_lf='
4189'
4190case `pwd` in
4191  *[\\\"\#\$\&\'\`$am_lf]*)
4192    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4193esac
4194case $srcdir in
4195  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4196    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4197esac
4198
4199# Do 'set' in a subshell so we don't clobber the current shell's
4200# arguments.  Must try -L first in case configure is actually a
4201# symlink; some systems play weird games with the mod time of symlinks
4202# (eg FreeBSD returns the mod time of the symlink's containing
4203# directory).
4204if (
4205   am_has_slept=no
4206   for am_try in 1 2; do
4207     echo "timestamp, slept: $am_has_slept" > conftest.file
4208     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4209     if test "$*" = "X"; then
4210	# -L didn't work.
4211	set X `ls -t "$srcdir/configure" conftest.file`
4212     fi
4213     if test "$*" != "X $srcdir/configure conftest.file" \
4214	&& test "$*" != "X conftest.file $srcdir/configure"; then
4215
4216	# If neither matched, then we have a broken ls.  This can happen
4217	# if, for instance, CONFIG_SHELL is bash and it inherits a
4218	# broken ls alias from the environment.  This has actually
4219	# happened.  Such a system could not be considered "sane".
4220	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4221  alias in your environment" "$LINENO" 5
4222     fi
4223     if test "$2" = conftest.file || test $am_try -eq 2; then
4224       break
4225     fi
4226     # Just in case.
4227     sleep 1
4228     am_has_slept=yes
4229   done
4230   test "$2" = conftest.file
4231   )
4232then
4233   # Ok.
4234   :
4235else
4236   as_fn_error $? "newly created file is older than distributed files!
4237Check your system clock" "$LINENO" 5
4238fi
4239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4240printf "%s\n" "yes" >&6; }
4241# If we didn't sleep, we still need to ensure time stamps of config.status and
4242# generated files are strictly newer.
4243am_sleep_pid=
4244if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4245  ( sleep 1 ) &
4246  am_sleep_pid=$!
4247fi
4248
4249rm -f conftest.file
4250
4251test "$program_prefix" != NONE &&
4252  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4253# Use a double $ so make ignores it.
4254test "$program_suffix" != NONE &&
4255  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4256# Double any \ or $.
4257# By default was `s,x,x', remove it if useless.
4258ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4259program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4260
4261
4262  if test x"${MISSING+set}" != xset; then
4263  MISSING="\${SHELL} '$am_aux_dir/missing'"
4264fi
4265# Use eval to expand $SHELL
4266if eval "$MISSING --is-lightweight"; then
4267  am_missing_run="$MISSING "
4268else
4269  am_missing_run=
4270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4271printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4272fi
4273
4274if test x"${install_sh+set}" != xset; then
4275  case $am_aux_dir in
4276  *\ * | *\	*)
4277    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4278  *)
4279    install_sh="\${SHELL} $am_aux_dir/install-sh"
4280  esac
4281fi
4282
4283# Installed binaries are usually stripped using 'strip' when the user
4284# run "make install-strip".  However 'strip' might not be the right
4285# tool to use in cross-compilation environments, therefore Automake
4286# will honor the 'STRIP' environment variable to overrule this program.
4287if test "$cross_compiling" != no; then
4288  if test -n "$ac_tool_prefix"; then
4289  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4290set dummy ${ac_tool_prefix}strip; ac_word=$2
4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292printf %s "checking for $ac_word... " >&6; }
4293if test ${ac_cv_prog_STRIP+y}
4294then :
4295  printf %s "(cached) " >&6
4296else $as_nop
4297  if test -n "$STRIP"; then
4298  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  case $as_dir in #(((
4305    '') as_dir=./ ;;
4306    */) ;;
4307    *) as_dir=$as_dir/ ;;
4308  esac
4309    for ac_exec_ext in '' $ac_executable_extensions; do
4310  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4311    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4312    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4313    break 2
4314  fi
4315done
4316  done
4317IFS=$as_save_IFS
4318
4319fi
4320fi
4321STRIP=$ac_cv_prog_STRIP
4322if test -n "$STRIP"; then
4323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4324printf "%s\n" "$STRIP" >&6; }
4325else
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327printf "%s\n" "no" >&6; }
4328fi
4329
4330
4331fi
4332if test -z "$ac_cv_prog_STRIP"; then
4333  ac_ct_STRIP=$STRIP
4334  # Extract the first word of "strip", so it can be a program name with args.
4335set dummy strip; ac_word=$2
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337printf %s "checking for $ac_word... " >&6; }
4338if test ${ac_cv_prog_ac_ct_STRIP+y}
4339then :
4340  printf %s "(cached) " >&6
4341else $as_nop
4342  if test -n "$ac_ct_STRIP"; then
4343  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4344else
4345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348  IFS=$as_save_IFS
4349  case $as_dir in #(((
4350    '') as_dir=./ ;;
4351    */) ;;
4352    *) as_dir=$as_dir/ ;;
4353  esac
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4356    ac_cv_prog_ac_ct_STRIP="strip"
4357    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4358    break 2
4359  fi
4360done
4361  done
4362IFS=$as_save_IFS
4363
4364fi
4365fi
4366ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4367if test -n "$ac_ct_STRIP"; then
4368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4369printf "%s\n" "$ac_ct_STRIP" >&6; }
4370else
4371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372printf "%s\n" "no" >&6; }
4373fi
4374
4375  if test "x$ac_ct_STRIP" = x; then
4376    STRIP=":"
4377  else
4378    case $cross_compiling:$ac_tool_warned in
4379yes:)
4380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382ac_tool_warned=yes ;;
4383esac
4384    STRIP=$ac_ct_STRIP
4385  fi
4386else
4387  STRIP="$ac_cv_prog_STRIP"
4388fi
4389
4390fi
4391INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4392
4393
4394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4395printf %s "checking for a race-free mkdir -p... " >&6; }
4396if test -z "$MKDIR_P"; then
4397  if test ${ac_cv_path_mkdir+y}
4398then :
4399  printf %s "(cached) " >&6
4400else $as_nop
4401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4403do
4404  IFS=$as_save_IFS
4405  case $as_dir in #(((
4406    '') as_dir=./ ;;
4407    */) ;;
4408    *) as_dir=$as_dir/ ;;
4409  esac
4410    for ac_prog in mkdir gmkdir; do
4411	 for ac_exec_ext in '' $ac_executable_extensions; do
4412	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4413	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4414	     'mkdir ('*'coreutils) '* | \
4415	     'BusyBox '* | \
4416	     'mkdir (fileutils) '4.1*)
4417	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4418	       break 3;;
4419	   esac
4420	 done
4421       done
4422  done
4423IFS=$as_save_IFS
4424
4425fi
4426
4427  test -d ./--version && rmdir ./--version
4428  if test ${ac_cv_path_mkdir+y}; then
4429    MKDIR_P="$ac_cv_path_mkdir -p"
4430  else
4431    # As a last resort, use the slow shell script.  Don't cache a
4432    # value for MKDIR_P within a source directory, because that will
4433    # break other packages using the cache if that directory is
4434    # removed, or if the value is a relative name.
4435    MKDIR_P="$ac_install_sh -d"
4436  fi
4437fi
4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4439printf "%s\n" "$MKDIR_P" >&6; }
4440
4441for ac_prog in gawk mawk nawk awk
4442do
4443  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446printf %s "checking for $ac_word... " >&6; }
4447if test ${ac_cv_prog_AWK+y}
4448then :
4449  printf %s "(cached) " >&6
4450else $as_nop
4451  if test -n "$AWK"; then
4452  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457  IFS=$as_save_IFS
4458  case $as_dir in #(((
4459    '') as_dir=./ ;;
4460    */) ;;
4461    *) as_dir=$as_dir/ ;;
4462  esac
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4465    ac_cv_prog_AWK="$ac_prog"
4466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470  done
4471IFS=$as_save_IFS
4472
4473fi
4474fi
4475AWK=$ac_cv_prog_AWK
4476if test -n "$AWK"; then
4477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4478printf "%s\n" "$AWK" >&6; }
4479else
4480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481printf "%s\n" "no" >&6; }
4482fi
4483
4484
4485  test -n "$AWK" && break
4486done
4487
4488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4489printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4490set x ${MAKE-make}
4491ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4492if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4493then :
4494  printf %s "(cached) " >&6
4495else $as_nop
4496  cat >conftest.make <<\_ACEOF
4497SHELL = /bin/sh
4498all:
4499	@echo '@@@%%%=$(MAKE)=@@@%%%'
4500_ACEOF
4501# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4502case `${MAKE-make} -f conftest.make 2>/dev/null` in
4503  *@@@%%%=?*=@@@%%%*)
4504    eval ac_cv_prog_make_${ac_make}_set=yes;;
4505  *)
4506    eval ac_cv_prog_make_${ac_make}_set=no;;
4507esac
4508rm -f conftest.make
4509fi
4510if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512printf "%s\n" "yes" >&6; }
4513  SET_MAKE=
4514else
4515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516printf "%s\n" "no" >&6; }
4517  SET_MAKE="MAKE=${MAKE-make}"
4518fi
4519
4520rm -rf .tst 2>/dev/null
4521mkdir .tst 2>/dev/null
4522if test -d .tst; then
4523  am__leading_dot=.
4524else
4525  am__leading_dot=_
4526fi
4527rmdir .tst 2>/dev/null
4528
4529DEPDIR="${am__leading_dot}deps"
4530
4531ac_config_commands="$ac_config_commands depfiles"
4532
4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4534printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4535cat > confinc.mk << 'END'
4536am__doit:
4537	@echo this is the am__doit target >confinc.out
4538.PHONY: am__doit
4539END
4540am__include="#"
4541am__quote=
4542# BSD make does it like this.
4543echo '.include "confinc.mk" # ignored' > confmf.BSD
4544# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4545echo 'include confinc.mk # ignored' > confmf.GNU
4546_am_result=no
4547for s in GNU BSD; do
4548  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4549   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }
4553  case $?:`cat confinc.out 2>/dev/null` in #(
4554  '0:this is the am__doit target') :
4555    case $s in #(
4556  BSD) :
4557    am__include='.include' am__quote='"' ;; #(
4558  *) :
4559    am__include='include' am__quote='' ;;
4560esac ;; #(
4561  *) :
4562     ;;
4563esac
4564  if test "$am__include" != "#"; then
4565    _am_result="yes ($s style)"
4566    break
4567  fi
4568done
4569rm -f confinc.* confmf.*
4570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4571printf "%s\n" "${_am_result}" >&6; }
4572
4573# Check whether --enable-dependency-tracking was given.
4574if test ${enable_dependency_tracking+y}
4575then :
4576  enableval=$enable_dependency_tracking;
4577fi
4578
4579if test "x$enable_dependency_tracking" != xno; then
4580  am_depcomp="$ac_aux_dir/depcomp"
4581  AMDEPBACKSLASH='\'
4582  am__nodep='_no'
4583fi
4584 if test "x$enable_dependency_tracking" != xno; then
4585  AMDEP_TRUE=
4586  AMDEP_FALSE='#'
4587else
4588  AMDEP_TRUE='#'
4589  AMDEP_FALSE=
4590fi
4591
4592
4593# Check whether --enable-silent-rules was given.
4594if test ${enable_silent_rules+y}
4595then :
4596  enableval=$enable_silent_rules;
4597fi
4598
4599case $enable_silent_rules in # (((
4600  yes) AM_DEFAULT_VERBOSITY=0;;
4601   no) AM_DEFAULT_VERBOSITY=1;;
4602    *) AM_DEFAULT_VERBOSITY=1;;
4603esac
4604am_make=${MAKE-make}
4605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4606printf %s "checking whether $am_make supports nested variables... " >&6; }
4607if test ${am_cv_make_support_nested_variables+y}
4608then :
4609  printf %s "(cached) " >&6
4610else $as_nop
4611  if printf "%s\n" 'TRUE=$(BAR$(V))
4612BAR0=false
4613BAR1=true
4614V=1
4615am__doit:
4616	@$(TRUE)
4617.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4618  am_cv_make_support_nested_variables=yes
4619else
4620  am_cv_make_support_nested_variables=no
4621fi
4622fi
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4624printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4625if test $am_cv_make_support_nested_variables = yes; then
4626    AM_V='$(V)'
4627  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4628else
4629  AM_V=$AM_DEFAULT_VERBOSITY
4630  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4631fi
4632AM_BACKSLASH='\'
4633
4634if test "`cd $srcdir && pwd`" != "`pwd`"; then
4635  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4636  # is not polluted with repeated "-I."
4637  am__isrc=' -I$(srcdir)'
4638  # test to see if srcdir already configured
4639  if test -f $srcdir/config.status; then
4640    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4641  fi
4642fi
4643
4644# test whether we have cygpath
4645if test -z "$CYGPATH_W"; then
4646  if (cygpath --version) >/dev/null 2>/dev/null; then
4647    CYGPATH_W='cygpath -w'
4648  else
4649    CYGPATH_W=echo
4650  fi
4651fi
4652
4653
4654# Define the identity of the package.
4655 PACKAGE='libXt'
4656 VERSION='1.3.0'
4657
4658
4659printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4660
4661
4662printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4663
4664# Some tools Automake needs.
4665
4666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4667
4668
4669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4670
4671
4672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4673
4674
4675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4676
4677
4678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4679
4680# For better backward compatibility.  To be removed once Automake 1.9.x
4681# dies out for good.  For more background, see:
4682# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4683# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4684mkdir_p='$(MKDIR_P)'
4685
4686# We need awk for the "check" target (and possibly the TAP driver).  The
4687# system "awk" is bad on some platforms.
4688# Always define AMTAR for backward compatibility.  Yes, it's still used
4689# in the wild :-(  We should find a proper way to deprecate it ...
4690AMTAR='$${TAR-tar}'
4691
4692
4693# We'll loop over all known methods to create a tar archive until one works.
4694_am_tools='gnutar  pax cpio none'
4695
4696am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4697
4698
4699
4700
4701
4702depcc="$CC"   am_compiler_list=
4703
4704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4705printf %s "checking dependency style of $depcc... " >&6; }
4706if test ${am_cv_CC_dependencies_compiler_type+y}
4707then :
4708  printf %s "(cached) " >&6
4709else $as_nop
4710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4711  # We make a subdir and do the tests there.  Otherwise we can end up
4712  # making bogus files that we don't know about and never remove.  For
4713  # instance it was reported that on HP-UX the gcc test will end up
4714  # making a dummy file named 'D' -- because '-MD' means "put the output
4715  # in D".
4716  rm -rf conftest.dir
4717  mkdir conftest.dir
4718  # Copy depcomp to subdir because otherwise we won't find it if we're
4719  # using a relative directory.
4720  cp "$am_depcomp" conftest.dir
4721  cd conftest.dir
4722  # We will build objects and dependencies in a subdirectory because
4723  # it helps to detect inapplicable dependency modes.  For instance
4724  # both Tru64's cc and ICC support -MD to output dependencies as a
4725  # side effect of compilation, but ICC will put the dependencies in
4726  # the current directory while Tru64 will put them in the object
4727  # directory.
4728  mkdir sub
4729
4730  am_cv_CC_dependencies_compiler_type=none
4731  if test "$am_compiler_list" = ""; then
4732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4733  fi
4734  am__universal=false
4735  case " $depcc " in #(
4736     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4737     esac
4738
4739  for depmode in $am_compiler_list; do
4740    # Setup a source with many dependencies, because some compilers
4741    # like to wrap large dependency lists on column 80 (with \), and
4742    # we should not choose a depcomp mode which is confused by this.
4743    #
4744    # We need to recreate these files for each test, as the compiler may
4745    # overwrite some of them when testing with obscure command lines.
4746    # This happens at least with the AIX C compiler.
4747    : > sub/conftest.c
4748    for i in 1 2 3 4 5 6; do
4749      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4750      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4751      # Solaris 10 /bin/sh.
4752      echo '/* dummy */' > sub/conftst$i.h
4753    done
4754    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4755
4756    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4757    # mode.  It turns out that the SunPro C++ compiler does not properly
4758    # handle '-M -o', and we need to detect this.  Also, some Intel
4759    # versions had trouble with output in subdirs.
4760    am__obj=sub/conftest.${OBJEXT-o}
4761    am__minus_obj="-o $am__obj"
4762    case $depmode in
4763    gcc)
4764      # This depmode causes a compiler race in universal mode.
4765      test "$am__universal" = false || continue
4766      ;;
4767    nosideeffect)
4768      # After this tag, mechanisms are not by side-effect, so they'll
4769      # only be used when explicitly requested.
4770      if test "x$enable_dependency_tracking" = xyes; then
4771	continue
4772      else
4773	break
4774      fi
4775      ;;
4776    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4777      # This compiler won't grok '-c -o', but also, the minuso test has
4778      # not run yet.  These depmodes are late enough in the game, and
4779      # so weak that their functioning should not be impacted.
4780      am__obj=conftest.${OBJEXT-o}
4781      am__minus_obj=
4782      ;;
4783    none) break ;;
4784    esac
4785    if depmode=$depmode \
4786       source=sub/conftest.c object=$am__obj \
4787       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4788       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4789         >/dev/null 2>conftest.err &&
4790       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4791       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4792       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4793       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4794      # icc doesn't choke on unknown options, it will just issue warnings
4795      # or remarks (even with -Werror).  So we grep stderr for any message
4796      # that says an option was ignored or not supported.
4797      # When given -MP, icc 7.0 and 7.1 complain thusly:
4798      #   icc: Command line warning: ignoring option '-M'; no argument required
4799      # The diagnosis changed in icc 8.0:
4800      #   icc: Command line remark: option '-MP' not supported
4801      if (grep 'ignoring option' conftest.err ||
4802          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4803        am_cv_CC_dependencies_compiler_type=$depmode
4804        break
4805      fi
4806    fi
4807  done
4808
4809  cd ..
4810  rm -rf conftest.dir
4811else
4812  am_cv_CC_dependencies_compiler_type=none
4813fi
4814
4815fi
4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4817printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819
4820 if
4821  test "x$enable_dependency_tracking" != xno \
4822  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4823  am__fastdepCC_TRUE=
4824  am__fastdepCC_FALSE='#'
4825else
4826  am__fastdepCC_TRUE='#'
4827  am__fastdepCC_FALSE=
4828fi
4829
4830
4831# Variables for tags utilities; see am/tags.am
4832if test -z "$CTAGS"; then
4833  CTAGS=ctags
4834fi
4835
4836if test -z "$ETAGS"; then
4837  ETAGS=etags
4838fi
4839
4840if test -z "$CSCOPE"; then
4841  CSCOPE=cscope
4842fi
4843
4844
4845
4846# POSIX will say in a future version that running "rm -f" with no argument
4847# is OK; and we want to be able to make that assumption in our Makefile
4848# recipes.  So use an aggressive probe to check that the usage we want is
4849# actually supported "in the wild" to an acceptable degree.
4850# See automake bug#10828.
4851# To make any issue more visible, cause the running configure to be aborted
4852# by default if the 'rm' program in use doesn't match our expectations; the
4853# user can still override this though.
4854if rm -f && rm -fr && rm -rf; then : OK; else
4855  cat >&2 <<'END'
4856Oops!
4857
4858Your 'rm' program seems unable to run without file operands specified
4859on the command line, even when the '-f' option is present.  This is contrary
4860to the behaviour of most rm programs out there, and not conforming with
4861the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4862
4863Please tell bug-automake@gnu.org about your system, including the value
4864of your $PATH and any error possibly output before this message.  This
4865can help us improve future automake versions.
4866
4867END
4868  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4869    echo 'Configuration will proceed anyway, since you have set the' >&2
4870    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4871    echo >&2
4872  else
4873    cat >&2 <<'END'
4874Aborting the configuration process, to ensure you take notice of the issue.
4875
4876You can download and install GNU coreutils to get an 'rm' implementation
4877that behaves properly: <https://www.gnu.org/software/coreutils/>.
4878
4879If you want to complete the configuration process using your problematic
4880'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4881to "yes", and re-run configure.
4882
4883END
4884    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4885  fi
4886fi
4887
4888
4889# Initialize libtool
4890case `pwd` in
4891  *\ * | *\	*)
4892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4893printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4894esac
4895
4896
4897
4898macro_version='2.4.7'
4899macro_revision='2.4.7'
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914ltmain=$ac_aux_dir/ltmain.sh
4915
4916
4917
4918  # Make sure we can run config.sub.
4919$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4920  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4921
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4923printf %s "checking build system type... " >&6; }
4924if test ${ac_cv_build+y}
4925then :
4926  printf %s "(cached) " >&6
4927else $as_nop
4928  ac_build_alias=$build_alias
4929test "x$ac_build_alias" = x &&
4930  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4931test "x$ac_build_alias" = x &&
4932  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4933ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4934  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4935
4936fi
4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4938printf "%s\n" "$ac_cv_build" >&6; }
4939case $ac_cv_build in
4940*-*-*) ;;
4941*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4942esac
4943build=$ac_cv_build
4944ac_save_IFS=$IFS; IFS='-'
4945set x $ac_cv_build
4946shift
4947build_cpu=$1
4948build_vendor=$2
4949shift; shift
4950# Remember, the first character of IFS is used to create $*,
4951# except with old shells:
4952build_os=$*
4953IFS=$ac_save_IFS
4954case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4955
4956
4957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4958printf %s "checking host system type... " >&6; }
4959if test ${ac_cv_host+y}
4960then :
4961  printf %s "(cached) " >&6
4962else $as_nop
4963  if test "x$host_alias" = x; then
4964  ac_cv_host=$ac_cv_build
4965else
4966  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4967    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4968fi
4969
4970fi
4971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4972printf "%s\n" "$ac_cv_host" >&6; }
4973case $ac_cv_host in
4974*-*-*) ;;
4975*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4976esac
4977host=$ac_cv_host
4978ac_save_IFS=$IFS; IFS='-'
4979set x $ac_cv_host
4980shift
4981host_cpu=$1
4982host_vendor=$2
4983shift; shift
4984# Remember, the first character of IFS is used to create $*,
4985# except with old shells:
4986host_os=$*
4987IFS=$ac_save_IFS
4988case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4989
4990
4991# Backslashify metacharacters that are still active within
4992# double-quoted strings.
4993sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4994
4995# Same as above, but do not quote variable references.
4996double_quote_subst='s/\(["`\\]\)/\\\1/g'
4997
4998# Sed substitution to delay expansion of an escaped shell variable in a
4999# double_quote_subst'ed string.
5000delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5001
5002# Sed substitution to delay expansion of an escaped single quote.
5003delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5004
5005# Sed substitution to avoid accidental globbing in evaled expressions
5006no_glob_subst='s/\*/\\\*/g'
5007
5008ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5010ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5011
5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5013printf %s "checking how to print strings... " >&6; }
5014# Test print first, because it will be a builtin if present.
5015if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5016   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5017  ECHO='print -r --'
5018elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5019  ECHO='printf %s\n'
5020else
5021  # Use this function as a fallback that always works.
5022  func_fallback_echo ()
5023  {
5024    eval 'cat <<_LTECHO_EOF
5025$1
5026_LTECHO_EOF'
5027  }
5028  ECHO='func_fallback_echo'
5029fi
5030
5031# func_echo_all arg...
5032# Invoke $ECHO with all args, space-separated.
5033func_echo_all ()
5034{
5035    $ECHO ""
5036}
5037
5038case $ECHO in
5039  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5040printf "%s\n" "printf" >&6; } ;;
5041  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5042printf "%s\n" "print -r" >&6; } ;;
5043  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5044printf "%s\n" "cat" >&6; } ;;
5045esac
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5061printf %s "checking for a sed that does not truncate output... " >&6; }
5062if test ${ac_cv_path_SED+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5067     for ac_i in 1 2 3 4 5 6 7; do
5068       ac_script="$ac_script$as_nl$ac_script"
5069     done
5070     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5071     { ac_script=; unset ac_script;}
5072     if test -z "$SED"; then
5073  ac_path_SED_found=false
5074  # Loop through the user's path and test for each of PROGNAME-LIST
5075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078  IFS=$as_save_IFS
5079  case $as_dir in #(((
5080    '') as_dir=./ ;;
5081    */) ;;
5082    *) as_dir=$as_dir/ ;;
5083  esac
5084    for ac_prog in sed gsed
5085   do
5086    for ac_exec_ext in '' $ac_executable_extensions; do
5087      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5088      as_fn_executable_p "$ac_path_SED" || continue
5089# Check for GNU ac_path_SED and select it if it is found.
5090  # Check for GNU $ac_path_SED
5091case `"$ac_path_SED" --version 2>&1` in
5092*GNU*)
5093  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5094*)
5095  ac_count=0
5096  printf %s 0123456789 >"conftest.in"
5097  while :
5098  do
5099    cat "conftest.in" "conftest.in" >"conftest.tmp"
5100    mv "conftest.tmp" "conftest.in"
5101    cp "conftest.in" "conftest.nl"
5102    printf "%s\n" '' >> "conftest.nl"
5103    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5104    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5105    as_fn_arith $ac_count + 1 && ac_count=$as_val
5106    if test $ac_count -gt ${ac_path_SED_max-0}; then
5107      # Best one so far, save it but keep looking for a better one
5108      ac_cv_path_SED="$ac_path_SED"
5109      ac_path_SED_max=$ac_count
5110    fi
5111    # 10*(2^10) chars as input seems more than enough
5112    test $ac_count -gt 10 && break
5113  done
5114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5115esac
5116
5117      $ac_path_SED_found && break 3
5118    done
5119  done
5120  done
5121IFS=$as_save_IFS
5122  if test -z "$ac_cv_path_SED"; then
5123    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5124  fi
5125else
5126  ac_cv_path_SED=$SED
5127fi
5128
5129fi
5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5131printf "%s\n" "$ac_cv_path_SED" >&6; }
5132 SED="$ac_cv_path_SED"
5133  rm -f conftest.sed
5134
5135test -z "$SED" && SED=sed
5136Xsed="$SED -e 1s/^X//"
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5149printf %s "checking for grep that handles long lines and -e... " >&6; }
5150if test ${ac_cv_path_GREP+y}
5151then :
5152  printf %s "(cached) " >&6
5153else $as_nop
5154  if test -z "$GREP"; then
5155  ac_path_GREP_found=false
5156  # Loop through the user's path and test for each of PROGNAME-LIST
5157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159do
5160  IFS=$as_save_IFS
5161  case $as_dir in #(((
5162    '') as_dir=./ ;;
5163    */) ;;
5164    *) as_dir=$as_dir/ ;;
5165  esac
5166    for ac_prog in grep ggrep
5167   do
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5170      as_fn_executable_p "$ac_path_GREP" || continue
5171# Check for GNU ac_path_GREP and select it if it is found.
5172  # Check for GNU $ac_path_GREP
5173case `"$ac_path_GREP" --version 2>&1` in
5174*GNU*)
5175  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176*)
5177  ac_count=0
5178  printf %s 0123456789 >"conftest.in"
5179  while :
5180  do
5181    cat "conftest.in" "conftest.in" >"conftest.tmp"
5182    mv "conftest.tmp" "conftest.in"
5183    cp "conftest.in" "conftest.nl"
5184    printf "%s\n" 'GREP' >> "conftest.nl"
5185    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187    as_fn_arith $ac_count + 1 && ac_count=$as_val
5188    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5189      # Best one so far, save it but keep looking for a better one
5190      ac_cv_path_GREP="$ac_path_GREP"
5191      ac_path_GREP_max=$ac_count
5192    fi
5193    # 10*(2^10) chars as input seems more than enough
5194    test $ac_count -gt 10 && break
5195  done
5196  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197esac
5198
5199      $ac_path_GREP_found && break 3
5200    done
5201  done
5202  done
5203IFS=$as_save_IFS
5204  if test -z "$ac_cv_path_GREP"; then
5205    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206  fi
5207else
5208  ac_cv_path_GREP=$GREP
5209fi
5210
5211fi
5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5213printf "%s\n" "$ac_cv_path_GREP" >&6; }
5214 GREP="$ac_cv_path_GREP"
5215
5216
5217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5218printf %s "checking for egrep... " >&6; }
5219if test ${ac_cv_path_EGREP+y}
5220then :
5221  printf %s "(cached) " >&6
5222else $as_nop
5223  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224   then ac_cv_path_EGREP="$GREP -E"
5225   else
5226     if test -z "$EGREP"; then
5227  ac_path_EGREP_found=false
5228  # Loop through the user's path and test for each of PROGNAME-LIST
5229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231do
5232  IFS=$as_save_IFS
5233  case $as_dir in #(((
5234    '') as_dir=./ ;;
5235    */) ;;
5236    *) as_dir=$as_dir/ ;;
5237  esac
5238    for ac_prog in egrep
5239   do
5240    for ac_exec_ext in '' $ac_executable_extensions; do
5241      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5242      as_fn_executable_p "$ac_path_EGREP" || continue
5243# Check for GNU ac_path_EGREP and select it if it is found.
5244  # Check for GNU $ac_path_EGREP
5245case `"$ac_path_EGREP" --version 2>&1` in
5246*GNU*)
5247  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5248*)
5249  ac_count=0
5250  printf %s 0123456789 >"conftest.in"
5251  while :
5252  do
5253    cat "conftest.in" "conftest.in" >"conftest.tmp"
5254    mv "conftest.tmp" "conftest.in"
5255    cp "conftest.in" "conftest.nl"
5256    printf "%s\n" 'EGREP' >> "conftest.nl"
5257    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259    as_fn_arith $ac_count + 1 && ac_count=$as_val
5260    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5261      # Best one so far, save it but keep looking for a better one
5262      ac_cv_path_EGREP="$ac_path_EGREP"
5263      ac_path_EGREP_max=$ac_count
5264    fi
5265    # 10*(2^10) chars as input seems more than enough
5266    test $ac_count -gt 10 && break
5267  done
5268  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269esac
5270
5271      $ac_path_EGREP_found && break 3
5272    done
5273  done
5274  done
5275IFS=$as_save_IFS
5276  if test -z "$ac_cv_path_EGREP"; then
5277    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5278  fi
5279else
5280  ac_cv_path_EGREP=$EGREP
5281fi
5282
5283   fi
5284fi
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5286printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5287 EGREP="$ac_cv_path_EGREP"
5288
5289
5290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5291printf %s "checking for fgrep... " >&6; }
5292if test ${ac_cv_path_FGREP+y}
5293then :
5294  printf %s "(cached) " >&6
5295else $as_nop
5296  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5297   then ac_cv_path_FGREP="$GREP -F"
5298   else
5299     if test -z "$FGREP"; then
5300  ac_path_FGREP_found=false
5301  # Loop through the user's path and test for each of PROGNAME-LIST
5302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5304do
5305  IFS=$as_save_IFS
5306  case $as_dir in #(((
5307    '') as_dir=./ ;;
5308    */) ;;
5309    *) as_dir=$as_dir/ ;;
5310  esac
5311    for ac_prog in fgrep
5312   do
5313    for ac_exec_ext in '' $ac_executable_extensions; do
5314      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5315      as_fn_executable_p "$ac_path_FGREP" || continue
5316# Check for GNU ac_path_FGREP and select it if it is found.
5317  # Check for GNU $ac_path_FGREP
5318case `"$ac_path_FGREP" --version 2>&1` in
5319*GNU*)
5320  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5321*)
5322  ac_count=0
5323  printf %s 0123456789 >"conftest.in"
5324  while :
5325  do
5326    cat "conftest.in" "conftest.in" >"conftest.tmp"
5327    mv "conftest.tmp" "conftest.in"
5328    cp "conftest.in" "conftest.nl"
5329    printf "%s\n" 'FGREP' >> "conftest.nl"
5330    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332    as_fn_arith $ac_count + 1 && ac_count=$as_val
5333    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334      # Best one so far, save it but keep looking for a better one
5335      ac_cv_path_FGREP="$ac_path_FGREP"
5336      ac_path_FGREP_max=$ac_count
5337    fi
5338    # 10*(2^10) chars as input seems more than enough
5339    test $ac_count -gt 10 && break
5340  done
5341  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5342esac
5343
5344      $ac_path_FGREP_found && break 3
5345    done
5346  done
5347  done
5348IFS=$as_save_IFS
5349  if test -z "$ac_cv_path_FGREP"; then
5350    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5351  fi
5352else
5353  ac_cv_path_FGREP=$FGREP
5354fi
5355
5356   fi
5357fi
5358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5360 FGREP="$ac_cv_path_FGREP"
5361
5362
5363test -z "$GREP" && GREP=grep
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383# Check whether --with-gnu-ld was given.
5384if test ${with_gnu_ld+y}
5385then :
5386  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5387else $as_nop
5388  with_gnu_ld=no
5389fi
5390
5391ac_prog=ld
5392if test yes = "$GCC"; then
5393  # Check if gcc -print-prog-name=ld gives a path.
5394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5395printf %s "checking for ld used by $CC... " >&6; }
5396  case $host in
5397  *-*-mingw*)
5398    # gcc leaves a trailing carriage return, which upsets mingw
5399    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5400  *)
5401    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5402  esac
5403  case $ac_prog in
5404    # Accept absolute paths.
5405    [\\/]* | ?:[\\/]*)
5406      re_direlt='/[^/][^/]*/\.\./'
5407      # Canonicalize the pathname of ld
5408      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5409      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5410	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5411      done
5412      test -z "$LD" && LD=$ac_prog
5413      ;;
5414  "")
5415    # If it fails, then pretend we aren't using GCC.
5416    ac_prog=ld
5417    ;;
5418  *)
5419    # If it is relative, then search for the first ld in PATH.
5420    with_gnu_ld=unknown
5421    ;;
5422  esac
5423elif test yes = "$with_gnu_ld"; then
5424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5425printf %s "checking for GNU ld... " >&6; }
5426else
5427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5428printf %s "checking for non-GNU ld... " >&6; }
5429fi
5430if test ${lt_cv_path_LD+y}
5431then :
5432  printf %s "(cached) " >&6
5433else $as_nop
5434  if test -z "$LD"; then
5435  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5436  for ac_dir in $PATH; do
5437    IFS=$lt_save_ifs
5438    test -z "$ac_dir" && ac_dir=.
5439    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5440      lt_cv_path_LD=$ac_dir/$ac_prog
5441      # Check to see if the program is GNU ld.  I'd rather use --version,
5442      # but apparently some variants of GNU ld only accept -v.
5443      # Break only if it was the GNU/non-GNU ld that we prefer.
5444      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5445      *GNU* | *'with BFD'*)
5446	test no != "$with_gnu_ld" && break
5447	;;
5448      *)
5449	test yes != "$with_gnu_ld" && break
5450	;;
5451      esac
5452    fi
5453  done
5454  IFS=$lt_save_ifs
5455else
5456  lt_cv_path_LD=$LD # Let the user override the test with a path.
5457fi
5458fi
5459
5460LD=$lt_cv_path_LD
5461if test -n "$LD"; then
5462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5463printf "%s\n" "$LD" >&6; }
5464else
5465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466printf "%s\n" "no" >&6; }
5467fi
5468test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5470printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5471if test ${lt_cv_prog_gnu_ld+y}
5472then :
5473  printf %s "(cached) " >&6
5474else $as_nop
5475  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5476case `$LD -v 2>&1 </dev/null` in
5477*GNU* | *'with BFD'*)
5478  lt_cv_prog_gnu_ld=yes
5479  ;;
5480*)
5481  lt_cv_prog_gnu_ld=no
5482  ;;
5483esac
5484fi
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5486printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5487with_gnu_ld=$lt_cv_prog_gnu_ld
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5498printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5499if test ${lt_cv_path_NM+y}
5500then :
5501  printf %s "(cached) " >&6
5502else $as_nop
5503  if test -n "$NM"; then
5504  # Let the user override the test.
5505  lt_cv_path_NM=$NM
5506else
5507  lt_nm_to_check=${ac_tool_prefix}nm
5508  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509    lt_nm_to_check="$lt_nm_to_check nm"
5510  fi
5511  for lt_tmp_nm in $lt_nm_to_check; do
5512    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5513    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514      IFS=$lt_save_ifs
5515      test -z "$ac_dir" && ac_dir=.
5516      tmp_nm=$ac_dir/$lt_tmp_nm
5517      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5518	# Check to see if the nm accepts a BSD-compat flag.
5519	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5520	#   nm: unknown option "B" ignored
5521	# Tru64's nm complains that /dev/null is an invalid object file
5522	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5523	case $build_os in
5524	mingw*) lt_bad_file=conftest.nm/nofile ;;
5525	*) lt_bad_file=/dev/null ;;
5526	esac
5527	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5528	*$lt_bad_file* | *'Invalid file or object type'*)
5529	  lt_cv_path_NM="$tmp_nm -B"
5530	  break 2
5531	  ;;
5532	*)
5533	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5534	  */dev/null*)
5535	    lt_cv_path_NM="$tmp_nm -p"
5536	    break 2
5537	    ;;
5538	  *)
5539	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5540	    continue # so that we can try to find one that supports BSD flags
5541	    ;;
5542	  esac
5543	  ;;
5544	esac
5545      fi
5546    done
5547    IFS=$lt_save_ifs
5548  done
5549  : ${lt_cv_path_NM=no}
5550fi
5551fi
5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5553printf "%s\n" "$lt_cv_path_NM" >&6; }
5554if test no != "$lt_cv_path_NM"; then
5555  NM=$lt_cv_path_NM
5556else
5557  # Didn't find any BSD compatible name lister, look for dumpbin.
5558  if test -n "$DUMPBIN"; then :
5559    # Let the user override the test.
5560  else
5561    if test -n "$ac_tool_prefix"; then
5562  for ac_prog in dumpbin "link -dump"
5563  do
5564    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567printf %s "checking for $ac_word... " >&6; }
5568if test ${ac_cv_prog_DUMPBIN+y}
5569then :
5570  printf %s "(cached) " >&6
5571else $as_nop
5572  if test -n "$DUMPBIN"; then
5573  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578  IFS=$as_save_IFS
5579  case $as_dir in #(((
5580    '') as_dir=./ ;;
5581    */) ;;
5582    *) as_dir=$as_dir/ ;;
5583  esac
5584    for ac_exec_ext in '' $ac_executable_extensions; do
5585  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5587    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5588    break 2
5589  fi
5590done
5591  done
5592IFS=$as_save_IFS
5593
5594fi
5595fi
5596DUMPBIN=$ac_cv_prog_DUMPBIN
5597if test -n "$DUMPBIN"; then
5598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5599printf "%s\n" "$DUMPBIN" >&6; }
5600else
5601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602printf "%s\n" "no" >&6; }
5603fi
5604
5605
5606    test -n "$DUMPBIN" && break
5607  done
5608fi
5609if test -z "$DUMPBIN"; then
5610  ac_ct_DUMPBIN=$DUMPBIN
5611  for ac_prog in dumpbin "link -dump"
5612do
5613  # Extract the first word of "$ac_prog", so it can be a program name with args.
5614set dummy $ac_prog; ac_word=$2
5615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616printf %s "checking for $ac_word... " >&6; }
5617if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5618then :
5619  printf %s "(cached) " >&6
5620else $as_nop
5621  if test -n "$ac_ct_DUMPBIN"; then
5622  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627  IFS=$as_save_IFS
5628  case $as_dir in #(((
5629    '') as_dir=./ ;;
5630    */) ;;
5631    *) as_dir=$as_dir/ ;;
5632  esac
5633    for ac_exec_ext in '' $ac_executable_extensions; do
5634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5635    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5637    break 2
5638  fi
5639done
5640  done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5646if test -n "$ac_ct_DUMPBIN"; then
5647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5648printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5649else
5650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651printf "%s\n" "no" >&6; }
5652fi
5653
5654
5655  test -n "$ac_ct_DUMPBIN" && break
5656done
5657
5658  if test "x$ac_ct_DUMPBIN" = x; then
5659    DUMPBIN=":"
5660  else
5661    case $cross_compiling:$ac_tool_warned in
5662yes:)
5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667    DUMPBIN=$ac_ct_DUMPBIN
5668  fi
5669fi
5670
5671    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5672    *COFF*)
5673      DUMPBIN="$DUMPBIN -symbols -headers"
5674      ;;
5675    *)
5676      DUMPBIN=:
5677      ;;
5678    esac
5679  fi
5680
5681  if test : != "$DUMPBIN"; then
5682    NM=$DUMPBIN
5683  fi
5684fi
5685test -z "$NM" && NM=nm
5686
5687
5688
5689
5690
5691
5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5693printf %s "checking the name lister ($NM) interface... " >&6; }
5694if test ${lt_cv_nm_interface+y}
5695then :
5696  printf %s "(cached) " >&6
5697else $as_nop
5698  lt_cv_nm_interface="BSD nm"
5699  echo "int some_variable = 0;" > conftest.$ac_ext
5700  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5701  (eval "$ac_compile" 2>conftest.err)
5702  cat conftest.err >&5
5703  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5704  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5705  cat conftest.err >&5
5706  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5707  cat conftest.out >&5
5708  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5709    lt_cv_nm_interface="MS dumpbin"
5710  fi
5711  rm -f conftest*
5712fi
5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5714printf "%s\n" "$lt_cv_nm_interface" >&6; }
5715
5716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5717printf %s "checking whether ln -s works... " >&6; }
5718LN_S=$as_ln_s
5719if test "$LN_S" = "ln -s"; then
5720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721printf "%s\n" "yes" >&6; }
5722else
5723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5724printf "%s\n" "no, using $LN_S" >&6; }
5725fi
5726
5727# find the maximum length of command line arguments
5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5729printf %s "checking the maximum length of command line arguments... " >&6; }
5730if test ${lt_cv_sys_max_cmd_len+y}
5731then :
5732  printf %s "(cached) " >&6
5733else $as_nop
5734    i=0
5735  teststring=ABCD
5736
5737  case $build_os in
5738  msdosdjgpp*)
5739    # On DJGPP, this test can blow up pretty badly due to problems in libc
5740    # (any single argument exceeding 2000 bytes causes a buffer overrun
5741    # during glob expansion).  Even if it were fixed, the result of this
5742    # check would be larger than it should be.
5743    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5744    ;;
5745
5746  gnu*)
5747    # Under GNU Hurd, this test is not required because there is
5748    # no limit to the length of command line arguments.
5749    # Libtool will interpret -1 as no limit whatsoever
5750    lt_cv_sys_max_cmd_len=-1;
5751    ;;
5752
5753  cygwin* | mingw* | cegcc*)
5754    # On Win9x/ME, this test blows up -- it succeeds, but takes
5755    # about 5 minutes as the teststring grows exponentially.
5756    # Worse, since 9x/ME are not pre-emptively multitasking,
5757    # you end up with a "frozen" computer, even though with patience
5758    # the test eventually succeeds (with a max line length of 256k).
5759    # Instead, let's just punt: use the minimum linelength reported by
5760    # all of the supported platforms: 8192 (on NT/2K/XP).
5761    lt_cv_sys_max_cmd_len=8192;
5762    ;;
5763
5764  mint*)
5765    # On MiNT this can take a long time and run out of memory.
5766    lt_cv_sys_max_cmd_len=8192;
5767    ;;
5768
5769  amigaos*)
5770    # On AmigaOS with pdksh, this test takes hours, literally.
5771    # So we just punt and use a minimum line length of 8192.
5772    lt_cv_sys_max_cmd_len=8192;
5773    ;;
5774
5775  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5776    # This has been around since 386BSD, at least.  Likely further.
5777    if test -x /sbin/sysctl; then
5778      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5779    elif test -x /usr/sbin/sysctl; then
5780      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5781    else
5782      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5783    fi
5784    # And add a safety zone
5785    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5786    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5787    ;;
5788
5789  interix*)
5790    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5791    lt_cv_sys_max_cmd_len=196608
5792    ;;
5793
5794  os2*)
5795    # The test takes a long time on OS/2.
5796    lt_cv_sys_max_cmd_len=8192
5797    ;;
5798
5799  osf*)
5800    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5801    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5802    # nice to cause kernel panics so lets avoid the loop below.
5803    # First set a reasonable default.
5804    lt_cv_sys_max_cmd_len=16384
5805    #
5806    if test -x /sbin/sysconfig; then
5807      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5808        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5809      esac
5810    fi
5811    ;;
5812  sco3.2v5*)
5813    lt_cv_sys_max_cmd_len=102400
5814    ;;
5815  sysv5* | sco5v6* | sysv4.2uw2*)
5816    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5817    if test -n "$kargmax"; then
5818      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5819    else
5820      lt_cv_sys_max_cmd_len=32768
5821    fi
5822    ;;
5823  *)
5824    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5825    if test -n "$lt_cv_sys_max_cmd_len" && \
5826       test undefined != "$lt_cv_sys_max_cmd_len"; then
5827      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5828      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5829    else
5830      # Make teststring a little bigger before we do anything with it.
5831      # a 1K string should be a reasonable start.
5832      for i in 1 2 3 4 5 6 7 8; do
5833        teststring=$teststring$teststring
5834      done
5835      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5836      # If test is not a shell built-in, we'll probably end up computing a
5837      # maximum length that is only half of the actual maximum length, but
5838      # we can't tell.
5839      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5840	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5841	      test 17 != "$i" # 1/2 MB should be enough
5842      do
5843        i=`expr $i + 1`
5844        teststring=$teststring$teststring
5845      done
5846      # Only check the string length outside the loop.
5847      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5848      teststring=
5849      # Add a significant safety factor because C++ compilers can tack on
5850      # massive amounts of additional arguments before passing them to the
5851      # linker.  It appears as though 1/2 is a usable value.
5852      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5853    fi
5854    ;;
5855  esac
5856
5857fi
5858
5859if test -n "$lt_cv_sys_max_cmd_len"; then
5860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5861printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5862else
5863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5864printf "%s\n" "none" >&6; }
5865fi
5866max_cmd_len=$lt_cv_sys_max_cmd_len
5867
5868
5869
5870
5871
5872
5873: ${CP="cp -f"}
5874: ${MV="mv -f"}
5875: ${RM="rm -f"}
5876
5877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5878  lt_unset=unset
5879else
5880  lt_unset=false
5881fi
5882
5883
5884
5885
5886
5887# test EBCDIC or ASCII
5888case `echo X|tr X '\101'` in
5889 A) # ASCII based system
5890    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5891  lt_SP2NL='tr \040 \012'
5892  lt_NL2SP='tr \015\012 \040\040'
5893  ;;
5894 *) # EBCDIC based system
5895  lt_SP2NL='tr \100 \n'
5896  lt_NL2SP='tr \r\n \100\100'
5897  ;;
5898esac
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5909printf %s "checking how to convert $build file names to $host format... " >&6; }
5910if test ${lt_cv_to_host_file_cmd+y}
5911then :
5912  printf %s "(cached) " >&6
5913else $as_nop
5914  case $host in
5915  *-*-mingw* )
5916    case $build in
5917      *-*-mingw* ) # actually msys
5918        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5919        ;;
5920      *-*-cygwin* )
5921        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5922        ;;
5923      * ) # otherwise, assume *nix
5924        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5925        ;;
5926    esac
5927    ;;
5928  *-*-cygwin* )
5929    case $build in
5930      *-*-mingw* ) # actually msys
5931        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5932        ;;
5933      *-*-cygwin* )
5934        lt_cv_to_host_file_cmd=func_convert_file_noop
5935        ;;
5936      * ) # otherwise, assume *nix
5937        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5938        ;;
5939    esac
5940    ;;
5941  * ) # unhandled hosts (and "normal" native builds)
5942    lt_cv_to_host_file_cmd=func_convert_file_noop
5943    ;;
5944esac
5945
5946fi
5947
5948to_host_file_cmd=$lt_cv_to_host_file_cmd
5949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5950printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5951
5952
5953
5954
5955
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5957printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5958if test ${lt_cv_to_tool_file_cmd+y}
5959then :
5960  printf %s "(cached) " >&6
5961else $as_nop
5962  #assume ordinary cross tools, or native build.
5963lt_cv_to_tool_file_cmd=func_convert_file_noop
5964case $host in
5965  *-*-mingw* )
5966    case $build in
5967      *-*-mingw* ) # actually msys
5968        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5969        ;;
5970    esac
5971    ;;
5972esac
5973
5974fi
5975
5976to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5978printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5979
5980
5981
5982
5983
5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5985printf %s "checking for $LD option to reload object files... " >&6; }
5986if test ${lt_cv_ld_reload_flag+y}
5987then :
5988  printf %s "(cached) " >&6
5989else $as_nop
5990  lt_cv_ld_reload_flag='-r'
5991fi
5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5993printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5994reload_flag=$lt_cv_ld_reload_flag
5995case $reload_flag in
5996"" | " "*) ;;
5997*) reload_flag=" $reload_flag" ;;
5998esac
5999reload_cmds='$LD$reload_flag -o $output$reload_objs'
6000case $host_os in
6001  cygwin* | mingw* | pw32* | cegcc*)
6002    if test yes != "$GCC"; then
6003      reload_cmds=false
6004    fi
6005    ;;
6006  darwin*)
6007    if test yes = "$GCC"; then
6008      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6009    else
6010      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6011    fi
6012    ;;
6013esac
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023if test -n "$ac_tool_prefix"; then
6024  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6025set dummy ${ac_tool_prefix}file; ac_word=$2
6026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027printf %s "checking for $ac_word... " >&6; }
6028if test ${ac_cv_prog_FILECMD+y}
6029then :
6030  printf %s "(cached) " >&6
6031else $as_nop
6032  if test -n "$FILECMD"; then
6033  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  case $as_dir in #(((
6040    '') as_dir=./ ;;
6041    */) ;;
6042    *) as_dir=$as_dir/ ;;
6043  esac
6044    for ac_exec_ext in '' $ac_executable_extensions; do
6045  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6046    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6047    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6048    break 2
6049  fi
6050done
6051  done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056FILECMD=$ac_cv_prog_FILECMD
6057if test -n "$FILECMD"; then
6058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6059printf "%s\n" "$FILECMD" >&6; }
6060else
6061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062printf "%s\n" "no" >&6; }
6063fi
6064
6065
6066fi
6067if test -z "$ac_cv_prog_FILECMD"; then
6068  ac_ct_FILECMD=$FILECMD
6069  # Extract the first word of "file", so it can be a program name with args.
6070set dummy file; ac_word=$2
6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072printf %s "checking for $ac_word... " >&6; }
6073if test ${ac_cv_prog_ac_ct_FILECMD+y}
6074then :
6075  printf %s "(cached) " >&6
6076else $as_nop
6077  if test -n "$ac_ct_FILECMD"; then
6078  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  case $as_dir in #(((
6085    '') as_dir=./ ;;
6086    */) ;;
6087    *) as_dir=$as_dir/ ;;
6088  esac
6089    for ac_exec_ext in '' $ac_executable_extensions; do
6090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6091    ac_cv_prog_ac_ct_FILECMD="file"
6092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6093    break 2
6094  fi
6095done
6096  done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6102if test -n "$ac_ct_FILECMD"; then
6103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6104printf "%s\n" "$ac_ct_FILECMD" >&6; }
6105else
6106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107printf "%s\n" "no" >&6; }
6108fi
6109
6110  if test "x$ac_ct_FILECMD" = x; then
6111    FILECMD=":"
6112  else
6113    case $cross_compiling:$ac_tool_warned in
6114yes:)
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117ac_tool_warned=yes ;;
6118esac
6119    FILECMD=$ac_ct_FILECMD
6120  fi
6121else
6122  FILECMD="$ac_cv_prog_FILECMD"
6123fi
6124
6125
6126
6127
6128
6129
6130
6131if test -n "$ac_tool_prefix"; then
6132  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6133set dummy ${ac_tool_prefix}objdump; ac_word=$2
6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135printf %s "checking for $ac_word... " >&6; }
6136if test ${ac_cv_prog_OBJDUMP+y}
6137then :
6138  printf %s "(cached) " >&6
6139else $as_nop
6140  if test -n "$OBJDUMP"; then
6141  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  case $as_dir in #(((
6148    '') as_dir=./ ;;
6149    */) ;;
6150    *) as_dir=$as_dir/ ;;
6151  esac
6152    for ac_exec_ext in '' $ac_executable_extensions; do
6153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6154    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159  done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164OBJDUMP=$ac_cv_prog_OBJDUMP
6165if test -n "$OBJDUMP"; then
6166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6167printf "%s\n" "$OBJDUMP" >&6; }
6168else
6169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170printf "%s\n" "no" >&6; }
6171fi
6172
6173
6174fi
6175if test -z "$ac_cv_prog_OBJDUMP"; then
6176  ac_ct_OBJDUMP=$OBJDUMP
6177  # Extract the first word of "objdump", so it can be a program name with args.
6178set dummy objdump; ac_word=$2
6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180printf %s "checking for $ac_word... " >&6; }
6181if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6182then :
6183  printf %s "(cached) " >&6
6184else $as_nop
6185  if test -n "$ac_ct_OBJDUMP"; then
6186  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  case $as_dir in #(((
6193    '') as_dir=./ ;;
6194    */) ;;
6195    *) as_dir=$as_dir/ ;;
6196  esac
6197    for ac_exec_ext in '' $ac_executable_extensions; do
6198  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6199    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6200    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204  done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6210if test -n "$ac_ct_OBJDUMP"; then
6211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6212printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6213else
6214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215printf "%s\n" "no" >&6; }
6216fi
6217
6218  if test "x$ac_ct_OBJDUMP" = x; then
6219    OBJDUMP="false"
6220  else
6221    case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227    OBJDUMP=$ac_ct_OBJDUMP
6228  fi
6229else
6230  OBJDUMP="$ac_cv_prog_OBJDUMP"
6231fi
6232
6233test -z "$OBJDUMP" && OBJDUMP=objdump
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6244printf %s "checking how to recognize dependent libraries... " >&6; }
6245if test ${lt_cv_deplibs_check_method+y}
6246then :
6247  printf %s "(cached) " >&6
6248else $as_nop
6249  lt_cv_file_magic_cmd='$MAGIC_CMD'
6250lt_cv_file_magic_test_file=
6251lt_cv_deplibs_check_method='unknown'
6252# Need to set the preceding variable on all platforms that support
6253# interlibrary dependencies.
6254# 'none' -- dependencies not supported.
6255# 'unknown' -- same as none, but documents that we really don't know.
6256# 'pass_all' -- all dependencies passed with no checks.
6257# 'test_compile' -- check by making test program.
6258# 'file_magic [[regex]]' -- check by looking for files in library path
6259# that responds to the $file_magic_cmd with a given extended regex.
6260# If you have 'file' or equivalent on your system and you're not sure
6261# whether 'pass_all' will *always* work, you probably want this one.
6262
6263case $host_os in
6264aix[4-9]*)
6265  lt_cv_deplibs_check_method=pass_all
6266  ;;
6267
6268beos*)
6269  lt_cv_deplibs_check_method=pass_all
6270  ;;
6271
6272bsdi[45]*)
6273  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6274  lt_cv_file_magic_cmd='$FILECMD -L'
6275  lt_cv_file_magic_test_file=/shlib/libc.so
6276  ;;
6277
6278cygwin*)
6279  # func_win32_libid is a shell function defined in ltmain.sh
6280  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6281  lt_cv_file_magic_cmd='func_win32_libid'
6282  ;;
6283
6284mingw* | pw32*)
6285  # Base MSYS/MinGW do not provide the 'file' command needed by
6286  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6287  # unless we find 'file', for example because we are cross-compiling.
6288  if ( file / ) >/dev/null 2>&1; then
6289    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6290    lt_cv_file_magic_cmd='func_win32_libid'
6291  else
6292    # Keep this pattern in sync with the one in func_win32_libid.
6293    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6294    lt_cv_file_magic_cmd='$OBJDUMP -f'
6295  fi
6296  ;;
6297
6298cegcc*)
6299  # use the weaker test based on 'objdump'. See mingw*.
6300  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6301  lt_cv_file_magic_cmd='$OBJDUMP -f'
6302  ;;
6303
6304darwin* | rhapsody*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308freebsd* | dragonfly* | midnightbsd*)
6309  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6310    case $host_cpu in
6311    i*86 )
6312      # Not sure whether the presence of OpenBSD here was a mistake.
6313      # Let's accept both of them until this is cleared up.
6314      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6315      lt_cv_file_magic_cmd=$FILECMD
6316      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6317      ;;
6318    esac
6319  else
6320    lt_cv_deplibs_check_method=pass_all
6321  fi
6322  ;;
6323
6324haiku*)
6325  lt_cv_deplibs_check_method=pass_all
6326  ;;
6327
6328hpux10.20* | hpux11*)
6329  lt_cv_file_magic_cmd=$FILECMD
6330  case $host_cpu in
6331  ia64*)
6332    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6333    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6334    ;;
6335  hppa*64*)
6336    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]'
6337    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6338    ;;
6339  *)
6340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6341    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6342    ;;
6343  esac
6344  ;;
6345
6346interix[3-9]*)
6347  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6348  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6349  ;;
6350
6351irix5* | irix6* | nonstopux*)
6352  case $LD in
6353  *-32|*"-32 ") libmagic=32-bit;;
6354  *-n32|*"-n32 ") libmagic=N32;;
6355  *-64|*"-64 ") libmagic=64-bit;;
6356  *) libmagic=never-match;;
6357  esac
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360
6361# This must be glibc/ELF.
6362linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365
6366netbsd*)
6367  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6368    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6369  else
6370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6371  fi
6372  ;;
6373
6374newos6*)
6375  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6376  lt_cv_file_magic_cmd=$FILECMD
6377  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6378  ;;
6379
6380*nto* | *qnx*)
6381  lt_cv_deplibs_check_method=pass_all
6382  ;;
6383
6384openbsd* | bitrig*)
6385  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6386    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6387  else
6388    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6389  fi
6390  ;;
6391
6392osf3* | osf4* | osf5*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396rdos*)
6397  lt_cv_deplibs_check_method=pass_all
6398  ;;
6399
6400solaris*)
6401  lt_cv_deplibs_check_method=pass_all
6402  ;;
6403
6404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408sysv4 | sysv4.3*)
6409  case $host_vendor in
6410  motorola)
6411    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]'
6412    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6413    ;;
6414  ncr)
6415    lt_cv_deplibs_check_method=pass_all
6416    ;;
6417  sequent)
6418    lt_cv_file_magic_cmd='/bin/file'
6419    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6420    ;;
6421  sni)
6422    lt_cv_file_magic_cmd='/bin/file'
6423    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6424    lt_cv_file_magic_test_file=/lib/libc.so
6425    ;;
6426  siemens)
6427    lt_cv_deplibs_check_method=pass_all
6428    ;;
6429  pc)
6430    lt_cv_deplibs_check_method=pass_all
6431    ;;
6432  esac
6433  ;;
6434
6435tpf*)
6436  lt_cv_deplibs_check_method=pass_all
6437  ;;
6438os2*)
6439  lt_cv_deplibs_check_method=pass_all
6440  ;;
6441esac
6442
6443fi
6444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6445printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6446
6447file_magic_glob=
6448want_nocaseglob=no
6449if test "$build" = "$host"; then
6450  case $host_os in
6451  mingw* | pw32*)
6452    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6453      want_nocaseglob=yes
6454    else
6455      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6456    fi
6457    ;;
6458  esac
6459fi
6460
6461file_magic_cmd=$lt_cv_file_magic_cmd
6462deplibs_check_method=$lt_cv_deplibs_check_method
6463test -z "$deplibs_check_method" && deplibs_check_method=unknown
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486if test -n "$ac_tool_prefix"; then
6487  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6488set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490printf %s "checking for $ac_word... " >&6; }
6491if test ${ac_cv_prog_DLLTOOL+y}
6492then :
6493  printf %s "(cached) " >&6
6494else $as_nop
6495  if test -n "$DLLTOOL"; then
6496  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  case $as_dir in #(((
6503    '') as_dir=./ ;;
6504    */) ;;
6505    *) as_dir=$as_dir/ ;;
6506  esac
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519DLLTOOL=$ac_cv_prog_DLLTOOL
6520if test -n "$DLLTOOL"; then
6521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6522printf "%s\n" "$DLLTOOL" >&6; }
6523else
6524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525printf "%s\n" "no" >&6; }
6526fi
6527
6528
6529fi
6530if test -z "$ac_cv_prog_DLLTOOL"; then
6531  ac_ct_DLLTOOL=$DLLTOOL
6532  # Extract the first word of "dlltool", so it can be a program name with args.
6533set dummy dlltool; ac_word=$2
6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535printf %s "checking for $ac_word... " >&6; }
6536if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6537then :
6538  printf %s "(cached) " >&6
6539else $as_nop
6540  if test -n "$ac_ct_DLLTOOL"; then
6541  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  case $as_dir in #(((
6548    '') as_dir=./ ;;
6549    */) ;;
6550    *) as_dir=$as_dir/ ;;
6551  esac
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6565if test -n "$ac_ct_DLLTOOL"; then
6566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6567printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6568else
6569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570printf "%s\n" "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_DLLTOOL" = x; then
6574    DLLTOOL="false"
6575  else
6576    case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    DLLTOOL=$ac_ct_DLLTOOL
6583  fi
6584else
6585  DLLTOOL="$ac_cv_prog_DLLTOOL"
6586fi
6587
6588test -z "$DLLTOOL" && DLLTOOL=dlltool
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6600printf %s "checking how to associate runtime and link libraries... " >&6; }
6601if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6602then :
6603  printf %s "(cached) " >&6
6604else $as_nop
6605  lt_cv_sharedlib_from_linklib_cmd='unknown'
6606
6607case $host_os in
6608cygwin* | mingw* | pw32* | cegcc*)
6609  # two different shell functions defined in ltmain.sh;
6610  # decide which one to use based on capabilities of $DLLTOOL
6611  case `$DLLTOOL --help 2>&1` in
6612  *--identify-strict*)
6613    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6614    ;;
6615  *)
6616    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6617    ;;
6618  esac
6619  ;;
6620*)
6621  # fallback: assume linklib IS sharedlib
6622  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6623  ;;
6624esac
6625
6626fi
6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6628printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6629sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6630test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6631
6632
6633
6634
6635
6636
6637
6638if test -n "$ac_tool_prefix"; then
6639  for ac_prog in ar
6640  do
6641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644printf %s "checking for $ac_word... " >&6; }
6645if test ${ac_cv_prog_AR+y}
6646then :
6647  printf %s "(cached) " >&6
6648else $as_nop
6649  if test -n "$AR"; then
6650  ac_cv_prog_AR="$AR" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655  IFS=$as_save_IFS
6656  case $as_dir in #(((
6657    '') as_dir=./ ;;
6658    */) ;;
6659    *) as_dir=$as_dir/ ;;
6660  esac
6661    for ac_exec_ext in '' $ac_executable_extensions; do
6662  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6663    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6664    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6665    break 2
6666  fi
6667done
6668  done
6669IFS=$as_save_IFS
6670
6671fi
6672fi
6673AR=$ac_cv_prog_AR
6674if test -n "$AR"; then
6675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6676printf "%s\n" "$AR" >&6; }
6677else
6678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679printf "%s\n" "no" >&6; }
6680fi
6681
6682
6683    test -n "$AR" && break
6684  done
6685fi
6686if test -z "$AR"; then
6687  ac_ct_AR=$AR
6688  for ac_prog in ar
6689do
6690  # Extract the first word of "$ac_prog", so it can be a program name with args.
6691set dummy $ac_prog; ac_word=$2
6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693printf %s "checking for $ac_word... " >&6; }
6694if test ${ac_cv_prog_ac_ct_AR+y}
6695then :
6696  printf %s "(cached) " >&6
6697else $as_nop
6698  if test -n "$ac_ct_AR"; then
6699  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  case $as_dir in #(((
6706    '') as_dir=./ ;;
6707    */) ;;
6708    *) as_dir=$as_dir/ ;;
6709  esac
6710    for ac_exec_ext in '' $ac_executable_extensions; do
6711  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712    ac_cv_prog_ac_ct_AR="$ac_prog"
6713    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6714    break 2
6715  fi
6716done
6717  done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722ac_ct_AR=$ac_cv_prog_ac_ct_AR
6723if test -n "$ac_ct_AR"; then
6724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6725printf "%s\n" "$ac_ct_AR" >&6; }
6726else
6727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728printf "%s\n" "no" >&6; }
6729fi
6730
6731
6732  test -n "$ac_ct_AR" && break
6733done
6734
6735  if test "x$ac_ct_AR" = x; then
6736    AR="false"
6737  else
6738    case $cross_compiling:$ac_tool_warned in
6739yes:)
6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742ac_tool_warned=yes ;;
6743esac
6744    AR=$ac_ct_AR
6745  fi
6746fi
6747
6748: ${AR=ar}
6749
6750
6751
6752
6753
6754
6755# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6756# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6757# higher priority because thats what people were doing historically (setting
6758# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6759# variable obsoleted/removed.
6760
6761test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6762lt_ar_flags=$AR_FLAGS
6763
6764
6765
6766
6767
6768
6769# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6770# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6771
6772
6773
6774
6775
6776
6777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6778printf %s "checking for archiver @FILE support... " >&6; }
6779if test ${lt_cv_ar_at_file+y}
6780then :
6781  printf %s "(cached) " >&6
6782else $as_nop
6783  lt_cv_ar_at_file=no
6784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786
6787int
6788main (void)
6789{
6790
6791  ;
6792  return 0;
6793}
6794_ACEOF
6795if ac_fn_c_try_compile "$LINENO"
6796then :
6797  echo conftest.$ac_objext > conftest.lst
6798      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6799      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6800  (eval $lt_ar_try) 2>&5
6801  ac_status=$?
6802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803  test $ac_status = 0; }
6804      if test 0 -eq "$ac_status"; then
6805	# Ensure the archiver fails upon bogus file names.
6806	rm -f conftest.$ac_objext libconftest.a
6807	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6808  (eval $lt_ar_try) 2>&5
6809  ac_status=$?
6810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811  test $ac_status = 0; }
6812	if test 0 -ne "$ac_status"; then
6813          lt_cv_ar_at_file=@
6814        fi
6815      fi
6816      rm -f conftest.* libconftest.a
6817
6818fi
6819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6820
6821fi
6822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6823printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6824
6825if test no = "$lt_cv_ar_at_file"; then
6826  archiver_list_spec=
6827else
6828  archiver_list_spec=$lt_cv_ar_at_file
6829fi
6830
6831
6832
6833
6834
6835
6836
6837if test -n "$ac_tool_prefix"; then
6838  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6839set dummy ${ac_tool_prefix}strip; ac_word=$2
6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841printf %s "checking for $ac_word... " >&6; }
6842if test ${ac_cv_prog_STRIP+y}
6843then :
6844  printf %s "(cached) " >&6
6845else $as_nop
6846  if test -n "$STRIP"; then
6847  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852  IFS=$as_save_IFS
6853  case $as_dir in #(((
6854    '') as_dir=./ ;;
6855    */) ;;
6856    *) as_dir=$as_dir/ ;;
6857  esac
6858    for ac_exec_ext in '' $ac_executable_extensions; do
6859  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6860    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6861    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865  done
6866IFS=$as_save_IFS
6867
6868fi
6869fi
6870STRIP=$ac_cv_prog_STRIP
6871if test -n "$STRIP"; then
6872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6873printf "%s\n" "$STRIP" >&6; }
6874else
6875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876printf "%s\n" "no" >&6; }
6877fi
6878
6879
6880fi
6881if test -z "$ac_cv_prog_STRIP"; then
6882  ac_ct_STRIP=$STRIP
6883  # Extract the first word of "strip", so it can be a program name with args.
6884set dummy strip; ac_word=$2
6885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886printf %s "checking for $ac_word... " >&6; }
6887if test ${ac_cv_prog_ac_ct_STRIP+y}
6888then :
6889  printf %s "(cached) " >&6
6890else $as_nop
6891  if test -n "$ac_ct_STRIP"; then
6892  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897  IFS=$as_save_IFS
6898  case $as_dir in #(((
6899    '') as_dir=./ ;;
6900    */) ;;
6901    *) as_dir=$as_dir/ ;;
6902  esac
6903    for ac_exec_ext in '' $ac_executable_extensions; do
6904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905    ac_cv_prog_ac_ct_STRIP="strip"
6906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910  done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6916if test -n "$ac_ct_STRIP"; then
6917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6918printf "%s\n" "$ac_ct_STRIP" >&6; }
6919else
6920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921printf "%s\n" "no" >&6; }
6922fi
6923
6924  if test "x$ac_ct_STRIP" = x; then
6925    STRIP=":"
6926  else
6927    case $cross_compiling:$ac_tool_warned in
6928yes:)
6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6931ac_tool_warned=yes ;;
6932esac
6933    STRIP=$ac_ct_STRIP
6934  fi
6935else
6936  STRIP="$ac_cv_prog_STRIP"
6937fi
6938
6939test -z "$STRIP" && STRIP=:
6940
6941
6942
6943
6944
6945
6946if test -n "$ac_tool_prefix"; then
6947  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6948set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950printf %s "checking for $ac_word... " >&6; }
6951if test ${ac_cv_prog_RANLIB+y}
6952then :
6953  printf %s "(cached) " >&6
6954else $as_nop
6955  if test -n "$RANLIB"; then
6956  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  case $as_dir in #(((
6963    '') as_dir=./ ;;
6964    */) ;;
6965    *) as_dir=$as_dir/ ;;
6966  esac
6967    for ac_exec_ext in '' $ac_executable_extensions; do
6968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6969    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974  done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979RANLIB=$ac_cv_prog_RANLIB
6980if test -n "$RANLIB"; then
6981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6982printf "%s\n" "$RANLIB" >&6; }
6983else
6984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985printf "%s\n" "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_RANLIB"; then
6991  ac_ct_RANLIB=$RANLIB
6992  # Extract the first word of "ranlib", so it can be a program name with args.
6993set dummy ranlib; ac_word=$2
6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995printf %s "checking for $ac_word... " >&6; }
6996if test ${ac_cv_prog_ac_ct_RANLIB+y}
6997then :
6998  printf %s "(cached) " >&6
6999else $as_nop
7000  if test -n "$ac_ct_RANLIB"; then
7001  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  case $as_dir in #(((
7008    '') as_dir=./ ;;
7009    */) ;;
7010    *) as_dir=$as_dir/ ;;
7011  esac
7012    for ac_exec_ext in '' $ac_executable_extensions; do
7013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7014    ac_cv_prog_ac_ct_RANLIB="ranlib"
7015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7016    break 2
7017  fi
7018done
7019  done
7020IFS=$as_save_IFS
7021
7022fi
7023fi
7024ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7025if test -n "$ac_ct_RANLIB"; then
7026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7027printf "%s\n" "$ac_ct_RANLIB" >&6; }
7028else
7029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030printf "%s\n" "no" >&6; }
7031fi
7032
7033  if test "x$ac_ct_RANLIB" = x; then
7034    RANLIB=":"
7035  else
7036    case $cross_compiling:$ac_tool_warned in
7037yes:)
7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040ac_tool_warned=yes ;;
7041esac
7042    RANLIB=$ac_ct_RANLIB
7043  fi
7044else
7045  RANLIB="$ac_cv_prog_RANLIB"
7046fi
7047
7048test -z "$RANLIB" && RANLIB=:
7049
7050
7051
7052
7053
7054
7055# Determine commands to create old-style static archives.
7056old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7057old_postinstall_cmds='chmod 644 $oldlib'
7058old_postuninstall_cmds=
7059
7060if test -n "$RANLIB"; then
7061  case $host_os in
7062  bitrig* | openbsd*)
7063    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7064    ;;
7065  *)
7066    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7067    ;;
7068  esac
7069  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7070fi
7071
7072case $host_os in
7073  darwin*)
7074    lock_old_archive_extraction=yes ;;
7075  *)
7076    lock_old_archive_extraction=no ;;
7077esac
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
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117# If no C compiler was specified, use CC.
7118LTCC=${LTCC-"$CC"}
7119
7120# If no C compiler flags were specified, use CFLAGS.
7121LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7122
7123# Allow CC to be a program name with arguments.
7124compiler=$CC
7125
7126
7127# Check for command to grab the raw symbol name followed by C symbol from nm.
7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7129printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7130if test ${lt_cv_sys_global_symbol_pipe+y}
7131then :
7132  printf %s "(cached) " >&6
7133else $as_nop
7134
7135# These are sane defaults that work on at least a few old systems.
7136# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7137
7138# Character class describing NM global symbol codes.
7139symcode='[BCDEGRST]'
7140
7141# Regexp to match symbols that can be accessed directly from C.
7142sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7143
7144# Define system-specific variables.
7145case $host_os in
7146aix*)
7147  symcode='[BCDT]'
7148  ;;
7149cygwin* | mingw* | pw32* | cegcc*)
7150  symcode='[ABCDGISTW]'
7151  ;;
7152hpux*)
7153  if test ia64 = "$host_cpu"; then
7154    symcode='[ABCDEGRST]'
7155  fi
7156  ;;
7157irix* | nonstopux*)
7158  symcode='[BCDEGRST]'
7159  ;;
7160osf*)
7161  symcode='[BCDEGQRST]'
7162  ;;
7163solaris*)
7164  symcode='[BDRT]'
7165  ;;
7166sco3.2v5*)
7167  symcode='[DT]'
7168  ;;
7169sysv4.2uw2*)
7170  symcode='[DT]'
7171  ;;
7172sysv5* | sco5v6* | unixware* | OpenUNIX*)
7173  symcode='[ABDT]'
7174  ;;
7175sysv4)
7176  symcode='[DFNSTU]'
7177  ;;
7178esac
7179
7180# If we're using GNU nm, then use its standard symbol codes.
7181case `$NM -V 2>&1` in
7182*GNU* | *'with BFD'*)
7183  symcode='[ABCDGIRSTW]' ;;
7184esac
7185
7186if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7187  # Gets list of data symbols to import.
7188  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7189  # Adjust the below global symbol transforms to fixup imported variables.
7190  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7191  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7192  lt_c_name_lib_hook="\
7193  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7194  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7195else
7196  # Disable hooks by default.
7197  lt_cv_sys_global_symbol_to_import=
7198  lt_cdecl_hook=
7199  lt_c_name_hook=
7200  lt_c_name_lib_hook=
7201fi
7202
7203# Transform an extracted symbol line into a proper C declaration.
7204# Some systems (esp. on ia64) link data and code symbols differently,
7205# so use this general approach.
7206lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7207$lt_cdecl_hook\
7208" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7209" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7210
7211# Transform an extracted symbol line into symbol name and symbol address
7212lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7213$lt_c_name_hook\
7214" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7215" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7216
7217# Transform an extracted symbol line into symbol name with lib prefix and
7218# symbol address.
7219lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7220$lt_c_name_lib_hook\
7221" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7222" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7223" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7224
7225# Handle CRLF in mingw tool chain
7226opt_cr=
7227case $build_os in
7228mingw*)
7229  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7230  ;;
7231esac
7232
7233# Try without a prefix underscore, then with it.
7234for ac_symprfx in "" "_"; do
7235
7236  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7237  symxfrm="\\1 $ac_symprfx\\2 \\2"
7238
7239  # Write the raw and C identifiers.
7240  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7241    # Fake it for dumpbin and say T for any non-static function,
7242    # D for any global variable and I for any imported variable.
7243    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7244    # which start with @ or ?.
7245    lt_cv_sys_global_symbol_pipe="$AWK '"\
7246"     {last_section=section; section=\$ 3};"\
7247"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7248"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7249"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7250"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7251"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7252"     \$ 0!~/External *\|/{next};"\
7253"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7254"     {if(hide[section]) next};"\
7255"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7256"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7257"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7258"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7259"     ' prfx=^$ac_symprfx"
7260  else
7261    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7262  fi
7263  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7264
7265  # Check to see that the pipe works correctly.
7266  pipe_works=no
7267
7268  rm -f conftest*
7269  cat > conftest.$ac_ext <<_LT_EOF
7270#ifdef __cplusplus
7271extern "C" {
7272#endif
7273char nm_test_var;
7274void nm_test_func(void);
7275void nm_test_func(void){}
7276#ifdef __cplusplus
7277}
7278#endif
7279int main(){nm_test_var='a';nm_test_func();return(0);}
7280_LT_EOF
7281
7282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7283  (eval $ac_compile) 2>&5
7284  ac_status=$?
7285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286  test $ac_status = 0; }; then
7287    # Now try to grab the symbols.
7288    nlist=conftest.nm
7289    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7290  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7291  ac_status=$?
7292  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293  test $ac_status = 0; } && test -s "$nlist"; then
7294      # Try sorting and uniquifying the output.
7295      if sort "$nlist" | uniq > "$nlist"T; then
7296	mv -f "$nlist"T "$nlist"
7297      else
7298	rm -f "$nlist"T
7299      fi
7300
7301      # Make sure that we snagged all the symbols we need.
7302      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7303	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7304	  cat <<_LT_EOF > conftest.$ac_ext
7305/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7306#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7307/* DATA imports from DLLs on WIN32 can't be const, because runtime
7308   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7309# define LT_DLSYM_CONST
7310#elif defined __osf__
7311/* This system does not cope well with relocations in const data.  */
7312# define LT_DLSYM_CONST
7313#else
7314# define LT_DLSYM_CONST const
7315#endif
7316
7317#ifdef __cplusplus
7318extern "C" {
7319#endif
7320
7321_LT_EOF
7322	  # Now generate the symbol file.
7323	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7324
7325	  cat <<_LT_EOF >> conftest.$ac_ext
7326
7327/* The mapping between symbol names and symbols.  */
7328LT_DLSYM_CONST struct {
7329  const char *name;
7330  void       *address;
7331}
7332lt__PROGRAM__LTX_preloaded_symbols[] =
7333{
7334  { "@PROGRAM@", (void *) 0 },
7335_LT_EOF
7336	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7337	  cat <<\_LT_EOF >> conftest.$ac_ext
7338  {0, (void *) 0}
7339};
7340
7341/* This works around a problem in FreeBSD linker */
7342#ifdef FREEBSD_WORKAROUND
7343static const void *lt_preloaded_setup() {
7344  return lt__PROGRAM__LTX_preloaded_symbols;
7345}
7346#endif
7347
7348#ifdef __cplusplus
7349}
7350#endif
7351_LT_EOF
7352	  # Now try linking the two files.
7353	  mv conftest.$ac_objext conftstm.$ac_objext
7354	  lt_globsym_save_LIBS=$LIBS
7355	  lt_globsym_save_CFLAGS=$CFLAGS
7356	  LIBS=conftstm.$ac_objext
7357	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7358	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7359  (eval $ac_link) 2>&5
7360  ac_status=$?
7361  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7363	    pipe_works=yes
7364	  fi
7365	  LIBS=$lt_globsym_save_LIBS
7366	  CFLAGS=$lt_globsym_save_CFLAGS
7367	else
7368	  echo "cannot find nm_test_func in $nlist" >&5
7369	fi
7370      else
7371	echo "cannot find nm_test_var in $nlist" >&5
7372      fi
7373    else
7374      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7375    fi
7376  else
7377    echo "$progname: failed program was:" >&5
7378    cat conftest.$ac_ext >&5
7379  fi
7380  rm -rf conftest* conftst*
7381
7382  # Do not use the global_symbol_pipe unless it works.
7383  if test yes = "$pipe_works"; then
7384    break
7385  else
7386    lt_cv_sys_global_symbol_pipe=
7387  fi
7388done
7389
7390fi
7391
7392if test -z "$lt_cv_sys_global_symbol_pipe"; then
7393  lt_cv_sys_global_symbol_to_cdecl=
7394fi
7395if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7397printf "%s\n" "failed" >&6; }
7398else
7399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7400printf "%s\n" "ok" >&6; }
7401fi
7402
7403# Response file support.
7404if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7405  nm_file_list_spec='@'
7406elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7407  nm_file_list_spec='@'
7408fi
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
7438
7439
7440
7441
7442
7443
7444
7445
7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7447printf %s "checking for sysroot... " >&6; }
7448
7449# Check whether --with-sysroot was given.
7450if test ${with_sysroot+y}
7451then :
7452  withval=$with_sysroot;
7453else $as_nop
7454  with_sysroot=no
7455fi
7456
7457
7458lt_sysroot=
7459case $with_sysroot in #(
7460 yes)
7461   if test yes = "$GCC"; then
7462     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7463   fi
7464   ;; #(
7465 /*)
7466   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7467   ;; #(
7468 no|'')
7469   ;; #(
7470 *)
7471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7472printf "%s\n" "$with_sysroot" >&6; }
7473   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7474   ;;
7475esac
7476
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7478printf "%s\n" "${lt_sysroot:-no}" >&6; }
7479
7480
7481
7482
7483
7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7485printf %s "checking for a working dd... " >&6; }
7486if test ${ac_cv_path_lt_DD+y}
7487then :
7488  printf %s "(cached) " >&6
7489else $as_nop
7490  printf 0123456789abcdef0123456789abcdef >conftest.i
7491cat conftest.i conftest.i >conftest2.i
7492: ${lt_DD:=$DD}
7493if test -z "$lt_DD"; then
7494  ac_path_lt_DD_found=false
7495  # Loop through the user's path and test for each of PROGNAME-LIST
7496  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499  IFS=$as_save_IFS
7500  case $as_dir in #(((
7501    '') as_dir=./ ;;
7502    */) ;;
7503    *) as_dir=$as_dir/ ;;
7504  esac
7505    for ac_prog in dd
7506   do
7507    for ac_exec_ext in '' $ac_executable_extensions; do
7508      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7509      as_fn_executable_p "$ac_path_lt_DD" || continue
7510if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7511  cmp -s conftest.i conftest.out \
7512  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7513fi
7514      $ac_path_lt_DD_found && break 3
7515    done
7516  done
7517  done
7518IFS=$as_save_IFS
7519  if test -z "$ac_cv_path_lt_DD"; then
7520    :
7521  fi
7522else
7523  ac_cv_path_lt_DD=$lt_DD
7524fi
7525
7526rm -f conftest.i conftest2.i conftest.out
7527fi
7528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7529printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7530
7531
7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7533printf %s "checking how to truncate binary pipes... " >&6; }
7534if test ${lt_cv_truncate_bin+y}
7535then :
7536  printf %s "(cached) " >&6
7537else $as_nop
7538  printf 0123456789abcdef0123456789abcdef >conftest.i
7539cat conftest.i conftest.i >conftest2.i
7540lt_cv_truncate_bin=
7541if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7542  cmp -s conftest.i conftest.out \
7543  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7544fi
7545rm -f conftest.i conftest2.i conftest.out
7546test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7547fi
7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7549printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7550
7551
7552
7553
7554
7555
7556
7557# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7558func_cc_basename ()
7559{
7560    for cc_temp in $*""; do
7561      case $cc_temp in
7562        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7563        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7564        \-*) ;;
7565        *) break;;
7566      esac
7567    done
7568    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7569}
7570
7571# Check whether --enable-libtool-lock was given.
7572if test ${enable_libtool_lock+y}
7573then :
7574  enableval=$enable_libtool_lock;
7575fi
7576
7577test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7578
7579# Some flags need to be propagated to the compiler or linker for good
7580# libtool support.
7581case $host in
7582ia64-*-hpux*)
7583  # Find out what ABI is being produced by ac_compile, and set mode
7584  # options accordingly.
7585  echo 'int i;' > conftest.$ac_ext
7586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7587  (eval $ac_compile) 2>&5
7588  ac_status=$?
7589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590  test $ac_status = 0; }; then
7591    case `$FILECMD conftest.$ac_objext` in
7592      *ELF-32*)
7593	HPUX_IA64_MODE=32
7594	;;
7595      *ELF-64*)
7596	HPUX_IA64_MODE=64
7597	;;
7598    esac
7599  fi
7600  rm -rf conftest*
7601  ;;
7602*-*-irix6*)
7603  # Find out what ABI is being produced by ac_compile, and set linker
7604  # options accordingly.
7605  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7606  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607  (eval $ac_compile) 2>&5
7608  ac_status=$?
7609  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610  test $ac_status = 0; }; then
7611    if test yes = "$lt_cv_prog_gnu_ld"; then
7612      case `$FILECMD conftest.$ac_objext` in
7613	*32-bit*)
7614	  LD="${LD-ld} -melf32bsmip"
7615	  ;;
7616	*N32*)
7617	  LD="${LD-ld} -melf32bmipn32"
7618	  ;;
7619	*64-bit*)
7620	  LD="${LD-ld} -melf64bmip"
7621	;;
7622      esac
7623    else
7624      case `$FILECMD conftest.$ac_objext` in
7625	*32-bit*)
7626	  LD="${LD-ld} -32"
7627	  ;;
7628	*N32*)
7629	  LD="${LD-ld} -n32"
7630	  ;;
7631	*64-bit*)
7632	  LD="${LD-ld} -64"
7633	  ;;
7634      esac
7635    fi
7636  fi
7637  rm -rf conftest*
7638  ;;
7639
7640mips64*-*linux*)
7641  # Find out what ABI is being produced by ac_compile, and set linker
7642  # options accordingly.
7643  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7644  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645  (eval $ac_compile) 2>&5
7646  ac_status=$?
7647  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648  test $ac_status = 0; }; then
7649    emul=elf
7650    case `$FILECMD conftest.$ac_objext` in
7651      *32-bit*)
7652	emul="${emul}32"
7653	;;
7654      *64-bit*)
7655	emul="${emul}64"
7656	;;
7657    esac
7658    case `$FILECMD conftest.$ac_objext` in
7659      *MSB*)
7660	emul="${emul}btsmip"
7661	;;
7662      *LSB*)
7663	emul="${emul}ltsmip"
7664	;;
7665    esac
7666    case `$FILECMD conftest.$ac_objext` in
7667      *N32*)
7668	emul="${emul}n32"
7669	;;
7670    esac
7671    LD="${LD-ld} -m $emul"
7672  fi
7673  rm -rf conftest*
7674  ;;
7675
7676x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7677s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7678  # Find out what ABI is being produced by ac_compile, and set linker
7679  # options accordingly.  Note that the listed cases only cover the
7680  # situations where additional linker options are needed (such as when
7681  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7682  # vice versa); the common cases where no linker options are needed do
7683  # not appear in the list.
7684  echo 'int i;' > conftest.$ac_ext
7685  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7686  (eval $ac_compile) 2>&5
7687  ac_status=$?
7688  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689  test $ac_status = 0; }; then
7690    case `$FILECMD conftest.o` in
7691      *32-bit*)
7692	case $host in
7693	  x86_64-*kfreebsd*-gnu)
7694	    LD="${LD-ld} -m elf_i386_fbsd"
7695	    ;;
7696	  x86_64-*linux*)
7697	    case `$FILECMD conftest.o` in
7698	      *x86-64*)
7699		LD="${LD-ld} -m elf32_x86_64"
7700		;;
7701	      *)
7702		LD="${LD-ld} -m elf_i386"
7703		;;
7704	    esac
7705	    ;;
7706	  powerpc64le-*linux*)
7707	    LD="${LD-ld} -m elf32lppclinux"
7708	    ;;
7709	  powerpc64-*linux*)
7710	    LD="${LD-ld} -m elf32ppclinux"
7711	    ;;
7712	  s390x-*linux*)
7713	    LD="${LD-ld} -m elf_s390"
7714	    ;;
7715	  sparc64-*linux*)
7716	    LD="${LD-ld} -m elf32_sparc"
7717	    ;;
7718	esac
7719	;;
7720      *64-bit*)
7721	case $host in
7722	  x86_64-*kfreebsd*-gnu)
7723	    LD="${LD-ld} -m elf_x86_64_fbsd"
7724	    ;;
7725	  x86_64-*linux*)
7726	    LD="${LD-ld} -m elf_x86_64"
7727	    ;;
7728	  powerpcle-*linux*)
7729	    LD="${LD-ld} -m elf64lppc"
7730	    ;;
7731	  powerpc-*linux*)
7732	    LD="${LD-ld} -m elf64ppc"
7733	    ;;
7734	  s390*-*linux*|s390*-*tpf*)
7735	    LD="${LD-ld} -m elf64_s390"
7736	    ;;
7737	  sparc*-*linux*)
7738	    LD="${LD-ld} -m elf64_sparc"
7739	    ;;
7740	esac
7741	;;
7742    esac
7743  fi
7744  rm -rf conftest*
7745  ;;
7746
7747*-*-sco3.2v5*)
7748  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7749  SAVE_CFLAGS=$CFLAGS
7750  CFLAGS="$CFLAGS -belf"
7751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7752printf %s "checking whether the C compiler needs -belf... " >&6; }
7753if test ${lt_cv_cc_needs_belf+y}
7754then :
7755  printf %s "(cached) " >&6
7756else $as_nop
7757  ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765
7766int
7767main (void)
7768{
7769
7770  ;
7771  return 0;
7772}
7773_ACEOF
7774if ac_fn_c_try_link "$LINENO"
7775then :
7776  lt_cv_cc_needs_belf=yes
7777else $as_nop
7778  lt_cv_cc_needs_belf=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext conftest.beam \
7781    conftest$ac_exeext conftest.$ac_ext
7782     ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788fi
7789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7790printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7791  if test yes != "$lt_cv_cc_needs_belf"; then
7792    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7793    CFLAGS=$SAVE_CFLAGS
7794  fi
7795  ;;
7796*-*solaris*)
7797  # Find out what ABI is being produced by ac_compile, and set linker
7798  # options accordingly.
7799  echo 'int i;' > conftest.$ac_ext
7800  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7801  (eval $ac_compile) 2>&5
7802  ac_status=$?
7803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804  test $ac_status = 0; }; then
7805    case `$FILECMD conftest.o` in
7806    *64-bit*)
7807      case $lt_cv_prog_gnu_ld in
7808      yes*)
7809        case $host in
7810        i?86-*-solaris*|x86_64-*-solaris*)
7811          LD="${LD-ld} -m elf_x86_64"
7812          ;;
7813        sparc*-*-solaris*)
7814          LD="${LD-ld} -m elf64_sparc"
7815          ;;
7816        esac
7817        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7818        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7819          LD=${LD-ld}_sol2
7820        fi
7821        ;;
7822      *)
7823	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7824	  LD="${LD-ld} -64"
7825	fi
7826	;;
7827      esac
7828      ;;
7829    esac
7830  fi
7831  rm -rf conftest*
7832  ;;
7833esac
7834
7835need_locks=$enable_libtool_lock
7836
7837if test -n "$ac_tool_prefix"; then
7838  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7839set dummy ${ac_tool_prefix}mt; ac_word=$2
7840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841printf %s "checking for $ac_word... " >&6; }
7842if test ${ac_cv_prog_MANIFEST_TOOL+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846  if test -n "$MANIFEST_TOOL"; then
7847  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  case $as_dir in #(((
7854    '') as_dir=./ ;;
7855    */) ;;
7856    *) as_dir=$as_dir/ ;;
7857  esac
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7860    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7861    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7871if test -n "$MANIFEST_TOOL"; then
7872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7873printf "%s\n" "$MANIFEST_TOOL" >&6; }
7874else
7875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876printf "%s\n" "no" >&6; }
7877fi
7878
7879
7880fi
7881if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7882  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7883  # Extract the first word of "mt", so it can be a program name with args.
7884set dummy mt; ac_word=$2
7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886printf %s "checking for $ac_word... " >&6; }
7887if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7888then :
7889  printf %s "(cached) " >&6
7890else $as_nop
7891  if test -n "$ac_ct_MANIFEST_TOOL"; then
7892  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7893else
7894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897  IFS=$as_save_IFS
7898  case $as_dir in #(((
7899    '') as_dir=./ ;;
7900    */) ;;
7901    *) as_dir=$as_dir/ ;;
7902  esac
7903    for ac_exec_ext in '' $ac_executable_extensions; do
7904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7905    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910  done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7916if test -n "$ac_ct_MANIFEST_TOOL"; then
7917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7918printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7919else
7920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921printf "%s\n" "no" >&6; }
7922fi
7923
7924  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7925    MANIFEST_TOOL=":"
7926  else
7927    case $cross_compiling:$ac_tool_warned in
7928yes:)
7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931ac_tool_warned=yes ;;
7932esac
7933    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7934  fi
7935else
7936  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7937fi
7938
7939test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7941printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7942if test ${lt_cv_path_mainfest_tool+y}
7943then :
7944  printf %s "(cached) " >&6
7945else $as_nop
7946  lt_cv_path_mainfest_tool=no
7947  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7948  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7949  cat conftest.err >&5
7950  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7951    lt_cv_path_mainfest_tool=yes
7952  fi
7953  rm -f conftest*
7954fi
7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7956printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7957if test yes != "$lt_cv_path_mainfest_tool"; then
7958  MANIFEST_TOOL=:
7959fi
7960
7961
7962
7963
7964
7965
7966  case $host_os in
7967    rhapsody* | darwin*)
7968    if test -n "$ac_tool_prefix"; then
7969  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7970set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972printf %s "checking for $ac_word... " >&6; }
7973if test ${ac_cv_prog_DSYMUTIL+y}
7974then :
7975  printf %s "(cached) " >&6
7976else $as_nop
7977  if test -n "$DSYMUTIL"; then
7978  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983  IFS=$as_save_IFS
7984  case $as_dir in #(((
7985    '') as_dir=./ ;;
7986    */) ;;
7987    *) as_dir=$as_dir/ ;;
7988  esac
7989    for ac_exec_ext in '' $ac_executable_extensions; do
7990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993    break 2
7994  fi
7995done
7996  done
7997IFS=$as_save_IFS
7998
7999fi
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 $as_nop
8022  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
8045fi
8046ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8047if test -n "$ac_ct_DSYMUTIL"; then
8048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8049printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8050else
8051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052printf "%s\n" "no" >&6; }
8053fi
8054
8055  if test "x$ac_ct_DSYMUTIL" = x; then
8056    DSYMUTIL=":"
8057  else
8058    case $cross_compiling:$ac_tool_warned in
8059yes:)
8060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062ac_tool_warned=yes ;;
8063esac
8064    DSYMUTIL=$ac_ct_DSYMUTIL
8065  fi
8066else
8067  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8068fi
8069
8070    if test -n "$ac_tool_prefix"; then
8071  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8072set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074printf %s "checking for $ac_word... " >&6; }
8075if test ${ac_cv_prog_NMEDIT+y}
8076then :
8077  printf %s "(cached) " >&6
8078else $as_nop
8079  if test -n "$NMEDIT"; then
8080  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  case $as_dir in #(((
8087    '') as_dir=./ ;;
8088    */) ;;
8089    *) as_dir=$as_dir/ ;;
8090  esac
8091    for ac_exec_ext in '' $ac_executable_extensions; do
8092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8093    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8095    break 2
8096  fi
8097done
8098  done
8099IFS=$as_save_IFS
8100
8101fi
8102fi
8103NMEDIT=$ac_cv_prog_NMEDIT
8104if test -n "$NMEDIT"; then
8105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8106printf "%s\n" "$NMEDIT" >&6; }
8107else
8108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109printf "%s\n" "no" >&6; }
8110fi
8111
8112
8113fi
8114if test -z "$ac_cv_prog_NMEDIT"; then
8115  ac_ct_NMEDIT=$NMEDIT
8116  # Extract the first word of "nmedit", so it can be a program name with args.
8117set dummy nmedit; ac_word=$2
8118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119printf %s "checking for $ac_word... " >&6; }
8120if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8121then :
8122  printf %s "(cached) " >&6
8123else $as_nop
8124  if test -n "$ac_ct_NMEDIT"; then
8125  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  case $as_dir in #(((
8132    '') as_dir=./ ;;
8133    */) ;;
8134    *) as_dir=$as_dir/ ;;
8135  esac
8136    for ac_exec_ext in '' $ac_executable_extensions; do
8137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8138    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8140    break 2
8141  fi
8142done
8143  done
8144IFS=$as_save_IFS
8145
8146fi
8147fi
8148ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8149if test -n "$ac_ct_NMEDIT"; then
8150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8151printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8152else
8153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154printf "%s\n" "no" >&6; }
8155fi
8156
8157  if test "x$ac_ct_NMEDIT" = x; then
8158    NMEDIT=":"
8159  else
8160    case $cross_compiling:$ac_tool_warned in
8161yes:)
8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164ac_tool_warned=yes ;;
8165esac
8166    NMEDIT=$ac_ct_NMEDIT
8167  fi
8168else
8169  NMEDIT="$ac_cv_prog_NMEDIT"
8170fi
8171
8172    if test -n "$ac_tool_prefix"; then
8173  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8174set dummy ${ac_tool_prefix}lipo; ac_word=$2
8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176printf %s "checking for $ac_word... " >&6; }
8177if test ${ac_cv_prog_LIPO+y}
8178then :
8179  printf %s "(cached) " >&6
8180else $as_nop
8181  if test -n "$LIPO"; then
8182  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187  IFS=$as_save_IFS
8188  case $as_dir in #(((
8189    '') as_dir=./ ;;
8190    */) ;;
8191    *) as_dir=$as_dir/ ;;
8192  esac
8193    for ac_exec_ext in '' $ac_executable_extensions; do
8194  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8195    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8196    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8197    break 2
8198  fi
8199done
8200  done
8201IFS=$as_save_IFS
8202
8203fi
8204fi
8205LIPO=$ac_cv_prog_LIPO
8206if test -n "$LIPO"; then
8207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8208printf "%s\n" "$LIPO" >&6; }
8209else
8210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211printf "%s\n" "no" >&6; }
8212fi
8213
8214
8215fi
8216if test -z "$ac_cv_prog_LIPO"; then
8217  ac_ct_LIPO=$LIPO
8218  # Extract the first word of "lipo", so it can be a program name with args.
8219set dummy lipo; ac_word=$2
8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221printf %s "checking for $ac_word... " >&6; }
8222if test ${ac_cv_prog_ac_ct_LIPO+y}
8223then :
8224  printf %s "(cached) " >&6
8225else $as_nop
8226  if test -n "$ac_ct_LIPO"; then
8227  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  case $as_dir in #(((
8234    '') as_dir=./ ;;
8235    */) ;;
8236    *) as_dir=$as_dir/ ;;
8237  esac
8238    for ac_exec_ext in '' $ac_executable_extensions; do
8239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8240    ac_cv_prog_ac_ct_LIPO="lipo"
8241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8242    break 2
8243  fi
8244done
8245  done
8246IFS=$as_save_IFS
8247
8248fi
8249fi
8250ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8251if test -n "$ac_ct_LIPO"; then
8252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8253printf "%s\n" "$ac_ct_LIPO" >&6; }
8254else
8255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256printf "%s\n" "no" >&6; }
8257fi
8258
8259  if test "x$ac_ct_LIPO" = x; then
8260    LIPO=":"
8261  else
8262    case $cross_compiling:$ac_tool_warned in
8263yes:)
8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8266ac_tool_warned=yes ;;
8267esac
8268    LIPO=$ac_ct_LIPO
8269  fi
8270else
8271  LIPO="$ac_cv_prog_LIPO"
8272fi
8273
8274    if test -n "$ac_tool_prefix"; then
8275  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8276set dummy ${ac_tool_prefix}otool; ac_word=$2
8277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278printf %s "checking for $ac_word... " >&6; }
8279if test ${ac_cv_prog_OTOOL+y}
8280then :
8281  printf %s "(cached) " >&6
8282else $as_nop
8283  if test -n "$OTOOL"; then
8284  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289  IFS=$as_save_IFS
8290  case $as_dir in #(((
8291    '') as_dir=./ ;;
8292    */) ;;
8293    *) as_dir=$as_dir/ ;;
8294  esac
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8298    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi
8306fi
8307OTOOL=$ac_cv_prog_OTOOL
8308if test -n "$OTOOL"; then
8309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8310printf "%s\n" "$OTOOL" >&6; }
8311else
8312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313printf "%s\n" "no" >&6; }
8314fi
8315
8316
8317fi
8318if test -z "$ac_cv_prog_OTOOL"; then
8319  ac_ct_OTOOL=$OTOOL
8320  # Extract the first word of "otool", so it can be a program name with args.
8321set dummy otool; ac_word=$2
8322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323printf %s "checking for $ac_word... " >&6; }
8324if test ${ac_cv_prog_ac_ct_OTOOL+y}
8325then :
8326  printf %s "(cached) " >&6
8327else $as_nop
8328  if test -n "$ac_ct_OTOOL"; then
8329  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334  IFS=$as_save_IFS
8335  case $as_dir in #(((
8336    '') as_dir=./ ;;
8337    */) ;;
8338    *) as_dir=$as_dir/ ;;
8339  esac
8340    for ac_exec_ext in '' $ac_executable_extensions; do
8341  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342    ac_cv_prog_ac_ct_OTOOL="otool"
8343    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344    break 2
8345  fi
8346done
8347  done
8348IFS=$as_save_IFS
8349
8350fi
8351fi
8352ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8353if test -n "$ac_ct_OTOOL"; then
8354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8355printf "%s\n" "$ac_ct_OTOOL" >&6; }
8356else
8357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358printf "%s\n" "no" >&6; }
8359fi
8360
8361  if test "x$ac_ct_OTOOL" = x; then
8362    OTOOL=":"
8363  else
8364    case $cross_compiling:$ac_tool_warned in
8365yes:)
8366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368ac_tool_warned=yes ;;
8369esac
8370    OTOOL=$ac_ct_OTOOL
8371  fi
8372else
8373  OTOOL="$ac_cv_prog_OTOOL"
8374fi
8375
8376    if test -n "$ac_tool_prefix"; then
8377  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8378set dummy ${ac_tool_prefix}otool64; ac_word=$2
8379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380printf %s "checking for $ac_word... " >&6; }
8381if test ${ac_cv_prog_OTOOL64+y}
8382then :
8383  printf %s "(cached) " >&6
8384else $as_nop
8385  if test -n "$OTOOL64"; then
8386  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8387else
8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391  IFS=$as_save_IFS
8392  case $as_dir in #(((
8393    '') as_dir=./ ;;
8394    */) ;;
8395    *) as_dir=$as_dir/ ;;
8396  esac
8397    for ac_exec_ext in '' $ac_executable_extensions; do
8398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8399    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8401    break 2
8402  fi
8403done
8404  done
8405IFS=$as_save_IFS
8406
8407fi
8408fi
8409OTOOL64=$ac_cv_prog_OTOOL64
8410if test -n "$OTOOL64"; then
8411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8412printf "%s\n" "$OTOOL64" >&6; }
8413else
8414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415printf "%s\n" "no" >&6; }
8416fi
8417
8418
8419fi
8420if test -z "$ac_cv_prog_OTOOL64"; then
8421  ac_ct_OTOOL64=$OTOOL64
8422  # Extract the first word of "otool64", so it can be a program name with args.
8423set dummy otool64; ac_word=$2
8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425printf %s "checking for $ac_word... " >&6; }
8426if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8427then :
8428  printf %s "(cached) " >&6
8429else $as_nop
8430  if test -n "$ac_ct_OTOOL64"; then
8431  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8432else
8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436  IFS=$as_save_IFS
8437  case $as_dir in #(((
8438    '') as_dir=./ ;;
8439    */) ;;
8440    *) as_dir=$as_dir/ ;;
8441  esac
8442    for ac_exec_ext in '' $ac_executable_extensions; do
8443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8444    ac_cv_prog_ac_ct_OTOOL64="otool64"
8445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8446    break 2
8447  fi
8448done
8449  done
8450IFS=$as_save_IFS
8451
8452fi
8453fi
8454ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8455if test -n "$ac_ct_OTOOL64"; then
8456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8457printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8458else
8459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460printf "%s\n" "no" >&6; }
8461fi
8462
8463  if test "x$ac_ct_OTOOL64" = x; then
8464    OTOOL64=":"
8465  else
8466    case $cross_compiling:$ac_tool_warned in
8467yes:)
8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470ac_tool_warned=yes ;;
8471esac
8472    OTOOL64=$ac_ct_OTOOL64
8473  fi
8474else
8475  OTOOL64="$ac_cv_prog_OTOOL64"
8476fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8505printf %s "checking for -single_module linker flag... " >&6; }
8506if test ${lt_cv_apple_cc_single_mod+y}
8507then :
8508  printf %s "(cached) " >&6
8509else $as_nop
8510  lt_cv_apple_cc_single_mod=no
8511      if test -z "$LT_MULTI_MODULE"; then
8512	# By default we will add the -single_module flag. You can override
8513	# by either setting the environment variable LT_MULTI_MODULE
8514	# non-empty at configure time, or by adding -multi_module to the
8515	# link flags.
8516	rm -rf libconftest.dylib*
8517	echo "int foo(void){return 1;}" > conftest.c
8518	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8519-dynamiclib -Wl,-single_module conftest.c" >&5
8520	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8521	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8522        _lt_result=$?
8523	# If there is a non-empty error log, and "single_module"
8524	# appears in it, assume the flag caused a linker warning
8525        if test -s conftest.err && $GREP single_module conftest.err; then
8526	  cat conftest.err >&5
8527	# Otherwise, if the output was created with a 0 exit code from
8528	# the compiler, it worked.
8529	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8530	  lt_cv_apple_cc_single_mod=yes
8531	else
8532	  cat conftest.err >&5
8533	fi
8534	rm -rf libconftest.dylib*
8535	rm -f conftest.*
8536      fi
8537fi
8538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8539printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8540
8541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8542printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8543if test ${lt_cv_ld_exported_symbols_list+y}
8544then :
8545  printf %s "(cached) " >&6
8546else $as_nop
8547  lt_cv_ld_exported_symbols_list=no
8548      save_LDFLAGS=$LDFLAGS
8549      echo "_main" > conftest.sym
8550      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553
8554int
8555main (void)
8556{
8557
8558  ;
8559  return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_link "$LINENO"
8563then :
8564  lt_cv_ld_exported_symbols_list=yes
8565else $as_nop
8566  lt_cv_ld_exported_symbols_list=no
8567fi
8568rm -f core conftest.err conftest.$ac_objext conftest.beam \
8569    conftest$ac_exeext conftest.$ac_ext
8570	LDFLAGS=$save_LDFLAGS
8571
8572fi
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8574printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8575
8576    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8577printf %s "checking for -force_load linker flag... " >&6; }
8578if test ${lt_cv_ld_force_load+y}
8579then :
8580  printf %s "(cached) " >&6
8581else $as_nop
8582  lt_cv_ld_force_load=no
8583      cat > conftest.c << _LT_EOF
8584int forced_loaded() { return 2;}
8585_LT_EOF
8586      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8587      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8588      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8589      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8590      echo "$RANLIB libconftest.a" >&5
8591      $RANLIB libconftest.a 2>&5
8592      cat > conftest.c << _LT_EOF
8593int main() { return 0;}
8594_LT_EOF
8595      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8596      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8597      _lt_result=$?
8598      if test -s conftest.err && $GREP force_load conftest.err; then
8599	cat conftest.err >&5
8600      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8601	lt_cv_ld_force_load=yes
8602      else
8603	cat conftest.err >&5
8604      fi
8605        rm -f conftest.err libconftest.a conftest conftest.c
8606        rm -rf conftest.dSYM
8607
8608fi
8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8610printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8611    case $host_os in
8612    rhapsody* | darwin1.[012])
8613      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8614    darwin1.*)
8615      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8616    darwin*)
8617      case $MACOSX_DEPLOYMENT_TARGET,$host in
8618        10.[012],*|,*powerpc*-darwin[5-8]*)
8619          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8620        *)
8621          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8622      esac
8623    ;;
8624  esac
8625    if test yes = "$lt_cv_apple_cc_single_mod"; then
8626      _lt_dar_single_mod='$single_module'
8627    fi
8628    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8629      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8630    else
8631      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8632    fi
8633    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8634      _lt_dsymutil='~$DSYMUTIL $lib || :'
8635    else
8636      _lt_dsymutil=
8637    fi
8638    ;;
8639  esac
8640
8641# func_munge_path_list VARIABLE PATH
8642# -----------------------------------
8643# VARIABLE is name of variable containing _space_ separated list of
8644# directories to be munged by the contents of PATH, which is string
8645# having a format:
8646# "DIR[:DIR]:"
8647#       string "DIR[ DIR]" will be prepended to VARIABLE
8648# ":DIR[:DIR]"
8649#       string "DIR[ DIR]" will be appended to VARIABLE
8650# "DIRP[:DIRP]::[DIRA:]DIRA"
8651#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8652#       "DIRA[ DIRA]" will be appended to VARIABLE
8653# "DIR[:DIR]"
8654#       VARIABLE will be replaced by "DIR[ DIR]"
8655func_munge_path_list ()
8656{
8657    case x$2 in
8658    x)
8659        ;;
8660    *:)
8661        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8662        ;;
8663    x:*)
8664        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8665        ;;
8666    *::*)
8667        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8668        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8669        ;;
8670    *)
8671        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8672        ;;
8673    esac
8674}
8675
8676ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8677"
8678if test "x$ac_cv_header_dlfcn_h" = xyes
8679then :
8680  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8681
8682fi
8683
8684
8685
8686
8687
8688# Set options
8689
8690
8691
8692        enable_dlopen=no
8693
8694
8695  enable_win32_dll=no
8696
8697
8698            # Check whether --enable-shared was given.
8699if test ${enable_shared+y}
8700then :
8701  enableval=$enable_shared; p=${PACKAGE-default}
8702    case $enableval in
8703    yes) enable_shared=yes ;;
8704    no) enable_shared=no ;;
8705    *)
8706      enable_shared=no
8707      # Look at the argument we got.  We use all the common list separators.
8708      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8709      for pkg in $enableval; do
8710	IFS=$lt_save_ifs
8711	if test "X$pkg" = "X$p"; then
8712	  enable_shared=yes
8713	fi
8714      done
8715      IFS=$lt_save_ifs
8716      ;;
8717    esac
8718else $as_nop
8719  enable_shared=yes
8720fi
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730  # Check whether --enable-static was given.
8731if test ${enable_static+y}
8732then :
8733  enableval=$enable_static; p=${PACKAGE-default}
8734    case $enableval in
8735    yes) enable_static=yes ;;
8736    no) enable_static=no ;;
8737    *)
8738     enable_static=no
8739      # Look at the argument we got.  We use all the common list separators.
8740      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8741      for pkg in $enableval; do
8742	IFS=$lt_save_ifs
8743	if test "X$pkg" = "X$p"; then
8744	  enable_static=yes
8745	fi
8746      done
8747      IFS=$lt_save_ifs
8748      ;;
8749    esac
8750else $as_nop
8751  enable_static=yes
8752fi
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763# Check whether --with-pic was given.
8764if test ${with_pic+y}
8765then :
8766  withval=$with_pic; lt_p=${PACKAGE-default}
8767    case $withval in
8768    yes|no) pic_mode=$withval ;;
8769    *)
8770      pic_mode=default
8771      # Look at the argument we got.  We use all the common list separators.
8772      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8773      for lt_pkg in $withval; do
8774	IFS=$lt_save_ifs
8775	if test "X$lt_pkg" = "X$lt_p"; then
8776	  pic_mode=yes
8777	fi
8778      done
8779      IFS=$lt_save_ifs
8780      ;;
8781    esac
8782else $as_nop
8783  pic_mode=default
8784fi
8785
8786
8787
8788
8789
8790
8791
8792
8793  # Check whether --enable-fast-install was given.
8794if test ${enable_fast_install+y}
8795then :
8796  enableval=$enable_fast_install; p=${PACKAGE-default}
8797    case $enableval in
8798    yes) enable_fast_install=yes ;;
8799    no) enable_fast_install=no ;;
8800    *)
8801      enable_fast_install=no
8802      # Look at the argument we got.  We use all the common list separators.
8803      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8804      for pkg in $enableval; do
8805	IFS=$lt_save_ifs
8806	if test "X$pkg" = "X$p"; then
8807	  enable_fast_install=yes
8808	fi
8809      done
8810      IFS=$lt_save_ifs
8811      ;;
8812    esac
8813else $as_nop
8814  enable_fast_install=yes
8815fi
8816
8817
8818
8819
8820
8821
8822
8823
8824  shared_archive_member_spec=
8825case $host,$enable_shared in
8826power*-*-aix[5-9]*,yes)
8827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8828printf %s "checking which variant of shared library versioning to provide... " >&6; }
8829
8830# Check whether --with-aix-soname was given.
8831if test ${with_aix_soname+y}
8832then :
8833  withval=$with_aix_soname; case $withval in
8834    aix|svr4|both)
8835      ;;
8836    *)
8837      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8838      ;;
8839    esac
8840    lt_cv_with_aix_soname=$with_aix_soname
8841else $as_nop
8842  if test ${lt_cv_with_aix_soname+y}
8843then :
8844  printf %s "(cached) " >&6
8845else $as_nop
8846  lt_cv_with_aix_soname=aix
8847fi
8848
8849    with_aix_soname=$lt_cv_with_aix_soname
8850fi
8851
8852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8853printf "%s\n" "$with_aix_soname" >&6; }
8854  if test aix != "$with_aix_soname"; then
8855    # For the AIX way of multilib, we name the shared archive member
8856    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8857    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8858    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8859    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8860    if test 64 = "${OBJECT_MODE-32}"; then
8861      shared_archive_member_spec=shr_64
8862    else
8863      shared_archive_member_spec=shr
8864    fi
8865  fi
8866  ;;
8867*)
8868  with_aix_soname=aix
8869  ;;
8870esac
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881# This can be used to rebuild libtool when needed
8882LIBTOOL_DEPS=$ltmain
8883
8884# Always use our own libtool.
8885LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916test -z "$LN_S" && LN_S="ln -s"
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931if test -n "${ZSH_VERSION+set}"; then
8932   setopt NO_GLOB_SUBST
8933fi
8934
8935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8936printf %s "checking for objdir... " >&6; }
8937if test ${lt_cv_objdir+y}
8938then :
8939  printf %s "(cached) " >&6
8940else $as_nop
8941  rm -f .libs 2>/dev/null
8942mkdir .libs 2>/dev/null
8943if test -d .libs; then
8944  lt_cv_objdir=.libs
8945else
8946  # MS-DOS does not allow filenames that begin with a dot.
8947  lt_cv_objdir=_libs
8948fi
8949rmdir .libs 2>/dev/null
8950fi
8951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8952printf "%s\n" "$lt_cv_objdir" >&6; }
8953objdir=$lt_cv_objdir
8954
8955
8956
8957
8958
8959printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8960
8961
8962
8963
8964case $host_os in
8965aix3*)
8966  # AIX sometimes has problems with the GCC collect2 program.  For some
8967  # reason, if we set the COLLECT_NAMES environment variable, the problems
8968  # vanish in a puff of smoke.
8969  if test set != "${COLLECT_NAMES+set}"; then
8970    COLLECT_NAMES=
8971    export COLLECT_NAMES
8972  fi
8973  ;;
8974esac
8975
8976# Global variables:
8977ofile=libtool
8978can_build_shared=yes
8979
8980# All known linkers require a '.a' archive for static linking (except MSVC and
8981# ICC, which need '.lib').
8982libext=a
8983
8984with_gnu_ld=$lt_cv_prog_gnu_ld
8985
8986old_CC=$CC
8987old_CFLAGS=$CFLAGS
8988
8989# Set sane defaults for various variables
8990test -z "$CC" && CC=cc
8991test -z "$LTCC" && LTCC=$CC
8992test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8993test -z "$LD" && LD=ld
8994test -z "$ac_objext" && ac_objext=o
8995
8996func_cc_basename $compiler
8997cc_basename=$func_cc_basename_result
8998
8999
9000# Only perform the check for file, if the check method requires it
9001test -z "$MAGIC_CMD" && MAGIC_CMD=file
9002case $deplibs_check_method in
9003file_magic*)
9004  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9006printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9007if test ${lt_cv_path_MAGIC_CMD+y}
9008then :
9009  printf %s "(cached) " >&6
9010else $as_nop
9011  case $MAGIC_CMD in
9012[\\/*] |  ?:[\\/]*)
9013  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9014  ;;
9015*)
9016  lt_save_MAGIC_CMD=$MAGIC_CMD
9017  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9018  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9019  for ac_dir in $ac_dummy; do
9020    IFS=$lt_save_ifs
9021    test -z "$ac_dir" && ac_dir=.
9022    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9023      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9024      if test -n "$file_magic_test_file"; then
9025	case $deplibs_check_method in
9026	"file_magic "*)
9027	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9028	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9029	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9030	    $EGREP "$file_magic_regex" > /dev/null; then
9031	    :
9032	  else
9033	    cat <<_LT_EOF 1>&2
9034
9035*** Warning: the command libtool uses to detect shared libraries,
9036*** $file_magic_cmd, produces output that libtool cannot recognize.
9037*** The result is that libtool may fail to recognize shared libraries
9038*** as such.  This will affect the creation of libtool libraries that
9039*** depend on shared libraries, but programs linked with such libtool
9040*** libraries will work regardless of this problem.  Nevertheless, you
9041*** may want to report the problem to your system manager and/or to
9042*** bug-libtool@gnu.org
9043
9044_LT_EOF
9045	  fi ;;
9046	esac
9047      fi
9048      break
9049    fi
9050  done
9051  IFS=$lt_save_ifs
9052  MAGIC_CMD=$lt_save_MAGIC_CMD
9053  ;;
9054esac
9055fi
9056
9057MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9058if test -n "$MAGIC_CMD"; then
9059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9060printf "%s\n" "$MAGIC_CMD" >&6; }
9061else
9062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063printf "%s\n" "no" >&6; }
9064fi
9065
9066
9067
9068
9069
9070if test -z "$lt_cv_path_MAGIC_CMD"; then
9071  if test -n "$ac_tool_prefix"; then
9072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9073printf %s "checking for file... " >&6; }
9074if test ${lt_cv_path_MAGIC_CMD+y}
9075then :
9076  printf %s "(cached) " >&6
9077else $as_nop
9078  case $MAGIC_CMD in
9079[\\/*] |  ?:[\\/]*)
9080  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9081  ;;
9082*)
9083  lt_save_MAGIC_CMD=$MAGIC_CMD
9084  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9086  for ac_dir in $ac_dummy; do
9087    IFS=$lt_save_ifs
9088    test -z "$ac_dir" && ac_dir=.
9089    if test -f "$ac_dir/file"; then
9090      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9091      if test -n "$file_magic_test_file"; then
9092	case $deplibs_check_method in
9093	"file_magic "*)
9094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9095	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9097	    $EGREP "$file_magic_regex" > /dev/null; then
9098	    :
9099	  else
9100	    cat <<_LT_EOF 1>&2
9101
9102*** Warning: the command libtool uses to detect shared libraries,
9103*** $file_magic_cmd, produces output that libtool cannot recognize.
9104*** The result is that libtool may fail to recognize shared libraries
9105*** as such.  This will affect the creation of libtool libraries that
9106*** depend on shared libraries, but programs linked with such libtool
9107*** libraries will work regardless of this problem.  Nevertheless, you
9108*** may want to report the problem to your system manager and/or to
9109*** bug-libtool@gnu.org
9110
9111_LT_EOF
9112	  fi ;;
9113	esac
9114      fi
9115      break
9116    fi
9117  done
9118  IFS=$lt_save_ifs
9119  MAGIC_CMD=$lt_save_MAGIC_CMD
9120  ;;
9121esac
9122fi
9123
9124MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9125if test -n "$MAGIC_CMD"; then
9126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9127printf "%s\n" "$MAGIC_CMD" >&6; }
9128else
9129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130printf "%s\n" "no" >&6; }
9131fi
9132
9133
9134  else
9135    MAGIC_CMD=:
9136  fi
9137fi
9138
9139  fi
9140  ;;
9141esac
9142
9143# Use C for the default configuration in the libtool script
9144
9145lt_save_CC=$CC
9146ac_ext=c
9147ac_cpp='$CPP $CPPFLAGS'
9148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150ac_compiler_gnu=$ac_cv_c_compiler_gnu
9151
9152
9153# Source file extension for C test sources.
9154ac_ext=c
9155
9156# Object file extension for compiled C test sources.
9157objext=o
9158objext=$objext
9159
9160# Code to be used in simple compile tests
9161lt_simple_compile_test_code="int some_variable = 0;"
9162
9163# Code to be used in simple link tests
9164lt_simple_link_test_code='int main(){return(0);}'
9165
9166
9167
9168
9169
9170
9171
9172# If no C compiler was specified, use CC.
9173LTCC=${LTCC-"$CC"}
9174
9175# If no C compiler flags were specified, use CFLAGS.
9176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9177
9178# Allow CC to be a program name with arguments.
9179compiler=$CC
9180
9181# Save the default compiler, since it gets overwritten when the other
9182# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9183compiler_DEFAULT=$CC
9184
9185# save warnings/boilerplate of simple test code
9186ac_outfile=conftest.$ac_objext
9187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9189_lt_compiler_boilerplate=`cat conftest.err`
9190$RM conftest*
9191
9192ac_outfile=conftest.$ac_objext
9193echo "$lt_simple_link_test_code" >conftest.$ac_ext
9194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9195_lt_linker_boilerplate=`cat conftest.err`
9196$RM -r conftest*
9197
9198
9199## CAVEAT EMPTOR:
9200## There is no encapsulation within the following macros, do not change
9201## the running order or otherwise move them around unless you know exactly
9202## what you are doing...
9203if test -n "$compiler"; then
9204
9205lt_prog_compiler_no_builtin_flag=
9206
9207if test yes = "$GCC"; then
9208  case $cc_basename in
9209  nvcc*)
9210    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9211  *)
9212    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9213  esac
9214
9215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9216printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9217if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9218then :
9219  printf %s "(cached) " >&6
9220else $as_nop
9221  lt_cv_prog_compiler_rtti_exceptions=no
9222   ac_outfile=conftest.$ac_objext
9223   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9225   # Insert the option either (1) after the last *FLAGS variable, or
9226   # (2) before a word containing "conftest.", or (3) at the end.
9227   # Note that $ac_compile itself does not contain backslashes and begins
9228   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229   # The option is referenced via a variable to avoid confusing sed.
9230   lt_compile=`echo "$ac_compile" | $SED \
9231   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233   -e 's:$: $lt_compiler_flag:'`
9234   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235   (eval "$lt_compile" 2>conftest.err)
9236   ac_status=$?
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   if (exit $ac_status) && test -s "$ac_outfile"; then
9240     # The compiler can only warn and ignore the option if not recognized
9241     # So say no if there are warnings other than the usual output.
9242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9243     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245       lt_cv_prog_compiler_rtti_exceptions=yes
9246     fi
9247   fi
9248   $RM conftest*
9249
9250fi
9251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9252printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9253
9254if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9255    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9256else
9257    :
9258fi
9259
9260fi
9261
9262
9263
9264
9265
9266
9267  lt_prog_compiler_wl=
9268lt_prog_compiler_pic=
9269lt_prog_compiler_static=
9270
9271
9272  if test yes = "$GCC"; then
9273    lt_prog_compiler_wl='-Wl,'
9274    lt_prog_compiler_static='-static'
9275
9276    case $host_os in
9277      aix*)
9278      # All AIX code is PIC.
9279      if test ia64 = "$host_cpu"; then
9280	# AIX 5 now supports IA64 processor
9281	lt_prog_compiler_static='-Bstatic'
9282      fi
9283      lt_prog_compiler_pic='-fPIC'
9284      ;;
9285
9286    amigaos*)
9287      case $host_cpu in
9288      powerpc)
9289            # see comment about AmigaOS4 .so support
9290            lt_prog_compiler_pic='-fPIC'
9291        ;;
9292      m68k)
9293            # FIXME: we need at least 68020 code to build shared libraries, but
9294            # adding the '-m68020' flag to GCC prevents building anything better,
9295            # like '-m68040'.
9296            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9297        ;;
9298      esac
9299      ;;
9300
9301    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9302      # PIC is the default for these OSes.
9303      ;;
9304
9305    mingw* | cygwin* | pw32* | os2* | cegcc*)
9306      # This hack is so that the source file can tell whether it is being
9307      # built for inclusion in a dll (and should export symbols for example).
9308      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9309      # (--disable-auto-import) libraries
9310      lt_prog_compiler_pic='-DDLL_EXPORT'
9311      case $host_os in
9312      os2*)
9313	lt_prog_compiler_static='$wl-static'
9314	;;
9315      esac
9316      ;;
9317
9318    darwin* | rhapsody*)
9319      # PIC is the default on this platform
9320      # Common symbols not allowed in MH_DYLIB files
9321      lt_prog_compiler_pic='-fno-common'
9322      ;;
9323
9324    haiku*)
9325      # PIC is the default for Haiku.
9326      # The "-static" flag exists, but is broken.
9327      lt_prog_compiler_static=
9328      ;;
9329
9330    hpux*)
9331      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9332      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9333      # sets the default TLS model and affects inlining.
9334      case $host_cpu in
9335      hppa*64*)
9336	# +Z the default
9337	;;
9338      *)
9339	lt_prog_compiler_pic='-fPIC'
9340	;;
9341      esac
9342      ;;
9343
9344    interix[3-9]*)
9345      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9346      # Instead, we relocate shared libraries at runtime.
9347      ;;
9348
9349    msdosdjgpp*)
9350      # Just because we use GCC doesn't mean we suddenly get shared libraries
9351      # on systems that don't support them.
9352      lt_prog_compiler_can_build_shared=no
9353      enable_shared=no
9354      ;;
9355
9356    *nto* | *qnx*)
9357      # QNX uses GNU C++, but need to define -shared option too, otherwise
9358      # it will coredump.
9359      lt_prog_compiler_pic='-fPIC -shared'
9360      ;;
9361
9362    sysv4*MP*)
9363      if test -d /usr/nec; then
9364	lt_prog_compiler_pic=-Kconform_pic
9365      fi
9366      ;;
9367
9368    *)
9369      lt_prog_compiler_pic='-fPIC'
9370      ;;
9371    esac
9372
9373    case $cc_basename in
9374    nvcc*) # Cuda Compiler Driver 2.2
9375      lt_prog_compiler_wl='-Xlinker '
9376      if test -n "$lt_prog_compiler_pic"; then
9377        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9378      fi
9379      ;;
9380    esac
9381  else
9382    # PORTME Check for flag to pass linker flags through the system compiler.
9383    case $host_os in
9384    aix*)
9385      lt_prog_compiler_wl='-Wl,'
9386      if test ia64 = "$host_cpu"; then
9387	# AIX 5 now supports IA64 processor
9388	lt_prog_compiler_static='-Bstatic'
9389      else
9390	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9391      fi
9392      ;;
9393
9394    darwin* | rhapsody*)
9395      # PIC is the default on this platform
9396      # Common symbols not allowed in MH_DYLIB files
9397      lt_prog_compiler_pic='-fno-common'
9398      case $cc_basename in
9399      nagfor*)
9400        # NAG Fortran compiler
9401        lt_prog_compiler_wl='-Wl,-Wl,,'
9402        lt_prog_compiler_pic='-PIC'
9403        lt_prog_compiler_static='-Bstatic'
9404        ;;
9405      esac
9406      ;;
9407
9408    mingw* | cygwin* | pw32* | os2* | cegcc*)
9409      # This hack is so that the source file can tell whether it is being
9410      # built for inclusion in a dll (and should export symbols for example).
9411      lt_prog_compiler_pic='-DDLL_EXPORT'
9412      case $host_os in
9413      os2*)
9414	lt_prog_compiler_static='$wl-static'
9415	;;
9416      esac
9417      ;;
9418
9419    hpux9* | hpux10* | hpux11*)
9420      lt_prog_compiler_wl='-Wl,'
9421      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9422      # not for PA HP-UX.
9423      case $host_cpu in
9424      hppa*64*|ia64*)
9425	# +Z the default
9426	;;
9427      *)
9428	lt_prog_compiler_pic='+Z'
9429	;;
9430      esac
9431      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9432      lt_prog_compiler_static='$wl-a ${wl}archive'
9433      ;;
9434
9435    irix5* | irix6* | nonstopux*)
9436      lt_prog_compiler_wl='-Wl,'
9437      # PIC (with -KPIC) is the default.
9438      lt_prog_compiler_static='-non_shared'
9439      ;;
9440
9441    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9442      case $cc_basename in
9443      # old Intel for x86_64, which still supported -KPIC.
9444      ecc*)
9445	lt_prog_compiler_wl='-Wl,'
9446	lt_prog_compiler_pic='-KPIC'
9447	lt_prog_compiler_static='-static'
9448        ;;
9449      # icc used to be incompatible with GCC.
9450      # ICC 10 doesn't accept -KPIC any more.
9451      icc* | ifort*)
9452	lt_prog_compiler_wl='-Wl,'
9453	lt_prog_compiler_pic='-fPIC'
9454	lt_prog_compiler_static='-static'
9455        ;;
9456      # Lahey Fortran 8.1.
9457      lf95*)
9458	lt_prog_compiler_wl='-Wl,'
9459	lt_prog_compiler_pic='--shared'
9460	lt_prog_compiler_static='--static'
9461	;;
9462      nagfor*)
9463	# NAG Fortran compiler
9464	lt_prog_compiler_wl='-Wl,-Wl,,'
9465	lt_prog_compiler_pic='-PIC'
9466	lt_prog_compiler_static='-Bstatic'
9467	;;
9468      tcc*)
9469	# Fabrice Bellard et al's Tiny C Compiler
9470	lt_prog_compiler_wl='-Wl,'
9471	lt_prog_compiler_pic='-fPIC'
9472	lt_prog_compiler_static='-static'
9473	;;
9474      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9475        # Portland Group compilers (*not* the Pentium gcc compiler,
9476	# which looks to be a dead project)
9477	lt_prog_compiler_wl='-Wl,'
9478	lt_prog_compiler_pic='-fpic'
9479	lt_prog_compiler_static='-Bstatic'
9480        ;;
9481      ccc*)
9482        lt_prog_compiler_wl='-Wl,'
9483        # All Alpha code is PIC.
9484        lt_prog_compiler_static='-non_shared'
9485        ;;
9486      xl* | bgxl* | bgf* | mpixl*)
9487	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9488	lt_prog_compiler_wl='-Wl,'
9489	lt_prog_compiler_pic='-qpic'
9490	lt_prog_compiler_static='-qstaticlink'
9491	;;
9492      *)
9493	case `$CC -V 2>&1 | $SED 5q` in
9494	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9495	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9496	  lt_prog_compiler_pic='-KPIC'
9497	  lt_prog_compiler_static='-Bstatic'
9498	  lt_prog_compiler_wl=''
9499	  ;;
9500	*Sun\ F* | *Sun*Fortran*)
9501	  lt_prog_compiler_pic='-KPIC'
9502	  lt_prog_compiler_static='-Bstatic'
9503	  lt_prog_compiler_wl='-Qoption ld '
9504	  ;;
9505	*Sun\ C*)
9506	  # Sun C 5.9
9507	  lt_prog_compiler_pic='-KPIC'
9508	  lt_prog_compiler_static='-Bstatic'
9509	  lt_prog_compiler_wl='-Wl,'
9510	  ;;
9511        *Intel*\ [CF]*Compiler*)
9512	  lt_prog_compiler_wl='-Wl,'
9513	  lt_prog_compiler_pic='-fPIC'
9514	  lt_prog_compiler_static='-static'
9515	  ;;
9516	*Portland\ Group*)
9517	  lt_prog_compiler_wl='-Wl,'
9518	  lt_prog_compiler_pic='-fpic'
9519	  lt_prog_compiler_static='-Bstatic'
9520	  ;;
9521	esac
9522	;;
9523      esac
9524      ;;
9525
9526    newsos6)
9527      lt_prog_compiler_pic='-KPIC'
9528      lt_prog_compiler_static='-Bstatic'
9529      ;;
9530
9531    *nto* | *qnx*)
9532      # QNX uses GNU C++, but need to define -shared option too, otherwise
9533      # it will coredump.
9534      lt_prog_compiler_pic='-fPIC -shared'
9535      ;;
9536
9537    osf3* | osf4* | osf5*)
9538      lt_prog_compiler_wl='-Wl,'
9539      # All OSF/1 code is PIC.
9540      lt_prog_compiler_static='-non_shared'
9541      ;;
9542
9543    rdos*)
9544      lt_prog_compiler_static='-non_shared'
9545      ;;
9546
9547    solaris*)
9548      lt_prog_compiler_pic='-KPIC'
9549      lt_prog_compiler_static='-Bstatic'
9550      case $cc_basename in
9551      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9552	lt_prog_compiler_wl='-Qoption ld ';;
9553      *)
9554	lt_prog_compiler_wl='-Wl,';;
9555      esac
9556      ;;
9557
9558    sunos4*)
9559      lt_prog_compiler_wl='-Qoption ld '
9560      lt_prog_compiler_pic='-PIC'
9561      lt_prog_compiler_static='-Bstatic'
9562      ;;
9563
9564    sysv4 | sysv4.2uw2* | sysv4.3*)
9565      lt_prog_compiler_wl='-Wl,'
9566      lt_prog_compiler_pic='-KPIC'
9567      lt_prog_compiler_static='-Bstatic'
9568      ;;
9569
9570    sysv4*MP*)
9571      if test -d /usr/nec; then
9572	lt_prog_compiler_pic='-Kconform_pic'
9573	lt_prog_compiler_static='-Bstatic'
9574      fi
9575      ;;
9576
9577    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9578      lt_prog_compiler_wl='-Wl,'
9579      lt_prog_compiler_pic='-KPIC'
9580      lt_prog_compiler_static='-Bstatic'
9581      ;;
9582
9583    unicos*)
9584      lt_prog_compiler_wl='-Wl,'
9585      lt_prog_compiler_can_build_shared=no
9586      ;;
9587
9588    uts4*)
9589      lt_prog_compiler_pic='-pic'
9590      lt_prog_compiler_static='-Bstatic'
9591      ;;
9592
9593    *)
9594      lt_prog_compiler_can_build_shared=no
9595      ;;
9596    esac
9597  fi
9598
9599case $host_os in
9600  # For platforms that do not support PIC, -DPIC is meaningless:
9601  *djgpp*)
9602    lt_prog_compiler_pic=
9603    ;;
9604  *)
9605    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9606    ;;
9607esac
9608
9609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9610printf %s "checking for $compiler option to produce PIC... " >&6; }
9611if test ${lt_cv_prog_compiler_pic+y}
9612then :
9613  printf %s "(cached) " >&6
9614else $as_nop
9615  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9616fi
9617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9618printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9619lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9620
9621#
9622# Check to make sure the PIC flag actually works.
9623#
9624if test -n "$lt_prog_compiler_pic"; then
9625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9626printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9627if test ${lt_cv_prog_compiler_pic_works+y}
9628then :
9629  printf %s "(cached) " >&6
9630else $as_nop
9631  lt_cv_prog_compiler_pic_works=no
9632   ac_outfile=conftest.$ac_objext
9633   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9634   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9635   # Insert the option either (1) after the last *FLAGS variable, or
9636   # (2) before a word containing "conftest.", or (3) at the end.
9637   # Note that $ac_compile itself does not contain backslashes and begins
9638   # with a dollar sign (not a hyphen), so the echo should work correctly.
9639   # The option is referenced via a variable to avoid confusing sed.
9640   lt_compile=`echo "$ac_compile" | $SED \
9641   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9642   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9643   -e 's:$: $lt_compiler_flag:'`
9644   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9645   (eval "$lt_compile" 2>conftest.err)
9646   ac_status=$?
9647   cat conftest.err >&5
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   if (exit $ac_status) && test -s "$ac_outfile"; then
9650     # The compiler can only warn and ignore the option if not recognized
9651     # So say no if there are warnings other than the usual output.
9652     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9653     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9655       lt_cv_prog_compiler_pic_works=yes
9656     fi
9657   fi
9658   $RM conftest*
9659
9660fi
9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9662printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9663
9664if test yes = "$lt_cv_prog_compiler_pic_works"; then
9665    case $lt_prog_compiler_pic in
9666     "" | " "*) ;;
9667     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9668     esac
9669else
9670    lt_prog_compiler_pic=
9671     lt_prog_compiler_can_build_shared=no
9672fi
9673
9674fi
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686#
9687# Check to make sure the static flag actually works.
9688#
9689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9691printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9692if test ${lt_cv_prog_compiler_static_works+y}
9693then :
9694  printf %s "(cached) " >&6
9695else $as_nop
9696  lt_cv_prog_compiler_static_works=no
9697   save_LDFLAGS=$LDFLAGS
9698   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9699   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9700   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701     # The linker can only warn and ignore the option if not recognized
9702     # So say no if there are warnings
9703     if test -s conftest.err; then
9704       # Append any errors to the config.log.
9705       cat conftest.err 1>&5
9706       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9707       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708       if diff conftest.exp conftest.er2 >/dev/null; then
9709         lt_cv_prog_compiler_static_works=yes
9710       fi
9711     else
9712       lt_cv_prog_compiler_static_works=yes
9713     fi
9714   fi
9715   $RM -r conftest*
9716   LDFLAGS=$save_LDFLAGS
9717
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9720printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9721
9722if test yes = "$lt_cv_prog_compiler_static_works"; then
9723    :
9724else
9725    lt_prog_compiler_static=
9726fi
9727
9728
9729
9730
9731
9732
9733
9734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9735printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9736if test ${lt_cv_prog_compiler_c_o+y}
9737then :
9738  printf %s "(cached) " >&6
9739else $as_nop
9740  lt_cv_prog_compiler_c_o=no
9741   $RM -r conftest 2>/dev/null
9742   mkdir conftest
9743   cd conftest
9744   mkdir out
9745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9746
9747   lt_compiler_flag="-o out/conftest2.$ac_objext"
9748   # Insert the option either (1) after the last *FLAGS variable, or
9749   # (2) before a word containing "conftest.", or (3) at the end.
9750   # Note that $ac_compile itself does not contain backslashes and begins
9751   # with a dollar sign (not a hyphen), so the echo should work correctly.
9752   lt_compile=`echo "$ac_compile" | $SED \
9753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9755   -e 's:$: $lt_compiler_flag:'`
9756   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9757   (eval "$lt_compile" 2>out/conftest.err)
9758   ac_status=$?
9759   cat out/conftest.err >&5
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9762   then
9763     # The compiler can only warn and ignore the option if not recognized
9764     # So say no if there are warnings
9765     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9766     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9767     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9768       lt_cv_prog_compiler_c_o=yes
9769     fi
9770   fi
9771   chmod u+w . 2>&5
9772   $RM conftest*
9773   # SGI C++ compiler will create directory out/ii_files/ for
9774   # template instantiation
9775   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9776   $RM out/* && rmdir out
9777   cd ..
9778   $RM -r conftest
9779   $RM conftest*
9780
9781fi
9782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9783printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9784
9785
9786
9787
9788
9789
9790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9791printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9792if test ${lt_cv_prog_compiler_c_o+y}
9793then :
9794  printf %s "(cached) " >&6
9795else $as_nop
9796  lt_cv_prog_compiler_c_o=no
9797   $RM -r conftest 2>/dev/null
9798   mkdir conftest
9799   cd conftest
9800   mkdir out
9801   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803   lt_compiler_flag="-o out/conftest2.$ac_objext"
9804   # Insert the option either (1) after the last *FLAGS variable, or
9805   # (2) before a word containing "conftest.", or (3) at the end.
9806   # Note that $ac_compile itself does not contain backslashes and begins
9807   # with a dollar sign (not a hyphen), so the echo should work correctly.
9808   lt_compile=`echo "$ac_compile" | $SED \
9809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811   -e 's:$: $lt_compiler_flag:'`
9812   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9813   (eval "$lt_compile" 2>out/conftest.err)
9814   ac_status=$?
9815   cat out/conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9818   then
9819     # The compiler can only warn and ignore the option if not recognized
9820     # So say no if there are warnings
9821     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9822     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9823     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9824       lt_cv_prog_compiler_c_o=yes
9825     fi
9826   fi
9827   chmod u+w . 2>&5
9828   $RM conftest*
9829   # SGI C++ compiler will create directory out/ii_files/ for
9830   # template instantiation
9831   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9832   $RM out/* && rmdir out
9833   cd ..
9834   $RM -r conftest
9835   $RM conftest*
9836
9837fi
9838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9839printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9840
9841
9842
9843
9844hard_links=nottested
9845if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9846  # do not overwrite the value of need_locks provided by the user
9847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9848printf %s "checking if we can lock with hard links... " >&6; }
9849  hard_links=yes
9850  $RM conftest*
9851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9852  touch conftest.a
9853  ln conftest.a conftest.b 2>&5 || hard_links=no
9854  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9856printf "%s\n" "$hard_links" >&6; }
9857  if test no = "$hard_links"; then
9858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9859printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9860    need_locks=warn
9861  fi
9862else
9863  need_locks=no
9864fi
9865
9866
9867
9868
9869
9870
9871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9872printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9873
9874  runpath_var=
9875  allow_undefined_flag=
9876  always_export_symbols=no
9877  archive_cmds=
9878  archive_expsym_cmds=
9879  compiler_needs_object=no
9880  enable_shared_with_static_runtimes=no
9881  export_dynamic_flag_spec=
9882  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9883  hardcode_automatic=no
9884  hardcode_direct=no
9885  hardcode_direct_absolute=no
9886  hardcode_libdir_flag_spec=
9887  hardcode_libdir_separator=
9888  hardcode_minus_L=no
9889  hardcode_shlibpath_var=unsupported
9890  inherit_rpath=no
9891  link_all_deplibs=unknown
9892  module_cmds=
9893  module_expsym_cmds=
9894  old_archive_from_new_cmds=
9895  old_archive_from_expsyms_cmds=
9896  thread_safe_flag_spec=
9897  whole_archive_flag_spec=
9898  # include_expsyms should be a list of space-separated symbols to be *always*
9899  # included in the symbol list
9900  include_expsyms=
9901  # exclude_expsyms can be an extended regexp of symbols to exclude
9902  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9903  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9904  # as well as any symbol that contains 'd'.
9905  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9906  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9907  # platforms (ab)use it in PIC code, but their linkers get confused if
9908  # the symbol is explicitly referenced.  Since portable code cannot
9909  # rely on this symbol name, it's probably fine to never include it in
9910  # preloaded symbol tables.
9911  # Exclude shared library initialization/finalization symbols.
9912  extract_expsyms_cmds=
9913
9914  case $host_os in
9915  cygwin* | mingw* | pw32* | cegcc*)
9916    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9917    # When not using gcc, we currently assume that we are using
9918    # Microsoft Visual C++ or Intel C++ Compiler.
9919    if test yes != "$GCC"; then
9920      with_gnu_ld=no
9921    fi
9922    ;;
9923  interix*)
9924    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9925    with_gnu_ld=yes
9926    ;;
9927  openbsd* | bitrig*)
9928    with_gnu_ld=no
9929    ;;
9930  esac
9931
9932  ld_shlibs=yes
9933
9934  # On some targets, GNU ld is compatible enough with the native linker
9935  # that we're better off using the native interface for both.
9936  lt_use_gnu_ld_interface=no
9937  if test yes = "$with_gnu_ld"; then
9938    case $host_os in
9939      aix*)
9940	# The AIX port of GNU ld has always aspired to compatibility
9941	# with the native linker.  However, as the warning in the GNU ld
9942	# block says, versions before 2.19.5* couldn't really create working
9943	# shared libraries, regardless of the interface used.
9944	case `$LD -v 2>&1` in
9945	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9946	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9947	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9948	  *)
9949	    lt_use_gnu_ld_interface=yes
9950	    ;;
9951	esac
9952	;;
9953      *)
9954	lt_use_gnu_ld_interface=yes
9955	;;
9956    esac
9957  fi
9958
9959  if test yes = "$lt_use_gnu_ld_interface"; then
9960    # If archive_cmds runs LD, not CC, wlarc should be empty
9961    wlarc='$wl'
9962
9963    # Set some defaults for GNU ld with shared library support. These
9964    # are reset later if shared libraries are not supported. Putting them
9965    # here allows them to be overridden if necessary.
9966    runpath_var=LD_RUN_PATH
9967    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9968    export_dynamic_flag_spec='$wl--export-dynamic'
9969    # ancient GNU ld didn't support --whole-archive et. al.
9970    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9971      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9972    else
9973      whole_archive_flag_spec=
9974    fi
9975    supports_anon_versioning=no
9976    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9977      *GNU\ gold*) supports_anon_versioning=yes ;;
9978      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9979      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9980      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9981      *\ 2.11.*) ;; # other 2.11 versions
9982      *) supports_anon_versioning=yes ;;
9983    esac
9984
9985    # See if GNU ld supports shared libraries.
9986    case $host_os in
9987    aix[3-9]*)
9988      # On AIX/PPC, the GNU linker is very broken
9989      if test ia64 != "$host_cpu"; then
9990	ld_shlibs=no
9991	cat <<_LT_EOF 1>&2
9992
9993*** Warning: the GNU linker, at least up to release 2.19, is reported
9994*** to be unable to reliably create shared libraries on AIX.
9995*** Therefore, libtool is disabling shared libraries support.  If you
9996*** really care for shared libraries, you may want to install binutils
9997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9998*** You will then need to restart the configuration process.
9999
10000_LT_EOF
10001      fi
10002      ;;
10003
10004    amigaos*)
10005      case $host_cpu in
10006      powerpc)
10007            # see comment about AmigaOS4 .so support
10008            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10009            archive_expsym_cmds=''
10010        ;;
10011      m68k)
10012            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)'
10013            hardcode_libdir_flag_spec='-L$libdir'
10014            hardcode_minus_L=yes
10015        ;;
10016      esac
10017      ;;
10018
10019    beos*)
10020      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10021	allow_undefined_flag=unsupported
10022	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10023	# support --undefined.  This deserves some investigation.  FIXME
10024	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10025      else
10026	ld_shlibs=no
10027      fi
10028      ;;
10029
10030    cygwin* | mingw* | pw32* | cegcc*)
10031      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10032      # as there is no search path for DLLs.
10033      hardcode_libdir_flag_spec='-L$libdir'
10034      export_dynamic_flag_spec='$wl--export-all-symbols'
10035      allow_undefined_flag=unsupported
10036      always_export_symbols=no
10037      enable_shared_with_static_runtimes=yes
10038      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'
10039      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10040
10041      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10042        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10043	# If the export-symbols file already is a .def file, use it as
10044	# is; otherwise, prepend EXPORTS...
10045	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10046          cp $export_symbols $output_objdir/$soname.def;
10047        else
10048          echo EXPORTS > $output_objdir/$soname.def;
10049          cat $export_symbols >> $output_objdir/$soname.def;
10050        fi~
10051        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10052      else
10053	ld_shlibs=no
10054      fi
10055      ;;
10056
10057    haiku*)
10058      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059      link_all_deplibs=yes
10060      ;;
10061
10062    os2*)
10063      hardcode_libdir_flag_spec='-L$libdir'
10064      hardcode_minus_L=yes
10065      allow_undefined_flag=unsupported
10066      shrext_cmds=.dll
10067      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10068	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10069	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10070	$ECHO EXPORTS >> $output_objdir/$libname.def~
10071	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10072	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10073	emximp -o $lib $output_objdir/$libname.def'
10074      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10075	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10076	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10077	$ECHO EXPORTS >> $output_objdir/$libname.def~
10078	prefix_cmds="$SED"~
10079	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10080	  prefix_cmds="$prefix_cmds -e 1d";
10081	fi~
10082	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10083	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10084	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10085	emximp -o $lib $output_objdir/$libname.def'
10086      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10087      enable_shared_with_static_runtimes=yes
10088      file_list_spec='@'
10089      ;;
10090
10091    interix[3-9]*)
10092      hardcode_direct=no
10093      hardcode_shlibpath_var=no
10094      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10095      export_dynamic_flag_spec='$wl-E'
10096      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097      # Instead, shared libraries are loaded at an image base (0x10000000 by
10098      # default) and relocated if they conflict, which is a slow very memory
10099      # consuming and fragmenting process.  To avoid this, we pick a random,
10100      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10102      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103      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'
10104      ;;
10105
10106    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10107      tmp_diet=no
10108      if test linux-dietlibc = "$host_os"; then
10109	case $cc_basename in
10110	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10111	esac
10112      fi
10113      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114	 && test no = "$tmp_diet"
10115      then
10116	tmp_addflag=' $pic_flag'
10117	tmp_sharedflag='-shared'
10118	case $cc_basename,$host_cpu in
10119        pgcc*)				# Portland Group C compiler
10120	  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'
10121	  tmp_addflag=' $pic_flag'
10122	  ;;
10123	pgf77* | pgf90* | pgf95* | pgfortran*)
10124					# Portland Group f77 and f90 compilers
10125	  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'
10126	  tmp_addflag=' $pic_flag -Mnomain' ;;
10127	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10128	  tmp_addflag=' -i_dynamic' ;;
10129	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10130	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10131	ifc* | ifort*)			# Intel Fortran compiler
10132	  tmp_addflag=' -nofor_main' ;;
10133	lf95*)				# Lahey Fortran 8.1
10134	  whole_archive_flag_spec=
10135	  tmp_sharedflag='--shared' ;;
10136        nagfor*)                        # NAGFOR 5.3
10137          tmp_sharedflag='-Wl,-shared' ;;
10138	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10139	  tmp_sharedflag='-qmkshrobj'
10140	  tmp_addflag= ;;
10141	nvcc*)	# Cuda Compiler Driver 2.2
10142	  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'
10143	  compiler_needs_object=yes
10144	  ;;
10145	esac
10146	case `$CC -V 2>&1 | $SED 5q` in
10147	*Sun\ C*)			# Sun C 5.9
10148	  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'
10149	  compiler_needs_object=yes
10150	  tmp_sharedflag='-G' ;;
10151	*Sun\ F*)			# Sun Fortran 8.3
10152	  tmp_sharedflag='-G' ;;
10153	esac
10154	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10155
10156        if test yes = "$supports_anon_versioning"; then
10157          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10158            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10159            echo "local: *; };" >> $output_objdir/$libname.ver~
10160            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10161        fi
10162
10163	case $cc_basename in
10164	tcc*)
10165	  export_dynamic_flag_spec='-rdynamic'
10166	  ;;
10167	xlf* | bgf* | bgxlf* | mpixlf*)
10168	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10169	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10170	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10171	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10172	  if test yes = "$supports_anon_versioning"; then
10173	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10174              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10175              echo "local: *; };" >> $output_objdir/$libname.ver~
10176              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10177	  fi
10178	  ;;
10179	esac
10180      else
10181        ld_shlibs=no
10182      fi
10183      ;;
10184
10185    netbsd*)
10186      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10187	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10188	wlarc=
10189      else
10190	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10192      fi
10193      ;;
10194
10195    solaris*)
10196      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10197	ld_shlibs=no
10198	cat <<_LT_EOF 1>&2
10199
10200*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10201*** create shared libraries on Solaris systems.  Therefore, libtool
10202*** is disabling shared libraries support.  We urge you to upgrade GNU
10203*** binutils to release 2.9.1 or newer.  Another option is to modify
10204*** your PATH or compiler configuration so that the native linker is
10205*** used, and then restart.
10206
10207_LT_EOF
10208      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10209	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10210	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10211      else
10212	ld_shlibs=no
10213      fi
10214      ;;
10215
10216    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10217      case `$LD -v 2>&1` in
10218        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10219	ld_shlibs=no
10220	cat <<_LT_EOF 1>&2
10221
10222*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10223*** reliably create shared libraries on SCO systems.  Therefore, libtool
10224*** is disabling shared libraries support.  We urge you to upgrade GNU
10225*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10226*** your PATH or compiler configuration so that the native linker is
10227*** used, and then restart.
10228
10229_LT_EOF
10230	;;
10231	*)
10232	  # For security reasons, it is highly recommended that you always
10233	  # use absolute paths for naming shared libraries, and exclude the
10234	  # DT_RUNPATH tag from executables and libraries.  But doing so
10235	  # requires that you compile everything twice, which is a pain.
10236	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10237	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10238	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10239	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10240	  else
10241	    ld_shlibs=no
10242	  fi
10243	;;
10244      esac
10245      ;;
10246
10247    sunos4*)
10248      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10249      wlarc=
10250      hardcode_direct=yes
10251      hardcode_shlibpath_var=no
10252      ;;
10253
10254    *)
10255      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10256	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10257	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10258      else
10259	ld_shlibs=no
10260      fi
10261      ;;
10262    esac
10263
10264    if test no = "$ld_shlibs"; then
10265      runpath_var=
10266      hardcode_libdir_flag_spec=
10267      export_dynamic_flag_spec=
10268      whole_archive_flag_spec=
10269    fi
10270  else
10271    # PORTME fill in a description of your system's linker (not GNU ld)
10272    case $host_os in
10273    aix3*)
10274      allow_undefined_flag=unsupported
10275      always_export_symbols=yes
10276      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'
10277      # Note: this linker hardcodes the directories in LIBPATH if there
10278      # are no directories specified by -L.
10279      hardcode_minus_L=yes
10280      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10281	# Neither direct hardcoding nor static linking is supported with a
10282	# broken collect2.
10283	hardcode_direct=unsupported
10284      fi
10285      ;;
10286
10287    aix[4-9]*)
10288      if test ia64 = "$host_cpu"; then
10289	# On IA64, the linker does run time linking by default, so we don't
10290	# have to do anything special.
10291	aix_use_runtimelinking=no
10292	exp_sym_flag='-Bexport'
10293	no_entry_flag=
10294      else
10295	# If we're using GNU nm, then we don't want the "-C" option.
10296	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10297	# Without the "-l" option, or with the "-B" option, AIX nm treats
10298	# weak defined symbols like other global defined symbols, whereas
10299	# GNU nm marks them as "W".
10300	# While the 'weak' keyword is ignored in the Export File, we need
10301	# it in the Import File for the 'aix-soname' feature, so we have
10302	# to replace the "-B" option with "-P" for AIX nm.
10303	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10304	  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'
10305	else
10306	  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'
10307	fi
10308	aix_use_runtimelinking=no
10309
10310	# Test if we are trying to use run time linking or normal
10311	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10312	# have runtime linking enabled, and use it for executables.
10313	# For shared libraries, we enable/disable runtime linking
10314	# depending on the kind of the shared library created -
10315	# when "with_aix_soname,aix_use_runtimelinking" is:
10316	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10317	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10318	#            lib.a           static archive
10319	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10320	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10321	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10322	#            lib.a(lib.so.V) shared, rtl:no
10323	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10324	#            lib.a           static archive
10325	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10326	  for ld_flag in $LDFLAGS; do
10327	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10328	    aix_use_runtimelinking=yes
10329	    break
10330	  fi
10331	  done
10332	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10333	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10334	    # so we don't have lib.a shared libs to link our executables.
10335	    # We have to force runtime linking in this case.
10336	    aix_use_runtimelinking=yes
10337	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10338	  fi
10339	  ;;
10340	esac
10341
10342	exp_sym_flag='-bexport'
10343	no_entry_flag='-bnoentry'
10344      fi
10345
10346      # When large executables or shared objects are built, AIX ld can
10347      # have problems creating the table of contents.  If linking a library
10348      # or program results in "error TOC overflow" add -mminimal-toc to
10349      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10350      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10351
10352      archive_cmds=''
10353      hardcode_direct=yes
10354      hardcode_direct_absolute=yes
10355      hardcode_libdir_separator=':'
10356      link_all_deplibs=yes
10357      file_list_spec='$wl-f,'
10358      case $with_aix_soname,$aix_use_runtimelinking in
10359      aix,*) ;; # traditional, no import file
10360      svr4,* | *,yes) # use import file
10361	# The Import File defines what to hardcode.
10362	hardcode_direct=no
10363	hardcode_direct_absolute=no
10364	;;
10365      esac
10366
10367      if test yes = "$GCC"; then
10368	case $host_os in aix4.[012]|aix4.[012].*)
10369	# We only want to do this on AIX 4.2 and lower, the check
10370	# below for broken collect2 doesn't work under 4.3+
10371	  collect2name=`$CC -print-prog-name=collect2`
10372	  if test -f "$collect2name" &&
10373	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10374	  then
10375	  # We have reworked collect2
10376	  :
10377	  else
10378	  # We have old collect2
10379	  hardcode_direct=unsupported
10380	  # It fails to find uninstalled libraries when the uninstalled
10381	  # path is not listed in the libpath.  Setting hardcode_minus_L
10382	  # to unsupported forces relinking
10383	  hardcode_minus_L=yes
10384	  hardcode_libdir_flag_spec='-L$libdir'
10385	  hardcode_libdir_separator=
10386	  fi
10387	  ;;
10388	esac
10389	shared_flag='-shared'
10390	if test yes = "$aix_use_runtimelinking"; then
10391	  shared_flag="$shared_flag "'$wl-G'
10392	fi
10393	# Need to ensure runtime linking is disabled for the traditional
10394	# shared library, or the linker may eventually find shared libraries
10395	# /with/ Import File - we do not want to mix them.
10396	shared_flag_aix='-shared'
10397	shared_flag_svr4='-shared $wl-G'
10398      else
10399	# not using gcc
10400	if test ia64 = "$host_cpu"; then
10401	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10402	# chokes on -Wl,-G. The following line is correct:
10403	  shared_flag='-G'
10404	else
10405	  if test yes = "$aix_use_runtimelinking"; then
10406	    shared_flag='$wl-G'
10407	  else
10408	    shared_flag='$wl-bM:SRE'
10409	  fi
10410	  shared_flag_aix='$wl-bM:SRE'
10411	  shared_flag_svr4='$wl-G'
10412	fi
10413      fi
10414
10415      export_dynamic_flag_spec='$wl-bexpall'
10416      # It seems that -bexpall does not export symbols beginning with
10417      # underscore (_), so it is better to generate a list of symbols to export.
10418      always_export_symbols=yes
10419      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10420	# Warning - without using the other runtime loading flags (-brtl),
10421	# -berok will link without error, but may produce a broken library.
10422	allow_undefined_flag='-berok'
10423        # Determine the default libpath from the value encoded in an
10424        # empty executable.
10425        if test set = "${lt_cv_aix_libpath+set}"; then
10426  aix_libpath=$lt_cv_aix_libpath
10427else
10428  if test ${lt_cv_aix_libpath_+y}
10429then :
10430  printf %s "(cached) " >&6
10431else $as_nop
10432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434
10435int
10436main (void)
10437{
10438
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443if ac_fn_c_try_link "$LINENO"
10444then :
10445
10446  lt_aix_libpath_sed='
10447      /Import File Strings/,/^$/ {
10448	  /^0/ {
10449	      s/^0  *\([^ ]*\) *$/\1/
10450	      p
10451	  }
10452      }'
10453  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10454  # Check for a 64-bit object if we didn't find anything.
10455  if test -z "$lt_cv_aix_libpath_"; then
10456    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10457  fi
10458fi
10459rm -f core conftest.err conftest.$ac_objext conftest.beam \
10460    conftest$ac_exeext conftest.$ac_ext
10461  if test -z "$lt_cv_aix_libpath_"; then
10462    lt_cv_aix_libpath_=/usr/lib:/lib
10463  fi
10464
10465fi
10466
10467  aix_libpath=$lt_cv_aix_libpath_
10468fi
10469
10470        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10471        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
10472      else
10473	if test ia64 = "$host_cpu"; then
10474	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10475	  allow_undefined_flag="-z nodefs"
10476	  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"
10477	else
10478	 # Determine the default libpath from the value encoded in an
10479	 # empty executable.
10480	 if test set = "${lt_cv_aix_libpath+set}"; then
10481  aix_libpath=$lt_cv_aix_libpath
10482else
10483  if test ${lt_cv_aix_libpath_+y}
10484then :
10485  printf %s "(cached) " >&6
10486else $as_nop
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489
10490int
10491main (void)
10492{
10493
10494  ;
10495  return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"
10499then :
10500
10501  lt_aix_libpath_sed='
10502      /Import File Strings/,/^$/ {
10503	  /^0/ {
10504	      s/^0  *\([^ ]*\) *$/\1/
10505	      p
10506	  }
10507      }'
10508  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10509  # Check for a 64-bit object if we didn't find anything.
10510  if test -z "$lt_cv_aix_libpath_"; then
10511    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10512  fi
10513fi
10514rm -f core conftest.err conftest.$ac_objext conftest.beam \
10515    conftest$ac_exeext conftest.$ac_ext
10516  if test -z "$lt_cv_aix_libpath_"; then
10517    lt_cv_aix_libpath_=/usr/lib:/lib
10518  fi
10519
10520fi
10521
10522  aix_libpath=$lt_cv_aix_libpath_
10523fi
10524
10525	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10526	  # Warning - without using the other run time loading flags,
10527	  # -berok will link without error, but may produce a broken library.
10528	  no_undefined_flag=' $wl-bernotok'
10529	  allow_undefined_flag=' $wl-berok'
10530	  if test yes = "$with_gnu_ld"; then
10531	    # We only use this code for GNU lds that support --whole-archive.
10532	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10533	  else
10534	    # Exported symbols can be pulled into shared objects from archives
10535	    whole_archive_flag_spec='$convenience'
10536	  fi
10537	  archive_cmds_need_lc=yes
10538	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10539	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10540	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10541	  if test svr4 != "$with_aix_soname"; then
10542	    # This is similar to how AIX traditionally builds its shared libraries.
10543	    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'
10544	  fi
10545	  if test aix != "$with_aix_soname"; then
10546	    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'
10547	  else
10548	    # used by -dlpreopen to get the symbols
10549	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10550	  fi
10551	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10552	fi
10553      fi
10554      ;;
10555
10556    amigaos*)
10557      case $host_cpu in
10558      powerpc)
10559            # see comment about AmigaOS4 .so support
10560            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10561            archive_expsym_cmds=''
10562        ;;
10563      m68k)
10564            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)'
10565            hardcode_libdir_flag_spec='-L$libdir'
10566            hardcode_minus_L=yes
10567        ;;
10568      esac
10569      ;;
10570
10571    bsdi[45]*)
10572      export_dynamic_flag_spec=-rdynamic
10573      ;;
10574
10575    cygwin* | mingw* | pw32* | cegcc*)
10576      # When not using gcc, we currently assume that we are using
10577      # Microsoft Visual C++ or Intel C++ Compiler.
10578      # hardcode_libdir_flag_spec is actually meaningless, as there is
10579      # no search path for DLLs.
10580      case $cc_basename in
10581      cl* | icl*)
10582	# Native MSVC or ICC
10583	hardcode_libdir_flag_spec=' '
10584	allow_undefined_flag=unsupported
10585	always_export_symbols=yes
10586	file_list_spec='@'
10587	# Tell ltmain to make .lib files, not .a files.
10588	libext=lib
10589	# Tell ltmain to make .dll files, not .so files.
10590	shrext_cmds=.dll
10591	# FIXME: Setting linknames here is a bad hack.
10592	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10593	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10594            cp "$export_symbols" "$output_objdir/$soname.def";
10595            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10596          else
10597            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10598          fi~
10599          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10600          linknames='
10601	# The linker will not automatically build a static lib if we build a DLL.
10602	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10603	enable_shared_with_static_runtimes=yes
10604	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10605	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10606	# Don't use ranlib
10607	old_postinstall_cmds='chmod 644 $oldlib'
10608	postlink_cmds='lt_outputfile="@OUTPUT@"~
10609          lt_tool_outputfile="@TOOL_OUTPUT@"~
10610          case $lt_outputfile in
10611            *.exe|*.EXE) ;;
10612            *)
10613              lt_outputfile=$lt_outputfile.exe
10614              lt_tool_outputfile=$lt_tool_outputfile.exe
10615              ;;
10616          esac~
10617          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10618            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10619            $RM "$lt_outputfile.manifest";
10620          fi'
10621	;;
10622      *)
10623	# Assume MSVC and ICC wrapper
10624	hardcode_libdir_flag_spec=' '
10625	allow_undefined_flag=unsupported
10626	# Tell ltmain to make .lib files, not .a files.
10627	libext=lib
10628	# Tell ltmain to make .dll files, not .so files.
10629	shrext_cmds=.dll
10630	# FIXME: Setting linknames here is a bad hack.
10631	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10632	# The linker will automatically build a .lib file if we build a DLL.
10633	old_archive_from_new_cmds='true'
10634	# FIXME: Should let the user specify the lib program.
10635	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10636	enable_shared_with_static_runtimes=yes
10637	;;
10638      esac
10639      ;;
10640
10641    darwin* | rhapsody*)
10642
10643
10644  archive_cmds_need_lc=no
10645  hardcode_direct=no
10646  hardcode_automatic=yes
10647  hardcode_shlibpath_var=unsupported
10648  if test yes = "$lt_cv_ld_force_load"; then
10649    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\"`'
10650
10651  else
10652    whole_archive_flag_spec=''
10653  fi
10654  link_all_deplibs=yes
10655  allow_undefined_flag=$_lt_dar_allow_undefined
10656  case $cc_basename in
10657     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10658     *) _lt_dar_can_shared=$GCC ;;
10659  esac
10660  if test yes = "$_lt_dar_can_shared"; then
10661    output_verbose_link_cmd=func_echo_all
10662    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10663    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10664    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"
10665    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"
10666
10667  else
10668  ld_shlibs=no
10669  fi
10670
10671      ;;
10672
10673    dgux*)
10674      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675      hardcode_libdir_flag_spec='-L$libdir'
10676      hardcode_shlibpath_var=no
10677      ;;
10678
10679    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10680    # support.  Future versions do this automatically, but an explicit c++rt0.o
10681    # does not break anything, and helps significantly (at the cost of a little
10682    # extra space).
10683    freebsd2.2*)
10684      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10685      hardcode_libdir_flag_spec='-R$libdir'
10686      hardcode_direct=yes
10687      hardcode_shlibpath_var=no
10688      ;;
10689
10690    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10691    freebsd2.*)
10692      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10693      hardcode_direct=yes
10694      hardcode_minus_L=yes
10695      hardcode_shlibpath_var=no
10696      ;;
10697
10698    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10699    freebsd* | dragonfly* | midnightbsd*)
10700      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10701      hardcode_libdir_flag_spec='-R$libdir'
10702      hardcode_direct=yes
10703      hardcode_shlibpath_var=no
10704      ;;
10705
10706    hpux9*)
10707      if test yes = "$GCC"; then
10708	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'
10709      else
10710	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'
10711      fi
10712      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10713      hardcode_libdir_separator=:
10714      hardcode_direct=yes
10715
10716      # hardcode_minus_L: Not really in the search PATH,
10717      # but as the default location of the library.
10718      hardcode_minus_L=yes
10719      export_dynamic_flag_spec='$wl-E'
10720      ;;
10721
10722    hpux10*)
10723      if test yes,no = "$GCC,$with_gnu_ld"; then
10724	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10725      else
10726	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10727      fi
10728      if test no = "$with_gnu_ld"; then
10729	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10730	hardcode_libdir_separator=:
10731	hardcode_direct=yes
10732	hardcode_direct_absolute=yes
10733	export_dynamic_flag_spec='$wl-E'
10734	# hardcode_minus_L: Not really in the search PATH,
10735	# but as the default location of the library.
10736	hardcode_minus_L=yes
10737      fi
10738      ;;
10739
10740    hpux11*)
10741      if test yes,no = "$GCC,$with_gnu_ld"; then
10742	case $host_cpu in
10743	hppa*64*)
10744	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10745	  ;;
10746	ia64*)
10747	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10748	  ;;
10749	*)
10750	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10751	  ;;
10752	esac
10753      else
10754	case $host_cpu in
10755	hppa*64*)
10756	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10757	  ;;
10758	ia64*)
10759	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10760	  ;;
10761	*)
10762
10763	  # Older versions of the 11.00 compiler do not understand -b yet
10764	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10765	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10766printf %s "checking if $CC understands -b... " >&6; }
10767if test ${lt_cv_prog_compiler__b+y}
10768then :
10769  printf %s "(cached) " >&6
10770else $as_nop
10771  lt_cv_prog_compiler__b=no
10772   save_LDFLAGS=$LDFLAGS
10773   LDFLAGS="$LDFLAGS -b"
10774   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10775   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10776     # The linker can only warn and ignore the option if not recognized
10777     # So say no if there are warnings
10778     if test -s conftest.err; then
10779       # Append any errors to the config.log.
10780       cat conftest.err 1>&5
10781       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10782       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10783       if diff conftest.exp conftest.er2 >/dev/null; then
10784         lt_cv_prog_compiler__b=yes
10785       fi
10786     else
10787       lt_cv_prog_compiler__b=yes
10788     fi
10789   fi
10790   $RM -r conftest*
10791   LDFLAGS=$save_LDFLAGS
10792
10793fi
10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10795printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10796
10797if test yes = "$lt_cv_prog_compiler__b"; then
10798    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10799else
10800    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10801fi
10802
10803	  ;;
10804	esac
10805      fi
10806      if test no = "$with_gnu_ld"; then
10807	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10808	hardcode_libdir_separator=:
10809
10810	case $host_cpu in
10811	hppa*64*|ia64*)
10812	  hardcode_direct=no
10813	  hardcode_shlibpath_var=no
10814	  ;;
10815	*)
10816	  hardcode_direct=yes
10817	  hardcode_direct_absolute=yes
10818	  export_dynamic_flag_spec='$wl-E'
10819
10820	  # hardcode_minus_L: Not really in the search PATH,
10821	  # but as the default location of the library.
10822	  hardcode_minus_L=yes
10823	  ;;
10824	esac
10825      fi
10826      ;;
10827
10828    irix5* | irix6* | nonstopux*)
10829      if test yes = "$GCC"; then
10830	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'
10831	# Try to use the -exported_symbol ld option, if it does not
10832	# work, assume that -exports_file does not work either and
10833	# implicitly export all symbols.
10834	# This should be the same for all languages, so no per-tag cache variable.
10835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10836printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10837if test ${lt_cv_irix_exported_symbol+y}
10838then :
10839  printf %s "(cached) " >&6
10840else $as_nop
10841  save_LDFLAGS=$LDFLAGS
10842	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10843	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845int foo (void) { return 0; }
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"
10848then :
10849  lt_cv_irix_exported_symbol=yes
10850else $as_nop
10851  lt_cv_irix_exported_symbol=no
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.beam \
10854    conftest$ac_exeext conftest.$ac_ext
10855           LDFLAGS=$save_LDFLAGS
10856fi
10857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10858printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10859	if test yes = "$lt_cv_irix_exported_symbol"; then
10860          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'
10861	fi
10862      else
10863	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'
10864	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'
10865      fi
10866      archive_cmds_need_lc='no'
10867      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10868      hardcode_libdir_separator=:
10869      inherit_rpath=yes
10870      link_all_deplibs=yes
10871      ;;
10872
10873    linux*)
10874      case $cc_basename in
10875      tcc*)
10876	# Fabrice Bellard et al's Tiny C Compiler
10877	ld_shlibs=yes
10878	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10879	;;
10880      esac
10881      ;;
10882
10883    netbsd*)
10884      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10885	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10886      else
10887	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10888      fi
10889      hardcode_libdir_flag_spec='-R$libdir'
10890      hardcode_direct=yes
10891      hardcode_shlibpath_var=no
10892      ;;
10893
10894    newsos6)
10895      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896      hardcode_direct=yes
10897      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10898      hardcode_libdir_separator=:
10899      hardcode_shlibpath_var=no
10900      ;;
10901
10902    *nto* | *qnx*)
10903      ;;
10904
10905    openbsd* | bitrig*)
10906      if test -f /usr/libexec/ld.so; then
10907	hardcode_direct=yes
10908	hardcode_shlibpath_var=no
10909	hardcode_direct_absolute=yes
10910	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10911	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10912	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10913	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10914	  export_dynamic_flag_spec='$wl-E'
10915	else
10916	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10917	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10918	fi
10919      else
10920	ld_shlibs=no
10921      fi
10922      ;;
10923
10924    os2*)
10925      hardcode_libdir_flag_spec='-L$libdir'
10926      hardcode_minus_L=yes
10927      allow_undefined_flag=unsupported
10928      shrext_cmds=.dll
10929      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10930	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10931	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10932	$ECHO EXPORTS >> $output_objdir/$libname.def~
10933	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10934	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10935	emximp -o $lib $output_objdir/$libname.def'
10936      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10937	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10938	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10939	$ECHO EXPORTS >> $output_objdir/$libname.def~
10940	prefix_cmds="$SED"~
10941	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10942	  prefix_cmds="$prefix_cmds -e 1d";
10943	fi~
10944	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10945	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10946	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10947	emximp -o $lib $output_objdir/$libname.def'
10948      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10949      enable_shared_with_static_runtimes=yes
10950      file_list_spec='@'
10951      ;;
10952
10953    osf3*)
10954      if test yes = "$GCC"; then
10955	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10956	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'
10957      else
10958	allow_undefined_flag=' -expect_unresolved \*'
10959	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'
10960      fi
10961      archive_cmds_need_lc='no'
10962      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10963      hardcode_libdir_separator=:
10964      ;;
10965
10966    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10967      if test yes = "$GCC"; then
10968	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10969	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'
10970	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10971      else
10972	allow_undefined_flag=' -expect_unresolved \*'
10973	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'
10974	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~
10975          $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'
10976
10977	# Both c and cxx compiler support -rpath directly
10978	hardcode_libdir_flag_spec='-rpath $libdir'
10979      fi
10980      archive_cmds_need_lc='no'
10981      hardcode_libdir_separator=:
10982      ;;
10983
10984    solaris*)
10985      no_undefined_flag=' -z defs'
10986      if test yes = "$GCC"; then
10987	wlarc='$wl'
10988	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10989	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10990          $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'
10991      else
10992	case `$CC -V 2>&1` in
10993	*"Compilers 5.0"*)
10994	  wlarc=''
10995	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10997            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10998	  ;;
10999	*)
11000	  wlarc='$wl'
11001	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11002	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11003            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11004	  ;;
11005	esac
11006      fi
11007      hardcode_libdir_flag_spec='-R$libdir'
11008      hardcode_shlibpath_var=no
11009      case $host_os in
11010      solaris2.[0-5] | solaris2.[0-5].*) ;;
11011      *)
11012	# The compiler driver will combine and reorder linker options,
11013	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11014	# but is careful enough not to reorder.
11015	# Supported since Solaris 2.6 (maybe 2.5.1?)
11016	if test yes = "$GCC"; then
11017	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11018	else
11019	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11020	fi
11021	;;
11022      esac
11023      link_all_deplibs=yes
11024      ;;
11025
11026    sunos4*)
11027      if test sequent = "$host_vendor"; then
11028	# Use $CC to link under sequent, because it throws in some extra .o
11029	# files that make .init and .fini sections work.
11030	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11031      else
11032	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11033      fi
11034      hardcode_libdir_flag_spec='-L$libdir'
11035      hardcode_direct=yes
11036      hardcode_minus_L=yes
11037      hardcode_shlibpath_var=no
11038      ;;
11039
11040    sysv4)
11041      case $host_vendor in
11042	sni)
11043	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11044	  hardcode_direct=yes # is this really true???
11045	;;
11046	siemens)
11047	  ## LD is ld it makes a PLAMLIB
11048	  ## CC just makes a GrossModule.
11049	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11050	  reload_cmds='$CC -r -o $output$reload_objs'
11051	  hardcode_direct=no
11052        ;;
11053	motorola)
11054	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11055	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11056	;;
11057      esac
11058      runpath_var='LD_RUN_PATH'
11059      hardcode_shlibpath_var=no
11060      ;;
11061
11062    sysv4.3*)
11063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064      hardcode_shlibpath_var=no
11065      export_dynamic_flag_spec='-Bexport'
11066      ;;
11067
11068    sysv4*MP*)
11069      if test -d /usr/nec; then
11070	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071	hardcode_shlibpath_var=no
11072	runpath_var=LD_RUN_PATH
11073	hardcode_runpath_var=yes
11074	ld_shlibs=yes
11075      fi
11076      ;;
11077
11078    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11079      no_undefined_flag='$wl-z,text'
11080      archive_cmds_need_lc=no
11081      hardcode_shlibpath_var=no
11082      runpath_var='LD_RUN_PATH'
11083
11084      if test yes = "$GCC"; then
11085	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11086	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11087      else
11088	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11089	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090      fi
11091      ;;
11092
11093    sysv5* | sco3.2v5* | sco5v6*)
11094      # Note: We CANNOT use -z defs as we might desire, because we do not
11095      # link with -lc, and that would cause any symbols used from libc to
11096      # always be unresolved, which means just about no library would
11097      # ever link correctly.  If we're not using GNU ld we use -z text
11098      # though, which does catch some bad symbols but isn't as heavy-handed
11099      # as -z defs.
11100      no_undefined_flag='$wl-z,text'
11101      allow_undefined_flag='$wl-z,nodefs'
11102      archive_cmds_need_lc=no
11103      hardcode_shlibpath_var=no
11104      hardcode_libdir_flag_spec='$wl-R,$libdir'
11105      hardcode_libdir_separator=':'
11106      link_all_deplibs=yes
11107      export_dynamic_flag_spec='$wl-Bexport'
11108      runpath_var='LD_RUN_PATH'
11109
11110      if test yes = "$GCC"; then
11111	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11113      else
11114	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11115	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11116      fi
11117      ;;
11118
11119    uts4*)
11120      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121      hardcode_libdir_flag_spec='-L$libdir'
11122      hardcode_shlibpath_var=no
11123      ;;
11124
11125    *)
11126      ld_shlibs=no
11127      ;;
11128    esac
11129
11130    if test sni = "$host_vendor"; then
11131      case $host in
11132      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11133	export_dynamic_flag_spec='$wl-Blargedynsym'
11134	;;
11135      esac
11136    fi
11137  fi
11138
11139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11140printf "%s\n" "$ld_shlibs" >&6; }
11141test no = "$ld_shlibs" && can_build_shared=no
11142
11143with_gnu_ld=$with_gnu_ld
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159#
11160# Do we need to explicitly link libc?
11161#
11162case "x$archive_cmds_need_lc" in
11163x|xyes)
11164  # Assume -lc should be added
11165  archive_cmds_need_lc=yes
11166
11167  if test yes,yes = "$GCC,$enable_shared"; then
11168    case $archive_cmds in
11169    *'~'*)
11170      # FIXME: we may have to deal with multi-command sequences.
11171      ;;
11172    '$CC '*)
11173      # Test whether the compiler implicitly links with -lc since on some
11174      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11175      # to ld, don't add -lc before -lgcc.
11176      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11177printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11178if test ${lt_cv_archive_cmds_need_lc+y}
11179then :
11180  printf %s "(cached) " >&6
11181else $as_nop
11182  $RM conftest*
11183	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11184
11185	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11186  (eval $ac_compile) 2>&5
11187  ac_status=$?
11188  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189  test $ac_status = 0; } 2>conftest.err; then
11190	  soname=conftest
11191	  lib=conftest
11192	  libobjs=conftest.$ac_objext
11193	  deplibs=
11194	  wl=$lt_prog_compiler_wl
11195	  pic_flag=$lt_prog_compiler_pic
11196	  compiler_flags=-v
11197	  linker_flags=-v
11198	  verstring=
11199	  output_objdir=.
11200	  libname=conftest
11201	  lt_save_allow_undefined_flag=$allow_undefined_flag
11202	  allow_undefined_flag=
11203	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11204  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11205  ac_status=$?
11206  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11207  test $ac_status = 0; }
11208	  then
11209	    lt_cv_archive_cmds_need_lc=no
11210	  else
11211	    lt_cv_archive_cmds_need_lc=yes
11212	  fi
11213	  allow_undefined_flag=$lt_save_allow_undefined_flag
11214	else
11215	  cat conftest.err 1>&5
11216	fi
11217	$RM conftest*
11218
11219fi
11220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11221printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11222      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11223      ;;
11224    esac
11225  fi
11226  ;;
11227esac
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11381printf %s "checking dynamic linker characteristics... " >&6; }
11382
11383if test yes = "$GCC"; then
11384  case $host_os in
11385    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11386    *) lt_awk_arg='/^libraries:/' ;;
11387  esac
11388  case $host_os in
11389    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11390    *) lt_sed_strip_eq='s|=/|/|g' ;;
11391  esac
11392  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11393  case $lt_search_path_spec in
11394  *\;*)
11395    # if the path contains ";" then we assume it to be the separator
11396    # otherwise default to the standard path separator (i.e. ":") - it is
11397    # assumed that no part of a normal pathname contains ";" but that should
11398    # okay in the real world where ";" in dirpaths is itself problematic.
11399    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11400    ;;
11401  *)
11402    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11403    ;;
11404  esac
11405  # Ok, now we have the path, separated by spaces, we can step through it
11406  # and add multilib dir if necessary...
11407  lt_tmp_lt_search_path_spec=
11408  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11409  # ...but if some path component already ends with the multilib dir we assume
11410  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11411  case "$lt_multi_os_dir; $lt_search_path_spec " in
11412  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11413    lt_multi_os_dir=
11414    ;;
11415  esac
11416  for lt_sys_path in $lt_search_path_spec; do
11417    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11418      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11419    elif test -n "$lt_multi_os_dir"; then
11420      test -d "$lt_sys_path" && \
11421	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11422    fi
11423  done
11424  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11425BEGIN {RS = " "; FS = "/|\n";} {
11426  lt_foo = "";
11427  lt_count = 0;
11428  for (lt_i = NF; lt_i > 0; lt_i--) {
11429    if ($lt_i != "" && $lt_i != ".") {
11430      if ($lt_i == "..") {
11431        lt_count++;
11432      } else {
11433        if (lt_count == 0) {
11434          lt_foo = "/" $lt_i lt_foo;
11435        } else {
11436          lt_count--;
11437        }
11438      }
11439    }
11440  }
11441  if (lt_foo != "") { lt_freq[lt_foo]++; }
11442  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11443}'`
11444  # AWK program above erroneously prepends '/' to C:/dos/paths
11445  # for these hosts.
11446  case $host_os in
11447    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11448      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11449  esac
11450  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11451else
11452  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11453fi
11454library_names_spec=
11455libname_spec='lib$name'
11456soname_spec=
11457shrext_cmds=.so
11458postinstall_cmds=
11459postuninstall_cmds=
11460finish_cmds=
11461finish_eval=
11462shlibpath_var=
11463shlibpath_overrides_runpath=unknown
11464version_type=none
11465dynamic_linker="$host_os ld.so"
11466sys_lib_dlsearch_path_spec="/lib /usr/lib"
11467need_lib_prefix=unknown
11468hardcode_into_libs=no
11469
11470# when you set need_version to no, make sure it does not cause -set_version
11471# flags to be left without arguments
11472need_version=unknown
11473
11474
11475
11476case $host_os in
11477aix3*)
11478  version_type=linux # correct to gnu/linux during the next big refactor
11479  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11480  shlibpath_var=LIBPATH
11481
11482  # AIX 3 has no versioning support, so we append a major version to the name.
11483  soname_spec='$libname$release$shared_ext$major'
11484  ;;
11485
11486aix[4-9]*)
11487  version_type=linux # correct to gnu/linux during the next big refactor
11488  need_lib_prefix=no
11489  need_version=no
11490  hardcode_into_libs=yes
11491  if test ia64 = "$host_cpu"; then
11492    # AIX 5 supports IA64
11493    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11494    shlibpath_var=LD_LIBRARY_PATH
11495  else
11496    # With GCC up to 2.95.x, collect2 would create an import file
11497    # for dependence libraries.  The import file would start with
11498    # the line '#! .'.  This would cause the generated library to
11499    # depend on '.', always an invalid library.  This was fixed in
11500    # development snapshots of GCC prior to 3.0.
11501    case $host_os in
11502      aix4 | aix4.[01] | aix4.[01].*)
11503      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11504	   echo ' yes '
11505	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11506	:
11507      else
11508	can_build_shared=no
11509      fi
11510      ;;
11511    esac
11512    # Using Import Files as archive members, it is possible to support
11513    # filename-based versioning of shared library archives on AIX. While
11514    # this would work for both with and without runtime linking, it will
11515    # prevent static linking of such archives. So we do filename-based
11516    # shared library versioning with .so extension only, which is used
11517    # when both runtime linking and shared linking is enabled.
11518    # Unfortunately, runtime linking may impact performance, so we do
11519    # not want this to be the default eventually. Also, we use the
11520    # versioned .so libs for executables only if there is the -brtl
11521    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11522    # To allow for filename-based versioning support, we need to create
11523    # libNAME.so.V as an archive file, containing:
11524    # *) an Import File, referring to the versioned filename of the
11525    #    archive as well as the shared archive member, telling the
11526    #    bitwidth (32 or 64) of that shared object, and providing the
11527    #    list of exported symbols of that shared object, eventually
11528    #    decorated with the 'weak' keyword
11529    # *) the shared object with the F_LOADONLY flag set, to really avoid
11530    #    it being seen by the linker.
11531    # At run time we better use the real file rather than another symlink,
11532    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11533
11534    case $with_aix_soname,$aix_use_runtimelinking in
11535    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11536    # soname into executable. Probably we can add versioning support to
11537    # collect2, so additional links can be useful in future.
11538    aix,yes) # traditional libtool
11539      dynamic_linker='AIX unversionable lib.so'
11540      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11541      # instead of lib<name>.a to let people know that these are not
11542      # typical AIX shared libraries.
11543      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544      ;;
11545    aix,no) # traditional AIX only
11546      dynamic_linker='AIX lib.a(lib.so.V)'
11547      # We preserve .a as extension for shared libraries through AIX4.2
11548      # and later when we are not doing run time linking.
11549      library_names_spec='$libname$release.a $libname.a'
11550      soname_spec='$libname$release$shared_ext$major'
11551      ;;
11552    svr4,*) # full svr4 only
11553      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11554      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11555      # We do not specify a path in Import Files, so LIBPATH fires.
11556      shlibpath_overrides_runpath=yes
11557      ;;
11558    *,yes) # both, prefer svr4
11559      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11560      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11561      # unpreferred sharedlib libNAME.a needs extra handling
11562      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"'
11563      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"'
11564      # We do not specify a path in Import Files, so LIBPATH fires.
11565      shlibpath_overrides_runpath=yes
11566      ;;
11567    *,no) # both, prefer aix
11568      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11569      library_names_spec='$libname$release.a $libname.a'
11570      soname_spec='$libname$release$shared_ext$major'
11571      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11572      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)'
11573      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"'
11574      ;;
11575    esac
11576    shlibpath_var=LIBPATH
11577  fi
11578  ;;
11579
11580amigaos*)
11581  case $host_cpu in
11582  powerpc)
11583    # Since July 2007 AmigaOS4 officially supports .so libraries.
11584    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11585    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586    ;;
11587  m68k)
11588    library_names_spec='$libname.ixlibrary $libname.a'
11589    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11590    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'
11591    ;;
11592  esac
11593  ;;
11594
11595beos*)
11596  library_names_spec='$libname$shared_ext'
11597  dynamic_linker="$host_os ld.so"
11598  shlibpath_var=LIBRARY_PATH
11599  ;;
11600
11601bsdi[45]*)
11602  version_type=linux # correct to gnu/linux during the next big refactor
11603  need_version=no
11604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605  soname_spec='$libname$release$shared_ext$major'
11606  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11609  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11610  # the default ld.so.conf also contains /usr/contrib/lib and
11611  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11612  # libtool to hard-code these into programs
11613  ;;
11614
11615cygwin* | mingw* | pw32* | cegcc*)
11616  version_type=windows
11617  shrext_cmds=.dll
11618  need_version=no
11619  need_lib_prefix=no
11620
11621  case $GCC,$cc_basename in
11622  yes,*)
11623    # gcc
11624    library_names_spec='$libname.dll.a'
11625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626    postinstall_cmds='base_file=`basename \$file`~
11627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11628      dldir=$destdir/`dirname \$dlpath`~
11629      test -d \$dldir || mkdir -p \$dldir~
11630      $install_prog $dir/$dlname \$dldir/$dlname~
11631      chmod a+x \$dldir/$dlname~
11632      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11633        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11634      fi'
11635    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11636      dlpath=$dir/\$dldll~
11637       $RM \$dlpath'
11638    shlibpath_overrides_runpath=yes
11639
11640    case $host_os in
11641    cygwin*)
11642      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11643      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11644
11645      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11646      ;;
11647    mingw* | cegcc*)
11648      # MinGW DLLs use traditional 'lib' prefix
11649      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11650      ;;
11651    pw32*)
11652      # pw32 DLLs use 'pw' prefix rather than 'lib'
11653      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11654      ;;
11655    esac
11656    dynamic_linker='Win32 ld.exe'
11657    ;;
11658
11659  *,cl* | *,icl*)
11660    # Native MSVC or ICC
11661    libname_spec='$name'
11662    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11663    library_names_spec='$libname.dll.lib'
11664
11665    case $build_os in
11666    mingw*)
11667      sys_lib_search_path_spec=
11668      lt_save_ifs=$IFS
11669      IFS=';'
11670      for lt_path in $LIB
11671      do
11672        IFS=$lt_save_ifs
11673        # Let DOS variable expansion print the short 8.3 style file name.
11674        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11675        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11676      done
11677      IFS=$lt_save_ifs
11678      # Convert to MSYS style.
11679      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11680      ;;
11681    cygwin*)
11682      # Convert to unix form, then to dos form, then back to unix form
11683      # but this time dos style (no spaces!) so that the unix form looks
11684      # like /cygdrive/c/PROGRA~1:/cygdr...
11685      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11686      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11687      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11688      ;;
11689    *)
11690      sys_lib_search_path_spec=$LIB
11691      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11692        # It is most probably a Windows format PATH.
11693        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11694      else
11695        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11696      fi
11697      # FIXME: find the short name or the path components, as spaces are
11698      # common. (e.g. "Program Files" -> "PROGRA~1")
11699      ;;
11700    esac
11701
11702    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11703    postinstall_cmds='base_file=`basename \$file`~
11704      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11705      dldir=$destdir/`dirname \$dlpath`~
11706      test -d \$dldir || mkdir -p \$dldir~
11707      $install_prog $dir/$dlname \$dldir/$dlname'
11708    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11709      dlpath=$dir/\$dldll~
11710       $RM \$dlpath'
11711    shlibpath_overrides_runpath=yes
11712    dynamic_linker='Win32 link.exe'
11713    ;;
11714
11715  *)
11716    # Assume MSVC and ICC wrapper
11717    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11718    dynamic_linker='Win32 ld.exe'
11719    ;;
11720  esac
11721  # FIXME: first we should search . and the directory the executable is in
11722  shlibpath_var=PATH
11723  ;;
11724
11725darwin* | rhapsody*)
11726  dynamic_linker="$host_os dyld"
11727  version_type=darwin
11728  need_lib_prefix=no
11729  need_version=no
11730  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11731  soname_spec='$libname$release$major$shared_ext'
11732  shlibpath_overrides_runpath=yes
11733  shlibpath_var=DYLD_LIBRARY_PATH
11734  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11735
11736  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11737  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11738  ;;
11739
11740dgux*)
11741  version_type=linux # correct to gnu/linux during the next big refactor
11742  need_lib_prefix=no
11743  need_version=no
11744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745  soname_spec='$libname$release$shared_ext$major'
11746  shlibpath_var=LD_LIBRARY_PATH
11747  ;;
11748
11749freebsd* | dragonfly* | midnightbsd*)
11750  # DragonFly does not have aout.  When/if they implement a new
11751  # versioning mechanism, adjust this.
11752  if test -x /usr/bin/objformat; then
11753    objformat=`/usr/bin/objformat`
11754  else
11755    case $host_os in
11756    freebsd[23].*) objformat=aout ;;
11757    *) objformat=elf ;;
11758    esac
11759  fi
11760  version_type=freebsd-$objformat
11761  case $version_type in
11762    freebsd-elf*)
11763      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11764      soname_spec='$libname$release$shared_ext$major'
11765      need_version=no
11766      need_lib_prefix=no
11767      ;;
11768    freebsd-*)
11769      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11770      need_version=yes
11771      ;;
11772  esac
11773  shlibpath_var=LD_LIBRARY_PATH
11774  case $host_os in
11775  freebsd2.*)
11776    shlibpath_overrides_runpath=yes
11777    ;;
11778  freebsd3.[01]* | freebsdelf3.[01]*)
11779    shlibpath_overrides_runpath=yes
11780    hardcode_into_libs=yes
11781    ;;
11782  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11783  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11784    shlibpath_overrides_runpath=no
11785    hardcode_into_libs=yes
11786    ;;
11787  *) # from 4.6 on, and DragonFly
11788    shlibpath_overrides_runpath=yes
11789    hardcode_into_libs=yes
11790    ;;
11791  esac
11792  ;;
11793
11794haiku*)
11795  version_type=linux # correct to gnu/linux during the next big refactor
11796  need_lib_prefix=no
11797  need_version=no
11798  dynamic_linker="$host_os runtime_loader"
11799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800  soname_spec='$libname$release$shared_ext$major'
11801  shlibpath_var=LIBRARY_PATH
11802  shlibpath_overrides_runpath=no
11803  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11804  hardcode_into_libs=yes
11805  ;;
11806
11807hpux9* | hpux10* | hpux11*)
11808  # Give a soname corresponding to the major version so that dld.sl refuses to
11809  # link against other versions.
11810  version_type=sunos
11811  need_lib_prefix=no
11812  need_version=no
11813  case $host_cpu in
11814  ia64*)
11815    shrext_cmds='.so'
11816    hardcode_into_libs=yes
11817    dynamic_linker="$host_os dld.so"
11818    shlibpath_var=LD_LIBRARY_PATH
11819    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11820    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821    soname_spec='$libname$release$shared_ext$major'
11822    if test 32 = "$HPUX_IA64_MODE"; then
11823      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11824      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11825    else
11826      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11827      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11828    fi
11829    ;;
11830  hppa*64*)
11831    shrext_cmds='.sl'
11832    hardcode_into_libs=yes
11833    dynamic_linker="$host_os dld.sl"
11834    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11835    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11836    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11837    soname_spec='$libname$release$shared_ext$major'
11838    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11839    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11840    ;;
11841  *)
11842    shrext_cmds='.sl'
11843    dynamic_linker="$host_os dld.sl"
11844    shlibpath_var=SHLIB_PATH
11845    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11846    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847    soname_spec='$libname$release$shared_ext$major'
11848    ;;
11849  esac
11850  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11851  postinstall_cmds='chmod 555 $lib'
11852  # or fails outright, so override atomically:
11853  install_override_mode=555
11854  ;;
11855
11856interix[3-9]*)
11857  version_type=linux # correct to gnu/linux during the next big refactor
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861  soname_spec='$libname$release$shared_ext$major'
11862  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11863  shlibpath_var=LD_LIBRARY_PATH
11864  shlibpath_overrides_runpath=no
11865  hardcode_into_libs=yes
11866  ;;
11867
11868irix5* | irix6* | nonstopux*)
11869  case $host_os in
11870    nonstopux*) version_type=nonstopux ;;
11871    *)
11872	if test yes = "$lt_cv_prog_gnu_ld"; then
11873		version_type=linux # correct to gnu/linux during the next big refactor
11874	else
11875		version_type=irix
11876	fi ;;
11877  esac
11878  need_lib_prefix=no
11879  need_version=no
11880  soname_spec='$libname$release$shared_ext$major'
11881  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11882  case $host_os in
11883  irix5* | nonstopux*)
11884    libsuff= shlibsuff=
11885    ;;
11886  *)
11887    case $LD in # libtool.m4 will add one of these switches to LD
11888    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11889      libsuff= shlibsuff= libmagic=32-bit;;
11890    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11891      libsuff=32 shlibsuff=N32 libmagic=N32;;
11892    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11893      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11894    *) libsuff= shlibsuff= libmagic=never-match;;
11895    esac
11896    ;;
11897  esac
11898  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11899  shlibpath_overrides_runpath=no
11900  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11901  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11902  hardcode_into_libs=yes
11903  ;;
11904
11905# No shared lib support for Linux oldld, aout, or coff.
11906linux*oldld* | linux*aout* | linux*coff*)
11907  dynamic_linker=no
11908  ;;
11909
11910linux*android*)
11911  version_type=none # Android doesn't support versioned libraries.
11912  need_lib_prefix=no
11913  need_version=no
11914  library_names_spec='$libname$release$shared_ext'
11915  soname_spec='$libname$release$shared_ext'
11916  finish_cmds=
11917  shlibpath_var=LD_LIBRARY_PATH
11918  shlibpath_overrides_runpath=yes
11919
11920  # This implies no fast_install, which is unacceptable.
11921  # Some rework will be needed to allow for fast_install
11922  # before this can be enabled.
11923  hardcode_into_libs=yes
11924
11925  dynamic_linker='Android linker'
11926  # Don't embed -rpath directories since the linker doesn't support them.
11927  hardcode_libdir_flag_spec='-L$libdir'
11928  ;;
11929
11930# This must be glibc/ELF.
11931linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11932  version_type=linux # correct to gnu/linux during the next big refactor
11933  need_lib_prefix=no
11934  need_version=no
11935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936  soname_spec='$libname$release$shared_ext$major'
11937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11938  shlibpath_var=LD_LIBRARY_PATH
11939  shlibpath_overrides_runpath=no
11940
11941  # Some binutils ld are patched to set DT_RUNPATH
11942  if test ${lt_cv_shlibpath_overrides_runpath+y}
11943then :
11944  printf %s "(cached) " >&6
11945else $as_nop
11946  lt_cv_shlibpath_overrides_runpath=no
11947    save_LDFLAGS=$LDFLAGS
11948    save_libdir=$libdir
11949    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11950	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953
11954int
11955main (void)
11956{
11957
11958  ;
11959  return 0;
11960}
11961_ACEOF
11962if ac_fn_c_try_link "$LINENO"
11963then :
11964  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11965then :
11966  lt_cv_shlibpath_overrides_runpath=yes
11967fi
11968fi
11969rm -f core conftest.err conftest.$ac_objext conftest.beam \
11970    conftest$ac_exeext conftest.$ac_ext
11971    LDFLAGS=$save_LDFLAGS
11972    libdir=$save_libdir
11973
11974fi
11975
11976  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11977
11978  # This implies no fast_install, which is unacceptable.
11979  # Some rework will be needed to allow for fast_install
11980  # before this can be enabled.
11981  hardcode_into_libs=yes
11982
11983  # Ideally, we could use ldconfig to report *all* directores which are
11984  # searched for libraries, however this is still not possible.  Aside from not
11985  # being certain /sbin/ldconfig is available, command
11986  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11987  # even though it is searched at run-time.  Try to do the best guess by
11988  # appending ld.so.conf contents (and includes) to the search path.
11989  if test -f /etc/ld.so.conf; then
11990    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' ' '`
11991    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11992  fi
11993
11994  # We used to test for /lib/ld.so.1 and disable shared libraries on
11995  # powerpc, because MkLinux only supported shared libraries with the
11996  # GNU dynamic linker.  Since this was broken with cross compilers,
11997  # most powerpc-linux boxes support dynamic linking these days and
11998  # people can always --disable-shared, the test was removed, and we
11999  # assume the GNU/Linux dynamic linker is in use.
12000  dynamic_linker='GNU/Linux ld.so'
12001  ;;
12002
12003netbsd*)
12004  version_type=sunos
12005  need_lib_prefix=no
12006  need_version=no
12007  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12008    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12009    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12010    dynamic_linker='NetBSD (a.out) ld.so'
12011  else
12012    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12013    soname_spec='$libname$release$shared_ext$major'
12014    dynamic_linker='NetBSD ld.elf_so'
12015  fi
12016  shlibpath_var=LD_LIBRARY_PATH
12017  shlibpath_overrides_runpath=yes
12018  hardcode_into_libs=yes
12019  ;;
12020
12021newsos6)
12022  version_type=linux # correct to gnu/linux during the next big refactor
12023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024  shlibpath_var=LD_LIBRARY_PATH
12025  shlibpath_overrides_runpath=yes
12026  ;;
12027
12028*nto* | *qnx*)
12029  version_type=qnx
12030  need_lib_prefix=no
12031  need_version=no
12032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12033  soname_spec='$libname$release$shared_ext$major'
12034  shlibpath_var=LD_LIBRARY_PATH
12035  shlibpath_overrides_runpath=no
12036  hardcode_into_libs=yes
12037  dynamic_linker='ldqnx.so'
12038  ;;
12039
12040openbsd* | bitrig*)
12041  version_type=sunos
12042  sys_lib_dlsearch_path_spec=/usr/lib
12043  need_lib_prefix=no
12044  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12045    need_version=no
12046  else
12047    need_version=yes
12048  fi
12049  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12050  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12051  shlibpath_var=LD_LIBRARY_PATH
12052  shlibpath_overrides_runpath=yes
12053  ;;
12054
12055os2*)
12056  libname_spec='$name'
12057  version_type=windows
12058  shrext_cmds=.dll
12059  need_version=no
12060  need_lib_prefix=no
12061  # OS/2 can only load a DLL with a base name of 8 characters or less.
12062  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12063    v=$($ECHO $release$versuffix | tr -d .-);
12064    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12065    $ECHO $n$v`$shared_ext'
12066  library_names_spec='${libname}_dll.$libext'
12067  dynamic_linker='OS/2 ld.exe'
12068  shlibpath_var=BEGINLIBPATH
12069  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12070  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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    chmod a+x \$dldir/$dlname~
12077    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12078      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12079    fi'
12080  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12081    dlpath=$dir/\$dldll~
12082    $RM \$dlpath'
12083  ;;
12084
12085osf3* | osf4* | osf5*)
12086  version_type=osf
12087  need_lib_prefix=no
12088  need_version=no
12089  soname_spec='$libname$release$shared_ext$major'
12090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091  shlibpath_var=LD_LIBRARY_PATH
12092  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12093  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12094  ;;
12095
12096rdos*)
12097  dynamic_linker=no
12098  ;;
12099
12100solaris*)
12101  version_type=linux # correct to gnu/linux during the next big refactor
12102  need_lib_prefix=no
12103  need_version=no
12104  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12105  soname_spec='$libname$release$shared_ext$major'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  shlibpath_overrides_runpath=yes
12108  hardcode_into_libs=yes
12109  # ldd complains unless libraries are executable
12110  postinstall_cmds='chmod +x $lib'
12111  ;;
12112
12113sunos4*)
12114  version_type=sunos
12115  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12116  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12117  shlibpath_var=LD_LIBRARY_PATH
12118  shlibpath_overrides_runpath=yes
12119  if test yes = "$with_gnu_ld"; then
12120    need_lib_prefix=no
12121  fi
12122  need_version=yes
12123  ;;
12124
12125sysv4 | sysv4.3*)
12126  version_type=linux # correct to gnu/linux during the next big refactor
12127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128  soname_spec='$libname$release$shared_ext$major'
12129  shlibpath_var=LD_LIBRARY_PATH
12130  case $host_vendor in
12131    sni)
12132      shlibpath_overrides_runpath=no
12133      need_lib_prefix=no
12134      runpath_var=LD_RUN_PATH
12135      ;;
12136    siemens)
12137      need_lib_prefix=no
12138      ;;
12139    motorola)
12140      need_lib_prefix=no
12141      need_version=no
12142      shlibpath_overrides_runpath=no
12143      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12144      ;;
12145  esac
12146  ;;
12147
12148sysv4*MP*)
12149  if test -d /usr/nec; then
12150    version_type=linux # correct to gnu/linux during the next big refactor
12151    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12152    soname_spec='$libname$shared_ext.$major'
12153    shlibpath_var=LD_LIBRARY_PATH
12154  fi
12155  ;;
12156
12157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12158  version_type=sco
12159  need_lib_prefix=no
12160  need_version=no
12161  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12162  soname_spec='$libname$release$shared_ext$major'
12163  shlibpath_var=LD_LIBRARY_PATH
12164  shlibpath_overrides_runpath=yes
12165  hardcode_into_libs=yes
12166  if test yes = "$with_gnu_ld"; then
12167    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12168  else
12169    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12170    case $host_os in
12171      sco3.2v5*)
12172        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12173	;;
12174    esac
12175  fi
12176  sys_lib_dlsearch_path_spec='/usr/lib'
12177  ;;
12178
12179tpf*)
12180  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12181  version_type=linux # correct to gnu/linux during the next big refactor
12182  need_lib_prefix=no
12183  need_version=no
12184  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12185  shlibpath_var=LD_LIBRARY_PATH
12186  shlibpath_overrides_runpath=no
12187  hardcode_into_libs=yes
12188  ;;
12189
12190uts4*)
12191  version_type=linux # correct to gnu/linux during the next big refactor
12192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193  soname_spec='$libname$release$shared_ext$major'
12194  shlibpath_var=LD_LIBRARY_PATH
12195  ;;
12196
12197*)
12198  dynamic_linker=no
12199  ;;
12200esac
12201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12202printf "%s\n" "$dynamic_linker" >&6; }
12203test no = "$dynamic_linker" && can_build_shared=no
12204
12205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12206if test yes = "$GCC"; then
12207  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12208fi
12209
12210if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12211  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12212fi
12213
12214if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12215  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12216fi
12217
12218# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12219configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12220
12221# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12222func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12223
12224# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12225configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12324printf %s "checking how to hardcode library paths into programs... " >&6; }
12325hardcode_action=
12326if test -n "$hardcode_libdir_flag_spec" ||
12327   test -n "$runpath_var" ||
12328   test yes = "$hardcode_automatic"; then
12329
12330  # We can hardcode non-existent directories.
12331  if test no != "$hardcode_direct" &&
12332     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12333     # have to relink, otherwise we might link with an installed library
12334     # when we should be linking with a yet-to-be-installed one
12335     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12336     test no != "$hardcode_minus_L"; then
12337    # Linking always hardcodes the temporary library directory.
12338    hardcode_action=relink
12339  else
12340    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12341    hardcode_action=immediate
12342  fi
12343else
12344  # We cannot hardcode anything, or else we can only hardcode existing
12345  # directories.
12346  hardcode_action=unsupported
12347fi
12348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12349printf "%s\n" "$hardcode_action" >&6; }
12350
12351if test relink = "$hardcode_action" ||
12352   test yes = "$inherit_rpath"; then
12353  # Fast installation is not supported
12354  enable_fast_install=no
12355elif test yes = "$shlibpath_overrides_runpath" ||
12356     test no = "$enable_shared"; then
12357  # Fast installation is not necessary
12358  enable_fast_install=needless
12359fi
12360
12361
12362
12363
12364
12365
12366  if test yes != "$enable_dlopen"; then
12367  enable_dlopen=unknown
12368  enable_dlopen_self=unknown
12369  enable_dlopen_self_static=unknown
12370else
12371  lt_cv_dlopen=no
12372  lt_cv_dlopen_libs=
12373
12374  case $host_os in
12375  beos*)
12376    lt_cv_dlopen=load_add_on
12377    lt_cv_dlopen_libs=
12378    lt_cv_dlopen_self=yes
12379    ;;
12380
12381  mingw* | pw32* | cegcc*)
12382    lt_cv_dlopen=LoadLibrary
12383    lt_cv_dlopen_libs=
12384    ;;
12385
12386  cygwin*)
12387    lt_cv_dlopen=dlopen
12388    lt_cv_dlopen_libs=
12389    ;;
12390
12391  darwin*)
12392    # if libdl is installed we need to link against it
12393    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12394printf %s "checking for dlopen in -ldl... " >&6; }
12395if test ${ac_cv_lib_dl_dlopen+y}
12396then :
12397  printf %s "(cached) " >&6
12398else $as_nop
12399  ac_check_lib_save_LIBS=$LIBS
12400LIBS="-ldl  $LIBS"
12401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404/* Override any GCC internal prototype to avoid an error.
12405   Use char because int might match the return type of a GCC
12406   builtin and then its argument prototype would still apply.  */
12407char dlopen ();
12408int
12409main (void)
12410{
12411return dlopen ();
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_link "$LINENO"
12417then :
12418  ac_cv_lib_dl_dlopen=yes
12419else $as_nop
12420  ac_cv_lib_dl_dlopen=no
12421fi
12422rm -f core conftest.err conftest.$ac_objext conftest.beam \
12423    conftest$ac_exeext conftest.$ac_ext
12424LIBS=$ac_check_lib_save_LIBS
12425fi
12426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12427printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12428if test "x$ac_cv_lib_dl_dlopen" = xyes
12429then :
12430  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12431else $as_nop
12432
12433    lt_cv_dlopen=dyld
12434    lt_cv_dlopen_libs=
12435    lt_cv_dlopen_self=yes
12436
12437fi
12438
12439    ;;
12440
12441  tpf*)
12442    # Don't try to run any link tests for TPF.  We know it's impossible
12443    # because TPF is a cross-compiler, and we know how we open DSOs.
12444    lt_cv_dlopen=dlopen
12445    lt_cv_dlopen_libs=
12446    lt_cv_dlopen_self=no
12447    ;;
12448
12449  *)
12450    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12451if test "x$ac_cv_func_shl_load" = xyes
12452then :
12453  lt_cv_dlopen=shl_load
12454else $as_nop
12455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12456printf %s "checking for shl_load in -ldld... " >&6; }
12457if test ${ac_cv_lib_dld_shl_load+y}
12458then :
12459  printf %s "(cached) " >&6
12460else $as_nop
12461  ac_check_lib_save_LIBS=$LIBS
12462LIBS="-ldld  $LIBS"
12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465
12466/* Override any GCC internal prototype to avoid an error.
12467   Use char because int might match the return type of a GCC
12468   builtin and then its argument prototype would still apply.  */
12469char shl_load ();
12470int
12471main (void)
12472{
12473return shl_load ();
12474  ;
12475  return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_link "$LINENO"
12479then :
12480  ac_cv_lib_dld_shl_load=yes
12481else $as_nop
12482  ac_cv_lib_dld_shl_load=no
12483fi
12484rm -f core conftest.err conftest.$ac_objext conftest.beam \
12485    conftest$ac_exeext conftest.$ac_ext
12486LIBS=$ac_check_lib_save_LIBS
12487fi
12488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12489printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12490if test "x$ac_cv_lib_dld_shl_load" = xyes
12491then :
12492  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12493else $as_nop
12494  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12495if test "x$ac_cv_func_dlopen" = xyes
12496then :
12497  lt_cv_dlopen=dlopen
12498else $as_nop
12499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12500printf %s "checking for dlopen in -ldl... " >&6; }
12501if test ${ac_cv_lib_dl_dlopen+y}
12502then :
12503  printf %s "(cached) " >&6
12504else $as_nop
12505  ac_check_lib_save_LIBS=$LIBS
12506LIBS="-ldl  $LIBS"
12507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h.  */
12509
12510/* Override any GCC internal prototype to avoid an error.
12511   Use char because int might match the return type of a GCC
12512   builtin and then its argument prototype would still apply.  */
12513char dlopen ();
12514int
12515main (void)
12516{
12517return dlopen ();
12518  ;
12519  return 0;
12520}
12521_ACEOF
12522if ac_fn_c_try_link "$LINENO"
12523then :
12524  ac_cv_lib_dl_dlopen=yes
12525else $as_nop
12526  ac_cv_lib_dl_dlopen=no
12527fi
12528rm -f core conftest.err conftest.$ac_objext conftest.beam \
12529    conftest$ac_exeext conftest.$ac_ext
12530LIBS=$ac_check_lib_save_LIBS
12531fi
12532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12533printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12534if test "x$ac_cv_lib_dl_dlopen" = xyes
12535then :
12536  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12537else $as_nop
12538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12539printf %s "checking for dlopen in -lsvld... " >&6; }
12540if test ${ac_cv_lib_svld_dlopen+y}
12541then :
12542  printf %s "(cached) " >&6
12543else $as_nop
12544  ac_check_lib_save_LIBS=$LIBS
12545LIBS="-lsvld  $LIBS"
12546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547/* end confdefs.h.  */
12548
12549/* Override any GCC internal prototype to avoid an error.
12550   Use char because int might match the return type of a GCC
12551   builtin and then its argument prototype would still apply.  */
12552char dlopen ();
12553int
12554main (void)
12555{
12556return dlopen ();
12557  ;
12558  return 0;
12559}
12560_ACEOF
12561if ac_fn_c_try_link "$LINENO"
12562then :
12563  ac_cv_lib_svld_dlopen=yes
12564else $as_nop
12565  ac_cv_lib_svld_dlopen=no
12566fi
12567rm -f core conftest.err conftest.$ac_objext conftest.beam \
12568    conftest$ac_exeext conftest.$ac_ext
12569LIBS=$ac_check_lib_save_LIBS
12570fi
12571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12572printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12573if test "x$ac_cv_lib_svld_dlopen" = xyes
12574then :
12575  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12576else $as_nop
12577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12578printf %s "checking for dld_link in -ldld... " >&6; }
12579if test ${ac_cv_lib_dld_dld_link+y}
12580then :
12581  printf %s "(cached) " >&6
12582else $as_nop
12583  ac_check_lib_save_LIBS=$LIBS
12584LIBS="-ldld  $LIBS"
12585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h.  */
12587
12588/* Override any GCC internal prototype to avoid an error.
12589   Use char because int might match the return type of a GCC
12590   builtin and then its argument prototype would still apply.  */
12591char dld_link ();
12592int
12593main (void)
12594{
12595return dld_link ();
12596  ;
12597  return 0;
12598}
12599_ACEOF
12600if ac_fn_c_try_link "$LINENO"
12601then :
12602  ac_cv_lib_dld_dld_link=yes
12603else $as_nop
12604  ac_cv_lib_dld_dld_link=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.beam \
12607    conftest$ac_exeext conftest.$ac_ext
12608LIBS=$ac_check_lib_save_LIBS
12609fi
12610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12611printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12612if test "x$ac_cv_lib_dld_dld_link" = xyes
12613then :
12614  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12615fi
12616
12617
12618fi
12619
12620
12621fi
12622
12623
12624fi
12625
12626
12627fi
12628
12629
12630fi
12631
12632    ;;
12633  esac
12634
12635  if test no = "$lt_cv_dlopen"; then
12636    enable_dlopen=no
12637  else
12638    enable_dlopen=yes
12639  fi
12640
12641  case $lt_cv_dlopen in
12642  dlopen)
12643    save_CPPFLAGS=$CPPFLAGS
12644    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12645
12646    save_LDFLAGS=$LDFLAGS
12647    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12648
12649    save_LIBS=$LIBS
12650    LIBS="$lt_cv_dlopen_libs $LIBS"
12651
12652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12653printf %s "checking whether a program can dlopen itself... " >&6; }
12654if test ${lt_cv_dlopen_self+y}
12655then :
12656  printf %s "(cached) " >&6
12657else $as_nop
12658  	  if test yes = "$cross_compiling"; then :
12659  lt_cv_dlopen_self=cross
12660else
12661  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12662  lt_status=$lt_dlunknown
12663  cat > conftest.$ac_ext <<_LT_EOF
12664#line $LINENO "configure"
12665#include "confdefs.h"
12666
12667#if HAVE_DLFCN_H
12668#include <dlfcn.h>
12669#endif
12670
12671#include <stdio.h>
12672
12673#ifdef RTLD_GLOBAL
12674#  define LT_DLGLOBAL		RTLD_GLOBAL
12675#else
12676#  ifdef DL_GLOBAL
12677#    define LT_DLGLOBAL		DL_GLOBAL
12678#  else
12679#    define LT_DLGLOBAL		0
12680#  endif
12681#endif
12682
12683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12684   find out it does not work in some platform. */
12685#ifndef LT_DLLAZY_OR_NOW
12686#  ifdef RTLD_LAZY
12687#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12688#  else
12689#    ifdef DL_LAZY
12690#      define LT_DLLAZY_OR_NOW		DL_LAZY
12691#    else
12692#      ifdef RTLD_NOW
12693#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12694#      else
12695#        ifdef DL_NOW
12696#          define LT_DLLAZY_OR_NOW	DL_NOW
12697#        else
12698#          define LT_DLLAZY_OR_NOW	0
12699#        endif
12700#      endif
12701#    endif
12702#  endif
12703#endif
12704
12705/* When -fvisibility=hidden is used, assume the code has been annotated
12706   correspondingly for the symbols needed.  */
12707#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12708int fnord () __attribute__((visibility("default")));
12709#endif
12710
12711int fnord () { return 42; }
12712int main ()
12713{
12714  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12715  int status = $lt_dlunknown;
12716
12717  if (self)
12718    {
12719      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12720      else
12721        {
12722	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12723          else puts (dlerror ());
12724	}
12725      /* dlclose (self); */
12726    }
12727  else
12728    puts (dlerror ());
12729
12730  return status;
12731}
12732_LT_EOF
12733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12734  (eval $ac_link) 2>&5
12735  ac_status=$?
12736  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12738    (./conftest; exit; ) >&5 2>/dev/null
12739    lt_status=$?
12740    case x$lt_status in
12741      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12742      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12743      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12744    esac
12745  else :
12746    # compilation failed
12747    lt_cv_dlopen_self=no
12748  fi
12749fi
12750rm -fr conftest*
12751
12752
12753fi
12754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12755printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12756
12757    if test yes = "$lt_cv_dlopen_self"; then
12758      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12759      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12760printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12761if test ${lt_cv_dlopen_self_static+y}
12762then :
12763  printf %s "(cached) " >&6
12764else $as_nop
12765  	  if test yes = "$cross_compiling"; then :
12766  lt_cv_dlopen_self_static=cross
12767else
12768  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12769  lt_status=$lt_dlunknown
12770  cat > conftest.$ac_ext <<_LT_EOF
12771#line $LINENO "configure"
12772#include "confdefs.h"
12773
12774#if HAVE_DLFCN_H
12775#include <dlfcn.h>
12776#endif
12777
12778#include <stdio.h>
12779
12780#ifdef RTLD_GLOBAL
12781#  define LT_DLGLOBAL		RTLD_GLOBAL
12782#else
12783#  ifdef DL_GLOBAL
12784#    define LT_DLGLOBAL		DL_GLOBAL
12785#  else
12786#    define LT_DLGLOBAL		0
12787#  endif
12788#endif
12789
12790/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12791   find out it does not work in some platform. */
12792#ifndef LT_DLLAZY_OR_NOW
12793#  ifdef RTLD_LAZY
12794#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12795#  else
12796#    ifdef DL_LAZY
12797#      define LT_DLLAZY_OR_NOW		DL_LAZY
12798#    else
12799#      ifdef RTLD_NOW
12800#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12801#      else
12802#        ifdef DL_NOW
12803#          define LT_DLLAZY_OR_NOW	DL_NOW
12804#        else
12805#          define LT_DLLAZY_OR_NOW	0
12806#        endif
12807#      endif
12808#    endif
12809#  endif
12810#endif
12811
12812/* When -fvisibility=hidden is used, assume the code has been annotated
12813   correspondingly for the symbols needed.  */
12814#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12815int fnord () __attribute__((visibility("default")));
12816#endif
12817
12818int fnord () { return 42; }
12819int main ()
12820{
12821  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12822  int status = $lt_dlunknown;
12823
12824  if (self)
12825    {
12826      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12827      else
12828        {
12829	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12830          else puts (dlerror ());
12831	}
12832      /* dlclose (self); */
12833    }
12834  else
12835    puts (dlerror ());
12836
12837  return status;
12838}
12839_LT_EOF
12840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12841  (eval $ac_link) 2>&5
12842  ac_status=$?
12843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12844  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12845    (./conftest; exit; ) >&5 2>/dev/null
12846    lt_status=$?
12847    case x$lt_status in
12848      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12849      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12850      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12851    esac
12852  else :
12853    # compilation failed
12854    lt_cv_dlopen_self_static=no
12855  fi
12856fi
12857rm -fr conftest*
12858
12859
12860fi
12861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12862printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12863    fi
12864
12865    CPPFLAGS=$save_CPPFLAGS
12866    LDFLAGS=$save_LDFLAGS
12867    LIBS=$save_LIBS
12868    ;;
12869  esac
12870
12871  case $lt_cv_dlopen_self in
12872  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12873  *) enable_dlopen_self=unknown ;;
12874  esac
12875
12876  case $lt_cv_dlopen_self_static in
12877  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12878  *) enable_dlopen_self_static=unknown ;;
12879  esac
12880fi
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898striplib=
12899old_striplib=
12900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12901printf %s "checking whether stripping libraries is possible... " >&6; }
12902if test -z "$STRIP"; then
12903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904printf "%s\n" "no" >&6; }
12905else
12906  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907    old_striplib="$STRIP --strip-debug"
12908    striplib="$STRIP --strip-unneeded"
12909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910printf "%s\n" "yes" >&6; }
12911  else
12912    case $host_os in
12913    darwin*)
12914      # FIXME - insert some real tests, host_os isn't really good enough
12915      striplib="$STRIP -x"
12916      old_striplib="$STRIP -S"
12917      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918printf "%s\n" "yes" >&6; }
12919      ;;
12920    freebsd*)
12921      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12922        old_striplib="$STRIP --strip-debug"
12923        striplib="$STRIP --strip-unneeded"
12924        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12925printf "%s\n" "yes" >&6; }
12926      else
12927        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928printf "%s\n" "no" >&6; }
12929      fi
12930      ;;
12931    *)
12932      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933printf "%s\n" "no" >&6; }
12934      ;;
12935    esac
12936  fi
12937fi
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950  # Report what library types will actually be built
12951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12952printf %s "checking if libtool supports shared libraries... " >&6; }
12953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12954printf "%s\n" "$can_build_shared" >&6; }
12955
12956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12957printf %s "checking whether to build shared libraries... " >&6; }
12958  test no = "$can_build_shared" && enable_shared=no
12959
12960  # On AIX, shared libraries and static libraries use the same namespace, and
12961  # are all built from PIC.
12962  case $host_os in
12963  aix3*)
12964    test yes = "$enable_shared" && enable_static=no
12965    if test -n "$RANLIB"; then
12966      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12967      postinstall_cmds='$RANLIB $lib'
12968    fi
12969    ;;
12970
12971  aix[4-9]*)
12972    if test ia64 != "$host_cpu"; then
12973      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12974      yes,aix,yes) ;;			# shared object as lib.so file only
12975      yes,svr4,*) ;;			# shared object as lib.so archive member only
12976      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12977      esac
12978    fi
12979    ;;
12980  esac
12981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12982printf "%s\n" "$enable_shared" >&6; }
12983
12984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12985printf %s "checking whether to build static libraries... " >&6; }
12986  # Make sure either enable_shared or enable_static is yes.
12987  test yes = "$enable_shared" || enable_static=yes
12988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12989printf "%s\n" "$enable_static" >&6; }
12990
12991
12992
12993
12994fi
12995ac_ext=c
12996ac_cpp='$CPP $CPPFLAGS'
12997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999ac_compiler_gnu=$ac_cv_c_compiler_gnu
13000
13001CC=$lt_save_CC
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017        ac_config_commands="$ac_config_commands libtool"
13018
13019
13020
13021
13022# Only expand once:
13023
13024
13025
13026# Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13039printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13040if test ${ac_cv_c_undeclared_builtin_options+y}
13041then :
13042  printf %s "(cached) " >&6
13043else $as_nop
13044  ac_save_CFLAGS=$CFLAGS
13045   ac_cv_c_undeclared_builtin_options='cannot detect'
13046   for ac_arg in '' -fno-builtin; do
13047     CFLAGS="$ac_save_CFLAGS $ac_arg"
13048     # This test program should *not* compile successfully.
13049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051
13052int
13053main (void)
13054{
13055(void) strchr;
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060if ac_fn_c_try_compile "$LINENO"
13061then :
13062
13063else $as_nop
13064  # This test program should compile successfully.
13065        # No library function is consistently available on
13066        # freestanding implementations, so test against a dummy
13067        # declaration.  Include always-available headers on the
13068        # off chance that they somehow elicit warnings.
13069        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070/* end confdefs.h.  */
13071#include <float.h>
13072#include <limits.h>
13073#include <stdarg.h>
13074#include <stddef.h>
13075extern void ac_decl (int, char *);
13076
13077int
13078main (void)
13079{
13080(void) ac_decl (0, (char *) 0);
13081  (void) ac_decl;
13082
13083  ;
13084  return 0;
13085}
13086_ACEOF
13087if ac_fn_c_try_compile "$LINENO"
13088then :
13089  if test x"$ac_arg" = x
13090then :
13091  ac_cv_c_undeclared_builtin_options='none needed'
13092else $as_nop
13093  ac_cv_c_undeclared_builtin_options=$ac_arg
13094fi
13095          break
13096fi
13097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13098fi
13099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13100    done
13101    CFLAGS=$ac_save_CFLAGS
13102
13103fi
13104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13105printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13106  case $ac_cv_c_undeclared_builtin_options in #(
13107  'cannot detect') :
13108    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13110as_fn_error $? "cannot make $CC report undeclared builtins
13111See \`config.log' for more details" "$LINENO" 5; } ;; #(
13112  'none needed') :
13113    ac_c_undeclared_builtin_options='' ;; #(
13114  *) :
13115    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13116esac
13117
13118
13119
13120
13121
13122ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13123if test "x$ac_cv_have_decl___clang__" = xyes
13124then :
13125  CLANGCC="yes"
13126else $as_nop
13127  CLANGCC="no"
13128fi
13129ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13130if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13131then :
13132  INTELCC="yes"
13133else $as_nop
13134  INTELCC="no"
13135fi
13136ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13137if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13138then :
13139  SUNCC="yes"
13140else $as_nop
13141  SUNCC="no"
13142fi
13143
13144
13145
13146
13147
13148
13149
13150
13151if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13152	if test -n "$ac_tool_prefix"; then
13153  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13154set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156printf %s "checking for $ac_word... " >&6; }
13157if test ${ac_cv_path_PKG_CONFIG+y}
13158then :
13159  printf %s "(cached) " >&6
13160else $as_nop
13161  case $PKG_CONFIG in
13162  [\\/]* | ?:[\\/]*)
13163  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13164  ;;
13165  *)
13166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169  IFS=$as_save_IFS
13170  case $as_dir in #(((
13171    '') as_dir=./ ;;
13172    */) ;;
13173    *) as_dir=$as_dir/ ;;
13174  esac
13175    for ac_exec_ext in '' $ac_executable_extensions; do
13176  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13177    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13178    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13179    break 2
13180  fi
13181done
13182  done
13183IFS=$as_save_IFS
13184
13185  ;;
13186esac
13187fi
13188PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13189if test -n "$PKG_CONFIG"; then
13190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13191printf "%s\n" "$PKG_CONFIG" >&6; }
13192else
13193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194printf "%s\n" "no" >&6; }
13195fi
13196
13197
13198fi
13199if test -z "$ac_cv_path_PKG_CONFIG"; then
13200  ac_pt_PKG_CONFIG=$PKG_CONFIG
13201  # Extract the first word of "pkg-config", so it can be a program name with args.
13202set dummy pkg-config; ac_word=$2
13203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204printf %s "checking for $ac_word... " >&6; }
13205if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13206then :
13207  printf %s "(cached) " >&6
13208else $as_nop
13209  case $ac_pt_PKG_CONFIG in
13210  [\\/]* | ?:[\\/]*)
13211  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13212  ;;
13213  *)
13214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $PATH
13216do
13217  IFS=$as_save_IFS
13218  case $as_dir in #(((
13219    '') as_dir=./ ;;
13220    */) ;;
13221    *) as_dir=$as_dir/ ;;
13222  esac
13223    for ac_exec_ext in '' $ac_executable_extensions; do
13224  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13225    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13226    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13227    break 2
13228  fi
13229done
13230  done
13231IFS=$as_save_IFS
13232
13233  ;;
13234esac
13235fi
13236ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13237if test -n "$ac_pt_PKG_CONFIG"; then
13238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13239printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13240else
13241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242printf "%s\n" "no" >&6; }
13243fi
13244
13245  if test "x$ac_pt_PKG_CONFIG" = x; then
13246    PKG_CONFIG=""
13247  else
13248    case $cross_compiling:$ac_tool_warned in
13249yes:)
13250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252ac_tool_warned=yes ;;
13253esac
13254    PKG_CONFIG=$ac_pt_PKG_CONFIG
13255  fi
13256else
13257  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13258fi
13259
13260fi
13261if test -n "$PKG_CONFIG"; then
13262	_pkg_min_version=0.9.0
13263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13264printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13265	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13267printf "%s\n" "yes" >&6; }
13268	else
13269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270printf "%s\n" "no" >&6; }
13271		PKG_CONFIG=""
13272	fi
13273fi
13274
13275
13276
13277
13278
13279# Check whether --enable-selective-werror was given.
13280if test ${enable_selective_werror+y}
13281then :
13282  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13283else $as_nop
13284  SELECTIVE_WERROR=yes
13285fi
13286
13287
13288
13289
13290
13291# -v is too short to test reliably with XORG_TESTSET_CFLAG
13292if test "x$SUNCC" = "xyes"; then
13293    BASE_CFLAGS="-v"
13294else
13295    BASE_CFLAGS=""
13296fi
13297
13298# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312xorg_testset_save_CFLAGS="$CFLAGS"
13313
13314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13318if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13319then :
13320  printf %s "(cached) " >&6
13321else $as_nop
13322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324int i;
13325_ACEOF
13326if ac_fn_c_try_compile "$LINENO"
13327then :
13328  xorg_cv_cc_flag_unknown_warning_option=yes
13329else $as_nop
13330  xorg_cv_cc_flag_unknown_warning_option=no
13331fi
13332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13333fi
13334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13337	CFLAGS="$xorg_testset_save_CFLAGS"
13338fi
13339
13340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343	fi
13344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13347if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13348then :
13349  printf %s "(cached) " >&6
13350else $as_nop
13351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352/* end confdefs.h.  */
13353int i;
13354_ACEOF
13355if ac_fn_c_try_compile "$LINENO"
13356then :
13357  xorg_cv_cc_flag_unused_command_line_argument=yes
13358else $as_nop
13359  xorg_cv_cc_flag_unused_command_line_argument=no
13360fi
13361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13362fi
13363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13366	CFLAGS="$xorg_testset_save_CFLAGS"
13367fi
13368
13369found="no"
13370
13371	if test $found = "no" ; then
13372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374		fi
13375
13376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13378		fi
13379
13380		CFLAGS="$CFLAGS -Wall"
13381
13382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13383printf %s "checking if $CC supports -Wall... " >&6; }
13384		cacheid=xorg_cv_cc_flag__Wall
13385		if eval test \${$cacheid+y}
13386then :
13387  printf %s "(cached) " >&6
13388else $as_nop
13389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391int i;
13392int
13393main (void)
13394{
13395
13396  ;
13397  return 0;
13398}
13399_ACEOF
13400if ac_fn_c_try_link "$LINENO"
13401then :
13402  eval $cacheid=yes
13403else $as_nop
13404  eval $cacheid=no
13405fi
13406rm -f core conftest.err conftest.$ac_objext conftest.beam \
13407    conftest$ac_exeext conftest.$ac_ext
13408fi
13409
13410
13411		CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413		eval supported=\$$cacheid
13414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415printf "%s\n" "$supported" >&6; }
13416		if test "$supported" = "yes" ; then
13417			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13418			found="yes"
13419		fi
13420	fi
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436xorg_testset_save_CFLAGS="$CFLAGS"
13437
13438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13442if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13443then :
13444  printf %s "(cached) " >&6
13445else $as_nop
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448int i;
13449_ACEOF
13450if ac_fn_c_try_compile "$LINENO"
13451then :
13452  xorg_cv_cc_flag_unknown_warning_option=yes
13453else $as_nop
13454  xorg_cv_cc_flag_unknown_warning_option=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13457fi
13458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13461	CFLAGS="$xorg_testset_save_CFLAGS"
13462fi
13463
13464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467	fi
13468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13471if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13472then :
13473  printf %s "(cached) " >&6
13474else $as_nop
13475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476/* end confdefs.h.  */
13477int i;
13478_ACEOF
13479if ac_fn_c_try_compile "$LINENO"
13480then :
13481  xorg_cv_cc_flag_unused_command_line_argument=yes
13482else $as_nop
13483  xorg_cv_cc_flag_unused_command_line_argument=no
13484fi
13485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13486fi
13487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13490	CFLAGS="$xorg_testset_save_CFLAGS"
13491fi
13492
13493found="no"
13494
13495	if test $found = "no" ; then
13496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498		fi
13499
13500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13502		fi
13503
13504		CFLAGS="$CFLAGS -Wpointer-arith"
13505
13506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13507printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13508		cacheid=xorg_cv_cc_flag__Wpointer_arith
13509		if eval test \${$cacheid+y}
13510then :
13511  printf %s "(cached) " >&6
13512else $as_nop
13513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515int i;
13516int
13517main (void)
13518{
13519
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_link "$LINENO"
13525then :
13526  eval $cacheid=yes
13527else $as_nop
13528  eval $cacheid=no
13529fi
13530rm -f core conftest.err conftest.$ac_objext conftest.beam \
13531    conftest$ac_exeext conftest.$ac_ext
13532fi
13533
13534
13535		CFLAGS="$xorg_testset_save_CFLAGS"
13536
13537		eval supported=\$$cacheid
13538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13539printf "%s\n" "$supported" >&6; }
13540		if test "$supported" = "yes" ; then
13541			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13542			found="yes"
13543		fi
13544	fi
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560xorg_testset_save_CFLAGS="$CFLAGS"
13561
13562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13566if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13567then :
13568  printf %s "(cached) " >&6
13569else $as_nop
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572int i;
13573_ACEOF
13574if ac_fn_c_try_compile "$LINENO"
13575then :
13576  xorg_cv_cc_flag_unknown_warning_option=yes
13577else $as_nop
13578  xorg_cv_cc_flag_unknown_warning_option=no
13579fi
13580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13581fi
13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13585	CFLAGS="$xorg_testset_save_CFLAGS"
13586fi
13587
13588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13591	fi
13592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13593	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13595if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13596then :
13597  printf %s "(cached) " >&6
13598else $as_nop
13599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601int i;
13602_ACEOF
13603if ac_fn_c_try_compile "$LINENO"
13604then :
13605  xorg_cv_cc_flag_unused_command_line_argument=yes
13606else $as_nop
13607  xorg_cv_cc_flag_unused_command_line_argument=no
13608fi
13609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13610fi
13611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13614	CFLAGS="$xorg_testset_save_CFLAGS"
13615fi
13616
13617found="no"
13618
13619	if test $found = "no" ; then
13620		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622		fi
13623
13624		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13626		fi
13627
13628		CFLAGS="$CFLAGS -Wmissing-declarations"
13629
13630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13631printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13632		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13633		if eval test \${$cacheid+y}
13634then :
13635  printf %s "(cached) " >&6
13636else $as_nop
13637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638/* end confdefs.h.  */
13639int i;
13640int
13641main (void)
13642{
13643
13644  ;
13645  return 0;
13646}
13647_ACEOF
13648if ac_fn_c_try_link "$LINENO"
13649then :
13650  eval $cacheid=yes
13651else $as_nop
13652  eval $cacheid=no
13653fi
13654rm -f core conftest.err conftest.$ac_objext conftest.beam \
13655    conftest$ac_exeext conftest.$ac_ext
13656fi
13657
13658
13659		CFLAGS="$xorg_testset_save_CFLAGS"
13660
13661		eval supported=\$$cacheid
13662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13663printf "%s\n" "$supported" >&6; }
13664		if test "$supported" = "yes" ; then
13665			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13666			found="yes"
13667		fi
13668	fi
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684xorg_testset_save_CFLAGS="$CFLAGS"
13685
13686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13690if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13691then :
13692  printf %s "(cached) " >&6
13693else $as_nop
13694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695/* end confdefs.h.  */
13696int i;
13697_ACEOF
13698if ac_fn_c_try_compile "$LINENO"
13699then :
13700  xorg_cv_cc_flag_unknown_warning_option=yes
13701else $as_nop
13702  xorg_cv_cc_flag_unknown_warning_option=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13705fi
13706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13709	CFLAGS="$xorg_testset_save_CFLAGS"
13710fi
13711
13712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715	fi
13716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13719if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13720then :
13721  printf %s "(cached) " >&6
13722else $as_nop
13723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725int i;
13726_ACEOF
13727if ac_fn_c_try_compile "$LINENO"
13728then :
13729  xorg_cv_cc_flag_unused_command_line_argument=yes
13730else $as_nop
13731  xorg_cv_cc_flag_unused_command_line_argument=no
13732fi
13733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13734fi
13735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13738	CFLAGS="$xorg_testset_save_CFLAGS"
13739fi
13740
13741found="no"
13742
13743	if test $found = "no" ; then
13744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13746		fi
13747
13748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13750		fi
13751
13752		CFLAGS="$CFLAGS -Wformat=2"
13753
13754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13755printf %s "checking if $CC supports -Wformat=2... " >&6; }
13756		cacheid=xorg_cv_cc_flag__Wformat_2
13757		if eval test \${$cacheid+y}
13758then :
13759  printf %s "(cached) " >&6
13760else $as_nop
13761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762/* end confdefs.h.  */
13763int i;
13764int
13765main (void)
13766{
13767
13768  ;
13769  return 0;
13770}
13771_ACEOF
13772if ac_fn_c_try_link "$LINENO"
13773then :
13774  eval $cacheid=yes
13775else $as_nop
13776  eval $cacheid=no
13777fi
13778rm -f core conftest.err conftest.$ac_objext conftest.beam \
13779    conftest$ac_exeext conftest.$ac_ext
13780fi
13781
13782
13783		CFLAGS="$xorg_testset_save_CFLAGS"
13784
13785		eval supported=\$$cacheid
13786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13787printf "%s\n" "$supported" >&6; }
13788		if test "$supported" = "yes" ; then
13789			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13790			found="yes"
13791		fi
13792	fi
13793
13794	if test $found = "no" ; then
13795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797		fi
13798
13799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13801		fi
13802
13803		CFLAGS="$CFLAGS -Wformat"
13804
13805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13806printf %s "checking if $CC supports -Wformat... " >&6; }
13807		cacheid=xorg_cv_cc_flag__Wformat
13808		if eval test \${$cacheid+y}
13809then :
13810  printf %s "(cached) " >&6
13811else $as_nop
13812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h.  */
13814int i;
13815int
13816main (void)
13817{
13818
13819  ;
13820  return 0;
13821}
13822_ACEOF
13823if ac_fn_c_try_link "$LINENO"
13824then :
13825  eval $cacheid=yes
13826else $as_nop
13827  eval $cacheid=no
13828fi
13829rm -f core conftest.err conftest.$ac_objext conftest.beam \
13830    conftest$ac_exeext conftest.$ac_ext
13831fi
13832
13833
13834		CFLAGS="$xorg_testset_save_CFLAGS"
13835
13836		eval supported=\$$cacheid
13837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13838printf "%s\n" "$supported" >&6; }
13839		if test "$supported" = "yes" ; then
13840			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13841			found="yes"
13842		fi
13843	fi
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861xorg_testset_save_CFLAGS="$CFLAGS"
13862
13863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13868then :
13869  printf %s "(cached) " >&6
13870else $as_nop
13871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873int i;
13874_ACEOF
13875if ac_fn_c_try_compile "$LINENO"
13876then :
13877  xorg_cv_cc_flag_unknown_warning_option=yes
13878else $as_nop
13879  xorg_cv_cc_flag_unknown_warning_option=no
13880fi
13881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13882fi
13883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13886	CFLAGS="$xorg_testset_save_CFLAGS"
13887fi
13888
13889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892	fi
13893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13897then :
13898  printf %s "(cached) " >&6
13899else $as_nop
13900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902int i;
13903_ACEOF
13904if ac_fn_c_try_compile "$LINENO"
13905then :
13906  xorg_cv_cc_flag_unused_command_line_argument=yes
13907else $as_nop
13908  xorg_cv_cc_flag_unused_command_line_argument=no
13909fi
13910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13911fi
13912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13915	CFLAGS="$xorg_testset_save_CFLAGS"
13916fi
13917
13918found="no"
13919
13920	if test $found = "no" ; then
13921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13923		fi
13924
13925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13927		fi
13928
13929		CFLAGS="$CFLAGS -Wstrict-prototypes"
13930
13931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13932printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13933		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13934		if eval test \${$cacheid+y}
13935then :
13936  printf %s "(cached) " >&6
13937else $as_nop
13938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940int i;
13941int
13942main (void)
13943{
13944
13945  ;
13946  return 0;
13947}
13948_ACEOF
13949if ac_fn_c_try_link "$LINENO"
13950then :
13951  eval $cacheid=yes
13952else $as_nop
13953  eval $cacheid=no
13954fi
13955rm -f core conftest.err conftest.$ac_objext conftest.beam \
13956    conftest$ac_exeext conftest.$ac_ext
13957fi
13958
13959
13960		CFLAGS="$xorg_testset_save_CFLAGS"
13961
13962		eval supported=\$$cacheid
13963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13964printf "%s\n" "$supported" >&6; }
13965		if test "$supported" = "yes" ; then
13966			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13967			found="yes"
13968		fi
13969	fi
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985xorg_testset_save_CFLAGS="$CFLAGS"
13986
13987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13992then :
13993  printf %s "(cached) " >&6
13994else $as_nop
13995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996/* end confdefs.h.  */
13997int i;
13998_ACEOF
13999if ac_fn_c_try_compile "$LINENO"
14000then :
14001  xorg_cv_cc_flag_unknown_warning_option=yes
14002else $as_nop
14003  xorg_cv_cc_flag_unknown_warning_option=no
14004fi
14005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14006fi
14007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14010	CFLAGS="$xorg_testset_save_CFLAGS"
14011fi
14012
14013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14016	fi
14017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14020if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14021then :
14022  printf %s "(cached) " >&6
14023else $as_nop
14024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025/* end confdefs.h.  */
14026int i;
14027_ACEOF
14028if ac_fn_c_try_compile "$LINENO"
14029then :
14030  xorg_cv_cc_flag_unused_command_line_argument=yes
14031else $as_nop
14032  xorg_cv_cc_flag_unused_command_line_argument=no
14033fi
14034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14035fi
14036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14039	CFLAGS="$xorg_testset_save_CFLAGS"
14040fi
14041
14042found="no"
14043
14044	if test $found = "no" ; then
14045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14047		fi
14048
14049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14051		fi
14052
14053		CFLAGS="$CFLAGS -Wmissing-prototypes"
14054
14055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14056printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14057		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14058		if eval test \${$cacheid+y}
14059then :
14060  printf %s "(cached) " >&6
14061else $as_nop
14062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064int i;
14065int
14066main (void)
14067{
14068
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_link "$LINENO"
14074then :
14075  eval $cacheid=yes
14076else $as_nop
14077  eval $cacheid=no
14078fi
14079rm -f core conftest.err conftest.$ac_objext conftest.beam \
14080    conftest$ac_exeext conftest.$ac_ext
14081fi
14082
14083
14084		CFLAGS="$xorg_testset_save_CFLAGS"
14085
14086		eval supported=\$$cacheid
14087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14088printf "%s\n" "$supported" >&6; }
14089		if test "$supported" = "yes" ; then
14090			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14091			found="yes"
14092		fi
14093	fi
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109xorg_testset_save_CFLAGS="$CFLAGS"
14110
14111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14116then :
14117  printf %s "(cached) " >&6
14118else $as_nop
14119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120/* end confdefs.h.  */
14121int i;
14122_ACEOF
14123if ac_fn_c_try_compile "$LINENO"
14124then :
14125  xorg_cv_cc_flag_unknown_warning_option=yes
14126else $as_nop
14127  xorg_cv_cc_flag_unknown_warning_option=no
14128fi
14129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14130fi
14131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14134	CFLAGS="$xorg_testset_save_CFLAGS"
14135fi
14136
14137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140	fi
14141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14145then :
14146  printf %s "(cached) " >&6
14147else $as_nop
14148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149/* end confdefs.h.  */
14150int i;
14151_ACEOF
14152if ac_fn_c_try_compile "$LINENO"
14153then :
14154  xorg_cv_cc_flag_unused_command_line_argument=yes
14155else $as_nop
14156  xorg_cv_cc_flag_unused_command_line_argument=no
14157fi
14158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14159fi
14160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14163	CFLAGS="$xorg_testset_save_CFLAGS"
14164fi
14165
14166found="no"
14167
14168	if test $found = "no" ; then
14169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14171		fi
14172
14173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14175		fi
14176
14177		CFLAGS="$CFLAGS -Wnested-externs"
14178
14179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14180printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14181		cacheid=xorg_cv_cc_flag__Wnested_externs
14182		if eval test \${$cacheid+y}
14183then :
14184  printf %s "(cached) " >&6
14185else $as_nop
14186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187/* end confdefs.h.  */
14188int i;
14189int
14190main (void)
14191{
14192
14193  ;
14194  return 0;
14195}
14196_ACEOF
14197if ac_fn_c_try_link "$LINENO"
14198then :
14199  eval $cacheid=yes
14200else $as_nop
14201  eval $cacheid=no
14202fi
14203rm -f core conftest.err conftest.$ac_objext conftest.beam \
14204    conftest$ac_exeext conftest.$ac_ext
14205fi
14206
14207
14208		CFLAGS="$xorg_testset_save_CFLAGS"
14209
14210		eval supported=\$$cacheid
14211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14212printf "%s\n" "$supported" >&6; }
14213		if test "$supported" = "yes" ; then
14214			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14215			found="yes"
14216		fi
14217	fi
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233xorg_testset_save_CFLAGS="$CFLAGS"
14234
14235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14240then :
14241  printf %s "(cached) " >&6
14242else $as_nop
14243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244/* end confdefs.h.  */
14245int i;
14246_ACEOF
14247if ac_fn_c_try_compile "$LINENO"
14248then :
14249  xorg_cv_cc_flag_unknown_warning_option=yes
14250else $as_nop
14251  xorg_cv_cc_flag_unknown_warning_option=no
14252fi
14253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14254fi
14255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14258	CFLAGS="$xorg_testset_save_CFLAGS"
14259fi
14260
14261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264	fi
14265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14269then :
14270  printf %s "(cached) " >&6
14271else $as_nop
14272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274int i;
14275_ACEOF
14276if ac_fn_c_try_compile "$LINENO"
14277then :
14278  xorg_cv_cc_flag_unused_command_line_argument=yes
14279else $as_nop
14280  xorg_cv_cc_flag_unused_command_line_argument=no
14281fi
14282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14283fi
14284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14287	CFLAGS="$xorg_testset_save_CFLAGS"
14288fi
14289
14290found="no"
14291
14292	if test $found = "no" ; then
14293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295		fi
14296
14297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14299		fi
14300
14301		CFLAGS="$CFLAGS -Wbad-function-cast"
14302
14303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14304printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14305		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14306		if eval test \${$cacheid+y}
14307then :
14308  printf %s "(cached) " >&6
14309else $as_nop
14310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311/* end confdefs.h.  */
14312int i;
14313int
14314main (void)
14315{
14316
14317  ;
14318  return 0;
14319}
14320_ACEOF
14321if ac_fn_c_try_link "$LINENO"
14322then :
14323  eval $cacheid=yes
14324else $as_nop
14325  eval $cacheid=no
14326fi
14327rm -f core conftest.err conftest.$ac_objext conftest.beam \
14328    conftest$ac_exeext conftest.$ac_ext
14329fi
14330
14331
14332		CFLAGS="$xorg_testset_save_CFLAGS"
14333
14334		eval supported=\$$cacheid
14335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14336printf "%s\n" "$supported" >&6; }
14337		if test "$supported" = "yes" ; then
14338			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14339			found="yes"
14340		fi
14341	fi
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357xorg_testset_save_CFLAGS="$CFLAGS"
14358
14359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14364then :
14365  printf %s "(cached) " >&6
14366else $as_nop
14367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368/* end confdefs.h.  */
14369int i;
14370_ACEOF
14371if ac_fn_c_try_compile "$LINENO"
14372then :
14373  xorg_cv_cc_flag_unknown_warning_option=yes
14374else $as_nop
14375  xorg_cv_cc_flag_unknown_warning_option=no
14376fi
14377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14378fi
14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14382	CFLAGS="$xorg_testset_save_CFLAGS"
14383fi
14384
14385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14388	fi
14389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14393then :
14394  printf %s "(cached) " >&6
14395else $as_nop
14396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397/* end confdefs.h.  */
14398int i;
14399_ACEOF
14400if ac_fn_c_try_compile "$LINENO"
14401then :
14402  xorg_cv_cc_flag_unused_command_line_argument=yes
14403else $as_nop
14404  xorg_cv_cc_flag_unused_command_line_argument=no
14405fi
14406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14407fi
14408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14411	CFLAGS="$xorg_testset_save_CFLAGS"
14412fi
14413
14414found="no"
14415
14416	if test $found = "no" ; then
14417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419		fi
14420
14421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14423		fi
14424
14425		CFLAGS="$CFLAGS -Wold-style-definition"
14426
14427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14428printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14429		cacheid=xorg_cv_cc_flag__Wold_style_definition
14430		if eval test \${$cacheid+y}
14431then :
14432  printf %s "(cached) " >&6
14433else $as_nop
14434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437int
14438main (void)
14439{
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"
14446then :
14447  eval $cacheid=yes
14448else $as_nop
14449  eval $cacheid=no
14450fi
14451rm -f core conftest.err conftest.$ac_objext conftest.beam \
14452    conftest$ac_exeext conftest.$ac_ext
14453fi
14454
14455
14456		CFLAGS="$xorg_testset_save_CFLAGS"
14457
14458		eval supported=\$$cacheid
14459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14460printf "%s\n" "$supported" >&6; }
14461		if test "$supported" = "yes" ; then
14462			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14463			found="yes"
14464		fi
14465	fi
14466
14467	if test $found = "no" ; then
14468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470		fi
14471
14472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14474		fi
14475
14476		CFLAGS="$CFLAGS -fd"
14477
14478		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14479printf %s "checking if $CC supports -fd... " >&6; }
14480		cacheid=xorg_cv_cc_flag__fd
14481		if eval test \${$cacheid+y}
14482then :
14483  printf %s "(cached) " >&6
14484else $as_nop
14485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487int i;
14488int
14489main (void)
14490{
14491
14492  ;
14493  return 0;
14494}
14495_ACEOF
14496if ac_fn_c_try_link "$LINENO"
14497then :
14498  eval $cacheid=yes
14499else $as_nop
14500  eval $cacheid=no
14501fi
14502rm -f core conftest.err conftest.$ac_objext conftest.beam \
14503    conftest$ac_exeext conftest.$ac_ext
14504fi
14505
14506
14507		CFLAGS="$xorg_testset_save_CFLAGS"
14508
14509		eval supported=\$$cacheid
14510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14511printf "%s\n" "$supported" >&6; }
14512		if test "$supported" = "yes" ; then
14513			BASE_CFLAGS="$BASE_CFLAGS -fd"
14514			found="yes"
14515		fi
14516	fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532xorg_testset_save_CFLAGS="$CFLAGS"
14533
14534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14536	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14538if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14539then :
14540  printf %s "(cached) " >&6
14541else $as_nop
14542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543/* end confdefs.h.  */
14544int i;
14545_ACEOF
14546if ac_fn_c_try_compile "$LINENO"
14547then :
14548  xorg_cv_cc_flag_unknown_warning_option=yes
14549else $as_nop
14550  xorg_cv_cc_flag_unknown_warning_option=no
14551fi
14552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14553fi
14554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557	CFLAGS="$xorg_testset_save_CFLAGS"
14558fi
14559
14560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563	fi
14564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14568then :
14569  printf %s "(cached) " >&6
14570else $as_nop
14571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572/* end confdefs.h.  */
14573int i;
14574_ACEOF
14575if ac_fn_c_try_compile "$LINENO"
14576then :
14577  xorg_cv_cc_flag_unused_command_line_argument=yes
14578else $as_nop
14579  xorg_cv_cc_flag_unused_command_line_argument=no
14580fi
14581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14582fi
14583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14586	CFLAGS="$xorg_testset_save_CFLAGS"
14587fi
14588
14589found="no"
14590
14591	if test $found = "no" ; then
14592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594		fi
14595
14596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14598		fi
14599
14600		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14601
14602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14603printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14604		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14605		if eval test \${$cacheid+y}
14606then :
14607  printf %s "(cached) " >&6
14608else $as_nop
14609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h.  */
14611int i;
14612int
14613main (void)
14614{
14615
14616  ;
14617  return 0;
14618}
14619_ACEOF
14620if ac_fn_c_try_link "$LINENO"
14621then :
14622  eval $cacheid=yes
14623else $as_nop
14624  eval $cacheid=no
14625fi
14626rm -f core conftest.err conftest.$ac_objext conftest.beam \
14627    conftest$ac_exeext conftest.$ac_ext
14628fi
14629
14630
14631		CFLAGS="$xorg_testset_save_CFLAGS"
14632
14633		eval supported=\$$cacheid
14634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14635printf "%s\n" "$supported" >&6; }
14636		if test "$supported" = "yes" ; then
14637			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14638			found="yes"
14639		fi
14640	fi
14641
14642
14643
14644
14645
14646# This chunk adds additional warnings that could catch undesired effects.
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14667then :
14668  printf %s "(cached) " >&6
14669else $as_nop
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673_ACEOF
14674if ac_fn_c_try_compile "$LINENO"
14675then :
14676  xorg_cv_cc_flag_unknown_warning_option=yes
14677else $as_nop
14678  xorg_cv_cc_flag_unknown_warning_option=no
14679fi
14680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14681fi
14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14685	CFLAGS="$xorg_testset_save_CFLAGS"
14686fi
14687
14688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691	fi
14692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14696then :
14697  printf %s "(cached) " >&6
14698else $as_nop
14699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701int i;
14702_ACEOF
14703if ac_fn_c_try_compile "$LINENO"
14704then :
14705  xorg_cv_cc_flag_unused_command_line_argument=yes
14706else $as_nop
14707  xorg_cv_cc_flag_unused_command_line_argument=no
14708fi
14709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14710fi
14711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14714	CFLAGS="$xorg_testset_save_CFLAGS"
14715fi
14716
14717found="no"
14718
14719	if test $found = "no" ; then
14720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722		fi
14723
14724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14726		fi
14727
14728		CFLAGS="$CFLAGS -Wunused"
14729
14730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14731printf %s "checking if $CC supports -Wunused... " >&6; }
14732		cacheid=xorg_cv_cc_flag__Wunused
14733		if eval test \${$cacheid+y}
14734then :
14735  printf %s "(cached) " >&6
14736else $as_nop
14737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738/* end confdefs.h.  */
14739int i;
14740int
14741main (void)
14742{
14743
14744  ;
14745  return 0;
14746}
14747_ACEOF
14748if ac_fn_c_try_link "$LINENO"
14749then :
14750  eval $cacheid=yes
14751else $as_nop
14752  eval $cacheid=no
14753fi
14754rm -f core conftest.err conftest.$ac_objext conftest.beam \
14755    conftest$ac_exeext conftest.$ac_ext
14756fi
14757
14758
14759		CFLAGS="$xorg_testset_save_CFLAGS"
14760
14761		eval supported=\$$cacheid
14762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14763printf "%s\n" "$supported" >&6; }
14764		if test "$supported" = "yes" ; then
14765			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14766			found="yes"
14767		fi
14768	fi
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784xorg_testset_save_CFLAGS="$CFLAGS"
14785
14786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14790if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14791then :
14792  printf %s "(cached) " >&6
14793else $as_nop
14794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795/* end confdefs.h.  */
14796int i;
14797_ACEOF
14798if ac_fn_c_try_compile "$LINENO"
14799then :
14800  xorg_cv_cc_flag_unknown_warning_option=yes
14801else $as_nop
14802  xorg_cv_cc_flag_unknown_warning_option=no
14803fi
14804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14805fi
14806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14809	CFLAGS="$xorg_testset_save_CFLAGS"
14810fi
14811
14812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815	fi
14816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14819if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14820then :
14821  printf %s "(cached) " >&6
14822else $as_nop
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825int i;
14826_ACEOF
14827if ac_fn_c_try_compile "$LINENO"
14828then :
14829  xorg_cv_cc_flag_unused_command_line_argument=yes
14830else $as_nop
14831  xorg_cv_cc_flag_unused_command_line_argument=no
14832fi
14833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14834fi
14835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14838	CFLAGS="$xorg_testset_save_CFLAGS"
14839fi
14840
14841found="no"
14842
14843	if test $found = "no" ; then
14844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846		fi
14847
14848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14850		fi
14851
14852		CFLAGS="$CFLAGS -Wuninitialized"
14853
14854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14855printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14856		cacheid=xorg_cv_cc_flag__Wuninitialized
14857		if eval test \${$cacheid+y}
14858then :
14859  printf %s "(cached) " >&6
14860else $as_nop
14861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862/* end confdefs.h.  */
14863int i;
14864int
14865main (void)
14866{
14867
14868  ;
14869  return 0;
14870}
14871_ACEOF
14872if ac_fn_c_try_link "$LINENO"
14873then :
14874  eval $cacheid=yes
14875else $as_nop
14876  eval $cacheid=no
14877fi
14878rm -f core conftest.err conftest.$ac_objext conftest.beam \
14879    conftest$ac_exeext conftest.$ac_ext
14880fi
14881
14882
14883		CFLAGS="$xorg_testset_save_CFLAGS"
14884
14885		eval supported=\$$cacheid
14886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14887printf "%s\n" "$supported" >&6; }
14888		if test "$supported" = "yes" ; then
14889			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14890			found="yes"
14891		fi
14892	fi
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908xorg_testset_save_CFLAGS="$CFLAGS"
14909
14910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14914if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14915then :
14916  printf %s "(cached) " >&6
14917else $as_nop
14918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h.  */
14920int i;
14921_ACEOF
14922if ac_fn_c_try_compile "$LINENO"
14923then :
14924  xorg_cv_cc_flag_unknown_warning_option=yes
14925else $as_nop
14926  xorg_cv_cc_flag_unknown_warning_option=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14929fi
14930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14933	CFLAGS="$xorg_testset_save_CFLAGS"
14934fi
14935
14936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14939	fi
14940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14943if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14944then :
14945  printf %s "(cached) " >&6
14946else $as_nop
14947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949int i;
14950_ACEOF
14951if ac_fn_c_try_compile "$LINENO"
14952then :
14953  xorg_cv_cc_flag_unused_command_line_argument=yes
14954else $as_nop
14955  xorg_cv_cc_flag_unused_command_line_argument=no
14956fi
14957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14958fi
14959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14962	CFLAGS="$xorg_testset_save_CFLAGS"
14963fi
14964
14965found="no"
14966
14967	if test $found = "no" ; then
14968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970		fi
14971
14972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14974		fi
14975
14976		CFLAGS="$CFLAGS -Wshadow"
14977
14978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14979printf %s "checking if $CC supports -Wshadow... " >&6; }
14980		cacheid=xorg_cv_cc_flag__Wshadow
14981		if eval test \${$cacheid+y}
14982then :
14983  printf %s "(cached) " >&6
14984else $as_nop
14985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987int i;
14988int
14989main (void)
14990{
14991
14992  ;
14993  return 0;
14994}
14995_ACEOF
14996if ac_fn_c_try_link "$LINENO"
14997then :
14998  eval $cacheid=yes
14999else $as_nop
15000  eval $cacheid=no
15001fi
15002rm -f core conftest.err conftest.$ac_objext conftest.beam \
15003    conftest$ac_exeext conftest.$ac_ext
15004fi
15005
15006
15007		CFLAGS="$xorg_testset_save_CFLAGS"
15008
15009		eval supported=\$$cacheid
15010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15011printf "%s\n" "$supported" >&6; }
15012		if test "$supported" = "yes" ; then
15013			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15014			found="yes"
15015		fi
15016	fi
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032xorg_testset_save_CFLAGS="$CFLAGS"
15033
15034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15038if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15039then :
15040  printf %s "(cached) " >&6
15041else $as_nop
15042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043/* end confdefs.h.  */
15044int i;
15045_ACEOF
15046if ac_fn_c_try_compile "$LINENO"
15047then :
15048  xorg_cv_cc_flag_unknown_warning_option=yes
15049else $as_nop
15050  xorg_cv_cc_flag_unknown_warning_option=no
15051fi
15052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15053fi
15054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15057	CFLAGS="$xorg_testset_save_CFLAGS"
15058fi
15059
15060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063	fi
15064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15067if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15068then :
15069  printf %s "(cached) " >&6
15070else $as_nop
15071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h.  */
15073int i;
15074_ACEOF
15075if ac_fn_c_try_compile "$LINENO"
15076then :
15077  xorg_cv_cc_flag_unused_command_line_argument=yes
15078else $as_nop
15079  xorg_cv_cc_flag_unused_command_line_argument=no
15080fi
15081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15082fi
15083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15086	CFLAGS="$xorg_testset_save_CFLAGS"
15087fi
15088
15089found="no"
15090
15091	if test $found = "no" ; then
15092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15094		fi
15095
15096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15098		fi
15099
15100		CFLAGS="$CFLAGS -Wmissing-noreturn"
15101
15102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15103printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15104		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15105		if eval test \${$cacheid+y}
15106then :
15107  printf %s "(cached) " >&6
15108else $as_nop
15109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h.  */
15111int i;
15112int
15113main (void)
15114{
15115
15116  ;
15117  return 0;
15118}
15119_ACEOF
15120if ac_fn_c_try_link "$LINENO"
15121then :
15122  eval $cacheid=yes
15123else $as_nop
15124  eval $cacheid=no
15125fi
15126rm -f core conftest.err conftest.$ac_objext conftest.beam \
15127    conftest$ac_exeext conftest.$ac_ext
15128fi
15129
15130
15131		CFLAGS="$xorg_testset_save_CFLAGS"
15132
15133		eval supported=\$$cacheid
15134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15135printf "%s\n" "$supported" >&6; }
15136		if test "$supported" = "yes" ; then
15137			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15138			found="yes"
15139		fi
15140	fi
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156xorg_testset_save_CFLAGS="$CFLAGS"
15157
15158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15163then :
15164  printf %s "(cached) " >&6
15165else $as_nop
15166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h.  */
15168int i;
15169_ACEOF
15170if ac_fn_c_try_compile "$LINENO"
15171then :
15172  xorg_cv_cc_flag_unknown_warning_option=yes
15173else $as_nop
15174  xorg_cv_cc_flag_unknown_warning_option=no
15175fi
15176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15177fi
15178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15181	CFLAGS="$xorg_testset_save_CFLAGS"
15182fi
15183
15184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187	fi
15188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15191if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15192then :
15193  printf %s "(cached) " >&6
15194else $as_nop
15195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196/* end confdefs.h.  */
15197int i;
15198_ACEOF
15199if ac_fn_c_try_compile "$LINENO"
15200then :
15201  xorg_cv_cc_flag_unused_command_line_argument=yes
15202else $as_nop
15203  xorg_cv_cc_flag_unused_command_line_argument=no
15204fi
15205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15206fi
15207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15210	CFLAGS="$xorg_testset_save_CFLAGS"
15211fi
15212
15213found="no"
15214
15215	if test $found = "no" ; then
15216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15218		fi
15219
15220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15222		fi
15223
15224		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15225
15226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15227printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15228		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15229		if eval test \${$cacheid+y}
15230then :
15231  printf %s "(cached) " >&6
15232else $as_nop
15233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235int i;
15236int
15237main (void)
15238{
15239
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244if ac_fn_c_try_link "$LINENO"
15245then :
15246  eval $cacheid=yes
15247else $as_nop
15248  eval $cacheid=no
15249fi
15250rm -f core conftest.err conftest.$ac_objext conftest.beam \
15251    conftest$ac_exeext conftest.$ac_ext
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 -Wmissing-format-attribute"
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 $as_nop
15290  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 $as_nop
15298  xorg_cv_cc_flag_unknown_warning_option=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15301fi
15302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15305	CFLAGS="$xorg_testset_save_CFLAGS"
15306fi
15307
15308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311	fi
15312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15315if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15316then :
15317  printf %s "(cached) " >&6
15318else $as_nop
15319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320/* end confdefs.h.  */
15321int i;
15322_ACEOF
15323if ac_fn_c_try_compile "$LINENO"
15324then :
15325  xorg_cv_cc_flag_unused_command_line_argument=yes
15326else $as_nop
15327  xorg_cv_cc_flag_unused_command_line_argument=no
15328fi
15329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15330fi
15331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15333	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15334	CFLAGS="$xorg_testset_save_CFLAGS"
15335fi
15336
15337found="no"
15338
15339	if test $found = "no" ; then
15340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342		fi
15343
15344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15346		fi
15347
15348		CFLAGS="$CFLAGS -Wredundant-decls"
15349
15350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15351printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15352		cacheid=xorg_cv_cc_flag__Wredundant_decls
15353		if eval test \${$cacheid+y}
15354then :
15355  printf %s "(cached) " >&6
15356else $as_nop
15357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358/* end confdefs.h.  */
15359int i;
15360int
15361main (void)
15362{
15363
15364  ;
15365  return 0;
15366}
15367_ACEOF
15368if ac_fn_c_try_link "$LINENO"
15369then :
15370  eval $cacheid=yes
15371else $as_nop
15372  eval $cacheid=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.beam \
15375    conftest$ac_exeext conftest.$ac_ext
15376fi
15377
15378
15379		CFLAGS="$xorg_testset_save_CFLAGS"
15380
15381		eval supported=\$$cacheid
15382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15383printf "%s\n" "$supported" >&6; }
15384		if test "$supported" = "yes" ; then
15385			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15386			found="yes"
15387		fi
15388	fi
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404xorg_testset_save_CFLAGS="$CFLAGS"
15405
15406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15410if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15411then :
15412  printf %s "(cached) " >&6
15413else $as_nop
15414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416int i;
15417_ACEOF
15418if ac_fn_c_try_compile "$LINENO"
15419then :
15420  xorg_cv_cc_flag_unknown_warning_option=yes
15421else $as_nop
15422  xorg_cv_cc_flag_unknown_warning_option=no
15423fi
15424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15425fi
15426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15429	CFLAGS="$xorg_testset_save_CFLAGS"
15430fi
15431
15432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435	fi
15436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15439if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15440then :
15441  printf %s "(cached) " >&6
15442else $as_nop
15443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444/* end confdefs.h.  */
15445int i;
15446_ACEOF
15447if ac_fn_c_try_compile "$LINENO"
15448then :
15449  xorg_cv_cc_flag_unused_command_line_argument=yes
15450else $as_nop
15451  xorg_cv_cc_flag_unused_command_line_argument=no
15452fi
15453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15454fi
15455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15458	CFLAGS="$xorg_testset_save_CFLAGS"
15459fi
15460
15461found="no"
15462
15463	if test $found = "no" ; then
15464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15466		fi
15467
15468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15470		fi
15471
15472		CFLAGS="$CFLAGS -Wlogical-op"
15473
15474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15475printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15476		cacheid=xorg_cv_cc_flag__Wlogical_op
15477		if eval test \${$cacheid+y}
15478then :
15479  printf %s "(cached) " >&6
15480else $as_nop
15481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482/* end confdefs.h.  */
15483int i;
15484int
15485main (void)
15486{
15487
15488  ;
15489  return 0;
15490}
15491_ACEOF
15492if ac_fn_c_try_link "$LINENO"
15493then :
15494  eval $cacheid=yes
15495else $as_nop
15496  eval $cacheid=no
15497fi
15498rm -f core conftest.err conftest.$ac_objext conftest.beam \
15499    conftest$ac_exeext conftest.$ac_ext
15500fi
15501
15502
15503		CFLAGS="$xorg_testset_save_CFLAGS"
15504
15505		eval supported=\$$cacheid
15506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15507printf "%s\n" "$supported" >&6; }
15508		if test "$supported" = "yes" ; then
15509			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15510			found="yes"
15511		fi
15512	fi
15513
15514
15515
15516# These are currently disabled because they are noisy.  They will be enabled
15517# in the future once the codebase is sufficiently modernized to silence
15518# them.  For now, I don't want them to drown out the other warnings.
15519# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15520# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15521# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15522
15523# Turn some warnings into errors, so we don't accidentally get successful builds
15524# when there are problems that should be fixed.
15525
15526if test "x$SELECTIVE_WERROR" = "xyes" ; then
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 $as_nop
15550  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 $as_nop
15558  xorg_cv_cc_flag_unknown_warning_option=no
15559fi
15560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15561fi
15562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15565	CFLAGS="$xorg_testset_save_CFLAGS"
15566fi
15567
15568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15571	fi
15572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15575if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15576then :
15577  printf %s "(cached) " >&6
15578else $as_nop
15579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580/* end confdefs.h.  */
15581int i;
15582_ACEOF
15583if ac_fn_c_try_compile "$LINENO"
15584then :
15585  xorg_cv_cc_flag_unused_command_line_argument=yes
15586else $as_nop
15587  xorg_cv_cc_flag_unused_command_line_argument=no
15588fi
15589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15590fi
15591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15594	CFLAGS="$xorg_testset_save_CFLAGS"
15595fi
15596
15597found="no"
15598
15599	if test $found = "no" ; then
15600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15602		fi
15603
15604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15606		fi
15607
15608		CFLAGS="$CFLAGS -Werror=implicit"
15609
15610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15611printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15612		cacheid=xorg_cv_cc_flag__Werror_implicit
15613		if eval test \${$cacheid+y}
15614then :
15615  printf %s "(cached) " >&6
15616else $as_nop
15617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618/* end confdefs.h.  */
15619int i;
15620int
15621main (void)
15622{
15623
15624  ;
15625  return 0;
15626}
15627_ACEOF
15628if ac_fn_c_try_link "$LINENO"
15629then :
15630  eval $cacheid=yes
15631else $as_nop
15632  eval $cacheid=no
15633fi
15634rm -f core conftest.err conftest.$ac_objext conftest.beam \
15635    conftest$ac_exeext conftest.$ac_ext
15636fi
15637
15638
15639		CFLAGS="$xorg_testset_save_CFLAGS"
15640
15641		eval supported=\$$cacheid
15642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15643printf "%s\n" "$supported" >&6; }
15644		if test "$supported" = "yes" ; then
15645			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15646			found="yes"
15647		fi
15648	fi
15649
15650	if test $found = "no" ; then
15651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653		fi
15654
15655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15657		fi
15658
15659		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15660
15661		{ 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
15662printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15663		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15664		if eval test \${$cacheid+y}
15665then :
15666  printf %s "(cached) " >&6
15667else $as_nop
15668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h.  */
15670int i;
15671int
15672main (void)
15673{
15674
15675  ;
15676  return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_link "$LINENO"
15680then :
15681  eval $cacheid=yes
15682else $as_nop
15683  eval $cacheid=no
15684fi
15685rm -f core conftest.err conftest.$ac_objext conftest.beam \
15686    conftest$ac_exeext conftest.$ac_ext
15687fi
15688
15689
15690		CFLAGS="$xorg_testset_save_CFLAGS"
15691
15692		eval supported=\$$cacheid
15693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15694printf "%s\n" "$supported" >&6; }
15695		if test "$supported" = "yes" ; then
15696			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15697			found="yes"
15698		fi
15699	fi
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715xorg_testset_save_CFLAGS="$CFLAGS"
15716
15717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15721if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15722then :
15723  printf %s "(cached) " >&6
15724else $as_nop
15725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726/* end confdefs.h.  */
15727int i;
15728_ACEOF
15729if ac_fn_c_try_compile "$LINENO"
15730then :
15731  xorg_cv_cc_flag_unknown_warning_option=yes
15732else $as_nop
15733  xorg_cv_cc_flag_unknown_warning_option=no
15734fi
15735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15736fi
15737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15740	CFLAGS="$xorg_testset_save_CFLAGS"
15741fi
15742
15743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15746	fi
15747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15751then :
15752  printf %s "(cached) " >&6
15753else $as_nop
15754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755/* end confdefs.h.  */
15756int i;
15757_ACEOF
15758if ac_fn_c_try_compile "$LINENO"
15759then :
15760  xorg_cv_cc_flag_unused_command_line_argument=yes
15761else $as_nop
15762  xorg_cv_cc_flag_unused_command_line_argument=no
15763fi
15764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15765fi
15766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15769	CFLAGS="$xorg_testset_save_CFLAGS"
15770fi
15771
15772found="no"
15773
15774	if test $found = "no" ; then
15775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15777		fi
15778
15779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15781		fi
15782
15783		CFLAGS="$CFLAGS -Werror=nonnull"
15784
15785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15786printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15787		cacheid=xorg_cv_cc_flag__Werror_nonnull
15788		if eval test \${$cacheid+y}
15789then :
15790  printf %s "(cached) " >&6
15791else $as_nop
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795int
15796main (void)
15797{
15798
15799  ;
15800  return 0;
15801}
15802_ACEOF
15803if ac_fn_c_try_link "$LINENO"
15804then :
15805  eval $cacheid=yes
15806else $as_nop
15807  eval $cacheid=no
15808fi
15809rm -f core conftest.err conftest.$ac_objext conftest.beam \
15810    conftest$ac_exeext conftest.$ac_ext
15811fi
15812
15813
15814		CFLAGS="$xorg_testset_save_CFLAGS"
15815
15816		eval supported=\$$cacheid
15817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15818printf "%s\n" "$supported" >&6; }
15819		if test "$supported" = "yes" ; then
15820			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15821			found="yes"
15822		fi
15823	fi
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839xorg_testset_save_CFLAGS="$CFLAGS"
15840
15841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15845if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15846then :
15847  printf %s "(cached) " >&6
15848else $as_nop
15849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851int i;
15852_ACEOF
15853if ac_fn_c_try_compile "$LINENO"
15854then :
15855  xorg_cv_cc_flag_unknown_warning_option=yes
15856else $as_nop
15857  xorg_cv_cc_flag_unknown_warning_option=no
15858fi
15859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15860fi
15861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864	CFLAGS="$xorg_testset_save_CFLAGS"
15865fi
15866
15867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870	fi
15871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15875then :
15876  printf %s "(cached) " >&6
15877else $as_nop
15878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h.  */
15880int i;
15881_ACEOF
15882if ac_fn_c_try_compile "$LINENO"
15883then :
15884  xorg_cv_cc_flag_unused_command_line_argument=yes
15885else $as_nop
15886  xorg_cv_cc_flag_unused_command_line_argument=no
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15889fi
15890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15893	CFLAGS="$xorg_testset_save_CFLAGS"
15894fi
15895
15896found="no"
15897
15898	if test $found = "no" ; then
15899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901		fi
15902
15903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15905		fi
15906
15907		CFLAGS="$CFLAGS -Werror=init-self"
15908
15909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15910printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15911		cacheid=xorg_cv_cc_flag__Werror_init_self
15912		if eval test \${$cacheid+y}
15913then :
15914  printf %s "(cached) " >&6
15915else $as_nop
15916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917/* end confdefs.h.  */
15918int i;
15919int
15920main (void)
15921{
15922
15923  ;
15924  return 0;
15925}
15926_ACEOF
15927if ac_fn_c_try_link "$LINENO"
15928then :
15929  eval $cacheid=yes
15930else $as_nop
15931  eval $cacheid=no
15932fi
15933rm -f core conftest.err conftest.$ac_objext conftest.beam \
15934    conftest$ac_exeext conftest.$ac_ext
15935fi
15936
15937
15938		CFLAGS="$xorg_testset_save_CFLAGS"
15939
15940		eval supported=\$$cacheid
15941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15942printf "%s\n" "$supported" >&6; }
15943		if test "$supported" = "yes" ; then
15944			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15945			found="yes"
15946		fi
15947	fi
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963xorg_testset_save_CFLAGS="$CFLAGS"
15964
15965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15970then :
15971  printf %s "(cached) " >&6
15972else $as_nop
15973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974/* end confdefs.h.  */
15975int i;
15976_ACEOF
15977if ac_fn_c_try_compile "$LINENO"
15978then :
15979  xorg_cv_cc_flag_unknown_warning_option=yes
15980else $as_nop
15981  xorg_cv_cc_flag_unknown_warning_option=no
15982fi
15983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15984fi
15985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15988	CFLAGS="$xorg_testset_save_CFLAGS"
15989fi
15990
15991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15994	fi
15995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15999then :
16000  printf %s "(cached) " >&6
16001else $as_nop
16002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h.  */
16004int i;
16005_ACEOF
16006if ac_fn_c_try_compile "$LINENO"
16007then :
16008  xorg_cv_cc_flag_unused_command_line_argument=yes
16009else $as_nop
16010  xorg_cv_cc_flag_unused_command_line_argument=no
16011fi
16012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16013fi
16014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16017	CFLAGS="$xorg_testset_save_CFLAGS"
16018fi
16019
16020found="no"
16021
16022	if test $found = "no" ; then
16023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025		fi
16026
16027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16029		fi
16030
16031		CFLAGS="$CFLAGS -Werror=main"
16032
16033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16034printf %s "checking if $CC supports -Werror=main... " >&6; }
16035		cacheid=xorg_cv_cc_flag__Werror_main
16036		if eval test \${$cacheid+y}
16037then :
16038  printf %s "(cached) " >&6
16039else $as_nop
16040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042int i;
16043int
16044main (void)
16045{
16046
16047  ;
16048  return 0;
16049}
16050_ACEOF
16051if ac_fn_c_try_link "$LINENO"
16052then :
16053  eval $cacheid=yes
16054else $as_nop
16055  eval $cacheid=no
16056fi
16057rm -f core conftest.err conftest.$ac_objext conftest.beam \
16058    conftest$ac_exeext conftest.$ac_ext
16059fi
16060
16061
16062		CFLAGS="$xorg_testset_save_CFLAGS"
16063
16064		eval supported=\$$cacheid
16065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16066printf "%s\n" "$supported" >&6; }
16067		if test "$supported" = "yes" ; then
16068			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16069			found="yes"
16070		fi
16071	fi
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087xorg_testset_save_CFLAGS="$CFLAGS"
16088
16089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16094then :
16095  printf %s "(cached) " >&6
16096else $as_nop
16097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h.  */
16099int i;
16100_ACEOF
16101if ac_fn_c_try_compile "$LINENO"
16102then :
16103  xorg_cv_cc_flag_unknown_warning_option=yes
16104else $as_nop
16105  xorg_cv_cc_flag_unknown_warning_option=no
16106fi
16107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16108fi
16109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16112	CFLAGS="$xorg_testset_save_CFLAGS"
16113fi
16114
16115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118	fi
16119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16123then :
16124  printf %s "(cached) " >&6
16125else $as_nop
16126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128int i;
16129_ACEOF
16130if ac_fn_c_try_compile "$LINENO"
16131then :
16132  xorg_cv_cc_flag_unused_command_line_argument=yes
16133else $as_nop
16134  xorg_cv_cc_flag_unused_command_line_argument=no
16135fi
16136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16137fi
16138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16141	CFLAGS="$xorg_testset_save_CFLAGS"
16142fi
16143
16144found="no"
16145
16146	if test $found = "no" ; then
16147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149		fi
16150
16151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16153		fi
16154
16155		CFLAGS="$CFLAGS -Werror=missing-braces"
16156
16157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16158printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16159		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16160		if eval test \${$cacheid+y}
16161then :
16162  printf %s "(cached) " >&6
16163else $as_nop
16164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165/* end confdefs.h.  */
16166int i;
16167int
16168main (void)
16169{
16170
16171  ;
16172  return 0;
16173}
16174_ACEOF
16175if ac_fn_c_try_link "$LINENO"
16176then :
16177  eval $cacheid=yes
16178else $as_nop
16179  eval $cacheid=no
16180fi
16181rm -f core conftest.err conftest.$ac_objext conftest.beam \
16182    conftest$ac_exeext conftest.$ac_ext
16183fi
16184
16185
16186		CFLAGS="$xorg_testset_save_CFLAGS"
16187
16188		eval supported=\$$cacheid
16189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16190printf "%s\n" "$supported" >&6; }
16191		if test "$supported" = "yes" ; then
16192			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16193			found="yes"
16194		fi
16195	fi
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211xorg_testset_save_CFLAGS="$CFLAGS"
16212
16213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16218then :
16219  printf %s "(cached) " >&6
16220else $as_nop
16221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222/* end confdefs.h.  */
16223int i;
16224_ACEOF
16225if ac_fn_c_try_compile "$LINENO"
16226then :
16227  xorg_cv_cc_flag_unknown_warning_option=yes
16228else $as_nop
16229  xorg_cv_cc_flag_unknown_warning_option=no
16230fi
16231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16232fi
16233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16236	CFLAGS="$xorg_testset_save_CFLAGS"
16237fi
16238
16239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242	fi
16243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16247then :
16248  printf %s "(cached) " >&6
16249else $as_nop
16250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251/* end confdefs.h.  */
16252int i;
16253_ACEOF
16254if ac_fn_c_try_compile "$LINENO"
16255then :
16256  xorg_cv_cc_flag_unused_command_line_argument=yes
16257else $as_nop
16258  xorg_cv_cc_flag_unused_command_line_argument=no
16259fi
16260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16261fi
16262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16265	CFLAGS="$xorg_testset_save_CFLAGS"
16266fi
16267
16268found="no"
16269
16270	if test $found = "no" ; then
16271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16273		fi
16274
16275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16277		fi
16278
16279		CFLAGS="$CFLAGS -Werror=sequence-point"
16280
16281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16282printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16283		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16284		if eval test \${$cacheid+y}
16285then :
16286  printf %s "(cached) " >&6
16287else $as_nop
16288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289/* end confdefs.h.  */
16290int i;
16291int
16292main (void)
16293{
16294
16295  ;
16296  return 0;
16297}
16298_ACEOF
16299if ac_fn_c_try_link "$LINENO"
16300then :
16301  eval $cacheid=yes
16302else $as_nop
16303  eval $cacheid=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext conftest.beam \
16306    conftest$ac_exeext conftest.$ac_ext
16307fi
16308
16309
16310		CFLAGS="$xorg_testset_save_CFLAGS"
16311
16312		eval supported=\$$cacheid
16313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16314printf "%s\n" "$supported" >&6; }
16315		if test "$supported" = "yes" ; then
16316			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16317			found="yes"
16318		fi
16319	fi
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335xorg_testset_save_CFLAGS="$CFLAGS"
16336
16337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16342then :
16343  printf %s "(cached) " >&6
16344else $as_nop
16345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346/* end confdefs.h.  */
16347int i;
16348_ACEOF
16349if ac_fn_c_try_compile "$LINENO"
16350then :
16351  xorg_cv_cc_flag_unknown_warning_option=yes
16352else $as_nop
16353  xorg_cv_cc_flag_unknown_warning_option=no
16354fi
16355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16356fi
16357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16360	CFLAGS="$xorg_testset_save_CFLAGS"
16361fi
16362
16363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366	fi
16367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16371then :
16372  printf %s "(cached) " >&6
16373else $as_nop
16374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375/* end confdefs.h.  */
16376int i;
16377_ACEOF
16378if ac_fn_c_try_compile "$LINENO"
16379then :
16380  xorg_cv_cc_flag_unused_command_line_argument=yes
16381else $as_nop
16382  xorg_cv_cc_flag_unused_command_line_argument=no
16383fi
16384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16385fi
16386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16389	CFLAGS="$xorg_testset_save_CFLAGS"
16390fi
16391
16392found="no"
16393
16394	if test $found = "no" ; then
16395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397		fi
16398
16399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16401		fi
16402
16403		CFLAGS="$CFLAGS -Werror=return-type"
16404
16405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16406printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16407		cacheid=xorg_cv_cc_flag__Werror_return_type
16408		if eval test \${$cacheid+y}
16409then :
16410  printf %s "(cached) " >&6
16411else $as_nop
16412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413/* end confdefs.h.  */
16414int i;
16415int
16416main (void)
16417{
16418
16419  ;
16420  return 0;
16421}
16422_ACEOF
16423if ac_fn_c_try_link "$LINENO"
16424then :
16425  eval $cacheid=yes
16426else $as_nop
16427  eval $cacheid=no
16428fi
16429rm -f core conftest.err conftest.$ac_objext conftest.beam \
16430    conftest$ac_exeext conftest.$ac_ext
16431fi
16432
16433
16434		CFLAGS="$xorg_testset_save_CFLAGS"
16435
16436		eval supported=\$$cacheid
16437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16438printf "%s\n" "$supported" >&6; }
16439		if test "$supported" = "yes" ; then
16440			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16441			found="yes"
16442		fi
16443	fi
16444
16445	if test $found = "no" ; then
16446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16448		fi
16449
16450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16452		fi
16453
16454		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16455
16456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16457printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16458		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16459		if eval test \${$cacheid+y}
16460then :
16461  printf %s "(cached) " >&6
16462else $as_nop
16463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465int i;
16466int
16467main (void)
16468{
16469
16470  ;
16471  return 0;
16472}
16473_ACEOF
16474if ac_fn_c_try_link "$LINENO"
16475then :
16476  eval $cacheid=yes
16477else $as_nop
16478  eval $cacheid=no
16479fi
16480rm -f core conftest.err conftest.$ac_objext conftest.beam \
16481    conftest$ac_exeext conftest.$ac_ext
16482fi
16483
16484
16485		CFLAGS="$xorg_testset_save_CFLAGS"
16486
16487		eval supported=\$$cacheid
16488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16489printf "%s\n" "$supported" >&6; }
16490		if test "$supported" = "yes" ; then
16491			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16492			found="yes"
16493		fi
16494	fi
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510xorg_testset_save_CFLAGS="$CFLAGS"
16511
16512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16513	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16515printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16516if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16517then :
16518  printf %s "(cached) " >&6
16519else $as_nop
16520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522int i;
16523_ACEOF
16524if ac_fn_c_try_compile "$LINENO"
16525then :
16526  xorg_cv_cc_flag_unknown_warning_option=yes
16527else $as_nop
16528  xorg_cv_cc_flag_unknown_warning_option=no
16529fi
16530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16531fi
16532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16534	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16535	CFLAGS="$xorg_testset_save_CFLAGS"
16536fi
16537
16538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16539	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541	fi
16542	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16545if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16546then :
16547  printf %s "(cached) " >&6
16548else $as_nop
16549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551int i;
16552_ACEOF
16553if ac_fn_c_try_compile "$LINENO"
16554then :
16555  xorg_cv_cc_flag_unused_command_line_argument=yes
16556else $as_nop
16557  xorg_cv_cc_flag_unused_command_line_argument=no
16558fi
16559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16560fi
16561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16564	CFLAGS="$xorg_testset_save_CFLAGS"
16565fi
16566
16567found="no"
16568
16569	if test $found = "no" ; then
16570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572		fi
16573
16574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16576		fi
16577
16578		CFLAGS="$CFLAGS -Werror=trigraphs"
16579
16580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16581printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16582		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16583		if eval test \${$cacheid+y}
16584then :
16585  printf %s "(cached) " >&6
16586else $as_nop
16587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h.  */
16589int i;
16590int
16591main (void)
16592{
16593
16594  ;
16595  return 0;
16596}
16597_ACEOF
16598if ac_fn_c_try_link "$LINENO"
16599then :
16600  eval $cacheid=yes
16601else $as_nop
16602  eval $cacheid=no
16603fi
16604rm -f core conftest.err conftest.$ac_objext conftest.beam \
16605    conftest$ac_exeext conftest.$ac_ext
16606fi
16607
16608
16609		CFLAGS="$xorg_testset_save_CFLAGS"
16610
16611		eval supported=\$$cacheid
16612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16613printf "%s\n" "$supported" >&6; }
16614		if test "$supported" = "yes" ; then
16615			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16616			found="yes"
16617		fi
16618	fi
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634xorg_testset_save_CFLAGS="$CFLAGS"
16635
16636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16640if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16641then :
16642  printf %s "(cached) " >&6
16643else $as_nop
16644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646int i;
16647_ACEOF
16648if ac_fn_c_try_compile "$LINENO"
16649then :
16650  xorg_cv_cc_flag_unknown_warning_option=yes
16651else $as_nop
16652  xorg_cv_cc_flag_unknown_warning_option=no
16653fi
16654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16655fi
16656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16659	CFLAGS="$xorg_testset_save_CFLAGS"
16660fi
16661
16662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16665	fi
16666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16669if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16670then :
16671  printf %s "(cached) " >&6
16672else $as_nop
16673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674/* end confdefs.h.  */
16675int i;
16676_ACEOF
16677if ac_fn_c_try_compile "$LINENO"
16678then :
16679  xorg_cv_cc_flag_unused_command_line_argument=yes
16680else $as_nop
16681  xorg_cv_cc_flag_unused_command_line_argument=no
16682fi
16683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16684fi
16685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16688	CFLAGS="$xorg_testset_save_CFLAGS"
16689fi
16690
16691found="no"
16692
16693	if test $found = "no" ; then
16694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696		fi
16697
16698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700		fi
16701
16702		CFLAGS="$CFLAGS -Werror=array-bounds"
16703
16704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16705printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16706		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16707		if eval test \${$cacheid+y}
16708then :
16709  printf %s "(cached) " >&6
16710else $as_nop
16711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712/* end confdefs.h.  */
16713int i;
16714int
16715main (void)
16716{
16717
16718  ;
16719  return 0;
16720}
16721_ACEOF
16722if ac_fn_c_try_link "$LINENO"
16723then :
16724  eval $cacheid=yes
16725else $as_nop
16726  eval $cacheid=no
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.beam \
16729    conftest$ac_exeext conftest.$ac_ext
16730fi
16731
16732
16733		CFLAGS="$xorg_testset_save_CFLAGS"
16734
16735		eval supported=\$$cacheid
16736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16737printf "%s\n" "$supported" >&6; }
16738		if test "$supported" = "yes" ; then
16739			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16740			found="yes"
16741		fi
16742	fi
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758xorg_testset_save_CFLAGS="$CFLAGS"
16759
16760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16764if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16765then :
16766  printf %s "(cached) " >&6
16767else $as_nop
16768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769/* end confdefs.h.  */
16770int i;
16771_ACEOF
16772if ac_fn_c_try_compile "$LINENO"
16773then :
16774  xorg_cv_cc_flag_unknown_warning_option=yes
16775else $as_nop
16776  xorg_cv_cc_flag_unknown_warning_option=no
16777fi
16778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16779fi
16780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16783	CFLAGS="$xorg_testset_save_CFLAGS"
16784fi
16785
16786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789	fi
16790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16793if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16794then :
16795  printf %s "(cached) " >&6
16796else $as_nop
16797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800_ACEOF
16801if ac_fn_c_try_compile "$LINENO"
16802then :
16803  xorg_cv_cc_flag_unused_command_line_argument=yes
16804else $as_nop
16805  xorg_cv_cc_flag_unused_command_line_argument=no
16806fi
16807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16808fi
16809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16812	CFLAGS="$xorg_testset_save_CFLAGS"
16813fi
16814
16815found="no"
16816
16817	if test $found = "no" ; then
16818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820		fi
16821
16822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16824		fi
16825
16826		CFLAGS="$CFLAGS -Werror=write-strings"
16827
16828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16829printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16830		cacheid=xorg_cv_cc_flag__Werror_write_strings
16831		if eval test \${$cacheid+y}
16832then :
16833  printf %s "(cached) " >&6
16834else $as_nop
16835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836/* end confdefs.h.  */
16837int i;
16838int
16839main (void)
16840{
16841
16842  ;
16843  return 0;
16844}
16845_ACEOF
16846if ac_fn_c_try_link "$LINENO"
16847then :
16848  eval $cacheid=yes
16849else $as_nop
16850  eval $cacheid=no
16851fi
16852rm -f core conftest.err conftest.$ac_objext conftest.beam \
16853    conftest$ac_exeext conftest.$ac_ext
16854fi
16855
16856
16857		CFLAGS="$xorg_testset_save_CFLAGS"
16858
16859		eval supported=\$$cacheid
16860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16861printf "%s\n" "$supported" >&6; }
16862		if test "$supported" = "yes" ; then
16863			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16864			found="yes"
16865		fi
16866	fi
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882xorg_testset_save_CFLAGS="$CFLAGS"
16883
16884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16888if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16889then :
16890  printf %s "(cached) " >&6
16891else $as_nop
16892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893/* end confdefs.h.  */
16894int i;
16895_ACEOF
16896if ac_fn_c_try_compile "$LINENO"
16897then :
16898  xorg_cv_cc_flag_unknown_warning_option=yes
16899else $as_nop
16900  xorg_cv_cc_flag_unknown_warning_option=no
16901fi
16902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16903fi
16904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16907	CFLAGS="$xorg_testset_save_CFLAGS"
16908fi
16909
16910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913	fi
16914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16918then :
16919  printf %s "(cached) " >&6
16920else $as_nop
16921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922/* end confdefs.h.  */
16923int i;
16924_ACEOF
16925if ac_fn_c_try_compile "$LINENO"
16926then :
16927  xorg_cv_cc_flag_unused_command_line_argument=yes
16928else $as_nop
16929  xorg_cv_cc_flag_unused_command_line_argument=no
16930fi
16931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16932fi
16933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16936	CFLAGS="$xorg_testset_save_CFLAGS"
16937fi
16938
16939found="no"
16940
16941	if test $found = "no" ; then
16942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16944		fi
16945
16946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16948		fi
16949
16950		CFLAGS="$CFLAGS -Werror=address"
16951
16952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16953printf %s "checking if $CC supports -Werror=address... " >&6; }
16954		cacheid=xorg_cv_cc_flag__Werror_address
16955		if eval test \${$cacheid+y}
16956then :
16957  printf %s "(cached) " >&6
16958else $as_nop
16959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960/* end confdefs.h.  */
16961int i;
16962int
16963main (void)
16964{
16965
16966  ;
16967  return 0;
16968}
16969_ACEOF
16970if ac_fn_c_try_link "$LINENO"
16971then :
16972  eval $cacheid=yes
16973else $as_nop
16974  eval $cacheid=no
16975fi
16976rm -f core conftest.err conftest.$ac_objext conftest.beam \
16977    conftest$ac_exeext conftest.$ac_ext
16978fi
16979
16980
16981		CFLAGS="$xorg_testset_save_CFLAGS"
16982
16983		eval supported=\$$cacheid
16984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16985printf "%s\n" "$supported" >&6; }
16986		if test "$supported" = "yes" ; then
16987			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16988			found="yes"
16989		fi
16990	fi
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006xorg_testset_save_CFLAGS="$CFLAGS"
17007
17008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17012if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17013then :
17014  printf %s "(cached) " >&6
17015else $as_nop
17016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017/* end confdefs.h.  */
17018int i;
17019_ACEOF
17020if ac_fn_c_try_compile "$LINENO"
17021then :
17022  xorg_cv_cc_flag_unknown_warning_option=yes
17023else $as_nop
17024  xorg_cv_cc_flag_unknown_warning_option=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17027fi
17028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17031	CFLAGS="$xorg_testset_save_CFLAGS"
17032fi
17033
17034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17037	fi
17038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17042then :
17043  printf %s "(cached) " >&6
17044else $as_nop
17045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046/* end confdefs.h.  */
17047int i;
17048_ACEOF
17049if ac_fn_c_try_compile "$LINENO"
17050then :
17051  xorg_cv_cc_flag_unused_command_line_argument=yes
17052else $as_nop
17053  xorg_cv_cc_flag_unused_command_line_argument=no
17054fi
17055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17056fi
17057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17060	CFLAGS="$xorg_testset_save_CFLAGS"
17061fi
17062
17063found="no"
17064
17065	if test $found = "no" ; then
17066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068		fi
17069
17070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17072		fi
17073
17074		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17075
17076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17077printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17078		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17079		if eval test \${$cacheid+y}
17080then :
17081  printf %s "(cached) " >&6
17082else $as_nop
17083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h.  */
17085int i;
17086int
17087main (void)
17088{
17089
17090  ;
17091  return 0;
17092}
17093_ACEOF
17094if ac_fn_c_try_link "$LINENO"
17095then :
17096  eval $cacheid=yes
17097else $as_nop
17098  eval $cacheid=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext conftest.beam \
17101    conftest$ac_exeext conftest.$ac_ext
17102fi
17103
17104
17105		CFLAGS="$xorg_testset_save_CFLAGS"
17106
17107		eval supported=\$$cacheid
17108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17109printf "%s\n" "$supported" >&6; }
17110		if test "$supported" = "yes" ; then
17111			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17112			found="yes"
17113		fi
17114	fi
17115
17116	if test $found = "no" ; then
17117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119		fi
17120
17121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123		fi
17124
17125		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17126
17127		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17128printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17129		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17130		if eval test \${$cacheid+y}
17131then :
17132  printf %s "(cached) " >&6
17133else $as_nop
17134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135/* end confdefs.h.  */
17136int i;
17137int
17138main (void)
17139{
17140
17141  ;
17142  return 0;
17143}
17144_ACEOF
17145if ac_fn_c_try_link "$LINENO"
17146then :
17147  eval $cacheid=yes
17148else $as_nop
17149  eval $cacheid=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext conftest.beam \
17152    conftest$ac_exeext conftest.$ac_ext
17153fi
17154
17155
17156		CFLAGS="$xorg_testset_save_CFLAGS"
17157
17158		eval supported=\$$cacheid
17159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17160printf "%s\n" "$supported" >&6; }
17161		if test "$supported" = "yes" ; then
17162			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17163			found="yes"
17164		fi
17165	fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181xorg_testset_save_CFLAGS="$CFLAGS"
17182
17183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17187if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17188then :
17189  printf %s "(cached) " >&6
17190else $as_nop
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193int i;
17194_ACEOF
17195if ac_fn_c_try_compile "$LINENO"
17196then :
17197  xorg_cv_cc_flag_unknown_warning_option=yes
17198else $as_nop
17199  xorg_cv_cc_flag_unknown_warning_option=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17202fi
17203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206	CFLAGS="$xorg_testset_save_CFLAGS"
17207fi
17208
17209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	fi
17213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17217then :
17218  printf %s "(cached) " >&6
17219else $as_nop
17220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221/* end confdefs.h.  */
17222int i;
17223_ACEOF
17224if ac_fn_c_try_compile "$LINENO"
17225then :
17226  xorg_cv_cc_flag_unused_command_line_argument=yes
17227else $as_nop
17228  xorg_cv_cc_flag_unused_command_line_argument=no
17229fi
17230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17231fi
17232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235	CFLAGS="$xorg_testset_save_CFLAGS"
17236fi
17237
17238found="no"
17239
17240	if test $found = "no" ; then
17241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243		fi
17244
17245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247		fi
17248
17249		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17250
17251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17252printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17253		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17254		if eval test \${$cacheid+y}
17255then :
17256  printf %s "(cached) " >&6
17257else $as_nop
17258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259/* end confdefs.h.  */
17260int i;
17261int
17262main (void)
17263{
17264
17265  ;
17266  return 0;
17267}
17268_ACEOF
17269if ac_fn_c_try_link "$LINENO"
17270then :
17271  eval $cacheid=yes
17272else $as_nop
17273  eval $cacheid=no
17274fi
17275rm -f core conftest.err conftest.$ac_objext conftest.beam \
17276    conftest$ac_exeext conftest.$ac_ext
17277fi
17278
17279
17280		CFLAGS="$xorg_testset_save_CFLAGS"
17281
17282		eval supported=\$$cacheid
17283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17284printf "%s\n" "$supported" >&6; }
17285		if test "$supported" = "yes" ; then
17286			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17287			found="yes"
17288		fi
17289	fi
17290
17291 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17292else
17293{ 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
17294printf "%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;}
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308xorg_testset_save_CFLAGS="$CFLAGS"
17309
17310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17312	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17314if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17315then :
17316  printf %s "(cached) " >&6
17317else $as_nop
17318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320int i;
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"
17323then :
17324  xorg_cv_cc_flag_unknown_warning_option=yes
17325else $as_nop
17326  xorg_cv_cc_flag_unknown_warning_option=no
17327fi
17328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17329fi
17330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17333	CFLAGS="$xorg_testset_save_CFLAGS"
17334fi
17335
17336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17339	fi
17340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17343if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17344then :
17345  printf %s "(cached) " >&6
17346else $as_nop
17347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348/* end confdefs.h.  */
17349int i;
17350_ACEOF
17351if ac_fn_c_try_compile "$LINENO"
17352then :
17353  xorg_cv_cc_flag_unused_command_line_argument=yes
17354else $as_nop
17355  xorg_cv_cc_flag_unused_command_line_argument=no
17356fi
17357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17358fi
17359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17362	CFLAGS="$xorg_testset_save_CFLAGS"
17363fi
17364
17365found="no"
17366
17367	if test $found = "no" ; then
17368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370		fi
17371
17372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17374		fi
17375
17376		CFLAGS="$CFLAGS -Wimplicit"
17377
17378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17379printf %s "checking if $CC supports -Wimplicit... " >&6; }
17380		cacheid=xorg_cv_cc_flag__Wimplicit
17381		if eval test \${$cacheid+y}
17382then :
17383  printf %s "(cached) " >&6
17384else $as_nop
17385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386/* end confdefs.h.  */
17387int i;
17388int
17389main (void)
17390{
17391
17392  ;
17393  return 0;
17394}
17395_ACEOF
17396if ac_fn_c_try_link "$LINENO"
17397then :
17398  eval $cacheid=yes
17399else $as_nop
17400  eval $cacheid=no
17401fi
17402rm -f core conftest.err conftest.$ac_objext conftest.beam \
17403    conftest$ac_exeext conftest.$ac_ext
17404fi
17405
17406
17407		CFLAGS="$xorg_testset_save_CFLAGS"
17408
17409		eval supported=\$$cacheid
17410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17411printf "%s\n" "$supported" >&6; }
17412		if test "$supported" = "yes" ; then
17413			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17414			found="yes"
17415		fi
17416	fi
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432xorg_testset_save_CFLAGS="$CFLAGS"
17433
17434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17439then :
17440  printf %s "(cached) " >&6
17441else $as_nop
17442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444int i;
17445_ACEOF
17446if ac_fn_c_try_compile "$LINENO"
17447then :
17448  xorg_cv_cc_flag_unknown_warning_option=yes
17449else $as_nop
17450  xorg_cv_cc_flag_unknown_warning_option=no
17451fi
17452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17453fi
17454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17455printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17457	CFLAGS="$xorg_testset_save_CFLAGS"
17458fi
17459
17460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463	fi
17464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17466printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17467if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17468then :
17469  printf %s "(cached) " >&6
17470else $as_nop
17471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472/* end confdefs.h.  */
17473int i;
17474_ACEOF
17475if ac_fn_c_try_compile "$LINENO"
17476then :
17477  xorg_cv_cc_flag_unused_command_line_argument=yes
17478else $as_nop
17479  xorg_cv_cc_flag_unused_command_line_argument=no
17480fi
17481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17482fi
17483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17484printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17486	CFLAGS="$xorg_testset_save_CFLAGS"
17487fi
17488
17489found="no"
17490
17491	if test $found = "no" ; then
17492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17494		fi
17495
17496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17498		fi
17499
17500		CFLAGS="$CFLAGS -Wnonnull"
17501
17502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17503printf %s "checking if $CC supports -Wnonnull... " >&6; }
17504		cacheid=xorg_cv_cc_flag__Wnonnull
17505		if eval test \${$cacheid+y}
17506then :
17507  printf %s "(cached) " >&6
17508else $as_nop
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511int i;
17512int
17513main (void)
17514{
17515
17516  ;
17517  return 0;
17518}
17519_ACEOF
17520if ac_fn_c_try_link "$LINENO"
17521then :
17522  eval $cacheid=yes
17523else $as_nop
17524  eval $cacheid=no
17525fi
17526rm -f core conftest.err conftest.$ac_objext conftest.beam \
17527    conftest$ac_exeext conftest.$ac_ext
17528fi
17529
17530
17531		CFLAGS="$xorg_testset_save_CFLAGS"
17532
17533		eval supported=\$$cacheid
17534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17535printf "%s\n" "$supported" >&6; }
17536		if test "$supported" = "yes" ; then
17537			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17538			found="yes"
17539		fi
17540	fi
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556xorg_testset_save_CFLAGS="$CFLAGS"
17557
17558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17561printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17562if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17563then :
17564  printf %s "(cached) " >&6
17565else $as_nop
17566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567/* end confdefs.h.  */
17568int i;
17569_ACEOF
17570if ac_fn_c_try_compile "$LINENO"
17571then :
17572  xorg_cv_cc_flag_unknown_warning_option=yes
17573else $as_nop
17574  xorg_cv_cc_flag_unknown_warning_option=no
17575fi
17576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17577fi
17578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17581	CFLAGS="$xorg_testset_save_CFLAGS"
17582fi
17583
17584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17587	fi
17588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17592then :
17593  printf %s "(cached) " >&6
17594else $as_nop
17595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596/* end confdefs.h.  */
17597int i;
17598_ACEOF
17599if ac_fn_c_try_compile "$LINENO"
17600then :
17601  xorg_cv_cc_flag_unused_command_line_argument=yes
17602else $as_nop
17603  xorg_cv_cc_flag_unused_command_line_argument=no
17604fi
17605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17606fi
17607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17610	CFLAGS="$xorg_testset_save_CFLAGS"
17611fi
17612
17613found="no"
17614
17615	if test $found = "no" ; then
17616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17618		fi
17619
17620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17622		fi
17623
17624		CFLAGS="$CFLAGS -Winit-self"
17625
17626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17627printf %s "checking if $CC supports -Winit-self... " >&6; }
17628		cacheid=xorg_cv_cc_flag__Winit_self
17629		if eval test \${$cacheid+y}
17630then :
17631  printf %s "(cached) " >&6
17632else $as_nop
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635int i;
17636int
17637main (void)
17638{
17639
17640  ;
17641  return 0;
17642}
17643_ACEOF
17644if ac_fn_c_try_link "$LINENO"
17645then :
17646  eval $cacheid=yes
17647else $as_nop
17648  eval $cacheid=no
17649fi
17650rm -f core conftest.err conftest.$ac_objext conftest.beam \
17651    conftest$ac_exeext conftest.$ac_ext
17652fi
17653
17654
17655		CFLAGS="$xorg_testset_save_CFLAGS"
17656
17657		eval supported=\$$cacheid
17658		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17659printf "%s\n" "$supported" >&6; }
17660		if test "$supported" = "yes" ; then
17661			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17662			found="yes"
17663		fi
17664	fi
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680xorg_testset_save_CFLAGS="$CFLAGS"
17681
17682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17686if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17687then :
17688  printf %s "(cached) " >&6
17689else $as_nop
17690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691/* end confdefs.h.  */
17692int i;
17693_ACEOF
17694if ac_fn_c_try_compile "$LINENO"
17695then :
17696  xorg_cv_cc_flag_unknown_warning_option=yes
17697else $as_nop
17698  xorg_cv_cc_flag_unknown_warning_option=no
17699fi
17700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17701fi
17702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17703printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17705	CFLAGS="$xorg_testset_save_CFLAGS"
17706fi
17707
17708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711	fi
17712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17714printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17715if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17716then :
17717  printf %s "(cached) " >&6
17718else $as_nop
17719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720/* end confdefs.h.  */
17721int i;
17722_ACEOF
17723if ac_fn_c_try_compile "$LINENO"
17724then :
17725  xorg_cv_cc_flag_unused_command_line_argument=yes
17726else $as_nop
17727  xorg_cv_cc_flag_unused_command_line_argument=no
17728fi
17729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17730fi
17731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17734	CFLAGS="$xorg_testset_save_CFLAGS"
17735fi
17736
17737found="no"
17738
17739	if test $found = "no" ; then
17740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17742		fi
17743
17744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17746		fi
17747
17748		CFLAGS="$CFLAGS -Wmain"
17749
17750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17751printf %s "checking if $CC supports -Wmain... " >&6; }
17752		cacheid=xorg_cv_cc_flag__Wmain
17753		if eval test \${$cacheid+y}
17754then :
17755  printf %s "(cached) " >&6
17756else $as_nop
17757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758/* end confdefs.h.  */
17759int i;
17760int
17761main (void)
17762{
17763
17764  ;
17765  return 0;
17766}
17767_ACEOF
17768if ac_fn_c_try_link "$LINENO"
17769then :
17770  eval $cacheid=yes
17771else $as_nop
17772  eval $cacheid=no
17773fi
17774rm -f core conftest.err conftest.$ac_objext conftest.beam \
17775    conftest$ac_exeext conftest.$ac_ext
17776fi
17777
17778
17779		CFLAGS="$xorg_testset_save_CFLAGS"
17780
17781		eval supported=\$$cacheid
17782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17783printf "%s\n" "$supported" >&6; }
17784		if test "$supported" = "yes" ; then
17785			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17786			found="yes"
17787		fi
17788	fi
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804xorg_testset_save_CFLAGS="$CFLAGS"
17805
17806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17809printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17810if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17811then :
17812  printf %s "(cached) " >&6
17813else $as_nop
17814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h.  */
17816int i;
17817_ACEOF
17818if ac_fn_c_try_compile "$LINENO"
17819then :
17820  xorg_cv_cc_flag_unknown_warning_option=yes
17821else $as_nop
17822  xorg_cv_cc_flag_unknown_warning_option=no
17823fi
17824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17825fi
17826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17827printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17829	CFLAGS="$xorg_testset_save_CFLAGS"
17830fi
17831
17832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835	fi
17836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17838printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17839if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17840then :
17841  printf %s "(cached) " >&6
17842else $as_nop
17843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844/* end confdefs.h.  */
17845int i;
17846_ACEOF
17847if ac_fn_c_try_compile "$LINENO"
17848then :
17849  xorg_cv_cc_flag_unused_command_line_argument=yes
17850else $as_nop
17851  xorg_cv_cc_flag_unused_command_line_argument=no
17852fi
17853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17854fi
17855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17856printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17858	CFLAGS="$xorg_testset_save_CFLAGS"
17859fi
17860
17861found="no"
17862
17863	if test $found = "no" ; then
17864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866		fi
17867
17868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17870		fi
17871
17872		CFLAGS="$CFLAGS -Wmissing-braces"
17873
17874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17875printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17876		cacheid=xorg_cv_cc_flag__Wmissing_braces
17877		if eval test \${$cacheid+y}
17878then :
17879  printf %s "(cached) " >&6
17880else $as_nop
17881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882/* end confdefs.h.  */
17883int i;
17884int
17885main (void)
17886{
17887
17888  ;
17889  return 0;
17890}
17891_ACEOF
17892if ac_fn_c_try_link "$LINENO"
17893then :
17894  eval $cacheid=yes
17895else $as_nop
17896  eval $cacheid=no
17897fi
17898rm -f core conftest.err conftest.$ac_objext conftest.beam \
17899    conftest$ac_exeext conftest.$ac_ext
17900fi
17901
17902
17903		CFLAGS="$xorg_testset_save_CFLAGS"
17904
17905		eval supported=\$$cacheid
17906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17907printf "%s\n" "$supported" >&6; }
17908		if test "$supported" = "yes" ; then
17909			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17910			found="yes"
17911		fi
17912	fi
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928xorg_testset_save_CFLAGS="$CFLAGS"
17929
17930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17934if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17935then :
17936  printf %s "(cached) " >&6
17937else $as_nop
17938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940int i;
17941_ACEOF
17942if ac_fn_c_try_compile "$LINENO"
17943then :
17944  xorg_cv_cc_flag_unknown_warning_option=yes
17945else $as_nop
17946  xorg_cv_cc_flag_unknown_warning_option=no
17947fi
17948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17949fi
17950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17953	CFLAGS="$xorg_testset_save_CFLAGS"
17954fi
17955
17956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17959	fi
17960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17963if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17964then :
17965  printf %s "(cached) " >&6
17966else $as_nop
17967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968/* end confdefs.h.  */
17969int i;
17970_ACEOF
17971if ac_fn_c_try_compile "$LINENO"
17972then :
17973  xorg_cv_cc_flag_unused_command_line_argument=yes
17974else $as_nop
17975  xorg_cv_cc_flag_unused_command_line_argument=no
17976fi
17977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 -Wsequence-point"
17997
17998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17999printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18000		cacheid=xorg_cv_cc_flag__Wsequence_point
18001		if eval test \${$cacheid+y}
18002then :
18003  printf %s "(cached) " >&6
18004else $as_nop
18005  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 $as_nop
18020  eval $cacheid=no
18021fi
18022rm -f core conftest.err conftest.$ac_objext conftest.beam \
18023    conftest$ac_exeext conftest.$ac_ext
18024fi
18025
18026
18027		CFLAGS="$xorg_testset_save_CFLAGS"
18028
18029		eval supported=\$$cacheid
18030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18031printf "%s\n" "$supported" >&6; }
18032		if test "$supported" = "yes" ; then
18033			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18034			found="yes"
18035		fi
18036	fi
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052xorg_testset_save_CFLAGS="$CFLAGS"
18053
18054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18058if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18059then :
18060  printf %s "(cached) " >&6
18061else $as_nop
18062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063/* end confdefs.h.  */
18064int i;
18065_ACEOF
18066if ac_fn_c_try_compile "$LINENO"
18067then :
18068  xorg_cv_cc_flag_unknown_warning_option=yes
18069else $as_nop
18070  xorg_cv_cc_flag_unknown_warning_option=no
18071fi
18072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18073fi
18074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18077	CFLAGS="$xorg_testset_save_CFLAGS"
18078fi
18079
18080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18083	fi
18084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18087if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18088then :
18089  printf %s "(cached) " >&6
18090else $as_nop
18091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092/* end confdefs.h.  */
18093int i;
18094_ACEOF
18095if ac_fn_c_try_compile "$LINENO"
18096then :
18097  xorg_cv_cc_flag_unused_command_line_argument=yes
18098else $as_nop
18099  xorg_cv_cc_flag_unused_command_line_argument=no
18100fi
18101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18102fi
18103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18106	CFLAGS="$xorg_testset_save_CFLAGS"
18107fi
18108
18109found="no"
18110
18111	if test $found = "no" ; then
18112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18114		fi
18115
18116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18118		fi
18119
18120		CFLAGS="$CFLAGS -Wreturn-type"
18121
18122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18123printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18124		cacheid=xorg_cv_cc_flag__Wreturn_type
18125		if eval test \${$cacheid+y}
18126then :
18127  printf %s "(cached) " >&6
18128else $as_nop
18129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130/* end confdefs.h.  */
18131int i;
18132int
18133main (void)
18134{
18135
18136  ;
18137  return 0;
18138}
18139_ACEOF
18140if ac_fn_c_try_link "$LINENO"
18141then :
18142  eval $cacheid=yes
18143else $as_nop
18144  eval $cacheid=no
18145fi
18146rm -f core conftest.err conftest.$ac_objext conftest.beam \
18147    conftest$ac_exeext conftest.$ac_ext
18148fi
18149
18150
18151		CFLAGS="$xorg_testset_save_CFLAGS"
18152
18153		eval supported=\$$cacheid
18154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18155printf "%s\n" "$supported" >&6; }
18156		if test "$supported" = "yes" ; then
18157			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18158			found="yes"
18159		fi
18160	fi
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176xorg_testset_save_CFLAGS="$CFLAGS"
18177
18178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18183then :
18184  printf %s "(cached) " >&6
18185else $as_nop
18186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h.  */
18188int i;
18189_ACEOF
18190if ac_fn_c_try_compile "$LINENO"
18191then :
18192  xorg_cv_cc_flag_unknown_warning_option=yes
18193else $as_nop
18194  xorg_cv_cc_flag_unknown_warning_option=no
18195fi
18196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18197fi
18198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18201	CFLAGS="$xorg_testset_save_CFLAGS"
18202fi
18203
18204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18207	fi
18208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18212then :
18213  printf %s "(cached) " >&6
18214else $as_nop
18215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217int i;
18218_ACEOF
18219if ac_fn_c_try_compile "$LINENO"
18220then :
18221  xorg_cv_cc_flag_unused_command_line_argument=yes
18222else $as_nop
18223  xorg_cv_cc_flag_unused_command_line_argument=no
18224fi
18225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18226fi
18227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18230	CFLAGS="$xorg_testset_save_CFLAGS"
18231fi
18232
18233found="no"
18234
18235	if test $found = "no" ; then
18236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18238		fi
18239
18240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18242		fi
18243
18244		CFLAGS="$CFLAGS -Wtrigraphs"
18245
18246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18247printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18248		cacheid=xorg_cv_cc_flag__Wtrigraphs
18249		if eval test \${$cacheid+y}
18250then :
18251  printf %s "(cached) " >&6
18252else $as_nop
18253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254/* end confdefs.h.  */
18255int i;
18256int
18257main (void)
18258{
18259
18260  ;
18261  return 0;
18262}
18263_ACEOF
18264if ac_fn_c_try_link "$LINENO"
18265then :
18266  eval $cacheid=yes
18267else $as_nop
18268  eval $cacheid=no
18269fi
18270rm -f core conftest.err conftest.$ac_objext conftest.beam \
18271    conftest$ac_exeext conftest.$ac_ext
18272fi
18273
18274
18275		CFLAGS="$xorg_testset_save_CFLAGS"
18276
18277		eval supported=\$$cacheid
18278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18279printf "%s\n" "$supported" >&6; }
18280		if test "$supported" = "yes" ; then
18281			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18282			found="yes"
18283		fi
18284	fi
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300xorg_testset_save_CFLAGS="$CFLAGS"
18301
18302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18307then :
18308  printf %s "(cached) " >&6
18309else $as_nop
18310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312int i;
18313_ACEOF
18314if ac_fn_c_try_compile "$LINENO"
18315then :
18316  xorg_cv_cc_flag_unknown_warning_option=yes
18317else $as_nop
18318  xorg_cv_cc_flag_unknown_warning_option=no
18319fi
18320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18321fi
18322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18325	CFLAGS="$xorg_testset_save_CFLAGS"
18326fi
18327
18328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18331	fi
18332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18336then :
18337  printf %s "(cached) " >&6
18338else $as_nop
18339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340/* end confdefs.h.  */
18341int i;
18342_ACEOF
18343if ac_fn_c_try_compile "$LINENO"
18344then :
18345  xorg_cv_cc_flag_unused_command_line_argument=yes
18346else $as_nop
18347  xorg_cv_cc_flag_unused_command_line_argument=no
18348fi
18349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18350fi
18351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18354	CFLAGS="$xorg_testset_save_CFLAGS"
18355fi
18356
18357found="no"
18358
18359	if test $found = "no" ; then
18360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18362		fi
18363
18364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18366		fi
18367
18368		CFLAGS="$CFLAGS -Warray-bounds"
18369
18370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18371printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18372		cacheid=xorg_cv_cc_flag__Warray_bounds
18373		if eval test \${$cacheid+y}
18374then :
18375  printf %s "(cached) " >&6
18376else $as_nop
18377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378/* end confdefs.h.  */
18379int i;
18380int
18381main (void)
18382{
18383
18384  ;
18385  return 0;
18386}
18387_ACEOF
18388if ac_fn_c_try_link "$LINENO"
18389then :
18390  eval $cacheid=yes
18391else $as_nop
18392  eval $cacheid=no
18393fi
18394rm -f core conftest.err conftest.$ac_objext conftest.beam \
18395    conftest$ac_exeext conftest.$ac_ext
18396fi
18397
18398
18399		CFLAGS="$xorg_testset_save_CFLAGS"
18400
18401		eval supported=\$$cacheid
18402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18403printf "%s\n" "$supported" >&6; }
18404		if test "$supported" = "yes" ; then
18405			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18406			found="yes"
18407		fi
18408	fi
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424xorg_testset_save_CFLAGS="$CFLAGS"
18425
18426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18431then :
18432  printf %s "(cached) " >&6
18433else $as_nop
18434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435/* end confdefs.h.  */
18436int i;
18437_ACEOF
18438if ac_fn_c_try_compile "$LINENO"
18439then :
18440  xorg_cv_cc_flag_unknown_warning_option=yes
18441else $as_nop
18442  xorg_cv_cc_flag_unknown_warning_option=no
18443fi
18444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18445fi
18446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18449	CFLAGS="$xorg_testset_save_CFLAGS"
18450fi
18451
18452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18455	fi
18456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18460then :
18461  printf %s "(cached) " >&6
18462else $as_nop
18463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464/* end confdefs.h.  */
18465int i;
18466_ACEOF
18467if ac_fn_c_try_compile "$LINENO"
18468then :
18469  xorg_cv_cc_flag_unused_command_line_argument=yes
18470else $as_nop
18471  xorg_cv_cc_flag_unused_command_line_argument=no
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18474fi
18475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18478	CFLAGS="$xorg_testset_save_CFLAGS"
18479fi
18480
18481found="no"
18482
18483	if test $found = "no" ; then
18484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18486		fi
18487
18488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18490		fi
18491
18492		CFLAGS="$CFLAGS -Wwrite-strings"
18493
18494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18495printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18496		cacheid=xorg_cv_cc_flag__Wwrite_strings
18497		if eval test \${$cacheid+y}
18498then :
18499  printf %s "(cached) " >&6
18500else $as_nop
18501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502/* end confdefs.h.  */
18503int i;
18504int
18505main (void)
18506{
18507
18508  ;
18509  return 0;
18510}
18511_ACEOF
18512if ac_fn_c_try_link "$LINENO"
18513then :
18514  eval $cacheid=yes
18515else $as_nop
18516  eval $cacheid=no
18517fi
18518rm -f core conftest.err conftest.$ac_objext conftest.beam \
18519    conftest$ac_exeext conftest.$ac_ext
18520fi
18521
18522
18523		CFLAGS="$xorg_testset_save_CFLAGS"
18524
18525		eval supported=\$$cacheid
18526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18527printf "%s\n" "$supported" >&6; }
18528		if test "$supported" = "yes" ; then
18529			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18530			found="yes"
18531		fi
18532	fi
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548xorg_testset_save_CFLAGS="$CFLAGS"
18549
18550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18555then :
18556  printf %s "(cached) " >&6
18557else $as_nop
18558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560int i;
18561_ACEOF
18562if ac_fn_c_try_compile "$LINENO"
18563then :
18564  xorg_cv_cc_flag_unknown_warning_option=yes
18565else $as_nop
18566  xorg_cv_cc_flag_unknown_warning_option=no
18567fi
18568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18569fi
18570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18573	CFLAGS="$xorg_testset_save_CFLAGS"
18574fi
18575
18576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18579	fi
18580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18584then :
18585  printf %s "(cached) " >&6
18586else $as_nop
18587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588/* end confdefs.h.  */
18589int i;
18590_ACEOF
18591if ac_fn_c_try_compile "$LINENO"
18592then :
18593  xorg_cv_cc_flag_unused_command_line_argument=yes
18594else $as_nop
18595  xorg_cv_cc_flag_unused_command_line_argument=no
18596fi
18597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18598fi
18599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18602	CFLAGS="$xorg_testset_save_CFLAGS"
18603fi
18604
18605found="no"
18606
18607	if test $found = "no" ; then
18608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18610		fi
18611
18612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18614		fi
18615
18616		CFLAGS="$CFLAGS -Waddress"
18617
18618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18619printf %s "checking if $CC supports -Waddress... " >&6; }
18620		cacheid=xorg_cv_cc_flag__Waddress
18621		if eval test \${$cacheid+y}
18622then :
18623  printf %s "(cached) " >&6
18624else $as_nop
18625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h.  */
18627int i;
18628int
18629main (void)
18630{
18631
18632  ;
18633  return 0;
18634}
18635_ACEOF
18636if ac_fn_c_try_link "$LINENO"
18637then :
18638  eval $cacheid=yes
18639else $as_nop
18640  eval $cacheid=no
18641fi
18642rm -f core conftest.err conftest.$ac_objext conftest.beam \
18643    conftest$ac_exeext conftest.$ac_ext
18644fi
18645
18646
18647		CFLAGS="$xorg_testset_save_CFLAGS"
18648
18649		eval supported=\$$cacheid
18650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18651printf "%s\n" "$supported" >&6; }
18652		if test "$supported" = "yes" ; then
18653			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18654			found="yes"
18655		fi
18656	fi
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672xorg_testset_save_CFLAGS="$CFLAGS"
18673
18674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18679then :
18680  printf %s "(cached) " >&6
18681else $as_nop
18682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683/* end confdefs.h.  */
18684int i;
18685_ACEOF
18686if ac_fn_c_try_compile "$LINENO"
18687then :
18688  xorg_cv_cc_flag_unknown_warning_option=yes
18689else $as_nop
18690  xorg_cv_cc_flag_unknown_warning_option=no
18691fi
18692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18693fi
18694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18697	CFLAGS="$xorg_testset_save_CFLAGS"
18698fi
18699
18700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18703	fi
18704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18708then :
18709  printf %s "(cached) " >&6
18710else $as_nop
18711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h.  */
18713int i;
18714_ACEOF
18715if ac_fn_c_try_compile "$LINENO"
18716then :
18717  xorg_cv_cc_flag_unused_command_line_argument=yes
18718else $as_nop
18719  xorg_cv_cc_flag_unused_command_line_argument=no
18720fi
18721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18722fi
18723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18726	CFLAGS="$xorg_testset_save_CFLAGS"
18727fi
18728
18729found="no"
18730
18731	if test $found = "no" ; then
18732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18734		fi
18735
18736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18738		fi
18739
18740		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18741
18742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18743printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18744		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18745		if eval test \${$cacheid+y}
18746then :
18747  printf %s "(cached) " >&6
18748else $as_nop
18749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750/* end confdefs.h.  */
18751int i;
18752int
18753main (void)
18754{
18755
18756  ;
18757  return 0;
18758}
18759_ACEOF
18760if ac_fn_c_try_link "$LINENO"
18761then :
18762  eval $cacheid=yes
18763else $as_nop
18764  eval $cacheid=no
18765fi
18766rm -f core conftest.err conftest.$ac_objext conftest.beam \
18767    conftest$ac_exeext conftest.$ac_ext
18768fi
18769
18770
18771		CFLAGS="$xorg_testset_save_CFLAGS"
18772
18773		eval supported=\$$cacheid
18774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18775printf "%s\n" "$supported" >&6; }
18776		if test "$supported" = "yes" ; then
18777			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18778			found="yes"
18779		fi
18780	fi
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796xorg_testset_save_CFLAGS="$CFLAGS"
18797
18798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18802if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18803then :
18804  printf %s "(cached) " >&6
18805else $as_nop
18806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807/* end confdefs.h.  */
18808int i;
18809_ACEOF
18810if ac_fn_c_try_compile "$LINENO"
18811then :
18812  xorg_cv_cc_flag_unknown_warning_option=yes
18813else $as_nop
18814  xorg_cv_cc_flag_unknown_warning_option=no
18815fi
18816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18817fi
18818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18821	CFLAGS="$xorg_testset_save_CFLAGS"
18822fi
18823
18824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18827	fi
18828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18831if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18832then :
18833  printf %s "(cached) " >&6
18834else $as_nop
18835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836/* end confdefs.h.  */
18837int i;
18838_ACEOF
18839if ac_fn_c_try_compile "$LINENO"
18840then :
18841  xorg_cv_cc_flag_unused_command_line_argument=yes
18842else $as_nop
18843  xorg_cv_cc_flag_unused_command_line_argument=no
18844fi
18845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18846fi
18847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18850	CFLAGS="$xorg_testset_save_CFLAGS"
18851fi
18852
18853found="no"
18854
18855	if test $found = "no" ; then
18856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18858		fi
18859
18860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18862		fi
18863
18864		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18865
18866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18867printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18868		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18869		if eval test \${$cacheid+y}
18870then :
18871  printf %s "(cached) " >&6
18872else $as_nop
18873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874/* end confdefs.h.  */
18875int i;
18876int
18877main (void)
18878{
18879
18880  ;
18881  return 0;
18882}
18883_ACEOF
18884if ac_fn_c_try_link "$LINENO"
18885then :
18886  eval $cacheid=yes
18887else $as_nop
18888  eval $cacheid=no
18889fi
18890rm -f core conftest.err conftest.$ac_objext conftest.beam \
18891    conftest$ac_exeext conftest.$ac_ext
18892fi
18893
18894
18895		CFLAGS="$xorg_testset_save_CFLAGS"
18896
18897		eval supported=\$$cacheid
18898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18899printf "%s\n" "$supported" >&6; }
18900		if test "$supported" = "yes" ; then
18901			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18902			found="yes"
18903		fi
18904	fi
18905
18906
18907fi
18908
18909
18910
18911
18912
18913
18914
18915		CWARNFLAGS="$BASE_CFLAGS"
18916		if  test "x$GCC" = xyes ; then
18917		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18918		fi
18919
18920
18921
18922
18923
18924
18925
18926
18927# Check whether --enable-strict-compilation was given.
18928if test ${enable_strict_compilation+y}
18929then :
18930  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18931else $as_nop
18932  STRICT_COMPILE=no
18933fi
18934
18935
18936
18937
18938
18939
18940STRICT_CFLAGS=""
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954xorg_testset_save_CFLAGS="$CFLAGS"
18955
18956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18960if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18961then :
18962  printf %s "(cached) " >&6
18963else $as_nop
18964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965/* end confdefs.h.  */
18966int i;
18967_ACEOF
18968if ac_fn_c_try_compile "$LINENO"
18969then :
18970  xorg_cv_cc_flag_unknown_warning_option=yes
18971else $as_nop
18972  xorg_cv_cc_flag_unknown_warning_option=no
18973fi
18974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18975fi
18976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18979	CFLAGS="$xorg_testset_save_CFLAGS"
18980fi
18981
18982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18985	fi
18986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18990then :
18991  printf %s "(cached) " >&6
18992else $as_nop
18993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994/* end confdefs.h.  */
18995int i;
18996_ACEOF
18997if ac_fn_c_try_compile "$LINENO"
18998then :
18999  xorg_cv_cc_flag_unused_command_line_argument=yes
19000else $as_nop
19001  xorg_cv_cc_flag_unused_command_line_argument=no
19002fi
19003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19004fi
19005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19008	CFLAGS="$xorg_testset_save_CFLAGS"
19009fi
19010
19011found="no"
19012
19013	if test $found = "no" ; then
19014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19016		fi
19017
19018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19020		fi
19021
19022		CFLAGS="$CFLAGS -pedantic"
19023
19024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19025printf %s "checking if $CC supports -pedantic... " >&6; }
19026		cacheid=xorg_cv_cc_flag__pedantic
19027		if eval test \${$cacheid+y}
19028then :
19029  printf %s "(cached) " >&6
19030else $as_nop
19031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19032/* end confdefs.h.  */
19033int i;
19034int
19035main (void)
19036{
19037
19038  ;
19039  return 0;
19040}
19041_ACEOF
19042if ac_fn_c_try_link "$LINENO"
19043then :
19044  eval $cacheid=yes
19045else $as_nop
19046  eval $cacheid=no
19047fi
19048rm -f core conftest.err conftest.$ac_objext conftest.beam \
19049    conftest$ac_exeext conftest.$ac_ext
19050fi
19051
19052
19053		CFLAGS="$xorg_testset_save_CFLAGS"
19054
19055		eval supported=\$$cacheid
19056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19057printf "%s\n" "$supported" >&6; }
19058		if test "$supported" = "yes" ; then
19059			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19060			found="yes"
19061		fi
19062	fi
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078xorg_testset_save_CFLAGS="$CFLAGS"
19079
19080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19085then :
19086  printf %s "(cached) " >&6
19087else $as_nop
19088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089/* end confdefs.h.  */
19090int i;
19091_ACEOF
19092if ac_fn_c_try_compile "$LINENO"
19093then :
19094  xorg_cv_cc_flag_unknown_warning_option=yes
19095else $as_nop
19096  xorg_cv_cc_flag_unknown_warning_option=no
19097fi
19098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19099fi
19100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19103	CFLAGS="$xorg_testset_save_CFLAGS"
19104fi
19105
19106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19109	fi
19110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19114then :
19115  printf %s "(cached) " >&6
19116else $as_nop
19117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118/* end confdefs.h.  */
19119int i;
19120_ACEOF
19121if ac_fn_c_try_compile "$LINENO"
19122then :
19123  xorg_cv_cc_flag_unused_command_line_argument=yes
19124else $as_nop
19125  xorg_cv_cc_flag_unused_command_line_argument=no
19126fi
19127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19128fi
19129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19132	CFLAGS="$xorg_testset_save_CFLAGS"
19133fi
19134
19135found="no"
19136
19137	if test $found = "no" ; then
19138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19140		fi
19141
19142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19144		fi
19145
19146		CFLAGS="$CFLAGS -Werror"
19147
19148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19149printf %s "checking if $CC supports -Werror... " >&6; }
19150		cacheid=xorg_cv_cc_flag__Werror
19151		if eval test \${$cacheid+y}
19152then :
19153  printf %s "(cached) " >&6
19154else $as_nop
19155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156/* end confdefs.h.  */
19157int i;
19158int
19159main (void)
19160{
19161
19162  ;
19163  return 0;
19164}
19165_ACEOF
19166if ac_fn_c_try_link "$LINENO"
19167then :
19168  eval $cacheid=yes
19169else $as_nop
19170  eval $cacheid=no
19171fi
19172rm -f core conftest.err conftest.$ac_objext conftest.beam \
19173    conftest$ac_exeext conftest.$ac_ext
19174fi
19175
19176
19177		CFLAGS="$xorg_testset_save_CFLAGS"
19178
19179		eval supported=\$$cacheid
19180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19181printf "%s\n" "$supported" >&6; }
19182		if test "$supported" = "yes" ; then
19183			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19184			found="yes"
19185		fi
19186	fi
19187
19188	if test $found = "no" ; then
19189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19191		fi
19192
19193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19195		fi
19196
19197		CFLAGS="$CFLAGS -errwarn"
19198
19199		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19200printf %s "checking if $CC supports -errwarn... " >&6; }
19201		cacheid=xorg_cv_cc_flag__errwarn
19202		if eval test \${$cacheid+y}
19203then :
19204  printf %s "(cached) " >&6
19205else $as_nop
19206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207/* end confdefs.h.  */
19208int i;
19209int
19210main (void)
19211{
19212
19213  ;
19214  return 0;
19215}
19216_ACEOF
19217if ac_fn_c_try_link "$LINENO"
19218then :
19219  eval $cacheid=yes
19220else $as_nop
19221  eval $cacheid=no
19222fi
19223rm -f core conftest.err conftest.$ac_objext conftest.beam \
19224    conftest$ac_exeext conftest.$ac_ext
19225fi
19226
19227
19228		CFLAGS="$xorg_testset_save_CFLAGS"
19229
19230		eval supported=\$$cacheid
19231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19232printf "%s\n" "$supported" >&6; }
19233		if test "$supported" = "yes" ; then
19234			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19235			found="yes"
19236		fi
19237	fi
19238
19239
19240
19241# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19242# activate it with -Werror, so we add it here explicitly.
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256xorg_testset_save_CFLAGS="$CFLAGS"
19257
19258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19260	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19261printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19262if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19263then :
19264  printf %s "(cached) " >&6
19265else $as_nop
19266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267/* end confdefs.h.  */
19268int i;
19269_ACEOF
19270if ac_fn_c_try_compile "$LINENO"
19271then :
19272  xorg_cv_cc_flag_unknown_warning_option=yes
19273else $as_nop
19274  xorg_cv_cc_flag_unknown_warning_option=no
19275fi
19276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19277fi
19278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19281	CFLAGS="$xorg_testset_save_CFLAGS"
19282fi
19283
19284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19287	fi
19288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19291if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19292then :
19293  printf %s "(cached) " >&6
19294else $as_nop
19295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296/* end confdefs.h.  */
19297int i;
19298_ACEOF
19299if ac_fn_c_try_compile "$LINENO"
19300then :
19301  xorg_cv_cc_flag_unused_command_line_argument=yes
19302else $as_nop
19303  xorg_cv_cc_flag_unused_command_line_argument=no
19304fi
19305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19306fi
19307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19308printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19310	CFLAGS="$xorg_testset_save_CFLAGS"
19311fi
19312
19313found="no"
19314
19315	if test $found = "no" ; then
19316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19318		fi
19319
19320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19322		fi
19323
19324		CFLAGS="$CFLAGS -Werror=attributes"
19325
19326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19327printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19328		cacheid=xorg_cv_cc_flag__Werror_attributes
19329		if eval test \${$cacheid+y}
19330then :
19331  printf %s "(cached) " >&6
19332else $as_nop
19333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334/* end confdefs.h.  */
19335int i;
19336int
19337main (void)
19338{
19339
19340  ;
19341  return 0;
19342}
19343_ACEOF
19344if ac_fn_c_try_link "$LINENO"
19345then :
19346  eval $cacheid=yes
19347else $as_nop
19348  eval $cacheid=no
19349fi
19350rm -f core conftest.err conftest.$ac_objext conftest.beam \
19351    conftest$ac_exeext conftest.$ac_ext
19352fi
19353
19354
19355		CFLAGS="$xorg_testset_save_CFLAGS"
19356
19357		eval supported=\$$cacheid
19358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19359printf "%s\n" "$supported" >&6; }
19360		if test "$supported" = "yes" ; then
19361			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19362			found="yes"
19363		fi
19364	fi
19365
19366
19367
19368if test "x$STRICT_COMPILE" = "xyes"; then
19369    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19370    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19371fi
19372
19373
19374
19375
19376
19377
19378
19379
19380cat >>confdefs.h <<_ACEOF
19381#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19382_ACEOF
19383
19384	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19385	if test "x$PVM" = "x"; then
19386		PVM="0"
19387	fi
19388
19389printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19390
19391	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19392	if test "x$PVP" = "x"; then
19393		PVP="0"
19394	fi
19395
19396printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19397
19398
19399
19400CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19401mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19402|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19403touch \$(top_srcdir)/ChangeLog; \
19404echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19405
19406
19407
19408
19409macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19410INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19411mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19412|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19413touch \$(top_srcdir)/INSTALL; \
19414echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19415
19416
19417
19418
19419
19420
19421case $host_os in
19422    solaris*)
19423        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19424        # check for a man page file found in later versions that use
19425        # traditional section numbers instead
19426        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19427printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19428if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19429then :
19430  printf %s "(cached) " >&6
19431else $as_nop
19432  test "$cross_compiling" = yes &&
19433  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19434if test -r "/usr/share/man/man7/attributes.7"; then
19435  ac_cv_file__usr_share_man_man7_attributes_7=yes
19436else
19437  ac_cv_file__usr_share_man_man7_attributes_7=no
19438fi
19439fi
19440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19441printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19442if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19443then :
19444  SYSV_MAN_SECTIONS=false
19445else $as_nop
19446  SYSV_MAN_SECTIONS=true
19447fi
19448
19449        ;;
19450    *) SYSV_MAN_SECTIONS=false ;;
19451esac
19452
19453if test x$APP_MAN_SUFFIX = x    ; then
19454    APP_MAN_SUFFIX=1
19455fi
19456if test x$APP_MAN_DIR = x    ; then
19457    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19458fi
19459
19460if test x$LIB_MAN_SUFFIX = x    ; then
19461    LIB_MAN_SUFFIX=3
19462fi
19463if test x$LIB_MAN_DIR = x    ; then
19464    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19465fi
19466
19467if test x$FILE_MAN_SUFFIX = x    ; then
19468    case $SYSV_MAN_SECTIONS in
19469	true)				FILE_MAN_SUFFIX=4  ;;
19470	*)				FILE_MAN_SUFFIX=5  ;;
19471    esac
19472fi
19473if test x$FILE_MAN_DIR = x    ; then
19474    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19475fi
19476
19477if test x$MISC_MAN_SUFFIX = x    ; then
19478    case $SYSV_MAN_SECTIONS in
19479	true)				MISC_MAN_SUFFIX=5  ;;
19480	*)				MISC_MAN_SUFFIX=7  ;;
19481    esac
19482fi
19483if test x$MISC_MAN_DIR = x    ; then
19484    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19485fi
19486
19487if test x$DRIVER_MAN_SUFFIX = x    ; then
19488    case $SYSV_MAN_SECTIONS in
19489	true)				DRIVER_MAN_SUFFIX=7  ;;
19490	*)				DRIVER_MAN_SUFFIX=4  ;;
19491    esac
19492fi
19493if test x$DRIVER_MAN_DIR = x    ; then
19494    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19495fi
19496
19497if test x$ADMIN_MAN_SUFFIX = x    ; then
19498    case $SYSV_MAN_SECTIONS in
19499	true)				ADMIN_MAN_SUFFIX=1m ;;
19500	*)				ADMIN_MAN_SUFFIX=8  ;;
19501    esac
19502fi
19503if test x$ADMIN_MAN_DIR = x    ; then
19504    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19505fi
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521XORG_MAN_PAGE="X Version 11"
19522
19523MAN_SUBSTS="\
19524	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19525	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19526	-e 's|__xservername__|Xorg|g' \
19527	-e 's|__xconfigfile__|xorg.conf|g' \
19528	-e 's|__projectroot__|\$(prefix)|g' \
19529	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19530	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19531	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19532	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19533	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19534	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19535	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19536
19537
19538
19539# Check whether --enable-silent-rules was given.
19540if test ${enable_silent_rules+y}
19541then :
19542  enableval=$enable_silent_rules;
19543fi
19544
19545case $enable_silent_rules in # (((
19546  yes) AM_DEFAULT_VERBOSITY=0;;
19547   no) AM_DEFAULT_VERBOSITY=1;;
19548    *) AM_DEFAULT_VERBOSITY=0;;
19549esac
19550am_make=${MAKE-make}
19551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19552printf %s "checking whether $am_make supports nested variables... " >&6; }
19553if test ${am_cv_make_support_nested_variables+y}
19554then :
19555  printf %s "(cached) " >&6
19556else $as_nop
19557  if printf "%s\n" 'TRUE=$(BAR$(V))
19558BAR0=false
19559BAR1=true
19560V=1
19561am__doit:
19562	@$(TRUE)
19563.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19564  am_cv_make_support_nested_variables=yes
19565else
19566  am_cv_make_support_nested_variables=no
19567fi
19568fi
19569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19570printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19571if test $am_cv_make_support_nested_variables = yes; then
19572    AM_V='$(V)'
19573  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19574else
19575  AM_V=$AM_DEFAULT_VERBOSITY
19576  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19577fi
19578AM_BACKSLASH='\'
19579
19580
19581
19582
19583# Check whether --enable-malloc0returnsnull was given.
19584if test ${enable_malloc0returnsnull+y}
19585then :
19586  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19587else $as_nop
19588  MALLOC_ZERO_RETURNS_NULL=auto
19589fi
19590
19591
19592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19593printf %s "checking whether malloc(0) returns NULL... " >&6; }
19594if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19595if test ${xorg_cv_malloc0_returns_null+y}
19596then :
19597  printf %s "(cached) " >&6
19598else $as_nop
19599  if test "$cross_compiling" = yes
19600then :
19601  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19603as_fn_error $? "cannot run test program while cross compiling
19604See \`config.log' for more details" "$LINENO" 5; }
19605else $as_nop
19606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607/* end confdefs.h.  */
19608
19609#include <stdlib.h>
19610
19611int
19612main (void)
19613{
19614
19615    char *m0, *r0, *c0, *p;
19616    m0 = malloc(0);
19617    p = malloc(10);
19618    r0 = realloc(p,0);
19619    c0 = calloc(0,10);
19620    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19621
19622  ;
19623  return 0;
19624}
19625_ACEOF
19626if ac_fn_c_try_run "$LINENO"
19627then :
19628  xorg_cv_malloc0_returns_null=yes
19629else $as_nop
19630  xorg_cv_malloc0_returns_null=no
19631fi
19632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19633  conftest.$ac_objext conftest.beam conftest.$ac_ext
19634fi
19635
19636fi
19637
19638MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19639fi
19640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19641printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19642
19643if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19644	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19645	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19646	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19647else
19648	MALLOC_ZERO_CFLAGS=""
19649	XMALLOC_ZERO_CFLAGS=""
19650	XTMALLOC_ZERO_CFLAGS=""
19651fi
19652
19653
19654
19655
19656
19657
19658
19659# Check whether --enable-specs was given.
19660if test ${enable_specs+y}
19661then :
19662  enableval=$enable_specs; build_specs=$enableval
19663else $as_nop
19664  build_specs=yes
19665fi
19666
19667
19668 if test x$build_specs = xyes; then
19669  ENABLE_SPECS_TRUE=
19670  ENABLE_SPECS_FALSE='#'
19671else
19672  ENABLE_SPECS_TRUE='#'
19673  ENABLE_SPECS_FALSE=
19674fi
19675
19676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19677printf %s "checking whether to build functional specifications... " >&6; }
19678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19679printf "%s\n" "$build_specs" >&6; }
19680
19681
19682
19683
19684
19685# Check whether --with-xmlto was given.
19686if test ${with_xmlto+y}
19687then :
19688  withval=$with_xmlto; use_xmlto=$withval
19689else $as_nop
19690  use_xmlto=auto
19691fi
19692
19693
19694
19695if test "x$use_xmlto" = x"auto"; then
19696   # Extract the first word of "xmlto", so it can be a program name with args.
19697set dummy xmlto; ac_word=$2
19698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19699printf %s "checking for $ac_word... " >&6; }
19700if test ${ac_cv_path_XMLTO+y}
19701then :
19702  printf %s "(cached) " >&6
19703else $as_nop
19704  case $XMLTO in
19705  [\\/]* | ?:[\\/]*)
19706  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19707  ;;
19708  *)
19709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710for as_dir in $PATH
19711do
19712  IFS=$as_save_IFS
19713  case $as_dir in #(((
19714    '') as_dir=./ ;;
19715    */) ;;
19716    *) as_dir=$as_dir/ ;;
19717  esac
19718    for ac_exec_ext in '' $ac_executable_extensions; do
19719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19720    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19722    break 2
19723  fi
19724done
19725  done
19726IFS=$as_save_IFS
19727
19728  ;;
19729esac
19730fi
19731XMLTO=$ac_cv_path_XMLTO
19732if test -n "$XMLTO"; then
19733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19734printf "%s\n" "$XMLTO" >&6; }
19735else
19736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737printf "%s\n" "no" >&6; }
19738fi
19739
19740
19741   if test "x$XMLTO" = "x"; then
19742        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19743printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19744	have_xmlto=no
19745   else
19746        have_xmlto=yes
19747   fi
19748elif test "x$use_xmlto" = x"yes" ; then
19749   # Extract the first word of "xmlto", so it can be a program name with args.
19750set dummy xmlto; ac_word=$2
19751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752printf %s "checking for $ac_word... " >&6; }
19753if test ${ac_cv_path_XMLTO+y}
19754then :
19755  printf %s "(cached) " >&6
19756else $as_nop
19757  case $XMLTO in
19758  [\\/]* | ?:[\\/]*)
19759  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19760  ;;
19761  *)
19762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763for as_dir in $PATH
19764do
19765  IFS=$as_save_IFS
19766  case $as_dir in #(((
19767    '') as_dir=./ ;;
19768    */) ;;
19769    *) as_dir=$as_dir/ ;;
19770  esac
19771    for ac_exec_ext in '' $ac_executable_extensions; do
19772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19773    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19775    break 2
19776  fi
19777done
19778  done
19779IFS=$as_save_IFS
19780
19781  ;;
19782esac
19783fi
19784XMLTO=$ac_cv_path_XMLTO
19785if test -n "$XMLTO"; then
19786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19787printf "%s\n" "$XMLTO" >&6; }
19788else
19789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790printf "%s\n" "no" >&6; }
19791fi
19792
19793
19794   if test "x$XMLTO" = "x"; then
19795        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19796   fi
19797   have_xmlto=yes
19798elif test "x$use_xmlto" = x"no" ; then
19799   if test "x$XMLTO" != "x"; then
19800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19801printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19802   fi
19803   have_xmlto=no
19804else
19805   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19806fi
19807
19808# Test for a minimum version of xmlto, if provided.
19809if test "$have_xmlto" = yes; then
19810    # scrape the xmlto version
19811    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19812printf %s "checking the xmlto version... " >&6; }
19813    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19814    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19815printf "%s\n" "$xmlto_version" >&6; }
19816    as_arg_v1=$xmlto_version
19817as_arg_v2=0.0.20
19818awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19819case $? in #(
19820  1) :
19821    if test "x$use_xmlto" = xauto; then
19822            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
19823printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
19824            have_xmlto=no
19825        else
19826            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
19827        fi ;; #(
19828  0) :
19829     ;; #(
19830  2) :
19831     ;; #(
19832  *) :
19833     ;;
19834esac
19835fi
19836
19837# Test for the ability of xmlto to generate a text target
19838#
19839# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19840# following test for empty XML docbook files.
19841# For compatibility reasons use the following empty XML docbook file and if
19842# it fails try it again with a non-empty XML file.
19843have_xmlto_text=no
19844cat > conftest.xml << "EOF"
19845EOF
19846if test "$have_xmlto" = yes
19847then :
19848  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19849then :
19850  have_xmlto_text=yes
19851else $as_nop
19852  # Try it again with a non-empty XML file.
19853              cat > conftest.xml << "EOF"
19854<x></x>
19855EOF
19856              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19857then :
19858  have_xmlto_text=yes
19859else $as_nop
19860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19861printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19862fi
19863fi
19864fi
19865rm -f conftest.xml
19866 if test $have_xmlto_text = yes; then
19867  HAVE_XMLTO_TEXT_TRUE=
19868  HAVE_XMLTO_TEXT_FALSE='#'
19869else
19870  HAVE_XMLTO_TEXT_TRUE='#'
19871  HAVE_XMLTO_TEXT_FALSE=
19872fi
19873
19874 if test "$have_xmlto" = yes; then
19875  HAVE_XMLTO_TRUE=
19876  HAVE_XMLTO_FALSE='#'
19877else
19878  HAVE_XMLTO_TRUE='#'
19879  HAVE_XMLTO_FALSE=
19880fi
19881
19882
19883
19884
19885
19886
19887# Check whether --with-fop was given.
19888if test ${with_fop+y}
19889then :
19890  withval=$with_fop; use_fop=$withval
19891else $as_nop
19892  use_fop=auto
19893fi
19894
19895
19896
19897if test "x$use_fop" = x"auto"; then
19898   # Extract the first word of "fop", so it can be a program name with args.
19899set dummy fop; ac_word=$2
19900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19901printf %s "checking for $ac_word... " >&6; }
19902if test ${ac_cv_path_FOP+y}
19903then :
19904  printf %s "(cached) " >&6
19905else $as_nop
19906  case $FOP in
19907  [\\/]* | ?:[\\/]*)
19908  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19909  ;;
19910  *)
19911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19912for as_dir in $PATH
19913do
19914  IFS=$as_save_IFS
19915  case $as_dir in #(((
19916    '') as_dir=./ ;;
19917    */) ;;
19918    *) as_dir=$as_dir/ ;;
19919  esac
19920    for ac_exec_ext in '' $ac_executable_extensions; do
19921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19922    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19924    break 2
19925  fi
19926done
19927  done
19928IFS=$as_save_IFS
19929
19930  ;;
19931esac
19932fi
19933FOP=$ac_cv_path_FOP
19934if test -n "$FOP"; then
19935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19936printf "%s\n" "$FOP" >&6; }
19937else
19938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939printf "%s\n" "no" >&6; }
19940fi
19941
19942
19943   if test "x$FOP" = "x"; then
19944        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19945printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19946	have_fop=no
19947   else
19948        have_fop=yes
19949   fi
19950elif test "x$use_fop" = x"yes" ; then
19951   # Extract the first word of "fop", so it can be a program name with args.
19952set dummy fop; ac_word=$2
19953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19954printf %s "checking for $ac_word... " >&6; }
19955if test ${ac_cv_path_FOP+y}
19956then :
19957  printf %s "(cached) " >&6
19958else $as_nop
19959  case $FOP in
19960  [\\/]* | ?:[\\/]*)
19961  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19962  ;;
19963  *)
19964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19965for as_dir in $PATH
19966do
19967  IFS=$as_save_IFS
19968  case $as_dir in #(((
19969    '') as_dir=./ ;;
19970    */) ;;
19971    *) as_dir=$as_dir/ ;;
19972  esac
19973    for ac_exec_ext in '' $ac_executable_extensions; do
19974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19975    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19977    break 2
19978  fi
19979done
19980  done
19981IFS=$as_save_IFS
19982
19983  ;;
19984esac
19985fi
19986FOP=$ac_cv_path_FOP
19987if test -n "$FOP"; then
19988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19989printf "%s\n" "$FOP" >&6; }
19990else
19991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19992printf "%s\n" "no" >&6; }
19993fi
19994
19995
19996   if test "x$FOP" = "x"; then
19997        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19998   fi
19999   have_fop=yes
20000elif test "x$use_fop" = x"no" ; then
20001   if test "x$FOP" != "x"; then
20002      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20003printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20004   fi
20005   have_fop=no
20006else
20007   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20008fi
20009
20010# Test for a minimum version of fop, if provided.
20011
20012 if test "$have_fop" = yes; then
20013  HAVE_FOP_TRUE=
20014  HAVE_FOP_FALSE='#'
20015else
20016  HAVE_FOP_TRUE='#'
20017  HAVE_FOP_FALSE=
20018fi
20019
20020
20021
20022
20023# Preserves the interface, should it be implemented later
20024
20025
20026
20027# Check whether --with-xsltproc was given.
20028if test ${with_xsltproc+y}
20029then :
20030  withval=$with_xsltproc; use_xsltproc=$withval
20031else $as_nop
20032  use_xsltproc=auto
20033fi
20034
20035
20036
20037if test "x$use_xsltproc" = x"auto"; then
20038   # Extract the first word of "xsltproc", so it can be a program name with args.
20039set dummy xsltproc; ac_word=$2
20040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20041printf %s "checking for $ac_word... " >&6; }
20042if test ${ac_cv_path_XSLTPROC+y}
20043then :
20044  printf %s "(cached) " >&6
20045else $as_nop
20046  case $XSLTPROC in
20047  [\\/]* | ?:[\\/]*)
20048  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20049  ;;
20050  *)
20051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052for as_dir in $PATH
20053do
20054  IFS=$as_save_IFS
20055  case $as_dir in #(((
20056    '') as_dir=./ ;;
20057    */) ;;
20058    *) as_dir=$as_dir/ ;;
20059  esac
20060    for ac_exec_ext in '' $ac_executable_extensions; do
20061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20062    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20064    break 2
20065  fi
20066done
20067  done
20068IFS=$as_save_IFS
20069
20070  ;;
20071esac
20072fi
20073XSLTPROC=$ac_cv_path_XSLTPROC
20074if test -n "$XSLTPROC"; then
20075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20076printf "%s\n" "$XSLTPROC" >&6; }
20077else
20078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20079printf "%s\n" "no" >&6; }
20080fi
20081
20082
20083   if test "x$XSLTPROC" = "x"; then
20084        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20085printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20086	have_xsltproc=no
20087   else
20088        have_xsltproc=yes
20089   fi
20090elif test "x$use_xsltproc" = x"yes" ; then
20091   # Extract the first word of "xsltproc", so it can be a program name with args.
20092set dummy xsltproc; ac_word=$2
20093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20094printf %s "checking for $ac_word... " >&6; }
20095if test ${ac_cv_path_XSLTPROC+y}
20096then :
20097  printf %s "(cached) " >&6
20098else $as_nop
20099  case $XSLTPROC in
20100  [\\/]* | ?:[\\/]*)
20101  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20102  ;;
20103  *)
20104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105for as_dir in $PATH
20106do
20107  IFS=$as_save_IFS
20108  case $as_dir in #(((
20109    '') as_dir=./ ;;
20110    */) ;;
20111    *) as_dir=$as_dir/ ;;
20112  esac
20113    for ac_exec_ext in '' $ac_executable_extensions; do
20114  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20115    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20116    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20117    break 2
20118  fi
20119done
20120  done
20121IFS=$as_save_IFS
20122
20123  ;;
20124esac
20125fi
20126XSLTPROC=$ac_cv_path_XSLTPROC
20127if test -n "$XSLTPROC"; then
20128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20129printf "%s\n" "$XSLTPROC" >&6; }
20130else
20131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132printf "%s\n" "no" >&6; }
20133fi
20134
20135
20136   if test "x$XSLTPROC" = "x"; then
20137        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20138   fi
20139   have_xsltproc=yes
20140elif test "x$use_xsltproc" = x"no" ; then
20141   if test "x$XSLTPROC" != "x"; then
20142      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20143printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20144   fi
20145   have_xsltproc=no
20146else
20147   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20148fi
20149
20150 if test "$have_xsltproc" = yes; then
20151  HAVE_XSLTPROC_TRUE=
20152  HAVE_XSLTPROC_FALSE='#'
20153else
20154  HAVE_XSLTPROC_TRUE='#'
20155  HAVE_XSLTPROC_FALSE=
20156fi
20157
20158
20159
20160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5
20161printf %s "checking for X.Org SGML entities >= 1.01... " >&6; }
20162XORG_SGML_PATH=
20163if test -n "$PKG_CONFIG" && \
20164    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5
20165  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5
20166  ac_status=$?
20167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20168  test $ac_status = 0; }; then
20169  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20170else
20171  :
20172
20173fi
20174
20175# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20176# the path and the name of the doc stylesheet
20177if test "x$XORG_SGML_PATH" != "x" ; then
20178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20179printf "%s\n" "$XORG_SGML_PATH" >&6; }
20180   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20181   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20182else
20183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20184printf "%s\n" "no" >&6; }
20185fi
20186
20187
20188
20189
20190 if test "x$XSL_STYLESHEET" != "x"; then
20191  HAVE_STYLESHEETS_TRUE=
20192  HAVE_STYLESHEETS_FALSE='#'
20193else
20194  HAVE_STYLESHEETS_TRUE='#'
20195  HAVE_STYLESHEETS_FALSE=
20196fi
20197
20198
20199ac_ext=c
20200ac_cpp='$CPP $CPPFLAGS'
20201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20203ac_compiler_gnu=$ac_cv_c_compiler_gnu
20204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20205printf %s "checking how to run the C preprocessor... " >&6; }
20206# On Suns, sometimes $CPP names a directory.
20207if test -n "$CPP" && test -d "$CPP"; then
20208  CPP=
20209fi
20210if test -z "$CPP"; then
20211  if test ${ac_cv_prog_CPP+y}
20212then :
20213  printf %s "(cached) " >&6
20214else $as_nop
20215      # Double quotes because $CC needs to be expanded
20216    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20217    do
20218      ac_preproc_ok=false
20219for ac_c_preproc_warn_flag in '' yes
20220do
20221  # Use a header file that comes with gcc, so configuring glibc
20222  # with a fresh cross-compiler works.
20223  # On the NeXT, cc -E runs the code through the compiler's parser,
20224  # not just through cpp. "Syntax error" is here to catch this case.
20225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20226/* end confdefs.h.  */
20227#include <limits.h>
20228		     Syntax error
20229_ACEOF
20230if ac_fn_c_try_cpp "$LINENO"
20231then :
20232
20233else $as_nop
20234  # Broken: fails on valid input.
20235continue
20236fi
20237rm -f conftest.err conftest.i conftest.$ac_ext
20238
20239  # OK, works on sane cases.  Now check whether nonexistent headers
20240  # can be detected and how.
20241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242/* end confdefs.h.  */
20243#include <ac_nonexistent.h>
20244_ACEOF
20245if ac_fn_c_try_cpp "$LINENO"
20246then :
20247  # Broken: success on invalid input.
20248continue
20249else $as_nop
20250  # Passes both tests.
20251ac_preproc_ok=:
20252break
20253fi
20254rm -f conftest.err conftest.i conftest.$ac_ext
20255
20256done
20257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20258rm -f conftest.i conftest.err conftest.$ac_ext
20259if $ac_preproc_ok
20260then :
20261  break
20262fi
20263
20264    done
20265    ac_cv_prog_CPP=$CPP
20266
20267fi
20268  CPP=$ac_cv_prog_CPP
20269else
20270  ac_cv_prog_CPP=$CPP
20271fi
20272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20273printf "%s\n" "$CPP" >&6; }
20274ac_preproc_ok=false
20275for ac_c_preproc_warn_flag in '' yes
20276do
20277  # Use a header file that comes with gcc, so configuring glibc
20278  # with a fresh cross-compiler works.
20279  # On the NeXT, cc -E runs the code through the compiler's parser,
20280  # not just through cpp. "Syntax error" is here to catch this case.
20281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282/* end confdefs.h.  */
20283#include <limits.h>
20284		     Syntax error
20285_ACEOF
20286if ac_fn_c_try_cpp "$LINENO"
20287then :
20288
20289else $as_nop
20290  # Broken: fails on valid input.
20291continue
20292fi
20293rm -f conftest.err conftest.i conftest.$ac_ext
20294
20295  # OK, works on sane cases.  Now check whether nonexistent headers
20296  # can be detected and how.
20297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298/* end confdefs.h.  */
20299#include <ac_nonexistent.h>
20300_ACEOF
20301if ac_fn_c_try_cpp "$LINENO"
20302then :
20303  # Broken: success on invalid input.
20304continue
20305else $as_nop
20306  # Passes both tests.
20307ac_preproc_ok=:
20308break
20309fi
20310rm -f conftest.err conftest.i conftest.$ac_ext
20311
20312done
20313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20314rm -f conftest.i conftest.err conftest.$ac_ext
20315if $ac_preproc_ok
20316then :
20317
20318else $as_nop
20319  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20320printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20321as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20322See \`config.log' for more details" "$LINENO" 5; }
20323fi
20324
20325ac_ext=c
20326ac_cpp='$CPP $CPPFLAGS'
20327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20329ac_compiler_gnu=$ac_cv_c_compiler_gnu
20330
20331
20332
20333if test -n "$ac_tool_prefix"; then
20334  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20335set dummy ${ac_tool_prefix}cpp; ac_word=$2
20336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20337printf %s "checking for $ac_word... " >&6; }
20338if test ${ac_cv_path_RAWCPP+y}
20339then :
20340  printf %s "(cached) " >&6
20341else $as_nop
20342  case $RAWCPP in
20343  [\\/]* | ?:[\\/]*)
20344  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20345  ;;
20346  *)
20347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20348as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20349for as_dir in $as_dummy
20350do
20351  IFS=$as_save_IFS
20352  case $as_dir in #(((
20353    '') as_dir=./ ;;
20354    */) ;;
20355    *) as_dir=$as_dir/ ;;
20356  esac
20357    for ac_exec_ext in '' $ac_executable_extensions; do
20358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20359    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20361    break 2
20362  fi
20363done
20364  done
20365IFS=$as_save_IFS
20366
20367  ;;
20368esac
20369fi
20370RAWCPP=$ac_cv_path_RAWCPP
20371if test -n "$RAWCPP"; then
20372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20373printf "%s\n" "$RAWCPP" >&6; }
20374else
20375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20376printf "%s\n" "no" >&6; }
20377fi
20378
20379
20380fi
20381if test -z "$ac_cv_path_RAWCPP"; then
20382  ac_pt_RAWCPP=$RAWCPP
20383  # Extract the first word of "cpp", so it can be a program name with args.
20384set dummy cpp; ac_word=$2
20385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20386printf %s "checking for $ac_word... " >&6; }
20387if test ${ac_cv_path_ac_pt_RAWCPP+y}
20388then :
20389  printf %s "(cached) " >&6
20390else $as_nop
20391  case $ac_pt_RAWCPP in
20392  [\\/]* | ?:[\\/]*)
20393  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20394  ;;
20395  *)
20396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20398for as_dir in $as_dummy
20399do
20400  IFS=$as_save_IFS
20401  case $as_dir in #(((
20402    '') as_dir=./ ;;
20403    */) ;;
20404    *) as_dir=$as_dir/ ;;
20405  esac
20406    for ac_exec_ext in '' $ac_executable_extensions; do
20407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20408    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20410    break 2
20411  fi
20412done
20413  done
20414IFS=$as_save_IFS
20415
20416  ;;
20417esac
20418fi
20419ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20420if test -n "$ac_pt_RAWCPP"; then
20421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20422printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20423else
20424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20425printf "%s\n" "no" >&6; }
20426fi
20427
20428  if test "x$ac_pt_RAWCPP" = x; then
20429    RAWCPP="${CPP}"
20430  else
20431    case $cross_compiling:$ac_tool_warned in
20432yes:)
20433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20434printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20435ac_tool_warned=yes ;;
20436esac
20437    RAWCPP=$ac_pt_RAWCPP
20438  fi
20439else
20440  RAWCPP="$ac_cv_path_RAWCPP"
20441fi
20442
20443
20444# Check for flag to avoid builtin definitions - assumes unix is predefined,
20445# which is not the best choice for supporting other OS'es, but covers most
20446# of the ones we need for now.
20447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20448printf %s "checking if $RAWCPP requires -undef... " >&6; }
20449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450/* end confdefs.h.  */
20451Does cpp redefine unix ?
20452_ACEOF
20453if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20455printf "%s\n" "no" >&6; }
20456else
20457	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20458		RAWCPPFLAGS=-undef
20459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20460printf "%s\n" "yes" >&6; }
20461	# under Cygwin unix is still defined even with -undef
20462	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20463		RAWCPPFLAGS="-undef -ansi"
20464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20465printf "%s\n" "yes, with -ansi" >&6; }
20466	else
20467		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20468	fi
20469fi
20470rm -f conftest.$ac_ext
20471
20472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20473printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475/* end confdefs.h.  */
20476Does cpp preserve   "whitespace"?
20477_ACEOF
20478if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480printf "%s\n" "no" >&6; }
20481else
20482	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20483		TRADITIONALCPPFLAGS="-traditional"
20484		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20485		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20486printf "%s\n" "yes" >&6; }
20487	else
20488		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20489	fi
20490fi
20491rm -f conftest.$ac_ext
20492
20493
20494
20495
20496
20497# Preserves the interface, should it be implemented later
20498
20499
20500
20501# Check whether --with-perl was given.
20502if test ${with_perl+y}
20503then :
20504  withval=$with_perl; use_perl=$withval
20505else $as_nop
20506  use_perl=auto
20507fi
20508
20509
20510
20511if test "x$use_perl" = x"auto"; then
20512   # Extract the first word of "perl", so it can be a program name with args.
20513set dummy perl; ac_word=$2
20514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20515printf %s "checking for $ac_word... " >&6; }
20516if test ${ac_cv_path_PERL+y}
20517then :
20518  printf %s "(cached) " >&6
20519else $as_nop
20520  case $PERL in
20521  [\\/]* | ?:[\\/]*)
20522  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20523  ;;
20524  *)
20525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20526for as_dir in $PATH
20527do
20528  IFS=$as_save_IFS
20529  case $as_dir in #(((
20530    '') as_dir=./ ;;
20531    */) ;;
20532    *) as_dir=$as_dir/ ;;
20533  esac
20534    for ac_exec_ext in '' $ac_executable_extensions; do
20535  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20536    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20538    break 2
20539  fi
20540done
20541  done
20542IFS=$as_save_IFS
20543
20544  ;;
20545esac
20546fi
20547PERL=$ac_cv_path_PERL
20548if test -n "$PERL"; then
20549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20550printf "%s\n" "$PERL" >&6; }
20551else
20552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553printf "%s\n" "no" >&6; }
20554fi
20555
20556
20557   if test "x$PERL" = "x"; then
20558        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20559printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20560	have_perl=no
20561   else
20562        have_perl=yes
20563   fi
20564elif test "x$use_perl" = x"yes" ; then
20565   # Extract the first word of "perl", so it can be a program name with args.
20566set dummy perl; ac_word=$2
20567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20568printf %s "checking for $ac_word... " >&6; }
20569if test ${ac_cv_path_PERL+y}
20570then :
20571  printf %s "(cached) " >&6
20572else $as_nop
20573  case $PERL in
20574  [\\/]* | ?:[\\/]*)
20575  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20576  ;;
20577  *)
20578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20579for as_dir in $PATH
20580do
20581  IFS=$as_save_IFS
20582  case $as_dir in #(((
20583    '') as_dir=./ ;;
20584    */) ;;
20585    *) as_dir=$as_dir/ ;;
20586  esac
20587    for ac_exec_ext in '' $ac_executable_extensions; do
20588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20589    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20591    break 2
20592  fi
20593done
20594  done
20595IFS=$as_save_IFS
20596
20597  ;;
20598esac
20599fi
20600PERL=$ac_cv_path_PERL
20601if test -n "$PERL"; then
20602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20603printf "%s\n" "$PERL" >&6; }
20604else
20605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20606printf "%s\n" "no" >&6; }
20607fi
20608
20609
20610   if test "x$PERL" = "x"; then
20611        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20612   fi
20613   have_perl=yes
20614elif test "x$use_perl" = x"no" ; then
20615   if test "x$PERL" != "x"; then
20616      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20617printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20618   fi
20619   have_perl=no
20620else
20621   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20622fi
20623
20624 if test "$have_perl" = yes; then
20625  HAVE_PERL_TRUE=
20626  HAVE_PERL_FALSE='#'
20627else
20628  HAVE_PERL_TRUE='#'
20629  HAVE_PERL_FALSE=
20630fi
20631
20632
20633
20634
20635# Checks for header files.
20636ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
20637if test "x$ac_cv_header_alloca_h" = xyes
20638then :
20639
20640printf "%s\n" "#define INCLUDE_ALLOCA_H 1" >>confdefs.h
20641
20642fi
20643
20644
20645# Checks for library functions.
20646ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20647if test "x$ac_cv_func_reallocarray" = xyes
20648then :
20649  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20650
20651fi
20652
20653
20654# Obtain compiler/linker options for dependencies
20655
20656pkg_failed=no
20657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
20658printf %s "checking for XT... " >&6; }
20659
20660if test -n "$XT_CFLAGS"; then
20661    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
20662 elif test -n "$PKG_CONFIG"; then
20663    if test -n "$PKG_CONFIG" && \
20664    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
20665  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
20666  ac_status=$?
20667  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668  test $ac_status = 0; }; then
20669  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
20670		      test "x$?" != "x0" && pkg_failed=yes
20671else
20672  pkg_failed=yes
20673fi
20674 else
20675    pkg_failed=untried
20676fi
20677if test -n "$XT_LIBS"; then
20678    pkg_cv_XT_LIBS="$XT_LIBS"
20679 elif test -n "$PKG_CONFIG"; then
20680    if test -n "$PKG_CONFIG" && \
20681    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5
20682  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
20683  ac_status=$?
20684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20685  test $ac_status = 0; }; then
20686  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
20687		      test "x$?" != "x0" && pkg_failed=yes
20688else
20689  pkg_failed=yes
20690fi
20691 else
20692    pkg_failed=untried
20693fi
20694
20695
20696
20697if test $pkg_failed = yes; then
20698   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20699printf "%s\n" "no" >&6; }
20700
20701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20702        _pkg_short_errors_supported=yes
20703else
20704        _pkg_short_errors_supported=no
20705fi
20706        if test $_pkg_short_errors_supported = yes; then
20707	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1`
20708        else
20709	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1`
20710        fi
20711	# Put the nasty error message in config.log where it belongs
20712	echo "$XT_PKG_ERRORS" >&5
20713
20714	as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met:
20715
20716$XT_PKG_ERRORS
20717
20718Consider adjusting the PKG_CONFIG_PATH environment variable if you
20719installed software in a non-standard prefix.
20720
20721Alternatively, you may set the environment variables XT_CFLAGS
20722and XT_LIBS to avoid the need to call pkg-config.
20723See the pkg-config man page for more details." "$LINENO" 5
20724elif test $pkg_failed = untried; then
20725     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726printf "%s\n" "no" >&6; }
20727	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20728printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20729as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20730is in your PATH or set the PKG_CONFIG environment variable to the full
20731path to pkg-config.
20732
20733Alternatively, you may set the environment variables XT_CFLAGS
20734and XT_LIBS to avoid the need to call pkg-config.
20735See the pkg-config man page for more details.
20736
20737To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20738See \`config.log' for more details" "$LINENO" 5; }
20739else
20740	XT_CFLAGS=$pkg_cv_XT_CFLAGS
20741	XT_LIBS=$pkg_cv_XT_LIBS
20742        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20743printf "%s\n" "yes" >&6; }
20744
20745fi
20746
20747# Set-up variables to use build machine compiler when cross-compiling
20748if test x"$CC_FOR_BUILD" = x; then
20749	if test x"$cross_compiling" = xyes; then
20750		for ac_prog in gcc cc
20751do
20752  # Extract the first word of "$ac_prog", so it can be a program name with args.
20753set dummy $ac_prog; ac_word=$2
20754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20755printf %s "checking for $ac_word... " >&6; }
20756if test ${ac_cv_prog_CC_FOR_BUILD+y}
20757then :
20758  printf %s "(cached) " >&6
20759else $as_nop
20760  if test -n "$CC_FOR_BUILD"; then
20761  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
20762else
20763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20764for as_dir in $PATH
20765do
20766  IFS=$as_save_IFS
20767  case $as_dir in #(((
20768    '') as_dir=./ ;;
20769    */) ;;
20770    *) as_dir=$as_dir/ ;;
20771  esac
20772    for ac_exec_ext in '' $ac_executable_extensions; do
20773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20774    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
20775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20776    break 2
20777  fi
20778done
20779  done
20780IFS=$as_save_IFS
20781
20782fi
20783fi
20784CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
20785if test -n "$CC_FOR_BUILD"; then
20786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
20787printf "%s\n" "$CC_FOR_BUILD" >&6; }
20788else
20789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790printf "%s\n" "no" >&6; }
20791fi
20792
20793
20794  test -n "$CC_FOR_BUILD" && break
20795done
20796
20797	else
20798		CC_FOR_BUILD="$CC"
20799	fi
20800fi
20801if test x"$cross_compiling" != xyes; then
20802       : ${CFLAGS_FOR_BUILD=${CFLAGS}}
20803       : ${LDFLAGS_FOR_BUILD=${LDFLAGS}}
20804fi
20805
20806DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}"
20807ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
20808if test "x$ac_cv_func_asprintf" = xyes
20809then :
20810  DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE"
20811fi
20812
20813CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}}
20814
20815DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}"
20816
20817
20818
20819# Map function checks to old Imake #defines
20820case $host_os in
20821	# darwin through Snow Leopard has poll() but can't be used to poll character devices.
20822	darwin[789]*|darwin10*) ;;
20823	darwin*)
20824		_ac_xorg_macosx_version_min=""
20825		if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
20826			_ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
20827		else
20828			_ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
20829		fi
20830		case $_ac_xorg_macosx_version_min in
20831			10.[0123456]|10.[0123456].*) ;;
20832			*)
20833				ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20834if test "x$ac_cv_func_poll" = xyes
20835then :
20836
20837printf "%s\n" "#define USE_POLL 1" >>confdefs.h
20838
20839fi
20840
20841			;;
20842		esac
20843		unset _ac_xorg_macosx_version_min
20844		;;
20845	*)
20846		ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20847if test "x$ac_cv_func_poll" = xyes
20848then :
20849
20850printf "%s\n" "#define USE_POLL 1" >>confdefs.h
20851
20852fi
20853
20854	;;
20855esac
20856
20857# Link with winsock if mingw target
20858case $host_os in
20859	*mingw*)
20860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20861printf %s "checking for main in -lws2_32... " >&6; }
20862if test ${ac_cv_lib_ws2_32_main+y}
20863then :
20864  printf %s "(cached) " >&6
20865else $as_nop
20866  ac_check_lib_save_LIBS=$LIBS
20867LIBS="-lws2_32  $LIBS"
20868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869/* end confdefs.h.  */
20870
20871
20872int
20873main (void)
20874{
20875return main ();
20876  ;
20877  return 0;
20878}
20879_ACEOF
20880if ac_fn_c_try_link "$LINENO"
20881then :
20882  ac_cv_lib_ws2_32_main=yes
20883else $as_nop
20884  ac_cv_lib_ws2_32_main=no
20885fi
20886rm -f core conftest.err conftest.$ac_objext conftest.beam \
20887    conftest$ac_exeext conftest.$ac_ext
20888LIBS=$ac_check_lib_save_LIBS
20889fi
20890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20891printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20892if test "x$ac_cv_lib_ws2_32_main" = xyes
20893then :
20894  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20895
20896  LIBS="-lws2_32 $LIBS"
20897
20898fi
20899
20900	;;
20901	*)
20902	;;
20903esac
20904
20905# Options
20906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XKB support is wanted" >&5
20907printf %s "checking if XKB support is wanted... " >&6; }
20908# Check whether --enable-xkb was given.
20909if test ${enable_xkb+y}
20910then :
20911  enableval=$enable_xkb; XKB="$enableval"
20912else $as_nop
20913  XKB="yes"
20914fi
20915
20916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XKB" >&5
20917printf "%s\n" "$XKB" >&6; }
20918if test "x$XKB" = "xyes" ; then
20919
20920printf "%s\n" "#define XKB 1" >>confdefs.h
20921
20922fi
20923
20924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5
20925printf %s "checking if C const-support is wanted... " >&6; }
20926# Check whether --enable-const was given.
20927if test ${enable_const+y}
20928then :
20929  enableval=$enable_const; USE_CONST="$enableval"
20930else $as_nop
20931  USE_CONST="yes"
20932fi
20933
20934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5
20935printf "%s\n" "$USE_CONST" >&6; }
20936if test "x$USE_CONST" = "xyes" ; then
20937
20938printf "%s\n" "#define _CONST_X_STRING 1" >>confdefs.h
20939
20940fi
20941
20942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if geo-tattler traces are wanted" >&5
20943printf %s "checking if geo-tattler traces are wanted... " >&6; }
20944# Check whether --enable-geo-tattler was given.
20945if test ${enable_geo_tattler+y}
20946then :
20947  enableval=$enable_geo_tattler; GEO_TATTLER="$enableval"
20948else $as_nop
20949  GEO_TATTLER="no"
20950fi
20951
20952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GEO_TATTLER" >&5
20953printf "%s\n" "$GEO_TATTLER" >&6; }
20954if test "x$GEO_TATTLER" = "xyes" ; then
20955
20956printf "%s\n" "#define XT_GEO_TATTLER 1" >>confdefs.h
20957
20958fi
20959
20960# --enable-unit-tests
20961
20962
20963
20964
20965
20966# Check for different types of support on different platforms
20967case $host_os in
20968    solaris*)
20969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20970printf %s "checking for umem_alloc in -lumem... " >&6; }
20971if test ${ac_cv_lib_umem_umem_alloc+y}
20972then :
20973  printf %s "(cached) " >&6
20974else $as_nop
20975  ac_check_lib_save_LIBS=$LIBS
20976LIBS="-lumem  $LIBS"
20977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20978/* end confdefs.h.  */
20979
20980/* Override any GCC internal prototype to avoid an error.
20981   Use char because int might match the return type of a GCC
20982   builtin and then its argument prototype would still apply.  */
20983char umem_alloc ();
20984int
20985main (void)
20986{
20987return umem_alloc ();
20988  ;
20989  return 0;
20990}
20991_ACEOF
20992if ac_fn_c_try_link "$LINENO"
20993then :
20994  ac_cv_lib_umem_umem_alloc=yes
20995else $as_nop
20996  ac_cv_lib_umem_umem_alloc=no
20997fi
20998rm -f core conftest.err conftest.$ac_objext conftest.beam \
20999    conftest$ac_exeext conftest.$ac_ext
21000LIBS=$ac_check_lib_save_LIBS
21001fi
21002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
21003printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
21004if test "x$ac_cv_lib_umem_umem_alloc" = xyes
21005then :
21006  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
21007fi
21008
21009        ;;
21010    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
21011        # both directly and inverted, so should not be 0 or 255.
21012        malloc_debug_env='MALLOC_PERTURB_=15'
21013        ;;
21014    darwin*)
21015        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
21016        ;;
21017    *bsd*)
21018        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
21019        ;;
21020esac
21021
21022# User supplied flags override default flags
21023if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
21024    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
21025fi
21026
21027XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
21028
21029
21030
21031
21032
21033
21034
21035# Check whether --enable-unit-tests was given.
21036if test ${enable_unit_tests+y}
21037then :
21038  enableval=$enable_unit_tests; enable_unit_tests=$enableval
21039else $as_nop
21040  enable_unit_tests=auto
21041fi
21042
21043
21044 if test "x$enable_unit_tests" != xno; then
21045  ENABLE_UNIT_TESTS_TRUE=
21046  ENABLE_UNIT_TESTS_FALSE='#'
21047else
21048  ENABLE_UNIT_TESTS_TRUE='#'
21049  ENABLE_UNIT_TESTS_FALSE=
21050fi
21051
21052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
21053printf %s "checking whether to build unit test cases... " >&6; }
21054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
21055printf "%s\n" "$enable_unit_tests" >&6; }
21056
21057
21058
21059
21060
21061# Check whether --with-glib was given.
21062if test ${with_glib+y}
21063then :
21064  withval=$with_glib; with_glib=$withval
21065else $as_nop
21066  with_glib=auto
21067fi
21068
21069
21070
21071have_glib=no
21072# Do not probe GLib if user explicitly disabled unit testing
21073if test "x$enable_unit_tests" != x"no"; then
21074  # Do not probe GLib if user explicitly disabled it
21075  if test "x$with_glib" != x"no"; then
21076
21077pkg_failed=no
21078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
21079printf %s "checking for GLIB... " >&6; }
21080
21081if test -n "$GLIB_CFLAGS"; then
21082    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
21083 elif test -n "$PKG_CONFIG"; then
21084    if test -n "$PKG_CONFIG" && \
21085    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40\""; } >&5
21086  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40") 2>&5
21087  ac_status=$?
21088  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21089  test $ac_status = 0; }; then
21090  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.40" 2>/dev/null`
21091		      test "x$?" != "x0" && pkg_failed=yes
21092else
21093  pkg_failed=yes
21094fi
21095 else
21096    pkg_failed=untried
21097fi
21098if test -n "$GLIB_LIBS"; then
21099    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
21100 elif test -n "$PKG_CONFIG"; then
21101    if test -n "$PKG_CONFIG" && \
21102    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.40\""; } >&5
21103  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.40") 2>&5
21104  ac_status=$?
21105  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106  test $ac_status = 0; }; then
21107  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.40" 2>/dev/null`
21108		      test "x$?" != "x0" && pkg_failed=yes
21109else
21110  pkg_failed=yes
21111fi
21112 else
21113    pkg_failed=untried
21114fi
21115
21116
21117
21118if test $pkg_failed = yes; then
21119   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120printf "%s\n" "no" >&6; }
21121
21122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21123        _pkg_short_errors_supported=yes
21124else
21125        _pkg_short_errors_supported=no
21126fi
21127        if test $_pkg_short_errors_supported = yes; then
21128	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.40" 2>&1`
21129        else
21130	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.40" 2>&1`
21131        fi
21132	# Put the nasty error message in config.log where it belongs
21133	echo "$GLIB_PKG_ERRORS" >&5
21134
21135	have_glib=no
21136elif test $pkg_failed = untried; then
21137     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21138printf "%s\n" "no" >&6; }
21139	have_glib=no
21140else
21141	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
21142	GLIB_LIBS=$pkg_cv_GLIB_LIBS
21143        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21144printf "%s\n" "yes" >&6; }
21145	have_glib=yes
21146fi
21147  fi
21148fi
21149
21150# Not having GLib when unit testing has been explicitly requested is an error
21151if test "x$enable_unit_tests" = x"yes"; then
21152  if test "x$have_glib" = x"no"; then
21153    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
21154  fi
21155fi
21156
21157# Having unit testing disabled when GLib has been explicitly requested is an error
21158if test "x$enable_unit_tests" = x"no"; then
21159  if test "x$with_glib" = x"yes"; then
21160    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
21161  fi
21162fi
21163
21164# Not having GLib when it has been explicitly requested is an error
21165if test "x$with_glib" = x"yes"; then
21166  if test "x$have_glib" = x"no"; then
21167    as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5
21168  fi
21169fi
21170
21171 if test "$have_glib" = yes; then
21172  HAVE_GLIB_TRUE=
21173  HAVE_GLIB_FALSE='#'
21174else
21175  HAVE_GLIB_TRUE='#'
21176  HAVE_GLIB_FALSE=
21177fi
21178
21179
21180
21181
21182
21183
21184
21185# Check for different types of support on different platforms
21186case $host_os in
21187    solaris*)
21188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
21189printf %s "checking for umem_alloc in -lumem... " >&6; }
21190if test ${ac_cv_lib_umem_umem_alloc+y}
21191then :
21192  printf %s "(cached) " >&6
21193else $as_nop
21194  ac_check_lib_save_LIBS=$LIBS
21195LIBS="-lumem  $LIBS"
21196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21197/* end confdefs.h.  */
21198
21199/* Override any GCC internal prototype to avoid an error.
21200   Use char because int might match the return type of a GCC
21201   builtin and then its argument prototype would still apply.  */
21202char umem_alloc ();
21203int
21204main (void)
21205{
21206return umem_alloc ();
21207  ;
21208  return 0;
21209}
21210_ACEOF
21211if ac_fn_c_try_link "$LINENO"
21212then :
21213  ac_cv_lib_umem_umem_alloc=yes
21214else $as_nop
21215  ac_cv_lib_umem_umem_alloc=no
21216fi
21217rm -f core conftest.err conftest.$ac_objext conftest.beam \
21218    conftest$ac_exeext conftest.$ac_ext
21219LIBS=$ac_check_lib_save_LIBS
21220fi
21221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
21222printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
21223if test "x$ac_cv_lib_umem_umem_alloc" = xyes
21224then :
21225  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
21226fi
21227
21228        ;;
21229    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
21230        # both directly and inverted, so should not be 0 or 255.
21231        malloc_debug_env='MALLOC_PERTURB_=15'
21232        ;;
21233    darwin*)
21234        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
21235        ;;
21236    *bsd*)
21237        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
21238        ;;
21239esac
21240
21241# User supplied flags override default flags
21242if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
21243    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
21244fi
21245
21246XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
21247
21248
21249if test "x$enable_unit_tests" != "xno" ; then
21250	ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
21251if test "x$ac_cv_func_malloc_usable_size" = xyes
21252then :
21253  printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
21254
21255fi
21256
21257	ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
21258if test "x$ac_cv_header_malloc_h" = xyes
21259then :
21260  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
21261
21262fi
21263
21264fi
21265
21266# Replaces XFileSearchPathDefault from Imake configs
21267XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
21268
21269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X files search path" >&5
21270printf %s "checking for X files search path... " >&6; }
21271
21272# Check whether --with-xfile-search-path was given.
21273if test ${with_xfile_search_path+y}
21274then :
21275  withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
21276fi
21277
21278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${XFILESEARCHPATHDEFAULT:-none}" >&5
21279printf "%s\n" "${XFILESEARCHPATHDEFAULT:-none}" >&6; }
21280
21281
21282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5
21283printf %s "checking for X app-defaults directory... " >&6; }
21284
21285# Check whether --with-appdefaultdir was given.
21286if test ${with_appdefaultdir+y}
21287then :
21288  withval=$with_appdefaultdir; appdefaultdir="$withval"
21289else $as_nop
21290  appdefaultdir=${datadir}/X11/app-defaults
21291fi
21292
21293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $appdefaultdir" >&5
21294printf "%s\n" "$appdefaultdir" >&6; }
21295
21296  prefix_NONE=
21297  exec_prefix_NONE=
21298  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21299  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21300  eval ax_define_dir="\"$appdefaultdir\""
21301  eval ax_define_dir="\"$ax_define_dir\""
21302  appdefaultdir="$ax_define_dir"
21303
21304
21305printf "%s\n" "#define appdefaultdir \"$ax_define_dir\"" >>confdefs.h
21306
21307  test "$prefix_NONE" && prefix=NONE
21308  test "$exec_prefix_NONE" && exec_prefix=NONE
21309
21310
21311# Replacement for Imake ToolkitStringsABIOptions, controls string tables
21312# generated by util/string.list in StringDefs.h & Shell.h
21313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ABI options" >&5
21314printf %s "checking for ABI options... " >&6; }
21315case $host_os in
21316	solaris*)
21317		# Solaris uses -intelabi even on SPARC
21318		STRINGSABIOPTIONS="-intelabi -solarisabinames"
21319		;;
21320	sco* | svr4*)
21321		case $host_cpu in
21322		    i*86) STRINGSABIOPTIONS="-intelabi" ;;
21323		       *) STRINGSABIOPTIONS="" ;;
21324		esac
21325		;;
21326esac
21327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${STRINGSABIOPTIONS:-none}" >&5
21328printf "%s\n" "${STRINGSABIOPTIONS:-none}" >&6; }
21329
21330
21331ERRORDBDIR=${datadir}/X11
21332
21333
21334ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile specs/libXt.ent test/Makefile xt.pc"
21335
21336cat >confcache <<\_ACEOF
21337# This file is a shell script that caches the results of configure
21338# tests run on this system so they can be shared between configure
21339# scripts and configure runs, see configure's option --config-cache.
21340# It is not useful on other systems.  If it contains results you don't
21341# want to keep, you may remove or edit it.
21342#
21343# config.status only pays attention to the cache file if you give it
21344# the --recheck option to rerun configure.
21345#
21346# `ac_cv_env_foo' variables (set or unset) will be overridden when
21347# loading this file, other *unset* `ac_cv_foo' will be assigned the
21348# following values.
21349
21350_ACEOF
21351
21352# The following way of writing the cache mishandles newlines in values,
21353# but we know of no workaround that is simple, portable, and efficient.
21354# So, we kill variables containing newlines.
21355# Ultrix sh set writes to stderr and can't be redirected directly,
21356# and sets the high bit in the cache file unless we assign to the vars.
21357(
21358  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21359    eval ac_val=\$$ac_var
21360    case $ac_val in #(
21361    *${as_nl}*)
21362      case $ac_var in #(
21363      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21364printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21365      esac
21366      case $ac_var in #(
21367      _ | IFS | as_nl) ;; #(
21368      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21369      *) { eval $ac_var=; unset $ac_var;} ;;
21370      esac ;;
21371    esac
21372  done
21373
21374  (set) 2>&1 |
21375    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21376    *${as_nl}ac_space=\ *)
21377      # `set' does not quote correctly, so add quotes: double-quote
21378      # substitution turns \\\\ into \\, and sed turns \\ into \.
21379      sed -n \
21380	"s/'/'\\\\''/g;
21381	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21382      ;; #(
21383    *)
21384      # `set' quotes correctly as required by POSIX, so do not add quotes.
21385      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21386      ;;
21387    esac |
21388    sort
21389) |
21390  sed '
21391     /^ac_cv_env_/b end
21392     t clear
21393     :clear
21394     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21395     t end
21396     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21397     :end' >>confcache
21398if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21399  if test -w "$cache_file"; then
21400    if test "x$cache_file" != "x/dev/null"; then
21401      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21402printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21403      if test ! -f "$cache_file" || test -h "$cache_file"; then
21404	cat confcache >"$cache_file"
21405      else
21406        case $cache_file in #(
21407        */* | ?:*)
21408	  mv -f confcache "$cache_file"$$ &&
21409	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21410        *)
21411	  mv -f confcache "$cache_file" ;;
21412	esac
21413      fi
21414    fi
21415  else
21416    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21417printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21418  fi
21419fi
21420rm -f confcache
21421
21422test "x$prefix" = xNONE && prefix=$ac_default_prefix
21423# Let make expand exec_prefix.
21424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21425
21426DEFS=-DHAVE_CONFIG_H
21427
21428ac_libobjs=
21429ac_ltlibobjs=
21430U=
21431for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21432  # 1. Remove the extension, and $U if already installed.
21433  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21434  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21435  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21436  #    will be set to the directory where LIBOBJS objects are built.
21437  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21438  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21439done
21440LIBOBJS=$ac_libobjs
21441
21442LTLIBOBJS=$ac_ltlibobjs
21443
21444
21445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21446printf %s "checking that generated files are newer than configure... " >&6; }
21447   if test -n "$am_sleep_pid"; then
21448     # Hide warnings about reused PIDs.
21449     wait $am_sleep_pid 2>/dev/null
21450   fi
21451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21452printf "%s\n" "done" >&6; }
21453if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21454  as_fn_error $? "conditional \"AMDEP\" was never defined.
21455Usually this means the macro was only invoked conditionally." "$LINENO" 5
21456fi
21457if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21458  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21459Usually this means the macro was only invoked conditionally." "$LINENO" 5
21460fi
21461 if test -n "$EXEEXT"; then
21462  am__EXEEXT_TRUE=
21463  am__EXEEXT_FALSE='#'
21464else
21465  am__EXEEXT_TRUE='#'
21466  am__EXEEXT_FALSE=
21467fi
21468
21469if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21470  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21471Usually this means the macro was only invoked conditionally." "$LINENO" 5
21472fi
21473if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21474  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21475Usually this means the macro was only invoked conditionally." "$LINENO" 5
21476fi
21477if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21478  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21479Usually this means the macro was only invoked conditionally." "$LINENO" 5
21480fi
21481if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21482  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21483Usually this means the macro was only invoked conditionally." "$LINENO" 5
21484fi
21485if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21486  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21487Usually this means the macro was only invoked conditionally." "$LINENO" 5
21488fi
21489if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21490  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21491Usually this means the macro was only invoked conditionally." "$LINENO" 5
21492fi
21493if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
21494  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
21495Usually this means the macro was only invoked conditionally." "$LINENO" 5
21496fi
21497if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
21498  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
21499Usually this means the macro was only invoked conditionally." "$LINENO" 5
21500fi
21501if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21502  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21503Usually this means the macro was only invoked conditionally." "$LINENO" 5
21504fi
21505
21506: "${CONFIG_STATUS=./config.status}"
21507ac_write_fail=0
21508ac_clean_files_save=$ac_clean_files
21509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21511printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21512as_write_fail=0
21513cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21514#! $SHELL
21515# Generated by $as_me.
21516# Run this file to recreate the current configuration.
21517# Compiler output produced by configure, useful for debugging
21518# configure, is in config.log if it exists.
21519
21520debug=false
21521ac_cs_recheck=false
21522ac_cs_silent=false
21523
21524SHELL=\${CONFIG_SHELL-$SHELL}
21525export SHELL
21526_ASEOF
21527cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21528## -------------------- ##
21529## M4sh Initialization. ##
21530## -------------------- ##
21531
21532# Be more Bourne compatible
21533DUALCASE=1; export DUALCASE # for MKS sh
21534as_nop=:
21535if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21536then :
21537  emulate sh
21538  NULLCMD=:
21539  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21540  # is contrary to our usage.  Disable this feature.
21541  alias -g '${1+"$@"}'='"$@"'
21542  setopt NO_GLOB_SUBST
21543else $as_nop
21544  case `(set -o) 2>/dev/null` in #(
21545  *posix*) :
21546    set -o posix ;; #(
21547  *) :
21548     ;;
21549esac
21550fi
21551
21552
21553
21554# Reset variables that may have inherited troublesome values from
21555# the environment.
21556
21557# IFS needs to be set, to space, tab, and newline, in precisely that order.
21558# (If _AS_PATH_WALK were called with IFS unset, it would have the
21559# side effect of setting IFS to empty, thus disabling word splitting.)
21560# Quoting is to prevent editors from complaining about space-tab.
21561as_nl='
21562'
21563export as_nl
21564IFS=" ""	$as_nl"
21565
21566PS1='$ '
21567PS2='> '
21568PS4='+ '
21569
21570# Ensure predictable behavior from utilities with locale-dependent output.
21571LC_ALL=C
21572export LC_ALL
21573LANGUAGE=C
21574export LANGUAGE
21575
21576# We cannot yet rely on "unset" to work, but we need these variables
21577# to be unset--not just set to an empty or harmless value--now, to
21578# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21579# also avoids known problems related to "unset" and subshell syntax
21580# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21581for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21582do eval test \${$as_var+y} \
21583  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21584done
21585
21586# Ensure that fds 0, 1, and 2 are open.
21587if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21588if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21589if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21590
21591# The user is always right.
21592if ${PATH_SEPARATOR+false} :; then
21593  PATH_SEPARATOR=:
21594  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21595    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21596      PATH_SEPARATOR=';'
21597  }
21598fi
21599
21600
21601# Find who we are.  Look in the path if we contain no directory separator.
21602as_myself=
21603case $0 in #((
21604  *[\\/]* ) as_myself=$0 ;;
21605  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21606for as_dir in $PATH
21607do
21608  IFS=$as_save_IFS
21609  case $as_dir in #(((
21610    '') as_dir=./ ;;
21611    */) ;;
21612    *) as_dir=$as_dir/ ;;
21613  esac
21614    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21615  done
21616IFS=$as_save_IFS
21617
21618     ;;
21619esac
21620# We did not find ourselves, most probably we were run as `sh COMMAND'
21621# in which case we are not to be found in the path.
21622if test "x$as_myself" = x; then
21623  as_myself=$0
21624fi
21625if test ! -f "$as_myself"; then
21626  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21627  exit 1
21628fi
21629
21630
21631
21632# as_fn_error STATUS ERROR [LINENO LOG_FD]
21633# ----------------------------------------
21634# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21635# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21636# script with STATUS, using 1 if that was 0.
21637as_fn_error ()
21638{
21639  as_status=$1; test $as_status -eq 0 && as_status=1
21640  if test "$4"; then
21641    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21643  fi
21644  printf "%s\n" "$as_me: error: $2" >&2
21645  as_fn_exit $as_status
21646} # as_fn_error
21647
21648
21649
21650# as_fn_set_status STATUS
21651# -----------------------
21652# Set $? to STATUS, without forking.
21653as_fn_set_status ()
21654{
21655  return $1
21656} # as_fn_set_status
21657
21658# as_fn_exit STATUS
21659# -----------------
21660# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21661as_fn_exit ()
21662{
21663  set +e
21664  as_fn_set_status $1
21665  exit $1
21666} # as_fn_exit
21667
21668# as_fn_unset VAR
21669# ---------------
21670# Portably unset VAR.
21671as_fn_unset ()
21672{
21673  { eval $1=; unset $1;}
21674}
21675as_unset=as_fn_unset
21676
21677# as_fn_append VAR VALUE
21678# ----------------------
21679# Append the text in VALUE to the end of the definition contained in VAR. Take
21680# advantage of any shell optimizations that allow amortized linear growth over
21681# repeated appends, instead of the typical quadratic growth present in naive
21682# implementations.
21683if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21684then :
21685  eval 'as_fn_append ()
21686  {
21687    eval $1+=\$2
21688  }'
21689else $as_nop
21690  as_fn_append ()
21691  {
21692    eval $1=\$$1\$2
21693  }
21694fi # as_fn_append
21695
21696# as_fn_arith ARG...
21697# ------------------
21698# Perform arithmetic evaluation on the ARGs, and store the result in the
21699# global $as_val. Take advantage of shells that can avoid forks. The arguments
21700# must be portable across $(()) and expr.
21701if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21702then :
21703  eval 'as_fn_arith ()
21704  {
21705    as_val=$(( $* ))
21706  }'
21707else $as_nop
21708  as_fn_arith ()
21709  {
21710    as_val=`expr "$@" || test $? -eq 1`
21711  }
21712fi # as_fn_arith
21713
21714
21715if expr a : '\(a\)' >/dev/null 2>&1 &&
21716   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21717  as_expr=expr
21718else
21719  as_expr=false
21720fi
21721
21722if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21723  as_basename=basename
21724else
21725  as_basename=false
21726fi
21727
21728if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21729  as_dirname=dirname
21730else
21731  as_dirname=false
21732fi
21733
21734as_me=`$as_basename -- "$0" ||
21735$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21736	 X"$0" : 'X\(//\)$' \| \
21737	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21738printf "%s\n" X/"$0" |
21739    sed '/^.*\/\([^/][^/]*\)\/*$/{
21740	    s//\1/
21741	    q
21742	  }
21743	  /^X\/\(\/\/\)$/{
21744	    s//\1/
21745	    q
21746	  }
21747	  /^X\/\(\/\).*/{
21748	    s//\1/
21749	    q
21750	  }
21751	  s/.*/./; q'`
21752
21753# Avoid depending upon Character Ranges.
21754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21757as_cr_digits='0123456789'
21758as_cr_alnum=$as_cr_Letters$as_cr_digits
21759
21760
21761# Determine whether it's possible to make 'echo' print without a newline.
21762# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21763# for compatibility with existing Makefiles.
21764ECHO_C= ECHO_N= ECHO_T=
21765case `echo -n x` in #(((((
21766-n*)
21767  case `echo 'xy\c'` in
21768  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21769  xy)  ECHO_C='\c';;
21770  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21771       ECHO_T='	';;
21772  esac;;
21773*)
21774  ECHO_N='-n';;
21775esac
21776
21777# For backward compatibility with old third-party macros, we provide
21778# the shell variables $as_echo and $as_echo_n.  New code should use
21779# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21780as_echo='printf %s\n'
21781as_echo_n='printf %s'
21782
21783rm -f conf$$ conf$$.exe conf$$.file
21784if test -d conf$$.dir; then
21785  rm -f conf$$.dir/conf$$.file
21786else
21787  rm -f conf$$.dir
21788  mkdir conf$$.dir 2>/dev/null
21789fi
21790if (echo >conf$$.file) 2>/dev/null; then
21791  if ln -s conf$$.file conf$$ 2>/dev/null; then
21792    as_ln_s='ln -s'
21793    # ... but there are two gotchas:
21794    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21795    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21796    # In both cases, we have to default to `cp -pR'.
21797    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21798      as_ln_s='cp -pR'
21799  elif ln conf$$.file conf$$ 2>/dev/null; then
21800    as_ln_s=ln
21801  else
21802    as_ln_s='cp -pR'
21803  fi
21804else
21805  as_ln_s='cp -pR'
21806fi
21807rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21808rmdir conf$$.dir 2>/dev/null
21809
21810
21811# as_fn_mkdir_p
21812# -------------
21813# Create "$as_dir" as a directory, including parents if necessary.
21814as_fn_mkdir_p ()
21815{
21816
21817  case $as_dir in #(
21818  -*) as_dir=./$as_dir;;
21819  esac
21820  test -d "$as_dir" || eval $as_mkdir_p || {
21821    as_dirs=
21822    while :; do
21823      case $as_dir in #(
21824      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21825      *) as_qdir=$as_dir;;
21826      esac
21827      as_dirs="'$as_qdir' $as_dirs"
21828      as_dir=`$as_dirname -- "$as_dir" ||
21829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21830	 X"$as_dir" : 'X\(//\)[^/]' \| \
21831	 X"$as_dir" : 'X\(//\)$' \| \
21832	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21833printf "%s\n" X"$as_dir" |
21834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21835	    s//\1/
21836	    q
21837	  }
21838	  /^X\(\/\/\)[^/].*/{
21839	    s//\1/
21840	    q
21841	  }
21842	  /^X\(\/\/\)$/{
21843	    s//\1/
21844	    q
21845	  }
21846	  /^X\(\/\).*/{
21847	    s//\1/
21848	    q
21849	  }
21850	  s/.*/./; q'`
21851      test -d "$as_dir" && break
21852    done
21853    test -z "$as_dirs" || eval "mkdir $as_dirs"
21854  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21855
21856
21857} # as_fn_mkdir_p
21858if mkdir -p . 2>/dev/null; then
21859  as_mkdir_p='mkdir -p "$as_dir"'
21860else
21861  test -d ./-p && rmdir ./-p
21862  as_mkdir_p=false
21863fi
21864
21865
21866# as_fn_executable_p FILE
21867# -----------------------
21868# Test if FILE is an executable regular file.
21869as_fn_executable_p ()
21870{
21871  test -f "$1" && test -x "$1"
21872} # as_fn_executable_p
21873as_test_x='test -x'
21874as_executable_p=as_fn_executable_p
21875
21876# Sed expression to map a string onto a valid CPP name.
21877as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21878
21879# Sed expression to map a string onto a valid variable name.
21880as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21881
21882
21883exec 6>&1
21884## ----------------------------------- ##
21885## Main body of $CONFIG_STATUS script. ##
21886## ----------------------------------- ##
21887_ASEOF
21888test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21889
21890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21891# Save the log message, to keep $0 and so on meaningful, and to
21892# report actual input values of CONFIG_FILES etc. instead of their
21893# values after options handling.
21894ac_log="
21895This file was extended by libXt $as_me 1.3.0, which was
21896generated by GNU Autoconf 2.71.  Invocation command line was
21897
21898  CONFIG_FILES    = $CONFIG_FILES
21899  CONFIG_HEADERS  = $CONFIG_HEADERS
21900  CONFIG_LINKS    = $CONFIG_LINKS
21901  CONFIG_COMMANDS = $CONFIG_COMMANDS
21902  $ $0 $@
21903
21904on `(hostname || uname -n) 2>/dev/null | sed 1q`
21905"
21906
21907_ACEOF
21908
21909case $ac_config_files in *"
21910"*) set x $ac_config_files; shift; ac_config_files=$*;;
21911esac
21912
21913case $ac_config_headers in *"
21914"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21915esac
21916
21917
21918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21919# Files that config.status was made for.
21920config_files="$ac_config_files"
21921config_headers="$ac_config_headers"
21922config_commands="$ac_config_commands"
21923
21924_ACEOF
21925
21926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21927ac_cs_usage="\
21928\`$as_me' instantiates files and other configuration actions
21929from templates according to the current configuration.  Unless the files
21930and actions are specified as TAGs, all are instantiated by default.
21931
21932Usage: $0 [OPTION]... [TAG]...
21933
21934  -h, --help       print this help, then exit
21935  -V, --version    print version number and configuration settings, then exit
21936      --config     print configuration, then exit
21937  -q, --quiet, --silent
21938                   do not print progress messages
21939  -d, --debug      don't remove temporary files
21940      --recheck    update $as_me by reconfiguring in the same conditions
21941      --file=FILE[:TEMPLATE]
21942                   instantiate the configuration file FILE
21943      --header=FILE[:TEMPLATE]
21944                   instantiate the configuration header FILE
21945
21946Configuration files:
21947$config_files
21948
21949Configuration headers:
21950$config_headers
21951
21952Configuration commands:
21953$config_commands
21954
21955Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxt/-/issues/>."
21956
21957_ACEOF
21958ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21959ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21961ac_cs_config='$ac_cs_config_escaped'
21962ac_cs_version="\\
21963libXt config.status 1.3.0
21964configured by $0, generated by GNU Autoconf 2.71,
21965  with options \\"\$ac_cs_config\\"
21966
21967Copyright (C) 2021 Free Software Foundation, Inc.
21968This config.status script is free software; the Free Software Foundation
21969gives unlimited permission to copy, distribute and modify it."
21970
21971ac_pwd='$ac_pwd'
21972srcdir='$srcdir'
21973INSTALL='$INSTALL'
21974MKDIR_P='$MKDIR_P'
21975AWK='$AWK'
21976test -n "\$AWK" || AWK=awk
21977_ACEOF
21978
21979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21980# The default lists apply if the user does not specify any file.
21981ac_need_defaults=:
21982while test $# != 0
21983do
21984  case $1 in
21985  --*=?*)
21986    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21987    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21988    ac_shift=:
21989    ;;
21990  --*=)
21991    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21992    ac_optarg=
21993    ac_shift=:
21994    ;;
21995  *)
21996    ac_option=$1
21997    ac_optarg=$2
21998    ac_shift=shift
21999    ;;
22000  esac
22001
22002  case $ac_option in
22003  # Handling of the options.
22004  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22005    ac_cs_recheck=: ;;
22006  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22007    printf "%s\n" "$ac_cs_version"; exit ;;
22008  --config | --confi | --conf | --con | --co | --c )
22009    printf "%s\n" "$ac_cs_config"; exit ;;
22010  --debug | --debu | --deb | --de | --d | -d )
22011    debug=: ;;
22012  --file | --fil | --fi | --f )
22013    $ac_shift
22014    case $ac_optarg in
22015    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22016    '') as_fn_error $? "missing file argument" ;;
22017    esac
22018    as_fn_append CONFIG_FILES " '$ac_optarg'"
22019    ac_need_defaults=false;;
22020  --header | --heade | --head | --hea )
22021    $ac_shift
22022    case $ac_optarg in
22023    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22024    esac
22025    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22026    ac_need_defaults=false;;
22027  --he | --h)
22028    # Conflict between --help and --header
22029    as_fn_error $? "ambiguous option: \`$1'
22030Try \`$0 --help' for more information.";;
22031  --help | --hel | -h )
22032    printf "%s\n" "$ac_cs_usage"; exit ;;
22033  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22034  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22035    ac_cs_silent=: ;;
22036
22037  # This is an error.
22038  -*) as_fn_error $? "unrecognized option: \`$1'
22039Try \`$0 --help' for more information." ;;
22040
22041  *) as_fn_append ac_config_targets " $1"
22042     ac_need_defaults=false ;;
22043
22044  esac
22045  shift
22046done
22047
22048ac_configure_extra_args=
22049
22050if $ac_cs_silent; then
22051  exec 6>/dev/null
22052  ac_configure_extra_args="$ac_configure_extra_args --silent"
22053fi
22054
22055_ACEOF
22056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22057if \$ac_cs_recheck; then
22058  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22059  shift
22060  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22061  CONFIG_SHELL='$SHELL'
22062  export CONFIG_SHELL
22063  exec "\$@"
22064fi
22065
22066_ACEOF
22067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22068exec 5>>config.log
22069{
22070  echo
22071  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22072## Running $as_me. ##
22073_ASBOX
22074  printf "%s\n" "$ac_log"
22075} >&5
22076
22077_ACEOF
22078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22079#
22080# INIT-COMMANDS
22081#
22082AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22083
22084
22085# The HP-UX ksh and POSIX shell print the target directory to stdout
22086# if CDPATH is set.
22087(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22088
22089sed_quote_subst='$sed_quote_subst'
22090double_quote_subst='$double_quote_subst'
22091delay_variable_subst='$delay_variable_subst'
22092macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22093macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22094enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22095enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22096pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22097enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22098shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22099SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22100ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22101PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22102host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22103host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22104host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22105build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22106build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22107build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22108SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22109Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22110GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22111EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22112FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22113LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22114NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22115LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22116max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22117ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22118exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22119lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22120lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22121lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22122lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22123lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22124reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22125reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22126FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22127OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22128deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22129file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22130file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22131want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22132DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22133sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22134AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22135lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22136AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22137archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22138STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22139RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22140old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22141old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22142old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22143lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22144CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22145CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22146compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22147GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22148lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22149lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22150lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22151lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22152lt_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"`'
22153lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22154nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22155lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22156lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22157objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22158MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22159lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22160lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22161lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22162lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22163lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22164need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22165MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22166DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22167NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22168LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22169OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22170OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22171libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22172shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22173extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22174archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22175enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22176export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22177whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22178compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22179old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22180old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22181archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22182archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22183module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22184module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22185with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22186allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22187no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22188hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22189hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22190hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22191hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22192hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22193hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22194hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22195inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22196link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22197always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22198export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22199exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22200include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22201prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22202postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22203file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22204variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22205need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22206need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22207version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22208runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22209shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22210shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22211libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22212library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22213soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22214install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22215postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22216postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22217finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22218finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22219hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22220sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22221configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22222configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22223hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22224enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22225enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22226enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22227old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22228striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22229
22230LTCC='$LTCC'
22231LTCFLAGS='$LTCFLAGS'
22232compiler='$compiler_DEFAULT'
22233
22234# A function that is used when there is no print builtin or printf.
22235func_fallback_echo ()
22236{
22237  eval 'cat <<_LTECHO_EOF
22238\$1
22239_LTECHO_EOF'
22240}
22241
22242# Quote evaled strings.
22243for var in SHELL \
22244ECHO \
22245PATH_SEPARATOR \
22246SED \
22247GREP \
22248EGREP \
22249FGREP \
22250LD \
22251NM \
22252LN_S \
22253lt_SP2NL \
22254lt_NL2SP \
22255reload_flag \
22256FILECMD \
22257OBJDUMP \
22258deplibs_check_method \
22259file_magic_cmd \
22260file_magic_glob \
22261want_nocaseglob \
22262DLLTOOL \
22263sharedlib_from_linklib_cmd \
22264AR \
22265archiver_list_spec \
22266STRIP \
22267RANLIB \
22268CC \
22269CFLAGS \
22270compiler \
22271lt_cv_sys_global_symbol_pipe \
22272lt_cv_sys_global_symbol_to_cdecl \
22273lt_cv_sys_global_symbol_to_import \
22274lt_cv_sys_global_symbol_to_c_name_address \
22275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22276lt_cv_nm_interface \
22277nm_file_list_spec \
22278lt_cv_truncate_bin \
22279lt_prog_compiler_no_builtin_flag \
22280lt_prog_compiler_pic \
22281lt_prog_compiler_wl \
22282lt_prog_compiler_static \
22283lt_cv_prog_compiler_c_o \
22284need_locks \
22285MANIFEST_TOOL \
22286DSYMUTIL \
22287NMEDIT \
22288LIPO \
22289OTOOL \
22290OTOOL64 \
22291shrext_cmds \
22292export_dynamic_flag_spec \
22293whole_archive_flag_spec \
22294compiler_needs_object \
22295with_gnu_ld \
22296allow_undefined_flag \
22297no_undefined_flag \
22298hardcode_libdir_flag_spec \
22299hardcode_libdir_separator \
22300exclude_expsyms \
22301include_expsyms \
22302file_list_spec \
22303variables_saved_for_relink \
22304libname_spec \
22305library_names_spec \
22306soname_spec \
22307install_override_mode \
22308finish_eval \
22309old_striplib \
22310striplib; do
22311    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22312    *[\\\\\\\`\\"\\\$]*)
22313      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22314      ;;
22315    *)
22316      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22317      ;;
22318    esac
22319done
22320
22321# Double-quote double-evaled strings.
22322for var in reload_cmds \
22323old_postinstall_cmds \
22324old_postuninstall_cmds \
22325old_archive_cmds \
22326extract_expsyms_cmds \
22327old_archive_from_new_cmds \
22328old_archive_from_expsyms_cmds \
22329archive_cmds \
22330archive_expsym_cmds \
22331module_cmds \
22332module_expsym_cmds \
22333export_symbols_cmds \
22334prelink_cmds \
22335postlink_cmds \
22336postinstall_cmds \
22337postuninstall_cmds \
22338finish_cmds \
22339sys_lib_search_path_spec \
22340configure_time_dlsearch_path \
22341configure_time_lt_sys_library_path; do
22342    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22343    *[\\\\\\\`\\"\\\$]*)
22344      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22345      ;;
22346    *)
22347      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22348      ;;
22349    esac
22350done
22351
22352ac_aux_dir='$ac_aux_dir'
22353
22354# See if we are running on zsh, and set the options that allow our
22355# commands through without removal of \ escapes INIT.
22356if test -n "\${ZSH_VERSION+set}"; then
22357   setopt NO_GLOB_SUBST
22358fi
22359
22360
22361    PACKAGE='$PACKAGE'
22362    VERSION='$VERSION'
22363    RM='$RM'
22364    ofile='$ofile'
22365
22366
22367
22368
22369_ACEOF
22370
22371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22372
22373# Handling of arguments.
22374for ac_config_target in $ac_config_targets
22375do
22376  case $ac_config_target in
22377    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22378    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22379    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22380    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22381    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22382    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22383    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22384    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22385    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22386    "specs/libXt.ent") CONFIG_FILES="$CONFIG_FILES specs/libXt.ent" ;;
22387    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22388    "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
22389
22390  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22391  esac
22392done
22393
22394
22395# If the user did not use the arguments to specify the items to instantiate,
22396# then the envvar interface is used.  Set only those that are not.
22397# We use the long form for the default assignment because of an extremely
22398# bizarre bug on SunOS 4.1.3.
22399if $ac_need_defaults; then
22400  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22401  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22402  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22403fi
22404
22405# Have a temporary directory for convenience.  Make it in the build tree
22406# simply because there is no reason against having it here, and in addition,
22407# creating and moving files from /tmp can sometimes cause problems.
22408# Hook for its removal unless debugging.
22409# Note that there is a small window in which the directory will not be cleaned:
22410# after its creation but before its name has been assigned to `$tmp'.
22411$debug ||
22412{
22413  tmp= ac_tmp=
22414  trap 'exit_status=$?
22415  : "${ac_tmp:=$tmp}"
22416  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22417' 0
22418  trap 'as_fn_exit 1' 1 2 13 15
22419}
22420# Create a (secure) tmp directory for tmp files.
22421
22422{
22423  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22424  test -d "$tmp"
22425}  ||
22426{
22427  tmp=./conf$$-$RANDOM
22428  (umask 077 && mkdir "$tmp")
22429} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22430ac_tmp=$tmp
22431
22432# Set up the scripts for CONFIG_FILES section.
22433# No need to generate them if there are no CONFIG_FILES.
22434# This happens for instance with `./config.status config.h'.
22435if test -n "$CONFIG_FILES"; then
22436
22437
22438ac_cr=`echo X | tr X '\015'`
22439# On cygwin, bash can eat \r inside `` if the user requested igncr.
22440# But we know of no other shell where ac_cr would be empty at this
22441# point, so we can use a bashism as a fallback.
22442if test "x$ac_cr" = x; then
22443  eval ac_cr=\$\'\\r\'
22444fi
22445ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22446if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22447  ac_cs_awk_cr='\\r'
22448else
22449  ac_cs_awk_cr=$ac_cr
22450fi
22451
22452echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22453_ACEOF
22454
22455
22456{
22457  echo "cat >conf$$subs.awk <<_ACEOF" &&
22458  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22459  echo "_ACEOF"
22460} >conf$$subs.sh ||
22461  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22462ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22463ac_delim='%!_!# '
22464for ac_last_try in false false false false false :; do
22465  . ./conf$$subs.sh ||
22466    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22467
22468  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22469  if test $ac_delim_n = $ac_delim_num; then
22470    break
22471  elif $ac_last_try; then
22472    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22473  else
22474    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22475  fi
22476done
22477rm -f conf$$subs.sh
22478
22479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22480cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22481_ACEOF
22482sed -n '
22483h
22484s/^/S["/; s/!.*/"]=/
22485p
22486g
22487s/^[^!]*!//
22488:repl
22489t repl
22490s/'"$ac_delim"'$//
22491t delim
22492:nl
22493h
22494s/\(.\{148\}\)..*/\1/
22495t more1
22496s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22497p
22498n
22499b repl
22500:more1
22501s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22502p
22503g
22504s/.\{148\}//
22505t nl
22506:delim
22507h
22508s/\(.\{148\}\)..*/\1/
22509t more2
22510s/["\\]/\\&/g; s/^/"/; s/$/"/
22511p
22512b
22513:more2
22514s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22515p
22516g
22517s/.\{148\}//
22518t delim
22519' <conf$$subs.awk | sed '
22520/^[^""]/{
22521  N
22522  s/\n//
22523}
22524' >>$CONFIG_STATUS || ac_write_fail=1
22525rm -f conf$$subs.awk
22526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22527_ACAWK
22528cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22529  for (key in S) S_is_set[key] = 1
22530  FS = ""
22531
22532}
22533{
22534  line = $ 0
22535  nfields = split(line, field, "@")
22536  substed = 0
22537  len = length(field[1])
22538  for (i = 2; i < nfields; i++) {
22539    key = field[i]
22540    keylen = length(key)
22541    if (S_is_set[key]) {
22542      value = S[key]
22543      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22544      len += length(value) + length(field[++i])
22545      substed = 1
22546    } else
22547      len += 1 + keylen
22548  }
22549
22550  print line
22551}
22552
22553_ACAWK
22554_ACEOF
22555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22556if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22557  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22558else
22559  cat
22560fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22561  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22562_ACEOF
22563
22564# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22565# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22566# trailing colons and then remove the whole line if VPATH becomes empty
22567# (actually we leave an empty line to preserve line numbers).
22568if test "x$srcdir" = x.; then
22569  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22570h
22571s///
22572s/^/:/
22573s/[	 ]*$/:/
22574s/:\$(srcdir):/:/g
22575s/:\${srcdir}:/:/g
22576s/:@srcdir@:/:/g
22577s/^:*//
22578s/:*$//
22579x
22580s/\(=[	 ]*\).*/\1/
22581G
22582s/\n//
22583s/^[^=]*=[	 ]*$//
22584}'
22585fi
22586
22587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22588fi # test -n "$CONFIG_FILES"
22589
22590# Set up the scripts for CONFIG_HEADERS section.
22591# No need to generate them if there are no CONFIG_HEADERS.
22592# This happens for instance with `./config.status Makefile'.
22593if test -n "$CONFIG_HEADERS"; then
22594cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22595BEGIN {
22596_ACEOF
22597
22598# Transform confdefs.h into an awk script `defines.awk', embedded as
22599# here-document in config.status, that substitutes the proper values into
22600# config.h.in to produce config.h.
22601
22602# Create a delimiter string that does not exist in confdefs.h, to ease
22603# handling of long lines.
22604ac_delim='%!_!# '
22605for ac_last_try in false false :; do
22606  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22607  if test -z "$ac_tt"; then
22608    break
22609  elif $ac_last_try; then
22610    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22611  else
22612    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22613  fi
22614done
22615
22616# For the awk script, D is an array of macro values keyed by name,
22617# likewise P contains macro parameters if any.  Preserve backslash
22618# newline sequences.
22619
22620ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22621sed -n '
22622s/.\{148\}/&'"$ac_delim"'/g
22623t rset
22624:rset
22625s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22626t def
22627d
22628:def
22629s/\\$//
22630t bsnl
22631s/["\\]/\\&/g
22632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22633D["\1"]=" \3"/p
22634s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22635d
22636:bsnl
22637s/["\\]/\\&/g
22638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22639D["\1"]=" \3\\\\\\n"\\/p
22640t cont
22641s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22642t cont
22643d
22644:cont
22645n
22646s/.\{148\}/&'"$ac_delim"'/g
22647t clear
22648:clear
22649s/\\$//
22650t bsnlc
22651s/["\\]/\\&/g; s/^/"/; s/$/"/p
22652d
22653:bsnlc
22654s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22655b cont
22656' <confdefs.h | sed '
22657s/'"$ac_delim"'/"\\\
22658"/g' >>$CONFIG_STATUS || ac_write_fail=1
22659
22660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22661  for (key in D) D_is_set[key] = 1
22662  FS = ""
22663}
22664/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22665  line = \$ 0
22666  split(line, arg, " ")
22667  if (arg[1] == "#") {
22668    defundef = arg[2]
22669    mac1 = arg[3]
22670  } else {
22671    defundef = substr(arg[1], 2)
22672    mac1 = arg[2]
22673  }
22674  split(mac1, mac2, "(") #)
22675  macro = mac2[1]
22676  prefix = substr(line, 1, index(line, defundef) - 1)
22677  if (D_is_set[macro]) {
22678    # Preserve the white space surrounding the "#".
22679    print prefix "define", macro P[macro] D[macro]
22680    next
22681  } else {
22682    # Replace #undef with comments.  This is necessary, for example,
22683    # in the case of _POSIX_SOURCE, which is predefined and required
22684    # on some systems where configure will not decide to define it.
22685    if (defundef == "undef") {
22686      print "/*", prefix defundef, macro, "*/"
22687      next
22688    }
22689  }
22690}
22691{ print }
22692_ACAWK
22693_ACEOF
22694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22695  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22696fi # test -n "$CONFIG_HEADERS"
22697
22698
22699eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22700shift
22701for ac_tag
22702do
22703  case $ac_tag in
22704  :[FHLC]) ac_mode=$ac_tag; continue;;
22705  esac
22706  case $ac_mode$ac_tag in
22707  :[FHL]*:*);;
22708  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22709  :[FH]-) ac_tag=-:-;;
22710  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22711  esac
22712  ac_save_IFS=$IFS
22713  IFS=:
22714  set x $ac_tag
22715  IFS=$ac_save_IFS
22716  shift
22717  ac_file=$1
22718  shift
22719
22720  case $ac_mode in
22721  :L) ac_source=$1;;
22722  :[FH])
22723    ac_file_inputs=
22724    for ac_f
22725    do
22726      case $ac_f in
22727      -) ac_f="$ac_tmp/stdin";;
22728      *) # Look for the file first in the build tree, then in the source tree
22729	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22730	 # because $ac_f cannot contain `:'.
22731	 test -f "$ac_f" ||
22732	   case $ac_f in
22733	   [\\/$]*) false;;
22734	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22735	   esac ||
22736	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22737      esac
22738      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22739      as_fn_append ac_file_inputs " '$ac_f'"
22740    done
22741
22742    # Let's still pretend it is `configure' which instantiates (i.e., don't
22743    # use $as_me), people would be surprised to read:
22744    #    /* config.h.  Generated by config.status.  */
22745    configure_input='Generated from '`
22746	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22747	`' by configure.'
22748    if test x"$ac_file" != x-; then
22749      configure_input="$ac_file.  $configure_input"
22750      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22751printf "%s\n" "$as_me: creating $ac_file" >&6;}
22752    fi
22753    # Neutralize special characters interpreted by sed in replacement strings.
22754    case $configure_input in #(
22755    *\&* | *\|* | *\\* )
22756       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22757       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22758    *) ac_sed_conf_input=$configure_input;;
22759    esac
22760
22761    case $ac_tag in
22762    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22763      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22764    esac
22765    ;;
22766  esac
22767
22768  ac_dir=`$as_dirname -- "$ac_file" ||
22769$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22770	 X"$ac_file" : 'X\(//\)[^/]' \| \
22771	 X"$ac_file" : 'X\(//\)$' \| \
22772	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22773printf "%s\n" X"$ac_file" |
22774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22775	    s//\1/
22776	    q
22777	  }
22778	  /^X\(\/\/\)[^/].*/{
22779	    s//\1/
22780	    q
22781	  }
22782	  /^X\(\/\/\)$/{
22783	    s//\1/
22784	    q
22785	  }
22786	  /^X\(\/\).*/{
22787	    s//\1/
22788	    q
22789	  }
22790	  s/.*/./; q'`
22791  as_dir="$ac_dir"; as_fn_mkdir_p
22792  ac_builddir=.
22793
22794case "$ac_dir" in
22795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22796*)
22797  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22798  # A ".." for each directory in $ac_dir_suffix.
22799  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22800  case $ac_top_builddir_sub in
22801  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22802  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22803  esac ;;
22804esac
22805ac_abs_top_builddir=$ac_pwd
22806ac_abs_builddir=$ac_pwd$ac_dir_suffix
22807# for backward compatibility:
22808ac_top_builddir=$ac_top_build_prefix
22809
22810case $srcdir in
22811  .)  # We are building in place.
22812    ac_srcdir=.
22813    ac_top_srcdir=$ac_top_builddir_sub
22814    ac_abs_top_srcdir=$ac_pwd ;;
22815  [\\/]* | ?:[\\/]* )  # Absolute name.
22816    ac_srcdir=$srcdir$ac_dir_suffix;
22817    ac_top_srcdir=$srcdir
22818    ac_abs_top_srcdir=$srcdir ;;
22819  *) # Relative name.
22820    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22821    ac_top_srcdir=$ac_top_build_prefix$srcdir
22822    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22823esac
22824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22825
22826
22827  case $ac_mode in
22828  :F)
22829  #
22830  # CONFIG_FILE
22831  #
22832
22833  case $INSTALL in
22834  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22835  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22836  esac
22837  ac_MKDIR_P=$MKDIR_P
22838  case $MKDIR_P in
22839  [\\/$]* | ?:[\\/]* ) ;;
22840  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22841  esac
22842_ACEOF
22843
22844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22845# If the template does not know about datarootdir, expand it.
22846# FIXME: This hack should be removed a few years after 2.60.
22847ac_datarootdir_hack=; ac_datarootdir_seen=
22848ac_sed_dataroot='
22849/datarootdir/ {
22850  p
22851  q
22852}
22853/@datadir@/p
22854/@docdir@/p
22855/@infodir@/p
22856/@localedir@/p
22857/@mandir@/p'
22858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22859*datarootdir*) ac_datarootdir_seen=yes;;
22860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22862printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22863_ACEOF
22864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22865  ac_datarootdir_hack='
22866  s&@datadir@&$datadir&g
22867  s&@docdir@&$docdir&g
22868  s&@infodir@&$infodir&g
22869  s&@localedir@&$localedir&g
22870  s&@mandir@&$mandir&g
22871  s&\\\${datarootdir}&$datarootdir&g' ;;
22872esac
22873_ACEOF
22874
22875# Neutralize VPATH when `$srcdir' = `.'.
22876# Shell code in configure.ac might set extrasub.
22877# FIXME: do we really want to maintain this feature?
22878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22879ac_sed_extra="$ac_vpsub
22880$extrasub
22881_ACEOF
22882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22883:t
22884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22885s|@configure_input@|$ac_sed_conf_input|;t t
22886s&@top_builddir@&$ac_top_builddir_sub&;t t
22887s&@top_build_prefix@&$ac_top_build_prefix&;t t
22888s&@srcdir@&$ac_srcdir&;t t
22889s&@abs_srcdir@&$ac_abs_srcdir&;t t
22890s&@top_srcdir@&$ac_top_srcdir&;t t
22891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22892s&@builddir@&$ac_builddir&;t t
22893s&@abs_builddir@&$ac_abs_builddir&;t t
22894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22895s&@INSTALL@&$ac_INSTALL&;t t
22896s&@MKDIR_P@&$ac_MKDIR_P&;t t
22897$ac_datarootdir_hack
22898"
22899eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22900  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22901
22902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22903  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22904  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22905      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22907which seems to be undefined.  Please make sure it is defined" >&5
22908printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22909which seems to be undefined.  Please make sure it is defined" >&2;}
22910
22911  rm -f "$ac_tmp/stdin"
22912  case $ac_file in
22913  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22914  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22915  esac \
22916  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22917 ;;
22918  :H)
22919  #
22920  # CONFIG_HEADER
22921  #
22922  if test x"$ac_file" != x-; then
22923    {
22924      printf "%s\n" "/* $configure_input  */" >&1 \
22925      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22926    } >"$ac_tmp/config.h" \
22927      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22928    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22929      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22930printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22931    else
22932      rm -f "$ac_file"
22933      mv "$ac_tmp/config.h" "$ac_file" \
22934	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22935    fi
22936  else
22937    printf "%s\n" "/* $configure_input  */" >&1 \
22938      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22939      || as_fn_error $? "could not create -" "$LINENO" 5
22940  fi
22941# Compute "$ac_file"'s index in $config_headers.
22942_am_arg="$ac_file"
22943_am_stamp_count=1
22944for _am_header in $config_headers :; do
22945  case $_am_header in
22946    $_am_arg | $_am_arg:* )
22947      break ;;
22948    * )
22949      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22950  esac
22951done
22952echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22953$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22955	 X"$_am_arg" : 'X\(//\)$' \| \
22956	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22957printf "%s\n" X"$_am_arg" |
22958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22959	    s//\1/
22960	    q
22961	  }
22962	  /^X\(\/\/\)[^/].*/{
22963	    s//\1/
22964	    q
22965	  }
22966	  /^X\(\/\/\)$/{
22967	    s//\1/
22968	    q
22969	  }
22970	  /^X\(\/\).*/{
22971	    s//\1/
22972	    q
22973	  }
22974	  s/.*/./; q'`/stamp-h$_am_stamp_count
22975 ;;
22976
22977  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22978printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22979 ;;
22980  esac
22981
22982
22983  case $ac_file$ac_mode in
22984    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22985  # Older Autoconf quotes --file arguments for eval, but not when files
22986  # are listed without --file.  Let's play safe and only enable the eval
22987  # if we detect the quoting.
22988  # TODO: see whether this extra hack can be removed once we start
22989  # requiring Autoconf 2.70 or later.
22990  case $CONFIG_FILES in #(
22991  *\'*) :
22992    eval set x "$CONFIG_FILES" ;; #(
22993  *) :
22994    set x $CONFIG_FILES ;; #(
22995  *) :
22996     ;;
22997esac
22998  shift
22999  # Used to flag and report bootstrapping failures.
23000  am_rc=0
23001  for am_mf
23002  do
23003    # Strip MF so we end up with the name of the file.
23004    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23005    # Check whether this is an Automake generated Makefile which includes
23006    # dependency-tracking related rules and includes.
23007    # Grep'ing the whole file directly is not great: AIX grep has a line
23008    # limit of 2048, but all sed's we know have understand at least 4000.
23009    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23010      || continue
23011    am_dirpart=`$as_dirname -- "$am_mf" ||
23012$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23013	 X"$am_mf" : 'X\(//\)[^/]' \| \
23014	 X"$am_mf" : 'X\(//\)$' \| \
23015	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23016printf "%s\n" X"$am_mf" |
23017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23018	    s//\1/
23019	    q
23020	  }
23021	  /^X\(\/\/\)[^/].*/{
23022	    s//\1/
23023	    q
23024	  }
23025	  /^X\(\/\/\)$/{
23026	    s//\1/
23027	    q
23028	  }
23029	  /^X\(\/\).*/{
23030	    s//\1/
23031	    q
23032	  }
23033	  s/.*/./; q'`
23034    am_filepart=`$as_basename -- "$am_mf" ||
23035$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23036	 X"$am_mf" : 'X\(//\)$' \| \
23037	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23038printf "%s\n" X/"$am_mf" |
23039    sed '/^.*\/\([^/][^/]*\)\/*$/{
23040	    s//\1/
23041	    q
23042	  }
23043	  /^X\/\(\/\/\)$/{
23044	    s//\1/
23045	    q
23046	  }
23047	  /^X\/\(\/\).*/{
23048	    s//\1/
23049	    q
23050	  }
23051	  s/.*/./; q'`
23052    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23053      && sed -e '/# am--include-marker/d' "$am_filepart" \
23054        | $MAKE -f - am--depfiles" >&5
23055   (cd "$am_dirpart" \
23056      && sed -e '/# am--include-marker/d' "$am_filepart" \
23057        | $MAKE -f - am--depfiles) >&5 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } || am_rc=$?
23061  done
23062  if test $am_rc -ne 0; then
23063    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23064printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23065as_fn_error $? "Something went wrong bootstrapping makefile fragments
23066    for automatic dependency tracking.  If GNU make was not used, consider
23067    re-running the configure script with MAKE=\"gmake\" (or whatever is
23068    necessary).  You can also try re-running configure with the
23069    '--disable-dependency-tracking' option to at least be able to build
23070    the package (albeit without support for automatic dependency tracking).
23071See \`config.log' for more details" "$LINENO" 5; }
23072  fi
23073  { am_dirpart=; unset am_dirpart;}
23074  { am_filepart=; unset am_filepart;}
23075  { am_mf=; unset am_mf;}
23076  { am_rc=; unset am_rc;}
23077  rm -f conftest-deps.mk
23078}
23079 ;;
23080    "libtool":C)
23081
23082    # See if we are running on zsh, and set the options that allow our
23083    # commands through without removal of \ escapes.
23084    if test -n "${ZSH_VERSION+set}"; then
23085      setopt NO_GLOB_SUBST
23086    fi
23087
23088    cfgfile=${ofile}T
23089    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23090    $RM "$cfgfile"
23091
23092    cat <<_LT_EOF >> "$cfgfile"
23093#! $SHELL
23094# Generated automatically by $as_me ($PACKAGE) $VERSION
23095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23096# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23097
23098# Provide generalized library-building support services.
23099# Written by Gordon Matzigkeit, 1996
23100
23101# Copyright (C) 2014 Free Software Foundation, Inc.
23102# This is free software; see the source for copying conditions.  There is NO
23103# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23104
23105# GNU Libtool is free software; you can redistribute it and/or modify
23106# it under the terms of the GNU General Public License as published by
23107# the Free Software Foundation; either version 2 of of the License, or
23108# (at your option) any later version.
23109#
23110# As a special exception to the GNU General Public License, if you
23111# distribute this file as part of a program or library that is built
23112# using GNU Libtool, you may include this file under the  same
23113# distribution terms that you use for the rest of that program.
23114#
23115# GNU Libtool is distributed in the hope that it will be useful, but
23116# WITHOUT ANY WARRANTY; without even the implied warranty of
23117# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23118# GNU General Public License for more details.
23119#
23120# You should have received a copy of the GNU General Public License
23121# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23122
23123
23124# The names of the tagged configurations supported by this script.
23125available_tags=''
23126
23127# Configured defaults for sys_lib_dlsearch_path munging.
23128: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23129
23130# ### BEGIN LIBTOOL CONFIG
23131
23132# Which release of libtool.m4 was used?
23133macro_version=$macro_version
23134macro_revision=$macro_revision
23135
23136# Whether or not to build shared libraries.
23137build_libtool_libs=$enable_shared
23138
23139# Whether or not to build static libraries.
23140build_old_libs=$enable_static
23141
23142# What type of objects to build.
23143pic_mode=$pic_mode
23144
23145# Whether or not to optimize for fast installation.
23146fast_install=$enable_fast_install
23147
23148# Shared archive member basename,for filename based shared library versioning on AIX.
23149shared_archive_member_spec=$shared_archive_member_spec
23150
23151# Shell to use when invoking shell scripts.
23152SHELL=$lt_SHELL
23153
23154# An echo program that protects backslashes.
23155ECHO=$lt_ECHO
23156
23157# The PATH separator for the build system.
23158PATH_SEPARATOR=$lt_PATH_SEPARATOR
23159
23160# The host system.
23161host_alias=$host_alias
23162host=$host
23163host_os=$host_os
23164
23165# The build system.
23166build_alias=$build_alias
23167build=$build
23168build_os=$build_os
23169
23170# A sed program that does not truncate output.
23171SED=$lt_SED
23172
23173# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23174Xsed="\$SED -e 1s/^X//"
23175
23176# A grep program that handles long lines.
23177GREP=$lt_GREP
23178
23179# An ERE matcher.
23180EGREP=$lt_EGREP
23181
23182# A literal string matcher.
23183FGREP=$lt_FGREP
23184
23185# A BSD- or MS-compatible name lister.
23186NM=$lt_NM
23187
23188# Whether we need soft or hard links.
23189LN_S=$lt_LN_S
23190
23191# What is the maximum length of a command?
23192max_cmd_len=$max_cmd_len
23193
23194# Object file suffix (normally "o").
23195objext=$ac_objext
23196
23197# Executable file suffix (normally "").
23198exeext=$exeext
23199
23200# whether the shell understands "unset".
23201lt_unset=$lt_unset
23202
23203# turn spaces into newlines.
23204SP2NL=$lt_lt_SP2NL
23205
23206# turn newlines into spaces.
23207NL2SP=$lt_lt_NL2SP
23208
23209# convert \$build file names to \$host format.
23210to_host_file_cmd=$lt_cv_to_host_file_cmd
23211
23212# convert \$build files to toolchain format.
23213to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23214
23215# A file(cmd) program that detects file types.
23216FILECMD=$lt_FILECMD
23217
23218# An object symbol dumper.
23219OBJDUMP=$lt_OBJDUMP
23220
23221# Method to check whether dependent libraries are shared objects.
23222deplibs_check_method=$lt_deplibs_check_method
23223
23224# Command to use when deplibs_check_method = "file_magic".
23225file_magic_cmd=$lt_file_magic_cmd
23226
23227# How to find potential files when deplibs_check_method = "file_magic".
23228file_magic_glob=$lt_file_magic_glob
23229
23230# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23231want_nocaseglob=$lt_want_nocaseglob
23232
23233# DLL creation program.
23234DLLTOOL=$lt_DLLTOOL
23235
23236# Command to associate shared and link libraries.
23237sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23238
23239# The archiver.
23240AR=$lt_AR
23241
23242# Flags to create an archive (by configure).
23243lt_ar_flags=$lt_ar_flags
23244
23245# Flags to create an archive.
23246AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23247
23248# How to feed a file listing to the archiver.
23249archiver_list_spec=$lt_archiver_list_spec
23250
23251# A symbol stripping program.
23252STRIP=$lt_STRIP
23253
23254# Commands used to install an old-style archive.
23255RANLIB=$lt_RANLIB
23256old_postinstall_cmds=$lt_old_postinstall_cmds
23257old_postuninstall_cmds=$lt_old_postuninstall_cmds
23258
23259# Whether to use a lock for old archive extraction.
23260lock_old_archive_extraction=$lock_old_archive_extraction
23261
23262# A C compiler.
23263LTCC=$lt_CC
23264
23265# LTCC compiler flags.
23266LTCFLAGS=$lt_CFLAGS
23267
23268# Take the output of nm and produce a listing of raw symbols and C names.
23269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23270
23271# Transform the output of nm in a proper C declaration.
23272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23273
23274# Transform the output of nm into a list of symbols to manually relocate.
23275global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23276
23277# Transform the output of nm in a C name address pair.
23278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23279
23280# Transform the output of nm in a C name address pair when lib prefix is needed.
23281global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23282
23283# The name lister interface.
23284nm_interface=$lt_lt_cv_nm_interface
23285
23286# Specify filename containing input files for \$NM.
23287nm_file_list_spec=$lt_nm_file_list_spec
23288
23289# The root where to search for dependent libraries,and where our libraries should be installed.
23290lt_sysroot=$lt_sysroot
23291
23292# Command to truncate a binary pipe.
23293lt_truncate_bin=$lt_lt_cv_truncate_bin
23294
23295# The name of the directory that contains temporary libtool files.
23296objdir=$objdir
23297
23298# Used to examine libraries when file_magic_cmd begins with "file".
23299MAGIC_CMD=$MAGIC_CMD
23300
23301# Must we lock files when doing compilation?
23302need_locks=$lt_need_locks
23303
23304# Manifest tool.
23305MANIFEST_TOOL=$lt_MANIFEST_TOOL
23306
23307# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23308DSYMUTIL=$lt_DSYMUTIL
23309
23310# Tool to change global to local symbols on Mac OS X.
23311NMEDIT=$lt_NMEDIT
23312
23313# Tool to manipulate fat objects and archives on Mac OS X.
23314LIPO=$lt_LIPO
23315
23316# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23317OTOOL=$lt_OTOOL
23318
23319# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23320OTOOL64=$lt_OTOOL64
23321
23322# Old archive suffix (normally "a").
23323libext=$libext
23324
23325# Shared library suffix (normally ".so").
23326shrext_cmds=$lt_shrext_cmds
23327
23328# The commands to extract the exported symbol list from a shared archive.
23329extract_expsyms_cmds=$lt_extract_expsyms_cmds
23330
23331# Variables whose values should be saved in libtool wrapper scripts and
23332# restored at link time.
23333variables_saved_for_relink=$lt_variables_saved_for_relink
23334
23335# Do we need the "lib" prefix for modules?
23336need_lib_prefix=$need_lib_prefix
23337
23338# Do we need a version for libraries?
23339need_version=$need_version
23340
23341# Library versioning type.
23342version_type=$version_type
23343
23344# Shared library runtime path variable.
23345runpath_var=$runpath_var
23346
23347# Shared library path variable.
23348shlibpath_var=$shlibpath_var
23349
23350# Is shlibpath searched before the hard-coded library search path?
23351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23352
23353# Format of library name prefix.
23354libname_spec=$lt_libname_spec
23355
23356# List of archive names.  First name is the real one, the rest are links.
23357# The last name is the one that the linker finds with -lNAME
23358library_names_spec=$lt_library_names_spec
23359
23360# The coded name of the library, if different from the real name.
23361soname_spec=$lt_soname_spec
23362
23363# Permission mode override for installation of shared libraries.
23364install_override_mode=$lt_install_override_mode
23365
23366# Command to use after installation of a shared archive.
23367postinstall_cmds=$lt_postinstall_cmds
23368
23369# Command to use after uninstallation of a shared archive.
23370postuninstall_cmds=$lt_postuninstall_cmds
23371
23372# Commands used to finish a libtool library installation in a directory.
23373finish_cmds=$lt_finish_cmds
23374
23375# As "finish_cmds", except a single script fragment to be evaled but
23376# not shown.
23377finish_eval=$lt_finish_eval
23378
23379# Whether we should hardcode library paths into libraries.
23380hardcode_into_libs=$hardcode_into_libs
23381
23382# Compile-time system search path for libraries.
23383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23384
23385# Detected run-time system search path for libraries.
23386sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23387
23388# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23389configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23390
23391# Whether dlopen is supported.
23392dlopen_support=$enable_dlopen
23393
23394# Whether dlopen of programs is supported.
23395dlopen_self=$enable_dlopen_self
23396
23397# Whether dlopen of statically linked programs is supported.
23398dlopen_self_static=$enable_dlopen_self_static
23399
23400# Commands to strip libraries.
23401old_striplib=$lt_old_striplib
23402striplib=$lt_striplib
23403
23404
23405# The linker used to build libraries.
23406LD=$lt_LD
23407
23408# How to create reloadable object files.
23409reload_flag=$lt_reload_flag
23410reload_cmds=$lt_reload_cmds
23411
23412# Commands used to build an old-style archive.
23413old_archive_cmds=$lt_old_archive_cmds
23414
23415# A language specific compiler.
23416CC=$lt_compiler
23417
23418# Is the compiler the GNU compiler?
23419with_gcc=$GCC
23420
23421# Compiler flag to turn off builtin functions.
23422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23423
23424# Additional compiler flags for building library objects.
23425pic_flag=$lt_lt_prog_compiler_pic
23426
23427# How to pass a linker flag through the compiler.
23428wl=$lt_lt_prog_compiler_wl
23429
23430# Compiler flag to prevent dynamic linking.
23431link_static_flag=$lt_lt_prog_compiler_static
23432
23433# Does compiler simultaneously support -c and -o options?
23434compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23435
23436# Whether or not to add -lc for building shared libraries.
23437build_libtool_need_lc=$archive_cmds_need_lc
23438
23439# Whether or not to disallow shared libs when runtime libs are static.
23440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23441
23442# Compiler flag to allow reflexive dlopens.
23443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23444
23445# Compiler flag to generate shared objects directly from archives.
23446whole_archive_flag_spec=$lt_whole_archive_flag_spec
23447
23448# Whether the compiler copes with passing no objects directly.
23449compiler_needs_object=$lt_compiler_needs_object
23450
23451# Create an old-style archive from a shared archive.
23452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23453
23454# Create a temporary old-style archive to link instead of a shared archive.
23455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23456
23457# Commands used to build a shared archive.
23458archive_cmds=$lt_archive_cmds
23459archive_expsym_cmds=$lt_archive_expsym_cmds
23460
23461# Commands used to build a loadable module if different from building
23462# a shared archive.
23463module_cmds=$lt_module_cmds
23464module_expsym_cmds=$lt_module_expsym_cmds
23465
23466# Whether we are building with GNU ld or not.
23467with_gnu_ld=$lt_with_gnu_ld
23468
23469# Flag that allows shared libraries with undefined symbols to be built.
23470allow_undefined_flag=$lt_allow_undefined_flag
23471
23472# Flag that enforces no undefined symbols.
23473no_undefined_flag=$lt_no_undefined_flag
23474
23475# Flag to hardcode \$libdir into a binary during linking.
23476# This must work even if \$libdir does not exist
23477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23478
23479# Whether we need a single "-rpath" flag with a separated argument.
23480hardcode_libdir_separator=$lt_hardcode_libdir_separator
23481
23482# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23483# DIR into the resulting binary.
23484hardcode_direct=$hardcode_direct
23485
23486# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23487# DIR into the resulting binary and the resulting library dependency is
23488# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23489# library is relocated.
23490hardcode_direct_absolute=$hardcode_direct_absolute
23491
23492# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23493# into the resulting binary.
23494hardcode_minus_L=$hardcode_minus_L
23495
23496# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23497# into the resulting binary.
23498hardcode_shlibpath_var=$hardcode_shlibpath_var
23499
23500# Set to "yes" if building a shared library automatically hardcodes DIR
23501# into the library and all subsequent libraries and executables linked
23502# against it.
23503hardcode_automatic=$hardcode_automatic
23504
23505# Set to yes if linker adds runtime paths of dependent libraries
23506# to runtime path list.
23507inherit_rpath=$inherit_rpath
23508
23509# Whether libtool must link a program against all its dependency libraries.
23510link_all_deplibs=$link_all_deplibs
23511
23512# Set to "yes" if exported symbols are required.
23513always_export_symbols=$always_export_symbols
23514
23515# The commands to list exported symbols.
23516export_symbols_cmds=$lt_export_symbols_cmds
23517
23518# Symbols that should not be listed in the preloaded symbols.
23519exclude_expsyms=$lt_exclude_expsyms
23520
23521# Symbols that must always be exported.
23522include_expsyms=$lt_include_expsyms
23523
23524# Commands necessary for linking programs (against libraries) with templates.
23525prelink_cmds=$lt_prelink_cmds
23526
23527# Commands necessary for finishing linking programs.
23528postlink_cmds=$lt_postlink_cmds
23529
23530# Specify filename containing input files.
23531file_list_spec=$lt_file_list_spec
23532
23533# How to hardcode a shared library path into an executable.
23534hardcode_action=$hardcode_action
23535
23536# ### END LIBTOOL CONFIG
23537
23538_LT_EOF
23539
23540    cat <<'_LT_EOF' >> "$cfgfile"
23541
23542# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23543
23544# func_munge_path_list VARIABLE PATH
23545# -----------------------------------
23546# VARIABLE is name of variable containing _space_ separated list of
23547# directories to be munged by the contents of PATH, which is string
23548# having a format:
23549# "DIR[:DIR]:"
23550#       string "DIR[ DIR]" will be prepended to VARIABLE
23551# ":DIR[:DIR]"
23552#       string "DIR[ DIR]" will be appended to VARIABLE
23553# "DIRP[:DIRP]::[DIRA:]DIRA"
23554#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23555#       "DIRA[ DIRA]" will be appended to VARIABLE
23556# "DIR[:DIR]"
23557#       VARIABLE will be replaced by "DIR[ DIR]"
23558func_munge_path_list ()
23559{
23560    case x$2 in
23561    x)
23562        ;;
23563    *:)
23564        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23565        ;;
23566    x:*)
23567        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23568        ;;
23569    *::*)
23570        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23571        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23572        ;;
23573    *)
23574        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23575        ;;
23576    esac
23577}
23578
23579
23580# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23581func_cc_basename ()
23582{
23583    for cc_temp in $*""; do
23584      case $cc_temp in
23585        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23586        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23587        \-*) ;;
23588        *) break;;
23589      esac
23590    done
23591    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23592}
23593
23594
23595# ### END FUNCTIONS SHARED WITH CONFIGURE
23596
23597_LT_EOF
23598
23599  case $host_os in
23600  aix3*)
23601    cat <<\_LT_EOF >> "$cfgfile"
23602# AIX sometimes has problems with the GCC collect2 program.  For some
23603# reason, if we set the COLLECT_NAMES environment variable, the problems
23604# vanish in a puff of smoke.
23605if test set != "${COLLECT_NAMES+set}"; then
23606  COLLECT_NAMES=
23607  export COLLECT_NAMES
23608fi
23609_LT_EOF
23610    ;;
23611  esac
23612
23613
23614
23615ltmain=$ac_aux_dir/ltmain.sh
23616
23617
23618  # We use sed instead of cat because bash on DJGPP gets confused if
23619  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23620  # text mode, it properly converts lines to CR/LF.  This bash problem
23621  # is reportedly fixed, but why not run on old versions too?
23622  $SED '$q' "$ltmain" >> "$cfgfile" \
23623     || (rm -f "$cfgfile"; exit 1)
23624
23625   mv -f "$cfgfile" "$ofile" ||
23626    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23627  chmod +x "$ofile"
23628
23629 ;;
23630
23631  esac
23632done # for ac_tag
23633
23634
23635as_fn_exit 0
23636_ACEOF
23637ac_clean_files=$ac_clean_files_save
23638
23639test $ac_write_fail = 0 ||
23640  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23641
23642
23643# configure is writing to config.log, and then calls config.status.
23644# config.status does its own redirection, appending to config.log.
23645# Unfortunately, on DOS this fails, as config.log is still kept open
23646# by configure, so config.status won't be able to write to it; its
23647# output is simply discarded.  So we exec the FD to /dev/null,
23648# effectively closing config.log, so it can be properly (re)opened and
23649# appended to by config.status.  When coming back to configure, we
23650# need to make the FD available again.
23651if test "$no_create" != yes; then
23652  ac_cs_success=:
23653  ac_config_status_args=
23654  test "$silent" = yes &&
23655    ac_config_status_args="$ac_config_status_args --quiet"
23656  exec 5>/dev/null
23657  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23658  exec 5>>config.log
23659  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23660  # would make configure fail if this is the last instruction.
23661  $ac_cs_success || as_fn_exit 1
23662fi
23663if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23665printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23666fi
23667
23668
23669