1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXmu 1.1.4.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/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/libxmu/-/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='libXmu'
684PACKAGE_TARNAME='libXmu'
685PACKAGE_VERSION='1.1.4'
686PACKAGE_STRING='libXmu 1.1.4'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxmu/-/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
726LINTLIBUU
727MAKE_LINT_LIB_FALSE
728MAKE_LINT_LIB_TRUE
729LINTLIB
730LINT_FALSE
731LINT_TRUE
732LINT_FLAGS
733LINT
734LIBOBJS
735XMUU_LIBS
736XMUU_CFLAGS
737XMU_LIBS
738XMU_CFLAGS
739HAVE_STYLESHEETS_FALSE
740HAVE_STYLESHEETS_TRUE
741XSL_STYLESHEET
742STYLESHEET_SRCDIR
743XORG_SGML_PATH
744HAVE_XSLTPROC_FALSE
745HAVE_XSLTPROC_TRUE
746XSLTPROC
747HAVE_FOP_FALSE
748HAVE_FOP_TRUE
749FOP
750HAVE_XMLTO_FALSE
751HAVE_XMLTO_TRUE
752HAVE_XMLTO_TEXT_FALSE
753HAVE_XMLTO_TEXT_TRUE
754XMLTO
755ENABLE_DOCS_FALSE
756ENABLE_DOCS_TRUE
757MAN_SUBSTS
758XORG_MAN_PAGE
759ADMIN_MAN_DIR
760DRIVER_MAN_DIR
761MISC_MAN_DIR
762FILE_MAN_DIR
763LIB_MAN_DIR
764APP_MAN_DIR
765ADMIN_MAN_SUFFIX
766DRIVER_MAN_SUFFIX
767MISC_MAN_SUFFIX
768FILE_MAN_SUFFIX
769LIB_MAN_SUFFIX
770APP_MAN_SUFFIX
771INSTALL_CMD
772PKG_CONFIG_LIBDIR
773PKG_CONFIG_PATH
774PKG_CONFIG
775CHANGELOG_CMD
776STRICT_CFLAGS
777CWARNFLAGS
778BASE_CFLAGS
779LT_SYS_LIBRARY_PATH
780OTOOL64
781OTOOL
782LIPO
783NMEDIT
784DSYMUTIL
785MANIFEST_TOOL
786RANLIB
787ac_ct_AR
788AR
789DLLTOOL
790OBJDUMP
791FILECMD
792LN_S
793NM
794ac_ct_DUMPBIN
795DUMPBIN
796LD
797FGREP
798EGREP
799GREP
800SED
801host_os
802host_vendor
803host_cpu
804host
805build_os
806build_vendor
807build_cpu
808build
809LIBTOOL
810AM_BACKSLASH
811AM_DEFAULT_VERBOSITY
812AM_DEFAULT_V
813AM_V
814CSCOPE
815ETAGS
816CTAGS
817am__fastdepCC_FALSE
818am__fastdepCC_TRUE
819CCDEPMODE
820am__nodep
821AMDEPBACKSLASH
822AMDEP_FALSE
823AMDEP_TRUE
824am__include
825DEPDIR
826am__untar
827am__tar
828AMTAR
829am__leading_dot
830SET_MAKE
831AWK
832mkdir_p
833MKDIR_P
834INSTALL_STRIP_PROGRAM
835STRIP
836install_sh
837MAKEINFO
838AUTOHEADER
839AUTOMAKE
840AUTOCONF
841ACLOCAL
842VERSION
843PACKAGE
844CYGPATH_W
845am__isrc
846INSTALL_DATA
847INSTALL_SCRIPT
848INSTALL_PROGRAM
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856target_alias
857host_alias
858build_alias
859LIBS
860ECHO_T
861ECHO_N
862ECHO_C
863DEFS
864mandir
865localedir
866libdir
867psdir
868pdfdir
869dvidir
870htmldir
871infodir
872docdir
873oldincludedir
874includedir
875runstatedir
876localstatedir
877sharedstatedir
878sysconfdir
879datadir
880datarootdir
881libexecdir
882sbindir
883bindir
884program_transform_name
885prefix
886exec_prefix
887PACKAGE_URL
888PACKAGE_BUGREPORT
889PACKAGE_STRING
890PACKAGE_VERSION
891PACKAGE_TARNAME
892PACKAGE_NAME
893PATH_SEPARATOR
894SHELL
895am__quote'
896ac_subst_files=''
897ac_user_opts='
898enable_option_checking
899enable_dependency_tracking
900enable_silent_rules
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_aix_soname
906with_gnu_ld
907with_sysroot
908enable_libtool_lock
909enable_selective_werror
910enable_strict_compilation
911enable_docs
912with_xmlto
913with_fop
914with_xsltproc
915with_lint
916enable_lint_library
917'
918      ac_precious_vars='build_alias
919host_alias
920target_alias
921CC
922CFLAGS
923LDFLAGS
924LIBS
925CPPFLAGS
926LT_SYS_LIBRARY_PATH
927PKG_CONFIG
928PKG_CONFIG_PATH
929PKG_CONFIG_LIBDIR
930XMLTO
931FOP
932XSLTPROC
933XMU_CFLAGS
934XMU_LIBS
935XMUU_CFLAGS
936XMUU_LIBS
937LINT
938LINT_FLAGS'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977runstatedir='${localstatedir}/run'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *=)   ac_optarg= ;;
1004  *)    ac_optarg=yes ;;
1005  esac
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1048    ac_useropt_orig=$ac_useropt
1049    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050    case $ac_user_opts in
1051      *"
1052"enable_$ac_useropt"
1053"*) ;;
1054      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055	 ac_unrecognized_sep=', ';;
1056    esac
1057    eval enable_$ac_useropt=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087  | --exec | --exe | --ex)
1088    ac_prev=exec_prefix ;;
1089  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091  | --exec=* | --exe=* | --ex=*)
1092    exec_prefix=$ac_optarg ;;
1093
1094  -gas | --gas | --ga | --g)
1095    # Obsolete; use --with-gas.
1096    with_gas=yes ;;
1097
1098  -help | --help | --hel | --he | -h)
1099    ac_init_help=long ;;
1100  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101    ac_init_help=recursive ;;
1102  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103    ac_init_help=short ;;
1104
1105  -host | --host | --hos | --ho)
1106    ac_prev=host_alias ;;
1107  -host=* | --host=* | --hos=* | --ho=*)
1108    host_alias=$ac_optarg ;;
1109
1110  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111    ac_prev=htmldir ;;
1112  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113  | --ht=*)
1114    htmldir=$ac_optarg ;;
1115
1116  -includedir | --includedir | --includedi | --included | --include \
1117  | --includ | --inclu | --incl | --inc)
1118    ac_prev=includedir ;;
1119  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121    includedir=$ac_optarg ;;
1122
1123  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124    ac_prev=infodir ;;
1125  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126    infodir=$ac_optarg ;;
1127
1128  -libdir | --libdir | --libdi | --libd)
1129    ac_prev=libdir ;;
1130  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131    libdir=$ac_optarg ;;
1132
1133  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134  | --libexe | --libex | --libe)
1135    ac_prev=libexecdir ;;
1136  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137  | --libexe=* | --libex=* | --libe=*)
1138    libexecdir=$ac_optarg ;;
1139
1140  -localedir | --localedir | --localedi | --localed | --locale)
1141    ac_prev=localedir ;;
1142  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143    localedir=$ac_optarg ;;
1144
1145  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146  | --localstate | --localstat | --localsta | --localst | --locals)
1147    ac_prev=localstatedir ;;
1148  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150    localstatedir=$ac_optarg ;;
1151
1152  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153    ac_prev=mandir ;;
1154  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155    mandir=$ac_optarg ;;
1156
1157  -nfp | --nfp | --nf)
1158    # Obsolete; use --without-fp.
1159    with_fp=no ;;
1160
1161  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162  | --no-cr | --no-c | -n)
1163    no_create=yes ;;
1164
1165  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167    no_recursion=yes ;;
1168
1169  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171  | --oldin | --oldi | --old | --ol | --o)
1172    ac_prev=oldincludedir ;;
1173  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176    oldincludedir=$ac_optarg ;;
1177
1178  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179    ac_prev=prefix ;;
1180  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181    prefix=$ac_optarg ;;
1182
1183  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184  | --program-pre | --program-pr | --program-p)
1185    ac_prev=program_prefix ;;
1186  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188    program_prefix=$ac_optarg ;;
1189
1190  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191  | --program-suf | --program-su | --program-s)
1192    ac_prev=program_suffix ;;
1193  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195    program_suffix=$ac_optarg ;;
1196
1197  -program-transform-name | --program-transform-name \
1198  | --program-transform-nam | --program-transform-na \
1199  | --program-transform-n | --program-transform- \
1200  | --program-transform | --program-transfor \
1201  | --program-transfo | --program-transf \
1202  | --program-trans | --program-tran \
1203  | --progr-tra | --program-tr | --program-t)
1204    ac_prev=program_transform_name ;;
1205  -program-transform-name=* | --program-transform-name=* \
1206  | --program-transform-nam=* | --program-transform-na=* \
1207  | --program-transform-n=* | --program-transform-=* \
1208  | --program-transform=* | --program-transfor=* \
1209  | --program-transfo=* | --program-transf=* \
1210  | --program-trans=* | --program-tran=* \
1211  | --progr-tra=* | --program-tr=* | --program-t=*)
1212    program_transform_name=$ac_optarg ;;
1213
1214  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215    ac_prev=pdfdir ;;
1216  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217    pdfdir=$ac_optarg ;;
1218
1219  -psdir | --psdir | --psdi | --psd | --ps)
1220    ac_prev=psdir ;;
1221  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222    psdir=$ac_optarg ;;
1223
1224  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225  | -silent | --silent | --silen | --sile | --sil)
1226    silent=yes ;;
1227
1228  -runstatedir | --runstatedir | --runstatedi | --runstated \
1229  | --runstate | --runstat | --runsta | --runst | --runs \
1230  | --run | --ru | --r)
1231    ac_prev=runstatedir ;;
1232  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234  | --run=* | --ru=* | --r=*)
1235    runstatedir=$ac_optarg ;;
1236
1237  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238    ac_prev=sbindir ;;
1239  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240  | --sbi=* | --sb=*)
1241    sbindir=$ac_optarg ;;
1242
1243  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245  | --sharedst | --shareds | --shared | --share | --shar \
1246  | --sha | --sh)
1247    ac_prev=sharedstatedir ;;
1248  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251  | --sha=* | --sh=*)
1252    sharedstatedir=$ac_optarg ;;
1253
1254  -site | --site | --sit)
1255    ac_prev=site ;;
1256  -site=* | --site=* | --sit=*)
1257    site=$ac_optarg ;;
1258
1259  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260    ac_prev=srcdir ;;
1261  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262    srcdir=$ac_optarg ;;
1263
1264  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265  | --syscon | --sysco | --sysc | --sys | --sy)
1266    ac_prev=sysconfdir ;;
1267  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269    sysconfdir=$ac_optarg ;;
1270
1271  -target | --target | --targe | --targ | --tar | --ta | --t)
1272    ac_prev=target_alias ;;
1273  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274    target_alias=$ac_optarg ;;
1275
1276  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277    verbose=yes ;;
1278
1279  -version | --version | --versio | --versi | --vers | -V)
1280    ac_init_version=: ;;
1281
1282  -with-* | --with-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid package name: \`$ac_useropt'"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"with_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval with_$ac_useropt=\$ac_optarg ;;
1297
1298  -without-* | --without-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      as_fn_error $? "invalid package name: \`$ac_useropt'"
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=no ;;
1313
1314  --x)
1315    # Obsolete; use --with-x.
1316    with_x=yes ;;
1317
1318  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319  | --x-incl | --x-inc | --x-in | --x-i)
1320    ac_prev=x_includes ;;
1321  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323    x_includes=$ac_optarg ;;
1324
1325  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327    ac_prev=x_libraries ;;
1328  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330    x_libraries=$ac_optarg ;;
1331
1332  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333Try \`$0 --help' for more information"
1334    ;;
1335
1336  *=*)
1337    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338    # Reject names that are not valid shell variable names.
1339    case $ac_envvar in #(
1340      '' | [0-9]* | *[!_$as_cr_alnum]* )
1341      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342    esac
1343    eval $ac_envvar=\$ac_optarg
1344    export $ac_envvar ;;
1345
1346  *)
1347    # FIXME: should be removed in autoconf 3.0.
1348    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352    ;;
1353
1354  esac
1355done
1356
1357if test -n "$ac_prev"; then
1358  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359  as_fn_error $? "missing argument to $ac_option"
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363  case $enable_option_checking in
1364    no) ;;
1365    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367  esac
1368fi
1369
1370# Check all directory arguments for consistency.
1371for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372		datadir sysconfdir sharedstatedir localstatedir includedir \
1373		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374		libdir localedir mandir runstatedir
1375do
1376  eval ac_val=\$$ac_var
1377  # Remove trailing slashes.
1378  case $ac_val in
1379    */ )
1380      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381      eval $ac_var=\$ac_val;;
1382  esac
1383  # Be sure to have absolute directory names.
1384  case $ac_val in
1385    [\\/$]* | ?:[\\/]* )  continue;;
1386    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387  esac
1388  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389done
1390
1391# There might be people who depend on the old broken behavior: `$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400  if test "x$build_alias" = x; then
1401    cross_compiling=maybe
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  as_fn_error $? "working directory cannot be determined"
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418  as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421# Find the source files, if location was not specified.
1422if test -z "$srcdir"; then
1423  ac_srcdir_defaulted=yes
1424  # Try the directory containing this script, then the parent directory.
1425  ac_confdir=`$as_dirname -- "$as_myself" ||
1426$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428	 X"$as_myself" : 'X\(//\)$' \| \
1429	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430printf "%s\n" X"$as_myself" |
1431    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)[^/].*/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\/\)$/{
1440	    s//\1/
1441	    q
1442	  }
1443	  /^X\(\/\).*/{
1444	    s//\1/
1445	    q
1446	  }
1447	  s/.*/./; q'`
1448  srcdir=$ac_confdir
1449  if test ! -r "$srcdir/$ac_unique_file"; then
1450    srcdir=..
1451  fi
1452else
1453  ac_srcdir_defaulted=no
1454fi
1455if test ! -r "$srcdir/$ac_unique_file"; then
1456  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458fi
1459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462	pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465  srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_env_${ac_var}_value=\$${ac_var}
1476  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
1479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484  # Omit some internal or obsolete options to make the list less imposing.
1485  # This message is too long to be a string in the A/UX 3.1 sh.
1486  cat <<_ACEOF
1487\`configure' configures libXmu 1.1.4 to adapt to many kinds of systems.
1488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497  -h, --help              display this help and exit
1498      --help=short        display options specific to this package
1499      --help=recursive    display the short help of all the included packages
1500  -V, --version           display version information and exit
1501  -q, --quiet, --silent   do not print \`checking ...' messages
1502      --cache-file=FILE   cache test results in FILE [disabled]
1503  -C, --config-cache      alias for \`--cache-file=config.cache'
1504  -n, --no-create         do not create output files
1505      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507Installation directories:
1508  --prefix=PREFIX         install architecture-independent files in PREFIX
1509                          [$ac_default_prefix]
1510  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                          [PREFIX]
1512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
1521  --bindir=DIR            user executables [EPREFIX/bin]
1522  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1528  --libdir=DIR            object code libraries [EPREFIX/lib]
1529  --includedir=DIR        C header files [PREFIX/include]
1530  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533  --infodir=DIR           info documentation [DATAROOTDIR/info]
1534  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535  --mandir=DIR            man documentation [DATAROOTDIR/man]
1536  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXmu]
1537  --htmldir=DIR           html documentation [DOCDIR]
1538  --dvidir=DIR            dvi documentation [DOCDIR]
1539  --pdfdir=DIR            pdf documentation [DOCDIR]
1540  --psdir=DIR             ps documentation [DOCDIR]
1541_ACEOF
1542
1543  cat <<\_ACEOF
1544
1545Program names:
1546  --program-prefix=PREFIX            prepend PREFIX to installed program names
1547  --program-suffix=SUFFIX            append SUFFIX to installed program names
1548  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550System types:
1551  --build=BUILD     configure for building on BUILD [guessed]
1552  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557  case $ac_init_help in
1558     short | recursive ) echo "Configuration of libXmu 1.1.4:";;
1559   esac
1560  cat <<\_ACEOF
1561
1562Optional Features:
1563  --disable-option-checking  ignore unrecognized --enable/--with options
1564  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566  --enable-dependency-tracking
1567                          do not reject slow dependency extractors
1568  --disable-dependency-tracking
1569                          speeds up one-time build
1570  --enable-silent-rules   less verbose build output (undo: "make V=1")
1571  --disable-silent-rules  verbose build output (undo: "make V=0")
1572  --enable-shared[=PKGS]  build shared libraries [default=yes]
1573  --enable-static[=PKGS]  build static libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577  --disable-selective-werror
1578                          Turn off selective compiler errors. (default:
1579                          enabled)
1580  --enable-strict-compilation
1581                          Enable all warnings from compiler and make them
1582                          errors (default: disabled)
1583  --enable-docs           Enable building the documentation (default: yes)
1584  --enable-lint-library   Create lint library (default: disabled)
1585
1586Optional Packages:
1587  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1588  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1589  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1590                          both]
1591  --with-aix-soname=aix|svr4|both
1592                          shared library versioning (aka "SONAME") variant to
1593                          provide on AIX, [default=aix].
1594  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1596                          compiler's sysroot if not specified).
1597  --with-xmlto            Use xmlto to regenerate documentation (default:
1598                          auto)
1599  --with-fop              Use fop to regenerate documentation (default: auto)
1600  --with-xsltproc         Use xsltproc for the transformation of XML documents
1601                          (default: auto)
1602  --with-lint             Use a lint-style source code checker (default:
1603                          disabled)
1604
1605Some influential environment variables:
1606  CC          C compiler command
1607  CFLAGS      C compiler flags
1608  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609              nonstandard directory <lib dir>
1610  LIBS        libraries to pass to the linker, e.g. -l<library>
1611  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612              you have headers in a nonstandard directory <include dir>
1613  LT_SYS_LIBRARY_PATH
1614              User-defined run-time library search path.
1615  PKG_CONFIG  path to pkg-config utility
1616  PKG_CONFIG_PATH
1617              directories to add to pkg-config's search path
1618  PKG_CONFIG_LIBDIR
1619              path overriding pkg-config's built-in search path
1620  XMLTO       Path to xmlto command
1621  FOP         Path to fop command
1622  XSLTPROC    Path to xsltproc command
1623  XMU_CFLAGS  C compiler flags for XMU, overriding pkg-config
1624  XMU_LIBS    linker flags for XMU, overriding pkg-config
1625  XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config
1626  XMUU_LIBS   linker flags for XMUU, overriding pkg-config
1627  LINT        Path to a lint-style command
1628  LINT_FLAGS  Flags for the lint-style command
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
1633Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues>.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639  # If there are subdirs, report their specific --help.
1640  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641    test -d "$ac_dir" ||
1642      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643      continue
1644    ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650  # A ".." for each directory in $ac_dir_suffix.
1651  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652  case $ac_top_builddir_sub in
1653  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655  esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663  .)  # We are building in place.
1664    ac_srcdir=.
1665    ac_top_srcdir=$ac_top_builddir_sub
1666    ac_abs_top_srcdir=$ac_pwd ;;
1667  [\\/]* | ?:[\\/]* )  # Absolute name.
1668    ac_srcdir=$srcdir$ac_dir_suffix;
1669    ac_top_srcdir=$srcdir
1670    ac_abs_top_srcdir=$srcdir ;;
1671  *) # Relative name.
1672    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673    ac_top_srcdir=$ac_top_build_prefix$srcdir
1674    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678    cd "$ac_dir" || { ac_status=$?; continue; }
1679    # Check for configure.gnu first; this name is used for a wrapper for
1680    # Metaconfig's "Configure" on case-insensitive file systems.
1681    if test -f "$ac_srcdir/configure.gnu"; then
1682      echo &&
1683      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684    elif test -f "$ac_srcdir/configure"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure" --help=recursive
1687    else
1688      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689    fi || ac_status=$?
1690    cd "$ac_pwd" || { ac_status=$?; break; }
1691  done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696  cat <<\_ACEOF
1697libXmu configure 1.1.4
1698generated by GNU Autoconf 2.71
1699
1700Copyright (C) 2021 Free Software Foundation, Inc.
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
1704  exit
1705fi
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext conftest.beam
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724printf "%s\n" "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext
1737then :
1738  ac_retval=0
1739else $as_nop
1740  printf "%s\n" "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743	ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751# -------------------------------------------------------
1752# Tests whether HEADER exists and can be compiled using the include files in
1753# INCLUDES, setting the cache variable VAR accordingly.
1754ac_fn_c_check_header_compile ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758printf %s "checking for $2... " >&6; }
1759if eval test \${$3+y}
1760then :
1761  printf %s "(cached) " >&6
1762else $as_nop
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"
1769then :
1770  eval "$3=yes"
1771else $as_nop
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778printf "%s\n" "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_header_compile
1782
1783# ac_fn_c_try_link LINENO
1784# -----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_link ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1790  if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796printf "%s\n" "$ac_try_echo"; } >&5
1797  (eval "$ac_link") 2>conftest.err
1798  ac_status=$?
1799  if test -s conftest.err; then
1800    grep -v '^ *+' conftest.err >conftest.er1
1801    cat conftest.er1 >&5
1802    mv -f conftest.er1 conftest.err
1803  fi
1804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && {
1806	 test -z "$ac_c_werror_flag" ||
1807	 test ! -s conftest.err
1808       } && test -s conftest$ac_exeext && {
1809	 test "$cross_compiling" = yes ||
1810	 test -x conftest$ac_exeext
1811       }
1812then :
1813  ac_retval=0
1814else $as_nop
1815  printf "%s\n" "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818	ac_retval=1
1819fi
1820  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822  # interfere with the next link command; also delete a directory that is
1823  # left behind by Apple's compiler.  We do this before executing the actions.
1824  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_link
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837printf %s "checking for $2... " >&6; }
1838if eval test \${$3+y}
1839then :
1840  printf %s "(cached) " >&6
1841else $as_nop
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849   which can conflict with char $2 (); below.  */
1850
1851#include <limits.h>
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main (void)
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"
1877then :
1878  eval "$3=yes"
1879else $as_nop
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883    conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887printf "%s\n" "$ac_res" >&6; }
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1893# ------------------------------------------------------------------
1894# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1896ac_fn_check_decl ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  as_decl_name=`echo $2|sed 's/ *(.*//'`
1900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901printf %s "checking whether $as_decl_name is declared... " >&6; }
1902if eval test \${$3+y}
1903then :
1904  printf %s "(cached) " >&6
1905else $as_nop
1906  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907  eval ac_save_FLAGS=\$$6
1908  as_fn_append $6 " $5"
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912int
1913main (void)
1914{
1915#ifndef $as_decl_name
1916#ifdef __cplusplus
1917  (void) $as_decl_use;
1918#else
1919  (void) $as_decl_name;
1920#endif
1921#endif
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_compile "$LINENO"
1928then :
1929  eval "$3=yes"
1930else $as_nop
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1934  eval $6=\$ac_save_FLAGS
1935
1936fi
1937eval ac_res=\$$3
1938	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939printf "%s\n" "$ac_res" >&6; }
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_check_decl
1943ac_configure_args_raw=
1944for ac_arg
1945do
1946  case $ac_arg in
1947  *\'*)
1948    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949  esac
1950  as_fn_append ac_configure_args_raw " '$ac_arg'"
1951done
1952
1953case $ac_configure_args_raw in
1954  *$as_nl*)
1955    ac_safe_unquote= ;;
1956  *)
1957    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1958    ac_unsafe_a="$ac_unsafe_z#~"
1959    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1960    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1961esac
1962
1963cat >config.log <<_ACEOF
1964This file contains any messages produced by compilers while
1965running configure, to aid debugging if configure makes a mistake.
1966
1967It was created by libXmu $as_me 1.1.4, which was
1968generated by GNU Autoconf 2.71.  Invocation command line was
1969
1970  $ $0$ac_configure_args_raw
1971
1972_ACEOF
1973exec 5>>config.log
1974{
1975cat <<_ASUNAME
1976## --------- ##
1977## Platform. ##
1978## --------- ##
1979
1980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1988
1989/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1990/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1991/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1993/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1994/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1995/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1996
1997_ASUNAME
1998
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  case $as_dir in #(((
2004    '') as_dir=./ ;;
2005    */) ;;
2006    *) as_dir=$as_dir/ ;;
2007  esac
2008    printf "%s\n" "PATH: $as_dir"
2009  done
2010IFS=$as_save_IFS
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035  for ac_arg
2036  do
2037    case $ac_arg in
2038    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040    | -silent | --silent | --silen | --sile | --sil)
2041      continue ;;
2042    *\'*)
2043      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    esac
2045    case $ac_pass in
2046    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047    2)
2048      as_fn_append ac_configure_args1 " '$ac_arg'"
2049      if test $ac_must_keep_next = true; then
2050	ac_must_keep_next=false # Got value, back to normal.
2051      else
2052	case $ac_arg in
2053	  *=* | --config-cache | -C | -disable-* | --disable-* \
2054	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056	  | -with-* | --with-* | -without-* | --without-* | --x)
2057	    case "$ac_configure_args0 " in
2058	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059	    esac
2060	    ;;
2061	  -* ) ac_must_keep_next=true ;;
2062	esac
2063      fi
2064      as_fn_append ac_configure_args " '$ac_arg'"
2065      ;;
2066    esac
2067  done
2068done
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log.  We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077trap 'exit_status=$?
2078  # Sanitize IFS.
2079  IFS=" ""	$as_nl"
2080  # Save into config.log some information that might help in debugging.
2081  {
2082    echo
2083
2084    printf "%s\n" "## ---------------- ##
2085## Cache variables. ##
2086## ---------------- ##"
2087    echo
2088    # The following way of writing the cache mishandles newlines in values,
2089(
2090  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091    eval ac_val=\$$ac_var
2092    case $ac_val in #(
2093    *${as_nl}*)
2094      case $ac_var in #(
2095      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097      esac
2098      case $ac_var in #(
2099      _ | IFS | as_nl) ;; #(
2100      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101      *) { eval $ac_var=; unset $ac_var;} ;;
2102      esac ;;
2103    esac
2104  done
2105  (set) 2>&1 |
2106    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107    *${as_nl}ac_space=\ *)
2108      sed -n \
2109	"s/'\''/'\''\\\\'\'''\''/g;
2110	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111      ;; #(
2112    *)
2113      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114      ;;
2115    esac |
2116    sort
2117)
2118    echo
2119
2120    printf "%s\n" "## ----------------- ##
2121## Output variables. ##
2122## ----------------- ##"
2123    echo
2124    for ac_var in $ac_subst_vars
2125    do
2126      eval ac_val=\$$ac_var
2127      case $ac_val in
2128      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129      esac
2130      printf "%s\n" "$ac_var='\''$ac_val'\''"
2131    done | sort
2132    echo
2133
2134    if test -n "$ac_subst_files"; then
2135      printf "%s\n" "## ------------------- ##
2136## File substitutions. ##
2137## ------------------- ##"
2138      echo
2139      for ac_var in $ac_subst_files
2140      do
2141	eval ac_val=\$$ac_var
2142	case $ac_val in
2143	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144	esac
2145	printf "%s\n" "$ac_var='\''$ac_val'\''"
2146      done | sort
2147      echo
2148    fi
2149
2150    if test -s confdefs.h; then
2151      printf "%s\n" "## ----------- ##
2152## confdefs.h. ##
2153## ----------- ##"
2154      echo
2155      cat confdefs.h
2156      echo
2157    fi
2158    test "$ac_signal" != 0 &&
2159      printf "%s\n" "$as_me: caught signal $ac_signal"
2160    printf "%s\n" "$as_me: exit $exit_status"
2161  } >&5
2162  rm -f core *.core core.conftest.* &&
2163    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164    exit $exit_status
2165' 0
2166for ac_signal in 1 2 13 15; do
2167  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168done
2169ac_signal=0
2170
2171# confdefs.h avoids OS command line length limits that DEFS can exceed.
2172rm -f -r conftest* confdefs.h
2173
2174printf "%s\n" "/* confdefs.h */" > confdefs.h
2175
2176# Predefined preprocessor variables.
2177
2178printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2179
2180printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2181
2182printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2183
2184printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2185
2186printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2187
2188printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2189
2190
2191# Let the site file select an alternate cache file if it wants to.
2192# Prefer an explicitly selected file to automatically selected ones.
2193if test -n "$CONFIG_SITE"; then
2194  ac_site_files="$CONFIG_SITE"
2195elif test "x$prefix" != xNONE; then
2196  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2197else
2198  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2199fi
2200
2201for ac_site_file in $ac_site_files
2202do
2203  case $ac_site_file in #(
2204  */*) :
2205     ;; #(
2206  *) :
2207    ac_site_file=./$ac_site_file ;;
2208esac
2209  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2210    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2212    sed 's/^/| /' "$ac_site_file" >&5
2213    . "$ac_site_file" \
2214      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2216as_fn_error $? "failed to load site script $ac_site_file
2217See \`config.log' for more details" "$LINENO" 5; }
2218  fi
2219done
2220
2221if test -r "$cache_file"; then
2222  # Some versions of bash will fail to source /dev/null (special files
2223  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2224  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2227    case $cache_file in
2228      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229      *)                      . "./$cache_file";;
2230    esac
2231  fi
2232else
2233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2235  >$cache_file
2236fi
2237
2238as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2239# Test code for whether the C compiler supports C89 (global declarations)
2240ac_c_conftest_c89_globals='
2241/* Does the compiler advertise C89 conformance?
2242   Do not test the value of __STDC__, because some compilers set it to 0
2243   while being otherwise adequately conformant. */
2244#if !defined __STDC__
2245# error "Compiler does not advertise C89 conformance"
2246#endif
2247
2248#include <stddef.h>
2249#include <stdarg.h>
2250struct stat;
2251/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2252struct buf { int x; };
2253struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2254static char *e (p, i)
2255     char **p;
2256     int i;
2257{
2258  return p[i];
2259}
2260static char *f (char * (*g) (char **, int), char **p, ...)
2261{
2262  char *s;
2263  va_list v;
2264  va_start (v,p);
2265  s = g (p, va_arg (v,int));
2266  va_end (v);
2267  return s;
2268}
2269
2270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2271   function prototypes and stuff, but not \xHH hex character constants.
2272   These do not provoke an error unfortunately, instead are silently treated
2273   as an "x".  The following induces an error, until -std is added to get
2274   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2275   array size at least.  It is necessary to write \x00 == 0 to get something
2276   that is true only with -std.  */
2277int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2278
2279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2280   inside strings and character constants.  */
2281#define FOO(x) '\''x'\''
2282int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2283
2284int test (int i, double x);
2285struct s1 {int (*f) (int a);};
2286struct s2 {int (*f) (double a);};
2287int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2288               int, int);'
2289
2290# Test code for whether the C compiler supports C89 (body of main).
2291ac_c_conftest_c89_main='
2292ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2293'
2294
2295# Test code for whether the C compiler supports C99 (global declarations)
2296ac_c_conftest_c99_globals='
2297// Does the compiler advertise C99 conformance?
2298#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2299# error "Compiler does not advertise C99 conformance"
2300#endif
2301
2302#include <stdbool.h>
2303extern int puts (const char *);
2304extern int printf (const char *, ...);
2305extern int dprintf (int, const char *, ...);
2306extern void *malloc (size_t);
2307
2308// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2309// dprintf is used instead of fprintf to avoid needing to declare
2310// FILE and stderr.
2311#define debug(...) dprintf (2, __VA_ARGS__)
2312#define showlist(...) puts (#__VA_ARGS__)
2313#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2314static void
2315test_varargs_macros (void)
2316{
2317  int x = 1234;
2318  int y = 5678;
2319  debug ("Flag");
2320  debug ("X = %d\n", x);
2321  showlist (The first, second, and third items.);
2322  report (x>y, "x is %d but y is %d", x, y);
2323}
2324
2325// Check long long types.
2326#define BIG64 18446744073709551615ull
2327#define BIG32 4294967295ul
2328#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2329#if !BIG_OK
2330  #error "your preprocessor is broken"
2331#endif
2332#if BIG_OK
2333#else
2334  #error "your preprocessor is broken"
2335#endif
2336static long long int bignum = -9223372036854775807LL;
2337static unsigned long long int ubignum = BIG64;
2338
2339struct incomplete_array
2340{
2341  int datasize;
2342  double data[];
2343};
2344
2345struct named_init {
2346  int number;
2347  const wchar_t *name;
2348  double average;
2349};
2350
2351typedef const char *ccp;
2352
2353static inline int
2354test_restrict (ccp restrict text)
2355{
2356  // See if C++-style comments work.
2357  // Iterate through items via the restricted pointer.
2358  // Also check for declarations in for loops.
2359  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2360    continue;
2361  return 0;
2362}
2363
2364// Check varargs and va_copy.
2365static bool
2366test_varargs (const char *format, ...)
2367{
2368  va_list args;
2369  va_start (args, format);
2370  va_list args_copy;
2371  va_copy (args_copy, args);
2372
2373  const char *str = "";
2374  int number = 0;
2375  float fnumber = 0;
2376
2377  while (*format)
2378    {
2379      switch (*format++)
2380	{
2381	case '\''s'\'': // string
2382	  str = va_arg (args_copy, const char *);
2383	  break;
2384	case '\''d'\'': // int
2385	  number = va_arg (args_copy, int);
2386	  break;
2387	case '\''f'\'': // float
2388	  fnumber = va_arg (args_copy, double);
2389	  break;
2390	default:
2391	  break;
2392	}
2393    }
2394  va_end (args_copy);
2395  va_end (args);
2396
2397  return *str && number && fnumber;
2398}
2399'
2400
2401# Test code for whether the C compiler supports C99 (body of main).
2402ac_c_conftest_c99_main='
2403  // Check bool.
2404  _Bool success = false;
2405  success |= (argc != 0);
2406
2407  // Check restrict.
2408  if (test_restrict ("String literal") == 0)
2409    success = true;
2410  char *restrict newvar = "Another string";
2411
2412  // Check varargs.
2413  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2414  test_varargs_macros ();
2415
2416  // Check flexible array members.
2417  struct incomplete_array *ia =
2418    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2419  ia->datasize = 10;
2420  for (int i = 0; i < ia->datasize; ++i)
2421    ia->data[i] = i * 1.234;
2422
2423  // Check named initializers.
2424  struct named_init ni = {
2425    .number = 34,
2426    .name = L"Test wide string",
2427    .average = 543.34343,
2428  };
2429
2430  ni.number = 58;
2431
2432  int dynamic_array[ni.number];
2433  dynamic_array[0] = argv[0][0];
2434  dynamic_array[ni.number - 1] = 543;
2435
2436  // work around unused variable warnings
2437  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2438	 || dynamic_array[ni.number - 1] != 543);
2439'
2440
2441# Test code for whether the C compiler supports C11 (global declarations)
2442ac_c_conftest_c11_globals='
2443// Does the compiler advertise C11 conformance?
2444#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2445# error "Compiler does not advertise C11 conformance"
2446#endif
2447
2448// Check _Alignas.
2449char _Alignas (double) aligned_as_double;
2450char _Alignas (0) no_special_alignment;
2451extern char aligned_as_int;
2452char _Alignas (0) _Alignas (int) aligned_as_int;
2453
2454// Check _Alignof.
2455enum
2456{
2457  int_alignment = _Alignof (int),
2458  int_array_alignment = _Alignof (int[100]),
2459  char_alignment = _Alignof (char)
2460};
2461_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2462
2463// Check _Noreturn.
2464int _Noreturn does_not_return (void) { for (;;) continue; }
2465
2466// Check _Static_assert.
2467struct test_static_assert
2468{
2469  int x;
2470  _Static_assert (sizeof (int) <= sizeof (long int),
2471                  "_Static_assert does not work in struct");
2472  long int y;
2473};
2474
2475// Check UTF-8 literals.
2476#define u8 syntax error!
2477char const utf8_literal[] = u8"happens to be ASCII" "another string";
2478
2479// Check duplicate typedefs.
2480typedef long *long_ptr;
2481typedef long int *long_ptr;
2482typedef long_ptr long_ptr;
2483
2484// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2485struct anonymous
2486{
2487  union {
2488    struct { int i; int j; };
2489    struct { int k; long int l; } w;
2490  };
2491  int m;
2492} v1;
2493'
2494
2495# Test code for whether the C compiler supports C11 (body of main).
2496ac_c_conftest_c11_main='
2497  _Static_assert ((offsetof (struct anonymous, i)
2498		   == offsetof (struct anonymous, w.k)),
2499		  "Anonymous union alignment botch");
2500  v1.i = 2;
2501  v1.w.k = 5;
2502  ok |= v1.i != 5;
2503'
2504
2505# Test code for whether the C compiler supports C11 (complete).
2506ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2507${ac_c_conftest_c99_globals}
2508${ac_c_conftest_c11_globals}
2509
2510int
2511main (int argc, char **argv)
2512{
2513  int ok = 0;
2514  ${ac_c_conftest_c89_main}
2515  ${ac_c_conftest_c99_main}
2516  ${ac_c_conftest_c11_main}
2517  return ok;
2518}
2519"
2520
2521# Test code for whether the C compiler supports C99 (complete).
2522ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2523${ac_c_conftest_c99_globals}
2524
2525int
2526main (int argc, char **argv)
2527{
2528  int ok = 0;
2529  ${ac_c_conftest_c89_main}
2530  ${ac_c_conftest_c99_main}
2531  return ok;
2532}
2533"
2534
2535# Test code for whether the C compiler supports C89 (complete).
2536ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2537
2538int
2539main (int argc, char **argv)
2540{
2541  int ok = 0;
2542  ${ac_c_conftest_c89_main}
2543  return ok;
2544}
2545"
2546
2547as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2548as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2549as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2550as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2551as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2552as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2553as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2554as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2555as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2556as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2557
2558# Auxiliary files required by this configure script.
2559ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2560
2561# Locations in which to look for auxiliary files.
2562ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2563
2564# Search for a directory containing all of the required auxiliary files,
2565# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2566# If we don't find one directory that contains all the files we need,
2567# we report the set of missing files from the *first* directory in
2568# $ac_aux_dir_candidates and give up.
2569ac_missing_aux_files=""
2570ac_first_candidate=:
2571printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573as_found=false
2574for as_dir in $ac_aux_dir_candidates
2575do
2576  IFS=$as_save_IFS
2577  case $as_dir in #(((
2578    '') as_dir=./ ;;
2579    */) ;;
2580    *) as_dir=$as_dir/ ;;
2581  esac
2582  as_found=:
2583
2584  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2585  ac_aux_dir_found=yes
2586  ac_install_sh=
2587  for ac_aux in $ac_aux_files
2588  do
2589    # As a special case, if "install-sh" is required, that requirement
2590    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2591    # and $ac_install_sh is set appropriately for whichever one is found.
2592    if test x"$ac_aux" = x"install-sh"
2593    then
2594      if test -f "${as_dir}install-sh"; then
2595        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2596        ac_install_sh="${as_dir}install-sh -c"
2597      elif test -f "${as_dir}install.sh"; then
2598        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2599        ac_install_sh="${as_dir}install.sh -c"
2600      elif test -f "${as_dir}shtool"; then
2601        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2602        ac_install_sh="${as_dir}shtool install -c"
2603      else
2604        ac_aux_dir_found=no
2605        if $ac_first_candidate; then
2606          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2607        else
2608          break
2609        fi
2610      fi
2611    else
2612      if test -f "${as_dir}${ac_aux}"; then
2613        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2614      else
2615        ac_aux_dir_found=no
2616        if $ac_first_candidate; then
2617          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2618        else
2619          break
2620        fi
2621      fi
2622    fi
2623  done
2624  if test "$ac_aux_dir_found" = yes; then
2625    ac_aux_dir="$as_dir"
2626    break
2627  fi
2628  ac_first_candidate=false
2629
2630  as_found=false
2631done
2632IFS=$as_save_IFS
2633if $as_found
2634then :
2635
2636else $as_nop
2637  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2638fi
2639
2640
2641# These three variables are undocumented and unsupported,
2642# and are intended to be withdrawn in a future Autoconf release.
2643# They can cause serious problems if a builder's source tree is in a directory
2644# whose full name contains unusual characters.
2645if test -f "${ac_aux_dir}config.guess"; then
2646  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2647fi
2648if test -f "${ac_aux_dir}config.sub"; then
2649  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2650fi
2651if test -f "$ac_aux_dir/configure"; then
2652  ac_configure="$SHELL ${ac_aux_dir}configure"
2653fi
2654
2655# Check that the precious variables saved in the cache have kept the same
2656# value.
2657ac_cache_corrupted=false
2658for ac_var in $ac_precious_vars; do
2659  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660  eval ac_new_set=\$ac_env_${ac_var}_set
2661  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662  eval ac_new_val=\$ac_env_${ac_var}_value
2663  case $ac_old_set,$ac_new_set in
2664    set,)
2665      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2666printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2667      ac_cache_corrupted=: ;;
2668    ,set)
2669      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2670printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2671      ac_cache_corrupted=: ;;
2672    ,);;
2673    *)
2674      if test "x$ac_old_val" != "x$ac_new_val"; then
2675	# differences in whitespace do not lead to failure.
2676	ac_old_val_w=`echo x $ac_old_val`
2677	ac_new_val_w=`echo x $ac_new_val`
2678	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2679	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2680printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681	  ac_cache_corrupted=:
2682	else
2683	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2684printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685	  eval $ac_var=\$ac_old_val
2686	fi
2687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2688printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2690printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2691      fi;;
2692  esac
2693  # Pass precious variables to config.status.
2694  if test "$ac_new_set" = set; then
2695    case $ac_new_val in
2696    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2697    *) ac_arg=$ac_var=$ac_new_val ;;
2698    esac
2699    case " $ac_configure_args " in
2700      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2701      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702    esac
2703  fi
2704done
2705if $ac_cache_corrupted; then
2706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2709printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2710  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2711	    and start over" "$LINENO" 5
2712fi
2713## -------------------- ##
2714## Main body of script. ##
2715## -------------------- ##
2716
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725ac_config_headers="$ac_config_headers config.h"
2726
2727
2728# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2729# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2730# to avoid autoconf errors.
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742# Expand $ac_aux_dir to an absolute path.
2743am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750if test -n "$ac_tool_prefix"; then
2751  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754printf %s "checking for $ac_word... " >&6; }
2755if test ${ac_cv_prog_CC+y}
2756then :
2757  printf %s "(cached) " >&6
2758else $as_nop
2759  if test -n "$CC"; then
2760  ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  case $as_dir in #(((
2767    '') as_dir=./ ;;
2768    */) ;;
2769    *) as_dir=$as_dir/ ;;
2770  esac
2771    for ac_exec_ext in '' $ac_executable_extensions; do
2772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2773    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
2785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786printf "%s\n" "$CC" >&6; }
2787else
2788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789printf "%s\n" "no" >&6; }
2790fi
2791
2792
2793fi
2794if test -z "$ac_cv_prog_CC"; then
2795  ac_ct_CC=$CC
2796  # Extract the first word of "gcc", so it can be a program name with args.
2797set dummy gcc; ac_word=$2
2798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799printf %s "checking for $ac_word... " >&6; }
2800if test ${ac_cv_prog_ac_ct_CC+y}
2801then :
2802  printf %s "(cached) " >&6
2803else $as_nop
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  case $as_dir in #(((
2812    '') as_dir=./ ;;
2813    */) ;;
2814    *) as_dir=$as_dir/ ;;
2815  esac
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2818    ac_cv_prog_ac_ct_CC="gcc"
2819    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
2830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831printf "%s\n" "$ac_ct_CC" >&6; }
2832else
2833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834printf "%s\n" "no" >&6; }
2835fi
2836
2837  if test "x$ac_ct_CC" = x; then
2838    CC=""
2839  else
2840    case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846    CC=$ac_ct_CC
2847  fi
2848else
2849  CC="$ac_cv_prog_CC"
2850fi
2851
2852if test -z "$CC"; then
2853          if test -n "$ac_tool_prefix"; then
2854    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}cc; ac_word=$2
2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857printf %s "checking for $ac_word... " >&6; }
2858if test ${ac_cv_prog_CC+y}
2859then :
2860  printf %s "(cached) " >&6
2861else $as_nop
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  case $as_dir in #(((
2870    '') as_dir=./ ;;
2871    */) ;;
2872    *) as_dir=$as_dir/ ;;
2873  esac
2874    for ac_exec_ext in '' $ac_executable_extensions; do
2875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2876    ac_cv_prog_CC="${ac_tool_prefix}cc"
2877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2878    break 2
2879  fi
2880done
2881  done
2882IFS=$as_save_IFS
2883
2884fi
2885fi
2886CC=$ac_cv_prog_CC
2887if test -n "$CC"; then
2888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889printf "%s\n" "$CC" >&6; }
2890else
2891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892printf "%s\n" "no" >&6; }
2893fi
2894
2895
2896  fi
2897fi
2898if test -z "$CC"; then
2899  # Extract the first word of "cc", so it can be a program name with args.
2900set dummy cc; ac_word=$2
2901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902printf %s "checking for $ac_word... " >&6; }
2903if test ${ac_cv_prog_CC+y}
2904then :
2905  printf %s "(cached) " >&6
2906else $as_nop
2907  if test -n "$CC"; then
2908  ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
2910  ac_prog_rejected=no
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914  IFS=$as_save_IFS
2915  case $as_dir in #(((
2916    '') as_dir=./ ;;
2917    */) ;;
2918    *) as_dir=$as_dir/ ;;
2919  esac
2920    for ac_exec_ext in '' $ac_executable_extensions; do
2921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2922    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2923       ac_prog_rejected=yes
2924       continue
2925     fi
2926    ac_cv_prog_CC="cc"
2927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934if test $ac_prog_rejected = yes; then
2935  # We found a bogon in the path, so make sure we never use it.
2936  set dummy $ac_cv_prog_CC
2937  shift
2938  if test $# != 0; then
2939    # We chose a different compiler from the bogus one.
2940    # However, it has the same basename, so the bogon will be chosen
2941    # first if we set CC to just the basename; use the full file name.
2942    shift
2943    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2944  fi
2945fi
2946fi
2947fi
2948CC=$ac_cv_prog_CC
2949if test -n "$CC"; then
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951printf "%s\n" "$CC" >&6; }
2952else
2953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954printf "%s\n" "no" >&6; }
2955fi
2956
2957
2958fi
2959if test -z "$CC"; then
2960  if test -n "$ac_tool_prefix"; then
2961  for ac_prog in cl.exe
2962  do
2963    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966printf %s "checking for $ac_word... " >&6; }
2967if test ${ac_cv_prog_CC+y}
2968then :
2969  printf %s "(cached) " >&6
2970else $as_nop
2971  if test -n "$CC"; then
2972  ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977  IFS=$as_save_IFS
2978  case $as_dir in #(((
2979    '') as_dir=./ ;;
2980    */) ;;
2981    *) as_dir=$as_dir/ ;;
2982  esac
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998printf "%s\n" "$CC" >&6; }
2999else
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001printf "%s\n" "no" >&6; }
3002fi
3003
3004
3005    test -n "$CC" && break
3006  done
3007fi
3008if test -z "$CC"; then
3009  ac_ct_CC=$CC
3010  for ac_prog in cl.exe
3011do
3012  # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; ac_word=$2
3014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015printf %s "checking for $ac_word... " >&6; }
3016if test ${ac_cv_prog_ac_ct_CC+y}
3017then :
3018  printf %s "(cached) " >&6
3019else $as_nop
3020  if test -n "$ac_ct_CC"; then
3021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  case $as_dir in #(((
3028    '') as_dir=./ ;;
3029    */) ;;
3030    *) as_dir=$as_dir/ ;;
3031  esac
3032    for ac_exec_ext in '' $ac_executable_extensions; do
3033  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3034    ac_cv_prog_ac_ct_CC="$ac_prog"
3035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3036    break 2
3037  fi
3038done
3039  done
3040IFS=$as_save_IFS
3041
3042fi
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
3046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047printf "%s\n" "$ac_ct_CC" >&6; }
3048else
3049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050printf "%s\n" "no" >&6; }
3051fi
3052
3053
3054  test -n "$ac_ct_CC" && break
3055done
3056
3057  if test "x$ac_ct_CC" = x; then
3058    CC=""
3059  else
3060    case $cross_compiling:$ac_tool_warned in
3061yes:)
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066    CC=$ac_ct_CC
3067  fi
3068fi
3069
3070fi
3071if test -z "$CC"; then
3072  if test -n "$ac_tool_prefix"; then
3073  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3074set dummy ${ac_tool_prefix}clang; ac_word=$2
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076printf %s "checking for $ac_word... " >&6; }
3077if test ${ac_cv_prog_CC+y}
3078then :
3079  printf %s "(cached) " >&6
3080else $as_nop
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  case $as_dir in #(((
3089    '') as_dir=./ ;;
3090    */) ;;
3091    *) as_dir=$as_dir/ ;;
3092  esac
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3095    ac_cv_prog_CC="${ac_tool_prefix}clang"
3096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108printf "%s\n" "$CC" >&6; }
3109else
3110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111printf "%s\n" "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_CC"; then
3117  ac_ct_CC=$CC
3118  # Extract the first word of "clang", so it can be a program name with args.
3119set dummy clang; ac_word=$2
3120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121printf %s "checking for $ac_word... " >&6; }
3122if test ${ac_cv_prog_ac_ct_CC+y}
3123then :
3124  printf %s "(cached) " >&6
3125else $as_nop
3126  if test -n "$ac_ct_CC"; then
3127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  case $as_dir in #(((
3134    '') as_dir=./ ;;
3135    */) ;;
3136    *) as_dir=$as_dir/ ;;
3137  esac
3138    for ac_exec_ext in '' $ac_executable_extensions; do
3139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3140    ac_cv_prog_ac_ct_CC="clang"
3141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3142    break 2
3143  fi
3144done
3145  done
3146IFS=$as_save_IFS
3147
3148fi
3149fi
3150ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151if test -n "$ac_ct_CC"; then
3152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153printf "%s\n" "$ac_ct_CC" >&6; }
3154else
3155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156printf "%s\n" "no" >&6; }
3157fi
3158
3159  if test "x$ac_ct_CC" = x; then
3160    CC=""
3161  else
3162    case $cross_compiling:$ac_tool_warned in
3163yes:)
3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166ac_tool_warned=yes ;;
3167esac
3168    CC=$ac_ct_CC
3169  fi
3170else
3171  CC="$ac_cv_prog_CC"
3172fi
3173
3174fi
3175
3176
3177test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3179as_fn_error $? "no acceptable C compiler found in \$PATH
3180See \`config.log' for more details" "$LINENO" 5; }
3181
3182# Provide some information about the compiler.
3183printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184set X $ac_compile
3185ac_compiler=$2
3186for ac_option in --version -v -V -qversion -version; do
3187  { { ac_try="$ac_compiler $ac_option >&5"
3188case "(($ac_try" in
3189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190  *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193printf "%s\n" "$ac_try_echo"; } >&5
3194  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195  ac_status=$?
3196  if test -s conftest.err; then
3197    sed '10a\
3198... rest of stderr output deleted ...
3199         10q' conftest.err >conftest.er1
3200    cat conftest.er1 >&5
3201  fi
3202  rm -f conftest.er1 conftest.err
3203  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }
3205done
3206
3207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h.  */
3209
3210int
3211main (void)
3212{
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218ac_clean_files_save=$ac_clean_files
3219ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220# Try to create an executable without -o first, disregard a.out.
3221# It will help us diagnose broken compilers, and finding out an intuition
3222# of exeext.
3223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224printf %s "checking whether the C compiler works... " >&6; }
3225ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227# The possible output files:
3228ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230ac_rmfiles=
3231for ac_file in $ac_files
3232do
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236  esac
3237done
3238rm -f $ac_rmfiles
3239
3240if { { ac_try="$ac_link_default"
3241case "(($ac_try" in
3242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243  *) ac_try_echo=$ac_try;;
3244esac
3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246printf "%s\n" "$ac_try_echo"; } >&5
3247  (eval "$ac_link_default") 2>&5
3248  ac_status=$?
3249  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250  test $ac_status = 0; }
3251then :
3252  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3255# so that the user can short-circuit this test for compilers unknown to
3256# Autoconf.
3257for ac_file in $ac_files ''
3258do
3259  test -f "$ac_file" || continue
3260  case $ac_file in
3261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262	;;
3263    [ab].out )
3264	# We found the default executable, but exeext='' is most
3265	# certainly right.
3266	break;;
3267    *.* )
3268	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3269	then :; else
3270	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271	fi
3272	# We set ac_cv_exeext here because the later test for it is not
3273	# safe: cross compilers may not add the suffix if given an `-o'
3274	# argument, so we may need to know it at that point already.
3275	# Even if this section looks crufty: it has the advantage of
3276	# actually working.
3277	break;;
3278    * )
3279	break;;
3280  esac
3281done
3282test "$ac_cv_exeext" = no && ac_cv_exeext=
3283
3284else $as_nop
3285  ac_file=''
3286fi
3287if test -z "$ac_file"
3288then :
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290printf "%s\n" "no" >&6; }
3291printf "%s\n" "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3296as_fn_error 77 "C compiler cannot create executables
3297See \`config.log' for more details" "$LINENO" 5; }
3298else $as_nop
3299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300printf "%s\n" "yes" >&6; }
3301fi
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303printf %s "checking for C compiler default output file name... " >&6; }
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305printf "%s\n" "$ac_file" >&6; }
3306ac_exeext=$ac_cv_exeext
3307
3308rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309ac_clean_files=$ac_clean_files_save
3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311printf %s "checking for suffix of executables... " >&6; }
3312if { { ac_try="$ac_link"
3313case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318printf "%s\n" "$ac_try_echo"; } >&5
3319  (eval "$ac_link") 2>&5
3320  ac_status=$?
3321  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322  test $ac_status = 0; }
3323then :
3324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3326# work properly (i.e., refer to `conftest.exe'), while it won't with
3327# `rm'.
3328for ac_file in conftest.exe conftest conftest.*; do
3329  test -f "$ac_file" || continue
3330  case $ac_file in
3331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333	  break;;
3334    * ) break;;
3335  esac
3336done
3337else $as_nop
3338  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3340as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3341See \`config.log' for more details" "$LINENO" 5; }
3342fi
3343rm -f conftest conftest$ac_cv_exeext
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3345printf "%s\n" "$ac_cv_exeext" >&6; }
3346
3347rm -f conftest.$ac_ext
3348EXEEXT=$ac_cv_exeext
3349ac_exeext=$EXEEXT
3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352#include <stdio.h>
3353int
3354main (void)
3355{
3356FILE *f = fopen ("conftest.out", "w");
3357 return ferror (f) || fclose (f) != 0;
3358
3359  ;
3360  return 0;
3361}
3362_ACEOF
3363ac_clean_files="$ac_clean_files conftest.out"
3364# Check that the compiler produces executables we can run.  If not, either
3365# the compiler is broken, or we cross compile.
3366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367printf %s "checking whether we are cross compiling... " >&6; }
3368if test "$cross_compiling" != yes; then
3369  { { ac_try="$ac_link"
3370case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375printf "%s\n" "$ac_try_echo"; } >&5
3376  (eval "$ac_link") 2>&5
3377  ac_status=$?
3378  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379  test $ac_status = 0; }
3380  if { ac_try='./conftest$ac_cv_exeext'
3381  { { case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386printf "%s\n" "$ac_try_echo"; } >&5
3387  (eval "$ac_try") 2>&5
3388  ac_status=$?
3389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }; }; then
3391    cross_compiling=no
3392  else
3393    if test "$cross_compiling" = maybe; then
3394	cross_compiling=yes
3395    else
3396	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3398as_fn_error 77 "cannot run C compiled programs.
3399If you meant to cross compile, use \`--host'.
3400See \`config.log' for more details" "$LINENO" 5; }
3401    fi
3402  fi
3403fi
3404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405printf "%s\n" "$cross_compiling" >&6; }
3406
3407rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3408ac_clean_files=$ac_clean_files_save
3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3410printf %s "checking for suffix of object files... " >&6; }
3411if test ${ac_cv_objext+y}
3412then :
3413  printf %s "(cached) " >&6
3414else $as_nop
3415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main (void)
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.o conftest.obj
3427if { { ac_try="$ac_compile"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433printf "%s\n" "$ac_try_echo"; } >&5
3434  (eval "$ac_compile") 2>&5
3435  ac_status=$?
3436  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }
3438then :
3439  for ac_file in conftest.o conftest.obj conftest.*; do
3440  test -f "$ac_file" || continue;
3441  case $ac_file in
3442    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444       break;;
3445  esac
3446done
3447else $as_nop
3448  printf "%s\n" "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error $? "cannot compute suffix of object files: cannot compile
3454See \`config.log' for more details" "$LINENO" 5; }
3455fi
3456rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457fi
3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459printf "%s\n" "$ac_cv_objext" >&6; }
3460OBJEXT=$ac_cv_objext
3461ac_objext=$OBJEXT
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3463printf %s "checking whether the compiler supports GNU C... " >&6; }
3464if test ${ac_cv_c_compiler_gnu+y}
3465then :
3466  printf %s "(cached) " >&6
3467else $as_nop
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main (void)
3473{
3474#ifndef __GNUC__
3475       choke me
3476#endif
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482if ac_fn_c_try_compile "$LINENO"
3483then :
3484  ac_compiler_gnu=yes
3485else $as_nop
3486  ac_compiler_gnu=no
3487fi
3488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3489ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490
3491fi
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3493printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496if test $ac_compiler_gnu = yes; then
3497  GCC=yes
3498else
3499  GCC=
3500fi
3501ac_test_CFLAGS=${CFLAGS+y}
3502ac_save_CFLAGS=$CFLAGS
3503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504printf %s "checking whether $CC accepts -g... " >&6; }
3505if test ${ac_cv_prog_cc_g+y}
3506then :
3507  printf %s "(cached) " >&6
3508else $as_nop
3509  ac_save_c_werror_flag=$ac_c_werror_flag
3510   ac_c_werror_flag=yes
3511   ac_cv_prog_cc_g=no
3512   CFLAGS="-g"
3513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h.  */
3515
3516int
3517main (void)
3518{
3519
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524if ac_fn_c_try_compile "$LINENO"
3525then :
3526  ac_cv_prog_cc_g=yes
3527else $as_nop
3528  CFLAGS=""
3529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531
3532int
3533main (void)
3534{
3535
3536  ;
3537  return 0;
3538}
3539_ACEOF
3540if ac_fn_c_try_compile "$LINENO"
3541then :
3542
3543else $as_nop
3544  ac_c_werror_flag=$ac_save_c_werror_flag
3545	 CFLAGS="-g"
3546	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h.  */
3548
3549int
3550main (void)
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"
3558then :
3559  ac_cv_prog_cc_g=yes
3560fi
3561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3562fi
3563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3564fi
3565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3566   ac_c_werror_flag=$ac_save_c_werror_flag
3567fi
3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3569printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3570if test $ac_test_CFLAGS; then
3571  CFLAGS=$ac_save_CFLAGS
3572elif test $ac_cv_prog_cc_g = yes; then
3573  if test "$GCC" = yes; then
3574    CFLAGS="-g -O2"
3575  else
3576    CFLAGS="-g"
3577  fi
3578else
3579  if test "$GCC" = yes; then
3580    CFLAGS="-O2"
3581  else
3582    CFLAGS=
3583  fi
3584fi
3585ac_prog_cc_stdc=no
3586if test x$ac_prog_cc_stdc = xno
3587then :
3588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3589printf %s "checking for $CC option to enable C11 features... " >&6; }
3590if test ${ac_cv_prog_cc_c11+y}
3591then :
3592  printf %s "(cached) " >&6
3593else $as_nop
3594  ac_cv_prog_cc_c11=no
3595ac_save_CC=$CC
3596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598$ac_c_conftest_c11_program
3599_ACEOF
3600for ac_arg in '' -std=gnu11
3601do
3602  CC="$ac_save_CC $ac_arg"
3603  if ac_fn_c_try_compile "$LINENO"
3604then :
3605  ac_cv_prog_cc_c11=$ac_arg
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.beam
3608  test "x$ac_cv_prog_cc_c11" != "xno" && break
3609done
3610rm -f conftest.$ac_ext
3611CC=$ac_save_CC
3612fi
3613
3614if test "x$ac_cv_prog_cc_c11" = xno
3615then :
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617printf "%s\n" "unsupported" >&6; }
3618else $as_nop
3619  if test "x$ac_cv_prog_cc_c11" = x
3620then :
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3622printf "%s\n" "none needed" >&6; }
3623else $as_nop
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3625printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3626     CC="$CC $ac_cv_prog_cc_c11"
3627fi
3628  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3629  ac_prog_cc_stdc=c11
3630fi
3631fi
3632if test x$ac_prog_cc_stdc = xno
3633then :
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3635printf %s "checking for $CC option to enable C99 features... " >&6; }
3636if test ${ac_cv_prog_cc_c99+y}
3637then :
3638  printf %s "(cached) " >&6
3639else $as_nop
3640  ac_cv_prog_cc_c99=no
3641ac_save_CC=$CC
3642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644$ac_c_conftest_c99_program
3645_ACEOF
3646for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3647do
3648  CC="$ac_save_CC $ac_arg"
3649  if ac_fn_c_try_compile "$LINENO"
3650then :
3651  ac_cv_prog_cc_c99=$ac_arg
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.beam
3654  test "x$ac_cv_prog_cc_c99" != "xno" && break
3655done
3656rm -f conftest.$ac_ext
3657CC=$ac_save_CC
3658fi
3659
3660if test "x$ac_cv_prog_cc_c99" = xno
3661then :
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3663printf "%s\n" "unsupported" >&6; }
3664else $as_nop
3665  if test "x$ac_cv_prog_cc_c99" = x
3666then :
3667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668printf "%s\n" "none needed" >&6; }
3669else $as_nop
3670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3671printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3672     CC="$CC $ac_cv_prog_cc_c99"
3673fi
3674  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3675  ac_prog_cc_stdc=c99
3676fi
3677fi
3678if test x$ac_prog_cc_stdc = xno
3679then :
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3681printf %s "checking for $CC option to enable C89 features... " >&6; }
3682if test ${ac_cv_prog_cc_c89+y}
3683then :
3684  printf %s "(cached) " >&6
3685else $as_nop
3686  ac_cv_prog_cc_c89=no
3687ac_save_CC=$CC
3688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690$ac_c_conftest_c89_program
3691_ACEOF
3692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693do
3694  CC="$ac_save_CC $ac_arg"
3695  if ac_fn_c_try_compile "$LINENO"
3696then :
3697  ac_cv_prog_cc_c89=$ac_arg
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.beam
3700  test "x$ac_cv_prog_cc_c89" != "xno" && break
3701done
3702rm -f conftest.$ac_ext
3703CC=$ac_save_CC
3704fi
3705
3706if test "x$ac_cv_prog_cc_c89" = xno
3707then :
3708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3709printf "%s\n" "unsupported" >&6; }
3710else $as_nop
3711  if test "x$ac_cv_prog_cc_c89" = x
3712then :
3713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714printf "%s\n" "none needed" >&6; }
3715else $as_nop
3716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3718     CC="$CC $ac_cv_prog_cc_c89"
3719fi
3720  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3721  ac_prog_cc_stdc=c89
3722fi
3723fi
3724
3725ac_ext=c
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
3731
3732  ac_ext=c
3733ac_cpp='$CPP $CPPFLAGS'
3734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3738printf %s "checking whether $CC understands -c and -o together... " >&6; }
3739if test ${am_cv_prog_cc_c_o+y}
3740then :
3741  printf %s "(cached) " >&6
3742else $as_nop
3743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main (void)
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754  # Make sure it works both with $CC and with simple cc.
3755  # Following AC_PROG_CC_C_O, we do the test twice because some
3756  # compilers refuse to overwrite an existing .o file with -o,
3757  # though they will create one.
3758  am_cv_prog_cc_c_o=yes
3759  for am_i in 1 2; do
3760    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3761   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); } \
3765         && test -f conftest2.$ac_objext; then
3766      : OK
3767    else
3768      am_cv_prog_cc_c_o=no
3769      break
3770    fi
3771  done
3772  rm -f core conftest*
3773  unset am_i
3774fi
3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3776printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3777if test "$am_cv_prog_cc_c_o" != yes; then
3778   # Losing compiler, so override with the script.
3779   # FIXME: It is wrong to rewrite CC.
3780   # But if we don't then we get into trouble of one sort or another.
3781   # A longer-term fix would be to have automake use am__CC in this case,
3782   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3783   CC="$am_aux_dir/compile $CC"
3784fi
3785ac_ext=c
3786ac_cpp='$CPP $CPPFLAGS'
3787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791
3792
3793ac_header= ac_cache=
3794for ac_item in $ac_header_c_list
3795do
3796  if test $ac_cache; then
3797    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3798    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3799      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3800    fi
3801    ac_header= ac_cache=
3802  elif test $ac_header; then
3803    ac_cache=$ac_item
3804  else
3805    ac_header=$ac_item
3806  fi
3807done
3808
3809
3810
3811
3812
3813
3814
3815
3816if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3817then :
3818
3819printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3820
3821fi
3822
3823
3824
3825
3826
3827
3828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3829printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3830if test ${ac_cv_safe_to_define___extensions__+y}
3831then :
3832  printf %s "(cached) " >&6
3833else $as_nop
3834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837#         define __EXTENSIONS__ 1
3838          $ac_includes_default
3839int
3840main (void)
3841{
3842
3843  ;
3844  return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"
3848then :
3849  ac_cv_safe_to_define___extensions__=yes
3850else $as_nop
3851  ac_cv_safe_to_define___extensions__=no
3852fi
3853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3854fi
3855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3856printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3857
3858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3859printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3860if test ${ac_cv_should_define__xopen_source+y}
3861then :
3862  printf %s "(cached) " >&6
3863else $as_nop
3864  ac_cv_should_define__xopen_source=no
3865    if test $ac_cv_header_wchar_h = yes
3866then :
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869
3870          #include <wchar.h>
3871          mbstate_t x;
3872int
3873main (void)
3874{
3875
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880if ac_fn_c_try_compile "$LINENO"
3881then :
3882
3883else $as_nop
3884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887            #define _XOPEN_SOURCE 500
3888            #include <wchar.h>
3889            mbstate_t x;
3890int
3891main (void)
3892{
3893
3894  ;
3895  return 0;
3896}
3897_ACEOF
3898if ac_fn_c_try_compile "$LINENO"
3899then :
3900  ac_cv_should_define__xopen_source=yes
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3905fi
3906fi
3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3908printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3909
3910  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3911
3912  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3913
3914  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3915
3916  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3917
3918  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3919
3920  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3921
3922  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3923
3924  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3925
3926  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3927
3928  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3929
3930  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3931
3932  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3933
3934  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3935
3936  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3937
3938  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3939
3940  if test $ac_cv_header_minix_config_h = yes
3941then :
3942  MINIX=yes
3943    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3944
3945    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3946
3947    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3948
3949else $as_nop
3950  MINIX=
3951fi
3952  if test $ac_cv_safe_to_define___extensions__ = yes
3953then :
3954  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3955
3956fi
3957  if test $ac_cv_should_define__xopen_source = yes
3958then :
3959  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3960
3961fi
3962
3963
3964# Initialize Automake
3965am__api_version='1.16'
3966
3967
3968  # Find a good install program.  We prefer a C program (faster),
3969# so one script is as good as another.  But avoid the broken or
3970# incompatible versions:
3971# SysV /etc/install, /usr/sbin/install
3972# SunOS /usr/etc/install
3973# IRIX /sbin/install
3974# AIX /bin/install
3975# AmigaOS /C/install, which installs bootblocks on floppy discs
3976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3977# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979# OS/2's system install, which has a completely different semantic
3980# ./install, which can be erroneously created by make from ./install.sh.
3981# Reject install programs that cannot install multiple files.
3982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3983printf %s "checking for a BSD-compatible install... " >&6; }
3984if test -z "$INSTALL"; then
3985if test ${ac_cv_path_install+y}
3986then :
3987  printf %s "(cached) " >&6
3988else $as_nop
3989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992  IFS=$as_save_IFS
3993  case $as_dir in #(((
3994    '') as_dir=./ ;;
3995    */) ;;
3996    *) as_dir=$as_dir/ ;;
3997  esac
3998    # Account for fact that we put trailing slashes in our PATH walk.
3999case $as_dir in #((
4000  ./ | /[cC]/* | \
4001  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4002  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4003  /usr/ucb/* ) ;;
4004  *)
4005    # OSF1 and SCO ODT 3.0 have their own names for install.
4006    # Don't use installbsd from OSF since it installs stuff as root
4007    # by default.
4008    for ac_prog in ginstall scoinst install; do
4009      for ac_exec_ext in '' $ac_executable_extensions; do
4010	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4011	  if test $ac_prog = install &&
4012	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013	    # AIX install.  It has an incompatible calling convention.
4014	    :
4015	  elif test $ac_prog = install &&
4016	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4017	    # program-specific install script used by HP pwplus--don't use.
4018	    :
4019	  else
4020	    rm -rf conftest.one conftest.two conftest.dir
4021	    echo one > conftest.one
4022	    echo two > conftest.two
4023	    mkdir conftest.dir
4024	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4025	      test -s conftest.one && test -s conftest.two &&
4026	      test -s conftest.dir/conftest.one &&
4027	      test -s conftest.dir/conftest.two
4028	    then
4029	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4030	      break 3
4031	    fi
4032	  fi
4033	fi
4034      done
4035    done
4036    ;;
4037esac
4038
4039  done
4040IFS=$as_save_IFS
4041
4042rm -rf conftest.one conftest.two conftest.dir
4043
4044fi
4045  if test ${ac_cv_path_install+y}; then
4046    INSTALL=$ac_cv_path_install
4047  else
4048    # As a last resort, use the slow shell script.  Don't cache a
4049    # value for INSTALL within a source directory, because that will
4050    # break other packages using the cache if that directory is
4051    # removed, or if the value is a relative name.
4052    INSTALL=$ac_install_sh
4053  fi
4054fi
4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4056printf "%s\n" "$INSTALL" >&6; }
4057
4058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059# It thinks the first close brace ends the variable substitution.
4060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4061
4062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4063
4064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4065
4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4067printf %s "checking whether build environment is sane... " >&6; }
4068# Reject unsafe characters in $srcdir or the absolute working directory
4069# name.  Accept space and tab only in the latter.
4070am_lf='
4071'
4072case `pwd` in
4073  *[\\\"\#\$\&\'\`$am_lf]*)
4074    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4075esac
4076case $srcdir in
4077  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4078    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4079esac
4080
4081# Do 'set' in a subshell so we don't clobber the current shell's
4082# arguments.  Must try -L first in case configure is actually a
4083# symlink; some systems play weird games with the mod time of symlinks
4084# (eg FreeBSD returns the mod time of the symlink's containing
4085# directory).
4086if (
4087   am_has_slept=no
4088   for am_try in 1 2; do
4089     echo "timestamp, slept: $am_has_slept" > conftest.file
4090     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4091     if test "$*" = "X"; then
4092	# -L didn't work.
4093	set X `ls -t "$srcdir/configure" conftest.file`
4094     fi
4095     if test "$*" != "X $srcdir/configure conftest.file" \
4096	&& test "$*" != "X conftest.file $srcdir/configure"; then
4097
4098	# If neither matched, then we have a broken ls.  This can happen
4099	# if, for instance, CONFIG_SHELL is bash and it inherits a
4100	# broken ls alias from the environment.  This has actually
4101	# happened.  Such a system could not be considered "sane".
4102	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4103  alias in your environment" "$LINENO" 5
4104     fi
4105     if test "$2" = conftest.file || test $am_try -eq 2; then
4106       break
4107     fi
4108     # Just in case.
4109     sleep 1
4110     am_has_slept=yes
4111   done
4112   test "$2" = conftest.file
4113   )
4114then
4115   # Ok.
4116   :
4117else
4118   as_fn_error $? "newly created file is older than distributed files!
4119Check your system clock" "$LINENO" 5
4120fi
4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122printf "%s\n" "yes" >&6; }
4123# If we didn't sleep, we still need to ensure time stamps of config.status and
4124# generated files are strictly newer.
4125am_sleep_pid=
4126if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4127  ( sleep 1 ) &
4128  am_sleep_pid=$!
4129fi
4130
4131rm -f conftest.file
4132
4133test "$program_prefix" != NONE &&
4134  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4135# Use a double $ so make ignores it.
4136test "$program_suffix" != NONE &&
4137  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4138# Double any \ or $.
4139# By default was `s,x,x', remove it if useless.
4140ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4141program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4142
4143
4144  if test x"${MISSING+set}" != xset; then
4145  MISSING="\${SHELL} '$am_aux_dir/missing'"
4146fi
4147# Use eval to expand $SHELL
4148if eval "$MISSING --is-lightweight"; then
4149  am_missing_run="$MISSING "
4150else
4151  am_missing_run=
4152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4153printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4154fi
4155
4156if test x"${install_sh+set}" != xset; then
4157  case $am_aux_dir in
4158  *\ * | *\	*)
4159    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4160  *)
4161    install_sh="\${SHELL} $am_aux_dir/install-sh"
4162  esac
4163fi
4164
4165# Installed binaries are usually stripped using 'strip' when the user
4166# run "make install-strip".  However 'strip' might not be the right
4167# tool to use in cross-compilation environments, therefore Automake
4168# will honor the 'STRIP' environment variable to overrule this program.
4169if test "$cross_compiling" != no; then
4170  if test -n "$ac_tool_prefix"; then
4171  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172set dummy ${ac_tool_prefix}strip; ac_word=$2
4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174printf %s "checking for $ac_word... " >&6; }
4175if test ${ac_cv_prog_STRIP+y}
4176then :
4177  printf %s "(cached) " >&6
4178else $as_nop
4179  if test -n "$STRIP"; then
4180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  case $as_dir in #(((
4187    '') as_dir=./ ;;
4188    */) ;;
4189    *) as_dir=$as_dir/ ;;
4190  esac
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4193    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4195    break 2
4196  fi
4197done
4198  done
4199IFS=$as_save_IFS
4200
4201fi
4202fi
4203STRIP=$ac_cv_prog_STRIP
4204if test -n "$STRIP"; then
4205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4206printf "%s\n" "$STRIP" >&6; }
4207else
4208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209printf "%s\n" "no" >&6; }
4210fi
4211
4212
4213fi
4214if test -z "$ac_cv_prog_STRIP"; then
4215  ac_ct_STRIP=$STRIP
4216  # Extract the first word of "strip", so it can be a program name with args.
4217set dummy strip; ac_word=$2
4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219printf %s "checking for $ac_word... " >&6; }
4220if test ${ac_cv_prog_ac_ct_STRIP+y}
4221then :
4222  printf %s "(cached) " >&6
4223else $as_nop
4224  if test -n "$ac_ct_STRIP"; then
4225  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230  IFS=$as_save_IFS
4231  case $as_dir in #(((
4232    '') as_dir=./ ;;
4233    */) ;;
4234    *) as_dir=$as_dir/ ;;
4235  esac
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4238    ac_cv_prog_ac_ct_STRIP="strip"
4239    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243  done
4244IFS=$as_save_IFS
4245
4246fi
4247fi
4248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4249if test -n "$ac_ct_STRIP"; then
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4251printf "%s\n" "$ac_ct_STRIP" >&6; }
4252else
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254printf "%s\n" "no" >&6; }
4255fi
4256
4257  if test "x$ac_ct_STRIP" = x; then
4258    STRIP=":"
4259  else
4260    case $cross_compiling:$ac_tool_warned in
4261yes:)
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4263printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4264ac_tool_warned=yes ;;
4265esac
4266    STRIP=$ac_ct_STRIP
4267  fi
4268else
4269  STRIP="$ac_cv_prog_STRIP"
4270fi
4271
4272fi
4273INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4274
4275
4276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4277printf %s "checking for a race-free mkdir -p... " >&6; }
4278if test -z "$MKDIR_P"; then
4279  if test ${ac_cv_path_mkdir+y}
4280then :
4281  printf %s "(cached) " >&6
4282else $as_nop
4283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4285do
4286  IFS=$as_save_IFS
4287  case $as_dir in #(((
4288    '') as_dir=./ ;;
4289    */) ;;
4290    *) as_dir=$as_dir/ ;;
4291  esac
4292    for ac_prog in mkdir gmkdir; do
4293	 for ac_exec_ext in '' $ac_executable_extensions; do
4294	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4295	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4296	     'mkdir ('*'coreutils) '* | \
4297	     'BusyBox '* | \
4298	     'mkdir (fileutils) '4.1*)
4299	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4300	       break 3;;
4301	   esac
4302	 done
4303       done
4304  done
4305IFS=$as_save_IFS
4306
4307fi
4308
4309  test -d ./--version && rmdir ./--version
4310  if test ${ac_cv_path_mkdir+y}; then
4311    MKDIR_P="$ac_cv_path_mkdir -p"
4312  else
4313    # As a last resort, use the slow shell script.  Don't cache a
4314    # value for MKDIR_P within a source directory, because that will
4315    # break other packages using the cache if that directory is
4316    # removed, or if the value is a relative name.
4317    MKDIR_P="$ac_install_sh -d"
4318  fi
4319fi
4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4321printf "%s\n" "$MKDIR_P" >&6; }
4322
4323for ac_prog in gawk mawk nawk awk
4324do
4325  # Extract the first word of "$ac_prog", so it can be a program name with args.
4326set dummy $ac_prog; ac_word=$2
4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328printf %s "checking for $ac_word... " >&6; }
4329if test ${ac_cv_prog_AWK+y}
4330then :
4331  printf %s "(cached) " >&6
4332else $as_nop
4333  if test -n "$AWK"; then
4334  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339  IFS=$as_save_IFS
4340  case $as_dir in #(((
4341    '') as_dir=./ ;;
4342    */) ;;
4343    *) as_dir=$as_dir/ ;;
4344  esac
4345    for ac_exec_ext in '' $ac_executable_extensions; do
4346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4347    ac_cv_prog_AWK="$ac_prog"
4348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4349    break 2
4350  fi
4351done
4352  done
4353IFS=$as_save_IFS
4354
4355fi
4356fi
4357AWK=$ac_cv_prog_AWK
4358if test -n "$AWK"; then
4359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4360printf "%s\n" "$AWK" >&6; }
4361else
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363printf "%s\n" "no" >&6; }
4364fi
4365
4366
4367  test -n "$AWK" && break
4368done
4369
4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4371printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4372set x ${MAKE-make}
4373ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4374if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4375then :
4376  printf %s "(cached) " >&6
4377else $as_nop
4378  cat >conftest.make <<\_ACEOF
4379SHELL = /bin/sh
4380all:
4381	@echo '@@@%%%=$(MAKE)=@@@%%%'
4382_ACEOF
4383# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4384case `${MAKE-make} -f conftest.make 2>/dev/null` in
4385  *@@@%%%=?*=@@@%%%*)
4386    eval ac_cv_prog_make_${ac_make}_set=yes;;
4387  *)
4388    eval ac_cv_prog_make_${ac_make}_set=no;;
4389esac
4390rm -f conftest.make
4391fi
4392if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4394printf "%s\n" "yes" >&6; }
4395  SET_MAKE=
4396else
4397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398printf "%s\n" "no" >&6; }
4399  SET_MAKE="MAKE=${MAKE-make}"
4400fi
4401
4402rm -rf .tst 2>/dev/null
4403mkdir .tst 2>/dev/null
4404if test -d .tst; then
4405  am__leading_dot=.
4406else
4407  am__leading_dot=_
4408fi
4409rmdir .tst 2>/dev/null
4410
4411DEPDIR="${am__leading_dot}deps"
4412
4413ac_config_commands="$ac_config_commands depfiles"
4414
4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4416printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4417cat > confinc.mk << 'END'
4418am__doit:
4419	@echo this is the am__doit target >confinc.out
4420.PHONY: am__doit
4421END
4422am__include="#"
4423am__quote=
4424# BSD make does it like this.
4425echo '.include "confinc.mk" # ignored' > confmf.BSD
4426# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4427echo 'include confinc.mk # ignored' > confmf.GNU
4428_am_result=no
4429for s in GNU BSD; do
4430  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4431   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }
4435  case $?:`cat confinc.out 2>/dev/null` in #(
4436  '0:this is the am__doit target') :
4437    case $s in #(
4438  BSD) :
4439    am__include='.include' am__quote='"' ;; #(
4440  *) :
4441    am__include='include' am__quote='' ;;
4442esac ;; #(
4443  *) :
4444     ;;
4445esac
4446  if test "$am__include" != "#"; then
4447    _am_result="yes ($s style)"
4448    break
4449  fi
4450done
4451rm -f confinc.* confmf.*
4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4453printf "%s\n" "${_am_result}" >&6; }
4454
4455# Check whether --enable-dependency-tracking was given.
4456if test ${enable_dependency_tracking+y}
4457then :
4458  enableval=$enable_dependency_tracking;
4459fi
4460
4461if test "x$enable_dependency_tracking" != xno; then
4462  am_depcomp="$ac_aux_dir/depcomp"
4463  AMDEPBACKSLASH='\'
4464  am__nodep='_no'
4465fi
4466 if test "x$enable_dependency_tracking" != xno; then
4467  AMDEP_TRUE=
4468  AMDEP_FALSE='#'
4469else
4470  AMDEP_TRUE='#'
4471  AMDEP_FALSE=
4472fi
4473
4474
4475# Check whether --enable-silent-rules was given.
4476if test ${enable_silent_rules+y}
4477then :
4478  enableval=$enable_silent_rules;
4479fi
4480
4481case $enable_silent_rules in # (((
4482  yes) AM_DEFAULT_VERBOSITY=0;;
4483   no) AM_DEFAULT_VERBOSITY=1;;
4484    *) AM_DEFAULT_VERBOSITY=1;;
4485esac
4486am_make=${MAKE-make}
4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4488printf %s "checking whether $am_make supports nested variables... " >&6; }
4489if test ${am_cv_make_support_nested_variables+y}
4490then :
4491  printf %s "(cached) " >&6
4492else $as_nop
4493  if printf "%s\n" 'TRUE=$(BAR$(V))
4494BAR0=false
4495BAR1=true
4496V=1
4497am__doit:
4498	@$(TRUE)
4499.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4500  am_cv_make_support_nested_variables=yes
4501else
4502  am_cv_make_support_nested_variables=no
4503fi
4504fi
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4506printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4507if test $am_cv_make_support_nested_variables = yes; then
4508    AM_V='$(V)'
4509  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4510else
4511  AM_V=$AM_DEFAULT_VERBOSITY
4512  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4513fi
4514AM_BACKSLASH='\'
4515
4516if test "`cd $srcdir && pwd`" != "`pwd`"; then
4517  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4518  # is not polluted with repeated "-I."
4519  am__isrc=' -I$(srcdir)'
4520  # test to see if srcdir already configured
4521  if test -f $srcdir/config.status; then
4522    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4523  fi
4524fi
4525
4526# test whether we have cygpath
4527if test -z "$CYGPATH_W"; then
4528  if (cygpath --version) >/dev/null 2>/dev/null; then
4529    CYGPATH_W='cygpath -w'
4530  else
4531    CYGPATH_W=echo
4532  fi
4533fi
4534
4535
4536# Define the identity of the package.
4537 PACKAGE='libXmu'
4538 VERSION='1.1.4'
4539
4540
4541printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4542
4543
4544printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4545
4546# Some tools Automake needs.
4547
4548ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4549
4550
4551AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4552
4553
4554AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4555
4556
4557AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4558
4559
4560MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4561
4562# For better backward compatibility.  To be removed once Automake 1.9.x
4563# dies out for good.  For more background, see:
4564# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4565# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4566mkdir_p='$(MKDIR_P)'
4567
4568# We need awk for the "check" target (and possibly the TAP driver).  The
4569# system "awk" is bad on some platforms.
4570# Always define AMTAR for backward compatibility.  Yes, it's still used
4571# in the wild :-(  We should find a proper way to deprecate it ...
4572AMTAR='$${TAR-tar}'
4573
4574
4575# We'll loop over all known methods to create a tar archive until one works.
4576_am_tools='gnutar  pax cpio none'
4577
4578am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4579
4580
4581
4582
4583
4584depcc="$CC"   am_compiler_list=
4585
4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4587printf %s "checking dependency style of $depcc... " >&6; }
4588if test ${am_cv_CC_dependencies_compiler_type+y}
4589then :
4590  printf %s "(cached) " >&6
4591else $as_nop
4592  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593  # We make a subdir and do the tests there.  Otherwise we can end up
4594  # making bogus files that we don't know about and never remove.  For
4595  # instance it was reported that on HP-UX the gcc test will end up
4596  # making a dummy file named 'D' -- because '-MD' means "put the output
4597  # in D".
4598  rm -rf conftest.dir
4599  mkdir conftest.dir
4600  # Copy depcomp to subdir because otherwise we won't find it if we're
4601  # using a relative directory.
4602  cp "$am_depcomp" conftest.dir
4603  cd conftest.dir
4604  # We will build objects and dependencies in a subdirectory because
4605  # it helps to detect inapplicable dependency modes.  For instance
4606  # both Tru64's cc and ICC support -MD to output dependencies as a
4607  # side effect of compilation, but ICC will put the dependencies in
4608  # the current directory while Tru64 will put them in the object
4609  # directory.
4610  mkdir sub
4611
4612  am_cv_CC_dependencies_compiler_type=none
4613  if test "$am_compiler_list" = ""; then
4614     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615  fi
4616  am__universal=false
4617  case " $depcc " in #(
4618     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619     esac
4620
4621  for depmode in $am_compiler_list; do
4622    # Setup a source with many dependencies, because some compilers
4623    # like to wrap large dependency lists on column 80 (with \), and
4624    # we should not choose a depcomp mode which is confused by this.
4625    #
4626    # We need to recreate these files for each test, as the compiler may
4627    # overwrite some of them when testing with obscure command lines.
4628    # This happens at least with the AIX C compiler.
4629    : > sub/conftest.c
4630    for i in 1 2 3 4 5 6; do
4631      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4632      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4633      # Solaris 10 /bin/sh.
4634      echo '/* dummy */' > sub/conftst$i.h
4635    done
4636    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637
4638    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4639    # mode.  It turns out that the SunPro C++ compiler does not properly
4640    # handle '-M -o', and we need to detect this.  Also, some Intel
4641    # versions had trouble with output in subdirs.
4642    am__obj=sub/conftest.${OBJEXT-o}
4643    am__minus_obj="-o $am__obj"
4644    case $depmode in
4645    gcc)
4646      # This depmode causes a compiler race in universal mode.
4647      test "$am__universal" = false || continue
4648      ;;
4649    nosideeffect)
4650      # After this tag, mechanisms are not by side-effect, so they'll
4651      # only be used when explicitly requested.
4652      if test "x$enable_dependency_tracking" = xyes; then
4653	continue
4654      else
4655	break
4656      fi
4657      ;;
4658    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4659      # This compiler won't grok '-c -o', but also, the minuso test has
4660      # not run yet.  These depmodes are late enough in the game, and
4661      # so weak that their functioning should not be impacted.
4662      am__obj=conftest.${OBJEXT-o}
4663      am__minus_obj=
4664      ;;
4665    none) break ;;
4666    esac
4667    if depmode=$depmode \
4668       source=sub/conftest.c object=$am__obj \
4669       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4671         >/dev/null 2>conftest.err &&
4672       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4673       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4674       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4675       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676      # icc doesn't choke on unknown options, it will just issue warnings
4677      # or remarks (even with -Werror).  So we grep stderr for any message
4678      # that says an option was ignored or not supported.
4679      # When given -MP, icc 7.0 and 7.1 complain thusly:
4680      #   icc: Command line warning: ignoring option '-M'; no argument required
4681      # The diagnosis changed in icc 8.0:
4682      #   icc: Command line remark: option '-MP' not supported
4683      if (grep 'ignoring option' conftest.err ||
4684          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685        am_cv_CC_dependencies_compiler_type=$depmode
4686        break
4687      fi
4688    fi
4689  done
4690
4691  cd ..
4692  rm -rf conftest.dir
4693else
4694  am_cv_CC_dependencies_compiler_type=none
4695fi
4696
4697fi
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
4702 if
4703  test "x$enable_dependency_tracking" != xno \
4704  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705  am__fastdepCC_TRUE=
4706  am__fastdepCC_FALSE='#'
4707else
4708  am__fastdepCC_TRUE='#'
4709  am__fastdepCC_FALSE=
4710fi
4711
4712
4713# Variables for tags utilities; see am/tags.am
4714if test -z "$CTAGS"; then
4715  CTAGS=ctags
4716fi
4717
4718if test -z "$ETAGS"; then
4719  ETAGS=etags
4720fi
4721
4722if test -z "$CSCOPE"; then
4723  CSCOPE=cscope
4724fi
4725
4726
4727
4728# POSIX will say in a future version that running "rm -f" with no argument
4729# is OK; and we want to be able to make that assumption in our Makefile
4730# recipes.  So use an aggressive probe to check that the usage we want is
4731# actually supported "in the wild" to an acceptable degree.
4732# See automake bug#10828.
4733# To make any issue more visible, cause the running configure to be aborted
4734# by default if the 'rm' program in use doesn't match our expectations; the
4735# user can still override this though.
4736if rm -f && rm -fr && rm -rf; then : OK; else
4737  cat >&2 <<'END'
4738Oops!
4739
4740Your 'rm' program seems unable to run without file operands specified
4741on the command line, even when the '-f' option is present.  This is contrary
4742to the behaviour of most rm programs out there, and not conforming with
4743the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4744
4745Please tell bug-automake@gnu.org about your system, including the value
4746of your $PATH and any error possibly output before this message.  This
4747can help us improve future automake versions.
4748
4749END
4750  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4751    echo 'Configuration will proceed anyway, since you have set the' >&2
4752    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4753    echo >&2
4754  else
4755    cat >&2 <<'END'
4756Aborting the configuration process, to ensure you take notice of the issue.
4757
4758You can download and install GNU coreutils to get an 'rm' implementation
4759that behaves properly: <https://www.gnu.org/software/coreutils/>.
4760
4761If you want to complete the configuration process using your problematic
4762'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4763to "yes", and re-run configure.
4764
4765END
4766    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4767  fi
4768fi
4769
4770
4771# Initialize libtool
4772case `pwd` in
4773  *\ * | *\	*)
4774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4775printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4776esac
4777
4778
4779
4780macro_version='2.4.7'
4781macro_revision='2.4.7'
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796ltmain=$ac_aux_dir/ltmain.sh
4797
4798
4799
4800  # Make sure we can run config.sub.
4801$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4802  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4803
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4805printf %s "checking build system type... " >&6; }
4806if test ${ac_cv_build+y}
4807then :
4808  printf %s "(cached) " >&6
4809else $as_nop
4810  ac_build_alias=$build_alias
4811test "x$ac_build_alias" = x &&
4812  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4813test "x$ac_build_alias" = x &&
4814  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4815ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4816  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4817
4818fi
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4820printf "%s\n" "$ac_cv_build" >&6; }
4821case $ac_cv_build in
4822*-*-*) ;;
4823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4824esac
4825build=$ac_cv_build
4826ac_save_IFS=$IFS; IFS='-'
4827set x $ac_cv_build
4828shift
4829build_cpu=$1
4830build_vendor=$2
4831shift; shift
4832# Remember, the first character of IFS is used to create $*,
4833# except with old shells:
4834build_os=$*
4835IFS=$ac_save_IFS
4836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4837
4838
4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4840printf %s "checking host system type... " >&6; }
4841if test ${ac_cv_host+y}
4842then :
4843  printf %s "(cached) " >&6
4844else $as_nop
4845  if test "x$host_alias" = x; then
4846  ac_cv_host=$ac_cv_build
4847else
4848  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4849    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4850fi
4851
4852fi
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854printf "%s\n" "$ac_cv_host" >&6; }
4855case $ac_cv_host in
4856*-*-*) ;;
4857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858esac
4859host=$ac_cv_host
4860ac_save_IFS=$IFS; IFS='-'
4861set x $ac_cv_host
4862shift
4863host_cpu=$1
4864host_vendor=$2
4865shift; shift
4866# Remember, the first character of IFS is used to create $*,
4867# except with old shells:
4868host_os=$*
4869IFS=$ac_save_IFS
4870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873# Backslashify metacharacters that are still active within
4874# double-quoted strings.
4875sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4876
4877# Same as above, but do not quote variable references.
4878double_quote_subst='s/\(["`\\]\)/\\\1/g'
4879
4880# Sed substitution to delay expansion of an escaped shell variable in a
4881# double_quote_subst'ed string.
4882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4883
4884# Sed substitution to delay expansion of an escaped single quote.
4885delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4886
4887# Sed substitution to avoid accidental globbing in evaled expressions
4888no_glob_subst='s/\*/\\\*/g'
4889
4890ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4891ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4892ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4893
4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4895printf %s "checking how to print strings... " >&6; }
4896# Test print first, because it will be a builtin if present.
4897if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4898   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4899  ECHO='print -r --'
4900elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4901  ECHO='printf %s\n'
4902else
4903  # Use this function as a fallback that always works.
4904  func_fallback_echo ()
4905  {
4906    eval 'cat <<_LTECHO_EOF
4907$1
4908_LTECHO_EOF'
4909  }
4910  ECHO='func_fallback_echo'
4911fi
4912
4913# func_echo_all arg...
4914# Invoke $ECHO with all args, space-separated.
4915func_echo_all ()
4916{
4917    $ECHO ""
4918}
4919
4920case $ECHO in
4921  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4922printf "%s\n" "printf" >&6; } ;;
4923  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4924printf "%s\n" "print -r" >&6; } ;;
4925  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4926printf "%s\n" "cat" >&6; } ;;
4927esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4943printf %s "checking for a sed that does not truncate output... " >&6; }
4944if test ${ac_cv_path_SED+y}
4945then :
4946  printf %s "(cached) " >&6
4947else $as_nop
4948            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4949     for ac_i in 1 2 3 4 5 6 7; do
4950       ac_script="$ac_script$as_nl$ac_script"
4951     done
4952     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4953     { ac_script=; unset ac_script;}
4954     if test -z "$SED"; then
4955  ac_path_SED_found=false
4956  # Loop through the user's path and test for each of PROGNAME-LIST
4957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960  IFS=$as_save_IFS
4961  case $as_dir in #(((
4962    '') as_dir=./ ;;
4963    */) ;;
4964    *) as_dir=$as_dir/ ;;
4965  esac
4966    for ac_prog in sed gsed
4967   do
4968    for ac_exec_ext in '' $ac_executable_extensions; do
4969      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4970      as_fn_executable_p "$ac_path_SED" || continue
4971# Check for GNU ac_path_SED and select it if it is found.
4972  # Check for GNU $ac_path_SED
4973case `"$ac_path_SED" --version 2>&1` in
4974*GNU*)
4975  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4976*)
4977  ac_count=0
4978  printf %s 0123456789 >"conftest.in"
4979  while :
4980  do
4981    cat "conftest.in" "conftest.in" >"conftest.tmp"
4982    mv "conftest.tmp" "conftest.in"
4983    cp "conftest.in" "conftest.nl"
4984    printf "%s\n" '' >> "conftest.nl"
4985    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987    as_fn_arith $ac_count + 1 && ac_count=$as_val
4988    if test $ac_count -gt ${ac_path_SED_max-0}; then
4989      # Best one so far, save it but keep looking for a better one
4990      ac_cv_path_SED="$ac_path_SED"
4991      ac_path_SED_max=$ac_count
4992    fi
4993    # 10*(2^10) chars as input seems more than enough
4994    test $ac_count -gt 10 && break
4995  done
4996  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997esac
4998
4999      $ac_path_SED_found && break 3
5000    done
5001  done
5002  done
5003IFS=$as_save_IFS
5004  if test -z "$ac_cv_path_SED"; then
5005    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5006  fi
5007else
5008  ac_cv_path_SED=$SED
5009fi
5010
5011fi
5012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5013printf "%s\n" "$ac_cv_path_SED" >&6; }
5014 SED="$ac_cv_path_SED"
5015  rm -f conftest.sed
5016
5017test -z "$SED" && SED=sed
5018Xsed="$SED -e 1s/^X//"
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5031printf %s "checking for grep that handles long lines and -e... " >&6; }
5032if test ${ac_cv_path_GREP+y}
5033then :
5034  printf %s "(cached) " >&6
5035else $as_nop
5036  if test -z "$GREP"; then
5037  ac_path_GREP_found=false
5038  # Loop through the user's path and test for each of PROGNAME-LIST
5039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5041do
5042  IFS=$as_save_IFS
5043  case $as_dir in #(((
5044    '') as_dir=./ ;;
5045    */) ;;
5046    *) as_dir=$as_dir/ ;;
5047  esac
5048    for ac_prog in grep ggrep
5049   do
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5052      as_fn_executable_p "$ac_path_GREP" || continue
5053# Check for GNU ac_path_GREP and select it if it is found.
5054  # Check for GNU $ac_path_GREP
5055case `"$ac_path_GREP" --version 2>&1` in
5056*GNU*)
5057  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5058*)
5059  ac_count=0
5060  printf %s 0123456789 >"conftest.in"
5061  while :
5062  do
5063    cat "conftest.in" "conftest.in" >"conftest.tmp"
5064    mv "conftest.tmp" "conftest.in"
5065    cp "conftest.in" "conftest.nl"
5066    printf "%s\n" 'GREP' >> "conftest.nl"
5067    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069    as_fn_arith $ac_count + 1 && ac_count=$as_val
5070    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5071      # Best one so far, save it but keep looking for a better one
5072      ac_cv_path_GREP="$ac_path_GREP"
5073      ac_path_GREP_max=$ac_count
5074    fi
5075    # 10*(2^10) chars as input seems more than enough
5076    test $ac_count -gt 10 && break
5077  done
5078  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079esac
5080
5081      $ac_path_GREP_found && break 3
5082    done
5083  done
5084  done
5085IFS=$as_save_IFS
5086  if test -z "$ac_cv_path_GREP"; then
5087    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088  fi
5089else
5090  ac_cv_path_GREP=$GREP
5091fi
5092
5093fi
5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5095printf "%s\n" "$ac_cv_path_GREP" >&6; }
5096 GREP="$ac_cv_path_GREP"
5097
5098
5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5100printf %s "checking for egrep... " >&6; }
5101if test ${ac_cv_path_EGREP+y}
5102then :
5103  printf %s "(cached) " >&6
5104else $as_nop
5105  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5106   then ac_cv_path_EGREP="$GREP -E"
5107   else
5108     if test -z "$EGREP"; then
5109  ac_path_EGREP_found=false
5110  # Loop through the user's path and test for each of PROGNAME-LIST
5111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113do
5114  IFS=$as_save_IFS
5115  case $as_dir in #(((
5116    '') as_dir=./ ;;
5117    */) ;;
5118    *) as_dir=$as_dir/ ;;
5119  esac
5120    for ac_prog in egrep
5121   do
5122    for ac_exec_ext in '' $ac_executable_extensions; do
5123      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5124      as_fn_executable_p "$ac_path_EGREP" || continue
5125# Check for GNU ac_path_EGREP and select it if it is found.
5126  # Check for GNU $ac_path_EGREP
5127case `"$ac_path_EGREP" --version 2>&1` in
5128*GNU*)
5129  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5130*)
5131  ac_count=0
5132  printf %s 0123456789 >"conftest.in"
5133  while :
5134  do
5135    cat "conftest.in" "conftest.in" >"conftest.tmp"
5136    mv "conftest.tmp" "conftest.in"
5137    cp "conftest.in" "conftest.nl"
5138    printf "%s\n" 'EGREP' >> "conftest.nl"
5139    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141    as_fn_arith $ac_count + 1 && ac_count=$as_val
5142    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5143      # Best one so far, save it but keep looking for a better one
5144      ac_cv_path_EGREP="$ac_path_EGREP"
5145      ac_path_EGREP_max=$ac_count
5146    fi
5147    # 10*(2^10) chars as input seems more than enough
5148    test $ac_count -gt 10 && break
5149  done
5150  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151esac
5152
5153      $ac_path_EGREP_found && break 3
5154    done
5155  done
5156  done
5157IFS=$as_save_IFS
5158  if test -z "$ac_cv_path_EGREP"; then
5159    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160  fi
5161else
5162  ac_cv_path_EGREP=$EGREP
5163fi
5164
5165   fi
5166fi
5167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5168printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5169 EGREP="$ac_cv_path_EGREP"
5170
5171
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5173printf %s "checking for fgrep... " >&6; }
5174if test ${ac_cv_path_FGREP+y}
5175then :
5176  printf %s "(cached) " >&6
5177else $as_nop
5178  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5179   then ac_cv_path_FGREP="$GREP -F"
5180   else
5181     if test -z "$FGREP"; then
5182  ac_path_FGREP_found=false
5183  # Loop through the user's path and test for each of PROGNAME-LIST
5184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186do
5187  IFS=$as_save_IFS
5188  case $as_dir in #(((
5189    '') as_dir=./ ;;
5190    */) ;;
5191    *) as_dir=$as_dir/ ;;
5192  esac
5193    for ac_prog in fgrep
5194   do
5195    for ac_exec_ext in '' $ac_executable_extensions; do
5196      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5197      as_fn_executable_p "$ac_path_FGREP" || continue
5198# Check for GNU ac_path_FGREP and select it if it is found.
5199  # Check for GNU $ac_path_FGREP
5200case `"$ac_path_FGREP" --version 2>&1` in
5201*GNU*)
5202  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5203*)
5204  ac_count=0
5205  printf %s 0123456789 >"conftest.in"
5206  while :
5207  do
5208    cat "conftest.in" "conftest.in" >"conftest.tmp"
5209    mv "conftest.tmp" "conftest.in"
5210    cp "conftest.in" "conftest.nl"
5211    printf "%s\n" 'FGREP' >> "conftest.nl"
5212    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214    as_fn_arith $ac_count + 1 && ac_count=$as_val
5215    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5216      # Best one so far, save it but keep looking for a better one
5217      ac_cv_path_FGREP="$ac_path_FGREP"
5218      ac_path_FGREP_max=$ac_count
5219    fi
5220    # 10*(2^10) chars as input seems more than enough
5221    test $ac_count -gt 10 && break
5222  done
5223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224esac
5225
5226      $ac_path_FGREP_found && break 3
5227    done
5228  done
5229  done
5230IFS=$as_save_IFS
5231  if test -z "$ac_cv_path_FGREP"; then
5232    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233  fi
5234else
5235  ac_cv_path_FGREP=$FGREP
5236fi
5237
5238   fi
5239fi
5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5241printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5242 FGREP="$ac_cv_path_FGREP"
5243
5244
5245test -z "$GREP" && GREP=grep
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265# Check whether --with-gnu-ld was given.
5266if test ${with_gnu_ld+y}
5267then :
5268  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5269else $as_nop
5270  with_gnu_ld=no
5271fi
5272
5273ac_prog=ld
5274if test yes = "$GCC"; then
5275  # Check if gcc -print-prog-name=ld gives a path.
5276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5277printf %s "checking for ld used by $CC... " >&6; }
5278  case $host in
5279  *-*-mingw*)
5280    # gcc leaves a trailing carriage return, which upsets mingw
5281    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5282  *)
5283    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5284  esac
5285  case $ac_prog in
5286    # Accept absolute paths.
5287    [\\/]* | ?:[\\/]*)
5288      re_direlt='/[^/][^/]*/\.\./'
5289      # Canonicalize the pathname of ld
5290      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5291      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5292	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5293      done
5294      test -z "$LD" && LD=$ac_prog
5295      ;;
5296  "")
5297    # If it fails, then pretend we aren't using GCC.
5298    ac_prog=ld
5299    ;;
5300  *)
5301    # If it is relative, then search for the first ld in PATH.
5302    with_gnu_ld=unknown
5303    ;;
5304  esac
5305elif test yes = "$with_gnu_ld"; then
5306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5307printf %s "checking for GNU ld... " >&6; }
5308else
5309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5310printf %s "checking for non-GNU ld... " >&6; }
5311fi
5312if test ${lt_cv_path_LD+y}
5313then :
5314  printf %s "(cached) " >&6
5315else $as_nop
5316  if test -z "$LD"; then
5317  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5318  for ac_dir in $PATH; do
5319    IFS=$lt_save_ifs
5320    test -z "$ac_dir" && ac_dir=.
5321    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5322      lt_cv_path_LD=$ac_dir/$ac_prog
5323      # Check to see if the program is GNU ld.  I'd rather use --version,
5324      # but apparently some variants of GNU ld only accept -v.
5325      # Break only if it was the GNU/non-GNU ld that we prefer.
5326      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5327      *GNU* | *'with BFD'*)
5328	test no != "$with_gnu_ld" && break
5329	;;
5330      *)
5331	test yes != "$with_gnu_ld" && break
5332	;;
5333      esac
5334    fi
5335  done
5336  IFS=$lt_save_ifs
5337else
5338  lt_cv_path_LD=$LD # Let the user override the test with a path.
5339fi
5340fi
5341
5342LD=$lt_cv_path_LD
5343if test -n "$LD"; then
5344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345printf "%s\n" "$LD" >&6; }
5346else
5347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348printf "%s\n" "no" >&6; }
5349fi
5350test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5352printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5353if test ${lt_cv_prog_gnu_ld+y}
5354then :
5355  printf %s "(cached) " >&6
5356else $as_nop
5357  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5358case `$LD -v 2>&1 </dev/null` in
5359*GNU* | *'with BFD'*)
5360  lt_cv_prog_gnu_ld=yes
5361  ;;
5362*)
5363  lt_cv_prog_gnu_ld=no
5364  ;;
5365esac
5366fi
5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5368printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5369with_gnu_ld=$lt_cv_prog_gnu_ld
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5380printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5381if test ${lt_cv_path_NM+y}
5382then :
5383  printf %s "(cached) " >&6
5384else $as_nop
5385  if test -n "$NM"; then
5386  # Let the user override the test.
5387  lt_cv_path_NM=$NM
5388else
5389  lt_nm_to_check=${ac_tool_prefix}nm
5390  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5391    lt_nm_to_check="$lt_nm_to_check nm"
5392  fi
5393  for lt_tmp_nm in $lt_nm_to_check; do
5394    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5395    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5396      IFS=$lt_save_ifs
5397      test -z "$ac_dir" && ac_dir=.
5398      tmp_nm=$ac_dir/$lt_tmp_nm
5399      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5400	# Check to see if the nm accepts a BSD-compat flag.
5401	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5402	#   nm: unknown option "B" ignored
5403	# Tru64's nm complains that /dev/null is an invalid object file
5404	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5405	case $build_os in
5406	mingw*) lt_bad_file=conftest.nm/nofile ;;
5407	*) lt_bad_file=/dev/null ;;
5408	esac
5409	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5410	*$lt_bad_file* | *'Invalid file or object type'*)
5411	  lt_cv_path_NM="$tmp_nm -B"
5412	  break 2
5413	  ;;
5414	*)
5415	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5416	  */dev/null*)
5417	    lt_cv_path_NM="$tmp_nm -p"
5418	    break 2
5419	    ;;
5420	  *)
5421	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5422	    continue # so that we can try to find one that supports BSD flags
5423	    ;;
5424	  esac
5425	  ;;
5426	esac
5427      fi
5428    done
5429    IFS=$lt_save_ifs
5430  done
5431  : ${lt_cv_path_NM=no}
5432fi
5433fi
5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5435printf "%s\n" "$lt_cv_path_NM" >&6; }
5436if test no != "$lt_cv_path_NM"; then
5437  NM=$lt_cv_path_NM
5438else
5439  # Didn't find any BSD compatible name lister, look for dumpbin.
5440  if test -n "$DUMPBIN"; then :
5441    # Let the user override the test.
5442  else
5443    if test -n "$ac_tool_prefix"; then
5444  for ac_prog in dumpbin "link -dump"
5445  do
5446    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449printf %s "checking for $ac_word... " >&6; }
5450if test ${ac_cv_prog_DUMPBIN+y}
5451then :
5452  printf %s "(cached) " >&6
5453else $as_nop
5454  if test -n "$DUMPBIN"; then
5455  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460  IFS=$as_save_IFS
5461  case $as_dir in #(((
5462    '') as_dir=./ ;;
5463    */) ;;
5464    *) as_dir=$as_dir/ ;;
5465  esac
5466    for ac_exec_ext in '' $ac_executable_extensions; do
5467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5468    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5470    break 2
5471  fi
5472done
5473  done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478DUMPBIN=$ac_cv_prog_DUMPBIN
5479if test -n "$DUMPBIN"; then
5480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5481printf "%s\n" "$DUMPBIN" >&6; }
5482else
5483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484printf "%s\n" "no" >&6; }
5485fi
5486
5487
5488    test -n "$DUMPBIN" && break
5489  done
5490fi
5491if test -z "$DUMPBIN"; then
5492  ac_ct_DUMPBIN=$DUMPBIN
5493  for ac_prog in dumpbin "link -dump"
5494do
5495  # Extract the first word of "$ac_prog", so it can be a program name with args.
5496set dummy $ac_prog; ac_word=$2
5497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498printf %s "checking for $ac_word... " >&6; }
5499if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5500then :
5501  printf %s "(cached) " >&6
5502else $as_nop
5503  if test -n "$ac_ct_DUMPBIN"; then
5504  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  case $as_dir in #(((
5511    '') as_dir=./ ;;
5512    */) ;;
5513    *) as_dir=$as_dir/ ;;
5514  esac
5515    for ac_exec_ext in '' $ac_executable_extensions; do
5516  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5517    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5518    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5519    break 2
5520  fi
5521done
5522  done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5528if test -n "$ac_ct_DUMPBIN"; then
5529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5530printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5531else
5532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533printf "%s\n" "no" >&6; }
5534fi
5535
5536
5537  test -n "$ac_ct_DUMPBIN" && break
5538done
5539
5540  if test "x$ac_ct_DUMPBIN" = x; then
5541    DUMPBIN=":"
5542  else
5543    case $cross_compiling:$ac_tool_warned in
5544yes:)
5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547ac_tool_warned=yes ;;
5548esac
5549    DUMPBIN=$ac_ct_DUMPBIN
5550  fi
5551fi
5552
5553    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5554    *COFF*)
5555      DUMPBIN="$DUMPBIN -symbols -headers"
5556      ;;
5557    *)
5558      DUMPBIN=:
5559      ;;
5560    esac
5561  fi
5562
5563  if test : != "$DUMPBIN"; then
5564    NM=$DUMPBIN
5565  fi
5566fi
5567test -z "$NM" && NM=nm
5568
5569
5570
5571
5572
5573
5574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5575printf %s "checking the name lister ($NM) interface... " >&6; }
5576if test ${lt_cv_nm_interface+y}
5577then :
5578  printf %s "(cached) " >&6
5579else $as_nop
5580  lt_cv_nm_interface="BSD nm"
5581  echo "int some_variable = 0;" > conftest.$ac_ext
5582  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5583  (eval "$ac_compile" 2>conftest.err)
5584  cat conftest.err >&5
5585  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5586  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5587  cat conftest.err >&5
5588  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5589  cat conftest.out >&5
5590  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5591    lt_cv_nm_interface="MS dumpbin"
5592  fi
5593  rm -f conftest*
5594fi
5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5596printf "%s\n" "$lt_cv_nm_interface" >&6; }
5597
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5599printf %s "checking whether ln -s works... " >&6; }
5600LN_S=$as_ln_s
5601if test "$LN_S" = "ln -s"; then
5602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603printf "%s\n" "yes" >&6; }
5604else
5605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5606printf "%s\n" "no, using $LN_S" >&6; }
5607fi
5608
5609# find the maximum length of command line arguments
5610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5611printf %s "checking the maximum length of command line arguments... " >&6; }
5612if test ${lt_cv_sys_max_cmd_len+y}
5613then :
5614  printf %s "(cached) " >&6
5615else $as_nop
5616    i=0
5617  teststring=ABCD
5618
5619  case $build_os in
5620  msdosdjgpp*)
5621    # On DJGPP, this test can blow up pretty badly due to problems in libc
5622    # (any single argument exceeding 2000 bytes causes a buffer overrun
5623    # during glob expansion).  Even if it were fixed, the result of this
5624    # check would be larger than it should be.
5625    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5626    ;;
5627
5628  gnu*)
5629    # Under GNU Hurd, this test is not required because there is
5630    # no limit to the length of command line arguments.
5631    # Libtool will interpret -1 as no limit whatsoever
5632    lt_cv_sys_max_cmd_len=-1;
5633    ;;
5634
5635  cygwin* | mingw* | cegcc*)
5636    # On Win9x/ME, this test blows up -- it succeeds, but takes
5637    # about 5 minutes as the teststring grows exponentially.
5638    # Worse, since 9x/ME are not pre-emptively multitasking,
5639    # you end up with a "frozen" computer, even though with patience
5640    # the test eventually succeeds (with a max line length of 256k).
5641    # Instead, let's just punt: use the minimum linelength reported by
5642    # all of the supported platforms: 8192 (on NT/2K/XP).
5643    lt_cv_sys_max_cmd_len=8192;
5644    ;;
5645
5646  mint*)
5647    # On MiNT this can take a long time and run out of memory.
5648    lt_cv_sys_max_cmd_len=8192;
5649    ;;
5650
5651  amigaos*)
5652    # On AmigaOS with pdksh, this test takes hours, literally.
5653    # So we just punt and use a minimum line length of 8192.
5654    lt_cv_sys_max_cmd_len=8192;
5655    ;;
5656
5657  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5658    # This has been around since 386BSD, at least.  Likely further.
5659    if test -x /sbin/sysctl; then
5660      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5661    elif test -x /usr/sbin/sysctl; then
5662      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5663    else
5664      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5665    fi
5666    # And add a safety zone
5667    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5668    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5669    ;;
5670
5671  interix*)
5672    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5673    lt_cv_sys_max_cmd_len=196608
5674    ;;
5675
5676  os2*)
5677    # The test takes a long time on OS/2.
5678    lt_cv_sys_max_cmd_len=8192
5679    ;;
5680
5681  osf*)
5682    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5683    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5684    # nice to cause kernel panics so lets avoid the loop below.
5685    # First set a reasonable default.
5686    lt_cv_sys_max_cmd_len=16384
5687    #
5688    if test -x /sbin/sysconfig; then
5689      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5690        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5691      esac
5692    fi
5693    ;;
5694  sco3.2v5*)
5695    lt_cv_sys_max_cmd_len=102400
5696    ;;
5697  sysv5* | sco5v6* | sysv4.2uw2*)
5698    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5699    if test -n "$kargmax"; then
5700      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5701    else
5702      lt_cv_sys_max_cmd_len=32768
5703    fi
5704    ;;
5705  *)
5706    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5707    if test -n "$lt_cv_sys_max_cmd_len" && \
5708       test undefined != "$lt_cv_sys_max_cmd_len"; then
5709      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5710      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5711    else
5712      # Make teststring a little bigger before we do anything with it.
5713      # a 1K string should be a reasonable start.
5714      for i in 1 2 3 4 5 6 7 8; do
5715        teststring=$teststring$teststring
5716      done
5717      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5718      # If test is not a shell built-in, we'll probably end up computing a
5719      # maximum length that is only half of the actual maximum length, but
5720      # we can't tell.
5721      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5722	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5723	      test 17 != "$i" # 1/2 MB should be enough
5724      do
5725        i=`expr $i + 1`
5726        teststring=$teststring$teststring
5727      done
5728      # Only check the string length outside the loop.
5729      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5730      teststring=
5731      # Add a significant safety factor because C++ compilers can tack on
5732      # massive amounts of additional arguments before passing them to the
5733      # linker.  It appears as though 1/2 is a usable value.
5734      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5735    fi
5736    ;;
5737  esac
5738
5739fi
5740
5741if test -n "$lt_cv_sys_max_cmd_len"; then
5742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5743printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5744else
5745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5746printf "%s\n" "none" >&6; }
5747fi
5748max_cmd_len=$lt_cv_sys_max_cmd_len
5749
5750
5751
5752
5753
5754
5755: ${CP="cp -f"}
5756: ${MV="mv -f"}
5757: ${RM="rm -f"}
5758
5759if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5760  lt_unset=unset
5761else
5762  lt_unset=false
5763fi
5764
5765
5766
5767
5768
5769# test EBCDIC or ASCII
5770case `echo X|tr X '\101'` in
5771 A) # ASCII based system
5772    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5773  lt_SP2NL='tr \040 \012'
5774  lt_NL2SP='tr \015\012 \040\040'
5775  ;;
5776 *) # EBCDIC based system
5777  lt_SP2NL='tr \100 \n'
5778  lt_NL2SP='tr \r\n \100\100'
5779  ;;
5780esac
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5791printf %s "checking how to convert $build file names to $host format... " >&6; }
5792if test ${lt_cv_to_host_file_cmd+y}
5793then :
5794  printf %s "(cached) " >&6
5795else $as_nop
5796  case $host in
5797  *-*-mingw* )
5798    case $build in
5799      *-*-mingw* ) # actually msys
5800        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5801        ;;
5802      *-*-cygwin* )
5803        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5804        ;;
5805      * ) # otherwise, assume *nix
5806        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5807        ;;
5808    esac
5809    ;;
5810  *-*-cygwin* )
5811    case $build in
5812      *-*-mingw* ) # actually msys
5813        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5814        ;;
5815      *-*-cygwin* )
5816        lt_cv_to_host_file_cmd=func_convert_file_noop
5817        ;;
5818      * ) # otherwise, assume *nix
5819        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5820        ;;
5821    esac
5822    ;;
5823  * ) # unhandled hosts (and "normal" native builds)
5824    lt_cv_to_host_file_cmd=func_convert_file_noop
5825    ;;
5826esac
5827
5828fi
5829
5830to_host_file_cmd=$lt_cv_to_host_file_cmd
5831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5832printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5833
5834
5835
5836
5837
5838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5839printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5840if test ${lt_cv_to_tool_file_cmd+y}
5841then :
5842  printf %s "(cached) " >&6
5843else $as_nop
5844  #assume ordinary cross tools, or native build.
5845lt_cv_to_tool_file_cmd=func_convert_file_noop
5846case $host in
5847  *-*-mingw* )
5848    case $build in
5849      *-*-mingw* ) # actually msys
5850        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5851        ;;
5852    esac
5853    ;;
5854esac
5855
5856fi
5857
5858to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5860printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5861
5862
5863
5864
5865
5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5867printf %s "checking for $LD option to reload object files... " >&6; }
5868if test ${lt_cv_ld_reload_flag+y}
5869then :
5870  printf %s "(cached) " >&6
5871else $as_nop
5872  lt_cv_ld_reload_flag='-r'
5873fi
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5875printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5876reload_flag=$lt_cv_ld_reload_flag
5877case $reload_flag in
5878"" | " "*) ;;
5879*) reload_flag=" $reload_flag" ;;
5880esac
5881reload_cmds='$LD$reload_flag -o $output$reload_objs'
5882case $host_os in
5883  cygwin* | mingw* | pw32* | cegcc*)
5884    if test yes != "$GCC"; then
5885      reload_cmds=false
5886    fi
5887    ;;
5888  darwin*)
5889    if test yes = "$GCC"; then
5890      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5891    else
5892      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5893    fi
5894    ;;
5895esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905if test -n "$ac_tool_prefix"; then
5906  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}file; ac_word=$2
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909printf %s "checking for $ac_word... " >&6; }
5910if test ${ac_cv_prog_FILECMD+y}
5911then :
5912  printf %s "(cached) " >&6
5913else $as_nop
5914  if test -n "$FILECMD"; then
5915  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920  IFS=$as_save_IFS
5921  case $as_dir in #(((
5922    '') as_dir=./ ;;
5923    */) ;;
5924    *) as_dir=$as_dir/ ;;
5925  esac
5926    for ac_exec_ext in '' $ac_executable_extensions; do
5927  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5928    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5929    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933  done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938FILECMD=$ac_cv_prog_FILECMD
5939if test -n "$FILECMD"; then
5940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5941printf "%s\n" "$FILECMD" >&6; }
5942else
5943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944printf "%s\n" "no" >&6; }
5945fi
5946
5947
5948fi
5949if test -z "$ac_cv_prog_FILECMD"; then
5950  ac_ct_FILECMD=$FILECMD
5951  # Extract the first word of "file", so it can be a program name with args.
5952set dummy file; ac_word=$2
5953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954printf %s "checking for $ac_word... " >&6; }
5955if test ${ac_cv_prog_ac_ct_FILECMD+y}
5956then :
5957  printf %s "(cached) " >&6
5958else $as_nop
5959  if test -n "$ac_ct_FILECMD"; then
5960  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  case $as_dir in #(((
5967    '') as_dir=./ ;;
5968    */) ;;
5969    *) as_dir=$as_dir/ ;;
5970  esac
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_ac_ct_FILECMD="file"
5974    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5984if test -n "$ac_ct_FILECMD"; then
5985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5986printf "%s\n" "$ac_ct_FILECMD" >&6; }
5987else
5988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989printf "%s\n" "no" >&6; }
5990fi
5991
5992  if test "x$ac_ct_FILECMD" = x; then
5993    FILECMD=":"
5994  else
5995    case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001    FILECMD=$ac_ct_FILECMD
6002  fi
6003else
6004  FILECMD="$ac_cv_prog_FILECMD"
6005fi
6006
6007
6008
6009
6010
6011
6012
6013if test -n "$ac_tool_prefix"; then
6014  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6015set dummy ${ac_tool_prefix}objdump; ac_word=$2
6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017printf %s "checking for $ac_word... " >&6; }
6018if test ${ac_cv_prog_OBJDUMP+y}
6019then :
6020  printf %s "(cached) " >&6
6021else $as_nop
6022  if test -n "$OBJDUMP"; then
6023  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028  IFS=$as_save_IFS
6029  case $as_dir in #(((
6030    '') as_dir=./ ;;
6031    */) ;;
6032    *) as_dir=$as_dir/ ;;
6033  esac
6034    for ac_exec_ext in '' $ac_executable_extensions; do
6035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6036    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6038    break 2
6039  fi
6040done
6041  done
6042IFS=$as_save_IFS
6043
6044fi
6045fi
6046OBJDUMP=$ac_cv_prog_OBJDUMP
6047if test -n "$OBJDUMP"; then
6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6049printf "%s\n" "$OBJDUMP" >&6; }
6050else
6051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052printf "%s\n" "no" >&6; }
6053fi
6054
6055
6056fi
6057if test -z "$ac_cv_prog_OBJDUMP"; then
6058  ac_ct_OBJDUMP=$OBJDUMP
6059  # Extract the first word of "objdump", so it can be a program name with args.
6060set dummy objdump; ac_word=$2
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062printf %s "checking for $ac_word... " >&6; }
6063if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6064then :
6065  printf %s "(cached) " >&6
6066else $as_nop
6067  if test -n "$ac_ct_OBJDUMP"; then
6068  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  case $as_dir in #(((
6075    '') as_dir=./ ;;
6076    */) ;;
6077    *) as_dir=$as_dir/ ;;
6078  esac
6079    for ac_exec_ext in '' $ac_executable_extensions; do
6080  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6081    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6082    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6083    break 2
6084  fi
6085done
6086  done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6092if test -n "$ac_ct_OBJDUMP"; then
6093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6094printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6095else
6096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097printf "%s\n" "no" >&6; }
6098fi
6099
6100  if test "x$ac_ct_OBJDUMP" = x; then
6101    OBJDUMP="false"
6102  else
6103    case $cross_compiling:$ac_tool_warned in
6104yes:)
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107ac_tool_warned=yes ;;
6108esac
6109    OBJDUMP=$ac_ct_OBJDUMP
6110  fi
6111else
6112  OBJDUMP="$ac_cv_prog_OBJDUMP"
6113fi
6114
6115test -z "$OBJDUMP" && OBJDUMP=objdump
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6126printf %s "checking how to recognize dependent libraries... " >&6; }
6127if test ${lt_cv_deplibs_check_method+y}
6128then :
6129  printf %s "(cached) " >&6
6130else $as_nop
6131  lt_cv_file_magic_cmd='$MAGIC_CMD'
6132lt_cv_file_magic_test_file=
6133lt_cv_deplibs_check_method='unknown'
6134# Need to set the preceding variable on all platforms that support
6135# interlibrary dependencies.
6136# 'none' -- dependencies not supported.
6137# 'unknown' -- same as none, but documents that we really don't know.
6138# 'pass_all' -- all dependencies passed with no checks.
6139# 'test_compile' -- check by making test program.
6140# 'file_magic [[regex]]' -- check by looking for files in library path
6141# that responds to the $file_magic_cmd with a given extended regex.
6142# If you have 'file' or equivalent on your system and you're not sure
6143# whether 'pass_all' will *always* work, you probably want this one.
6144
6145case $host_os in
6146aix[4-9]*)
6147  lt_cv_deplibs_check_method=pass_all
6148  ;;
6149
6150beos*)
6151  lt_cv_deplibs_check_method=pass_all
6152  ;;
6153
6154bsdi[45]*)
6155  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6156  lt_cv_file_magic_cmd='$FILECMD -L'
6157  lt_cv_file_magic_test_file=/shlib/libc.so
6158  ;;
6159
6160cygwin*)
6161  # func_win32_libid is a shell function defined in ltmain.sh
6162  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6163  lt_cv_file_magic_cmd='func_win32_libid'
6164  ;;
6165
6166mingw* | pw32*)
6167  # Base MSYS/MinGW do not provide the 'file' command needed by
6168  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6169  # unless we find 'file', for example because we are cross-compiling.
6170  if ( file / ) >/dev/null 2>&1; then
6171    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172    lt_cv_file_magic_cmd='func_win32_libid'
6173  else
6174    # Keep this pattern in sync with the one in func_win32_libid.
6175    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6176    lt_cv_file_magic_cmd='$OBJDUMP -f'
6177  fi
6178  ;;
6179
6180cegcc*)
6181  # use the weaker test based on 'objdump'. See mingw*.
6182  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6183  lt_cv_file_magic_cmd='$OBJDUMP -f'
6184  ;;
6185
6186darwin* | rhapsody*)
6187  lt_cv_deplibs_check_method=pass_all
6188  ;;
6189
6190freebsd* | dragonfly* | midnightbsd*)
6191  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6192    case $host_cpu in
6193    i*86 )
6194      # Not sure whether the presence of OpenBSD here was a mistake.
6195      # Let's accept both of them until this is cleared up.
6196      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6197      lt_cv_file_magic_cmd=$FILECMD
6198      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6199      ;;
6200    esac
6201  else
6202    lt_cv_deplibs_check_method=pass_all
6203  fi
6204  ;;
6205
6206haiku*)
6207  lt_cv_deplibs_check_method=pass_all
6208  ;;
6209
6210hpux10.20* | hpux11*)
6211  lt_cv_file_magic_cmd=$FILECMD
6212  case $host_cpu in
6213  ia64*)
6214    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6215    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6216    ;;
6217  hppa*64*)
6218    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]'
6219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6220    ;;
6221  *)
6222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6224    ;;
6225  esac
6226  ;;
6227
6228interix[3-9]*)
6229  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6230  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6231  ;;
6232
6233irix5* | irix6* | nonstopux*)
6234  case $LD in
6235  *-32|*"-32 ") libmagic=32-bit;;
6236  *-n32|*"-n32 ") libmagic=N32;;
6237  *-64|*"-64 ") libmagic=64-bit;;
6238  *) libmagic=never-match;;
6239  esac
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243# This must be glibc/ELF.
6244linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248netbsd*)
6249  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6251  else
6252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6253  fi
6254  ;;
6255
6256newos6*)
6257  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6258  lt_cv_file_magic_cmd=$FILECMD
6259  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6260  ;;
6261
6262*nto* | *qnx*)
6263  lt_cv_deplibs_check_method=pass_all
6264  ;;
6265
6266openbsd* | bitrig*)
6267  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6269  else
6270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6271  fi
6272  ;;
6273
6274osf3* | osf4* | osf5*)
6275  lt_cv_deplibs_check_method=pass_all
6276  ;;
6277
6278rdos*)
6279  lt_cv_deplibs_check_method=pass_all
6280  ;;
6281
6282solaris*)
6283  lt_cv_deplibs_check_method=pass_all
6284  ;;
6285
6286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6287  lt_cv_deplibs_check_method=pass_all
6288  ;;
6289
6290sysv4 | sysv4.3*)
6291  case $host_vendor in
6292  motorola)
6293    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]'
6294    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6295    ;;
6296  ncr)
6297    lt_cv_deplibs_check_method=pass_all
6298    ;;
6299  sequent)
6300    lt_cv_file_magic_cmd='/bin/file'
6301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6302    ;;
6303  sni)
6304    lt_cv_file_magic_cmd='/bin/file'
6305    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6306    lt_cv_file_magic_test_file=/lib/libc.so
6307    ;;
6308  siemens)
6309    lt_cv_deplibs_check_method=pass_all
6310    ;;
6311  pc)
6312    lt_cv_deplibs_check_method=pass_all
6313    ;;
6314  esac
6315  ;;
6316
6317tpf*)
6318  lt_cv_deplibs_check_method=pass_all
6319  ;;
6320os2*)
6321  lt_cv_deplibs_check_method=pass_all
6322  ;;
6323esac
6324
6325fi
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6327printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6328
6329file_magic_glob=
6330want_nocaseglob=no
6331if test "$build" = "$host"; then
6332  case $host_os in
6333  mingw* | pw32*)
6334    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6335      want_nocaseglob=yes
6336    else
6337      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6338    fi
6339    ;;
6340  esac
6341fi
6342
6343file_magic_cmd=$lt_cv_file_magic_cmd
6344deplibs_check_method=$lt_cv_deplibs_check_method
6345test -z "$deplibs_check_method" && deplibs_check_method=unknown
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368if test -n "$ac_tool_prefix"; then
6369  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6370set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372printf %s "checking for $ac_word... " >&6; }
6373if test ${ac_cv_prog_DLLTOOL+y}
6374then :
6375  printf %s "(cached) " >&6
6376else $as_nop
6377  if test -n "$DLLTOOL"; then
6378  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383  IFS=$as_save_IFS
6384  case $as_dir in #(((
6385    '') as_dir=./ ;;
6386    */) ;;
6387    *) as_dir=$as_dir/ ;;
6388  esac
6389    for ac_exec_ext in '' $ac_executable_extensions; do
6390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6391    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396  done
6397IFS=$as_save_IFS
6398
6399fi
6400fi
6401DLLTOOL=$ac_cv_prog_DLLTOOL
6402if test -n "$DLLTOOL"; then
6403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6404printf "%s\n" "$DLLTOOL" >&6; }
6405else
6406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407printf "%s\n" "no" >&6; }
6408fi
6409
6410
6411fi
6412if test -z "$ac_cv_prog_DLLTOOL"; then
6413  ac_ct_DLLTOOL=$DLLTOOL
6414  # Extract the first word of "dlltool", so it can be a program name with args.
6415set dummy dlltool; ac_word=$2
6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417printf %s "checking for $ac_word... " >&6; }
6418if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6419then :
6420  printf %s "(cached) " >&6
6421else $as_nop
6422  if test -n "$ac_ct_DLLTOOL"; then
6423  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  case $as_dir in #(((
6430    '') as_dir=./ ;;
6431    */) ;;
6432    *) as_dir=$as_dir/ ;;
6433  esac
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6436    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6447if test -n "$ac_ct_DLLTOOL"; then
6448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6449printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6450else
6451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452printf "%s\n" "no" >&6; }
6453fi
6454
6455  if test "x$ac_ct_DLLTOOL" = x; then
6456    DLLTOOL="false"
6457  else
6458    case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464    DLLTOOL=$ac_ct_DLLTOOL
6465  fi
6466else
6467  DLLTOOL="$ac_cv_prog_DLLTOOL"
6468fi
6469
6470test -z "$DLLTOOL" && DLLTOOL=dlltool
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6482printf %s "checking how to associate runtime and link libraries... " >&6; }
6483if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6484then :
6485  printf %s "(cached) " >&6
6486else $as_nop
6487  lt_cv_sharedlib_from_linklib_cmd='unknown'
6488
6489case $host_os in
6490cygwin* | mingw* | pw32* | cegcc*)
6491  # two different shell functions defined in ltmain.sh;
6492  # decide which one to use based on capabilities of $DLLTOOL
6493  case `$DLLTOOL --help 2>&1` in
6494  *--identify-strict*)
6495    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6496    ;;
6497  *)
6498    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499    ;;
6500  esac
6501  ;;
6502*)
6503  # fallback: assume linklib IS sharedlib
6504  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6505  ;;
6506esac
6507
6508fi
6509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6510printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6511sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6512test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6513
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521  for ac_prog in ar
6522  do
6523    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526printf %s "checking for $ac_word... " >&6; }
6527if test ${ac_cv_prog_AR+y}
6528then :
6529  printf %s "(cached) " >&6
6530else $as_nop
6531  if test -n "$AR"; then
6532  ac_cv_prog_AR="$AR" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  case $as_dir in #(((
6539    '') as_dir=./ ;;
6540    */) ;;
6541    *) as_dir=$as_dir/ ;;
6542  esac
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555AR=$ac_cv_prog_AR
6556if test -n "$AR"; then
6557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558printf "%s\n" "$AR" >&6; }
6559else
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561printf "%s\n" "no" >&6; }
6562fi
6563
6564
6565    test -n "$AR" && break
6566  done
6567fi
6568if test -z "$AR"; then
6569  ac_ct_AR=$AR
6570  for ac_prog in ar
6571do
6572  # Extract the first word of "$ac_prog", so it can be a program name with args.
6573set dummy $ac_prog; ac_word=$2
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575printf %s "checking for $ac_word... " >&6; }
6576if test ${ac_cv_prog_ac_ct_AR+y}
6577then :
6578  printf %s "(cached) " >&6
6579else $as_nop
6580  if test -n "$ac_ct_AR"; then
6581  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  case $as_dir in #(((
6588    '') as_dir=./ ;;
6589    */) ;;
6590    *) as_dir=$as_dir/ ;;
6591  esac
6592    for ac_exec_ext in '' $ac_executable_extensions; do
6593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594    ac_cv_prog_ac_ct_AR="$ac_prog"
6595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599  done
6600IFS=$as_save_IFS
6601
6602fi
6603fi
6604ac_ct_AR=$ac_cv_prog_ac_ct_AR
6605if test -n "$ac_ct_AR"; then
6606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6607printf "%s\n" "$ac_ct_AR" >&6; }
6608else
6609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610printf "%s\n" "no" >&6; }
6611fi
6612
6613
6614  test -n "$ac_ct_AR" && break
6615done
6616
6617  if test "x$ac_ct_AR" = x; then
6618    AR="false"
6619  else
6620    case $cross_compiling:$ac_tool_warned in
6621yes:)
6622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624ac_tool_warned=yes ;;
6625esac
6626    AR=$ac_ct_AR
6627  fi
6628fi
6629
6630: ${AR=ar}
6631
6632
6633
6634
6635
6636
6637# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6638# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6639# higher priority because thats what people were doing historically (setting
6640# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6641# variable obsoleted/removed.
6642
6643test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6644lt_ar_flags=$AR_FLAGS
6645
6646
6647
6648
6649
6650
6651# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6652# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6653
6654
6655
6656
6657
6658
6659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6660printf %s "checking for archiver @FILE support... " >&6; }
6661if test ${lt_cv_ar_at_file+y}
6662then :
6663  printf %s "(cached) " >&6
6664else $as_nop
6665  lt_cv_ar_at_file=no
6666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668
6669int
6670main (void)
6671{
6672
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"
6678then :
6679  echo conftest.$ac_objext > conftest.lst
6680      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6681      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682  (eval $lt_ar_try) 2>&5
6683  ac_status=$?
6684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685  test $ac_status = 0; }
6686      if test 0 -eq "$ac_status"; then
6687	# Ensure the archiver fails upon bogus file names.
6688	rm -f conftest.$ac_objext libconftest.a
6689	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6690  (eval $lt_ar_try) 2>&5
6691  ac_status=$?
6692  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693  test $ac_status = 0; }
6694	if test 0 -ne "$ac_status"; then
6695          lt_cv_ar_at_file=@
6696        fi
6697      fi
6698      rm -f conftest.* libconftest.a
6699
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6702
6703fi
6704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6705printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6706
6707if test no = "$lt_cv_ar_at_file"; then
6708  archiver_list_spec=
6709else
6710  archiver_list_spec=$lt_cv_ar_at_file
6711fi
6712
6713
6714
6715
6716
6717
6718
6719if test -n "$ac_tool_prefix"; then
6720  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721set dummy ${ac_tool_prefix}strip; ac_word=$2
6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723printf %s "checking for $ac_word... " >&6; }
6724if test ${ac_cv_prog_STRIP+y}
6725then :
6726  printf %s "(cached) " >&6
6727else $as_nop
6728  if test -n "$STRIP"; then
6729  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734  IFS=$as_save_IFS
6735  case $as_dir in #(((
6736    '') as_dir=./ ;;
6737    */) ;;
6738    *) as_dir=$as_dir/ ;;
6739  esac
6740    for ac_exec_ext in '' $ac_executable_extensions; do
6741  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6742    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6743    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6744    break 2
6745  fi
6746done
6747  done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752STRIP=$ac_cv_prog_STRIP
6753if test -n "$STRIP"; then
6754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6755printf "%s\n" "$STRIP" >&6; }
6756else
6757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758printf "%s\n" "no" >&6; }
6759fi
6760
6761
6762fi
6763if test -z "$ac_cv_prog_STRIP"; then
6764  ac_ct_STRIP=$STRIP
6765  # Extract the first word of "strip", so it can be a program name with args.
6766set dummy strip; ac_word=$2
6767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768printf %s "checking for $ac_word... " >&6; }
6769if test ${ac_cv_prog_ac_ct_STRIP+y}
6770then :
6771  printf %s "(cached) " >&6
6772else $as_nop
6773  if test -n "$ac_ct_STRIP"; then
6774  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779  IFS=$as_save_IFS
6780  case $as_dir in #(((
6781    '') as_dir=./ ;;
6782    */) ;;
6783    *) as_dir=$as_dir/ ;;
6784  esac
6785    for ac_exec_ext in '' $ac_executable_extensions; do
6786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6787    ac_cv_prog_ac_ct_STRIP="strip"
6788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792  done
6793IFS=$as_save_IFS
6794
6795fi
6796fi
6797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6798if test -n "$ac_ct_STRIP"; then
6799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6800printf "%s\n" "$ac_ct_STRIP" >&6; }
6801else
6802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803printf "%s\n" "no" >&6; }
6804fi
6805
6806  if test "x$ac_ct_STRIP" = x; then
6807    STRIP=":"
6808  else
6809    case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815    STRIP=$ac_ct_STRIP
6816  fi
6817else
6818  STRIP="$ac_cv_prog_STRIP"
6819fi
6820
6821test -z "$STRIP" && STRIP=:
6822
6823
6824
6825
6826
6827
6828if test -n "$ac_tool_prefix"; then
6829  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832printf %s "checking for $ac_word... " >&6; }
6833if test ${ac_cv_prog_RANLIB+y}
6834then :
6835  printf %s "(cached) " >&6
6836else $as_nop
6837  if test -n "$RANLIB"; then
6838  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  case $as_dir in #(((
6845    '') as_dir=./ ;;
6846    */) ;;
6847    *) as_dir=$as_dir/ ;;
6848  esac
6849    for ac_exec_ext in '' $ac_executable_extensions; do
6850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6851    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856  done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861RANLIB=$ac_cv_prog_RANLIB
6862if test -n "$RANLIB"; then
6863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6864printf "%s\n" "$RANLIB" >&6; }
6865else
6866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867printf "%s\n" "no" >&6; }
6868fi
6869
6870
6871fi
6872if test -z "$ac_cv_prog_RANLIB"; then
6873  ac_ct_RANLIB=$RANLIB
6874  # Extract the first word of "ranlib", so it can be a program name with args.
6875set dummy ranlib; ac_word=$2
6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877printf %s "checking for $ac_word... " >&6; }
6878if test ${ac_cv_prog_ac_ct_RANLIB+y}
6879then :
6880  printf %s "(cached) " >&6
6881else $as_nop
6882  if test -n "$ac_ct_RANLIB"; then
6883  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888  IFS=$as_save_IFS
6889  case $as_dir in #(((
6890    '') as_dir=./ ;;
6891    */) ;;
6892    *) as_dir=$as_dir/ ;;
6893  esac
6894    for ac_exec_ext in '' $ac_executable_extensions; do
6895  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896    ac_cv_prog_ac_ct_RANLIB="ranlib"
6897    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898    break 2
6899  fi
6900done
6901  done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6907if test -n "$ac_ct_RANLIB"; then
6908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6909printf "%s\n" "$ac_ct_RANLIB" >&6; }
6910else
6911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912printf "%s\n" "no" >&6; }
6913fi
6914
6915  if test "x$ac_ct_RANLIB" = x; then
6916    RANLIB=":"
6917  else
6918    case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924    RANLIB=$ac_ct_RANLIB
6925  fi
6926else
6927  RANLIB="$ac_cv_prog_RANLIB"
6928fi
6929
6930test -z "$RANLIB" && RANLIB=:
6931
6932
6933
6934
6935
6936
6937# Determine commands to create old-style static archives.
6938old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6939old_postinstall_cmds='chmod 644 $oldlib'
6940old_postuninstall_cmds=
6941
6942if test -n "$RANLIB"; then
6943  case $host_os in
6944  bitrig* | openbsd*)
6945    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6946    ;;
6947  *)
6948    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6949    ;;
6950  esac
6951  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6952fi
6953
6954case $host_os in
6955  darwin*)
6956    lock_old_archive_extraction=yes ;;
6957  *)
6958    lock_old_archive_extraction=no ;;
6959esac
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999# If no C compiler was specified, use CC.
7000LTCC=${LTCC-"$CC"}
7001
7002# If no C compiler flags were specified, use CFLAGS.
7003LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7004
7005# Allow CC to be a program name with arguments.
7006compiler=$CC
7007
7008
7009# Check for command to grab the raw symbol name followed by C symbol from nm.
7010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7011printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7012if test ${lt_cv_sys_global_symbol_pipe+y}
7013then :
7014  printf %s "(cached) " >&6
7015else $as_nop
7016
7017# These are sane defaults that work on at least a few old systems.
7018# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7019
7020# Character class describing NM global symbol codes.
7021symcode='[BCDEGRST]'
7022
7023# Regexp to match symbols that can be accessed directly from C.
7024sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7025
7026# Define system-specific variables.
7027case $host_os in
7028aix*)
7029  symcode='[BCDT]'
7030  ;;
7031cygwin* | mingw* | pw32* | cegcc*)
7032  symcode='[ABCDGISTW]'
7033  ;;
7034hpux*)
7035  if test ia64 = "$host_cpu"; then
7036    symcode='[ABCDEGRST]'
7037  fi
7038  ;;
7039irix* | nonstopux*)
7040  symcode='[BCDEGRST]'
7041  ;;
7042osf*)
7043  symcode='[BCDEGQRST]'
7044  ;;
7045solaris*)
7046  symcode='[BDRT]'
7047  ;;
7048sco3.2v5*)
7049  symcode='[DT]'
7050  ;;
7051sysv4.2uw2*)
7052  symcode='[DT]'
7053  ;;
7054sysv5* | sco5v6* | unixware* | OpenUNIX*)
7055  symcode='[ABDT]'
7056  ;;
7057sysv4)
7058  symcode='[DFNSTU]'
7059  ;;
7060esac
7061
7062# If we're using GNU nm, then use its standard symbol codes.
7063case `$NM -V 2>&1` in
7064*GNU* | *'with BFD'*)
7065  symcode='[ABCDGIRSTW]' ;;
7066esac
7067
7068if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7069  # Gets list of data symbols to import.
7070  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7071  # Adjust the below global symbol transforms to fixup imported variables.
7072  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7073  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7074  lt_c_name_lib_hook="\
7075  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7076  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7077else
7078  # Disable hooks by default.
7079  lt_cv_sys_global_symbol_to_import=
7080  lt_cdecl_hook=
7081  lt_c_name_hook=
7082  lt_c_name_lib_hook=
7083fi
7084
7085# Transform an extracted symbol line into a proper C declaration.
7086# Some systems (esp. on ia64) link data and code symbols differently,
7087# so use this general approach.
7088lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7089$lt_cdecl_hook\
7090" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7091" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7092
7093# Transform an extracted symbol line into symbol name and symbol address
7094lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7095$lt_c_name_hook\
7096" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7097" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7098
7099# Transform an extracted symbol line into symbol name with lib prefix and
7100# symbol address.
7101lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7102$lt_c_name_lib_hook\
7103" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7104" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7105" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7106
7107# Handle CRLF in mingw tool chain
7108opt_cr=
7109case $build_os in
7110mingw*)
7111  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7112  ;;
7113esac
7114
7115# Try without a prefix underscore, then with it.
7116for ac_symprfx in "" "_"; do
7117
7118  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7119  symxfrm="\\1 $ac_symprfx\\2 \\2"
7120
7121  # Write the raw and C identifiers.
7122  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7123    # Fake it for dumpbin and say T for any non-static function,
7124    # D for any global variable and I for any imported variable.
7125    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7126    # which start with @ or ?.
7127    lt_cv_sys_global_symbol_pipe="$AWK '"\
7128"     {last_section=section; section=\$ 3};"\
7129"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7130"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7131"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7132"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7133"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7134"     \$ 0!~/External *\|/{next};"\
7135"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7136"     {if(hide[section]) next};"\
7137"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7138"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7139"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7140"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7141"     ' prfx=^$ac_symprfx"
7142  else
7143    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7144  fi
7145  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7146
7147  # Check to see that the pipe works correctly.
7148  pipe_works=no
7149
7150  rm -f conftest*
7151  cat > conftest.$ac_ext <<_LT_EOF
7152#ifdef __cplusplus
7153extern "C" {
7154#endif
7155char nm_test_var;
7156void nm_test_func(void);
7157void nm_test_func(void){}
7158#ifdef __cplusplus
7159}
7160#endif
7161int main(){nm_test_var='a';nm_test_func();return(0);}
7162_LT_EOF
7163
7164  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165  (eval $ac_compile) 2>&5
7166  ac_status=$?
7167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168  test $ac_status = 0; }; then
7169    # Now try to grab the symbols.
7170    nlist=conftest.nm
7171    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7172  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7173  ac_status=$?
7174  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175  test $ac_status = 0; } && test -s "$nlist"; then
7176      # Try sorting and uniquifying the output.
7177      if sort "$nlist" | uniq > "$nlist"T; then
7178	mv -f "$nlist"T "$nlist"
7179      else
7180	rm -f "$nlist"T
7181      fi
7182
7183      # Make sure that we snagged all the symbols we need.
7184      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7185	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7186	  cat <<_LT_EOF > conftest.$ac_ext
7187/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7188#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7189/* DATA imports from DLLs on WIN32 can't be const, because runtime
7190   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7191# define LT_DLSYM_CONST
7192#elif defined __osf__
7193/* This system does not cope well with relocations in const data.  */
7194# define LT_DLSYM_CONST
7195#else
7196# define LT_DLSYM_CONST const
7197#endif
7198
7199#ifdef __cplusplus
7200extern "C" {
7201#endif
7202
7203_LT_EOF
7204	  # Now generate the symbol file.
7205	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7206
7207	  cat <<_LT_EOF >> conftest.$ac_ext
7208
7209/* The mapping between symbol names and symbols.  */
7210LT_DLSYM_CONST struct {
7211  const char *name;
7212  void       *address;
7213}
7214lt__PROGRAM__LTX_preloaded_symbols[] =
7215{
7216  { "@PROGRAM@", (void *) 0 },
7217_LT_EOF
7218	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7219	  cat <<\_LT_EOF >> conftest.$ac_ext
7220  {0, (void *) 0}
7221};
7222
7223/* This works around a problem in FreeBSD linker */
7224#ifdef FREEBSD_WORKAROUND
7225static const void *lt_preloaded_setup() {
7226  return lt__PROGRAM__LTX_preloaded_symbols;
7227}
7228#endif
7229
7230#ifdef __cplusplus
7231}
7232#endif
7233_LT_EOF
7234	  # Now try linking the two files.
7235	  mv conftest.$ac_objext conftstm.$ac_objext
7236	  lt_globsym_save_LIBS=$LIBS
7237	  lt_globsym_save_CFLAGS=$CFLAGS
7238	  LIBS=conftstm.$ac_objext
7239	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7240	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7241  (eval $ac_link) 2>&5
7242  ac_status=$?
7243  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7245	    pipe_works=yes
7246	  fi
7247	  LIBS=$lt_globsym_save_LIBS
7248	  CFLAGS=$lt_globsym_save_CFLAGS
7249	else
7250	  echo "cannot find nm_test_func in $nlist" >&5
7251	fi
7252      else
7253	echo "cannot find nm_test_var in $nlist" >&5
7254      fi
7255    else
7256      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7257    fi
7258  else
7259    echo "$progname: failed program was:" >&5
7260    cat conftest.$ac_ext >&5
7261  fi
7262  rm -rf conftest* conftst*
7263
7264  # Do not use the global_symbol_pipe unless it works.
7265  if test yes = "$pipe_works"; then
7266    break
7267  else
7268    lt_cv_sys_global_symbol_pipe=
7269  fi
7270done
7271
7272fi
7273
7274if test -z "$lt_cv_sys_global_symbol_pipe"; then
7275  lt_cv_sys_global_symbol_to_cdecl=
7276fi
7277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7279printf "%s\n" "failed" >&6; }
7280else
7281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7282printf "%s\n" "ok" >&6; }
7283fi
7284
7285# Response file support.
7286if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7287  nm_file_list_spec='@'
7288elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7289  nm_file_list_spec='@'
7290fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329printf %s "checking for sysroot... " >&6; }
7330
7331# Check whether --with-sysroot was given.
7332if test ${with_sysroot+y}
7333then :
7334  withval=$with_sysroot;
7335else $as_nop
7336  with_sysroot=no
7337fi
7338
7339
7340lt_sysroot=
7341case $with_sysroot in #(
7342 yes)
7343   if test yes = "$GCC"; then
7344     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7345   fi
7346   ;; #(
7347 /*)
7348   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7349   ;; #(
7350 no|'')
7351   ;; #(
7352 *)
7353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7354printf "%s\n" "$with_sysroot" >&6; }
7355   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7356   ;;
7357esac
7358
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7360printf "%s\n" "${lt_sysroot:-no}" >&6; }
7361
7362
7363
7364
7365
7366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7367printf %s "checking for a working dd... " >&6; }
7368if test ${ac_cv_path_lt_DD+y}
7369then :
7370  printf %s "(cached) " >&6
7371else $as_nop
7372  printf 0123456789abcdef0123456789abcdef >conftest.i
7373cat conftest.i conftest.i >conftest2.i
7374: ${lt_DD:=$DD}
7375if test -z "$lt_DD"; then
7376  ac_path_lt_DD_found=false
7377  # Loop through the user's path and test for each of PROGNAME-LIST
7378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  case $as_dir in #(((
7383    '') as_dir=./ ;;
7384    */) ;;
7385    *) as_dir=$as_dir/ ;;
7386  esac
7387    for ac_prog in dd
7388   do
7389    for ac_exec_ext in '' $ac_executable_extensions; do
7390      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7391      as_fn_executable_p "$ac_path_lt_DD" || continue
7392if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7393  cmp -s conftest.i conftest.out \
7394  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7395fi
7396      $ac_path_lt_DD_found && break 3
7397    done
7398  done
7399  done
7400IFS=$as_save_IFS
7401  if test -z "$ac_cv_path_lt_DD"; then
7402    :
7403  fi
7404else
7405  ac_cv_path_lt_DD=$lt_DD
7406fi
7407
7408rm -f conftest.i conftest2.i conftest.out
7409fi
7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7411printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7412
7413
7414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7415printf %s "checking how to truncate binary pipes... " >&6; }
7416if test ${lt_cv_truncate_bin+y}
7417then :
7418  printf %s "(cached) " >&6
7419else $as_nop
7420  printf 0123456789abcdef0123456789abcdef >conftest.i
7421cat conftest.i conftest.i >conftest2.i
7422lt_cv_truncate_bin=
7423if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7424  cmp -s conftest.i conftest.out \
7425  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7426fi
7427rm -f conftest.i conftest2.i conftest.out
7428test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7429fi
7430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7431printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7432
7433
7434
7435
7436
7437
7438
7439# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7440func_cc_basename ()
7441{
7442    for cc_temp in $*""; do
7443      case $cc_temp in
7444        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7445        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7446        \-*) ;;
7447        *) break;;
7448      esac
7449    done
7450    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7451}
7452
7453# Check whether --enable-libtool-lock was given.
7454if test ${enable_libtool_lock+y}
7455then :
7456  enableval=$enable_libtool_lock;
7457fi
7458
7459test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7460
7461# Some flags need to be propagated to the compiler or linker for good
7462# libtool support.
7463case $host in
7464ia64-*-hpux*)
7465  # Find out what ABI is being produced by ac_compile, and set mode
7466  # options accordingly.
7467  echo 'int i;' > conftest.$ac_ext
7468  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469  (eval $ac_compile) 2>&5
7470  ac_status=$?
7471  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472  test $ac_status = 0; }; then
7473    case `$FILECMD conftest.$ac_objext` in
7474      *ELF-32*)
7475	HPUX_IA64_MODE=32
7476	;;
7477      *ELF-64*)
7478	HPUX_IA64_MODE=64
7479	;;
7480    esac
7481  fi
7482  rm -rf conftest*
7483  ;;
7484*-*-irix6*)
7485  # Find out what ABI is being produced by ac_compile, and set linker
7486  # options accordingly.
7487  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7488  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489  (eval $ac_compile) 2>&5
7490  ac_status=$?
7491  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492  test $ac_status = 0; }; then
7493    if test yes = "$lt_cv_prog_gnu_ld"; then
7494      case `$FILECMD conftest.$ac_objext` in
7495	*32-bit*)
7496	  LD="${LD-ld} -melf32bsmip"
7497	  ;;
7498	*N32*)
7499	  LD="${LD-ld} -melf32bmipn32"
7500	  ;;
7501	*64-bit*)
7502	  LD="${LD-ld} -melf64bmip"
7503	;;
7504      esac
7505    else
7506      case `$FILECMD conftest.$ac_objext` in
7507	*32-bit*)
7508	  LD="${LD-ld} -32"
7509	  ;;
7510	*N32*)
7511	  LD="${LD-ld} -n32"
7512	  ;;
7513	*64-bit*)
7514	  LD="${LD-ld} -64"
7515	  ;;
7516      esac
7517    fi
7518  fi
7519  rm -rf conftest*
7520  ;;
7521
7522mips64*-*linux*)
7523  # Find out what ABI is being produced by ac_compile, and set linker
7524  # options accordingly.
7525  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7526  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527  (eval $ac_compile) 2>&5
7528  ac_status=$?
7529  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530  test $ac_status = 0; }; then
7531    emul=elf
7532    case `$FILECMD conftest.$ac_objext` in
7533      *32-bit*)
7534	emul="${emul}32"
7535	;;
7536      *64-bit*)
7537	emul="${emul}64"
7538	;;
7539    esac
7540    case `$FILECMD conftest.$ac_objext` in
7541      *MSB*)
7542	emul="${emul}btsmip"
7543	;;
7544      *LSB*)
7545	emul="${emul}ltsmip"
7546	;;
7547    esac
7548    case `$FILECMD conftest.$ac_objext` in
7549      *N32*)
7550	emul="${emul}n32"
7551	;;
7552    esac
7553    LD="${LD-ld} -m $emul"
7554  fi
7555  rm -rf conftest*
7556  ;;
7557
7558x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7559s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7560  # Find out what ABI is being produced by ac_compile, and set linker
7561  # options accordingly.  Note that the listed cases only cover the
7562  # situations where additional linker options are needed (such as when
7563  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7564  # vice versa); the common cases where no linker options are needed do
7565  # not appear in the list.
7566  echo 'int i;' > conftest.$ac_ext
7567  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568  (eval $ac_compile) 2>&5
7569  ac_status=$?
7570  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571  test $ac_status = 0; }; then
7572    case `$FILECMD conftest.o` in
7573      *32-bit*)
7574	case $host in
7575	  x86_64-*kfreebsd*-gnu)
7576	    LD="${LD-ld} -m elf_i386_fbsd"
7577	    ;;
7578	  x86_64-*linux*)
7579	    case `$FILECMD conftest.o` in
7580	      *x86-64*)
7581		LD="${LD-ld} -m elf32_x86_64"
7582		;;
7583	      *)
7584		LD="${LD-ld} -m elf_i386"
7585		;;
7586	    esac
7587	    ;;
7588	  powerpc64le-*linux*)
7589	    LD="${LD-ld} -m elf32lppclinux"
7590	    ;;
7591	  powerpc64-*linux*)
7592	    LD="${LD-ld} -m elf32ppclinux"
7593	    ;;
7594	  s390x-*linux*)
7595	    LD="${LD-ld} -m elf_s390"
7596	    ;;
7597	  sparc64-*linux*)
7598	    LD="${LD-ld} -m elf32_sparc"
7599	    ;;
7600	esac
7601	;;
7602      *64-bit*)
7603	case $host in
7604	  x86_64-*kfreebsd*-gnu)
7605	    LD="${LD-ld} -m elf_x86_64_fbsd"
7606	    ;;
7607	  x86_64-*linux*)
7608	    LD="${LD-ld} -m elf_x86_64"
7609	    ;;
7610	  powerpcle-*linux*)
7611	    LD="${LD-ld} -m elf64lppc"
7612	    ;;
7613	  powerpc-*linux*)
7614	    LD="${LD-ld} -m elf64ppc"
7615	    ;;
7616	  s390*-*linux*|s390*-*tpf*)
7617	    LD="${LD-ld} -m elf64_s390"
7618	    ;;
7619	  sparc*-*linux*)
7620	    LD="${LD-ld} -m elf64_sparc"
7621	    ;;
7622	esac
7623	;;
7624    esac
7625  fi
7626  rm -rf conftest*
7627  ;;
7628
7629*-*-sco3.2v5*)
7630  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7631  SAVE_CFLAGS=$CFLAGS
7632  CFLAGS="$CFLAGS -belf"
7633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7634printf %s "checking whether the C compiler needs -belf... " >&6; }
7635if test ${lt_cv_cc_needs_belf+y}
7636then :
7637  printf %s "(cached) " >&6
7638else $as_nop
7639  ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647
7648int
7649main (void)
7650{
7651
7652  ;
7653  return 0;
7654}
7655_ACEOF
7656if ac_fn_c_try_link "$LINENO"
7657then :
7658  lt_cv_cc_needs_belf=yes
7659else $as_nop
7660  lt_cv_cc_needs_belf=no
7661fi
7662rm -f core conftest.err conftest.$ac_objext conftest.beam \
7663    conftest$ac_exeext conftest.$ac_ext
7664     ac_ext=c
7665ac_cpp='$CPP $CPPFLAGS'
7666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669
7670fi
7671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7672printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7673  if test yes != "$lt_cv_cc_needs_belf"; then
7674    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7675    CFLAGS=$SAVE_CFLAGS
7676  fi
7677  ;;
7678*-*solaris*)
7679  # Find out what ABI is being produced by ac_compile, and set linker
7680  # options accordingly.
7681  echo 'int i;' > conftest.$ac_ext
7682  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7683  (eval $ac_compile) 2>&5
7684  ac_status=$?
7685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686  test $ac_status = 0; }; then
7687    case `$FILECMD conftest.o` in
7688    *64-bit*)
7689      case $lt_cv_prog_gnu_ld in
7690      yes*)
7691        case $host in
7692        i?86-*-solaris*|x86_64-*-solaris*)
7693          LD="${LD-ld} -m elf_x86_64"
7694          ;;
7695        sparc*-*-solaris*)
7696          LD="${LD-ld} -m elf64_sparc"
7697          ;;
7698        esac
7699        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7700        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7701          LD=${LD-ld}_sol2
7702        fi
7703        ;;
7704      *)
7705	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7706	  LD="${LD-ld} -64"
7707	fi
7708	;;
7709      esac
7710      ;;
7711    esac
7712  fi
7713  rm -rf conftest*
7714  ;;
7715esac
7716
7717need_locks=$enable_libtool_lock
7718
7719if test -n "$ac_tool_prefix"; then
7720  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7721set dummy ${ac_tool_prefix}mt; ac_word=$2
7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723printf %s "checking for $ac_word... " >&6; }
7724if test ${ac_cv_prog_MANIFEST_TOOL+y}
7725then :
7726  printf %s "(cached) " >&6
7727else $as_nop
7728  if test -n "$MANIFEST_TOOL"; then
7729  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734  IFS=$as_save_IFS
7735  case $as_dir in #(((
7736    '') as_dir=./ ;;
7737    */) ;;
7738    *) as_dir=$as_dir/ ;;
7739  esac
7740    for ac_exec_ext in '' $ac_executable_extensions; do
7741  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7742    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7743    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7744    break 2
7745  fi
7746done
7747  done
7748IFS=$as_save_IFS
7749
7750fi
7751fi
7752MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7753if test -n "$MANIFEST_TOOL"; then
7754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7755printf "%s\n" "$MANIFEST_TOOL" >&6; }
7756else
7757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758printf "%s\n" "no" >&6; }
7759fi
7760
7761
7762fi
7763if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7764  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7765  # Extract the first word of "mt", so it can be a program name with args.
7766set dummy mt; ac_word=$2
7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768printf %s "checking for $ac_word... " >&6; }
7769if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7770then :
7771  printf %s "(cached) " >&6
7772else $as_nop
7773  if test -n "$ac_ct_MANIFEST_TOOL"; then
7774  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7775else
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779  IFS=$as_save_IFS
7780  case $as_dir in #(((
7781    '') as_dir=./ ;;
7782    */) ;;
7783    *) as_dir=$as_dir/ ;;
7784  esac
7785    for ac_exec_ext in '' $ac_executable_extensions; do
7786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789    break 2
7790  fi
7791done
7792  done
7793IFS=$as_save_IFS
7794
7795fi
7796fi
7797ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7798if test -n "$ac_ct_MANIFEST_TOOL"; then
7799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7800printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7801else
7802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803printf "%s\n" "no" >&6; }
7804fi
7805
7806  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7807    MANIFEST_TOOL=":"
7808  else
7809    case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
7814esac
7815    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7816  fi
7817else
7818  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7819fi
7820
7821test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7823printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7824if test ${lt_cv_path_mainfest_tool+y}
7825then :
7826  printf %s "(cached) " >&6
7827else $as_nop
7828  lt_cv_path_mainfest_tool=no
7829  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7830  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7831  cat conftest.err >&5
7832  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7833    lt_cv_path_mainfest_tool=yes
7834  fi
7835  rm -f conftest*
7836fi
7837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7838printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7839if test yes != "$lt_cv_path_mainfest_tool"; then
7840  MANIFEST_TOOL=:
7841fi
7842
7843
7844
7845
7846
7847
7848  case $host_os in
7849    rhapsody* | darwin*)
7850    if test -n "$ac_tool_prefix"; then
7851  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7852set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854printf %s "checking for $ac_word... " >&6; }
7855if test ${ac_cv_prog_DSYMUTIL+y}
7856then :
7857  printf %s "(cached) " >&6
7858else $as_nop
7859  if test -n "$DSYMUTIL"; then
7860  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865  IFS=$as_save_IFS
7866  case $as_dir in #(((
7867    '') as_dir=./ ;;
7868    */) ;;
7869    *) as_dir=$as_dir/ ;;
7870  esac
7871    for ac_exec_ext in '' $ac_executable_extensions; do
7872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7873    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7875    break 2
7876  fi
7877done
7878  done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883DSYMUTIL=$ac_cv_prog_DSYMUTIL
7884if test -n "$DSYMUTIL"; then
7885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7886printf "%s\n" "$DSYMUTIL" >&6; }
7887else
7888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889printf "%s\n" "no" >&6; }
7890fi
7891
7892
7893fi
7894if test -z "$ac_cv_prog_DSYMUTIL"; then
7895  ac_ct_DSYMUTIL=$DSYMUTIL
7896  # Extract the first word of "dsymutil", so it can be a program name with args.
7897set dummy dsymutil; ac_word=$2
7898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899printf %s "checking for $ac_word... " >&6; }
7900if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  if test -n "$ac_ct_DSYMUTIL"; then
7905  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7906else
7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910  IFS=$as_save_IFS
7911  case $as_dir in #(((
7912    '') as_dir=./ ;;
7913    */) ;;
7914    *) as_dir=$as_dir/ ;;
7915  esac
7916    for ac_exec_ext in '' $ac_executable_extensions; do
7917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7918    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7920    break 2
7921  fi
7922done
7923  done
7924IFS=$as_save_IFS
7925
7926fi
7927fi
7928ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7929if test -n "$ac_ct_DSYMUTIL"; then
7930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7931printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7932else
7933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934printf "%s\n" "no" >&6; }
7935fi
7936
7937  if test "x$ac_ct_DSYMUTIL" = x; then
7938    DSYMUTIL=":"
7939  else
7940    case $cross_compiling:$ac_tool_warned in
7941yes:)
7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944ac_tool_warned=yes ;;
7945esac
7946    DSYMUTIL=$ac_ct_DSYMUTIL
7947  fi
7948else
7949  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7950fi
7951
7952    if test -n "$ac_tool_prefix"; then
7953  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7954set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956printf %s "checking for $ac_word... " >&6; }
7957if test ${ac_cv_prog_NMEDIT+y}
7958then :
7959  printf %s "(cached) " >&6
7960else $as_nop
7961  if test -n "$NMEDIT"; then
7962  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  case $as_dir in #(((
7969    '') as_dir=./ ;;
7970    */) ;;
7971    *) as_dir=$as_dir/ ;;
7972  esac
7973    for ac_exec_ext in '' $ac_executable_extensions; do
7974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977    break 2
7978  fi
7979done
7980  done
7981IFS=$as_save_IFS
7982
7983fi
7984fi
7985NMEDIT=$ac_cv_prog_NMEDIT
7986if test -n "$NMEDIT"; then
7987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7988printf "%s\n" "$NMEDIT" >&6; }
7989else
7990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991printf "%s\n" "no" >&6; }
7992fi
7993
7994
7995fi
7996if test -z "$ac_cv_prog_NMEDIT"; then
7997  ac_ct_NMEDIT=$NMEDIT
7998  # Extract the first word of "nmedit", so it can be a program name with args.
7999set dummy nmedit; ac_word=$2
8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001printf %s "checking for $ac_word... " >&6; }
8002if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8003then :
8004  printf %s "(cached) " >&6
8005else $as_nop
8006  if test -n "$ac_ct_NMEDIT"; then
8007  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8008else
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012  IFS=$as_save_IFS
8013  case $as_dir in #(((
8014    '') as_dir=./ ;;
8015    */) ;;
8016    *) as_dir=$as_dir/ ;;
8017  esac
8018    for ac_exec_ext in '' $ac_executable_extensions; do
8019  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8020    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8021    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8022    break 2
8023  fi
8024done
8025  done
8026IFS=$as_save_IFS
8027
8028fi
8029fi
8030ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8031if test -n "$ac_ct_NMEDIT"; then
8032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8033printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8034else
8035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036printf "%s\n" "no" >&6; }
8037fi
8038
8039  if test "x$ac_ct_NMEDIT" = x; then
8040    NMEDIT=":"
8041  else
8042    case $cross_compiling:$ac_tool_warned in
8043yes:)
8044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8045printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8046ac_tool_warned=yes ;;
8047esac
8048    NMEDIT=$ac_ct_NMEDIT
8049  fi
8050else
8051  NMEDIT="$ac_cv_prog_NMEDIT"
8052fi
8053
8054    if test -n "$ac_tool_prefix"; then
8055  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8056set dummy ${ac_tool_prefix}lipo; ac_word=$2
8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058printf %s "checking for $ac_word... " >&6; }
8059if test ${ac_cv_prog_LIPO+y}
8060then :
8061  printf %s "(cached) " >&6
8062else $as_nop
8063  if test -n "$LIPO"; then
8064  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  case $as_dir in #(((
8071    '') as_dir=./ ;;
8072    */) ;;
8073    *) as_dir=$as_dir/ ;;
8074  esac
8075    for ac_exec_ext in '' $ac_executable_extensions; do
8076  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8077    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8078    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8079    break 2
8080  fi
8081done
8082  done
8083IFS=$as_save_IFS
8084
8085fi
8086fi
8087LIPO=$ac_cv_prog_LIPO
8088if test -n "$LIPO"; then
8089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8090printf "%s\n" "$LIPO" >&6; }
8091else
8092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093printf "%s\n" "no" >&6; }
8094fi
8095
8096
8097fi
8098if test -z "$ac_cv_prog_LIPO"; then
8099  ac_ct_LIPO=$LIPO
8100  # Extract the first word of "lipo", so it can be a program name with args.
8101set dummy lipo; ac_word=$2
8102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103printf %s "checking for $ac_word... " >&6; }
8104if test ${ac_cv_prog_ac_ct_LIPO+y}
8105then :
8106  printf %s "(cached) " >&6
8107else $as_nop
8108  if test -n "$ac_ct_LIPO"; then
8109  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8110else
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114  IFS=$as_save_IFS
8115  case $as_dir in #(((
8116    '') as_dir=./ ;;
8117    */) ;;
8118    *) as_dir=$as_dir/ ;;
8119  esac
8120    for ac_exec_ext in '' $ac_executable_extensions; do
8121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8122    ac_cv_prog_ac_ct_LIPO="lipo"
8123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8124    break 2
8125  fi
8126done
8127  done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8133if test -n "$ac_ct_LIPO"; then
8134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8135printf "%s\n" "$ac_ct_LIPO" >&6; }
8136else
8137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138printf "%s\n" "no" >&6; }
8139fi
8140
8141  if test "x$ac_ct_LIPO" = x; then
8142    LIPO=":"
8143  else
8144    case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150    LIPO=$ac_ct_LIPO
8151  fi
8152else
8153  LIPO="$ac_cv_prog_LIPO"
8154fi
8155
8156    if test -n "$ac_tool_prefix"; then
8157  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8158set dummy ${ac_tool_prefix}otool; ac_word=$2
8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160printf %s "checking for $ac_word... " >&6; }
8161if test ${ac_cv_prog_OTOOL+y}
8162then :
8163  printf %s "(cached) " >&6
8164else $as_nop
8165  if test -n "$OTOOL"; then
8166  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171  IFS=$as_save_IFS
8172  case $as_dir in #(((
8173    '') as_dir=./ ;;
8174    */) ;;
8175    *) as_dir=$as_dir/ ;;
8176  esac
8177    for ac_exec_ext in '' $ac_executable_extensions; do
8178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181    break 2
8182  fi
8183done
8184  done
8185IFS=$as_save_IFS
8186
8187fi
8188fi
8189OTOOL=$ac_cv_prog_OTOOL
8190if test -n "$OTOOL"; then
8191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8192printf "%s\n" "$OTOOL" >&6; }
8193else
8194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195printf "%s\n" "no" >&6; }
8196fi
8197
8198
8199fi
8200if test -z "$ac_cv_prog_OTOOL"; then
8201  ac_ct_OTOOL=$OTOOL
8202  # Extract the first word of "otool", so it can be a program name with args.
8203set dummy otool; ac_word=$2
8204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205printf %s "checking for $ac_word... " >&6; }
8206if test ${ac_cv_prog_ac_ct_OTOOL+y}
8207then :
8208  printf %s "(cached) " >&6
8209else $as_nop
8210  if test -n "$ac_ct_OTOOL"; then
8211  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8212else
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216  IFS=$as_save_IFS
8217  case $as_dir in #(((
8218    '') as_dir=./ ;;
8219    */) ;;
8220    *) as_dir=$as_dir/ ;;
8221  esac
8222    for ac_exec_ext in '' $ac_executable_extensions; do
8223  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8224    ac_cv_prog_ac_ct_OTOOL="otool"
8225    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8226    break 2
8227  fi
8228done
8229  done
8230IFS=$as_save_IFS
8231
8232fi
8233fi
8234ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8235if test -n "$ac_ct_OTOOL"; then
8236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8237printf "%s\n" "$ac_ct_OTOOL" >&6; }
8238else
8239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240printf "%s\n" "no" >&6; }
8241fi
8242
8243  if test "x$ac_ct_OTOOL" = x; then
8244    OTOOL=":"
8245  else
8246    case $cross_compiling:$ac_tool_warned in
8247yes:)
8248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250ac_tool_warned=yes ;;
8251esac
8252    OTOOL=$ac_ct_OTOOL
8253  fi
8254else
8255  OTOOL="$ac_cv_prog_OTOOL"
8256fi
8257
8258    if test -n "$ac_tool_prefix"; then
8259  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8260set dummy ${ac_tool_prefix}otool64; ac_word=$2
8261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262printf %s "checking for $ac_word... " >&6; }
8263if test ${ac_cv_prog_OTOOL64+y}
8264then :
8265  printf %s "(cached) " >&6
8266else $as_nop
8267  if test -n "$OTOOL64"; then
8268  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273  IFS=$as_save_IFS
8274  case $as_dir in #(((
8275    '') as_dir=./ ;;
8276    */) ;;
8277    *) as_dir=$as_dir/ ;;
8278  esac
8279    for ac_exec_ext in '' $ac_executable_extensions; do
8280  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8281    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8282    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8283    break 2
8284  fi
8285done
8286  done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291OTOOL64=$ac_cv_prog_OTOOL64
8292if test -n "$OTOOL64"; then
8293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8294printf "%s\n" "$OTOOL64" >&6; }
8295else
8296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297printf "%s\n" "no" >&6; }
8298fi
8299
8300
8301fi
8302if test -z "$ac_cv_prog_OTOOL64"; then
8303  ac_ct_OTOOL64=$OTOOL64
8304  # Extract the first word of "otool64", so it can be a program name with args.
8305set dummy otool64; ac_word=$2
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307printf %s "checking for $ac_word... " >&6; }
8308if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8309then :
8310  printf %s "(cached) " >&6
8311else $as_nop
8312  if test -n "$ac_ct_OTOOL64"; then
8313  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8314else
8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318  IFS=$as_save_IFS
8319  case $as_dir in #(((
8320    '') as_dir=./ ;;
8321    */) ;;
8322    *) as_dir=$as_dir/ ;;
8323  esac
8324    for ac_exec_ext in '' $ac_executable_extensions; do
8325  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8326    ac_cv_prog_ac_ct_OTOOL64="otool64"
8327    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8328    break 2
8329  fi
8330done
8331  done
8332IFS=$as_save_IFS
8333
8334fi
8335fi
8336ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8337if test -n "$ac_ct_OTOOL64"; then
8338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8339printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8340else
8341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342printf "%s\n" "no" >&6; }
8343fi
8344
8345  if test "x$ac_ct_OTOOL64" = x; then
8346    OTOOL64=":"
8347  else
8348    case $cross_compiling:$ac_tool_warned in
8349yes:)
8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352ac_tool_warned=yes ;;
8353esac
8354    OTOOL64=$ac_ct_OTOOL64
8355  fi
8356else
8357  OTOOL64="$ac_cv_prog_OTOOL64"
8358fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8387printf %s "checking for -single_module linker flag... " >&6; }
8388if test ${lt_cv_apple_cc_single_mod+y}
8389then :
8390  printf %s "(cached) " >&6
8391else $as_nop
8392  lt_cv_apple_cc_single_mod=no
8393      if test -z "$LT_MULTI_MODULE"; then
8394	# By default we will add the -single_module flag. You can override
8395	# by either setting the environment variable LT_MULTI_MODULE
8396	# non-empty at configure time, or by adding -multi_module to the
8397	# link flags.
8398	rm -rf libconftest.dylib*
8399	echo "int foo(void){return 1;}" > conftest.c
8400	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401-dynamiclib -Wl,-single_module conftest.c" >&5
8402	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8403	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8404        _lt_result=$?
8405	# If there is a non-empty error log, and "single_module"
8406	# appears in it, assume the flag caused a linker warning
8407        if test -s conftest.err && $GREP single_module conftest.err; then
8408	  cat conftest.err >&5
8409	# Otherwise, if the output was created with a 0 exit code from
8410	# the compiler, it worked.
8411	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8412	  lt_cv_apple_cc_single_mod=yes
8413	else
8414	  cat conftest.err >&5
8415	fi
8416	rm -rf libconftest.dylib*
8417	rm -f conftest.*
8418      fi
8419fi
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8421printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8422
8423    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8424printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8425if test ${lt_cv_ld_exported_symbols_list+y}
8426then :
8427  printf %s "(cached) " >&6
8428else $as_nop
8429  lt_cv_ld_exported_symbols_list=no
8430      save_LDFLAGS=$LDFLAGS
8431      echo "_main" > conftest.sym
8432      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8433      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435
8436int
8437main (void)
8438{
8439
8440  ;
8441  return 0;
8442}
8443_ACEOF
8444if ac_fn_c_try_link "$LINENO"
8445then :
8446  lt_cv_ld_exported_symbols_list=yes
8447else $as_nop
8448  lt_cv_ld_exported_symbols_list=no
8449fi
8450rm -f core conftest.err conftest.$ac_objext conftest.beam \
8451    conftest$ac_exeext conftest.$ac_ext
8452	LDFLAGS=$save_LDFLAGS
8453
8454fi
8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8456printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8457
8458    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8459printf %s "checking for -force_load linker flag... " >&6; }
8460if test ${lt_cv_ld_force_load+y}
8461then :
8462  printf %s "(cached) " >&6
8463else $as_nop
8464  lt_cv_ld_force_load=no
8465      cat > conftest.c << _LT_EOF
8466int forced_loaded() { return 2;}
8467_LT_EOF
8468      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8469      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8470      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8471      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8472      echo "$RANLIB libconftest.a" >&5
8473      $RANLIB libconftest.a 2>&5
8474      cat > conftest.c << _LT_EOF
8475int main() { return 0;}
8476_LT_EOF
8477      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8478      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8479      _lt_result=$?
8480      if test -s conftest.err && $GREP force_load conftest.err; then
8481	cat conftest.err >&5
8482      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8483	lt_cv_ld_force_load=yes
8484      else
8485	cat conftest.err >&5
8486      fi
8487        rm -f conftest.err libconftest.a conftest conftest.c
8488        rm -rf conftest.dSYM
8489
8490fi
8491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8492printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8493    case $host_os in
8494    rhapsody* | darwin1.[012])
8495      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8496    darwin1.*)
8497      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8498    darwin*)
8499      case $MACOSX_DEPLOYMENT_TARGET,$host in
8500        10.[012],*|,*powerpc*-darwin[5-8]*)
8501          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8502        *)
8503          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8504      esac
8505    ;;
8506  esac
8507    if test yes = "$lt_cv_apple_cc_single_mod"; then
8508      _lt_dar_single_mod='$single_module'
8509    fi
8510    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8511      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8512    else
8513      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8514    fi
8515    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8516      _lt_dsymutil='~$DSYMUTIL $lib || :'
8517    else
8518      _lt_dsymutil=
8519    fi
8520    ;;
8521  esac
8522
8523# func_munge_path_list VARIABLE PATH
8524# -----------------------------------
8525# VARIABLE is name of variable containing _space_ separated list of
8526# directories to be munged by the contents of PATH, which is string
8527# having a format:
8528# "DIR[:DIR]:"
8529#       string "DIR[ DIR]" will be prepended to VARIABLE
8530# ":DIR[:DIR]"
8531#       string "DIR[ DIR]" will be appended to VARIABLE
8532# "DIRP[:DIRP]::[DIRA:]DIRA"
8533#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8534#       "DIRA[ DIRA]" will be appended to VARIABLE
8535# "DIR[:DIR]"
8536#       VARIABLE will be replaced by "DIR[ DIR]"
8537func_munge_path_list ()
8538{
8539    case x$2 in
8540    x)
8541        ;;
8542    *:)
8543        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8544        ;;
8545    x:*)
8546        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8547        ;;
8548    *::*)
8549        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8550        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8551        ;;
8552    *)
8553        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8554        ;;
8555    esac
8556}
8557
8558ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8559"
8560if test "x$ac_cv_header_dlfcn_h" = xyes
8561then :
8562  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8563
8564fi
8565
8566
8567
8568
8569
8570# Set options
8571
8572
8573
8574        enable_dlopen=no
8575
8576
8577  enable_win32_dll=no
8578
8579
8580            # Check whether --enable-shared was given.
8581if test ${enable_shared+y}
8582then :
8583  enableval=$enable_shared; p=${PACKAGE-default}
8584    case $enableval in
8585    yes) enable_shared=yes ;;
8586    no) enable_shared=no ;;
8587    *)
8588      enable_shared=no
8589      # Look at the argument we got.  We use all the common list separators.
8590      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8591      for pkg in $enableval; do
8592	IFS=$lt_save_ifs
8593	if test "X$pkg" = "X$p"; then
8594	  enable_shared=yes
8595	fi
8596      done
8597      IFS=$lt_save_ifs
8598      ;;
8599    esac
8600else $as_nop
8601  enable_shared=yes
8602fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612  # Check whether --enable-static was given.
8613if test ${enable_static+y}
8614then :
8615  enableval=$enable_static; p=${PACKAGE-default}
8616    case $enableval in
8617    yes) enable_static=yes ;;
8618    no) enable_static=no ;;
8619    *)
8620     enable_static=no
8621      # Look at the argument we got.  We use all the common list separators.
8622      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8623      for pkg in $enableval; do
8624	IFS=$lt_save_ifs
8625	if test "X$pkg" = "X$p"; then
8626	  enable_static=yes
8627	fi
8628      done
8629      IFS=$lt_save_ifs
8630      ;;
8631    esac
8632else $as_nop
8633  enable_static=yes
8634fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645# Check whether --with-pic was given.
8646if test ${with_pic+y}
8647then :
8648  withval=$with_pic; lt_p=${PACKAGE-default}
8649    case $withval in
8650    yes|no) pic_mode=$withval ;;
8651    *)
8652      pic_mode=default
8653      # Look at the argument we got.  We use all the common list separators.
8654      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8655      for lt_pkg in $withval; do
8656	IFS=$lt_save_ifs
8657	if test "X$lt_pkg" = "X$lt_p"; then
8658	  pic_mode=yes
8659	fi
8660      done
8661      IFS=$lt_save_ifs
8662      ;;
8663    esac
8664else $as_nop
8665  pic_mode=default
8666fi
8667
8668
8669
8670
8671
8672
8673
8674
8675  # Check whether --enable-fast-install was given.
8676if test ${enable_fast_install+y}
8677then :
8678  enableval=$enable_fast_install; p=${PACKAGE-default}
8679    case $enableval in
8680    yes) enable_fast_install=yes ;;
8681    no) enable_fast_install=no ;;
8682    *)
8683      enable_fast_install=no
8684      # Look at the argument we got.  We use all the common list separators.
8685      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686      for pkg in $enableval; do
8687	IFS=$lt_save_ifs
8688	if test "X$pkg" = "X$p"; then
8689	  enable_fast_install=yes
8690	fi
8691      done
8692      IFS=$lt_save_ifs
8693      ;;
8694    esac
8695else $as_nop
8696  enable_fast_install=yes
8697fi
8698
8699
8700
8701
8702
8703
8704
8705
8706  shared_archive_member_spec=
8707case $host,$enable_shared in
8708power*-*-aix[5-9]*,yes)
8709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8710printf %s "checking which variant of shared library versioning to provide... " >&6; }
8711
8712# Check whether --with-aix-soname was given.
8713if test ${with_aix_soname+y}
8714then :
8715  withval=$with_aix_soname; case $withval in
8716    aix|svr4|both)
8717      ;;
8718    *)
8719      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8720      ;;
8721    esac
8722    lt_cv_with_aix_soname=$with_aix_soname
8723else $as_nop
8724  if test ${lt_cv_with_aix_soname+y}
8725then :
8726  printf %s "(cached) " >&6
8727else $as_nop
8728  lt_cv_with_aix_soname=aix
8729fi
8730
8731    with_aix_soname=$lt_cv_with_aix_soname
8732fi
8733
8734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8735printf "%s\n" "$with_aix_soname" >&6; }
8736  if test aix != "$with_aix_soname"; then
8737    # For the AIX way of multilib, we name the shared archive member
8738    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8739    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8740    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8741    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8742    if test 64 = "${OBJECT_MODE-32}"; then
8743      shared_archive_member_spec=shr_64
8744    else
8745      shared_archive_member_spec=shr
8746    fi
8747  fi
8748  ;;
8749*)
8750  with_aix_soname=aix
8751  ;;
8752esac
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763# This can be used to rebuild libtool when needed
8764LIBTOOL_DEPS=$ltmain
8765
8766# Always use our own libtool.
8767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798test -z "$LN_S" && LN_S="ln -s"
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813if test -n "${ZSH_VERSION+set}"; then
8814   setopt NO_GLOB_SUBST
8815fi
8816
8817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8818printf %s "checking for objdir... " >&6; }
8819if test ${lt_cv_objdir+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823  rm -f .libs 2>/dev/null
8824mkdir .libs 2>/dev/null
8825if test -d .libs; then
8826  lt_cv_objdir=.libs
8827else
8828  # MS-DOS does not allow filenames that begin with a dot.
8829  lt_cv_objdir=_libs
8830fi
8831rmdir .libs 2>/dev/null
8832fi
8833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8834printf "%s\n" "$lt_cv_objdir" >&6; }
8835objdir=$lt_cv_objdir
8836
8837
8838
8839
8840
8841printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8842
8843
8844
8845
8846case $host_os in
8847aix3*)
8848  # AIX sometimes has problems with the GCC collect2 program.  For some
8849  # reason, if we set the COLLECT_NAMES environment variable, the problems
8850  # vanish in a puff of smoke.
8851  if test set != "${COLLECT_NAMES+set}"; then
8852    COLLECT_NAMES=
8853    export COLLECT_NAMES
8854  fi
8855  ;;
8856esac
8857
8858# Global variables:
8859ofile=libtool
8860can_build_shared=yes
8861
8862# All known linkers require a '.a' archive for static linking (except MSVC and
8863# ICC, which need '.lib').
8864libext=a
8865
8866with_gnu_ld=$lt_cv_prog_gnu_ld
8867
8868old_CC=$CC
8869old_CFLAGS=$CFLAGS
8870
8871# Set sane defaults for various variables
8872test -z "$CC" && CC=cc
8873test -z "$LTCC" && LTCC=$CC
8874test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8875test -z "$LD" && LD=ld
8876test -z "$ac_objext" && ac_objext=o
8877
8878func_cc_basename $compiler
8879cc_basename=$func_cc_basename_result
8880
8881
8882# Only perform the check for file, if the check method requires it
8883test -z "$MAGIC_CMD" && MAGIC_CMD=file
8884case $deplibs_check_method in
8885file_magic*)
8886  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8887    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8888printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8889if test ${lt_cv_path_MAGIC_CMD+y}
8890then :
8891  printf %s "(cached) " >&6
8892else $as_nop
8893  case $MAGIC_CMD in
8894[\\/*] |  ?:[\\/]*)
8895  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8896  ;;
8897*)
8898  lt_save_MAGIC_CMD=$MAGIC_CMD
8899  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8900  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901  for ac_dir in $ac_dummy; do
8902    IFS=$lt_save_ifs
8903    test -z "$ac_dir" && ac_dir=.
8904    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8905      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8906      if test -n "$file_magic_test_file"; then
8907	case $deplibs_check_method in
8908	"file_magic "*)
8909	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8911	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912	    $EGREP "$file_magic_regex" > /dev/null; then
8913	    :
8914	  else
8915	    cat <<_LT_EOF 1>&2
8916
8917*** Warning: the command libtool uses to detect shared libraries,
8918*** $file_magic_cmd, produces output that libtool cannot recognize.
8919*** The result is that libtool may fail to recognize shared libraries
8920*** as such.  This will affect the creation of libtool libraries that
8921*** depend on shared libraries, but programs linked with such libtool
8922*** libraries will work regardless of this problem.  Nevertheless, you
8923*** may want to report the problem to your system manager and/or to
8924*** bug-libtool@gnu.org
8925
8926_LT_EOF
8927	  fi ;;
8928	esac
8929      fi
8930      break
8931    fi
8932  done
8933  IFS=$lt_save_ifs
8934  MAGIC_CMD=$lt_save_MAGIC_CMD
8935  ;;
8936esac
8937fi
8938
8939MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8940if test -n "$MAGIC_CMD"; then
8941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8942printf "%s\n" "$MAGIC_CMD" >&6; }
8943else
8944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945printf "%s\n" "no" >&6; }
8946fi
8947
8948
8949
8950
8951
8952if test -z "$lt_cv_path_MAGIC_CMD"; then
8953  if test -n "$ac_tool_prefix"; then
8954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8955printf %s "checking for file... " >&6; }
8956if test ${lt_cv_path_MAGIC_CMD+y}
8957then :
8958  printf %s "(cached) " >&6
8959else $as_nop
8960  case $MAGIC_CMD in
8961[\\/*] |  ?:[\\/]*)
8962  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8963  ;;
8964*)
8965  lt_save_MAGIC_CMD=$MAGIC_CMD
8966  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8967  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8968  for ac_dir in $ac_dummy; do
8969    IFS=$lt_save_ifs
8970    test -z "$ac_dir" && ac_dir=.
8971    if test -f "$ac_dir/file"; then
8972      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8973      if test -n "$file_magic_test_file"; then
8974	case $deplibs_check_method in
8975	"file_magic "*)
8976	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8977	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8978	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8979	    $EGREP "$file_magic_regex" > /dev/null; then
8980	    :
8981	  else
8982	    cat <<_LT_EOF 1>&2
8983
8984*** Warning: the command libtool uses to detect shared libraries,
8985*** $file_magic_cmd, produces output that libtool cannot recognize.
8986*** The result is that libtool may fail to recognize shared libraries
8987*** as such.  This will affect the creation of libtool libraries that
8988*** depend on shared libraries, but programs linked with such libtool
8989*** libraries will work regardless of this problem.  Nevertheless, you
8990*** may want to report the problem to your system manager and/or to
8991*** bug-libtool@gnu.org
8992
8993_LT_EOF
8994	  fi ;;
8995	esac
8996      fi
8997      break
8998    fi
8999  done
9000  IFS=$lt_save_ifs
9001  MAGIC_CMD=$lt_save_MAGIC_CMD
9002  ;;
9003esac
9004fi
9005
9006MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9007if test -n "$MAGIC_CMD"; then
9008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9009printf "%s\n" "$MAGIC_CMD" >&6; }
9010else
9011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012printf "%s\n" "no" >&6; }
9013fi
9014
9015
9016  else
9017    MAGIC_CMD=:
9018  fi
9019fi
9020
9021  fi
9022  ;;
9023esac
9024
9025# Use C for the default configuration in the libtool script
9026
9027lt_save_CC=$CC
9028ac_ext=c
9029ac_cpp='$CPP $CPPFLAGS'
9030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035# Source file extension for C test sources.
9036ac_ext=c
9037
9038# Object file extension for compiled C test sources.
9039objext=o
9040objext=$objext
9041
9042# Code to be used in simple compile tests
9043lt_simple_compile_test_code="int some_variable = 0;"
9044
9045# Code to be used in simple link tests
9046lt_simple_link_test_code='int main(){return(0);}'
9047
9048
9049
9050
9051
9052
9053
9054# If no C compiler was specified, use CC.
9055LTCC=${LTCC-"$CC"}
9056
9057# If no C compiler flags were specified, use CFLAGS.
9058LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9059
9060# Allow CC to be a program name with arguments.
9061compiler=$CC
9062
9063# Save the default compiler, since it gets overwritten when the other
9064# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9065compiler_DEFAULT=$CC
9066
9067# save warnings/boilerplate of simple test code
9068ac_outfile=conftest.$ac_objext
9069echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071_lt_compiler_boilerplate=`cat conftest.err`
9072$RM conftest*
9073
9074ac_outfile=conftest.$ac_objext
9075echo "$lt_simple_link_test_code" >conftest.$ac_ext
9076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9077_lt_linker_boilerplate=`cat conftest.err`
9078$RM -r conftest*
9079
9080
9081if test -n "$compiler"; then
9082
9083lt_prog_compiler_no_builtin_flag=
9084
9085if test yes = "$GCC"; then
9086  case $cc_basename in
9087  nvcc*)
9088    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9089  *)
9090    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9091  esac
9092
9093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9094printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9095if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9096then :
9097  printf %s "(cached) " >&6
9098else $as_nop
9099  lt_cv_prog_compiler_rtti_exceptions=no
9100   ac_outfile=conftest.$ac_objext
9101   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9103   # Insert the option either (1) after the last *FLAGS variable, or
9104   # (2) before a word containing "conftest.", or (3) at the end.
9105   # Note that $ac_compile itself does not contain backslashes and begins
9106   # with a dollar sign (not a hyphen), so the echo should work correctly.
9107   # The option is referenced via a variable to avoid confusing sed.
9108   lt_compile=`echo "$ac_compile" | $SED \
9109   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111   -e 's:$: $lt_compiler_flag:'`
9112   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9113   (eval "$lt_compile" 2>conftest.err)
9114   ac_status=$?
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   if (exit $ac_status) && test -s "$ac_outfile"; then
9118     # The compiler can only warn and ignore the option if not recognized
9119     # So say no if there are warnings other than the usual output.
9120     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9121     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9122     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9123       lt_cv_prog_compiler_rtti_exceptions=yes
9124     fi
9125   fi
9126   $RM conftest*
9127
9128fi
9129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9130printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9131
9132if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9133    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9134else
9135    :
9136fi
9137
9138fi
9139
9140
9141
9142
9143
9144
9145  lt_prog_compiler_wl=
9146lt_prog_compiler_pic=
9147lt_prog_compiler_static=
9148
9149
9150  if test yes = "$GCC"; then
9151    lt_prog_compiler_wl='-Wl,'
9152    lt_prog_compiler_static='-static'
9153
9154    case $host_os in
9155      aix*)
9156      # All AIX code is PIC.
9157      if test ia64 = "$host_cpu"; then
9158	# AIX 5 now supports IA64 processor
9159	lt_prog_compiler_static='-Bstatic'
9160      fi
9161      lt_prog_compiler_pic='-fPIC'
9162      ;;
9163
9164    amigaos*)
9165      case $host_cpu in
9166      powerpc)
9167            # see comment about AmigaOS4 .so support
9168            lt_prog_compiler_pic='-fPIC'
9169        ;;
9170      m68k)
9171            # FIXME: we need at least 68020 code to build shared libraries, but
9172            # adding the '-m68020' flag to GCC prevents building anything better,
9173            # like '-m68040'.
9174            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9175        ;;
9176      esac
9177      ;;
9178
9179    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9180      # PIC is the default for these OSes.
9181      ;;
9182
9183    mingw* | cygwin* | pw32* | os2* | cegcc*)
9184      # This hack is so that the source file can tell whether it is being
9185      # built for inclusion in a dll (and should export symbols for example).
9186      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9187      # (--disable-auto-import) libraries
9188      lt_prog_compiler_pic='-DDLL_EXPORT'
9189      case $host_os in
9190      os2*)
9191	lt_prog_compiler_static='$wl-static'
9192	;;
9193      esac
9194      ;;
9195
9196    darwin* | rhapsody*)
9197      # PIC is the default on this platform
9198      # Common symbols not allowed in MH_DYLIB files
9199      lt_prog_compiler_pic='-fno-common'
9200      ;;
9201
9202    haiku*)
9203      # PIC is the default for Haiku.
9204      # The "-static" flag exists, but is broken.
9205      lt_prog_compiler_static=
9206      ;;
9207
9208    hpux*)
9209      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9210      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9211      # sets the default TLS model and affects inlining.
9212      case $host_cpu in
9213      hppa*64*)
9214	# +Z the default
9215	;;
9216      *)
9217	lt_prog_compiler_pic='-fPIC'
9218	;;
9219      esac
9220      ;;
9221
9222    interix[3-9]*)
9223      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9224      # Instead, we relocate shared libraries at runtime.
9225      ;;
9226
9227    msdosdjgpp*)
9228      # Just because we use GCC doesn't mean we suddenly get shared libraries
9229      # on systems that don't support them.
9230      lt_prog_compiler_can_build_shared=no
9231      enable_shared=no
9232      ;;
9233
9234    *nto* | *qnx*)
9235      # QNX uses GNU C++, but need to define -shared option too, otherwise
9236      # it will coredump.
9237      lt_prog_compiler_pic='-fPIC -shared'
9238      ;;
9239
9240    sysv4*MP*)
9241      if test -d /usr/nec; then
9242	lt_prog_compiler_pic=-Kconform_pic
9243      fi
9244      ;;
9245
9246    *)
9247      lt_prog_compiler_pic='-fPIC'
9248      ;;
9249    esac
9250
9251    case $cc_basename in
9252    nvcc*) # Cuda Compiler Driver 2.2
9253      lt_prog_compiler_wl='-Xlinker '
9254      if test -n "$lt_prog_compiler_pic"; then
9255        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9256      fi
9257      ;;
9258    esac
9259  else
9260    # PORTME Check for flag to pass linker flags through the system compiler.
9261    case $host_os in
9262    aix*)
9263      lt_prog_compiler_wl='-Wl,'
9264      if test ia64 = "$host_cpu"; then
9265	# AIX 5 now supports IA64 processor
9266	lt_prog_compiler_static='-Bstatic'
9267      else
9268	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9269      fi
9270      ;;
9271
9272    darwin* | rhapsody*)
9273      # PIC is the default on this platform
9274      # Common symbols not allowed in MH_DYLIB files
9275      lt_prog_compiler_pic='-fno-common'
9276      case $cc_basename in
9277      nagfor*)
9278        # NAG Fortran compiler
9279        lt_prog_compiler_wl='-Wl,-Wl,,'
9280        lt_prog_compiler_pic='-PIC'
9281        lt_prog_compiler_static='-Bstatic'
9282        ;;
9283      esac
9284      ;;
9285
9286    mingw* | cygwin* | pw32* | os2* | cegcc*)
9287      # This hack is so that the source file can tell whether it is being
9288      # built for inclusion in a dll (and should export symbols for example).
9289      lt_prog_compiler_pic='-DDLL_EXPORT'
9290      case $host_os in
9291      os2*)
9292	lt_prog_compiler_static='$wl-static'
9293	;;
9294      esac
9295      ;;
9296
9297    hpux9* | hpux10* | hpux11*)
9298      lt_prog_compiler_wl='-Wl,'
9299      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9300      # not for PA HP-UX.
9301      case $host_cpu in
9302      hppa*64*|ia64*)
9303	# +Z the default
9304	;;
9305      *)
9306	lt_prog_compiler_pic='+Z'
9307	;;
9308      esac
9309      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9310      lt_prog_compiler_static='$wl-a ${wl}archive'
9311      ;;
9312
9313    irix5* | irix6* | nonstopux*)
9314      lt_prog_compiler_wl='-Wl,'
9315      # PIC (with -KPIC) is the default.
9316      lt_prog_compiler_static='-non_shared'
9317      ;;
9318
9319    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9320      case $cc_basename in
9321      # old Intel for x86_64, which still supported -KPIC.
9322      ecc*)
9323	lt_prog_compiler_wl='-Wl,'
9324	lt_prog_compiler_pic='-KPIC'
9325	lt_prog_compiler_static='-static'
9326        ;;
9327      # icc used to be incompatible with GCC.
9328      # ICC 10 doesn't accept -KPIC any more.
9329      icc* | ifort*)
9330	lt_prog_compiler_wl='-Wl,'
9331	lt_prog_compiler_pic='-fPIC'
9332	lt_prog_compiler_static='-static'
9333        ;;
9334      # Lahey Fortran 8.1.
9335      lf95*)
9336	lt_prog_compiler_wl='-Wl,'
9337	lt_prog_compiler_pic='--shared'
9338	lt_prog_compiler_static='--static'
9339	;;
9340      nagfor*)
9341	# NAG Fortran compiler
9342	lt_prog_compiler_wl='-Wl,-Wl,,'
9343	lt_prog_compiler_pic='-PIC'
9344	lt_prog_compiler_static='-Bstatic'
9345	;;
9346      tcc*)
9347	# Fabrice Bellard et al's Tiny C Compiler
9348	lt_prog_compiler_wl='-Wl,'
9349	lt_prog_compiler_pic='-fPIC'
9350	lt_prog_compiler_static='-static'
9351	;;
9352      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9353        # Portland Group compilers (*not* the Pentium gcc compiler,
9354	# which looks to be a dead project)
9355	lt_prog_compiler_wl='-Wl,'
9356	lt_prog_compiler_pic='-fpic'
9357	lt_prog_compiler_static='-Bstatic'
9358        ;;
9359      ccc*)
9360        lt_prog_compiler_wl='-Wl,'
9361        # All Alpha code is PIC.
9362        lt_prog_compiler_static='-non_shared'
9363        ;;
9364      xl* | bgxl* | bgf* | mpixl*)
9365	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9366	lt_prog_compiler_wl='-Wl,'
9367	lt_prog_compiler_pic='-qpic'
9368	lt_prog_compiler_static='-qstaticlink'
9369	;;
9370      *)
9371	case `$CC -V 2>&1 | $SED 5q` in
9372	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9373	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9374	  lt_prog_compiler_pic='-KPIC'
9375	  lt_prog_compiler_static='-Bstatic'
9376	  lt_prog_compiler_wl=''
9377	  ;;
9378	*Sun\ F* | *Sun*Fortran*)
9379	  lt_prog_compiler_pic='-KPIC'
9380	  lt_prog_compiler_static='-Bstatic'
9381	  lt_prog_compiler_wl='-Qoption ld '
9382	  ;;
9383	*Sun\ C*)
9384	  # Sun C 5.9
9385	  lt_prog_compiler_pic='-KPIC'
9386	  lt_prog_compiler_static='-Bstatic'
9387	  lt_prog_compiler_wl='-Wl,'
9388	  ;;
9389        *Intel*\ [CF]*Compiler*)
9390	  lt_prog_compiler_wl='-Wl,'
9391	  lt_prog_compiler_pic='-fPIC'
9392	  lt_prog_compiler_static='-static'
9393	  ;;
9394	*Portland\ Group*)
9395	  lt_prog_compiler_wl='-Wl,'
9396	  lt_prog_compiler_pic='-fpic'
9397	  lt_prog_compiler_static='-Bstatic'
9398	  ;;
9399	esac
9400	;;
9401      esac
9402      ;;
9403
9404    newsos6)
9405      lt_prog_compiler_pic='-KPIC'
9406      lt_prog_compiler_static='-Bstatic'
9407      ;;
9408
9409    *nto* | *qnx*)
9410      # QNX uses GNU C++, but need to define -shared option too, otherwise
9411      # it will coredump.
9412      lt_prog_compiler_pic='-fPIC -shared'
9413      ;;
9414
9415    osf3* | osf4* | osf5*)
9416      lt_prog_compiler_wl='-Wl,'
9417      # All OSF/1 code is PIC.
9418      lt_prog_compiler_static='-non_shared'
9419      ;;
9420
9421    rdos*)
9422      lt_prog_compiler_static='-non_shared'
9423      ;;
9424
9425    solaris*)
9426      lt_prog_compiler_pic='-KPIC'
9427      lt_prog_compiler_static='-Bstatic'
9428      case $cc_basename in
9429      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9430	lt_prog_compiler_wl='-Qoption ld ';;
9431      *)
9432	lt_prog_compiler_wl='-Wl,';;
9433      esac
9434      ;;
9435
9436    sunos4*)
9437      lt_prog_compiler_wl='-Qoption ld '
9438      lt_prog_compiler_pic='-PIC'
9439      lt_prog_compiler_static='-Bstatic'
9440      ;;
9441
9442    sysv4 | sysv4.2uw2* | sysv4.3*)
9443      lt_prog_compiler_wl='-Wl,'
9444      lt_prog_compiler_pic='-KPIC'
9445      lt_prog_compiler_static='-Bstatic'
9446      ;;
9447
9448    sysv4*MP*)
9449      if test -d /usr/nec; then
9450	lt_prog_compiler_pic='-Kconform_pic'
9451	lt_prog_compiler_static='-Bstatic'
9452      fi
9453      ;;
9454
9455    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9456      lt_prog_compiler_wl='-Wl,'
9457      lt_prog_compiler_pic='-KPIC'
9458      lt_prog_compiler_static='-Bstatic'
9459      ;;
9460
9461    unicos*)
9462      lt_prog_compiler_wl='-Wl,'
9463      lt_prog_compiler_can_build_shared=no
9464      ;;
9465
9466    uts4*)
9467      lt_prog_compiler_pic='-pic'
9468      lt_prog_compiler_static='-Bstatic'
9469      ;;
9470
9471    *)
9472      lt_prog_compiler_can_build_shared=no
9473      ;;
9474    esac
9475  fi
9476
9477case $host_os in
9478  # For platforms that do not support PIC, -DPIC is meaningless:
9479  *djgpp*)
9480    lt_prog_compiler_pic=
9481    ;;
9482  *)
9483    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9484    ;;
9485esac
9486
9487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9488printf %s "checking for $compiler option to produce PIC... " >&6; }
9489if test ${lt_cv_prog_compiler_pic+y}
9490then :
9491  printf %s "(cached) " >&6
9492else $as_nop
9493  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9494fi
9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9496printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9497lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9498
9499#
9500# Check to make sure the PIC flag actually works.
9501#
9502if test -n "$lt_prog_compiler_pic"; then
9503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9504printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9505if test ${lt_cv_prog_compiler_pic_works+y}
9506then :
9507  printf %s "(cached) " >&6
9508else $as_nop
9509  lt_cv_prog_compiler_pic_works=no
9510   ac_outfile=conftest.$ac_objext
9511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9513   # Insert the option either (1) after the last *FLAGS variable, or
9514   # (2) before a word containing "conftest.", or (3) at the end.
9515   # Note that $ac_compile itself does not contain backslashes and begins
9516   # with a dollar sign (not a hyphen), so the echo should work correctly.
9517   # The option is referenced via a variable to avoid confusing sed.
9518   lt_compile=`echo "$ac_compile" | $SED \
9519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9521   -e 's:$: $lt_compiler_flag:'`
9522   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9523   (eval "$lt_compile" 2>conftest.err)
9524   ac_status=$?
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   if (exit $ac_status) && test -s "$ac_outfile"; then
9528     # The compiler can only warn and ignore the option if not recognized
9529     # So say no if there are warnings other than the usual output.
9530     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9531     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9532     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9533       lt_cv_prog_compiler_pic_works=yes
9534     fi
9535   fi
9536   $RM conftest*
9537
9538fi
9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9540printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9541
9542if test yes = "$lt_cv_prog_compiler_pic_works"; then
9543    case $lt_prog_compiler_pic in
9544     "" | " "*) ;;
9545     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9546     esac
9547else
9548    lt_prog_compiler_pic=
9549     lt_prog_compiler_can_build_shared=no
9550fi
9551
9552fi
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564#
9565# Check to make sure the static flag actually works.
9566#
9567wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9569printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9570if test ${lt_cv_prog_compiler_static_works+y}
9571then :
9572  printf %s "(cached) " >&6
9573else $as_nop
9574  lt_cv_prog_compiler_static_works=no
9575   save_LDFLAGS=$LDFLAGS
9576   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9577   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9578   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9579     # The linker can only warn and ignore the option if not recognized
9580     # So say no if there are warnings
9581     if test -s conftest.err; then
9582       # Append any errors to the config.log.
9583       cat conftest.err 1>&5
9584       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9585       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586       if diff conftest.exp conftest.er2 >/dev/null; then
9587         lt_cv_prog_compiler_static_works=yes
9588       fi
9589     else
9590       lt_cv_prog_compiler_static_works=yes
9591     fi
9592   fi
9593   $RM -r conftest*
9594   LDFLAGS=$save_LDFLAGS
9595
9596fi
9597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9598printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9599
9600if test yes = "$lt_cv_prog_compiler_static_works"; then
9601    :
9602else
9603    lt_prog_compiler_static=
9604fi
9605
9606
9607
9608
9609
9610
9611
9612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9613printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9614if test ${lt_cv_prog_compiler_c_o+y}
9615then :
9616  printf %s "(cached) " >&6
9617else $as_nop
9618  lt_cv_prog_compiler_c_o=no
9619   $RM -r conftest 2>/dev/null
9620   mkdir conftest
9621   cd conftest
9622   mkdir out
9623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624
9625   lt_compiler_flag="-o out/conftest2.$ac_objext"
9626   # Insert the option either (1) after the last *FLAGS variable, or
9627   # (2) before a word containing "conftest.", or (3) at the end.
9628   # Note that $ac_compile itself does not contain backslashes and begins
9629   # with a dollar sign (not a hyphen), so the echo should work correctly.
9630   lt_compile=`echo "$ac_compile" | $SED \
9631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633   -e 's:$: $lt_compiler_flag:'`
9634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635   (eval "$lt_compile" 2>out/conftest.err)
9636   ac_status=$?
9637   cat out/conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9640   then
9641     # The compiler can only warn and ignore the option if not recognized
9642     # So say no if there are warnings
9643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9646       lt_cv_prog_compiler_c_o=yes
9647     fi
9648   fi
9649   chmod u+w . 2>&5
9650   $RM conftest*
9651   # SGI C++ compiler will create directory out/ii_files/ for
9652   # template instantiation
9653   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9654   $RM out/* && rmdir out
9655   cd ..
9656   $RM -r conftest
9657   $RM conftest*
9658
9659fi
9660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9661printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9662
9663
9664
9665
9666
9667
9668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9669printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9670if test ${lt_cv_prog_compiler_c_o+y}
9671then :
9672  printf %s "(cached) " >&6
9673else $as_nop
9674  lt_cv_prog_compiler_c_o=no
9675   $RM -r conftest 2>/dev/null
9676   mkdir conftest
9677   cd conftest
9678   mkdir out
9679   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9680
9681   lt_compiler_flag="-o out/conftest2.$ac_objext"
9682   # Insert the option either (1) after the last *FLAGS variable, or
9683   # (2) before a word containing "conftest.", or (3) at the end.
9684   # Note that $ac_compile itself does not contain backslashes and begins
9685   # with a dollar sign (not a hyphen), so the echo should work correctly.
9686   lt_compile=`echo "$ac_compile" | $SED \
9687   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689   -e 's:$: $lt_compiler_flag:'`
9690   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9691   (eval "$lt_compile" 2>out/conftest.err)
9692   ac_status=$?
9693   cat out/conftest.err >&5
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9696   then
9697     # The compiler can only warn and ignore the option if not recognized
9698     # So say no if there are warnings
9699     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9700     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9701     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9702       lt_cv_prog_compiler_c_o=yes
9703     fi
9704   fi
9705   chmod u+w . 2>&5
9706   $RM conftest*
9707   # SGI C++ compiler will create directory out/ii_files/ for
9708   # template instantiation
9709   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9710   $RM out/* && rmdir out
9711   cd ..
9712   $RM -r conftest
9713   $RM conftest*
9714
9715fi
9716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9717printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9718
9719
9720
9721
9722hard_links=nottested
9723if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9724  # do not overwrite the value of need_locks provided by the user
9725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9726printf %s "checking if we can lock with hard links... " >&6; }
9727  hard_links=yes
9728  $RM conftest*
9729  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9730  touch conftest.a
9731  ln conftest.a conftest.b 2>&5 || hard_links=no
9732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9734printf "%s\n" "$hard_links" >&6; }
9735  if test no = "$hard_links"; then
9736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9737printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9738    need_locks=warn
9739  fi
9740else
9741  need_locks=no
9742fi
9743
9744
9745
9746
9747
9748
9749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9751
9752  runpath_var=
9753  allow_undefined_flag=
9754  always_export_symbols=no
9755  archive_cmds=
9756  archive_expsym_cmds=
9757  compiler_needs_object=no
9758  enable_shared_with_static_runtimes=no
9759  export_dynamic_flag_spec=
9760  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9761  hardcode_automatic=no
9762  hardcode_direct=no
9763  hardcode_direct_absolute=no
9764  hardcode_libdir_flag_spec=
9765  hardcode_libdir_separator=
9766  hardcode_minus_L=no
9767  hardcode_shlibpath_var=unsupported
9768  inherit_rpath=no
9769  link_all_deplibs=unknown
9770  module_cmds=
9771  module_expsym_cmds=
9772  old_archive_from_new_cmds=
9773  old_archive_from_expsyms_cmds=
9774  thread_safe_flag_spec=
9775  whole_archive_flag_spec=
9776  # include_expsyms should be a list of space-separated symbols to be *always*
9777  # included in the symbol list
9778  include_expsyms=
9779  # exclude_expsyms can be an extended regexp of symbols to exclude
9780  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9781  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9782  # as well as any symbol that contains 'd'.
9783  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9784  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9785  # platforms (ab)use it in PIC code, but their linkers get confused if
9786  # the symbol is explicitly referenced.  Since portable code cannot
9787  # rely on this symbol name, it's probably fine to never include it in
9788  # preloaded symbol tables.
9789  # Exclude shared library initialization/finalization symbols.
9790  extract_expsyms_cmds=
9791
9792  case $host_os in
9793  cygwin* | mingw* | pw32* | cegcc*)
9794    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9795    # When not using gcc, we currently assume that we are using
9796    # Microsoft Visual C++ or Intel C++ Compiler.
9797    if test yes != "$GCC"; then
9798      with_gnu_ld=no
9799    fi
9800    ;;
9801  interix*)
9802    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9803    with_gnu_ld=yes
9804    ;;
9805  openbsd* | bitrig*)
9806    with_gnu_ld=no
9807    ;;
9808  esac
9809
9810  ld_shlibs=yes
9811
9812  # On some targets, GNU ld is compatible enough with the native linker
9813  # that we're better off using the native interface for both.
9814  lt_use_gnu_ld_interface=no
9815  if test yes = "$with_gnu_ld"; then
9816    case $host_os in
9817      aix*)
9818	# The AIX port of GNU ld has always aspired to compatibility
9819	# with the native linker.  However, as the warning in the GNU ld
9820	# block says, versions before 2.19.5* couldn't really create working
9821	# shared libraries, regardless of the interface used.
9822	case `$LD -v 2>&1` in
9823	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9824	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9825	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9826	  *)
9827	    lt_use_gnu_ld_interface=yes
9828	    ;;
9829	esac
9830	;;
9831      *)
9832	lt_use_gnu_ld_interface=yes
9833	;;
9834    esac
9835  fi
9836
9837  if test yes = "$lt_use_gnu_ld_interface"; then
9838    # If archive_cmds runs LD, not CC, wlarc should be empty
9839    wlarc='$wl'
9840
9841    # Set some defaults for GNU ld with shared library support. These
9842    # are reset later if shared libraries are not supported. Putting them
9843    # here allows them to be overridden if necessary.
9844    runpath_var=LD_RUN_PATH
9845    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9846    export_dynamic_flag_spec='$wl--export-dynamic'
9847    # ancient GNU ld didn't support --whole-archive et. al.
9848    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9849      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9850    else
9851      whole_archive_flag_spec=
9852    fi
9853    supports_anon_versioning=no
9854    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9855      *GNU\ gold*) supports_anon_versioning=yes ;;
9856      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9857      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9858      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9859      *\ 2.11.*) ;; # other 2.11 versions
9860      *) supports_anon_versioning=yes ;;
9861    esac
9862
9863    # See if GNU ld supports shared libraries.
9864    case $host_os in
9865    aix[3-9]*)
9866      # On AIX/PPC, the GNU linker is very broken
9867      if test ia64 != "$host_cpu"; then
9868	ld_shlibs=no
9869	cat <<_LT_EOF 1>&2
9870
9871*** Warning: the GNU linker, at least up to release 2.19, is reported
9872*** to be unable to reliably create shared libraries on AIX.
9873*** Therefore, libtool is disabling shared libraries support.  If you
9874*** really care for shared libraries, you may want to install binutils
9875*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9876*** You will then need to restart the configuration process.
9877
9878_LT_EOF
9879      fi
9880      ;;
9881
9882    amigaos*)
9883      case $host_cpu in
9884      powerpc)
9885            # see comment about AmigaOS4 .so support
9886            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9887            archive_expsym_cmds=''
9888        ;;
9889      m68k)
9890            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)'
9891            hardcode_libdir_flag_spec='-L$libdir'
9892            hardcode_minus_L=yes
9893        ;;
9894      esac
9895      ;;
9896
9897    beos*)
9898      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899	allow_undefined_flag=unsupported
9900	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9901	# support --undefined.  This deserves some investigation.  FIXME
9902	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903      else
9904	ld_shlibs=no
9905      fi
9906      ;;
9907
9908    cygwin* | mingw* | pw32* | cegcc*)
9909      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9910      # as there is no search path for DLLs.
9911      hardcode_libdir_flag_spec='-L$libdir'
9912      export_dynamic_flag_spec='$wl--export-all-symbols'
9913      allow_undefined_flag=unsupported
9914      always_export_symbols=no
9915      enable_shared_with_static_runtimes=yes
9916      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'
9917      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9918
9919      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9920        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9921	# If the export-symbols file already is a .def file, use it as
9922	# is; otherwise, prepend EXPORTS...
9923	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9924          cp $export_symbols $output_objdir/$soname.def;
9925        else
9926          echo EXPORTS > $output_objdir/$soname.def;
9927          cat $export_symbols >> $output_objdir/$soname.def;
9928        fi~
9929        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9930      else
9931	ld_shlibs=no
9932      fi
9933      ;;
9934
9935    haiku*)
9936      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9937      link_all_deplibs=yes
9938      ;;
9939
9940    os2*)
9941      hardcode_libdir_flag_spec='-L$libdir'
9942      hardcode_minus_L=yes
9943      allow_undefined_flag=unsupported
9944      shrext_cmds=.dll
9945      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9946	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9947	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9948	$ECHO EXPORTS >> $output_objdir/$libname.def~
9949	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9950	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9951	emximp -o $lib $output_objdir/$libname.def'
9952      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9953	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9954	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9955	$ECHO EXPORTS >> $output_objdir/$libname.def~
9956	prefix_cmds="$SED"~
9957	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9958	  prefix_cmds="$prefix_cmds -e 1d";
9959	fi~
9960	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9961	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9962	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9963	emximp -o $lib $output_objdir/$libname.def'
9964      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9965      enable_shared_with_static_runtimes=yes
9966      file_list_spec='@'
9967      ;;
9968
9969    interix[3-9]*)
9970      hardcode_direct=no
9971      hardcode_shlibpath_var=no
9972      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9973      export_dynamic_flag_spec='$wl-E'
9974      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9975      # Instead, shared libraries are loaded at an image base (0x10000000 by
9976      # default) and relocated if they conflict, which is a slow very memory
9977      # consuming and fragmenting process.  To avoid this, we pick a random,
9978      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9979      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9980      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9981      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'
9982      ;;
9983
9984    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9985      tmp_diet=no
9986      if test linux-dietlibc = "$host_os"; then
9987	case $cc_basename in
9988	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9989	esac
9990      fi
9991      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9992	 && test no = "$tmp_diet"
9993      then
9994	tmp_addflag=' $pic_flag'
9995	tmp_sharedflag='-shared'
9996	case $cc_basename,$host_cpu in
9997        pgcc*)				# Portland Group C compiler
9998	  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'
9999	  tmp_addflag=' $pic_flag'
10000	  ;;
10001	pgf77* | pgf90* | pgf95* | pgfortran*)
10002					# Portland Group f77 and f90 compilers
10003	  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'
10004	  tmp_addflag=' $pic_flag -Mnomain' ;;
10005	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10006	  tmp_addflag=' -i_dynamic' ;;
10007	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10008	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10009	ifc* | ifort*)			# Intel Fortran compiler
10010	  tmp_addflag=' -nofor_main' ;;
10011	lf95*)				# Lahey Fortran 8.1
10012	  whole_archive_flag_spec=
10013	  tmp_sharedflag='--shared' ;;
10014        nagfor*)                        # NAGFOR 5.3
10015          tmp_sharedflag='-Wl,-shared' ;;
10016	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10017	  tmp_sharedflag='-qmkshrobj'
10018	  tmp_addflag= ;;
10019	nvcc*)	# Cuda Compiler Driver 2.2
10020	  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'
10021	  compiler_needs_object=yes
10022	  ;;
10023	esac
10024	case `$CC -V 2>&1 | $SED 5q` in
10025	*Sun\ C*)			# Sun C 5.9
10026	  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'
10027	  compiler_needs_object=yes
10028	  tmp_sharedflag='-G' ;;
10029	*Sun\ F*)			# Sun Fortran 8.3
10030	  tmp_sharedflag='-G' ;;
10031	esac
10032	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10033
10034        if test yes = "$supports_anon_versioning"; then
10035          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10036            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10037            echo "local: *; };" >> $output_objdir/$libname.ver~
10038            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10039        fi
10040
10041	case $cc_basename in
10042	tcc*)
10043	  export_dynamic_flag_spec='-rdynamic'
10044	  ;;
10045	xlf* | bgf* | bgxlf* | mpixlf*)
10046	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10047	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10048	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10049	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10050	  if test yes = "$supports_anon_versioning"; then
10051	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10052              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10053              echo "local: *; };" >> $output_objdir/$libname.ver~
10054              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10055	  fi
10056	  ;;
10057	esac
10058      else
10059        ld_shlibs=no
10060      fi
10061      ;;
10062
10063    netbsd*)
10064      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10065	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10066	wlarc=
10067      else
10068	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10070      fi
10071      ;;
10072
10073    solaris*)
10074      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10075	ld_shlibs=no
10076	cat <<_LT_EOF 1>&2
10077
10078*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10079*** create shared libraries on Solaris systems.  Therefore, libtool
10080*** is disabling shared libraries support.  We urge you to upgrade GNU
10081*** binutils to release 2.9.1 or newer.  Another option is to modify
10082*** your PATH or compiler configuration so that the native linker is
10083*** used, and then restart.
10084
10085_LT_EOF
10086      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10087	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089      else
10090	ld_shlibs=no
10091      fi
10092      ;;
10093
10094    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10095      case `$LD -v 2>&1` in
10096        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10097	ld_shlibs=no
10098	cat <<_LT_EOF 1>&2
10099
10100*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10101*** reliably create shared libraries on SCO systems.  Therefore, libtool
10102*** is disabling shared libraries support.  We urge you to upgrade GNU
10103*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10104*** your PATH or compiler configuration so that the native linker is
10105*** used, and then restart.
10106
10107_LT_EOF
10108	;;
10109	*)
10110	  # For security reasons, it is highly recommended that you always
10111	  # use absolute paths for naming shared libraries, and exclude the
10112	  # DT_RUNPATH tag from executables and libraries.  But doing so
10113	  # requires that you compile everything twice, which is a pain.
10114	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118	  else
10119	    ld_shlibs=no
10120	  fi
10121	;;
10122      esac
10123      ;;
10124
10125    sunos4*)
10126      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10127      wlarc=
10128      hardcode_direct=yes
10129      hardcode_shlibpath_var=no
10130      ;;
10131
10132    *)
10133      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10134	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10135	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10136      else
10137	ld_shlibs=no
10138      fi
10139      ;;
10140    esac
10141
10142    if test no = "$ld_shlibs"; then
10143      runpath_var=
10144      hardcode_libdir_flag_spec=
10145      export_dynamic_flag_spec=
10146      whole_archive_flag_spec=
10147    fi
10148  else
10149    # PORTME fill in a description of your system's linker (not GNU ld)
10150    case $host_os in
10151    aix3*)
10152      allow_undefined_flag=unsupported
10153      always_export_symbols=yes
10154      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'
10155      # Note: this linker hardcodes the directories in LIBPATH if there
10156      # are no directories specified by -L.
10157      hardcode_minus_L=yes
10158      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10159	# Neither direct hardcoding nor static linking is supported with a
10160	# broken collect2.
10161	hardcode_direct=unsupported
10162      fi
10163      ;;
10164
10165    aix[4-9]*)
10166      if test ia64 = "$host_cpu"; then
10167	# On IA64, the linker does run time linking by default, so we don't
10168	# have to do anything special.
10169	aix_use_runtimelinking=no
10170	exp_sym_flag='-Bexport'
10171	no_entry_flag=
10172      else
10173	# If we're using GNU nm, then we don't want the "-C" option.
10174	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10175	# Without the "-l" option, or with the "-B" option, AIX nm treats
10176	# weak defined symbols like other global defined symbols, whereas
10177	# GNU nm marks them as "W".
10178	# While the 'weak' keyword is ignored in the Export File, we need
10179	# it in the Import File for the 'aix-soname' feature, so we have
10180	# to replace the "-B" option with "-P" for AIX nm.
10181	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10182	  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'
10183	else
10184	  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'
10185	fi
10186	aix_use_runtimelinking=no
10187
10188	# Test if we are trying to use run time linking or normal
10189	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10190	# have runtime linking enabled, and use it for executables.
10191	# For shared libraries, we enable/disable runtime linking
10192	# depending on the kind of the shared library created -
10193	# when "with_aix_soname,aix_use_runtimelinking" is:
10194	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10195	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10196	#            lib.a           static archive
10197	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10198	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10199	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10200	#            lib.a(lib.so.V) shared, rtl:no
10201	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10202	#            lib.a           static archive
10203	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10204	  for ld_flag in $LDFLAGS; do
10205	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10206	    aix_use_runtimelinking=yes
10207	    break
10208	  fi
10209	  done
10210	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10211	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10212	    # so we don't have lib.a shared libs to link our executables.
10213	    # We have to force runtime linking in this case.
10214	    aix_use_runtimelinking=yes
10215	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10216	  fi
10217	  ;;
10218	esac
10219
10220	exp_sym_flag='-bexport'
10221	no_entry_flag='-bnoentry'
10222      fi
10223
10224      # When large executables or shared objects are built, AIX ld can
10225      # have problems creating the table of contents.  If linking a library
10226      # or program results in "error TOC overflow" add -mminimal-toc to
10227      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10228      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10229
10230      archive_cmds=''
10231      hardcode_direct=yes
10232      hardcode_direct_absolute=yes
10233      hardcode_libdir_separator=':'
10234      link_all_deplibs=yes
10235      file_list_spec='$wl-f,'
10236      case $with_aix_soname,$aix_use_runtimelinking in
10237      aix,*) ;; # traditional, no import file
10238      svr4,* | *,yes) # use import file
10239	# The Import File defines what to hardcode.
10240	hardcode_direct=no
10241	hardcode_direct_absolute=no
10242	;;
10243      esac
10244
10245      if test yes = "$GCC"; then
10246	case $host_os in aix4.[012]|aix4.[012].*)
10247	# We only want to do this on AIX 4.2 and lower, the check
10248	# below for broken collect2 doesn't work under 4.3+
10249	  collect2name=`$CC -print-prog-name=collect2`
10250	  if test -f "$collect2name" &&
10251	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10252	  then
10253	  # We have reworked collect2
10254	  :
10255	  else
10256	  # We have old collect2
10257	  hardcode_direct=unsupported
10258	  # It fails to find uninstalled libraries when the uninstalled
10259	  # path is not listed in the libpath.  Setting hardcode_minus_L
10260	  # to unsupported forces relinking
10261	  hardcode_minus_L=yes
10262	  hardcode_libdir_flag_spec='-L$libdir'
10263	  hardcode_libdir_separator=
10264	  fi
10265	  ;;
10266	esac
10267	shared_flag='-shared'
10268	if test yes = "$aix_use_runtimelinking"; then
10269	  shared_flag="$shared_flag "'$wl-G'
10270	fi
10271	# Need to ensure runtime linking is disabled for the traditional
10272	# shared library, or the linker may eventually find shared libraries
10273	# /with/ Import File - we do not want to mix them.
10274	shared_flag_aix='-shared'
10275	shared_flag_svr4='-shared $wl-G'
10276      else
10277	# not using gcc
10278	if test ia64 = "$host_cpu"; then
10279	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280	# chokes on -Wl,-G. The following line is correct:
10281	  shared_flag='-G'
10282	else
10283	  if test yes = "$aix_use_runtimelinking"; then
10284	    shared_flag='$wl-G'
10285	  else
10286	    shared_flag='$wl-bM:SRE'
10287	  fi
10288	  shared_flag_aix='$wl-bM:SRE'
10289	  shared_flag_svr4='$wl-G'
10290	fi
10291      fi
10292
10293      export_dynamic_flag_spec='$wl-bexpall'
10294      # It seems that -bexpall does not export symbols beginning with
10295      # underscore (_), so it is better to generate a list of symbols to export.
10296      always_export_symbols=yes
10297      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10298	# Warning - without using the other runtime loading flags (-brtl),
10299	# -berok will link without error, but may produce a broken library.
10300	allow_undefined_flag='-berok'
10301        # Determine the default libpath from the value encoded in an
10302        # empty executable.
10303        if test set = "${lt_cv_aix_libpath+set}"; then
10304  aix_libpath=$lt_cv_aix_libpath
10305else
10306  if test ${lt_cv_aix_libpath_+y}
10307then :
10308  printf %s "(cached) " >&6
10309else $as_nop
10310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311/* end confdefs.h.  */
10312
10313int
10314main (void)
10315{
10316
10317  ;
10318  return 0;
10319}
10320_ACEOF
10321if ac_fn_c_try_link "$LINENO"
10322then :
10323
10324  lt_aix_libpath_sed='
10325      /Import File Strings/,/^$/ {
10326	  /^0/ {
10327	      s/^0  *\([^ ]*\) *$/\1/
10328	      p
10329	  }
10330      }'
10331  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332  # Check for a 64-bit object if we didn't find anything.
10333  if test -z "$lt_cv_aix_libpath_"; then
10334    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10335  fi
10336fi
10337rm -f core conftest.err conftest.$ac_objext conftest.beam \
10338    conftest$ac_exeext conftest.$ac_ext
10339  if test -z "$lt_cv_aix_libpath_"; then
10340    lt_cv_aix_libpath_=/usr/lib:/lib
10341  fi
10342
10343fi
10344
10345  aix_libpath=$lt_cv_aix_libpath_
10346fi
10347
10348        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10349        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
10350      else
10351	if test ia64 = "$host_cpu"; then
10352	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10353	  allow_undefined_flag="-z nodefs"
10354	  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"
10355	else
10356	 # Determine the default libpath from the value encoded in an
10357	 # empty executable.
10358	 if test set = "${lt_cv_aix_libpath+set}"; then
10359  aix_libpath=$lt_cv_aix_libpath
10360else
10361  if test ${lt_cv_aix_libpath_+y}
10362then :
10363  printf %s "(cached) " >&6
10364else $as_nop
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367
10368int
10369main (void)
10370{
10371
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"
10377then :
10378
10379  lt_aix_libpath_sed='
10380      /Import File Strings/,/^$/ {
10381	  /^0/ {
10382	      s/^0  *\([^ ]*\) *$/\1/
10383	      p
10384	  }
10385      }'
10386  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387  # Check for a 64-bit object if we didn't find anything.
10388  if test -z "$lt_cv_aix_libpath_"; then
10389    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390  fi
10391fi
10392rm -f core conftest.err conftest.$ac_objext conftest.beam \
10393    conftest$ac_exeext conftest.$ac_ext
10394  if test -z "$lt_cv_aix_libpath_"; then
10395    lt_cv_aix_libpath_=/usr/lib:/lib
10396  fi
10397
10398fi
10399
10400  aix_libpath=$lt_cv_aix_libpath_
10401fi
10402
10403	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10404	  # Warning - without using the other run time loading flags,
10405	  # -berok will link without error, but may produce a broken library.
10406	  no_undefined_flag=' $wl-bernotok'
10407	  allow_undefined_flag=' $wl-berok'
10408	  if test yes = "$with_gnu_ld"; then
10409	    # We only use this code for GNU lds that support --whole-archive.
10410	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10411	  else
10412	    # Exported symbols can be pulled into shared objects from archives
10413	    whole_archive_flag_spec='$convenience'
10414	  fi
10415	  archive_cmds_need_lc=yes
10416	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10417	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10418	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10419	  if test svr4 != "$with_aix_soname"; then
10420	    # This is similar to how AIX traditionally builds its shared libraries.
10421	    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'
10422	  fi
10423	  if test aix != "$with_aix_soname"; then
10424	    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'
10425	  else
10426	    # used by -dlpreopen to get the symbols
10427	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10428	  fi
10429	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10430	fi
10431      fi
10432      ;;
10433
10434    amigaos*)
10435      case $host_cpu in
10436      powerpc)
10437            # see comment about AmigaOS4 .so support
10438            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439            archive_expsym_cmds=''
10440        ;;
10441      m68k)
10442            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)'
10443            hardcode_libdir_flag_spec='-L$libdir'
10444            hardcode_minus_L=yes
10445        ;;
10446      esac
10447      ;;
10448
10449    bsdi[45]*)
10450      export_dynamic_flag_spec=-rdynamic
10451      ;;
10452
10453    cygwin* | mingw* | pw32* | cegcc*)
10454      # When not using gcc, we currently assume that we are using
10455      # Microsoft Visual C++ or Intel C++ Compiler.
10456      # hardcode_libdir_flag_spec is actually meaningless, as there is
10457      # no search path for DLLs.
10458      case $cc_basename in
10459      cl* | icl*)
10460	# Native MSVC or ICC
10461	hardcode_libdir_flag_spec=' '
10462	allow_undefined_flag=unsupported
10463	always_export_symbols=yes
10464	file_list_spec='@'
10465	# Tell ltmain to make .lib files, not .a files.
10466	libext=lib
10467	# Tell ltmain to make .dll files, not .so files.
10468	shrext_cmds=.dll
10469	# FIXME: Setting linknames here is a bad hack.
10470	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10471	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10472            cp "$export_symbols" "$output_objdir/$soname.def";
10473            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10474          else
10475            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10476          fi~
10477          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10478          linknames='
10479	# The linker will not automatically build a static lib if we build a DLL.
10480	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10481	enable_shared_with_static_runtimes=yes
10482	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10483	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10484	# Don't use ranlib
10485	old_postinstall_cmds='chmod 644 $oldlib'
10486	postlink_cmds='lt_outputfile="@OUTPUT@"~
10487          lt_tool_outputfile="@TOOL_OUTPUT@"~
10488          case $lt_outputfile in
10489            *.exe|*.EXE) ;;
10490            *)
10491              lt_outputfile=$lt_outputfile.exe
10492              lt_tool_outputfile=$lt_tool_outputfile.exe
10493              ;;
10494          esac~
10495          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10496            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10497            $RM "$lt_outputfile.manifest";
10498          fi'
10499	;;
10500      *)
10501	# Assume MSVC and ICC wrapper
10502	hardcode_libdir_flag_spec=' '
10503	allow_undefined_flag=unsupported
10504	# Tell ltmain to make .lib files, not .a files.
10505	libext=lib
10506	# Tell ltmain to make .dll files, not .so files.
10507	shrext_cmds=.dll
10508	# FIXME: Setting linknames here is a bad hack.
10509	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510	# The linker will automatically build a .lib file if we build a DLL.
10511	old_archive_from_new_cmds='true'
10512	# FIXME: Should let the user specify the lib program.
10513	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514	enable_shared_with_static_runtimes=yes
10515	;;
10516      esac
10517      ;;
10518
10519    darwin* | rhapsody*)
10520
10521
10522  archive_cmds_need_lc=no
10523  hardcode_direct=no
10524  hardcode_automatic=yes
10525  hardcode_shlibpath_var=unsupported
10526  if test yes = "$lt_cv_ld_force_load"; then
10527    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\"`'
10528
10529  else
10530    whole_archive_flag_spec=''
10531  fi
10532  link_all_deplibs=yes
10533  allow_undefined_flag=$_lt_dar_allow_undefined
10534  case $cc_basename in
10535     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10536     *) _lt_dar_can_shared=$GCC ;;
10537  esac
10538  if test yes = "$_lt_dar_can_shared"; then
10539    output_verbose_link_cmd=func_echo_all
10540    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10541    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10542    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"
10543    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"
10544
10545  else
10546  ld_shlibs=no
10547  fi
10548
10549      ;;
10550
10551    dgux*)
10552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553      hardcode_libdir_flag_spec='-L$libdir'
10554      hardcode_shlibpath_var=no
10555      ;;
10556
10557    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10558    # support.  Future versions do this automatically, but an explicit c++rt0.o
10559    # does not break anything, and helps significantly (at the cost of a little
10560    # extra space).
10561    freebsd2.2*)
10562      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10563      hardcode_libdir_flag_spec='-R$libdir'
10564      hardcode_direct=yes
10565      hardcode_shlibpath_var=no
10566      ;;
10567
10568    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10569    freebsd2.*)
10570      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10571      hardcode_direct=yes
10572      hardcode_minus_L=yes
10573      hardcode_shlibpath_var=no
10574      ;;
10575
10576    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10577    freebsd* | dragonfly* | midnightbsd*)
10578      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579      hardcode_libdir_flag_spec='-R$libdir'
10580      hardcode_direct=yes
10581      hardcode_shlibpath_var=no
10582      ;;
10583
10584    hpux9*)
10585      if test yes = "$GCC"; then
10586	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'
10587      else
10588	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'
10589      fi
10590      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10591      hardcode_libdir_separator=:
10592      hardcode_direct=yes
10593
10594      # hardcode_minus_L: Not really in the search PATH,
10595      # but as the default location of the library.
10596      hardcode_minus_L=yes
10597      export_dynamic_flag_spec='$wl-E'
10598      ;;
10599
10600    hpux10*)
10601      if test yes,no = "$GCC,$with_gnu_ld"; then
10602	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10603      else
10604	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10605      fi
10606      if test no = "$with_gnu_ld"; then
10607	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10608	hardcode_libdir_separator=:
10609	hardcode_direct=yes
10610	hardcode_direct_absolute=yes
10611	export_dynamic_flag_spec='$wl-E'
10612	# hardcode_minus_L: Not really in the search PATH,
10613	# but as the default location of the library.
10614	hardcode_minus_L=yes
10615      fi
10616      ;;
10617
10618    hpux11*)
10619      if test yes,no = "$GCC,$with_gnu_ld"; then
10620	case $host_cpu in
10621	hppa*64*)
10622	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10623	  ;;
10624	ia64*)
10625	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626	  ;;
10627	*)
10628	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629	  ;;
10630	esac
10631      else
10632	case $host_cpu in
10633	hppa*64*)
10634	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10635	  ;;
10636	ia64*)
10637	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638	  ;;
10639	*)
10640
10641	  # Older versions of the 11.00 compiler do not understand -b yet
10642	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10643	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10644printf %s "checking if $CC understands -b... " >&6; }
10645if test ${lt_cv_prog_compiler__b+y}
10646then :
10647  printf %s "(cached) " >&6
10648else $as_nop
10649  lt_cv_prog_compiler__b=no
10650   save_LDFLAGS=$LDFLAGS
10651   LDFLAGS="$LDFLAGS -b"
10652   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10653   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10654     # The linker can only warn and ignore the option if not recognized
10655     # So say no if there are warnings
10656     if test -s conftest.err; then
10657       # Append any errors to the config.log.
10658       cat conftest.err 1>&5
10659       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10660       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10661       if diff conftest.exp conftest.er2 >/dev/null; then
10662         lt_cv_prog_compiler__b=yes
10663       fi
10664     else
10665       lt_cv_prog_compiler__b=yes
10666     fi
10667   fi
10668   $RM -r conftest*
10669   LDFLAGS=$save_LDFLAGS
10670
10671fi
10672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10673printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10674
10675if test yes = "$lt_cv_prog_compiler__b"; then
10676    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677else
10678    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10679fi
10680
10681	  ;;
10682	esac
10683      fi
10684      if test no = "$with_gnu_ld"; then
10685	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10686	hardcode_libdir_separator=:
10687
10688	case $host_cpu in
10689	hppa*64*|ia64*)
10690	  hardcode_direct=no
10691	  hardcode_shlibpath_var=no
10692	  ;;
10693	*)
10694	  hardcode_direct=yes
10695	  hardcode_direct_absolute=yes
10696	  export_dynamic_flag_spec='$wl-E'
10697
10698	  # hardcode_minus_L: Not really in the search PATH,
10699	  # but as the default location of the library.
10700	  hardcode_minus_L=yes
10701	  ;;
10702	esac
10703      fi
10704      ;;
10705
10706    irix5* | irix6* | nonstopux*)
10707      if test yes = "$GCC"; then
10708	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'
10709	# Try to use the -exported_symbol ld option, if it does not
10710	# work, assume that -exports_file does not work either and
10711	# implicitly export all symbols.
10712	# This should be the same for all languages, so no per-tag cache variable.
10713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10714printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10715if test ${lt_cv_irix_exported_symbol+y}
10716then :
10717  printf %s "(cached) " >&6
10718else $as_nop
10719  save_LDFLAGS=$LDFLAGS
10720	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10721	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723int foo (void) { return 0; }
10724_ACEOF
10725if ac_fn_c_try_link "$LINENO"
10726then :
10727  lt_cv_irix_exported_symbol=yes
10728else $as_nop
10729  lt_cv_irix_exported_symbol=no
10730fi
10731rm -f core conftest.err conftest.$ac_objext conftest.beam \
10732    conftest$ac_exeext conftest.$ac_ext
10733           LDFLAGS=$save_LDFLAGS
10734fi
10735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10736printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10737	if test yes = "$lt_cv_irix_exported_symbol"; then
10738          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'
10739	fi
10740      else
10741	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'
10742	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'
10743      fi
10744      archive_cmds_need_lc='no'
10745      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10746      hardcode_libdir_separator=:
10747      inherit_rpath=yes
10748      link_all_deplibs=yes
10749      ;;
10750
10751    linux*)
10752      case $cc_basename in
10753      tcc*)
10754	# Fabrice Bellard et al's Tiny C Compiler
10755	ld_shlibs=yes
10756	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757	;;
10758      esac
10759      ;;
10760
10761    netbsd*)
10762      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10763	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10764      else
10765	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10766      fi
10767      hardcode_libdir_flag_spec='-R$libdir'
10768      hardcode_direct=yes
10769      hardcode_shlibpath_var=no
10770      ;;
10771
10772    newsos6)
10773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10774      hardcode_direct=yes
10775      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10776      hardcode_libdir_separator=:
10777      hardcode_shlibpath_var=no
10778      ;;
10779
10780    *nto* | *qnx*)
10781      ;;
10782
10783    openbsd* | bitrig*)
10784      if test -f /usr/libexec/ld.so; then
10785	hardcode_direct=yes
10786	hardcode_shlibpath_var=no
10787	hardcode_direct_absolute=yes
10788	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10789	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10790	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10791	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10792	  export_dynamic_flag_spec='$wl-E'
10793	else
10794	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10796	fi
10797      else
10798	ld_shlibs=no
10799      fi
10800      ;;
10801
10802    os2*)
10803      hardcode_libdir_flag_spec='-L$libdir'
10804      hardcode_minus_L=yes
10805      allow_undefined_flag=unsupported
10806      shrext_cmds=.dll
10807      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10808	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10809	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10810	$ECHO EXPORTS >> $output_objdir/$libname.def~
10811	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10812	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10813	emximp -o $lib $output_objdir/$libname.def'
10814      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10815	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10816	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10817	$ECHO EXPORTS >> $output_objdir/$libname.def~
10818	prefix_cmds="$SED"~
10819	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10820	  prefix_cmds="$prefix_cmds -e 1d";
10821	fi~
10822	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10823	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10824	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10825	emximp -o $lib $output_objdir/$libname.def'
10826      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10827      enable_shared_with_static_runtimes=yes
10828      file_list_spec='@'
10829      ;;
10830
10831    osf3*)
10832      if test yes = "$GCC"; then
10833	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10834	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'
10835      else
10836	allow_undefined_flag=' -expect_unresolved \*'
10837	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'
10838      fi
10839      archive_cmds_need_lc='no'
10840      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841      hardcode_libdir_separator=:
10842      ;;
10843
10844    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10845      if test yes = "$GCC"; then
10846	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10847	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'
10848	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10849      else
10850	allow_undefined_flag=' -expect_unresolved \*'
10851	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'
10852	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~
10853          $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'
10854
10855	# Both c and cxx compiler support -rpath directly
10856	hardcode_libdir_flag_spec='-rpath $libdir'
10857      fi
10858      archive_cmds_need_lc='no'
10859      hardcode_libdir_separator=:
10860      ;;
10861
10862    solaris*)
10863      no_undefined_flag=' -z defs'
10864      if test yes = "$GCC"; then
10865	wlarc='$wl'
10866	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10867	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10868          $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'
10869      else
10870	case `$CC -V 2>&1` in
10871	*"Compilers 5.0"*)
10872	  wlarc=''
10873	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10876	  ;;
10877	*)
10878	  wlarc='$wl'
10879	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10881            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10882	  ;;
10883	esac
10884      fi
10885      hardcode_libdir_flag_spec='-R$libdir'
10886      hardcode_shlibpath_var=no
10887      case $host_os in
10888      solaris2.[0-5] | solaris2.[0-5].*) ;;
10889      *)
10890	# The compiler driver will combine and reorder linker options,
10891	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10892	# but is careful enough not to reorder.
10893	# Supported since Solaris 2.6 (maybe 2.5.1?)
10894	if test yes = "$GCC"; then
10895	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10896	else
10897	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10898	fi
10899	;;
10900      esac
10901      link_all_deplibs=yes
10902      ;;
10903
10904    sunos4*)
10905      if test sequent = "$host_vendor"; then
10906	# Use $CC to link under sequent, because it throws in some extra .o
10907	# files that make .init and .fini sections work.
10908	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10909      else
10910	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10911      fi
10912      hardcode_libdir_flag_spec='-L$libdir'
10913      hardcode_direct=yes
10914      hardcode_minus_L=yes
10915      hardcode_shlibpath_var=no
10916      ;;
10917
10918    sysv4)
10919      case $host_vendor in
10920	sni)
10921	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922	  hardcode_direct=yes # is this really true???
10923	;;
10924	siemens)
10925	  ## LD is ld it makes a PLAMLIB
10926	  ## CC just makes a GrossModule.
10927	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10928	  reload_cmds='$CC -r -o $output$reload_objs'
10929	  hardcode_direct=no
10930        ;;
10931	motorola)
10932	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10934	;;
10935      esac
10936      runpath_var='LD_RUN_PATH'
10937      hardcode_shlibpath_var=no
10938      ;;
10939
10940    sysv4.3*)
10941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942      hardcode_shlibpath_var=no
10943      export_dynamic_flag_spec='-Bexport'
10944      ;;
10945
10946    sysv4*MP*)
10947      if test -d /usr/nec; then
10948	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949	hardcode_shlibpath_var=no
10950	runpath_var=LD_RUN_PATH
10951	hardcode_runpath_var=yes
10952	ld_shlibs=yes
10953      fi
10954      ;;
10955
10956    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10957      no_undefined_flag='$wl-z,text'
10958      archive_cmds_need_lc=no
10959      hardcode_shlibpath_var=no
10960      runpath_var='LD_RUN_PATH'
10961
10962      if test yes = "$GCC"; then
10963	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965      else
10966	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968      fi
10969      ;;
10970
10971    sysv5* | sco3.2v5* | sco5v6*)
10972      # Note: We CANNOT use -z defs as we might desire, because we do not
10973      # link with -lc, and that would cause any symbols used from libc to
10974      # always be unresolved, which means just about no library would
10975      # ever link correctly.  If we're not using GNU ld we use -z text
10976      # though, which does catch some bad symbols but isn't as heavy-handed
10977      # as -z defs.
10978      no_undefined_flag='$wl-z,text'
10979      allow_undefined_flag='$wl-z,nodefs'
10980      archive_cmds_need_lc=no
10981      hardcode_shlibpath_var=no
10982      hardcode_libdir_flag_spec='$wl-R,$libdir'
10983      hardcode_libdir_separator=':'
10984      link_all_deplibs=yes
10985      export_dynamic_flag_spec='$wl-Bexport'
10986      runpath_var='LD_RUN_PATH'
10987
10988      if test yes = "$GCC"; then
10989	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991      else
10992	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994      fi
10995      ;;
10996
10997    uts4*)
10998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999      hardcode_libdir_flag_spec='-L$libdir'
11000      hardcode_shlibpath_var=no
11001      ;;
11002
11003    *)
11004      ld_shlibs=no
11005      ;;
11006    esac
11007
11008    if test sni = "$host_vendor"; then
11009      case $host in
11010      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11011	export_dynamic_flag_spec='$wl-Blargedynsym'
11012	;;
11013      esac
11014    fi
11015  fi
11016
11017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11018printf "%s\n" "$ld_shlibs" >&6; }
11019test no = "$ld_shlibs" && can_build_shared=no
11020
11021with_gnu_ld=$with_gnu_ld
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037#
11038# Do we need to explicitly link libc?
11039#
11040case "x$archive_cmds_need_lc" in
11041x|xyes)
11042  # Assume -lc should be added
11043  archive_cmds_need_lc=yes
11044
11045  if test yes,yes = "$GCC,$enable_shared"; then
11046    case $archive_cmds in
11047    *'~'*)
11048      # FIXME: we may have to deal with multi-command sequences.
11049      ;;
11050    '$CC '*)
11051      # Test whether the compiler implicitly links with -lc since on some
11052      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053      # to ld, don't add -lc before -lgcc.
11054      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11055printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11056if test ${lt_cv_archive_cmds_need_lc+y}
11057then :
11058  printf %s "(cached) " >&6
11059else $as_nop
11060  $RM conftest*
11061	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11062
11063	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11064  (eval $ac_compile) 2>&5
11065  ac_status=$?
11066  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11067  test $ac_status = 0; } 2>conftest.err; then
11068	  soname=conftest
11069	  lib=conftest
11070	  libobjs=conftest.$ac_objext
11071	  deplibs=
11072	  wl=$lt_prog_compiler_wl
11073	  pic_flag=$lt_prog_compiler_pic
11074	  compiler_flags=-v
11075	  linker_flags=-v
11076	  verstring=
11077	  output_objdir=.
11078	  libname=conftest
11079	  lt_save_allow_undefined_flag=$allow_undefined_flag
11080	  allow_undefined_flag=
11081	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11082  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11083  ac_status=$?
11084  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11085  test $ac_status = 0; }
11086	  then
11087	    lt_cv_archive_cmds_need_lc=no
11088	  else
11089	    lt_cv_archive_cmds_need_lc=yes
11090	  fi
11091	  allow_undefined_flag=$lt_save_allow_undefined_flag
11092	else
11093	  cat conftest.err 1>&5
11094	fi
11095	$RM conftest*
11096
11097fi
11098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11099printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11100      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11101      ;;
11102    esac
11103  fi
11104  ;;
11105esac
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11259printf %s "checking dynamic linker characteristics... " >&6; }
11260
11261if test yes = "$GCC"; then
11262  case $host_os in
11263    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11264    *) lt_awk_arg='/^libraries:/' ;;
11265  esac
11266  case $host_os in
11267    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11268    *) lt_sed_strip_eq='s|=/|/|g' ;;
11269  esac
11270  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11271  case $lt_search_path_spec in
11272  *\;*)
11273    # if the path contains ";" then we assume it to be the separator
11274    # otherwise default to the standard path separator (i.e. ":") - it is
11275    # assumed that no part of a normal pathname contains ";" but that should
11276    # okay in the real world where ";" in dirpaths is itself problematic.
11277    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11278    ;;
11279  *)
11280    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11281    ;;
11282  esac
11283  # Ok, now we have the path, separated by spaces, we can step through it
11284  # and add multilib dir if necessary...
11285  lt_tmp_lt_search_path_spec=
11286  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11287  # ...but if some path component already ends with the multilib dir we assume
11288  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11289  case "$lt_multi_os_dir; $lt_search_path_spec " in
11290  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11291    lt_multi_os_dir=
11292    ;;
11293  esac
11294  for lt_sys_path in $lt_search_path_spec; do
11295    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11296      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11297    elif test -n "$lt_multi_os_dir"; then
11298      test -d "$lt_sys_path" && \
11299	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11300    fi
11301  done
11302  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11303BEGIN {RS = " "; FS = "/|\n";} {
11304  lt_foo = "";
11305  lt_count = 0;
11306  for (lt_i = NF; lt_i > 0; lt_i--) {
11307    if ($lt_i != "" && $lt_i != ".") {
11308      if ($lt_i == "..") {
11309        lt_count++;
11310      } else {
11311        if (lt_count == 0) {
11312          lt_foo = "/" $lt_i lt_foo;
11313        } else {
11314          lt_count--;
11315        }
11316      }
11317    }
11318  }
11319  if (lt_foo != "") { lt_freq[lt_foo]++; }
11320  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11321}'`
11322  # AWK program above erroneously prepends '/' to C:/dos/paths
11323  # for these hosts.
11324  case $host_os in
11325    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11326      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11327  esac
11328  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11329else
11330  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11331fi
11332library_names_spec=
11333libname_spec='lib$name'
11334soname_spec=
11335shrext_cmds=.so
11336postinstall_cmds=
11337postuninstall_cmds=
11338finish_cmds=
11339finish_eval=
11340shlibpath_var=
11341shlibpath_overrides_runpath=unknown
11342version_type=none
11343dynamic_linker="$host_os ld.so"
11344sys_lib_dlsearch_path_spec="/lib /usr/lib"
11345need_lib_prefix=unknown
11346hardcode_into_libs=no
11347
11348# when you set need_version to no, make sure it does not cause -set_version
11349# flags to be left without arguments
11350need_version=unknown
11351
11352
11353
11354case $host_os in
11355aix3*)
11356  version_type=linux # correct to gnu/linux during the next big refactor
11357  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11358  shlibpath_var=LIBPATH
11359
11360  # AIX 3 has no versioning support, so we append a major version to the name.
11361  soname_spec='$libname$release$shared_ext$major'
11362  ;;
11363
11364aix[4-9]*)
11365  version_type=linux # correct to gnu/linux during the next big refactor
11366  need_lib_prefix=no
11367  need_version=no
11368  hardcode_into_libs=yes
11369  if test ia64 = "$host_cpu"; then
11370    # AIX 5 supports IA64
11371    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11372    shlibpath_var=LD_LIBRARY_PATH
11373  else
11374    # With GCC up to 2.95.x, collect2 would create an import file
11375    # for dependence libraries.  The import file would start with
11376    # the line '#! .'.  This would cause the generated library to
11377    # depend on '.', always an invalid library.  This was fixed in
11378    # development snapshots of GCC prior to 3.0.
11379    case $host_os in
11380      aix4 | aix4.[01] | aix4.[01].*)
11381      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11382	   echo ' yes '
11383	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11384	:
11385      else
11386	can_build_shared=no
11387      fi
11388      ;;
11389    esac
11390    # Using Import Files as archive members, it is possible to support
11391    # filename-based versioning of shared library archives on AIX. While
11392    # this would work for both with and without runtime linking, it will
11393    # prevent static linking of such archives. So we do filename-based
11394    # shared library versioning with .so extension only, which is used
11395    # when both runtime linking and shared linking is enabled.
11396    # Unfortunately, runtime linking may impact performance, so we do
11397    # not want this to be the default eventually. Also, we use the
11398    # versioned .so libs for executables only if there is the -brtl
11399    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11400    # To allow for filename-based versioning support, we need to create
11401    # libNAME.so.V as an archive file, containing:
11402    # *) an Import File, referring to the versioned filename of the
11403    #    archive as well as the shared archive member, telling the
11404    #    bitwidth (32 or 64) of that shared object, and providing the
11405    #    list of exported symbols of that shared object, eventually
11406    #    decorated with the 'weak' keyword
11407    # *) the shared object with the F_LOADONLY flag set, to really avoid
11408    #    it being seen by the linker.
11409    # At run time we better use the real file rather than another symlink,
11410    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11411
11412    case $with_aix_soname,$aix_use_runtimelinking in
11413    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11414    # soname into executable. Probably we can add versioning support to
11415    # collect2, so additional links can be useful in future.
11416    aix,yes) # traditional libtool
11417      dynamic_linker='AIX unversionable lib.so'
11418      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11419      # instead of lib<name>.a to let people know that these are not
11420      # typical AIX shared libraries.
11421      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11422      ;;
11423    aix,no) # traditional AIX only
11424      dynamic_linker='AIX lib.a(lib.so.V)'
11425      # We preserve .a as extension for shared libraries through AIX4.2
11426      # and later when we are not doing run time linking.
11427      library_names_spec='$libname$release.a $libname.a'
11428      soname_spec='$libname$release$shared_ext$major'
11429      ;;
11430    svr4,*) # full svr4 only
11431      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11432      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11433      # We do not specify a path in Import Files, so LIBPATH fires.
11434      shlibpath_overrides_runpath=yes
11435      ;;
11436    *,yes) # both, prefer svr4
11437      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11438      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11439      # unpreferred sharedlib libNAME.a needs extra handling
11440      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"'
11441      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"'
11442      # We do not specify a path in Import Files, so LIBPATH fires.
11443      shlibpath_overrides_runpath=yes
11444      ;;
11445    *,no) # both, prefer aix
11446      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11447      library_names_spec='$libname$release.a $libname.a'
11448      soname_spec='$libname$release$shared_ext$major'
11449      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11450      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)'
11451      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"'
11452      ;;
11453    esac
11454    shlibpath_var=LIBPATH
11455  fi
11456  ;;
11457
11458amigaos*)
11459  case $host_cpu in
11460  powerpc)
11461    # Since July 2007 AmigaOS4 officially supports .so libraries.
11462    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11463    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464    ;;
11465  m68k)
11466    library_names_spec='$libname.ixlibrary $libname.a'
11467    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11468    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'
11469    ;;
11470  esac
11471  ;;
11472
11473beos*)
11474  library_names_spec='$libname$shared_ext'
11475  dynamic_linker="$host_os ld.so"
11476  shlibpath_var=LIBRARY_PATH
11477  ;;
11478
11479bsdi[45]*)
11480  version_type=linux # correct to gnu/linux during the next big refactor
11481  need_version=no
11482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483  soname_spec='$libname$release$shared_ext$major'
11484  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11485  shlibpath_var=LD_LIBRARY_PATH
11486  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11487  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11488  # the default ld.so.conf also contains /usr/contrib/lib and
11489  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11490  # libtool to hard-code these into programs
11491  ;;
11492
11493cygwin* | mingw* | pw32* | cegcc*)
11494  version_type=windows
11495  shrext_cmds=.dll
11496  need_version=no
11497  need_lib_prefix=no
11498
11499  case $GCC,$cc_basename in
11500  yes,*)
11501    # gcc
11502    library_names_spec='$libname.dll.a'
11503    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11504    postinstall_cmds='base_file=`basename \$file`~
11505      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11506      dldir=$destdir/`dirname \$dlpath`~
11507      test -d \$dldir || mkdir -p \$dldir~
11508      $install_prog $dir/$dlname \$dldir/$dlname~
11509      chmod a+x \$dldir/$dlname~
11510      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11511        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11512      fi'
11513    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11514      dlpath=$dir/\$dldll~
11515       $RM \$dlpath'
11516    shlibpath_overrides_runpath=yes
11517
11518    case $host_os in
11519    cygwin*)
11520      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11521      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522
11523      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11524      ;;
11525    mingw* | cegcc*)
11526      # MinGW DLLs use traditional 'lib' prefix
11527      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11528      ;;
11529    pw32*)
11530      # pw32 DLLs use 'pw' prefix rather than 'lib'
11531      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11532      ;;
11533    esac
11534    dynamic_linker='Win32 ld.exe'
11535    ;;
11536
11537  *,cl* | *,icl*)
11538    # Native MSVC or ICC
11539    libname_spec='$name'
11540    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11541    library_names_spec='$libname.dll.lib'
11542
11543    case $build_os in
11544    mingw*)
11545      sys_lib_search_path_spec=
11546      lt_save_ifs=$IFS
11547      IFS=';'
11548      for lt_path in $LIB
11549      do
11550        IFS=$lt_save_ifs
11551        # Let DOS variable expansion print the short 8.3 style file name.
11552        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11553        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11554      done
11555      IFS=$lt_save_ifs
11556      # Convert to MSYS style.
11557      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11558      ;;
11559    cygwin*)
11560      # Convert to unix form, then to dos form, then back to unix form
11561      # but this time dos style (no spaces!) so that the unix form looks
11562      # like /cygdrive/c/PROGRA~1:/cygdr...
11563      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11564      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11565      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11566      ;;
11567    *)
11568      sys_lib_search_path_spec=$LIB
11569      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11570        # It is most probably a Windows format PATH.
11571        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11572      else
11573        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11574      fi
11575      # FIXME: find the short name or the path components, as spaces are
11576      # common. (e.g. "Program Files" -> "PROGRA~1")
11577      ;;
11578    esac
11579
11580    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11581    postinstall_cmds='base_file=`basename \$file`~
11582      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11583      dldir=$destdir/`dirname \$dlpath`~
11584      test -d \$dldir || mkdir -p \$dldir~
11585      $install_prog $dir/$dlname \$dldir/$dlname'
11586    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11587      dlpath=$dir/\$dldll~
11588       $RM \$dlpath'
11589    shlibpath_overrides_runpath=yes
11590    dynamic_linker='Win32 link.exe'
11591    ;;
11592
11593  *)
11594    # Assume MSVC and ICC wrapper
11595    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11596    dynamic_linker='Win32 ld.exe'
11597    ;;
11598  esac
11599  # FIXME: first we should search . and the directory the executable is in
11600  shlibpath_var=PATH
11601  ;;
11602
11603darwin* | rhapsody*)
11604  dynamic_linker="$host_os dyld"
11605  version_type=darwin
11606  need_lib_prefix=no
11607  need_version=no
11608  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11609  soname_spec='$libname$release$major$shared_ext'
11610  shlibpath_overrides_runpath=yes
11611  shlibpath_var=DYLD_LIBRARY_PATH
11612  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11613
11614  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11615  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11616  ;;
11617
11618dgux*)
11619  version_type=linux # correct to gnu/linux during the next big refactor
11620  need_lib_prefix=no
11621  need_version=no
11622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623  soname_spec='$libname$release$shared_ext$major'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  ;;
11626
11627freebsd* | dragonfly* | midnightbsd*)
11628  # DragonFly does not have aout.  When/if they implement a new
11629  # versioning mechanism, adjust this.
11630  if test -x /usr/bin/objformat; then
11631    objformat=`/usr/bin/objformat`
11632  else
11633    case $host_os in
11634    freebsd[23].*) objformat=aout ;;
11635    *) objformat=elf ;;
11636    esac
11637  fi
11638  version_type=freebsd-$objformat
11639  case $version_type in
11640    freebsd-elf*)
11641      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642      soname_spec='$libname$release$shared_ext$major'
11643      need_version=no
11644      need_lib_prefix=no
11645      ;;
11646    freebsd-*)
11647      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648      need_version=yes
11649      ;;
11650  esac
11651  shlibpath_var=LD_LIBRARY_PATH
11652  case $host_os in
11653  freebsd2.*)
11654    shlibpath_overrides_runpath=yes
11655    ;;
11656  freebsd3.[01]* | freebsdelf3.[01]*)
11657    shlibpath_overrides_runpath=yes
11658    hardcode_into_libs=yes
11659    ;;
11660  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11661  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11662    shlibpath_overrides_runpath=no
11663    hardcode_into_libs=yes
11664    ;;
11665  *) # from 4.6 on, and DragonFly
11666    shlibpath_overrides_runpath=yes
11667    hardcode_into_libs=yes
11668    ;;
11669  esac
11670  ;;
11671
11672haiku*)
11673  version_type=linux # correct to gnu/linux during the next big refactor
11674  need_lib_prefix=no
11675  need_version=no
11676  dynamic_linker="$host_os runtime_loader"
11677  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678  soname_spec='$libname$release$shared_ext$major'
11679  shlibpath_var=LIBRARY_PATH
11680  shlibpath_overrides_runpath=no
11681  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11682  hardcode_into_libs=yes
11683  ;;
11684
11685hpux9* | hpux10* | hpux11*)
11686  # Give a soname corresponding to the major version so that dld.sl refuses to
11687  # link against other versions.
11688  version_type=sunos
11689  need_lib_prefix=no
11690  need_version=no
11691  case $host_cpu in
11692  ia64*)
11693    shrext_cmds='.so'
11694    hardcode_into_libs=yes
11695    dynamic_linker="$host_os dld.so"
11696    shlibpath_var=LD_LIBRARY_PATH
11697    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11698    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11699    soname_spec='$libname$release$shared_ext$major'
11700    if test 32 = "$HPUX_IA64_MODE"; then
11701      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11702      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11703    else
11704      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11705      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11706    fi
11707    ;;
11708  hppa*64*)
11709    shrext_cmds='.sl'
11710    hardcode_into_libs=yes
11711    dynamic_linker="$host_os dld.sl"
11712    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11713    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11714    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715    soname_spec='$libname$release$shared_ext$major'
11716    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11717    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11718    ;;
11719  *)
11720    shrext_cmds='.sl'
11721    dynamic_linker="$host_os dld.sl"
11722    shlibpath_var=SHLIB_PATH
11723    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11724    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725    soname_spec='$libname$release$shared_ext$major'
11726    ;;
11727  esac
11728  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11729  postinstall_cmds='chmod 555 $lib'
11730  # or fails outright, so override atomically:
11731  install_override_mode=555
11732  ;;
11733
11734interix[3-9]*)
11735  version_type=linux # correct to gnu/linux during the next big refactor
11736  need_lib_prefix=no
11737  need_version=no
11738  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739  soname_spec='$libname$release$shared_ext$major'
11740  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11741  shlibpath_var=LD_LIBRARY_PATH
11742  shlibpath_overrides_runpath=no
11743  hardcode_into_libs=yes
11744  ;;
11745
11746irix5* | irix6* | nonstopux*)
11747  case $host_os in
11748    nonstopux*) version_type=nonstopux ;;
11749    *)
11750	if test yes = "$lt_cv_prog_gnu_ld"; then
11751		version_type=linux # correct to gnu/linux during the next big refactor
11752	else
11753		version_type=irix
11754	fi ;;
11755  esac
11756  need_lib_prefix=no
11757  need_version=no
11758  soname_spec='$libname$release$shared_ext$major'
11759  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11760  case $host_os in
11761  irix5* | nonstopux*)
11762    libsuff= shlibsuff=
11763    ;;
11764  *)
11765    case $LD in # libtool.m4 will add one of these switches to LD
11766    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11767      libsuff= shlibsuff= libmagic=32-bit;;
11768    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11769      libsuff=32 shlibsuff=N32 libmagic=N32;;
11770    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11771      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11772    *) libsuff= shlibsuff= libmagic=never-match;;
11773    esac
11774    ;;
11775  esac
11776  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11777  shlibpath_overrides_runpath=no
11778  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11779  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11780  hardcode_into_libs=yes
11781  ;;
11782
11783# No shared lib support for Linux oldld, aout, or coff.
11784linux*oldld* | linux*aout* | linux*coff*)
11785  dynamic_linker=no
11786  ;;
11787
11788linux*android*)
11789  version_type=none # Android doesn't support versioned libraries.
11790  need_lib_prefix=no
11791  need_version=no
11792  library_names_spec='$libname$release$shared_ext'
11793  soname_spec='$libname$release$shared_ext'
11794  finish_cmds=
11795  shlibpath_var=LD_LIBRARY_PATH
11796  shlibpath_overrides_runpath=yes
11797
11798  # This implies no fast_install, which is unacceptable.
11799  # Some rework will be needed to allow for fast_install
11800  # before this can be enabled.
11801  hardcode_into_libs=yes
11802
11803  dynamic_linker='Android linker'
11804  # Don't embed -rpath directories since the linker doesn't support them.
11805  hardcode_libdir_flag_spec='-L$libdir'
11806  ;;
11807
11808# This must be glibc/ELF.
11809linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11810  version_type=linux # correct to gnu/linux during the next big refactor
11811  need_lib_prefix=no
11812  need_version=no
11813  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814  soname_spec='$libname$release$shared_ext$major'
11815  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11816  shlibpath_var=LD_LIBRARY_PATH
11817  shlibpath_overrides_runpath=no
11818
11819  # Some binutils ld are patched to set DT_RUNPATH
11820  if test ${lt_cv_shlibpath_overrides_runpath+y}
11821then :
11822  printf %s "(cached) " >&6
11823else $as_nop
11824  lt_cv_shlibpath_overrides_runpath=no
11825    save_LDFLAGS=$LDFLAGS
11826    save_libdir=$libdir
11827    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11828	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11829    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h.  */
11831
11832int
11833main (void)
11834{
11835
11836  ;
11837  return 0;
11838}
11839_ACEOF
11840if ac_fn_c_try_link "$LINENO"
11841then :
11842  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11843then :
11844  lt_cv_shlibpath_overrides_runpath=yes
11845fi
11846fi
11847rm -f core conftest.err conftest.$ac_objext conftest.beam \
11848    conftest$ac_exeext conftest.$ac_ext
11849    LDFLAGS=$save_LDFLAGS
11850    libdir=$save_libdir
11851
11852fi
11853
11854  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11855
11856  # This implies no fast_install, which is unacceptable.
11857  # Some rework will be needed to allow for fast_install
11858  # before this can be enabled.
11859  hardcode_into_libs=yes
11860
11861  # Ideally, we could use ldconfig to report *all* directores which are
11862  # searched for libraries, however this is still not possible.  Aside from not
11863  # being certain /sbin/ldconfig is available, command
11864  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11865  # even though it is searched at run-time.  Try to do the best guess by
11866  # appending ld.so.conf contents (and includes) to the search path.
11867  if test -f /etc/ld.so.conf; then
11868    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' ' '`
11869    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11870  fi
11871
11872  # We used to test for /lib/ld.so.1 and disable shared libraries on
11873  # powerpc, because MkLinux only supported shared libraries with the
11874  # GNU dynamic linker.  Since this was broken with cross compilers,
11875  # most powerpc-linux boxes support dynamic linking these days and
11876  # people can always --disable-shared, the test was removed, and we
11877  # assume the GNU/Linux dynamic linker is in use.
11878  dynamic_linker='GNU/Linux ld.so'
11879  ;;
11880
11881netbsd*)
11882  version_type=sunos
11883  need_lib_prefix=no
11884  need_version=no
11885  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11886    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11887    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11888    dynamic_linker='NetBSD (a.out) ld.so'
11889  else
11890    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891    soname_spec='$libname$release$shared_ext$major'
11892    dynamic_linker='NetBSD ld.elf_so'
11893  fi
11894  shlibpath_var=LD_LIBRARY_PATH
11895  shlibpath_overrides_runpath=yes
11896  hardcode_into_libs=yes
11897  ;;
11898
11899newsos6)
11900  version_type=linux # correct to gnu/linux during the next big refactor
11901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902  shlibpath_var=LD_LIBRARY_PATH
11903  shlibpath_overrides_runpath=yes
11904  ;;
11905
11906*nto* | *qnx*)
11907  version_type=qnx
11908  need_lib_prefix=no
11909  need_version=no
11910  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11911  soname_spec='$libname$release$shared_ext$major'
11912  shlibpath_var=LD_LIBRARY_PATH
11913  shlibpath_overrides_runpath=no
11914  hardcode_into_libs=yes
11915  dynamic_linker='ldqnx.so'
11916  ;;
11917
11918openbsd* | bitrig*)
11919  version_type=sunos
11920  sys_lib_dlsearch_path_spec=/usr/lib
11921  need_lib_prefix=no
11922  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11923    need_version=no
11924  else
11925    need_version=yes
11926  fi
11927  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11928  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11929  shlibpath_var=LD_LIBRARY_PATH
11930  shlibpath_overrides_runpath=yes
11931  ;;
11932
11933os2*)
11934  libname_spec='$name'
11935  version_type=windows
11936  shrext_cmds=.dll
11937  need_version=no
11938  need_lib_prefix=no
11939  # OS/2 can only load a DLL with a base name of 8 characters or less.
11940  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11941    v=$($ECHO $release$versuffix | tr -d .-);
11942    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11943    $ECHO $n$v`$shared_ext'
11944  library_names_spec='${libname}_dll.$libext'
11945  dynamic_linker='OS/2 ld.exe'
11946  shlibpath_var=BEGINLIBPATH
11947  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11948  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11949  postinstall_cmds='base_file=`basename \$file`~
11950    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11951    dldir=$destdir/`dirname \$dlpath`~
11952    test -d \$dldir || mkdir -p \$dldir~
11953    $install_prog $dir/$dlname \$dldir/$dlname~
11954    chmod a+x \$dldir/$dlname~
11955    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11956      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11957    fi'
11958  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11959    dlpath=$dir/\$dldll~
11960    $RM \$dlpath'
11961  ;;
11962
11963osf3* | osf4* | osf5*)
11964  version_type=osf
11965  need_lib_prefix=no
11966  need_version=no
11967  soname_spec='$libname$release$shared_ext$major'
11968  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969  shlibpath_var=LD_LIBRARY_PATH
11970  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11971  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11972  ;;
11973
11974rdos*)
11975  dynamic_linker=no
11976  ;;
11977
11978solaris*)
11979  version_type=linux # correct to gnu/linux during the next big refactor
11980  need_lib_prefix=no
11981  need_version=no
11982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983  soname_spec='$libname$release$shared_ext$major'
11984  shlibpath_var=LD_LIBRARY_PATH
11985  shlibpath_overrides_runpath=yes
11986  hardcode_into_libs=yes
11987  # ldd complains unless libraries are executable
11988  postinstall_cmds='chmod +x $lib'
11989  ;;
11990
11991sunos4*)
11992  version_type=sunos
11993  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11994  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11995  shlibpath_var=LD_LIBRARY_PATH
11996  shlibpath_overrides_runpath=yes
11997  if test yes = "$with_gnu_ld"; then
11998    need_lib_prefix=no
11999  fi
12000  need_version=yes
12001  ;;
12002
12003sysv4 | sysv4.3*)
12004  version_type=linux # correct to gnu/linux during the next big refactor
12005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12006  soname_spec='$libname$release$shared_ext$major'
12007  shlibpath_var=LD_LIBRARY_PATH
12008  case $host_vendor in
12009    sni)
12010      shlibpath_overrides_runpath=no
12011      need_lib_prefix=no
12012      runpath_var=LD_RUN_PATH
12013      ;;
12014    siemens)
12015      need_lib_prefix=no
12016      ;;
12017    motorola)
12018      need_lib_prefix=no
12019      need_version=no
12020      shlibpath_overrides_runpath=no
12021      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12022      ;;
12023  esac
12024  ;;
12025
12026sysv4*MP*)
12027  if test -d /usr/nec; then
12028    version_type=linux # correct to gnu/linux during the next big refactor
12029    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12030    soname_spec='$libname$shared_ext.$major'
12031    shlibpath_var=LD_LIBRARY_PATH
12032  fi
12033  ;;
12034
12035sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12036  version_type=sco
12037  need_lib_prefix=no
12038  need_version=no
12039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12040  soname_spec='$libname$release$shared_ext$major'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  shlibpath_overrides_runpath=yes
12043  hardcode_into_libs=yes
12044  if test yes = "$with_gnu_ld"; then
12045    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12046  else
12047    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12048    case $host_os in
12049      sco3.2v5*)
12050        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12051	;;
12052    esac
12053  fi
12054  sys_lib_dlsearch_path_spec='/usr/lib'
12055  ;;
12056
12057tpf*)
12058  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12059  version_type=linux # correct to gnu/linux during the next big refactor
12060  need_lib_prefix=no
12061  need_version=no
12062  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063  shlibpath_var=LD_LIBRARY_PATH
12064  shlibpath_overrides_runpath=no
12065  hardcode_into_libs=yes
12066  ;;
12067
12068uts4*)
12069  version_type=linux # correct to gnu/linux during the next big refactor
12070  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071  soname_spec='$libname$release$shared_ext$major'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  ;;
12074
12075*)
12076  dynamic_linker=no
12077  ;;
12078esac
12079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12080printf "%s\n" "$dynamic_linker" >&6; }
12081test no = "$dynamic_linker" && can_build_shared=no
12082
12083variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12084if test yes = "$GCC"; then
12085  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12086fi
12087
12088if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12089  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12090fi
12091
12092if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12093  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12094fi
12095
12096# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12097configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12098
12099# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12100func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12101
12102# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12103configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12202printf %s "checking how to hardcode library paths into programs... " >&6; }
12203hardcode_action=
12204if test -n "$hardcode_libdir_flag_spec" ||
12205   test -n "$runpath_var" ||
12206   test yes = "$hardcode_automatic"; then
12207
12208  # We can hardcode non-existent directories.
12209  if test no != "$hardcode_direct" &&
12210     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12211     # have to relink, otherwise we might link with an installed library
12212     # when we should be linking with a yet-to-be-installed one
12213     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12214     test no != "$hardcode_minus_L"; then
12215    # Linking always hardcodes the temporary library directory.
12216    hardcode_action=relink
12217  else
12218    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12219    hardcode_action=immediate
12220  fi
12221else
12222  # We cannot hardcode anything, or else we can only hardcode existing
12223  # directories.
12224  hardcode_action=unsupported
12225fi
12226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12227printf "%s\n" "$hardcode_action" >&6; }
12228
12229if test relink = "$hardcode_action" ||
12230   test yes = "$inherit_rpath"; then
12231  # Fast installation is not supported
12232  enable_fast_install=no
12233elif test yes = "$shlibpath_overrides_runpath" ||
12234     test no = "$enable_shared"; then
12235  # Fast installation is not necessary
12236  enable_fast_install=needless
12237fi
12238
12239
12240
12241
12242
12243
12244  if test yes != "$enable_dlopen"; then
12245  enable_dlopen=unknown
12246  enable_dlopen_self=unknown
12247  enable_dlopen_self_static=unknown
12248else
12249  lt_cv_dlopen=no
12250  lt_cv_dlopen_libs=
12251
12252  case $host_os in
12253  beos*)
12254    lt_cv_dlopen=load_add_on
12255    lt_cv_dlopen_libs=
12256    lt_cv_dlopen_self=yes
12257    ;;
12258
12259  mingw* | pw32* | cegcc*)
12260    lt_cv_dlopen=LoadLibrary
12261    lt_cv_dlopen_libs=
12262    ;;
12263
12264  cygwin*)
12265    lt_cv_dlopen=dlopen
12266    lt_cv_dlopen_libs=
12267    ;;
12268
12269  darwin*)
12270    # if libdl is installed we need to link against it
12271    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12272printf %s "checking for dlopen in -ldl... " >&6; }
12273if test ${ac_cv_lib_dl_dlopen+y}
12274then :
12275  printf %s "(cached) " >&6
12276else $as_nop
12277  ac_check_lib_save_LIBS=$LIBS
12278LIBS="-ldl  $LIBS"
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h.  */
12281
12282/* Override any GCC internal prototype to avoid an error.
12283   Use char because int might match the return type of a GCC
12284   builtin and then its argument prototype would still apply.  */
12285char dlopen ();
12286int
12287main (void)
12288{
12289return dlopen ();
12290  ;
12291  return 0;
12292}
12293_ACEOF
12294if ac_fn_c_try_link "$LINENO"
12295then :
12296  ac_cv_lib_dl_dlopen=yes
12297else $as_nop
12298  ac_cv_lib_dl_dlopen=no
12299fi
12300rm -f core conftest.err conftest.$ac_objext conftest.beam \
12301    conftest$ac_exeext conftest.$ac_ext
12302LIBS=$ac_check_lib_save_LIBS
12303fi
12304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12305printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12306if test "x$ac_cv_lib_dl_dlopen" = xyes
12307then :
12308  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12309else $as_nop
12310
12311    lt_cv_dlopen=dyld
12312    lt_cv_dlopen_libs=
12313    lt_cv_dlopen_self=yes
12314
12315fi
12316
12317    ;;
12318
12319  tpf*)
12320    # Don't try to run any link tests for TPF.  We know it's impossible
12321    # because TPF is a cross-compiler, and we know how we open DSOs.
12322    lt_cv_dlopen=dlopen
12323    lt_cv_dlopen_libs=
12324    lt_cv_dlopen_self=no
12325    ;;
12326
12327  *)
12328    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12329if test "x$ac_cv_func_shl_load" = xyes
12330then :
12331  lt_cv_dlopen=shl_load
12332else $as_nop
12333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12334printf %s "checking for shl_load in -ldld... " >&6; }
12335if test ${ac_cv_lib_dld_shl_load+y}
12336then :
12337  printf %s "(cached) " >&6
12338else $as_nop
12339  ac_check_lib_save_LIBS=$LIBS
12340LIBS="-ldld  $LIBS"
12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h.  */
12343
12344/* Override any GCC internal prototype to avoid an error.
12345   Use char because int might match the return type of a GCC
12346   builtin and then its argument prototype would still apply.  */
12347char shl_load ();
12348int
12349main (void)
12350{
12351return shl_load ();
12352  ;
12353  return 0;
12354}
12355_ACEOF
12356if ac_fn_c_try_link "$LINENO"
12357then :
12358  ac_cv_lib_dld_shl_load=yes
12359else $as_nop
12360  ac_cv_lib_dld_shl_load=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.beam \
12363    conftest$ac_exeext conftest.$ac_ext
12364LIBS=$ac_check_lib_save_LIBS
12365fi
12366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12367printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12368if test "x$ac_cv_lib_dld_shl_load" = xyes
12369then :
12370  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12371else $as_nop
12372  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12373if test "x$ac_cv_func_dlopen" = xyes
12374then :
12375  lt_cv_dlopen=dlopen
12376else $as_nop
12377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12378printf %s "checking for dlopen in -ldl... " >&6; }
12379if test ${ac_cv_lib_dl_dlopen+y}
12380then :
12381  printf %s "(cached) " >&6
12382else $as_nop
12383  ac_check_lib_save_LIBS=$LIBS
12384LIBS="-ldl  $LIBS"
12385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386/* end confdefs.h.  */
12387
12388/* Override any GCC internal prototype to avoid an error.
12389   Use char because int might match the return type of a GCC
12390   builtin and then its argument prototype would still apply.  */
12391char dlopen ();
12392int
12393main (void)
12394{
12395return dlopen ();
12396  ;
12397  return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_link "$LINENO"
12401then :
12402  ac_cv_lib_dl_dlopen=yes
12403else $as_nop
12404  ac_cv_lib_dl_dlopen=no
12405fi
12406rm -f core conftest.err conftest.$ac_objext conftest.beam \
12407    conftest$ac_exeext conftest.$ac_ext
12408LIBS=$ac_check_lib_save_LIBS
12409fi
12410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12411printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12412if test "x$ac_cv_lib_dl_dlopen" = xyes
12413then :
12414  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12415else $as_nop
12416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12417printf %s "checking for dlopen in -lsvld... " >&6; }
12418if test ${ac_cv_lib_svld_dlopen+y}
12419then :
12420  printf %s "(cached) " >&6
12421else $as_nop
12422  ac_check_lib_save_LIBS=$LIBS
12423LIBS="-lsvld  $LIBS"
12424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425/* end confdefs.h.  */
12426
12427/* Override any GCC internal prototype to avoid an error.
12428   Use char because int might match the return type of a GCC
12429   builtin and then its argument prototype would still apply.  */
12430char dlopen ();
12431int
12432main (void)
12433{
12434return dlopen ();
12435  ;
12436  return 0;
12437}
12438_ACEOF
12439if ac_fn_c_try_link "$LINENO"
12440then :
12441  ac_cv_lib_svld_dlopen=yes
12442else $as_nop
12443  ac_cv_lib_svld_dlopen=no
12444fi
12445rm -f core conftest.err conftest.$ac_objext conftest.beam \
12446    conftest$ac_exeext conftest.$ac_ext
12447LIBS=$ac_check_lib_save_LIBS
12448fi
12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12450printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12451if test "x$ac_cv_lib_svld_dlopen" = xyes
12452then :
12453  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12454else $as_nop
12455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12456printf %s "checking for dld_link in -ldld... " >&6; }
12457if test ${ac_cv_lib_dld_dld_link+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 dld_link ();
12470int
12471main (void)
12472{
12473return dld_link ();
12474  ;
12475  return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_link "$LINENO"
12479then :
12480  ac_cv_lib_dld_dld_link=yes
12481else $as_nop
12482  ac_cv_lib_dld_dld_link=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_dld_link" >&5
12489printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12490if test "x$ac_cv_lib_dld_dld_link" = xyes
12491then :
12492  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12493fi
12494
12495
12496fi
12497
12498
12499fi
12500
12501
12502fi
12503
12504
12505fi
12506
12507
12508fi
12509
12510    ;;
12511  esac
12512
12513  if test no = "$lt_cv_dlopen"; then
12514    enable_dlopen=no
12515  else
12516    enable_dlopen=yes
12517  fi
12518
12519  case $lt_cv_dlopen in
12520  dlopen)
12521    save_CPPFLAGS=$CPPFLAGS
12522    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12523
12524    save_LDFLAGS=$LDFLAGS
12525    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12526
12527    save_LIBS=$LIBS
12528    LIBS="$lt_cv_dlopen_libs $LIBS"
12529
12530    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12531printf %s "checking whether a program can dlopen itself... " >&6; }
12532if test ${lt_cv_dlopen_self+y}
12533then :
12534  printf %s "(cached) " >&6
12535else $as_nop
12536  	  if test yes = "$cross_compiling"; then :
12537  lt_cv_dlopen_self=cross
12538else
12539  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12540  lt_status=$lt_dlunknown
12541  cat > conftest.$ac_ext <<_LT_EOF
12542#line $LINENO "configure"
12543#include "confdefs.h"
12544
12545#if HAVE_DLFCN_H
12546#include <dlfcn.h>
12547#endif
12548
12549#include <stdio.h>
12550
12551#ifdef RTLD_GLOBAL
12552#  define LT_DLGLOBAL		RTLD_GLOBAL
12553#else
12554#  ifdef DL_GLOBAL
12555#    define LT_DLGLOBAL		DL_GLOBAL
12556#  else
12557#    define LT_DLGLOBAL		0
12558#  endif
12559#endif
12560
12561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12562   find out it does not work in some platform. */
12563#ifndef LT_DLLAZY_OR_NOW
12564#  ifdef RTLD_LAZY
12565#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12566#  else
12567#    ifdef DL_LAZY
12568#      define LT_DLLAZY_OR_NOW		DL_LAZY
12569#    else
12570#      ifdef RTLD_NOW
12571#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12572#      else
12573#        ifdef DL_NOW
12574#          define LT_DLLAZY_OR_NOW	DL_NOW
12575#        else
12576#          define LT_DLLAZY_OR_NOW	0
12577#        endif
12578#      endif
12579#    endif
12580#  endif
12581#endif
12582
12583/* When -fvisibility=hidden is used, assume the code has been annotated
12584   correspondingly for the symbols needed.  */
12585#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12586int fnord () __attribute__((visibility("default")));
12587#endif
12588
12589int fnord () { return 42; }
12590int main ()
12591{
12592  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12593  int status = $lt_dlunknown;
12594
12595  if (self)
12596    {
12597      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12598      else
12599        {
12600	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12601          else puts (dlerror ());
12602	}
12603      /* dlclose (self); */
12604    }
12605  else
12606    puts (dlerror ());
12607
12608  return status;
12609}
12610_LT_EOF
12611  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12612  (eval $ac_link) 2>&5
12613  ac_status=$?
12614  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12616    (./conftest; exit; ) >&5 2>/dev/null
12617    lt_status=$?
12618    case x$lt_status in
12619      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12620      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12621      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12622    esac
12623  else :
12624    # compilation failed
12625    lt_cv_dlopen_self=no
12626  fi
12627fi
12628rm -fr conftest*
12629
12630
12631fi
12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12633printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12634
12635    if test yes = "$lt_cv_dlopen_self"; then
12636      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12638printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12639if test ${lt_cv_dlopen_self_static+y}
12640then :
12641  printf %s "(cached) " >&6
12642else $as_nop
12643  	  if test yes = "$cross_compiling"; then :
12644  lt_cv_dlopen_self_static=cross
12645else
12646  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12647  lt_status=$lt_dlunknown
12648  cat > conftest.$ac_ext <<_LT_EOF
12649#line $LINENO "configure"
12650#include "confdefs.h"
12651
12652#if HAVE_DLFCN_H
12653#include <dlfcn.h>
12654#endif
12655
12656#include <stdio.h>
12657
12658#ifdef RTLD_GLOBAL
12659#  define LT_DLGLOBAL		RTLD_GLOBAL
12660#else
12661#  ifdef DL_GLOBAL
12662#    define LT_DLGLOBAL		DL_GLOBAL
12663#  else
12664#    define LT_DLGLOBAL		0
12665#  endif
12666#endif
12667
12668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12669   find out it does not work in some platform. */
12670#ifndef LT_DLLAZY_OR_NOW
12671#  ifdef RTLD_LAZY
12672#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12673#  else
12674#    ifdef DL_LAZY
12675#      define LT_DLLAZY_OR_NOW		DL_LAZY
12676#    else
12677#      ifdef RTLD_NOW
12678#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12679#      else
12680#        ifdef DL_NOW
12681#          define LT_DLLAZY_OR_NOW	DL_NOW
12682#        else
12683#          define LT_DLLAZY_OR_NOW	0
12684#        endif
12685#      endif
12686#    endif
12687#  endif
12688#endif
12689
12690/* When -fvisibility=hidden is used, assume the code has been annotated
12691   correspondingly for the symbols needed.  */
12692#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12693int fnord () __attribute__((visibility("default")));
12694#endif
12695
12696int fnord () { return 42; }
12697int main ()
12698{
12699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12700  int status = $lt_dlunknown;
12701
12702  if (self)
12703    {
12704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12705      else
12706        {
12707	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12708          else puts (dlerror ());
12709	}
12710      /* dlclose (self); */
12711    }
12712  else
12713    puts (dlerror ());
12714
12715  return status;
12716}
12717_LT_EOF
12718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12719  (eval $ac_link) 2>&5
12720  ac_status=$?
12721  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12723    (./conftest; exit; ) >&5 2>/dev/null
12724    lt_status=$?
12725    case x$lt_status in
12726      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12727      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12728      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12729    esac
12730  else :
12731    # compilation failed
12732    lt_cv_dlopen_self_static=no
12733  fi
12734fi
12735rm -fr conftest*
12736
12737
12738fi
12739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12740printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12741    fi
12742
12743    CPPFLAGS=$save_CPPFLAGS
12744    LDFLAGS=$save_LDFLAGS
12745    LIBS=$save_LIBS
12746    ;;
12747  esac
12748
12749  case $lt_cv_dlopen_self in
12750  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12751  *) enable_dlopen_self=unknown ;;
12752  esac
12753
12754  case $lt_cv_dlopen_self_static in
12755  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12756  *) enable_dlopen_self_static=unknown ;;
12757  esac
12758fi
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776striplib=
12777old_striplib=
12778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12779printf %s "checking whether stripping libraries is possible... " >&6; }
12780if test -z "$STRIP"; then
12781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782printf "%s\n" "no" >&6; }
12783else
12784  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12785    old_striplib="$STRIP --strip-debug"
12786    striplib="$STRIP --strip-unneeded"
12787    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788printf "%s\n" "yes" >&6; }
12789  else
12790    case $host_os in
12791    darwin*)
12792      # FIXME - insert some real tests, host_os isn't really good enough
12793      striplib="$STRIP -x"
12794      old_striplib="$STRIP -S"
12795      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796printf "%s\n" "yes" >&6; }
12797      ;;
12798    freebsd*)
12799      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12800        old_striplib="$STRIP --strip-debug"
12801        striplib="$STRIP --strip-unneeded"
12802        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12803printf "%s\n" "yes" >&6; }
12804      else
12805        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806printf "%s\n" "no" >&6; }
12807      fi
12808      ;;
12809    *)
12810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811printf "%s\n" "no" >&6; }
12812      ;;
12813    esac
12814  fi
12815fi
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828  # Report what library types will actually be built
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12830printf %s "checking if libtool supports shared libraries... " >&6; }
12831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12832printf "%s\n" "$can_build_shared" >&6; }
12833
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12835printf %s "checking whether to build shared libraries... " >&6; }
12836  test no = "$can_build_shared" && enable_shared=no
12837
12838  # On AIX, shared libraries and static libraries use the same namespace, and
12839  # are all built from PIC.
12840  case $host_os in
12841  aix3*)
12842    test yes = "$enable_shared" && enable_static=no
12843    if test -n "$RANLIB"; then
12844      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12845      postinstall_cmds='$RANLIB $lib'
12846    fi
12847    ;;
12848
12849  aix[4-9]*)
12850    if test ia64 != "$host_cpu"; then
12851      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12852      yes,aix,yes) ;;			# shared object as lib.so file only
12853      yes,svr4,*) ;;			# shared object as lib.so archive member only
12854      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12855      esac
12856    fi
12857    ;;
12858  esac
12859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12860printf "%s\n" "$enable_shared" >&6; }
12861
12862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12863printf %s "checking whether to build static libraries... " >&6; }
12864  # Make sure either enable_shared or enable_static is yes.
12865  test yes = "$enable_shared" || enable_static=yes
12866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12867printf "%s\n" "$enable_static" >&6; }
12868
12869
12870
12871
12872fi
12873ac_ext=c
12874ac_cpp='$CPP $CPPFLAGS'
12875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879CC=$lt_save_CC
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895        ac_config_commands="$ac_config_commands libtool"
12896
12897
12898
12899
12900# Only expand once:
12901
12902
12903
12904# Require xorg-macros minimum of 1.12 for DocBook external references
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12918printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12919if test ${ac_cv_c_undeclared_builtin_options+y}
12920then :
12921  printf %s "(cached) " >&6
12922else $as_nop
12923  ac_save_CFLAGS=$CFLAGS
12924   ac_cv_c_undeclared_builtin_options='cannot detect'
12925   for ac_arg in '' -fno-builtin; do
12926     CFLAGS="$ac_save_CFLAGS $ac_arg"
12927     # This test program should *not* compile successfully.
12928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930
12931int
12932main (void)
12933{
12934(void) strchr;
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_compile "$LINENO"
12940then :
12941
12942else $as_nop
12943  # This test program should compile successfully.
12944        # No library function is consistently available on
12945        # freestanding implementations, so test against a dummy
12946        # declaration.  Include always-available headers on the
12947        # off chance that they somehow elicit warnings.
12948        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949/* end confdefs.h.  */
12950#include <float.h>
12951#include <limits.h>
12952#include <stdarg.h>
12953#include <stddef.h>
12954extern void ac_decl (int, char *);
12955
12956int
12957main (void)
12958{
12959(void) ac_decl (0, (char *) 0);
12960  (void) ac_decl;
12961
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_compile "$LINENO"
12967then :
12968  if test x"$ac_arg" = x
12969then :
12970  ac_cv_c_undeclared_builtin_options='none needed'
12971else $as_nop
12972  ac_cv_c_undeclared_builtin_options=$ac_arg
12973fi
12974          break
12975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12977fi
12978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12979    done
12980    CFLAGS=$ac_save_CFLAGS
12981
12982fi
12983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12984printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12985  case $ac_cv_c_undeclared_builtin_options in #(
12986  'cannot detect') :
12987    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12988printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12989as_fn_error $? "cannot make $CC report undeclared builtins
12990See \`config.log' for more details" "$LINENO" 5; } ;; #(
12991  'none needed') :
12992    ac_c_undeclared_builtin_options='' ;; #(
12993  *) :
12994    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12995esac
12996
12997
12998
12999
13000
13001ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13002if test "x$ac_cv_have_decl___clang__" = xyes
13003then :
13004  CLANGCC="yes"
13005else $as_nop
13006  CLANGCC="no"
13007fi
13008ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13009if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13010then :
13011  INTELCC="yes"
13012else $as_nop
13013  INTELCC="no"
13014fi
13015ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13016if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13017then :
13018  SUNCC="yes"
13019else $as_nop
13020  SUNCC="no"
13021fi
13022
13023
13024
13025
13026
13027
13028
13029
13030if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13031	if test -n "$ac_tool_prefix"; then
13032  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13033set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035printf %s "checking for $ac_word... " >&6; }
13036if test ${ac_cv_path_PKG_CONFIG+y}
13037then :
13038  printf %s "(cached) " >&6
13039else $as_nop
13040  case $PKG_CONFIG in
13041  [\\/]* | ?:[\\/]*)
13042  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13043  ;;
13044  *)
13045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046for as_dir in $PATH
13047do
13048  IFS=$as_save_IFS
13049  case $as_dir in #(((
13050    '') as_dir=./ ;;
13051    */) ;;
13052    *) as_dir=$as_dir/ ;;
13053  esac
13054    for ac_exec_ext in '' $ac_executable_extensions; do
13055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13056    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13058    break 2
13059  fi
13060done
13061  done
13062IFS=$as_save_IFS
13063
13064  ;;
13065esac
13066fi
13067PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13068if test -n "$PKG_CONFIG"; then
13069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13070printf "%s\n" "$PKG_CONFIG" >&6; }
13071else
13072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073printf "%s\n" "no" >&6; }
13074fi
13075
13076
13077fi
13078if test -z "$ac_cv_path_PKG_CONFIG"; then
13079  ac_pt_PKG_CONFIG=$PKG_CONFIG
13080  # Extract the first word of "pkg-config", so it can be a program name with args.
13081set dummy pkg-config; ac_word=$2
13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083printf %s "checking for $ac_word... " >&6; }
13084if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13085then :
13086  printf %s "(cached) " >&6
13087else $as_nop
13088  case $ac_pt_PKG_CONFIG in
13089  [\\/]* | ?:[\\/]*)
13090  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13091  ;;
13092  *)
13093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094for as_dir in $PATH
13095do
13096  IFS=$as_save_IFS
13097  case $as_dir in #(((
13098    '') as_dir=./ ;;
13099    */) ;;
13100    *) as_dir=$as_dir/ ;;
13101  esac
13102    for ac_exec_ext in '' $ac_executable_extensions; do
13103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13104    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13106    break 2
13107  fi
13108done
13109  done
13110IFS=$as_save_IFS
13111
13112  ;;
13113esac
13114fi
13115ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13116if test -n "$ac_pt_PKG_CONFIG"; then
13117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13118printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13119else
13120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121printf "%s\n" "no" >&6; }
13122fi
13123
13124  if test "x$ac_pt_PKG_CONFIG" = x; then
13125    PKG_CONFIG=""
13126  else
13127    case $cross_compiling:$ac_tool_warned in
13128yes:)
13129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131ac_tool_warned=yes ;;
13132esac
13133    PKG_CONFIG=$ac_pt_PKG_CONFIG
13134  fi
13135else
13136  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13137fi
13138
13139fi
13140if test -n "$PKG_CONFIG"; then
13141	_pkg_min_version=0.9.0
13142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13143printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13144	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146printf "%s\n" "yes" >&6; }
13147	else
13148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149printf "%s\n" "no" >&6; }
13150		PKG_CONFIG=""
13151	fi
13152fi
13153
13154
13155
13156
13157
13158# Check whether --enable-selective-werror was given.
13159if test ${enable_selective_werror+y}
13160then :
13161  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13162else $as_nop
13163  SELECTIVE_WERROR=yes
13164fi
13165
13166
13167
13168
13169
13170# -v is too short to test reliably with XORG_TESTSET_CFLAG
13171if test "x$SUNCC" = "xyes"; then
13172    BASE_CFLAGS="-v"
13173else
13174    BASE_CFLAGS=""
13175fi
13176
13177# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191xorg_testset_save_CFLAGS="$CFLAGS"
13192
13193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13198then :
13199  printf %s "(cached) " >&6
13200else $as_nop
13201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h.  */
13203int i;
13204_ACEOF
13205if ac_fn_c_try_compile "$LINENO"
13206then :
13207  xorg_cv_cc_flag_unknown_warning_option=yes
13208else $as_nop
13209  xorg_cv_cc_flag_unknown_warning_option=no
13210fi
13211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13212fi
13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13216	CFLAGS="$xorg_testset_save_CFLAGS"
13217fi
13218
13219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222	fi
13223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13227then :
13228  printf %s "(cached) " >&6
13229else $as_nop
13230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232int i;
13233_ACEOF
13234if ac_fn_c_try_compile "$LINENO"
13235then :
13236  xorg_cv_cc_flag_unused_command_line_argument=yes
13237else $as_nop
13238  xorg_cv_cc_flag_unused_command_line_argument=no
13239fi
13240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13241fi
13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13245	CFLAGS="$xorg_testset_save_CFLAGS"
13246fi
13247
13248found="no"
13249
13250	if test $found = "no" ; then
13251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13253		fi
13254
13255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257		fi
13258
13259		CFLAGS="$CFLAGS -Wall"
13260
13261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13262printf %s "checking if $CC supports -Wall... " >&6; }
13263		cacheid=xorg_cv_cc_flag__Wall
13264		if eval test \${$cacheid+y}
13265then :
13266  printf %s "(cached) " >&6
13267else $as_nop
13268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269/* end confdefs.h.  */
13270int i;
13271int
13272main (void)
13273{
13274
13275  ;
13276  return 0;
13277}
13278_ACEOF
13279if ac_fn_c_try_link "$LINENO"
13280then :
13281  eval $cacheid=yes
13282else $as_nop
13283  eval $cacheid=no
13284fi
13285rm -f core conftest.err conftest.$ac_objext conftest.beam \
13286    conftest$ac_exeext conftest.$ac_ext
13287fi
13288
13289
13290		CFLAGS="$xorg_testset_save_CFLAGS"
13291
13292		eval supported=\$$cacheid
13293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13294printf "%s\n" "$supported" >&6; }
13295		if test "$supported" = "yes" ; then
13296			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13297			found="yes"
13298		fi
13299	fi
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315xorg_testset_save_CFLAGS="$CFLAGS"
13316
13317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13322then :
13323  printf %s "(cached) " >&6
13324else $as_nop
13325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326/* end confdefs.h.  */
13327int i;
13328_ACEOF
13329if ac_fn_c_try_compile "$LINENO"
13330then :
13331  xorg_cv_cc_flag_unknown_warning_option=yes
13332else $as_nop
13333  xorg_cv_cc_flag_unknown_warning_option=no
13334fi
13335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13336fi
13337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13340	CFLAGS="$xorg_testset_save_CFLAGS"
13341fi
13342
13343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13346	fi
13347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13351then :
13352  printf %s "(cached) " >&6
13353else $as_nop
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356int i;
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"
13359then :
13360  xorg_cv_cc_flag_unused_command_line_argument=yes
13361else $as_nop
13362  xorg_cv_cc_flag_unused_command_line_argument=no
13363fi
13364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13365fi
13366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369	CFLAGS="$xorg_testset_save_CFLAGS"
13370fi
13371
13372found="no"
13373
13374	if test $found = "no" ; then
13375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377		fi
13378
13379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381		fi
13382
13383		CFLAGS="$CFLAGS -Wpointer-arith"
13384
13385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13386printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13387		cacheid=xorg_cv_cc_flag__Wpointer_arith
13388		if eval test \${$cacheid+y}
13389then :
13390  printf %s "(cached) " >&6
13391else $as_nop
13392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394int i;
13395int
13396main (void)
13397{
13398
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_link "$LINENO"
13404then :
13405  eval $cacheid=yes
13406else $as_nop
13407  eval $cacheid=no
13408fi
13409rm -f core conftest.err conftest.$ac_objext conftest.beam \
13410    conftest$ac_exeext conftest.$ac_ext
13411fi
13412
13413
13414		CFLAGS="$xorg_testset_save_CFLAGS"
13415
13416		eval supported=\$$cacheid
13417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418printf "%s\n" "$supported" >&6; }
13419		if test "$supported" = "yes" ; then
13420			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13421			found="yes"
13422		fi
13423	fi
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439xorg_testset_save_CFLAGS="$CFLAGS"
13440
13441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13445if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13446then :
13447  printf %s "(cached) " >&6
13448else $as_nop
13449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450/* end confdefs.h.  */
13451int i;
13452_ACEOF
13453if ac_fn_c_try_compile "$LINENO"
13454then :
13455  xorg_cv_cc_flag_unknown_warning_option=yes
13456else $as_nop
13457  xorg_cv_cc_flag_unknown_warning_option=no
13458fi
13459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13460fi
13461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13464	CFLAGS="$xorg_testset_save_CFLAGS"
13465fi
13466
13467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13470	fi
13471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13475then :
13476  printf %s "(cached) " >&6
13477else $as_nop
13478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480int i;
13481_ACEOF
13482if ac_fn_c_try_compile "$LINENO"
13483then :
13484  xorg_cv_cc_flag_unused_command_line_argument=yes
13485else $as_nop
13486  xorg_cv_cc_flag_unused_command_line_argument=no
13487fi
13488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13489fi
13490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13493	CFLAGS="$xorg_testset_save_CFLAGS"
13494fi
13495
13496found="no"
13497
13498	if test $found = "no" ; then
13499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501		fi
13502
13503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505		fi
13506
13507		CFLAGS="$CFLAGS -Wmissing-declarations"
13508
13509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13510printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13511		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13512		if eval test \${$cacheid+y}
13513then :
13514  printf %s "(cached) " >&6
13515else $as_nop
13516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518int i;
13519int
13520main (void)
13521{
13522
13523  ;
13524  return 0;
13525}
13526_ACEOF
13527if ac_fn_c_try_link "$LINENO"
13528then :
13529  eval $cacheid=yes
13530else $as_nop
13531  eval $cacheid=no
13532fi
13533rm -f core conftest.err conftest.$ac_objext conftest.beam \
13534    conftest$ac_exeext conftest.$ac_ext
13535fi
13536
13537
13538		CFLAGS="$xorg_testset_save_CFLAGS"
13539
13540		eval supported=\$$cacheid
13541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13542printf "%s\n" "$supported" >&6; }
13543		if test "$supported" = "yes" ; then
13544			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13545			found="yes"
13546		fi
13547	fi
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563xorg_testset_save_CFLAGS="$CFLAGS"
13564
13565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13570then :
13571  printf %s "(cached) " >&6
13572else $as_nop
13573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574/* end confdefs.h.  */
13575int i;
13576_ACEOF
13577if ac_fn_c_try_compile "$LINENO"
13578then :
13579  xorg_cv_cc_flag_unknown_warning_option=yes
13580else $as_nop
13581  xorg_cv_cc_flag_unknown_warning_option=no
13582fi
13583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13584fi
13585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13588	CFLAGS="$xorg_testset_save_CFLAGS"
13589fi
13590
13591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594	fi
13595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13599then :
13600  printf %s "(cached) " >&6
13601else $as_nop
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604int i;
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"
13607then :
13608  xorg_cv_cc_flag_unused_command_line_argument=yes
13609else $as_nop
13610  xorg_cv_cc_flag_unused_command_line_argument=no
13611fi
13612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13613fi
13614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13617	CFLAGS="$xorg_testset_save_CFLAGS"
13618fi
13619
13620found="no"
13621
13622	if test $found = "no" ; then
13623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13625		fi
13626
13627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629		fi
13630
13631		CFLAGS="$CFLAGS -Wformat=2"
13632
13633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13634printf %s "checking if $CC supports -Wformat=2... " >&6; }
13635		cacheid=xorg_cv_cc_flag__Wformat_2
13636		if eval test \${$cacheid+y}
13637then :
13638  printf %s "(cached) " >&6
13639else $as_nop
13640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h.  */
13642int i;
13643int
13644main (void)
13645{
13646
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_link "$LINENO"
13652then :
13653  eval $cacheid=yes
13654else $as_nop
13655  eval $cacheid=no
13656fi
13657rm -f core conftest.err conftest.$ac_objext conftest.beam \
13658    conftest$ac_exeext conftest.$ac_ext
13659fi
13660
13661
13662		CFLAGS="$xorg_testset_save_CFLAGS"
13663
13664		eval supported=\$$cacheid
13665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13666printf "%s\n" "$supported" >&6; }
13667		if test "$supported" = "yes" ; then
13668			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13669			found="yes"
13670		fi
13671	fi
13672
13673	if test $found = "no" ; then
13674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13676		fi
13677
13678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13680		fi
13681
13682		CFLAGS="$CFLAGS -Wformat"
13683
13684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13685printf %s "checking if $CC supports -Wformat... " >&6; }
13686		cacheid=xorg_cv_cc_flag__Wformat
13687		if eval test \${$cacheid+y}
13688then :
13689  printf %s "(cached) " >&6
13690else $as_nop
13691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h.  */
13693int i;
13694int
13695main (void)
13696{
13697
13698  ;
13699  return 0;
13700}
13701_ACEOF
13702if ac_fn_c_try_link "$LINENO"
13703then :
13704  eval $cacheid=yes
13705else $as_nop
13706  eval $cacheid=no
13707fi
13708rm -f core conftest.err conftest.$ac_objext conftest.beam \
13709    conftest$ac_exeext conftest.$ac_ext
13710fi
13711
13712
13713		CFLAGS="$xorg_testset_save_CFLAGS"
13714
13715		eval supported=\$$cacheid
13716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13717printf "%s\n" "$supported" >&6; }
13718		if test "$supported" = "yes" ; then
13719			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13720			found="yes"
13721		fi
13722	fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740xorg_testset_save_CFLAGS="$CFLAGS"
13741
13742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13747then :
13748  printf %s "(cached) " >&6
13749else $as_nop
13750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751/* end confdefs.h.  */
13752int i;
13753_ACEOF
13754if ac_fn_c_try_compile "$LINENO"
13755then :
13756  xorg_cv_cc_flag_unknown_warning_option=yes
13757else $as_nop
13758  xorg_cv_cc_flag_unknown_warning_option=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13761fi
13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13765	CFLAGS="$xorg_testset_save_CFLAGS"
13766fi
13767
13768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771	fi
13772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13776then :
13777  printf %s "(cached) " >&6
13778else $as_nop
13779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780/* end confdefs.h.  */
13781int i;
13782_ACEOF
13783if ac_fn_c_try_compile "$LINENO"
13784then :
13785  xorg_cv_cc_flag_unused_command_line_argument=yes
13786else $as_nop
13787  xorg_cv_cc_flag_unused_command_line_argument=no
13788fi
13789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13790fi
13791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13794	CFLAGS="$xorg_testset_save_CFLAGS"
13795fi
13796
13797found="no"
13798
13799	if test $found = "no" ; then
13800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802		fi
13803
13804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806		fi
13807
13808		CFLAGS="$CFLAGS -Wstrict-prototypes"
13809
13810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13811printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13812		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13813		if eval test \${$cacheid+y}
13814then :
13815  printf %s "(cached) " >&6
13816else $as_nop
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819int i;
13820int
13821main (void)
13822{
13823
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_link "$LINENO"
13829then :
13830  eval $cacheid=yes
13831else $as_nop
13832  eval $cacheid=no
13833fi
13834rm -f core conftest.err conftest.$ac_objext conftest.beam \
13835    conftest$ac_exeext conftest.$ac_ext
13836fi
13837
13838
13839		CFLAGS="$xorg_testset_save_CFLAGS"
13840
13841		eval supported=\$$cacheid
13842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13843printf "%s\n" "$supported" >&6; }
13844		if test "$supported" = "yes" ; then
13845			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13846			found="yes"
13847		fi
13848	fi
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864xorg_testset_save_CFLAGS="$CFLAGS"
13865
13866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13871then :
13872  printf %s "(cached) " >&6
13873else $as_nop
13874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875/* end confdefs.h.  */
13876int i;
13877_ACEOF
13878if ac_fn_c_try_compile "$LINENO"
13879then :
13880  xorg_cv_cc_flag_unknown_warning_option=yes
13881else $as_nop
13882  xorg_cv_cc_flag_unknown_warning_option=no
13883fi
13884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885fi
13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13889	CFLAGS="$xorg_testset_save_CFLAGS"
13890fi
13891
13892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13895	fi
13896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13900then :
13901  printf %s "(cached) " >&6
13902else $as_nop
13903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h.  */
13905int i;
13906_ACEOF
13907if ac_fn_c_try_compile "$LINENO"
13908then :
13909  xorg_cv_cc_flag_unused_command_line_argument=yes
13910else $as_nop
13911  xorg_cv_cc_flag_unused_command_line_argument=no
13912fi
13913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13914fi
13915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13918	CFLAGS="$xorg_testset_save_CFLAGS"
13919fi
13920
13921found="no"
13922
13923	if test $found = "no" ; then
13924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926		fi
13927
13928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930		fi
13931
13932		CFLAGS="$CFLAGS -Wmissing-prototypes"
13933
13934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13935printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13936		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13937		if eval test \${$cacheid+y}
13938then :
13939  printf %s "(cached) " >&6
13940else $as_nop
13941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942/* end confdefs.h.  */
13943int i;
13944int
13945main (void)
13946{
13947
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_link "$LINENO"
13953then :
13954  eval $cacheid=yes
13955else $as_nop
13956  eval $cacheid=no
13957fi
13958rm -f core conftest.err conftest.$ac_objext conftest.beam \
13959    conftest$ac_exeext conftest.$ac_ext
13960fi
13961
13962
13963		CFLAGS="$xorg_testset_save_CFLAGS"
13964
13965		eval supported=\$$cacheid
13966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13967printf "%s\n" "$supported" >&6; }
13968		if test "$supported" = "yes" ; then
13969			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13970			found="yes"
13971		fi
13972	fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988xorg_testset_save_CFLAGS="$CFLAGS"
13989
13990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13994if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13995then :
13996  printf %s "(cached) " >&6
13997else $as_nop
13998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h.  */
14000int i;
14001_ACEOF
14002if ac_fn_c_try_compile "$LINENO"
14003then :
14004  xorg_cv_cc_flag_unknown_warning_option=yes
14005else $as_nop
14006  xorg_cv_cc_flag_unknown_warning_option=no
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14009fi
14010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14013	CFLAGS="$xorg_testset_save_CFLAGS"
14014fi
14015
14016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019	fi
14020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14024then :
14025  printf %s "(cached) " >&6
14026else $as_nop
14027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029int i;
14030_ACEOF
14031if ac_fn_c_try_compile "$LINENO"
14032then :
14033  xorg_cv_cc_flag_unused_command_line_argument=yes
14034else $as_nop
14035  xorg_cv_cc_flag_unused_command_line_argument=no
14036fi
14037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14038fi
14039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14042	CFLAGS="$xorg_testset_save_CFLAGS"
14043fi
14044
14045found="no"
14046
14047	if test $found = "no" ; then
14048		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050		fi
14051
14052		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054		fi
14055
14056		CFLAGS="$CFLAGS -Wnested-externs"
14057
14058		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14059printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14060		cacheid=xorg_cv_cc_flag__Wnested_externs
14061		if eval test \${$cacheid+y}
14062then :
14063  printf %s "(cached) " >&6
14064else $as_nop
14065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067int i;
14068int
14069main (void)
14070{
14071
14072  ;
14073  return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_link "$LINENO"
14077then :
14078  eval $cacheid=yes
14079else $as_nop
14080  eval $cacheid=no
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083    conftest$ac_exeext conftest.$ac_ext
14084fi
14085
14086
14087		CFLAGS="$xorg_testset_save_CFLAGS"
14088
14089		eval supported=\$$cacheid
14090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14091printf "%s\n" "$supported" >&6; }
14092		if test "$supported" = "yes" ; then
14093			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14094			found="yes"
14095		fi
14096	fi
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112xorg_testset_save_CFLAGS="$CFLAGS"
14113
14114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14117printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14118if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14119then :
14120  printf %s "(cached) " >&6
14121else $as_nop
14122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123/* end confdefs.h.  */
14124int i;
14125_ACEOF
14126if ac_fn_c_try_compile "$LINENO"
14127then :
14128  xorg_cv_cc_flag_unknown_warning_option=yes
14129else $as_nop
14130  xorg_cv_cc_flag_unknown_warning_option=no
14131fi
14132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14133fi
14134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14135printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14137	CFLAGS="$xorg_testset_save_CFLAGS"
14138fi
14139
14140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143	fi
14144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14146printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14147if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14148then :
14149  printf %s "(cached) " >&6
14150else $as_nop
14151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h.  */
14153int i;
14154_ACEOF
14155if ac_fn_c_try_compile "$LINENO"
14156then :
14157  xorg_cv_cc_flag_unused_command_line_argument=yes
14158else $as_nop
14159  xorg_cv_cc_flag_unused_command_line_argument=no
14160fi
14161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14162fi
14163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14166	CFLAGS="$xorg_testset_save_CFLAGS"
14167fi
14168
14169found="no"
14170
14171	if test $found = "no" ; then
14172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174		fi
14175
14176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178		fi
14179
14180		CFLAGS="$CFLAGS -Wbad-function-cast"
14181
14182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14183printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14184		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14185		if eval test \${$cacheid+y}
14186then :
14187  printf %s "(cached) " >&6
14188else $as_nop
14189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190/* end confdefs.h.  */
14191int i;
14192int
14193main (void)
14194{
14195
14196  ;
14197  return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_link "$LINENO"
14201then :
14202  eval $cacheid=yes
14203else $as_nop
14204  eval $cacheid=no
14205fi
14206rm -f core conftest.err conftest.$ac_objext conftest.beam \
14207    conftest$ac_exeext conftest.$ac_ext
14208fi
14209
14210
14211		CFLAGS="$xorg_testset_save_CFLAGS"
14212
14213		eval supported=\$$cacheid
14214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14215printf "%s\n" "$supported" >&6; }
14216		if test "$supported" = "yes" ; then
14217			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14218			found="yes"
14219		fi
14220	fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236xorg_testset_save_CFLAGS="$CFLAGS"
14237
14238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14243then :
14244  printf %s "(cached) " >&6
14245else $as_nop
14246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247/* end confdefs.h.  */
14248int i;
14249_ACEOF
14250if ac_fn_c_try_compile "$LINENO"
14251then :
14252  xorg_cv_cc_flag_unknown_warning_option=yes
14253else $as_nop
14254  xorg_cv_cc_flag_unknown_warning_option=no
14255fi
14256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14257fi
14258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14261	CFLAGS="$xorg_testset_save_CFLAGS"
14262fi
14263
14264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14267	fi
14268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14272then :
14273  printf %s "(cached) " >&6
14274else $as_nop
14275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h.  */
14277int i;
14278_ACEOF
14279if ac_fn_c_try_compile "$LINENO"
14280then :
14281  xorg_cv_cc_flag_unused_command_line_argument=yes
14282else $as_nop
14283  xorg_cv_cc_flag_unused_command_line_argument=no
14284fi
14285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14286fi
14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14290	CFLAGS="$xorg_testset_save_CFLAGS"
14291fi
14292
14293found="no"
14294
14295	if test $found = "no" ; then
14296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14298		fi
14299
14300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14302		fi
14303
14304		CFLAGS="$CFLAGS -Wold-style-definition"
14305
14306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14307printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14308		cacheid=xorg_cv_cc_flag__Wold_style_definition
14309		if eval test \${$cacheid+y}
14310then :
14311  printf %s "(cached) " >&6
14312else $as_nop
14313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314/* end confdefs.h.  */
14315int i;
14316int
14317main (void)
14318{
14319
14320  ;
14321  return 0;
14322}
14323_ACEOF
14324if ac_fn_c_try_link "$LINENO"
14325then :
14326  eval $cacheid=yes
14327else $as_nop
14328  eval $cacheid=no
14329fi
14330rm -f core conftest.err conftest.$ac_objext conftest.beam \
14331    conftest$ac_exeext conftest.$ac_ext
14332fi
14333
14334
14335		CFLAGS="$xorg_testset_save_CFLAGS"
14336
14337		eval supported=\$$cacheid
14338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14339printf "%s\n" "$supported" >&6; }
14340		if test "$supported" = "yes" ; then
14341			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14342			found="yes"
14343		fi
14344	fi
14345
14346	if test $found = "no" ; then
14347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14349		fi
14350
14351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14353		fi
14354
14355		CFLAGS="$CFLAGS -fd"
14356
14357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14358printf %s "checking if $CC supports -fd... " >&6; }
14359		cacheid=xorg_cv_cc_flag__fd
14360		if eval test \${$cacheid+y}
14361then :
14362  printf %s "(cached) " >&6
14363else $as_nop
14364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365/* end confdefs.h.  */
14366int i;
14367int
14368main (void)
14369{
14370
14371  ;
14372  return 0;
14373}
14374_ACEOF
14375if ac_fn_c_try_link "$LINENO"
14376then :
14377  eval $cacheid=yes
14378else $as_nop
14379  eval $cacheid=no
14380fi
14381rm -f core conftest.err conftest.$ac_objext conftest.beam \
14382    conftest$ac_exeext conftest.$ac_ext
14383fi
14384
14385
14386		CFLAGS="$xorg_testset_save_CFLAGS"
14387
14388		eval supported=\$$cacheid
14389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14390printf "%s\n" "$supported" >&6; }
14391		if test "$supported" = "yes" ; then
14392			BASE_CFLAGS="$BASE_CFLAGS -fd"
14393			found="yes"
14394		fi
14395	fi
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411xorg_testset_save_CFLAGS="$CFLAGS"
14412
14413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14417if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14418then :
14419  printf %s "(cached) " >&6
14420else $as_nop
14421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h.  */
14423int i;
14424_ACEOF
14425if ac_fn_c_try_compile "$LINENO"
14426then :
14427  xorg_cv_cc_flag_unknown_warning_option=yes
14428else $as_nop
14429  xorg_cv_cc_flag_unknown_warning_option=no
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14432fi
14433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14436	CFLAGS="$xorg_testset_save_CFLAGS"
14437fi
14438
14439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14442	fi
14443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14446if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14447then :
14448  printf %s "(cached) " >&6
14449else $as_nop
14450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452int i;
14453_ACEOF
14454if ac_fn_c_try_compile "$LINENO"
14455then :
14456  xorg_cv_cc_flag_unused_command_line_argument=yes
14457else $as_nop
14458  xorg_cv_cc_flag_unused_command_line_argument=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14461fi
14462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14465	CFLAGS="$xorg_testset_save_CFLAGS"
14466fi
14467
14468found="no"
14469
14470	if test $found = "no" ; then
14471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473		fi
14474
14475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477		fi
14478
14479		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14480
14481		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14482printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14483		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14484		if eval test \${$cacheid+y}
14485then :
14486  printf %s "(cached) " >&6
14487else $as_nop
14488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489/* end confdefs.h.  */
14490int i;
14491int
14492main (void)
14493{
14494
14495  ;
14496  return 0;
14497}
14498_ACEOF
14499if ac_fn_c_try_link "$LINENO"
14500then :
14501  eval $cacheid=yes
14502else $as_nop
14503  eval $cacheid=no
14504fi
14505rm -f core conftest.err conftest.$ac_objext conftest.beam \
14506    conftest$ac_exeext conftest.$ac_ext
14507fi
14508
14509
14510		CFLAGS="$xorg_testset_save_CFLAGS"
14511
14512		eval supported=\$$cacheid
14513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14514printf "%s\n" "$supported" >&6; }
14515		if test "$supported" = "yes" ; then
14516			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14517			found="yes"
14518		fi
14519	fi
14520
14521
14522
14523
14524
14525# This chunk adds additional warnings that could catch undesired effects.
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539xorg_testset_save_CFLAGS="$CFLAGS"
14540
14541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14546then :
14547  printf %s "(cached) " >&6
14548else $as_nop
14549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h.  */
14551int i;
14552_ACEOF
14553if ac_fn_c_try_compile "$LINENO"
14554then :
14555  xorg_cv_cc_flag_unknown_warning_option=yes
14556else $as_nop
14557  xorg_cv_cc_flag_unknown_warning_option=no
14558fi
14559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14560fi
14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14564	CFLAGS="$xorg_testset_save_CFLAGS"
14565fi
14566
14567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14570	fi
14571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14574if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14575then :
14576  printf %s "(cached) " >&6
14577else $as_nop
14578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579/* end confdefs.h.  */
14580int i;
14581_ACEOF
14582if ac_fn_c_try_compile "$LINENO"
14583then :
14584  xorg_cv_cc_flag_unused_command_line_argument=yes
14585else $as_nop
14586  xorg_cv_cc_flag_unused_command_line_argument=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14589fi
14590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593	CFLAGS="$xorg_testset_save_CFLAGS"
14594fi
14595
14596found="no"
14597
14598	if test $found = "no" ; then
14599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601		fi
14602
14603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605		fi
14606
14607		CFLAGS="$CFLAGS -Wunused"
14608
14609		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14610printf %s "checking if $CC supports -Wunused... " >&6; }
14611		cacheid=xorg_cv_cc_flag__Wunused
14612		if eval test \${$cacheid+y}
14613then :
14614  printf %s "(cached) " >&6
14615else $as_nop
14616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617/* end confdefs.h.  */
14618int i;
14619int
14620main (void)
14621{
14622
14623  ;
14624  return 0;
14625}
14626_ACEOF
14627if ac_fn_c_try_link "$LINENO"
14628then :
14629  eval $cacheid=yes
14630else $as_nop
14631  eval $cacheid=no
14632fi
14633rm -f core conftest.err conftest.$ac_objext conftest.beam \
14634    conftest$ac_exeext conftest.$ac_ext
14635fi
14636
14637
14638		CFLAGS="$xorg_testset_save_CFLAGS"
14639
14640		eval supported=\$$cacheid
14641		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14642printf "%s\n" "$supported" >&6; }
14643		if test "$supported" = "yes" ; then
14644			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14645			found="yes"
14646		fi
14647	fi
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663xorg_testset_save_CFLAGS="$CFLAGS"
14664
14665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14670then :
14671  printf %s "(cached) " >&6
14672else $as_nop
14673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675int i;
14676_ACEOF
14677if ac_fn_c_try_compile "$LINENO"
14678then :
14679  xorg_cv_cc_flag_unknown_warning_option=yes
14680else $as_nop
14681  xorg_cv_cc_flag_unknown_warning_option=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14684fi
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14688	CFLAGS="$xorg_testset_save_CFLAGS"
14689fi
14690
14691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694	fi
14695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14699then :
14700  printf %s "(cached) " >&6
14701else $as_nop
14702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703/* end confdefs.h.  */
14704int i;
14705_ACEOF
14706if ac_fn_c_try_compile "$LINENO"
14707then :
14708  xorg_cv_cc_flag_unused_command_line_argument=yes
14709else $as_nop
14710  xorg_cv_cc_flag_unused_command_line_argument=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14713fi
14714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14717	CFLAGS="$xorg_testset_save_CFLAGS"
14718fi
14719
14720found="no"
14721
14722	if test $found = "no" ; then
14723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725		fi
14726
14727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729		fi
14730
14731		CFLAGS="$CFLAGS -Wuninitialized"
14732
14733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14734printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14735		cacheid=xorg_cv_cc_flag__Wuninitialized
14736		if eval test \${$cacheid+y}
14737then :
14738  printf %s "(cached) " >&6
14739else $as_nop
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742int i;
14743int
14744main (void)
14745{
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"
14752then :
14753  eval $cacheid=yes
14754else $as_nop
14755  eval $cacheid=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758    conftest$ac_exeext conftest.$ac_ext
14759fi
14760
14761
14762		CFLAGS="$xorg_testset_save_CFLAGS"
14763
14764		eval supported=\$$cacheid
14765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766printf "%s\n" "$supported" >&6; }
14767		if test "$supported" = "yes" ; then
14768			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14769			found="yes"
14770		fi
14771	fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787xorg_testset_save_CFLAGS="$CFLAGS"
14788
14789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14794then :
14795  printf %s "(cached) " >&6
14796else $as_nop
14797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799int i;
14800_ACEOF
14801if ac_fn_c_try_compile "$LINENO"
14802then :
14803  xorg_cv_cc_flag_unknown_warning_option=yes
14804else $as_nop
14805  xorg_cv_cc_flag_unknown_warning_option=no
14806fi
14807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14808fi
14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14812	CFLAGS="$xorg_testset_save_CFLAGS"
14813fi
14814
14815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818	fi
14819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14823then :
14824  printf %s "(cached) " >&6
14825else $as_nop
14826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828int i;
14829_ACEOF
14830if ac_fn_c_try_compile "$LINENO"
14831then :
14832  xorg_cv_cc_flag_unused_command_line_argument=yes
14833else $as_nop
14834  xorg_cv_cc_flag_unused_command_line_argument=no
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14837fi
14838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14841	CFLAGS="$xorg_testset_save_CFLAGS"
14842fi
14843
14844found="no"
14845
14846	if test $found = "no" ; then
14847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849		fi
14850
14851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853		fi
14854
14855		CFLAGS="$CFLAGS -Wshadow"
14856
14857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14858printf %s "checking if $CC supports -Wshadow... " >&6; }
14859		cacheid=xorg_cv_cc_flag__Wshadow
14860		if eval test \${$cacheid+y}
14861then :
14862  printf %s "(cached) " >&6
14863else $as_nop
14864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865/* end confdefs.h.  */
14866int i;
14867int
14868main (void)
14869{
14870
14871  ;
14872  return 0;
14873}
14874_ACEOF
14875if ac_fn_c_try_link "$LINENO"
14876then :
14877  eval $cacheid=yes
14878else $as_nop
14879  eval $cacheid=no
14880fi
14881rm -f core conftest.err conftest.$ac_objext conftest.beam \
14882    conftest$ac_exeext conftest.$ac_ext
14883fi
14884
14885
14886		CFLAGS="$xorg_testset_save_CFLAGS"
14887
14888		eval supported=\$$cacheid
14889		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14890printf "%s\n" "$supported" >&6; }
14891		if test "$supported" = "yes" ; then
14892			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14893			found="yes"
14894		fi
14895	fi
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911xorg_testset_save_CFLAGS="$CFLAGS"
14912
14913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14916printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14917if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14918then :
14919  printf %s "(cached) " >&6
14920else $as_nop
14921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922/* end confdefs.h.  */
14923int i;
14924_ACEOF
14925if ac_fn_c_try_compile "$LINENO"
14926then :
14927  xorg_cv_cc_flag_unknown_warning_option=yes
14928else $as_nop
14929  xorg_cv_cc_flag_unknown_warning_option=no
14930fi
14931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14932fi
14933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14936	CFLAGS="$xorg_testset_save_CFLAGS"
14937fi
14938
14939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14942	fi
14943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14946if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14947then :
14948  printf %s "(cached) " >&6
14949else $as_nop
14950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951/* end confdefs.h.  */
14952int i;
14953_ACEOF
14954if ac_fn_c_try_compile "$LINENO"
14955then :
14956  xorg_cv_cc_flag_unused_command_line_argument=yes
14957else $as_nop
14958  xorg_cv_cc_flag_unused_command_line_argument=no
14959fi
14960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14961fi
14962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14965	CFLAGS="$xorg_testset_save_CFLAGS"
14966fi
14967
14968found="no"
14969
14970	if test $found = "no" ; then
14971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973		fi
14974
14975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977		fi
14978
14979		CFLAGS="$CFLAGS -Wmissing-noreturn"
14980
14981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14982printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14983		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14984		if eval test \${$cacheid+y}
14985then :
14986  printf %s "(cached) " >&6
14987else $as_nop
14988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989/* end confdefs.h.  */
14990int i;
14991int
14992main (void)
14993{
14994
14995  ;
14996  return 0;
14997}
14998_ACEOF
14999if ac_fn_c_try_link "$LINENO"
15000then :
15001  eval $cacheid=yes
15002else $as_nop
15003  eval $cacheid=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006    conftest$ac_exeext conftest.$ac_ext
15007fi
15008
15009
15010		CFLAGS="$xorg_testset_save_CFLAGS"
15011
15012		eval supported=\$$cacheid
15013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014printf "%s\n" "$supported" >&6; }
15015		if test "$supported" = "yes" ; then
15016			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15017			found="yes"
15018		fi
15019	fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035xorg_testset_save_CFLAGS="$CFLAGS"
15036
15037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15041if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15042then :
15043  printf %s "(cached) " >&6
15044else $as_nop
15045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047int i;
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"
15050then :
15051  xorg_cv_cc_flag_unknown_warning_option=yes
15052else $as_nop
15053  xorg_cv_cc_flag_unknown_warning_option=no
15054fi
15055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15056fi
15057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15060	CFLAGS="$xorg_testset_save_CFLAGS"
15061fi
15062
15063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066	fi
15067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15070if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15071then :
15072  printf %s "(cached) " >&6
15073else $as_nop
15074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075/* end confdefs.h.  */
15076int i;
15077_ACEOF
15078if ac_fn_c_try_compile "$LINENO"
15079then :
15080  xorg_cv_cc_flag_unused_command_line_argument=yes
15081else $as_nop
15082  xorg_cv_cc_flag_unused_command_line_argument=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15085fi
15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092found="no"
15093
15094	if test $found = "no" ; then
15095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097		fi
15098
15099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101		fi
15102
15103		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15104
15105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15106printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15107		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15108		if eval test \${$cacheid+y}
15109then :
15110  printf %s "(cached) " >&6
15111else $as_nop
15112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113/* end confdefs.h.  */
15114int i;
15115int
15116main (void)
15117{
15118
15119  ;
15120  return 0;
15121}
15122_ACEOF
15123if ac_fn_c_try_link "$LINENO"
15124then :
15125  eval $cacheid=yes
15126else $as_nop
15127  eval $cacheid=no
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.beam \
15130    conftest$ac_exeext conftest.$ac_ext
15131fi
15132
15133
15134		CFLAGS="$xorg_testset_save_CFLAGS"
15135
15136		eval supported=\$$cacheid
15137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15138printf "%s\n" "$supported" >&6; }
15139		if test "$supported" = "yes" ; then
15140			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15141			found="yes"
15142		fi
15143	fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159xorg_testset_save_CFLAGS="$CFLAGS"
15160
15161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15164printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15165if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15166then :
15167  printf %s "(cached) " >&6
15168else $as_nop
15169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170/* end confdefs.h.  */
15171int i;
15172_ACEOF
15173if ac_fn_c_try_compile "$LINENO"
15174then :
15175  xorg_cv_cc_flag_unknown_warning_option=yes
15176else $as_nop
15177  xorg_cv_cc_flag_unknown_warning_option=no
15178fi
15179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15180fi
15181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15184	CFLAGS="$xorg_testset_save_CFLAGS"
15185fi
15186
15187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190	fi
15191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15194if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15195then :
15196  printf %s "(cached) " >&6
15197else $as_nop
15198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199/* end confdefs.h.  */
15200int i;
15201_ACEOF
15202if ac_fn_c_try_compile "$LINENO"
15203then :
15204  xorg_cv_cc_flag_unused_command_line_argument=yes
15205else $as_nop
15206  xorg_cv_cc_flag_unused_command_line_argument=no
15207fi
15208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15209fi
15210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15213	CFLAGS="$xorg_testset_save_CFLAGS"
15214fi
15215
15216found="no"
15217
15218	if test $found = "no" ; then
15219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221		fi
15222
15223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225		fi
15226
15227		CFLAGS="$CFLAGS -Wredundant-decls"
15228
15229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15230printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15231		cacheid=xorg_cv_cc_flag__Wredundant_decls
15232		if eval test \${$cacheid+y}
15233then :
15234  printf %s "(cached) " >&6
15235else $as_nop
15236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h.  */
15238int i;
15239int
15240main (void)
15241{
15242
15243  ;
15244  return 0;
15245}
15246_ACEOF
15247if ac_fn_c_try_link "$LINENO"
15248then :
15249  eval $cacheid=yes
15250else $as_nop
15251  eval $cacheid=no
15252fi
15253rm -f core conftest.err conftest.$ac_objext conftest.beam \
15254    conftest$ac_exeext conftest.$ac_ext
15255fi
15256
15257
15258		CFLAGS="$xorg_testset_save_CFLAGS"
15259
15260		eval supported=\$$cacheid
15261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15262printf "%s\n" "$supported" >&6; }
15263		if test "$supported" = "yes" ; then
15264			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15265			found="yes"
15266		fi
15267	fi
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283xorg_testset_save_CFLAGS="$CFLAGS"
15284
15285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15288printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15289if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15290then :
15291  printf %s "(cached) " >&6
15292else $as_nop
15293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294/* end confdefs.h.  */
15295int i;
15296_ACEOF
15297if ac_fn_c_try_compile "$LINENO"
15298then :
15299  xorg_cv_cc_flag_unknown_warning_option=yes
15300else $as_nop
15301  xorg_cv_cc_flag_unknown_warning_option=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15304fi
15305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15306printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15308	CFLAGS="$xorg_testset_save_CFLAGS"
15309fi
15310
15311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314	fi
15315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15317printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15318if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15319then :
15320  printf %s "(cached) " >&6
15321else $as_nop
15322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h.  */
15324int i;
15325_ACEOF
15326if ac_fn_c_try_compile "$LINENO"
15327then :
15328  xorg_cv_cc_flag_unused_command_line_argument=yes
15329else $as_nop
15330  xorg_cv_cc_flag_unused_command_line_argument=no
15331fi
15332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15333fi
15334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15337	CFLAGS="$xorg_testset_save_CFLAGS"
15338fi
15339
15340found="no"
15341
15342	if test $found = "no" ; then
15343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15345		fi
15346
15347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15349		fi
15350
15351		CFLAGS="$CFLAGS -Wlogical-op"
15352
15353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15354printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15355		cacheid=xorg_cv_cc_flag__Wlogical_op
15356		if eval test \${$cacheid+y}
15357then :
15358  printf %s "(cached) " >&6
15359else $as_nop
15360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361/* end confdefs.h.  */
15362int i;
15363int
15364main (void)
15365{
15366
15367  ;
15368  return 0;
15369}
15370_ACEOF
15371if ac_fn_c_try_link "$LINENO"
15372then :
15373  eval $cacheid=yes
15374else $as_nop
15375  eval $cacheid=no
15376fi
15377rm -f core conftest.err conftest.$ac_objext conftest.beam \
15378    conftest$ac_exeext conftest.$ac_ext
15379fi
15380
15381
15382		CFLAGS="$xorg_testset_save_CFLAGS"
15383
15384		eval supported=\$$cacheid
15385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15386printf "%s\n" "$supported" >&6; }
15387		if test "$supported" = "yes" ; then
15388			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15389			found="yes"
15390		fi
15391	fi
15392
15393
15394
15395# These are currently disabled because they are noisy.  They will be enabled
15396# in the future once the codebase is sufficiently modernized to silence
15397# them.  For now, I don't want them to drown out the other warnings.
15398# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15399# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15400# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15401
15402# Turn some warnings into errors, so we don't accidently get successful builds
15403# when there are problems that should be fixed.
15404
15405if test "x$SELECTIVE_WERROR" = "xyes" ; then
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419xorg_testset_save_CFLAGS="$CFLAGS"
15420
15421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15425if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15426then :
15427  printf %s "(cached) " >&6
15428else $as_nop
15429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430/* end confdefs.h.  */
15431int i;
15432_ACEOF
15433if ac_fn_c_try_compile "$LINENO"
15434then :
15435  xorg_cv_cc_flag_unknown_warning_option=yes
15436else $as_nop
15437  xorg_cv_cc_flag_unknown_warning_option=no
15438fi
15439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15440fi
15441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15444	CFLAGS="$xorg_testset_save_CFLAGS"
15445fi
15446
15447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15450	fi
15451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15452	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15454if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15455then :
15456  printf %s "(cached) " >&6
15457else $as_nop
15458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h.  */
15460int i;
15461_ACEOF
15462if ac_fn_c_try_compile "$LINENO"
15463then :
15464  xorg_cv_cc_flag_unused_command_line_argument=yes
15465else $as_nop
15466  xorg_cv_cc_flag_unused_command_line_argument=no
15467fi
15468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15469fi
15470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15473	CFLAGS="$xorg_testset_save_CFLAGS"
15474fi
15475
15476found="no"
15477
15478	if test $found = "no" ; then
15479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15481		fi
15482
15483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15485		fi
15486
15487		CFLAGS="$CFLAGS -Werror=implicit"
15488
15489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15490printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15491		cacheid=xorg_cv_cc_flag__Werror_implicit
15492		if eval test \${$cacheid+y}
15493then :
15494  printf %s "(cached) " >&6
15495else $as_nop
15496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497/* end confdefs.h.  */
15498int i;
15499int
15500main (void)
15501{
15502
15503  ;
15504  return 0;
15505}
15506_ACEOF
15507if ac_fn_c_try_link "$LINENO"
15508then :
15509  eval $cacheid=yes
15510else $as_nop
15511  eval $cacheid=no
15512fi
15513rm -f core conftest.err conftest.$ac_objext conftest.beam \
15514    conftest$ac_exeext conftest.$ac_ext
15515fi
15516
15517
15518		CFLAGS="$xorg_testset_save_CFLAGS"
15519
15520		eval supported=\$$cacheid
15521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15522printf "%s\n" "$supported" >&6; }
15523		if test "$supported" = "yes" ; then
15524			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15525			found="yes"
15526		fi
15527	fi
15528
15529	if test $found = "no" ; then
15530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532		fi
15533
15534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536		fi
15537
15538		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15539
15540		{ 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
15541printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15542		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15543		if eval test \${$cacheid+y}
15544then :
15545  printf %s "(cached) " >&6
15546else $as_nop
15547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549int i;
15550int
15551main (void)
15552{
15553
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558if ac_fn_c_try_link "$LINENO"
15559then :
15560  eval $cacheid=yes
15561else $as_nop
15562  eval $cacheid=no
15563fi
15564rm -f core conftest.err conftest.$ac_objext conftest.beam \
15565    conftest$ac_exeext conftest.$ac_ext
15566fi
15567
15568
15569		CFLAGS="$xorg_testset_save_CFLAGS"
15570
15571		eval supported=\$$cacheid
15572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15573printf "%s\n" "$supported" >&6; }
15574		if test "$supported" = "yes" ; then
15575			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15576			found="yes"
15577		fi
15578	fi
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594xorg_testset_save_CFLAGS="$CFLAGS"
15595
15596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15601then :
15602  printf %s "(cached) " >&6
15603else $as_nop
15604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606int i;
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"
15609then :
15610  xorg_cv_cc_flag_unknown_warning_option=yes
15611else $as_nop
15612  xorg_cv_cc_flag_unknown_warning_option=no
15613fi
15614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15615fi
15616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15619	CFLAGS="$xorg_testset_save_CFLAGS"
15620fi
15621
15622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625	fi
15626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15630then :
15631  printf %s "(cached) " >&6
15632else $as_nop
15633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635int i;
15636_ACEOF
15637if ac_fn_c_try_compile "$LINENO"
15638then :
15639  xorg_cv_cc_flag_unused_command_line_argument=yes
15640else $as_nop
15641  xorg_cv_cc_flag_unused_command_line_argument=no
15642fi
15643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15644fi
15645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15648	CFLAGS="$xorg_testset_save_CFLAGS"
15649fi
15650
15651found="no"
15652
15653	if test $found = "no" ; then
15654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656		fi
15657
15658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660		fi
15661
15662		CFLAGS="$CFLAGS -Werror=nonnull"
15663
15664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15665printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15666		cacheid=xorg_cv_cc_flag__Werror_nonnull
15667		if eval test \${$cacheid+y}
15668then :
15669  printf %s "(cached) " >&6
15670else $as_nop
15671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h.  */
15673int i;
15674int
15675main (void)
15676{
15677
15678  ;
15679  return 0;
15680}
15681_ACEOF
15682if ac_fn_c_try_link "$LINENO"
15683then :
15684  eval $cacheid=yes
15685else $as_nop
15686  eval $cacheid=no
15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.beam \
15689    conftest$ac_exeext conftest.$ac_ext
15690fi
15691
15692
15693		CFLAGS="$xorg_testset_save_CFLAGS"
15694
15695		eval supported=\$$cacheid
15696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15697printf "%s\n" "$supported" >&6; }
15698		if test "$supported" = "yes" ; then
15699			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15700			found="yes"
15701		fi
15702	fi
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718xorg_testset_save_CFLAGS="$CFLAGS"
15719
15720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15725then :
15726  printf %s "(cached) " >&6
15727else $as_nop
15728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729/* end confdefs.h.  */
15730int i;
15731_ACEOF
15732if ac_fn_c_try_compile "$LINENO"
15733then :
15734  xorg_cv_cc_flag_unknown_warning_option=yes
15735else $as_nop
15736  xorg_cv_cc_flag_unknown_warning_option=no
15737fi
15738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15739fi
15740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15743	CFLAGS="$xorg_testset_save_CFLAGS"
15744fi
15745
15746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749	fi
15750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15754then :
15755  printf %s "(cached) " >&6
15756else $as_nop
15757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758/* end confdefs.h.  */
15759int i;
15760_ACEOF
15761if ac_fn_c_try_compile "$LINENO"
15762then :
15763  xorg_cv_cc_flag_unused_command_line_argument=yes
15764else $as_nop
15765  xorg_cv_cc_flag_unused_command_line_argument=no
15766fi
15767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15768fi
15769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15772	CFLAGS="$xorg_testset_save_CFLAGS"
15773fi
15774
15775found="no"
15776
15777	if test $found = "no" ; then
15778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780		fi
15781
15782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784		fi
15785
15786		CFLAGS="$CFLAGS -Werror=init-self"
15787
15788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15789printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15790		cacheid=xorg_cv_cc_flag__Werror_init_self
15791		if eval test \${$cacheid+y}
15792then :
15793  printf %s "(cached) " >&6
15794else $as_nop
15795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796/* end confdefs.h.  */
15797int i;
15798int
15799main (void)
15800{
15801
15802  ;
15803  return 0;
15804}
15805_ACEOF
15806if ac_fn_c_try_link "$LINENO"
15807then :
15808  eval $cacheid=yes
15809else $as_nop
15810  eval $cacheid=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext conftest.beam \
15813    conftest$ac_exeext conftest.$ac_ext
15814fi
15815
15816
15817		CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819		eval supported=\$$cacheid
15820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821printf "%s\n" "$supported" >&6; }
15822		if test "$supported" = "yes" ; then
15823			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15824			found="yes"
15825		fi
15826	fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15849then :
15850  printf %s "(cached) " >&6
15851else $as_nop
15852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854int i;
15855_ACEOF
15856if ac_fn_c_try_compile "$LINENO"
15857then :
15858  xorg_cv_cc_flag_unknown_warning_option=yes
15859else $as_nop
15860  xorg_cv_cc_flag_unknown_warning_option=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15863fi
15864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873	fi
15874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15878then :
15879  printf %s "(cached) " >&6
15880else $as_nop
15881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883int i;
15884_ACEOF
15885if ac_fn_c_try_compile "$LINENO"
15886then :
15887  xorg_cv_cc_flag_unused_command_line_argument=yes
15888else $as_nop
15889  xorg_cv_cc_flag_unused_command_line_argument=no
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15892fi
15893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15896	CFLAGS="$xorg_testset_save_CFLAGS"
15897fi
15898
15899found="no"
15900
15901	if test $found = "no" ; then
15902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904		fi
15905
15906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908		fi
15909
15910		CFLAGS="$CFLAGS -Werror=main"
15911
15912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15913printf %s "checking if $CC supports -Werror=main... " >&6; }
15914		cacheid=xorg_cv_cc_flag__Werror_main
15915		if eval test \${$cacheid+y}
15916then :
15917  printf %s "(cached) " >&6
15918else $as_nop
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921int i;
15922int
15923main (void)
15924{
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"
15931then :
15932  eval $cacheid=yes
15933else $as_nop
15934  eval $cacheid=no
15935fi
15936rm -f core conftest.err conftest.$ac_objext conftest.beam \
15937    conftest$ac_exeext conftest.$ac_ext
15938fi
15939
15940
15941		CFLAGS="$xorg_testset_save_CFLAGS"
15942
15943		eval supported=\$$cacheid
15944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15945printf "%s\n" "$supported" >&6; }
15946		if test "$supported" = "yes" ; then
15947			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15948			found="yes"
15949		fi
15950	fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966xorg_testset_save_CFLAGS="$CFLAGS"
15967
15968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15973then :
15974  printf %s "(cached) " >&6
15975else $as_nop
15976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h.  */
15978int i;
15979_ACEOF
15980if ac_fn_c_try_compile "$LINENO"
15981then :
15982  xorg_cv_cc_flag_unknown_warning_option=yes
15983else $as_nop
15984  xorg_cv_cc_flag_unknown_warning_option=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15987fi
15988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15991	CFLAGS="$xorg_testset_save_CFLAGS"
15992fi
15993
15994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997	fi
15998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16002then :
16003  printf %s "(cached) " >&6
16004else $as_nop
16005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006/* end confdefs.h.  */
16007int i;
16008_ACEOF
16009if ac_fn_c_try_compile "$LINENO"
16010then :
16011  xorg_cv_cc_flag_unused_command_line_argument=yes
16012else $as_nop
16013  xorg_cv_cc_flag_unused_command_line_argument=no
16014fi
16015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16016fi
16017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16020	CFLAGS="$xorg_testset_save_CFLAGS"
16021fi
16022
16023found="no"
16024
16025	if test $found = "no" ; then
16026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028		fi
16029
16030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032		fi
16033
16034		CFLAGS="$CFLAGS -Werror=missing-braces"
16035
16036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16037printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16038		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16039		if eval test \${$cacheid+y}
16040then :
16041  printf %s "(cached) " >&6
16042else $as_nop
16043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h.  */
16045int i;
16046int
16047main (void)
16048{
16049
16050  ;
16051  return 0;
16052}
16053_ACEOF
16054if ac_fn_c_try_link "$LINENO"
16055then :
16056  eval $cacheid=yes
16057else $as_nop
16058  eval $cacheid=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.beam \
16061    conftest$ac_exeext conftest.$ac_ext
16062fi
16063
16064
16065		CFLAGS="$xorg_testset_save_CFLAGS"
16066
16067		eval supported=\$$cacheid
16068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16069printf "%s\n" "$supported" >&6; }
16070		if test "$supported" = "yes" ; then
16071			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16072			found="yes"
16073		fi
16074	fi
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090xorg_testset_save_CFLAGS="$CFLAGS"
16091
16092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16097then :
16098  printf %s "(cached) " >&6
16099else $as_nop
16100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h.  */
16102int i;
16103_ACEOF
16104if ac_fn_c_try_compile "$LINENO"
16105then :
16106  xorg_cv_cc_flag_unknown_warning_option=yes
16107else $as_nop
16108  xorg_cv_cc_flag_unknown_warning_option=no
16109fi
16110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16111fi
16112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16115	CFLAGS="$xorg_testset_save_CFLAGS"
16116fi
16117
16118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16121	fi
16122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16126then :
16127  printf %s "(cached) " >&6
16128else $as_nop
16129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h.  */
16131int i;
16132_ACEOF
16133if ac_fn_c_try_compile "$LINENO"
16134then :
16135  xorg_cv_cc_flag_unused_command_line_argument=yes
16136else $as_nop
16137  xorg_cv_cc_flag_unused_command_line_argument=no
16138fi
16139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16140fi
16141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16144	CFLAGS="$xorg_testset_save_CFLAGS"
16145fi
16146
16147found="no"
16148
16149	if test $found = "no" ; then
16150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16152		fi
16153
16154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16156		fi
16157
16158		CFLAGS="$CFLAGS -Werror=sequence-point"
16159
16160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16161printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16162		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16163		if eval test \${$cacheid+y}
16164then :
16165  printf %s "(cached) " >&6
16166else $as_nop
16167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h.  */
16169int i;
16170int
16171main (void)
16172{
16173
16174  ;
16175  return 0;
16176}
16177_ACEOF
16178if ac_fn_c_try_link "$LINENO"
16179then :
16180  eval $cacheid=yes
16181else $as_nop
16182  eval $cacheid=no
16183fi
16184rm -f core conftest.err conftest.$ac_objext conftest.beam \
16185    conftest$ac_exeext conftest.$ac_ext
16186fi
16187
16188
16189		CFLAGS="$xorg_testset_save_CFLAGS"
16190
16191		eval supported=\$$cacheid
16192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16193printf "%s\n" "$supported" >&6; }
16194		if test "$supported" = "yes" ; then
16195			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16196			found="yes"
16197		fi
16198	fi
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214xorg_testset_save_CFLAGS="$CFLAGS"
16215
16216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16221then :
16222  printf %s "(cached) " >&6
16223else $as_nop
16224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225/* end confdefs.h.  */
16226int i;
16227_ACEOF
16228if ac_fn_c_try_compile "$LINENO"
16229then :
16230  xorg_cv_cc_flag_unknown_warning_option=yes
16231else $as_nop
16232  xorg_cv_cc_flag_unknown_warning_option=no
16233fi
16234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16235fi
16236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16239	CFLAGS="$xorg_testset_save_CFLAGS"
16240fi
16241
16242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245	fi
16246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16250then :
16251  printf %s "(cached) " >&6
16252else $as_nop
16253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254/* end confdefs.h.  */
16255int i;
16256_ACEOF
16257if ac_fn_c_try_compile "$LINENO"
16258then :
16259  xorg_cv_cc_flag_unused_command_line_argument=yes
16260else $as_nop
16261  xorg_cv_cc_flag_unused_command_line_argument=no
16262fi
16263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16264fi
16265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16268	CFLAGS="$xorg_testset_save_CFLAGS"
16269fi
16270
16271found="no"
16272
16273	if test $found = "no" ; then
16274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276		fi
16277
16278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16280		fi
16281
16282		CFLAGS="$CFLAGS -Werror=return-type"
16283
16284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16285printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16286		cacheid=xorg_cv_cc_flag__Werror_return_type
16287		if eval test \${$cacheid+y}
16288then :
16289  printf %s "(cached) " >&6
16290else $as_nop
16291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h.  */
16293int i;
16294int
16295main (void)
16296{
16297
16298  ;
16299  return 0;
16300}
16301_ACEOF
16302if ac_fn_c_try_link "$LINENO"
16303then :
16304  eval $cacheid=yes
16305else $as_nop
16306  eval $cacheid=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.beam \
16309    conftest$ac_exeext conftest.$ac_ext
16310fi
16311
16312
16313		CFLAGS="$xorg_testset_save_CFLAGS"
16314
16315		eval supported=\$$cacheid
16316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317printf "%s\n" "$supported" >&6; }
16318		if test "$supported" = "yes" ; then
16319			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16320			found="yes"
16321		fi
16322	fi
16323
16324	if test $found = "no" ; then
16325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16327		fi
16328
16329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331		fi
16332
16333		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16334
16335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16336printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16337		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16338		if eval test \${$cacheid+y}
16339then :
16340  printf %s "(cached) " >&6
16341else $as_nop
16342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h.  */
16344int i;
16345int
16346main (void)
16347{
16348
16349  ;
16350  return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_link "$LINENO"
16354then :
16355  eval $cacheid=yes
16356else $as_nop
16357  eval $cacheid=no
16358fi
16359rm -f core conftest.err conftest.$ac_objext conftest.beam \
16360    conftest$ac_exeext conftest.$ac_ext
16361fi
16362
16363
16364		CFLAGS="$xorg_testset_save_CFLAGS"
16365
16366		eval supported=\$$cacheid
16367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16368printf "%s\n" "$supported" >&6; }
16369		if test "$supported" = "yes" ; then
16370			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16371			found="yes"
16372		fi
16373	fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389xorg_testset_save_CFLAGS="$CFLAGS"
16390
16391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16396then :
16397  printf %s "(cached) " >&6
16398else $as_nop
16399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401int i;
16402_ACEOF
16403if ac_fn_c_try_compile "$LINENO"
16404then :
16405  xorg_cv_cc_flag_unknown_warning_option=yes
16406else $as_nop
16407  xorg_cv_cc_flag_unknown_warning_option=no
16408fi
16409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16410fi
16411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16414	CFLAGS="$xorg_testset_save_CFLAGS"
16415fi
16416
16417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16420	fi
16421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16425then :
16426  printf %s "(cached) " >&6
16427else $as_nop
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430int i;
16431_ACEOF
16432if ac_fn_c_try_compile "$LINENO"
16433then :
16434  xorg_cv_cc_flag_unused_command_line_argument=yes
16435else $as_nop
16436  xorg_cv_cc_flag_unused_command_line_argument=no
16437fi
16438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16439fi
16440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443	CFLAGS="$xorg_testset_save_CFLAGS"
16444fi
16445
16446found="no"
16447
16448	if test $found = "no" ; then
16449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451		fi
16452
16453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455		fi
16456
16457		CFLAGS="$CFLAGS -Werror=trigraphs"
16458
16459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16460printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16461		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16462		if eval test \${$cacheid+y}
16463then :
16464  printf %s "(cached) " >&6
16465else $as_nop
16466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467/* end confdefs.h.  */
16468int i;
16469int
16470main (void)
16471{
16472
16473  ;
16474  return 0;
16475}
16476_ACEOF
16477if ac_fn_c_try_link "$LINENO"
16478then :
16479  eval $cacheid=yes
16480else $as_nop
16481  eval $cacheid=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.beam \
16484    conftest$ac_exeext conftest.$ac_ext
16485fi
16486
16487
16488		CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490		eval supported=\$$cacheid
16491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492printf "%s\n" "$supported" >&6; }
16493		if test "$supported" = "yes" ; then
16494			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16495			found="yes"
16496		fi
16497	fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513xorg_testset_save_CFLAGS="$CFLAGS"
16514
16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16520then :
16521  printf %s "(cached) " >&6
16522else $as_nop
16523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524/* end confdefs.h.  */
16525int i;
16526_ACEOF
16527if ac_fn_c_try_compile "$LINENO"
16528then :
16529  xorg_cv_cc_flag_unknown_warning_option=yes
16530else $as_nop
16531  xorg_cv_cc_flag_unknown_warning_option=no
16532fi
16533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16534fi
16535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16538	CFLAGS="$xorg_testset_save_CFLAGS"
16539fi
16540
16541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544	fi
16545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16549then :
16550  printf %s "(cached) " >&6
16551else $as_nop
16552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553/* end confdefs.h.  */
16554int i;
16555_ACEOF
16556if ac_fn_c_try_compile "$LINENO"
16557then :
16558  xorg_cv_cc_flag_unused_command_line_argument=yes
16559else $as_nop
16560  xorg_cv_cc_flag_unused_command_line_argument=no
16561fi
16562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16563fi
16564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16567	CFLAGS="$xorg_testset_save_CFLAGS"
16568fi
16569
16570found="no"
16571
16572	if test $found = "no" ; then
16573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575		fi
16576
16577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579		fi
16580
16581		CFLAGS="$CFLAGS -Werror=array-bounds"
16582
16583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16584printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16585		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16586		if eval test \${$cacheid+y}
16587then :
16588  printf %s "(cached) " >&6
16589else $as_nop
16590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591/* end confdefs.h.  */
16592int i;
16593int
16594main (void)
16595{
16596
16597  ;
16598  return 0;
16599}
16600_ACEOF
16601if ac_fn_c_try_link "$LINENO"
16602then :
16603  eval $cacheid=yes
16604else $as_nop
16605  eval $cacheid=no
16606fi
16607rm -f core conftest.err conftest.$ac_objext conftest.beam \
16608    conftest$ac_exeext conftest.$ac_ext
16609fi
16610
16611
16612		CFLAGS="$xorg_testset_save_CFLAGS"
16613
16614		eval supported=\$$cacheid
16615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16616printf "%s\n" "$supported" >&6; }
16617		if test "$supported" = "yes" ; then
16618			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16619			found="yes"
16620		fi
16621	fi
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637xorg_testset_save_CFLAGS="$CFLAGS"
16638
16639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16643if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16644then :
16645  printf %s "(cached) " >&6
16646else $as_nop
16647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648/* end confdefs.h.  */
16649int i;
16650_ACEOF
16651if ac_fn_c_try_compile "$LINENO"
16652then :
16653  xorg_cv_cc_flag_unknown_warning_option=yes
16654else $as_nop
16655  xorg_cv_cc_flag_unknown_warning_option=no
16656fi
16657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16658fi
16659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16662	CFLAGS="$xorg_testset_save_CFLAGS"
16663fi
16664
16665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668	fi
16669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16673then :
16674  printf %s "(cached) " >&6
16675else $as_nop
16676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677/* end confdefs.h.  */
16678int i;
16679_ACEOF
16680if ac_fn_c_try_compile "$LINENO"
16681then :
16682  xorg_cv_cc_flag_unused_command_line_argument=yes
16683else $as_nop
16684  xorg_cv_cc_flag_unused_command_line_argument=no
16685fi
16686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16687fi
16688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16691	CFLAGS="$xorg_testset_save_CFLAGS"
16692fi
16693
16694found="no"
16695
16696	if test $found = "no" ; then
16697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699		fi
16700
16701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703		fi
16704
16705		CFLAGS="$CFLAGS -Werror=write-strings"
16706
16707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16708printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16709		cacheid=xorg_cv_cc_flag__Werror_write_strings
16710		if eval test \${$cacheid+y}
16711then :
16712  printf %s "(cached) " >&6
16713else $as_nop
16714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h.  */
16716int i;
16717int
16718main (void)
16719{
16720
16721  ;
16722  return 0;
16723}
16724_ACEOF
16725if ac_fn_c_try_link "$LINENO"
16726then :
16727  eval $cacheid=yes
16728else $as_nop
16729  eval $cacheid=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext conftest.beam \
16732    conftest$ac_exeext conftest.$ac_ext
16733fi
16734
16735
16736		CFLAGS="$xorg_testset_save_CFLAGS"
16737
16738		eval supported=\$$cacheid
16739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16740printf "%s\n" "$supported" >&6; }
16741		if test "$supported" = "yes" ; then
16742			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16743			found="yes"
16744		fi
16745	fi
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761xorg_testset_save_CFLAGS="$CFLAGS"
16762
16763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16766printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16767if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16768then :
16769  printf %s "(cached) " >&6
16770else $as_nop
16771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772/* end confdefs.h.  */
16773int i;
16774_ACEOF
16775if ac_fn_c_try_compile "$LINENO"
16776then :
16777  xorg_cv_cc_flag_unknown_warning_option=yes
16778else $as_nop
16779  xorg_cv_cc_flag_unknown_warning_option=no
16780fi
16781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16782fi
16783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16786	CFLAGS="$xorg_testset_save_CFLAGS"
16787fi
16788
16789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16792	fi
16793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16796if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16797then :
16798  printf %s "(cached) " >&6
16799else $as_nop
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803_ACEOF
16804if ac_fn_c_try_compile "$LINENO"
16805then :
16806  xorg_cv_cc_flag_unused_command_line_argument=yes
16807else $as_nop
16808  xorg_cv_cc_flag_unused_command_line_argument=no
16809fi
16810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16811fi
16812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16813printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16815	CFLAGS="$xorg_testset_save_CFLAGS"
16816fi
16817
16818found="no"
16819
16820	if test $found = "no" ; then
16821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16823		fi
16824
16825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16827		fi
16828
16829		CFLAGS="$CFLAGS -Werror=address"
16830
16831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16832printf %s "checking if $CC supports -Werror=address... " >&6; }
16833		cacheid=xorg_cv_cc_flag__Werror_address
16834		if eval test \${$cacheid+y}
16835then :
16836  printf %s "(cached) " >&6
16837else $as_nop
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841int
16842main (void)
16843{
16844
16845  ;
16846  return 0;
16847}
16848_ACEOF
16849if ac_fn_c_try_link "$LINENO"
16850then :
16851  eval $cacheid=yes
16852else $as_nop
16853  eval $cacheid=no
16854fi
16855rm -f core conftest.err conftest.$ac_objext conftest.beam \
16856    conftest$ac_exeext conftest.$ac_ext
16857fi
16858
16859
16860		CFLAGS="$xorg_testset_save_CFLAGS"
16861
16862		eval supported=\$$cacheid
16863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16864printf "%s\n" "$supported" >&6; }
16865		if test "$supported" = "yes" ; then
16866			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16867			found="yes"
16868		fi
16869	fi
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885xorg_testset_save_CFLAGS="$CFLAGS"
16886
16887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16892then :
16893  printf %s "(cached) " >&6
16894else $as_nop
16895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h.  */
16897int i;
16898_ACEOF
16899if ac_fn_c_try_compile "$LINENO"
16900then :
16901  xorg_cv_cc_flag_unknown_warning_option=yes
16902else $as_nop
16903  xorg_cv_cc_flag_unknown_warning_option=no
16904fi
16905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16906fi
16907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16910	CFLAGS="$xorg_testset_save_CFLAGS"
16911fi
16912
16913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16916	fi
16917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16920if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16921then :
16922  printf %s "(cached) " >&6
16923else $as_nop
16924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h.  */
16926int i;
16927_ACEOF
16928if ac_fn_c_try_compile "$LINENO"
16929then :
16930  xorg_cv_cc_flag_unused_command_line_argument=yes
16931else $as_nop
16932  xorg_cv_cc_flag_unused_command_line_argument=no
16933fi
16934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16935fi
16936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16939	CFLAGS="$xorg_testset_save_CFLAGS"
16940fi
16941
16942found="no"
16943
16944	if test $found = "no" ; then
16945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16947		fi
16948
16949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16951		fi
16952
16953		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16954
16955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16956printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16957		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16958		if eval test \${$cacheid+y}
16959then :
16960  printf %s "(cached) " >&6
16961else $as_nop
16962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964int i;
16965int
16966main (void)
16967{
16968
16969  ;
16970  return 0;
16971}
16972_ACEOF
16973if ac_fn_c_try_link "$LINENO"
16974then :
16975  eval $cacheid=yes
16976else $as_nop
16977  eval $cacheid=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.beam \
16980    conftest$ac_exeext conftest.$ac_ext
16981fi
16982
16983
16984		CFLAGS="$xorg_testset_save_CFLAGS"
16985
16986		eval supported=\$$cacheid
16987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16988printf "%s\n" "$supported" >&6; }
16989		if test "$supported" = "yes" ; then
16990			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16991			found="yes"
16992		fi
16993	fi
16994
16995	if test $found = "no" ; then
16996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16998		fi
16999
17000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17002		fi
17003
17004		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17005
17006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17007printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17008		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17009		if eval test \${$cacheid+y}
17010then :
17011  printf %s "(cached) " >&6
17012else $as_nop
17013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014/* end confdefs.h.  */
17015int i;
17016int
17017main (void)
17018{
17019
17020  ;
17021  return 0;
17022}
17023_ACEOF
17024if ac_fn_c_try_link "$LINENO"
17025then :
17026  eval $cacheid=yes
17027else $as_nop
17028  eval $cacheid=no
17029fi
17030rm -f core conftest.err conftest.$ac_objext conftest.beam \
17031    conftest$ac_exeext conftest.$ac_ext
17032fi
17033
17034
17035		CFLAGS="$xorg_testset_save_CFLAGS"
17036
17037		eval supported=\$$cacheid
17038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17039printf "%s\n" "$supported" >&6; }
17040		if test "$supported" = "yes" ; then
17041			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17042			found="yes"
17043		fi
17044	fi
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060xorg_testset_save_CFLAGS="$CFLAGS"
17061
17062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17066if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17067then :
17068  printf %s "(cached) " >&6
17069else $as_nop
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072int i;
17073_ACEOF
17074if ac_fn_c_try_compile "$LINENO"
17075then :
17076  xorg_cv_cc_flag_unknown_warning_option=yes
17077else $as_nop
17078  xorg_cv_cc_flag_unknown_warning_option=no
17079fi
17080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17081fi
17082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17085	CFLAGS="$xorg_testset_save_CFLAGS"
17086fi
17087
17088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17091	fi
17092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17095if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17096then :
17097  printf %s "(cached) " >&6
17098else $as_nop
17099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100/* end confdefs.h.  */
17101int i;
17102_ACEOF
17103if ac_fn_c_try_compile "$LINENO"
17104then :
17105  xorg_cv_cc_flag_unused_command_line_argument=yes
17106else $as_nop
17107  xorg_cv_cc_flag_unused_command_line_argument=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17110fi
17111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114	CFLAGS="$xorg_testset_save_CFLAGS"
17115fi
17116
17117found="no"
17118
17119	if test $found = "no" ; then
17120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122		fi
17123
17124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126		fi
17127
17128		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17129
17130		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17131printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17132		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17133		if eval test \${$cacheid+y}
17134then :
17135  printf %s "(cached) " >&6
17136else $as_nop
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139int i;
17140int
17141main (void)
17142{
17143
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"
17149then :
17150  eval $cacheid=yes
17151else $as_nop
17152  eval $cacheid=no
17153fi
17154rm -f core conftest.err conftest.$ac_objext conftest.beam \
17155    conftest$ac_exeext conftest.$ac_ext
17156fi
17157
17158
17159		CFLAGS="$xorg_testset_save_CFLAGS"
17160
17161		eval supported=\$$cacheid
17162		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17163printf "%s\n" "$supported" >&6; }
17164		if test "$supported" = "yes" ; then
17165			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17166			found="yes"
17167		fi
17168	fi
17169
17170 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17171else
17172{ 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
17173printf "%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;}
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187xorg_testset_save_CFLAGS="$CFLAGS"
17188
17189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17194then :
17195  printf %s "(cached) " >&6
17196else $as_nop
17197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198/* end confdefs.h.  */
17199int i;
17200_ACEOF
17201if ac_fn_c_try_compile "$LINENO"
17202then :
17203  xorg_cv_cc_flag_unknown_warning_option=yes
17204else $as_nop
17205  xorg_cv_cc_flag_unknown_warning_option=no
17206fi
17207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17208fi
17209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17212	CFLAGS="$xorg_testset_save_CFLAGS"
17213fi
17214
17215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17218	fi
17219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17223then :
17224  printf %s "(cached) " >&6
17225else $as_nop
17226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227/* end confdefs.h.  */
17228int i;
17229_ACEOF
17230if ac_fn_c_try_compile "$LINENO"
17231then :
17232  xorg_cv_cc_flag_unused_command_line_argument=yes
17233else $as_nop
17234  xorg_cv_cc_flag_unused_command_line_argument=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17237fi
17238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241	CFLAGS="$xorg_testset_save_CFLAGS"
17242fi
17243
17244found="no"
17245
17246	if test $found = "no" ; then
17247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249		fi
17250
17251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253		fi
17254
17255		CFLAGS="$CFLAGS -Wimplicit"
17256
17257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17258printf %s "checking if $CC supports -Wimplicit... " >&6; }
17259		cacheid=xorg_cv_cc_flag__Wimplicit
17260		if eval test \${$cacheid+y}
17261then :
17262  printf %s "(cached) " >&6
17263else $as_nop
17264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h.  */
17266int i;
17267int
17268main (void)
17269{
17270
17271  ;
17272  return 0;
17273}
17274_ACEOF
17275if ac_fn_c_try_link "$LINENO"
17276then :
17277  eval $cacheid=yes
17278else $as_nop
17279  eval $cacheid=no
17280fi
17281rm -f core conftest.err conftest.$ac_objext conftest.beam \
17282    conftest$ac_exeext conftest.$ac_ext
17283fi
17284
17285
17286		CFLAGS="$xorg_testset_save_CFLAGS"
17287
17288		eval supported=\$$cacheid
17289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17290printf "%s\n" "$supported" >&6; }
17291		if test "$supported" = "yes" ; then
17292			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17293			found="yes"
17294		fi
17295	fi
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311xorg_testset_save_CFLAGS="$CFLAGS"
17312
17313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17318then :
17319  printf %s "(cached) " >&6
17320else $as_nop
17321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h.  */
17323int i;
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"
17326then :
17327  xorg_cv_cc_flag_unknown_warning_option=yes
17328else $as_nop
17329  xorg_cv_cc_flag_unknown_warning_option=no
17330fi
17331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17332fi
17333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17336	CFLAGS="$xorg_testset_save_CFLAGS"
17337fi
17338
17339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17342	fi
17343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17347then :
17348  printf %s "(cached) " >&6
17349else $as_nop
17350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h.  */
17352int i;
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"
17355then :
17356  xorg_cv_cc_flag_unused_command_line_argument=yes
17357else $as_nop
17358  xorg_cv_cc_flag_unused_command_line_argument=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17361fi
17362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365	CFLAGS="$xorg_testset_save_CFLAGS"
17366fi
17367
17368found="no"
17369
17370	if test $found = "no" ; then
17371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373		fi
17374
17375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377		fi
17378
17379		CFLAGS="$CFLAGS -Wnonnull"
17380
17381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17382printf %s "checking if $CC supports -Wnonnull... " >&6; }
17383		cacheid=xorg_cv_cc_flag__Wnonnull
17384		if eval test \${$cacheid+y}
17385then :
17386  printf %s "(cached) " >&6
17387else $as_nop
17388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390int i;
17391int
17392main (void)
17393{
17394
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399if ac_fn_c_try_link "$LINENO"
17400then :
17401  eval $cacheid=yes
17402else $as_nop
17403  eval $cacheid=no
17404fi
17405rm -f core conftest.err conftest.$ac_objext conftest.beam \
17406    conftest$ac_exeext conftest.$ac_ext
17407fi
17408
17409
17410		CFLAGS="$xorg_testset_save_CFLAGS"
17411
17412		eval supported=\$$cacheid
17413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17414printf "%s\n" "$supported" >&6; }
17415		if test "$supported" = "yes" ; then
17416			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17417			found="yes"
17418		fi
17419	fi
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435xorg_testset_save_CFLAGS="$CFLAGS"
17436
17437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17442then :
17443  printf %s "(cached) " >&6
17444else $as_nop
17445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h.  */
17447int i;
17448_ACEOF
17449if ac_fn_c_try_compile "$LINENO"
17450then :
17451  xorg_cv_cc_flag_unknown_warning_option=yes
17452else $as_nop
17453  xorg_cv_cc_flag_unknown_warning_option=no
17454fi
17455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17456fi
17457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17460	CFLAGS="$xorg_testset_save_CFLAGS"
17461fi
17462
17463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466	fi
17467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17471then :
17472  printf %s "(cached) " >&6
17473else $as_nop
17474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h.  */
17476int i;
17477_ACEOF
17478if ac_fn_c_try_compile "$LINENO"
17479then :
17480  xorg_cv_cc_flag_unused_command_line_argument=yes
17481else $as_nop
17482  xorg_cv_cc_flag_unused_command_line_argument=no
17483fi
17484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17485fi
17486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17489	CFLAGS="$xorg_testset_save_CFLAGS"
17490fi
17491
17492found="no"
17493
17494	if test $found = "no" ; then
17495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497		fi
17498
17499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501		fi
17502
17503		CFLAGS="$CFLAGS -Winit-self"
17504
17505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17506printf %s "checking if $CC supports -Winit-self... " >&6; }
17507		cacheid=xorg_cv_cc_flag__Winit_self
17508		if eval test \${$cacheid+y}
17509then :
17510  printf %s "(cached) " >&6
17511else $as_nop
17512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h.  */
17514int i;
17515int
17516main (void)
17517{
17518
17519  ;
17520  return 0;
17521}
17522_ACEOF
17523if ac_fn_c_try_link "$LINENO"
17524then :
17525  eval $cacheid=yes
17526else $as_nop
17527  eval $cacheid=no
17528fi
17529rm -f core conftest.err conftest.$ac_objext conftest.beam \
17530    conftest$ac_exeext conftest.$ac_ext
17531fi
17532
17533
17534		CFLAGS="$xorg_testset_save_CFLAGS"
17535
17536		eval supported=\$$cacheid
17537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17538printf "%s\n" "$supported" >&6; }
17539		if test "$supported" = "yes" ; then
17540			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17541			found="yes"
17542		fi
17543	fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559xorg_testset_save_CFLAGS="$CFLAGS"
17560
17561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17566then :
17567  printf %s "(cached) " >&6
17568else $as_nop
17569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570/* end confdefs.h.  */
17571int i;
17572_ACEOF
17573if ac_fn_c_try_compile "$LINENO"
17574then :
17575  xorg_cv_cc_flag_unknown_warning_option=yes
17576else $as_nop
17577  xorg_cv_cc_flag_unknown_warning_option=no
17578fi
17579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17580fi
17581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17584	CFLAGS="$xorg_testset_save_CFLAGS"
17585fi
17586
17587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590	fi
17591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17595then :
17596  printf %s "(cached) " >&6
17597else $as_nop
17598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600int i;
17601_ACEOF
17602if ac_fn_c_try_compile "$LINENO"
17603then :
17604  xorg_cv_cc_flag_unused_command_line_argument=yes
17605else $as_nop
17606  xorg_cv_cc_flag_unused_command_line_argument=no
17607fi
17608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17609fi
17610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17613	CFLAGS="$xorg_testset_save_CFLAGS"
17614fi
17615
17616found="no"
17617
17618	if test $found = "no" ; then
17619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621		fi
17622
17623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625		fi
17626
17627		CFLAGS="$CFLAGS -Wmain"
17628
17629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17630printf %s "checking if $CC supports -Wmain... " >&6; }
17631		cacheid=xorg_cv_cc_flag__Wmain
17632		if eval test \${$cacheid+y}
17633then :
17634  printf %s "(cached) " >&6
17635else $as_nop
17636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637/* end confdefs.h.  */
17638int i;
17639int
17640main (void)
17641{
17642
17643  ;
17644  return 0;
17645}
17646_ACEOF
17647if ac_fn_c_try_link "$LINENO"
17648then :
17649  eval $cacheid=yes
17650else $as_nop
17651  eval $cacheid=no
17652fi
17653rm -f core conftest.err conftest.$ac_objext conftest.beam \
17654    conftest$ac_exeext conftest.$ac_ext
17655fi
17656
17657
17658		CFLAGS="$xorg_testset_save_CFLAGS"
17659
17660		eval supported=\$$cacheid
17661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17662printf "%s\n" "$supported" >&6; }
17663		if test "$supported" = "yes" ; then
17664			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17665			found="yes"
17666		fi
17667	fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683xorg_testset_save_CFLAGS="$CFLAGS"
17684
17685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17690then :
17691  printf %s "(cached) " >&6
17692else $as_nop
17693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694/* end confdefs.h.  */
17695int i;
17696_ACEOF
17697if ac_fn_c_try_compile "$LINENO"
17698then :
17699  xorg_cv_cc_flag_unknown_warning_option=yes
17700else $as_nop
17701  xorg_cv_cc_flag_unknown_warning_option=no
17702fi
17703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17704fi
17705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17708	CFLAGS="$xorg_testset_save_CFLAGS"
17709fi
17710
17711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17714	fi
17715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17718if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17719then :
17720  printf %s "(cached) " >&6
17721else $as_nop
17722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723/* end confdefs.h.  */
17724int i;
17725_ACEOF
17726if ac_fn_c_try_compile "$LINENO"
17727then :
17728  xorg_cv_cc_flag_unused_command_line_argument=yes
17729else $as_nop
17730  xorg_cv_cc_flag_unused_command_line_argument=no
17731fi
17732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17733fi
17734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17737	CFLAGS="$xorg_testset_save_CFLAGS"
17738fi
17739
17740found="no"
17741
17742	if test $found = "no" ; then
17743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745		fi
17746
17747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749		fi
17750
17751		CFLAGS="$CFLAGS -Wmissing-braces"
17752
17753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17754printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17755		cacheid=xorg_cv_cc_flag__Wmissing_braces
17756		if eval test \${$cacheid+y}
17757then :
17758  printf %s "(cached) " >&6
17759else $as_nop
17760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762int i;
17763int
17764main (void)
17765{
17766
17767  ;
17768  return 0;
17769}
17770_ACEOF
17771if ac_fn_c_try_link "$LINENO"
17772then :
17773  eval $cacheid=yes
17774else $as_nop
17775  eval $cacheid=no
17776fi
17777rm -f core conftest.err conftest.$ac_objext conftest.beam \
17778    conftest$ac_exeext conftest.$ac_ext
17779fi
17780
17781
17782		CFLAGS="$xorg_testset_save_CFLAGS"
17783
17784		eval supported=\$$cacheid
17785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17786printf "%s\n" "$supported" >&6; }
17787		if test "$supported" = "yes" ; then
17788			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17789			found="yes"
17790		fi
17791	fi
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807xorg_testset_save_CFLAGS="$CFLAGS"
17808
17809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17813if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17814then :
17815  printf %s "(cached) " >&6
17816else $as_nop
17817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h.  */
17819int i;
17820_ACEOF
17821if ac_fn_c_try_compile "$LINENO"
17822then :
17823  xorg_cv_cc_flag_unknown_warning_option=yes
17824else $as_nop
17825  xorg_cv_cc_flag_unknown_warning_option=no
17826fi
17827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17828fi
17829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17832	CFLAGS="$xorg_testset_save_CFLAGS"
17833fi
17834
17835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17838	fi
17839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17842if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17843then :
17844  printf %s "(cached) " >&6
17845else $as_nop
17846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h.  */
17848int i;
17849_ACEOF
17850if ac_fn_c_try_compile "$LINENO"
17851then :
17852  xorg_cv_cc_flag_unused_command_line_argument=yes
17853else $as_nop
17854  xorg_cv_cc_flag_unused_command_line_argument=no
17855fi
17856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17857fi
17858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17861	CFLAGS="$xorg_testset_save_CFLAGS"
17862fi
17863
17864found="no"
17865
17866	if test $found = "no" ; then
17867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17869		fi
17870
17871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873		fi
17874
17875		CFLAGS="$CFLAGS -Wsequence-point"
17876
17877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17878printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17879		cacheid=xorg_cv_cc_flag__Wsequence_point
17880		if eval test \${$cacheid+y}
17881then :
17882  printf %s "(cached) " >&6
17883else $as_nop
17884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h.  */
17886int i;
17887int
17888main (void)
17889{
17890
17891  ;
17892  return 0;
17893}
17894_ACEOF
17895if ac_fn_c_try_link "$LINENO"
17896then :
17897  eval $cacheid=yes
17898else $as_nop
17899  eval $cacheid=no
17900fi
17901rm -f core conftest.err conftest.$ac_objext conftest.beam \
17902    conftest$ac_exeext conftest.$ac_ext
17903fi
17904
17905
17906		CFLAGS="$xorg_testset_save_CFLAGS"
17907
17908		eval supported=\$$cacheid
17909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17910printf "%s\n" "$supported" >&6; }
17911		if test "$supported" = "yes" ; then
17912			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17913			found="yes"
17914		fi
17915	fi
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931xorg_testset_save_CFLAGS="$CFLAGS"
17932
17933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17938then :
17939  printf %s "(cached) " >&6
17940else $as_nop
17941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h.  */
17943int i;
17944_ACEOF
17945if ac_fn_c_try_compile "$LINENO"
17946then :
17947  xorg_cv_cc_flag_unknown_warning_option=yes
17948else $as_nop
17949  xorg_cv_cc_flag_unknown_warning_option=no
17950fi
17951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17952fi
17953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17956	CFLAGS="$xorg_testset_save_CFLAGS"
17957fi
17958
17959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17962	fi
17963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17967then :
17968  printf %s "(cached) " >&6
17969else $as_nop
17970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971/* end confdefs.h.  */
17972int i;
17973_ACEOF
17974if ac_fn_c_try_compile "$LINENO"
17975then :
17976  xorg_cv_cc_flag_unused_command_line_argument=yes
17977else $as_nop
17978  xorg_cv_cc_flag_unused_command_line_argument=no
17979fi
17980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17981fi
17982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17985	CFLAGS="$xorg_testset_save_CFLAGS"
17986fi
17987
17988found="no"
17989
17990	if test $found = "no" ; then
17991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993		fi
17994
17995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997		fi
17998
17999		CFLAGS="$CFLAGS -Wreturn-type"
18000
18001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18002printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18003		cacheid=xorg_cv_cc_flag__Wreturn_type
18004		if eval test \${$cacheid+y}
18005then :
18006  printf %s "(cached) " >&6
18007else $as_nop
18008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h.  */
18010int i;
18011int
18012main (void)
18013{
18014
18015  ;
18016  return 0;
18017}
18018_ACEOF
18019if ac_fn_c_try_link "$LINENO"
18020then :
18021  eval $cacheid=yes
18022else $as_nop
18023  eval $cacheid=no
18024fi
18025rm -f core conftest.err conftest.$ac_objext conftest.beam \
18026    conftest$ac_exeext conftest.$ac_ext
18027fi
18028
18029
18030		CFLAGS="$xorg_testset_save_CFLAGS"
18031
18032		eval supported=\$$cacheid
18033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18034printf "%s\n" "$supported" >&6; }
18035		if test "$supported" = "yes" ; then
18036			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18037			found="yes"
18038		fi
18039	fi
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055xorg_testset_save_CFLAGS="$CFLAGS"
18056
18057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18062then :
18063  printf %s "(cached) " >&6
18064else $as_nop
18065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h.  */
18067int i;
18068_ACEOF
18069if ac_fn_c_try_compile "$LINENO"
18070then :
18071  xorg_cv_cc_flag_unknown_warning_option=yes
18072else $as_nop
18073  xorg_cv_cc_flag_unknown_warning_option=no
18074fi
18075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076fi
18077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18080	CFLAGS="$xorg_testset_save_CFLAGS"
18081fi
18082
18083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18086	fi
18087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18091then :
18092  printf %s "(cached) " >&6
18093else $as_nop
18094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095/* end confdefs.h.  */
18096int i;
18097_ACEOF
18098if ac_fn_c_try_compile "$LINENO"
18099then :
18100  xorg_cv_cc_flag_unused_command_line_argument=yes
18101else $as_nop
18102  xorg_cv_cc_flag_unused_command_line_argument=no
18103fi
18104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18105fi
18106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18109	CFLAGS="$xorg_testset_save_CFLAGS"
18110fi
18111
18112found="no"
18113
18114	if test $found = "no" ; then
18115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18117		fi
18118
18119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121		fi
18122
18123		CFLAGS="$CFLAGS -Wtrigraphs"
18124
18125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18126printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18127		cacheid=xorg_cv_cc_flag__Wtrigraphs
18128		if eval test \${$cacheid+y}
18129then :
18130  printf %s "(cached) " >&6
18131else $as_nop
18132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133/* end confdefs.h.  */
18134int i;
18135int
18136main (void)
18137{
18138
18139  ;
18140  return 0;
18141}
18142_ACEOF
18143if ac_fn_c_try_link "$LINENO"
18144then :
18145  eval $cacheid=yes
18146else $as_nop
18147  eval $cacheid=no
18148fi
18149rm -f core conftest.err conftest.$ac_objext conftest.beam \
18150    conftest$ac_exeext conftest.$ac_ext
18151fi
18152
18153
18154		CFLAGS="$xorg_testset_save_CFLAGS"
18155
18156		eval supported=\$$cacheid
18157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18158printf "%s\n" "$supported" >&6; }
18159		if test "$supported" = "yes" ; then
18160			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18161			found="yes"
18162		fi
18163	fi
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179xorg_testset_save_CFLAGS="$CFLAGS"
18180
18181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18186then :
18187  printf %s "(cached) " >&6
18188else $as_nop
18189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190/* end confdefs.h.  */
18191int i;
18192_ACEOF
18193if ac_fn_c_try_compile "$LINENO"
18194then :
18195  xorg_cv_cc_flag_unknown_warning_option=yes
18196else $as_nop
18197  xorg_cv_cc_flag_unknown_warning_option=no
18198fi
18199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18200fi
18201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18204	CFLAGS="$xorg_testset_save_CFLAGS"
18205fi
18206
18207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18210	fi
18211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18215then :
18216  printf %s "(cached) " >&6
18217else $as_nop
18218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219/* end confdefs.h.  */
18220int i;
18221_ACEOF
18222if ac_fn_c_try_compile "$LINENO"
18223then :
18224  xorg_cv_cc_flag_unused_command_line_argument=yes
18225else $as_nop
18226  xorg_cv_cc_flag_unused_command_line_argument=no
18227fi
18228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18229fi
18230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18233	CFLAGS="$xorg_testset_save_CFLAGS"
18234fi
18235
18236found="no"
18237
18238	if test $found = "no" ; then
18239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18241		fi
18242
18243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245		fi
18246
18247		CFLAGS="$CFLAGS -Warray-bounds"
18248
18249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18250printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18251		cacheid=xorg_cv_cc_flag__Warray_bounds
18252		if eval test \${$cacheid+y}
18253then :
18254  printf %s "(cached) " >&6
18255else $as_nop
18256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257/* end confdefs.h.  */
18258int i;
18259int
18260main (void)
18261{
18262
18263  ;
18264  return 0;
18265}
18266_ACEOF
18267if ac_fn_c_try_link "$LINENO"
18268then :
18269  eval $cacheid=yes
18270else $as_nop
18271  eval $cacheid=no
18272fi
18273rm -f core conftest.err conftest.$ac_objext conftest.beam \
18274    conftest$ac_exeext conftest.$ac_ext
18275fi
18276
18277
18278		CFLAGS="$xorg_testset_save_CFLAGS"
18279
18280		eval supported=\$$cacheid
18281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18282printf "%s\n" "$supported" >&6; }
18283		if test "$supported" = "yes" ; then
18284			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18285			found="yes"
18286		fi
18287	fi
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303xorg_testset_save_CFLAGS="$CFLAGS"
18304
18305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18310then :
18311  printf %s "(cached) " >&6
18312else $as_nop
18313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314/* end confdefs.h.  */
18315int i;
18316_ACEOF
18317if ac_fn_c_try_compile "$LINENO"
18318then :
18319  xorg_cv_cc_flag_unknown_warning_option=yes
18320else $as_nop
18321  xorg_cv_cc_flag_unknown_warning_option=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18324fi
18325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18326printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18328	CFLAGS="$xorg_testset_save_CFLAGS"
18329fi
18330
18331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334	fi
18335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18337printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18338if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18339then :
18340  printf %s "(cached) " >&6
18341else $as_nop
18342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h.  */
18344int i;
18345_ACEOF
18346if ac_fn_c_try_compile "$LINENO"
18347then :
18348  xorg_cv_cc_flag_unused_command_line_argument=yes
18349else $as_nop
18350  xorg_cv_cc_flag_unused_command_line_argument=no
18351fi
18352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18353fi
18354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18355printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18357	CFLAGS="$xorg_testset_save_CFLAGS"
18358fi
18359
18360found="no"
18361
18362	if test $found = "no" ; then
18363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365		fi
18366
18367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369		fi
18370
18371		CFLAGS="$CFLAGS -Wwrite-strings"
18372
18373		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18374printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18375		cacheid=xorg_cv_cc_flag__Wwrite_strings
18376		if eval test \${$cacheid+y}
18377then :
18378  printf %s "(cached) " >&6
18379else $as_nop
18380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381/* end confdefs.h.  */
18382int i;
18383int
18384main (void)
18385{
18386
18387  ;
18388  return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_link "$LINENO"
18392then :
18393  eval $cacheid=yes
18394else $as_nop
18395  eval $cacheid=no
18396fi
18397rm -f core conftest.err conftest.$ac_objext conftest.beam \
18398    conftest$ac_exeext conftest.$ac_ext
18399fi
18400
18401
18402		CFLAGS="$xorg_testset_save_CFLAGS"
18403
18404		eval supported=\$$cacheid
18405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18406printf "%s\n" "$supported" >&6; }
18407		if test "$supported" = "yes" ; then
18408			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18409			found="yes"
18410		fi
18411	fi
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427xorg_testset_save_CFLAGS="$CFLAGS"
18428
18429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18434then :
18435  printf %s "(cached) " >&6
18436else $as_nop
18437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438/* end confdefs.h.  */
18439int i;
18440_ACEOF
18441if ac_fn_c_try_compile "$LINENO"
18442then :
18443  xorg_cv_cc_flag_unknown_warning_option=yes
18444else $as_nop
18445  xorg_cv_cc_flag_unknown_warning_option=no
18446fi
18447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18448fi
18449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18450printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18452	CFLAGS="$xorg_testset_save_CFLAGS"
18453fi
18454
18455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18458	fi
18459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18461printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18462if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18463then :
18464  printf %s "(cached) " >&6
18465else $as_nop
18466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467/* end confdefs.h.  */
18468int i;
18469_ACEOF
18470if ac_fn_c_try_compile "$LINENO"
18471then :
18472  xorg_cv_cc_flag_unused_command_line_argument=yes
18473else $as_nop
18474  xorg_cv_cc_flag_unused_command_line_argument=no
18475fi
18476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18477fi
18478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18479printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18481	CFLAGS="$xorg_testset_save_CFLAGS"
18482fi
18483
18484found="no"
18485
18486	if test $found = "no" ; then
18487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489		fi
18490
18491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493		fi
18494
18495		CFLAGS="$CFLAGS -Waddress"
18496
18497		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18498printf %s "checking if $CC supports -Waddress... " >&6; }
18499		cacheid=xorg_cv_cc_flag__Waddress
18500		if eval test \${$cacheid+y}
18501then :
18502  printf %s "(cached) " >&6
18503else $as_nop
18504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505/* end confdefs.h.  */
18506int i;
18507int
18508main (void)
18509{
18510
18511  ;
18512  return 0;
18513}
18514_ACEOF
18515if ac_fn_c_try_link "$LINENO"
18516then :
18517  eval $cacheid=yes
18518else $as_nop
18519  eval $cacheid=no
18520fi
18521rm -f core conftest.err conftest.$ac_objext conftest.beam \
18522    conftest$ac_exeext conftest.$ac_ext
18523fi
18524
18525
18526		CFLAGS="$xorg_testset_save_CFLAGS"
18527
18528		eval supported=\$$cacheid
18529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18530printf "%s\n" "$supported" >&6; }
18531		if test "$supported" = "yes" ; then
18532			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18533			found="yes"
18534		fi
18535	fi
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551xorg_testset_save_CFLAGS="$CFLAGS"
18552
18553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18554	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18556printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18557if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18558then :
18559  printf %s "(cached) " >&6
18560else $as_nop
18561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563int i;
18564_ACEOF
18565if ac_fn_c_try_compile "$LINENO"
18566then :
18567  xorg_cv_cc_flag_unknown_warning_option=yes
18568else $as_nop
18569  xorg_cv_cc_flag_unknown_warning_option=no
18570fi
18571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18572fi
18573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18574printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18576	CFLAGS="$xorg_testset_save_CFLAGS"
18577fi
18578
18579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18582	fi
18583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18585printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18586if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18587then :
18588  printf %s "(cached) " >&6
18589else $as_nop
18590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591/* end confdefs.h.  */
18592int i;
18593_ACEOF
18594if ac_fn_c_try_compile "$LINENO"
18595then :
18596  xorg_cv_cc_flag_unused_command_line_argument=yes
18597else $as_nop
18598  xorg_cv_cc_flag_unused_command_line_argument=no
18599fi
18600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18601fi
18602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18603printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18605	CFLAGS="$xorg_testset_save_CFLAGS"
18606fi
18607
18608found="no"
18609
18610	if test $found = "no" ; then
18611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18613		fi
18614
18615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18617		fi
18618
18619		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18620
18621		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18622printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18623		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18624		if eval test \${$cacheid+y}
18625then :
18626  printf %s "(cached) " >&6
18627else $as_nop
18628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629/* end confdefs.h.  */
18630int i;
18631int
18632main (void)
18633{
18634
18635  ;
18636  return 0;
18637}
18638_ACEOF
18639if ac_fn_c_try_link "$LINENO"
18640then :
18641  eval $cacheid=yes
18642else $as_nop
18643  eval $cacheid=no
18644fi
18645rm -f core conftest.err conftest.$ac_objext conftest.beam \
18646    conftest$ac_exeext conftest.$ac_ext
18647fi
18648
18649
18650		CFLAGS="$xorg_testset_save_CFLAGS"
18651
18652		eval supported=\$$cacheid
18653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18654printf "%s\n" "$supported" >&6; }
18655		if test "$supported" = "yes" ; then
18656			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18657			found="yes"
18658		fi
18659	fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675xorg_testset_save_CFLAGS="$CFLAGS"
18676
18677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18681if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18682then :
18683  printf %s "(cached) " >&6
18684else $as_nop
18685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686/* end confdefs.h.  */
18687int i;
18688_ACEOF
18689if ac_fn_c_try_compile "$LINENO"
18690then :
18691  xorg_cv_cc_flag_unknown_warning_option=yes
18692else $as_nop
18693  xorg_cv_cc_flag_unknown_warning_option=no
18694fi
18695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18696fi
18697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18698printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18700	CFLAGS="$xorg_testset_save_CFLAGS"
18701fi
18702
18703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18706	fi
18707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18709printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18710if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18711then :
18712  printf %s "(cached) " >&6
18713else $as_nop
18714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716int i;
18717_ACEOF
18718if ac_fn_c_try_compile "$LINENO"
18719then :
18720  xorg_cv_cc_flag_unused_command_line_argument=yes
18721else $as_nop
18722  xorg_cv_cc_flag_unused_command_line_argument=no
18723fi
18724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18725fi
18726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18727printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18729	CFLAGS="$xorg_testset_save_CFLAGS"
18730fi
18731
18732found="no"
18733
18734	if test $found = "no" ; then
18735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18737		fi
18738
18739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18741		fi
18742
18743		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18744
18745		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18746printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18747		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18748		if eval test \${$cacheid+y}
18749then :
18750  printf %s "(cached) " >&6
18751else $as_nop
18752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753/* end confdefs.h.  */
18754int i;
18755int
18756main (void)
18757{
18758
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763if ac_fn_c_try_link "$LINENO"
18764then :
18765  eval $cacheid=yes
18766else $as_nop
18767  eval $cacheid=no
18768fi
18769rm -f core conftest.err conftest.$ac_objext conftest.beam \
18770    conftest$ac_exeext conftest.$ac_ext
18771fi
18772
18773
18774		CFLAGS="$xorg_testset_save_CFLAGS"
18775
18776		eval supported=\$$cacheid
18777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18778printf "%s\n" "$supported" >&6; }
18779		if test "$supported" = "yes" ; then
18780			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18781			found="yes"
18782		fi
18783	fi
18784
18785
18786fi
18787
18788
18789
18790
18791
18792
18793
18794		CWARNFLAGS="$BASE_CFLAGS"
18795		if  test "x$GCC" = xyes ; then
18796		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18797		fi
18798
18799
18800
18801
18802
18803
18804
18805
18806# Check whether --enable-strict-compilation was given.
18807if test ${enable_strict_compilation+y}
18808then :
18809  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18810else $as_nop
18811  STRICT_COMPILE=no
18812fi
18813
18814
18815
18816
18817
18818
18819STRICT_CFLAGS=""
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833xorg_testset_save_CFLAGS="$CFLAGS"
18834
18835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18840then :
18841  printf %s "(cached) " >&6
18842else $as_nop
18843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844/* end confdefs.h.  */
18845int i;
18846_ACEOF
18847if ac_fn_c_try_compile "$LINENO"
18848then :
18849  xorg_cv_cc_flag_unknown_warning_option=yes
18850else $as_nop
18851  xorg_cv_cc_flag_unknown_warning_option=no
18852fi
18853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18854fi
18855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18858	CFLAGS="$xorg_testset_save_CFLAGS"
18859fi
18860
18861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18864	fi
18865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18869then :
18870  printf %s "(cached) " >&6
18871else $as_nop
18872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873/* end confdefs.h.  */
18874int i;
18875_ACEOF
18876if ac_fn_c_try_compile "$LINENO"
18877then :
18878  xorg_cv_cc_flag_unused_command_line_argument=yes
18879else $as_nop
18880  xorg_cv_cc_flag_unused_command_line_argument=no
18881fi
18882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18883fi
18884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18887	CFLAGS="$xorg_testset_save_CFLAGS"
18888fi
18889
18890found="no"
18891
18892	if test $found = "no" ; then
18893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18895		fi
18896
18897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18899		fi
18900
18901		CFLAGS="$CFLAGS -pedantic"
18902
18903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18904printf %s "checking if $CC supports -pedantic... " >&6; }
18905		cacheid=xorg_cv_cc_flag__pedantic
18906		if eval test \${$cacheid+y}
18907then :
18908  printf %s "(cached) " >&6
18909else $as_nop
18910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911/* end confdefs.h.  */
18912int i;
18913int
18914main (void)
18915{
18916
18917  ;
18918  return 0;
18919}
18920_ACEOF
18921if ac_fn_c_try_link "$LINENO"
18922then :
18923  eval $cacheid=yes
18924else $as_nop
18925  eval $cacheid=no
18926fi
18927rm -f core conftest.err conftest.$ac_objext conftest.beam \
18928    conftest$ac_exeext conftest.$ac_ext
18929fi
18930
18931
18932		CFLAGS="$xorg_testset_save_CFLAGS"
18933
18934		eval supported=\$$cacheid
18935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18936printf "%s\n" "$supported" >&6; }
18937		if test "$supported" = "yes" ; then
18938			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18939			found="yes"
18940		fi
18941	fi
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957xorg_testset_save_CFLAGS="$CFLAGS"
18958
18959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18964then :
18965  printf %s "(cached) " >&6
18966else $as_nop
18967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968/* end confdefs.h.  */
18969int i;
18970_ACEOF
18971if ac_fn_c_try_compile "$LINENO"
18972then :
18973  xorg_cv_cc_flag_unknown_warning_option=yes
18974else $as_nop
18975  xorg_cv_cc_flag_unknown_warning_option=no
18976fi
18977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18978fi
18979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18982	CFLAGS="$xorg_testset_save_CFLAGS"
18983fi
18984
18985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18988	fi
18989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18993then :
18994  printf %s "(cached) " >&6
18995else $as_nop
18996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997/* end confdefs.h.  */
18998int i;
18999_ACEOF
19000if ac_fn_c_try_compile "$LINENO"
19001then :
19002  xorg_cv_cc_flag_unused_command_line_argument=yes
19003else $as_nop
19004  xorg_cv_cc_flag_unused_command_line_argument=no
19005fi
19006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19007fi
19008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19011	CFLAGS="$xorg_testset_save_CFLAGS"
19012fi
19013
19014found="no"
19015
19016	if test $found = "no" ; then
19017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19019		fi
19020
19021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19023		fi
19024
19025		CFLAGS="$CFLAGS -Werror"
19026
19027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19028printf %s "checking if $CC supports -Werror... " >&6; }
19029		cacheid=xorg_cv_cc_flag__Werror
19030		if eval test \${$cacheid+y}
19031then :
19032  printf %s "(cached) " >&6
19033else $as_nop
19034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035/* end confdefs.h.  */
19036int i;
19037int
19038main (void)
19039{
19040
19041  ;
19042  return 0;
19043}
19044_ACEOF
19045if ac_fn_c_try_link "$LINENO"
19046then :
19047  eval $cacheid=yes
19048else $as_nop
19049  eval $cacheid=no
19050fi
19051rm -f core conftest.err conftest.$ac_objext conftest.beam \
19052    conftest$ac_exeext conftest.$ac_ext
19053fi
19054
19055
19056		CFLAGS="$xorg_testset_save_CFLAGS"
19057
19058		eval supported=\$$cacheid
19059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19060printf "%s\n" "$supported" >&6; }
19061		if test "$supported" = "yes" ; then
19062			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19063			found="yes"
19064		fi
19065	fi
19066
19067	if test $found = "no" ; then
19068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19070		fi
19071
19072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19074		fi
19075
19076		CFLAGS="$CFLAGS -errwarn"
19077
19078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19079printf %s "checking if $CC supports -errwarn... " >&6; }
19080		cacheid=xorg_cv_cc_flag__errwarn
19081		if eval test \${$cacheid+y}
19082then :
19083  printf %s "(cached) " >&6
19084else $as_nop
19085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086/* end confdefs.h.  */
19087int i;
19088int
19089main (void)
19090{
19091
19092  ;
19093  return 0;
19094}
19095_ACEOF
19096if ac_fn_c_try_link "$LINENO"
19097then :
19098  eval $cacheid=yes
19099else $as_nop
19100  eval $cacheid=no
19101fi
19102rm -f core conftest.err conftest.$ac_objext conftest.beam \
19103    conftest$ac_exeext conftest.$ac_ext
19104fi
19105
19106
19107		CFLAGS="$xorg_testset_save_CFLAGS"
19108
19109		eval supported=\$$cacheid
19110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19111printf "%s\n" "$supported" >&6; }
19112		if test "$supported" = "yes" ; then
19113			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19114			found="yes"
19115		fi
19116	fi
19117
19118
19119
19120# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19121# activate it with -Werror, so we add it here explicitly.
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135xorg_testset_save_CFLAGS="$CFLAGS"
19136
19137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19141if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19142then :
19143  printf %s "(cached) " >&6
19144else $as_nop
19145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146/* end confdefs.h.  */
19147int i;
19148_ACEOF
19149if ac_fn_c_try_compile "$LINENO"
19150then :
19151  xorg_cv_cc_flag_unknown_warning_option=yes
19152else $as_nop
19153  xorg_cv_cc_flag_unknown_warning_option=no
19154fi
19155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19156fi
19157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19160	CFLAGS="$xorg_testset_save_CFLAGS"
19161fi
19162
19163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19166	fi
19167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19170if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19171then :
19172  printf %s "(cached) " >&6
19173else $as_nop
19174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175/* end confdefs.h.  */
19176int i;
19177_ACEOF
19178if ac_fn_c_try_compile "$LINENO"
19179then :
19180  xorg_cv_cc_flag_unused_command_line_argument=yes
19181else $as_nop
19182  xorg_cv_cc_flag_unused_command_line_argument=no
19183fi
19184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19185fi
19186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19189	CFLAGS="$xorg_testset_save_CFLAGS"
19190fi
19191
19192found="no"
19193
19194	if test $found = "no" ; then
19195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19197		fi
19198
19199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19201		fi
19202
19203		CFLAGS="$CFLAGS -Werror=attributes"
19204
19205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19206printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19207		cacheid=xorg_cv_cc_flag__Werror_attributes
19208		if eval test \${$cacheid+y}
19209then :
19210  printf %s "(cached) " >&6
19211else $as_nop
19212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213/* end confdefs.h.  */
19214int i;
19215int
19216main (void)
19217{
19218
19219  ;
19220  return 0;
19221}
19222_ACEOF
19223if ac_fn_c_try_link "$LINENO"
19224then :
19225  eval $cacheid=yes
19226else $as_nop
19227  eval $cacheid=no
19228fi
19229rm -f core conftest.err conftest.$ac_objext conftest.beam \
19230    conftest$ac_exeext conftest.$ac_ext
19231fi
19232
19233
19234		CFLAGS="$xorg_testset_save_CFLAGS"
19235
19236		eval supported=\$$cacheid
19237		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19238printf "%s\n" "$supported" >&6; }
19239		if test "$supported" = "yes" ; then
19240			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19241			found="yes"
19242		fi
19243	fi
19244
19245
19246
19247if test "x$STRICT_COMPILE" = "xyes"; then
19248    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19249    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19250fi
19251
19252
19253
19254
19255
19256
19257cat >>confdefs.h <<_ACEOF
19258#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19259_ACEOF
19260
19261	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19262	if test "x$PVM" = "x"; then
19263		PVM="0"
19264	fi
19265
19266printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19267
19268	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19269	if test "x$PVP" = "x"; then
19270		PVP="0"
19271	fi
19272
19273printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19274
19275
19276
19277CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19278mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19279|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19280touch \$(top_srcdir)/ChangeLog; \
19281echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19282
19283
19284
19285
19286macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19287INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19288mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19289|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19290touch \$(top_srcdir)/INSTALL; \
19291echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19292
19293
19294
19295
19296
19297
19298case $host_os in
19299    solaris*)
19300        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19301        # check for a man page file found in later versions that use
19302        # traditional section numbers instead
19303        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19304printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19305if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19306then :
19307  printf %s "(cached) " >&6
19308else $as_nop
19309  test "$cross_compiling" = yes &&
19310  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19311if test -r "/usr/share/man/man7/attributes.7"; then
19312  ac_cv_file__usr_share_man_man7_attributes_7=yes
19313else
19314  ac_cv_file__usr_share_man_man7_attributes_7=no
19315fi
19316fi
19317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19318printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19319if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19320then :
19321  SYSV_MAN_SECTIONS=false
19322else $as_nop
19323  SYSV_MAN_SECTIONS=true
19324fi
19325
19326        ;;
19327    *) SYSV_MAN_SECTIONS=false ;;
19328esac
19329
19330if test x$APP_MAN_SUFFIX = x    ; then
19331    APP_MAN_SUFFIX=1
19332fi
19333if test x$APP_MAN_DIR = x    ; then
19334    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19335fi
19336
19337if test x$LIB_MAN_SUFFIX = x    ; then
19338    LIB_MAN_SUFFIX=3
19339fi
19340if test x$LIB_MAN_DIR = x    ; then
19341    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19342fi
19343
19344if test x$FILE_MAN_SUFFIX = x    ; then
19345    case $SYSV_MAN_SECTIONS in
19346	true)				FILE_MAN_SUFFIX=4  ;;
19347	*)				FILE_MAN_SUFFIX=5  ;;
19348    esac
19349fi
19350if test x$FILE_MAN_DIR = x    ; then
19351    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19352fi
19353
19354if test x$MISC_MAN_SUFFIX = x    ; then
19355    case $SYSV_MAN_SECTIONS in
19356	true)				MISC_MAN_SUFFIX=5  ;;
19357	*)				MISC_MAN_SUFFIX=7  ;;
19358    esac
19359fi
19360if test x$MISC_MAN_DIR = x    ; then
19361    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19362fi
19363
19364if test x$DRIVER_MAN_SUFFIX = x    ; then
19365    case $SYSV_MAN_SECTIONS in
19366	true)				DRIVER_MAN_SUFFIX=7  ;;
19367	*)				DRIVER_MAN_SUFFIX=4  ;;
19368    esac
19369fi
19370if test x$DRIVER_MAN_DIR = x    ; then
19371    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19372fi
19373
19374if test x$ADMIN_MAN_SUFFIX = x    ; then
19375    case $SYSV_MAN_SECTIONS in
19376	true)				ADMIN_MAN_SUFFIX=1m ;;
19377	*)				ADMIN_MAN_SUFFIX=8  ;;
19378    esac
19379fi
19380if test x$ADMIN_MAN_DIR = x    ; then
19381    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19382fi
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398XORG_MAN_PAGE="X Version 11"
19399
19400MAN_SUBSTS="\
19401	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19402	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19403	-e 's|__xservername__|Xorg|g' \
19404	-e 's|__xconfigfile__|xorg.conf|g' \
19405	-e 's|__projectroot__|\$(prefix)|g' \
19406	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19407	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19408	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19409	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19410	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19411	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19412	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19413
19414
19415
19416# Check whether --enable-silent-rules was given.
19417if test ${enable_silent_rules+y}
19418then :
19419  enableval=$enable_silent_rules;
19420fi
19421
19422case $enable_silent_rules in # (((
19423  yes) AM_DEFAULT_VERBOSITY=0;;
19424   no) AM_DEFAULT_VERBOSITY=1;;
19425    *) AM_DEFAULT_VERBOSITY=0;;
19426esac
19427am_make=${MAKE-make}
19428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19429printf %s "checking whether $am_make supports nested variables... " >&6; }
19430if test ${am_cv_make_support_nested_variables+y}
19431then :
19432  printf %s "(cached) " >&6
19433else $as_nop
19434  if printf "%s\n" 'TRUE=$(BAR$(V))
19435BAR0=false
19436BAR1=true
19437V=1
19438am__doit:
19439	@$(TRUE)
19440.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19441  am_cv_make_support_nested_variables=yes
19442else
19443  am_cv_make_support_nested_variables=no
19444fi
19445fi
19446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19447printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19448if test $am_cv_make_support_nested_variables = yes; then
19449    AM_V='$(V)'
19450  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19451else
19452  AM_V=$AM_DEFAULT_VERBOSITY
19453  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19454fi
19455AM_BACKSLASH='\'
19456
19457
19458
19459
19460# Check whether --enable-docs was given.
19461if test ${enable_docs+y}
19462then :
19463  enableval=$enable_docs; build_docs=$enableval
19464else $as_nop
19465  build_docs=yes
19466fi
19467
19468
19469 if test x$build_docs = xyes; then
19470  ENABLE_DOCS_TRUE=
19471  ENABLE_DOCS_FALSE='#'
19472else
19473  ENABLE_DOCS_TRUE='#'
19474  ENABLE_DOCS_FALSE=
19475fi
19476
19477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19478printf %s "checking whether to build documentation... " >&6; }
19479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19480printf "%s\n" "$build_docs" >&6; }
19481
19482
19483
19484
19485
19486# Check whether --with-xmlto was given.
19487if test ${with_xmlto+y}
19488then :
19489  withval=$with_xmlto; use_xmlto=$withval
19490else $as_nop
19491  use_xmlto=auto
19492fi
19493
19494
19495
19496if test "x$use_xmlto" = x"auto"; then
19497   # Extract the first word of "xmlto", so it can be a program name with args.
19498set dummy xmlto; ac_word=$2
19499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19500printf %s "checking for $ac_word... " >&6; }
19501if test ${ac_cv_path_XMLTO+y}
19502then :
19503  printf %s "(cached) " >&6
19504else $as_nop
19505  case $XMLTO in
19506  [\\/]* | ?:[\\/]*)
19507  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19508  ;;
19509  *)
19510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511for as_dir in $PATH
19512do
19513  IFS=$as_save_IFS
19514  case $as_dir in #(((
19515    '') as_dir=./ ;;
19516    */) ;;
19517    *) as_dir=$as_dir/ ;;
19518  esac
19519    for ac_exec_ext in '' $ac_executable_extensions; do
19520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19521    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19522    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19523    break 2
19524  fi
19525done
19526  done
19527IFS=$as_save_IFS
19528
19529  ;;
19530esac
19531fi
19532XMLTO=$ac_cv_path_XMLTO
19533if test -n "$XMLTO"; then
19534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19535printf "%s\n" "$XMLTO" >&6; }
19536else
19537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19538printf "%s\n" "no" >&6; }
19539fi
19540
19541
19542   if test "x$XMLTO" = "x"; then
19543        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19544printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19545	have_xmlto=no
19546   else
19547        have_xmlto=yes
19548   fi
19549elif test "x$use_xmlto" = x"yes" ; then
19550   # Extract the first word of "xmlto", so it can be a program name with args.
19551set dummy xmlto; ac_word=$2
19552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19553printf %s "checking for $ac_word... " >&6; }
19554if test ${ac_cv_path_XMLTO+y}
19555then :
19556  printf %s "(cached) " >&6
19557else $as_nop
19558  case $XMLTO in
19559  [\\/]* | ?:[\\/]*)
19560  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19561  ;;
19562  *)
19563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19564for as_dir in $PATH
19565do
19566  IFS=$as_save_IFS
19567  case $as_dir in #(((
19568    '') as_dir=./ ;;
19569    */) ;;
19570    *) as_dir=$as_dir/ ;;
19571  esac
19572    for ac_exec_ext in '' $ac_executable_extensions; do
19573  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19574    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19575    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19576    break 2
19577  fi
19578done
19579  done
19580IFS=$as_save_IFS
19581
19582  ;;
19583esac
19584fi
19585XMLTO=$ac_cv_path_XMLTO
19586if test -n "$XMLTO"; then
19587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19588printf "%s\n" "$XMLTO" >&6; }
19589else
19590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19591printf "%s\n" "no" >&6; }
19592fi
19593
19594
19595   if test "x$XMLTO" = "x"; then
19596        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19597   fi
19598   have_xmlto=yes
19599elif test "x$use_xmlto" = x"no" ; then
19600   if test "x$XMLTO" != "x"; then
19601      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19602printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19603   fi
19604   have_xmlto=no
19605else
19606   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19607fi
19608
19609# Test for a minimum version of xmlto, if provided.
19610if test "$have_xmlto" = yes; then
19611    # scrape the xmlto version
19612    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19613printf %s "checking the xmlto version... " >&6; }
19614    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19615    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19616printf "%s\n" "$xmlto_version" >&6; }
19617    as_arg_v1=$xmlto_version
19618as_arg_v2=0.0.22
19619awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19620case $? in #(
19621  1) :
19622    if test "x$use_xmlto" = xauto; then
19623            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19624printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19625            have_xmlto=no
19626        else
19627            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19628        fi ;; #(
19629  0) :
19630     ;; #(
19631  2) :
19632     ;; #(
19633  *) :
19634     ;;
19635esac
19636fi
19637
19638# Test for the ability of xmlto to generate a text target
19639#
19640# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19641# following test for empty XML docbook files.
19642# For compatibility reasons use the following empty XML docbook file and if
19643# it fails try it again with a non-empty XML file.
19644have_xmlto_text=no
19645cat > conftest.xml << "EOF"
19646EOF
19647if test "$have_xmlto" = yes
19648then :
19649  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19650then :
19651  have_xmlto_text=yes
19652else $as_nop
19653  # Try it again with a non-empty XML file.
19654              cat > conftest.xml << "EOF"
19655<x></x>
19656EOF
19657              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19658then :
19659  have_xmlto_text=yes
19660else $as_nop
19661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19662printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19663fi
19664fi
19665fi
19666rm -f conftest.xml
19667 if test $have_xmlto_text = yes; then
19668  HAVE_XMLTO_TEXT_TRUE=
19669  HAVE_XMLTO_TEXT_FALSE='#'
19670else
19671  HAVE_XMLTO_TEXT_TRUE='#'
19672  HAVE_XMLTO_TEXT_FALSE=
19673fi
19674
19675 if test "$have_xmlto" = yes; then
19676  HAVE_XMLTO_TRUE=
19677  HAVE_XMLTO_FALSE='#'
19678else
19679  HAVE_XMLTO_TRUE='#'
19680  HAVE_XMLTO_FALSE=
19681fi
19682
19683
19684
19685
19686
19687
19688# Check whether --with-fop was given.
19689if test ${with_fop+y}
19690then :
19691  withval=$with_fop; use_fop=$withval
19692else $as_nop
19693  use_fop=auto
19694fi
19695
19696
19697
19698if test "x$use_fop" = x"auto"; then
19699   # Extract the first word of "fop", so it can be a program name with args.
19700set dummy fop; ac_word=$2
19701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19702printf %s "checking for $ac_word... " >&6; }
19703if test ${ac_cv_path_FOP+y}
19704then :
19705  printf %s "(cached) " >&6
19706else $as_nop
19707  case $FOP in
19708  [\\/]* | ?:[\\/]*)
19709  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19710  ;;
19711  *)
19712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19713for as_dir in $PATH
19714do
19715  IFS=$as_save_IFS
19716  case $as_dir in #(((
19717    '') as_dir=./ ;;
19718    */) ;;
19719    *) as_dir=$as_dir/ ;;
19720  esac
19721    for ac_exec_ext in '' $ac_executable_extensions; do
19722  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19723    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19724    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19725    break 2
19726  fi
19727done
19728  done
19729IFS=$as_save_IFS
19730
19731  ;;
19732esac
19733fi
19734FOP=$ac_cv_path_FOP
19735if test -n "$FOP"; then
19736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19737printf "%s\n" "$FOP" >&6; }
19738else
19739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19740printf "%s\n" "no" >&6; }
19741fi
19742
19743
19744   if test "x$FOP" = "x"; then
19745        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19746printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19747	have_fop=no
19748   else
19749        have_fop=yes
19750   fi
19751elif test "x$use_fop" = x"yes" ; then
19752   # Extract the first word of "fop", so it can be a program name with args.
19753set dummy fop; ac_word=$2
19754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19755printf %s "checking for $ac_word... " >&6; }
19756if test ${ac_cv_path_FOP+y}
19757then :
19758  printf %s "(cached) " >&6
19759else $as_nop
19760  case $FOP in
19761  [\\/]* | ?:[\\/]*)
19762  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19763  ;;
19764  *)
19765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766for as_dir in $PATH
19767do
19768  IFS=$as_save_IFS
19769  case $as_dir in #(((
19770    '') as_dir=./ ;;
19771    */) ;;
19772    *) as_dir=$as_dir/ ;;
19773  esac
19774    for ac_exec_ext in '' $ac_executable_extensions; do
19775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19776    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19778    break 2
19779  fi
19780done
19781  done
19782IFS=$as_save_IFS
19783
19784  ;;
19785esac
19786fi
19787FOP=$ac_cv_path_FOP
19788if test -n "$FOP"; then
19789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19790printf "%s\n" "$FOP" >&6; }
19791else
19792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19793printf "%s\n" "no" >&6; }
19794fi
19795
19796
19797   if test "x$FOP" = "x"; then
19798        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19799   fi
19800   have_fop=yes
19801elif test "x$use_fop" = x"no" ; then
19802   if test "x$FOP" != "x"; then
19803      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19804printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19805   fi
19806   have_fop=no
19807else
19808   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19809fi
19810
19811# Test for a minimum version of fop, if provided.
19812
19813 if test "$have_fop" = yes; then
19814  HAVE_FOP_TRUE=
19815  HAVE_FOP_FALSE='#'
19816else
19817  HAVE_FOP_TRUE='#'
19818  HAVE_FOP_FALSE=
19819fi
19820
19821
19822
19823
19824# Preserves the interface, should it be implemented later
19825
19826
19827
19828# Check whether --with-xsltproc was given.
19829if test ${with_xsltproc+y}
19830then :
19831  withval=$with_xsltproc; use_xsltproc=$withval
19832else $as_nop
19833  use_xsltproc=auto
19834fi
19835
19836
19837
19838if test "x$use_xsltproc" = x"auto"; then
19839   # Extract the first word of "xsltproc", so it can be a program name with args.
19840set dummy xsltproc; ac_word=$2
19841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19842printf %s "checking for $ac_word... " >&6; }
19843if test ${ac_cv_path_XSLTPROC+y}
19844then :
19845  printf %s "(cached) " >&6
19846else $as_nop
19847  case $XSLTPROC in
19848  [\\/]* | ?:[\\/]*)
19849  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19850  ;;
19851  *)
19852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853for as_dir in $PATH
19854do
19855  IFS=$as_save_IFS
19856  case $as_dir in #(((
19857    '') as_dir=./ ;;
19858    */) ;;
19859    *) as_dir=$as_dir/ ;;
19860  esac
19861    for ac_exec_ext in '' $ac_executable_extensions; do
19862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19863    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19865    break 2
19866  fi
19867done
19868  done
19869IFS=$as_save_IFS
19870
19871  ;;
19872esac
19873fi
19874XSLTPROC=$ac_cv_path_XSLTPROC
19875if test -n "$XSLTPROC"; then
19876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19877printf "%s\n" "$XSLTPROC" >&6; }
19878else
19879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19880printf "%s\n" "no" >&6; }
19881fi
19882
19883
19884   if test "x$XSLTPROC" = "x"; then
19885        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19886printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19887	have_xsltproc=no
19888   else
19889        have_xsltproc=yes
19890   fi
19891elif test "x$use_xsltproc" = x"yes" ; then
19892   # Extract the first word of "xsltproc", so it can be a program name with args.
19893set dummy xsltproc; ac_word=$2
19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19895printf %s "checking for $ac_word... " >&6; }
19896if test ${ac_cv_path_XSLTPROC+y}
19897then :
19898  printf %s "(cached) " >&6
19899else $as_nop
19900  case $XSLTPROC in
19901  [\\/]* | ?:[\\/]*)
19902  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19903  ;;
19904  *)
19905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906for as_dir in $PATH
19907do
19908  IFS=$as_save_IFS
19909  case $as_dir in #(((
19910    '') as_dir=./ ;;
19911    */) ;;
19912    *) as_dir=$as_dir/ ;;
19913  esac
19914    for ac_exec_ext in '' $ac_executable_extensions; do
19915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19916    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19918    break 2
19919  fi
19920done
19921  done
19922IFS=$as_save_IFS
19923
19924  ;;
19925esac
19926fi
19927XSLTPROC=$ac_cv_path_XSLTPROC
19928if test -n "$XSLTPROC"; then
19929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19930printf "%s\n" "$XSLTPROC" >&6; }
19931else
19932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19933printf "%s\n" "no" >&6; }
19934fi
19935
19936
19937   if test "x$XSLTPROC" = "x"; then
19938        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19939   fi
19940   have_xsltproc=yes
19941elif test "x$use_xsltproc" = x"no" ; then
19942   if test "x$XSLTPROC" != "x"; then
19943      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19944printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19945   fi
19946   have_xsltproc=no
19947else
19948   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19949fi
19950
19951 if test "$have_xsltproc" = yes; then
19952  HAVE_XSLTPROC_TRUE=
19953  HAVE_XSLTPROC_FALSE='#'
19954else
19955  HAVE_XSLTPROC_TRUE='#'
19956  HAVE_XSLTPROC_FALSE=
19957fi
19958
19959
19960
19961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19962printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19963XORG_SGML_PATH=
19964if test -n "$PKG_CONFIG" && \
19965    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19966  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19967  ac_status=$?
19968  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19969  test $ac_status = 0; }; then
19970  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19971else
19972  :
19973
19974fi
19975
19976# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19977# the path and the name of the doc stylesheet
19978if test "x$XORG_SGML_PATH" != "x" ; then
19979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19980printf "%s\n" "$XORG_SGML_PATH" >&6; }
19981   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19982   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19983else
19984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985printf "%s\n" "no" >&6; }
19986fi
19987
19988
19989
19990
19991 if test "x$XSL_STYLESHEET" != "x"; then
19992  HAVE_STYLESHEETS_TRUE=
19993  HAVE_STYLESHEETS_FALSE='#'
19994else
19995  HAVE_STYLESHEETS_TRUE='#'
19996  HAVE_STYLESHEETS_FALSE=
19997fi
19998
19999
20000
20001# Obtain compiler/linker options for dependencies
20002
20003pkg_failed=no
20004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5
20005printf %s "checking for XMU... " >&6; }
20006
20007if test -n "$XMU_CFLAGS"; then
20008    pkg_cv_XMU_CFLAGS="$XMU_CFLAGS"
20009 elif test -n "$PKG_CONFIG"; then
20010    if test -n "$PKG_CONFIG" && \
20011    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
20012  ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
20013  ac_status=$?
20014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015  test $ac_status = 0; }; then
20016  pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null`
20017		      test "x$?" != "x0" && pkg_failed=yes
20018else
20019  pkg_failed=yes
20020fi
20021 else
20022    pkg_failed=untried
20023fi
20024if test -n "$XMU_LIBS"; then
20025    pkg_cv_XMU_LIBS="$XMU_LIBS"
20026 elif test -n "$PKG_CONFIG"; then
20027    if test -n "$PKG_CONFIG" && \
20028    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
20029  ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
20030  ac_status=$?
20031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032  test $ac_status = 0; }; then
20033  pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null`
20034		      test "x$?" != "x0" && pkg_failed=yes
20035else
20036  pkg_failed=yes
20037fi
20038 else
20039    pkg_failed=untried
20040fi
20041
20042
20043
20044if test $pkg_failed = yes; then
20045   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046printf "%s\n" "no" >&6; }
20047
20048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20049        _pkg_short_errors_supported=yes
20050else
20051        _pkg_short_errors_supported=no
20052fi
20053        if test $_pkg_short_errors_supported = yes; then
20054	        XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1`
20055        else
20056	        XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1`
20057        fi
20058	# Put the nasty error message in config.log where it belongs
20059	echo "$XMU_PKG_ERRORS" >&5
20060
20061	as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met:
20062
20063$XMU_PKG_ERRORS
20064
20065Consider adjusting the PKG_CONFIG_PATH environment variable if you
20066installed software in a non-standard prefix.
20067
20068Alternatively, you may set the environment variables XMU_CFLAGS
20069and XMU_LIBS to avoid the need to call pkg-config.
20070See the pkg-config man page for more details." "$LINENO" 5
20071elif test $pkg_failed = untried; then
20072     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20073printf "%s\n" "no" >&6; }
20074	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20075printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20076as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20077is in your PATH or set the PKG_CONFIG environment variable to the full
20078path to pkg-config.
20079
20080Alternatively, you may set the environment variables XMU_CFLAGS
20081and XMU_LIBS to avoid the need to call pkg-config.
20082See the pkg-config man page for more details.
20083
20084To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20085See \`config.log' for more details" "$LINENO" 5; }
20086else
20087	XMU_CFLAGS=$pkg_cv_XMU_CFLAGS
20088	XMU_LIBS=$pkg_cv_XMU_LIBS
20089        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20090printf "%s\n" "yes" >&6; }
20091
20092fi
20093
20094pkg_failed=no
20095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5
20096printf %s "checking for XMUU... " >&6; }
20097
20098if test -n "$XMUU_CFLAGS"; then
20099    pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS"
20100 elif test -n "$PKG_CONFIG"; then
20101    if test -n "$PKG_CONFIG" && \
20102    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
20103  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
20104  ac_status=$?
20105  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106  test $ac_status = 0; }; then
20107  pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
20108		      test "x$?" != "x0" && pkg_failed=yes
20109else
20110  pkg_failed=yes
20111fi
20112 else
20113    pkg_failed=untried
20114fi
20115if test -n "$XMUU_LIBS"; then
20116    pkg_cv_XMUU_LIBS="$XMUU_LIBS"
20117 elif test -n "$PKG_CONFIG"; then
20118    if test -n "$PKG_CONFIG" && \
20119    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
20120  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
20121  ac_status=$?
20122  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20123  test $ac_status = 0; }; then
20124  pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
20125		      test "x$?" != "x0" && pkg_failed=yes
20126else
20127  pkg_failed=yes
20128fi
20129 else
20130    pkg_failed=untried
20131fi
20132
20133
20134
20135if test $pkg_failed = yes; then
20136   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20137printf "%s\n" "no" >&6; }
20138
20139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20140        _pkg_short_errors_supported=yes
20141else
20142        _pkg_short_errors_supported=no
20143fi
20144        if test $_pkg_short_errors_supported = yes; then
20145	        XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
20146        else
20147	        XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
20148        fi
20149	# Put the nasty error message in config.log where it belongs
20150	echo "$XMUU_PKG_ERRORS" >&5
20151
20152	as_fn_error $? "Package requirements (x11) were not met:
20153
20154$XMUU_PKG_ERRORS
20155
20156Consider adjusting the PKG_CONFIG_PATH environment variable if you
20157installed software in a non-standard prefix.
20158
20159Alternatively, you may set the environment variables XMUU_CFLAGS
20160and XMUU_LIBS to avoid the need to call pkg-config.
20161See the pkg-config man page for more details." "$LINENO" 5
20162elif test $pkg_failed = untried; then
20163     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20164printf "%s\n" "no" >&6; }
20165	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20167as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20168is in your PATH or set the PKG_CONFIG environment variable to the full
20169path to pkg-config.
20170
20171Alternatively, you may set the environment variables XMUU_CFLAGS
20172and XMUU_LIBS to avoid the need to call pkg-config.
20173See the pkg-config man page for more details.
20174
20175To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20176See \`config.log' for more details" "$LINENO" 5; }
20177else
20178	XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS
20179	XMUU_LIBS=$pkg_cv_XMUU_LIBS
20180        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20181printf "%s\n" "yes" >&6; }
20182
20183fi
20184
20185# Checks for library functions.
20186ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20187if test "x$ac_cv_func_uname" = xyes
20188then :
20189  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
20190
20191fi
20192
20193ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20194if test "x$ac_cv_func_reallocarray" = xyes
20195then :
20196  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20197
20198else $as_nop
20199  case " $LIBOBJS " in
20200  *" reallocarray.$ac_objext "* ) ;;
20201  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20202 ;;
20203esac
20204
20205fi
20206
20207
20208# Allow checking code with lint, sparse, etc.
20209
20210
20211
20212
20213
20214# Check whether --with-lint was given.
20215if test ${with_lint+y}
20216then :
20217  withval=$with_lint; use_lint=$withval
20218else $as_nop
20219  use_lint=no
20220fi
20221
20222
20223# Obtain platform specific info like program name and options
20224# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20225case $host_os in
20226  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20227	lint_name=splint
20228	lint_options="-badflag"
20229	;;
20230  *freebsd* | *netbsd*)
20231	lint_name=lint
20232	lint_options="-u -b"
20233	;;
20234  *solaris*)
20235	lint_name=lint
20236	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20237	;;
20238esac
20239
20240# Test for the presence of the program (either guessed by the code or spelled out by the user)
20241if test "x$use_lint" = x"yes" ; then
20242   # Extract the first word of "$lint_name", so it can be a program name with args.
20243set dummy $lint_name; ac_word=$2
20244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20245printf %s "checking for $ac_word... " >&6; }
20246if test ${ac_cv_path_LINT+y}
20247then :
20248  printf %s "(cached) " >&6
20249else $as_nop
20250  case $LINT in
20251  [\\/]* | ?:[\\/]*)
20252  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20253  ;;
20254  *)
20255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20256for as_dir in $PATH
20257do
20258  IFS=$as_save_IFS
20259  case $as_dir in #(((
20260    '') as_dir=./ ;;
20261    */) ;;
20262    *) as_dir=$as_dir/ ;;
20263  esac
20264    for ac_exec_ext in '' $ac_executable_extensions; do
20265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20266    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20268    break 2
20269  fi
20270done
20271  done
20272IFS=$as_save_IFS
20273
20274  ;;
20275esac
20276fi
20277LINT=$ac_cv_path_LINT
20278if test -n "$LINT"; then
20279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20280printf "%s\n" "$LINT" >&6; }
20281else
20282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283printf "%s\n" "no" >&6; }
20284fi
20285
20286
20287   if test "x$LINT" = "x"; then
20288        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20289   fi
20290elif test "x$use_lint" = x"no" ; then
20291   if test "x$LINT" != "x"; then
20292      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20293printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20294   fi
20295else
20296   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20297fi
20298
20299# User supplied flags override default flags
20300if test "x$LINT_FLAGS" != "x"; then
20301   lint_options=$LINT_FLAGS
20302fi
20303
20304LINT_FLAGS=$lint_options
20305
20306 if test "x$LINT" != x; then
20307  LINT_TRUE=
20308  LINT_FALSE='#'
20309else
20310  LINT_TRUE='#'
20311  LINT_FALSE=
20312fi
20313
20314
20315
20316
20317
20318# Check whether --enable-lint-library was given.
20319if test ${enable_lint_library+y}
20320then :
20321  enableval=$enable_lint_library; make_lint_lib=$enableval
20322else $as_nop
20323  make_lint_lib=no
20324fi
20325
20326
20327if test "x$make_lint_lib" = x"yes" ; then
20328   LINTLIB=llib-lXmu.ln
20329   if test "x$LINT" = "x"; then
20330        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20331   fi
20332elif test "x$make_lint_lib" != x"no" ; then
20333   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20334fi
20335
20336
20337 if test x$make_lint_lib != xno; then
20338  MAKE_LINT_LIB_TRUE=
20339  MAKE_LINT_LIB_FALSE='#'
20340else
20341  MAKE_LINT_LIB_TRUE='#'
20342  MAKE_LINT_LIB_FALSE=
20343fi
20344
20345
20346
20347LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
20348
20349
20350ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile test/Makefile xmu.pc xmuu.pc"
20351
20352cat >confcache <<\_ACEOF
20353# This file is a shell script that caches the results of configure
20354# tests run on this system so they can be shared between configure
20355# scripts and configure runs, see configure's option --config-cache.
20356# It is not useful on other systems.  If it contains results you don't
20357# want to keep, you may remove or edit it.
20358#
20359# config.status only pays attention to the cache file if you give it
20360# the --recheck option to rerun configure.
20361#
20362# `ac_cv_env_foo' variables (set or unset) will be overridden when
20363# loading this file, other *unset* `ac_cv_foo' will be assigned the
20364# following values.
20365
20366_ACEOF
20367
20368# The following way of writing the cache mishandles newlines in values,
20369# but we know of no workaround that is simple, portable, and efficient.
20370# So, we kill variables containing newlines.
20371# Ultrix sh set writes to stderr and can't be redirected directly,
20372# and sets the high bit in the cache file unless we assign to the vars.
20373(
20374  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20375    eval ac_val=\$$ac_var
20376    case $ac_val in #(
20377    *${as_nl}*)
20378      case $ac_var in #(
20379      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20380printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20381      esac
20382      case $ac_var in #(
20383      _ | IFS | as_nl) ;; #(
20384      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20385      *) { eval $ac_var=; unset $ac_var;} ;;
20386      esac ;;
20387    esac
20388  done
20389
20390  (set) 2>&1 |
20391    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392    *${as_nl}ac_space=\ *)
20393      # `set' does not quote correctly, so add quotes: double-quote
20394      # substitution turns \\\\ into \\, and sed turns \\ into \.
20395      sed -n \
20396	"s/'/'\\\\''/g;
20397	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20398      ;; #(
20399    *)
20400      # `set' quotes correctly as required by POSIX, so do not add quotes.
20401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20402      ;;
20403    esac |
20404    sort
20405) |
20406  sed '
20407     /^ac_cv_env_/b end
20408     t clear
20409     :clear
20410     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20411     t end
20412     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20413     :end' >>confcache
20414if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415  if test -w "$cache_file"; then
20416    if test "x$cache_file" != "x/dev/null"; then
20417      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20418printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20419      if test ! -f "$cache_file" || test -h "$cache_file"; then
20420	cat confcache >"$cache_file"
20421      else
20422        case $cache_file in #(
20423        */* | ?:*)
20424	  mv -f confcache "$cache_file"$$ &&
20425	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20426        *)
20427	  mv -f confcache "$cache_file" ;;
20428	esac
20429      fi
20430    fi
20431  else
20432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20433printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20434  fi
20435fi
20436rm -f confcache
20437
20438test "x$prefix" = xNONE && prefix=$ac_default_prefix
20439# Let make expand exec_prefix.
20440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20441
20442DEFS=-DHAVE_CONFIG_H
20443
20444ac_libobjs=
20445ac_ltlibobjs=
20446U=
20447for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20448  # 1. Remove the extension, and $U if already installed.
20449  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20450  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20451  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20452  #    will be set to the directory where LIBOBJS objects are built.
20453  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20454  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20455done
20456LIBOBJS=$ac_libobjs
20457
20458LTLIBOBJS=$ac_ltlibobjs
20459
20460
20461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20462printf %s "checking that generated files are newer than configure... " >&6; }
20463   if test -n "$am_sleep_pid"; then
20464     # Hide warnings about reused PIDs.
20465     wait $am_sleep_pid 2>/dev/null
20466   fi
20467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20468printf "%s\n" "done" >&6; }
20469if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20470  as_fn_error $? "conditional \"AMDEP\" was never defined.
20471Usually this means the macro was only invoked conditionally." "$LINENO" 5
20472fi
20473if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20474  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20475Usually this means the macro was only invoked conditionally." "$LINENO" 5
20476fi
20477 if test -n "$EXEEXT"; then
20478  am__EXEEXT_TRUE=
20479  am__EXEEXT_FALSE='#'
20480else
20481  am__EXEEXT_TRUE='#'
20482  am__EXEEXT_FALSE=
20483fi
20484
20485if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20486  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20487Usually this means the macro was only invoked conditionally." "$LINENO" 5
20488fi
20489if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20490  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20491Usually this means the macro was only invoked conditionally." "$LINENO" 5
20492fi
20493if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20494  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20495Usually this means the macro was only invoked conditionally." "$LINENO" 5
20496fi
20497if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20498  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20499Usually this means the macro was only invoked conditionally." "$LINENO" 5
20500fi
20501if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20502  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20503Usually this means the macro was only invoked conditionally." "$LINENO" 5
20504fi
20505if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20506  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20507Usually this means the macro was only invoked conditionally." "$LINENO" 5
20508fi
20509if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20510  as_fn_error $? "conditional \"LINT\" was never defined.
20511Usually this means the macro was only invoked conditionally." "$LINENO" 5
20512fi
20513if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20514  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20515Usually this means the macro was only invoked conditionally." "$LINENO" 5
20516fi
20517
20518: "${CONFIG_STATUS=./config.status}"
20519ac_write_fail=0
20520ac_clean_files_save=$ac_clean_files
20521ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20523printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20524as_write_fail=0
20525cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20526#! $SHELL
20527# Generated by $as_me.
20528# Run this file to recreate the current configuration.
20529# Compiler output produced by configure, useful for debugging
20530# configure, is in config.log if it exists.
20531
20532debug=false
20533ac_cs_recheck=false
20534ac_cs_silent=false
20535
20536SHELL=\${CONFIG_SHELL-$SHELL}
20537export SHELL
20538_ASEOF
20539cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20540## -------------------- ##
20541## M4sh Initialization. ##
20542## -------------------- ##
20543
20544# Be more Bourne compatible
20545DUALCASE=1; export DUALCASE # for MKS sh
20546as_nop=:
20547if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20548then :
20549  emulate sh
20550  NULLCMD=:
20551  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20552  # is contrary to our usage.  Disable this feature.
20553  alias -g '${1+"$@"}'='"$@"'
20554  setopt NO_GLOB_SUBST
20555else $as_nop
20556  case `(set -o) 2>/dev/null` in #(
20557  *posix*) :
20558    set -o posix ;; #(
20559  *) :
20560     ;;
20561esac
20562fi
20563
20564
20565
20566# Reset variables that may have inherited troublesome values from
20567# the environment.
20568
20569# IFS needs to be set, to space, tab, and newline, in precisely that order.
20570# (If _AS_PATH_WALK were called with IFS unset, it would have the
20571# side effect of setting IFS to empty, thus disabling word splitting.)
20572# Quoting is to prevent editors from complaining about space-tab.
20573as_nl='
20574'
20575export as_nl
20576IFS=" ""	$as_nl"
20577
20578PS1='$ '
20579PS2='> '
20580PS4='+ '
20581
20582# Ensure predictable behavior from utilities with locale-dependent output.
20583LC_ALL=C
20584export LC_ALL
20585LANGUAGE=C
20586export LANGUAGE
20587
20588# We cannot yet rely on "unset" to work, but we need these variables
20589# to be unset--not just set to an empty or harmless value--now, to
20590# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20591# also avoids known problems related to "unset" and subshell syntax
20592# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20593for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20594do eval test \${$as_var+y} \
20595  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20596done
20597
20598# Ensure that fds 0, 1, and 2 are open.
20599if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20600if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20601if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20602
20603# The user is always right.
20604if ${PATH_SEPARATOR+false} :; then
20605  PATH_SEPARATOR=:
20606  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20607    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20608      PATH_SEPARATOR=';'
20609  }
20610fi
20611
20612
20613# Find who we are.  Look in the path if we contain no directory separator.
20614as_myself=
20615case $0 in #((
20616  *[\\/]* ) as_myself=$0 ;;
20617  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618for as_dir in $PATH
20619do
20620  IFS=$as_save_IFS
20621  case $as_dir in #(((
20622    '') as_dir=./ ;;
20623    */) ;;
20624    *) as_dir=$as_dir/ ;;
20625  esac
20626    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20627  done
20628IFS=$as_save_IFS
20629
20630     ;;
20631esac
20632# We did not find ourselves, most probably we were run as `sh COMMAND'
20633# in which case we are not to be found in the path.
20634if test "x$as_myself" = x; then
20635  as_myself=$0
20636fi
20637if test ! -f "$as_myself"; then
20638  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20639  exit 1
20640fi
20641
20642
20643
20644# as_fn_error STATUS ERROR [LINENO LOG_FD]
20645# ----------------------------------------
20646# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20647# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20648# script with STATUS, using 1 if that was 0.
20649as_fn_error ()
20650{
20651  as_status=$1; test $as_status -eq 0 && as_status=1
20652  if test "$4"; then
20653    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20654    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20655  fi
20656  printf "%s\n" "$as_me: error: $2" >&2
20657  as_fn_exit $as_status
20658} # as_fn_error
20659
20660
20661
20662# as_fn_set_status STATUS
20663# -----------------------
20664# Set $? to STATUS, without forking.
20665as_fn_set_status ()
20666{
20667  return $1
20668} # as_fn_set_status
20669
20670# as_fn_exit STATUS
20671# -----------------
20672# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20673as_fn_exit ()
20674{
20675  set +e
20676  as_fn_set_status $1
20677  exit $1
20678} # as_fn_exit
20679
20680# as_fn_unset VAR
20681# ---------------
20682# Portably unset VAR.
20683as_fn_unset ()
20684{
20685  { eval $1=; unset $1;}
20686}
20687as_unset=as_fn_unset
20688
20689# as_fn_append VAR VALUE
20690# ----------------------
20691# Append the text in VALUE to the end of the definition contained in VAR. Take
20692# advantage of any shell optimizations that allow amortized linear growth over
20693# repeated appends, instead of the typical quadratic growth present in naive
20694# implementations.
20695if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20696then :
20697  eval 'as_fn_append ()
20698  {
20699    eval $1+=\$2
20700  }'
20701else $as_nop
20702  as_fn_append ()
20703  {
20704    eval $1=\$$1\$2
20705  }
20706fi # as_fn_append
20707
20708# as_fn_arith ARG...
20709# ------------------
20710# Perform arithmetic evaluation on the ARGs, and store the result in the
20711# global $as_val. Take advantage of shells that can avoid forks. The arguments
20712# must be portable across $(()) and expr.
20713if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20714then :
20715  eval 'as_fn_arith ()
20716  {
20717    as_val=$(( $* ))
20718  }'
20719else $as_nop
20720  as_fn_arith ()
20721  {
20722    as_val=`expr "$@" || test $? -eq 1`
20723  }
20724fi # as_fn_arith
20725
20726
20727if expr a : '\(a\)' >/dev/null 2>&1 &&
20728   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20729  as_expr=expr
20730else
20731  as_expr=false
20732fi
20733
20734if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20735  as_basename=basename
20736else
20737  as_basename=false
20738fi
20739
20740if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20741  as_dirname=dirname
20742else
20743  as_dirname=false
20744fi
20745
20746as_me=`$as_basename -- "$0" ||
20747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20748	 X"$0" : 'X\(//\)$' \| \
20749	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20750printf "%s\n" X/"$0" |
20751    sed '/^.*\/\([^/][^/]*\)\/*$/{
20752	    s//\1/
20753	    q
20754	  }
20755	  /^X\/\(\/\/\)$/{
20756	    s//\1/
20757	    q
20758	  }
20759	  /^X\/\(\/\).*/{
20760	    s//\1/
20761	    q
20762	  }
20763	  s/.*/./; q'`
20764
20765# Avoid depending upon Character Ranges.
20766as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20767as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20768as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20769as_cr_digits='0123456789'
20770as_cr_alnum=$as_cr_Letters$as_cr_digits
20771
20772
20773# Determine whether it's possible to make 'echo' print without a newline.
20774# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20775# for compatibility with existing Makefiles.
20776ECHO_C= ECHO_N= ECHO_T=
20777case `echo -n x` in #(((((
20778-n*)
20779  case `echo 'xy\c'` in
20780  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20781  xy)  ECHO_C='\c';;
20782  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20783       ECHO_T='	';;
20784  esac;;
20785*)
20786  ECHO_N='-n';;
20787esac
20788
20789# For backward compatibility with old third-party macros, we provide
20790# the shell variables $as_echo and $as_echo_n.  New code should use
20791# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20792as_echo='printf %s\n'
20793as_echo_n='printf %s'
20794
20795rm -f conf$$ conf$$.exe conf$$.file
20796if test -d conf$$.dir; then
20797  rm -f conf$$.dir/conf$$.file
20798else
20799  rm -f conf$$.dir
20800  mkdir conf$$.dir 2>/dev/null
20801fi
20802if (echo >conf$$.file) 2>/dev/null; then
20803  if ln -s conf$$.file conf$$ 2>/dev/null; then
20804    as_ln_s='ln -s'
20805    # ... but there are two gotchas:
20806    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20807    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20808    # In both cases, we have to default to `cp -pR'.
20809    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20810      as_ln_s='cp -pR'
20811  elif ln conf$$.file conf$$ 2>/dev/null; then
20812    as_ln_s=ln
20813  else
20814    as_ln_s='cp -pR'
20815  fi
20816else
20817  as_ln_s='cp -pR'
20818fi
20819rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20820rmdir conf$$.dir 2>/dev/null
20821
20822
20823# as_fn_mkdir_p
20824# -------------
20825# Create "$as_dir" as a directory, including parents if necessary.
20826as_fn_mkdir_p ()
20827{
20828
20829  case $as_dir in #(
20830  -*) as_dir=./$as_dir;;
20831  esac
20832  test -d "$as_dir" || eval $as_mkdir_p || {
20833    as_dirs=
20834    while :; do
20835      case $as_dir in #(
20836      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20837      *) as_qdir=$as_dir;;
20838      esac
20839      as_dirs="'$as_qdir' $as_dirs"
20840      as_dir=`$as_dirname -- "$as_dir" ||
20841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20842	 X"$as_dir" : 'X\(//\)[^/]' \| \
20843	 X"$as_dir" : 'X\(//\)$' \| \
20844	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20845printf "%s\n" X"$as_dir" |
20846    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20847	    s//\1/
20848	    q
20849	  }
20850	  /^X\(\/\/\)[^/].*/{
20851	    s//\1/
20852	    q
20853	  }
20854	  /^X\(\/\/\)$/{
20855	    s//\1/
20856	    q
20857	  }
20858	  /^X\(\/\).*/{
20859	    s//\1/
20860	    q
20861	  }
20862	  s/.*/./; q'`
20863      test -d "$as_dir" && break
20864    done
20865    test -z "$as_dirs" || eval "mkdir $as_dirs"
20866  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20867
20868
20869} # as_fn_mkdir_p
20870if mkdir -p . 2>/dev/null; then
20871  as_mkdir_p='mkdir -p "$as_dir"'
20872else
20873  test -d ./-p && rmdir ./-p
20874  as_mkdir_p=false
20875fi
20876
20877
20878# as_fn_executable_p FILE
20879# -----------------------
20880# Test if FILE is an executable regular file.
20881as_fn_executable_p ()
20882{
20883  test -f "$1" && test -x "$1"
20884} # as_fn_executable_p
20885as_test_x='test -x'
20886as_executable_p=as_fn_executable_p
20887
20888# Sed expression to map a string onto a valid CPP name.
20889as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20890
20891# Sed expression to map a string onto a valid variable name.
20892as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20893
20894
20895exec 6>&1
20896## ----------------------------------- ##
20897## Main body of $CONFIG_STATUS script. ##
20898## ----------------------------------- ##
20899_ASEOF
20900test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20901
20902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903# Save the log message, to keep $0 and so on meaningful, and to
20904# report actual input values of CONFIG_FILES etc. instead of their
20905# values after options handling.
20906ac_log="
20907This file was extended by libXmu $as_me 1.1.4, which was
20908generated by GNU Autoconf 2.71.  Invocation command line was
20909
20910  CONFIG_FILES    = $CONFIG_FILES
20911  CONFIG_HEADERS  = $CONFIG_HEADERS
20912  CONFIG_LINKS    = $CONFIG_LINKS
20913  CONFIG_COMMANDS = $CONFIG_COMMANDS
20914  $ $0 $@
20915
20916on `(hostname || uname -n) 2>/dev/null | sed 1q`
20917"
20918
20919_ACEOF
20920
20921case $ac_config_files in *"
20922"*) set x $ac_config_files; shift; ac_config_files=$*;;
20923esac
20924
20925case $ac_config_headers in *"
20926"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20927esac
20928
20929
20930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20931# Files that config.status was made for.
20932config_files="$ac_config_files"
20933config_headers="$ac_config_headers"
20934config_commands="$ac_config_commands"
20935
20936_ACEOF
20937
20938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20939ac_cs_usage="\
20940\`$as_me' instantiates files and other configuration actions
20941from templates according to the current configuration.  Unless the files
20942and actions are specified as TAGs, all are instantiated by default.
20943
20944Usage: $0 [OPTION]... [TAG]...
20945
20946  -h, --help       print this help, then exit
20947  -V, --version    print version number and configuration settings, then exit
20948      --config     print configuration, then exit
20949  -q, --quiet, --silent
20950                   do not print progress messages
20951  -d, --debug      don't remove temporary files
20952      --recheck    update $as_me by reconfiguring in the same conditions
20953      --file=FILE[:TEMPLATE]
20954                   instantiate the configuration file FILE
20955      --header=FILE[:TEMPLATE]
20956                   instantiate the configuration header FILE
20957
20958Configuration files:
20959$config_files
20960
20961Configuration headers:
20962$config_headers
20963
20964Configuration commands:
20965$config_commands
20966
20967Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues>."
20968
20969_ACEOF
20970ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20971ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20973ac_cs_config='$ac_cs_config_escaped'
20974ac_cs_version="\\
20975libXmu config.status 1.1.4
20976configured by $0, generated by GNU Autoconf 2.71,
20977  with options \\"\$ac_cs_config\\"
20978
20979Copyright (C) 2021 Free Software Foundation, Inc.
20980This config.status script is free software; the Free Software Foundation
20981gives unlimited permission to copy, distribute and modify it."
20982
20983ac_pwd='$ac_pwd'
20984srcdir='$srcdir'
20985INSTALL='$INSTALL'
20986MKDIR_P='$MKDIR_P'
20987AWK='$AWK'
20988test -n "\$AWK" || AWK=awk
20989_ACEOF
20990
20991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20992# The default lists apply if the user does not specify any file.
20993ac_need_defaults=:
20994while test $# != 0
20995do
20996  case $1 in
20997  --*=?*)
20998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20999    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21000    ac_shift=:
21001    ;;
21002  --*=)
21003    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21004    ac_optarg=
21005    ac_shift=:
21006    ;;
21007  *)
21008    ac_option=$1
21009    ac_optarg=$2
21010    ac_shift=shift
21011    ;;
21012  esac
21013
21014  case $ac_option in
21015  # Handling of the options.
21016  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21017    ac_cs_recheck=: ;;
21018  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21019    printf "%s\n" "$ac_cs_version"; exit ;;
21020  --config | --confi | --conf | --con | --co | --c )
21021    printf "%s\n" "$ac_cs_config"; exit ;;
21022  --debug | --debu | --deb | --de | --d | -d )
21023    debug=: ;;
21024  --file | --fil | --fi | --f )
21025    $ac_shift
21026    case $ac_optarg in
21027    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21028    '') as_fn_error $? "missing file argument" ;;
21029    esac
21030    as_fn_append CONFIG_FILES " '$ac_optarg'"
21031    ac_need_defaults=false;;
21032  --header | --heade | --head | --hea )
21033    $ac_shift
21034    case $ac_optarg in
21035    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21036    esac
21037    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21038    ac_need_defaults=false;;
21039  --he | --h)
21040    # Conflict between --help and --header
21041    as_fn_error $? "ambiguous option: \`$1'
21042Try \`$0 --help' for more information.";;
21043  --help | --hel | -h )
21044    printf "%s\n" "$ac_cs_usage"; exit ;;
21045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21046  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21047    ac_cs_silent=: ;;
21048
21049  # This is an error.
21050  -*) as_fn_error $? "unrecognized option: \`$1'
21051Try \`$0 --help' for more information." ;;
21052
21053  *) as_fn_append ac_config_targets " $1"
21054     ac_need_defaults=false ;;
21055
21056  esac
21057  shift
21058done
21059
21060ac_configure_extra_args=
21061
21062if $ac_cs_silent; then
21063  exec 6>/dev/null
21064  ac_configure_extra_args="$ac_configure_extra_args --silent"
21065fi
21066
21067_ACEOF
21068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069if \$ac_cs_recheck; then
21070  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21071  shift
21072  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21073  CONFIG_SHELL='$SHELL'
21074  export CONFIG_SHELL
21075  exec "\$@"
21076fi
21077
21078_ACEOF
21079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21080exec 5>>config.log
21081{
21082  echo
21083  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21084## Running $as_me. ##
21085_ASBOX
21086  printf "%s\n" "$ac_log"
21087} >&5
21088
21089_ACEOF
21090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21091#
21092# INIT-COMMANDS
21093#
21094AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21095
21096
21097# The HP-UX ksh and POSIX shell print the target directory to stdout
21098# if CDPATH is set.
21099(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21100
21101sed_quote_subst='$sed_quote_subst'
21102double_quote_subst='$double_quote_subst'
21103delay_variable_subst='$delay_variable_subst'
21104macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21105macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21106enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21107enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21108pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21109enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21110shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21111SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21112ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21113PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21114host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21115host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21116host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21117build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21118build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21119build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21120SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21121Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21122GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21123EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21124FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21125LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21126NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21127LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21128max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21129ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21130exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21131lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21132lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21133lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21134lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21135lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21136reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21137reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21138FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21139OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21140deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21141file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21142file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21143want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21144DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21145sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21146AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21147lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21148AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21149archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21150STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21151RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21152old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21153old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21154old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21155lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21156CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21157CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21158compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21159GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21160lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21161lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21162lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21163lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21164lt_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"`'
21165lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21166nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21167lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21168lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21169objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21170MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21171lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21172lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21173lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21174lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21175lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21176need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21177MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21178DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21179NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21180LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21181OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21182OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21183libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21184shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21185extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21186archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21187enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21188export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21189whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21190compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21191old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21192old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21193archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21194archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21195module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21196module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21197with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21198allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21199no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21200hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21201hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21202hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21203hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21204hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21205hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21206hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21207inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21208link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21209always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21210export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21211exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21212include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21213prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21214postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21215file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21216variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21217need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21218need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21219version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21220runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21221shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21222shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21223libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21224library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21225soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21226install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21227postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21228postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21229finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21230finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21231hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21232sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21233configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21234configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21235hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21236enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21237enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21238enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21239old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21240striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21241
21242LTCC='$LTCC'
21243LTCFLAGS='$LTCFLAGS'
21244compiler='$compiler_DEFAULT'
21245
21246# A function that is used when there is no print builtin or printf.
21247func_fallback_echo ()
21248{
21249  eval 'cat <<_LTECHO_EOF
21250\$1
21251_LTECHO_EOF'
21252}
21253
21254# Quote evaled strings.
21255for var in SHELL \
21256ECHO \
21257PATH_SEPARATOR \
21258SED \
21259GREP \
21260EGREP \
21261FGREP \
21262LD \
21263NM \
21264LN_S \
21265lt_SP2NL \
21266lt_NL2SP \
21267reload_flag \
21268FILECMD \
21269OBJDUMP \
21270deplibs_check_method \
21271file_magic_cmd \
21272file_magic_glob \
21273want_nocaseglob \
21274DLLTOOL \
21275sharedlib_from_linklib_cmd \
21276AR \
21277archiver_list_spec \
21278STRIP \
21279RANLIB \
21280CC \
21281CFLAGS \
21282compiler \
21283lt_cv_sys_global_symbol_pipe \
21284lt_cv_sys_global_symbol_to_cdecl \
21285lt_cv_sys_global_symbol_to_import \
21286lt_cv_sys_global_symbol_to_c_name_address \
21287lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21288lt_cv_nm_interface \
21289nm_file_list_spec \
21290lt_cv_truncate_bin \
21291lt_prog_compiler_no_builtin_flag \
21292lt_prog_compiler_pic \
21293lt_prog_compiler_wl \
21294lt_prog_compiler_static \
21295lt_cv_prog_compiler_c_o \
21296need_locks \
21297MANIFEST_TOOL \
21298DSYMUTIL \
21299NMEDIT \
21300LIPO \
21301OTOOL \
21302OTOOL64 \
21303shrext_cmds \
21304export_dynamic_flag_spec \
21305whole_archive_flag_spec \
21306compiler_needs_object \
21307with_gnu_ld \
21308allow_undefined_flag \
21309no_undefined_flag \
21310hardcode_libdir_flag_spec \
21311hardcode_libdir_separator \
21312exclude_expsyms \
21313include_expsyms \
21314file_list_spec \
21315variables_saved_for_relink \
21316libname_spec \
21317library_names_spec \
21318soname_spec \
21319install_override_mode \
21320finish_eval \
21321old_striplib \
21322striplib; do
21323    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21324    *[\\\\\\\`\\"\\\$]*)
21325      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21326      ;;
21327    *)
21328      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21329      ;;
21330    esac
21331done
21332
21333# Double-quote double-evaled strings.
21334for var in reload_cmds \
21335old_postinstall_cmds \
21336old_postuninstall_cmds \
21337old_archive_cmds \
21338extract_expsyms_cmds \
21339old_archive_from_new_cmds \
21340old_archive_from_expsyms_cmds \
21341archive_cmds \
21342archive_expsym_cmds \
21343module_cmds \
21344module_expsym_cmds \
21345export_symbols_cmds \
21346prelink_cmds \
21347postlink_cmds \
21348postinstall_cmds \
21349postuninstall_cmds \
21350finish_cmds \
21351sys_lib_search_path_spec \
21352configure_time_dlsearch_path \
21353configure_time_lt_sys_library_path; do
21354    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21355    *[\\\\\\\`\\"\\\$]*)
21356      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21357      ;;
21358    *)
21359      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21360      ;;
21361    esac
21362done
21363
21364ac_aux_dir='$ac_aux_dir'
21365
21366# See if we are running on zsh, and set the options that allow our
21367# commands through without removal of \ escapes INIT.
21368if test -n "\${ZSH_VERSION+set}"; then
21369   setopt NO_GLOB_SUBST
21370fi
21371
21372
21373    PACKAGE='$PACKAGE'
21374    VERSION='$VERSION'
21375    RM='$RM'
21376    ofile='$ofile'
21377
21378
21379
21380
21381_ACEOF
21382
21383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384
21385# Handling of arguments.
21386for ac_config_target in $ac_config_targets
21387do
21388  case $ac_config_target in
21389    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21390    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21391    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21392    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21393    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21394    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21395    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21396    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21397    "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;;
21398    "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;;
21399
21400  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21401  esac
21402done
21403
21404
21405# If the user did not use the arguments to specify the items to instantiate,
21406# then the envvar interface is used.  Set only those that are not.
21407# We use the long form for the default assignment because of an extremely
21408# bizarre bug on SunOS 4.1.3.
21409if $ac_need_defaults; then
21410  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21411  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21412  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21413fi
21414
21415# Have a temporary directory for convenience.  Make it in the build tree
21416# simply because there is no reason against having it here, and in addition,
21417# creating and moving files from /tmp can sometimes cause problems.
21418# Hook for its removal unless debugging.
21419# Note that there is a small window in which the directory will not be cleaned:
21420# after its creation but before its name has been assigned to `$tmp'.
21421$debug ||
21422{
21423  tmp= ac_tmp=
21424  trap 'exit_status=$?
21425  : "${ac_tmp:=$tmp}"
21426  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21427' 0
21428  trap 'as_fn_exit 1' 1 2 13 15
21429}
21430# Create a (secure) tmp directory for tmp files.
21431
21432{
21433  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21434  test -d "$tmp"
21435}  ||
21436{
21437  tmp=./conf$$-$RANDOM
21438  (umask 077 && mkdir "$tmp")
21439} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21440ac_tmp=$tmp
21441
21442# Set up the scripts for CONFIG_FILES section.
21443# No need to generate them if there are no CONFIG_FILES.
21444# This happens for instance with `./config.status config.h'.
21445if test -n "$CONFIG_FILES"; then
21446
21447
21448ac_cr=`echo X | tr X '\015'`
21449# On cygwin, bash can eat \r inside `` if the user requested igncr.
21450# But we know of no other shell where ac_cr would be empty at this
21451# point, so we can use a bashism as a fallback.
21452if test "x$ac_cr" = x; then
21453  eval ac_cr=\$\'\\r\'
21454fi
21455ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21456if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21457  ac_cs_awk_cr='\\r'
21458else
21459  ac_cs_awk_cr=$ac_cr
21460fi
21461
21462echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21463_ACEOF
21464
21465
21466{
21467  echo "cat >conf$$subs.awk <<_ACEOF" &&
21468  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21469  echo "_ACEOF"
21470} >conf$$subs.sh ||
21471  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21472ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21473ac_delim='%!_!# '
21474for ac_last_try in false false false false false :; do
21475  . ./conf$$subs.sh ||
21476    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21477
21478  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21479  if test $ac_delim_n = $ac_delim_num; then
21480    break
21481  elif $ac_last_try; then
21482    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21483  else
21484    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485  fi
21486done
21487rm -f conf$$subs.sh
21488
21489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21490cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21491_ACEOF
21492sed -n '
21493h
21494s/^/S["/; s/!.*/"]=/
21495p
21496g
21497s/^[^!]*!//
21498:repl
21499t repl
21500s/'"$ac_delim"'$//
21501t delim
21502:nl
21503h
21504s/\(.\{148\}\)..*/\1/
21505t more1
21506s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21507p
21508n
21509b repl
21510:more1
21511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21512p
21513g
21514s/.\{148\}//
21515t nl
21516:delim
21517h
21518s/\(.\{148\}\)..*/\1/
21519t more2
21520s/["\\]/\\&/g; s/^/"/; s/$/"/
21521p
21522b
21523:more2
21524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21525p
21526g
21527s/.\{148\}//
21528t delim
21529' <conf$$subs.awk | sed '
21530/^[^""]/{
21531  N
21532  s/\n//
21533}
21534' >>$CONFIG_STATUS || ac_write_fail=1
21535rm -f conf$$subs.awk
21536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537_ACAWK
21538cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21539  for (key in S) S_is_set[key] = 1
21540  FS = ""
21541
21542}
21543{
21544  line = $ 0
21545  nfields = split(line, field, "@")
21546  substed = 0
21547  len = length(field[1])
21548  for (i = 2; i < nfields; i++) {
21549    key = field[i]
21550    keylen = length(key)
21551    if (S_is_set[key]) {
21552      value = S[key]
21553      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21554      len += length(value) + length(field[++i])
21555      substed = 1
21556    } else
21557      len += 1 + keylen
21558  }
21559
21560  print line
21561}
21562
21563_ACAWK
21564_ACEOF
21565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21566if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21567  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21568else
21569  cat
21570fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21571  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21572_ACEOF
21573
21574# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21575# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21576# trailing colons and then remove the whole line if VPATH becomes empty
21577# (actually we leave an empty line to preserve line numbers).
21578if test "x$srcdir" = x.; then
21579  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21580h
21581s///
21582s/^/:/
21583s/[	 ]*$/:/
21584s/:\$(srcdir):/:/g
21585s/:\${srcdir}:/:/g
21586s/:@srcdir@:/:/g
21587s/^:*//
21588s/:*$//
21589x
21590s/\(=[	 ]*\).*/\1/
21591G
21592s/\n//
21593s/^[^=]*=[	 ]*$//
21594}'
21595fi
21596
21597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21598fi # test -n "$CONFIG_FILES"
21599
21600# Set up the scripts for CONFIG_HEADERS section.
21601# No need to generate them if there are no CONFIG_HEADERS.
21602# This happens for instance with `./config.status Makefile'.
21603if test -n "$CONFIG_HEADERS"; then
21604cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21605BEGIN {
21606_ACEOF
21607
21608# Transform confdefs.h into an awk script `defines.awk', embedded as
21609# here-document in config.status, that substitutes the proper values into
21610# config.h.in to produce config.h.
21611
21612# Create a delimiter string that does not exist in confdefs.h, to ease
21613# handling of long lines.
21614ac_delim='%!_!# '
21615for ac_last_try in false false :; do
21616  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21617  if test -z "$ac_tt"; then
21618    break
21619  elif $ac_last_try; then
21620    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21621  else
21622    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21623  fi
21624done
21625
21626# For the awk script, D is an array of macro values keyed by name,
21627# likewise P contains macro parameters if any.  Preserve backslash
21628# newline sequences.
21629
21630ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21631sed -n '
21632s/.\{148\}/&'"$ac_delim"'/g
21633t rset
21634:rset
21635s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21636t def
21637d
21638:def
21639s/\\$//
21640t bsnl
21641s/["\\]/\\&/g
21642s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21643D["\1"]=" \3"/p
21644s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21645d
21646:bsnl
21647s/["\\]/\\&/g
21648s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21649D["\1"]=" \3\\\\\\n"\\/p
21650t cont
21651s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21652t cont
21653d
21654:cont
21655n
21656s/.\{148\}/&'"$ac_delim"'/g
21657t clear
21658:clear
21659s/\\$//
21660t bsnlc
21661s/["\\]/\\&/g; s/^/"/; s/$/"/p
21662d
21663:bsnlc
21664s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21665b cont
21666' <confdefs.h | sed '
21667s/'"$ac_delim"'/"\\\
21668"/g' >>$CONFIG_STATUS || ac_write_fail=1
21669
21670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21671  for (key in D) D_is_set[key] = 1
21672  FS = ""
21673}
21674/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21675  line = \$ 0
21676  split(line, arg, " ")
21677  if (arg[1] == "#") {
21678    defundef = arg[2]
21679    mac1 = arg[3]
21680  } else {
21681    defundef = substr(arg[1], 2)
21682    mac1 = arg[2]
21683  }
21684  split(mac1, mac2, "(") #)
21685  macro = mac2[1]
21686  prefix = substr(line, 1, index(line, defundef) - 1)
21687  if (D_is_set[macro]) {
21688    # Preserve the white space surrounding the "#".
21689    print prefix "define", macro P[macro] D[macro]
21690    next
21691  } else {
21692    # Replace #undef with comments.  This is necessary, for example,
21693    # in the case of _POSIX_SOURCE, which is predefined and required
21694    # on some systems where configure will not decide to define it.
21695    if (defundef == "undef") {
21696      print "/*", prefix defundef, macro, "*/"
21697      next
21698    }
21699  }
21700}
21701{ print }
21702_ACAWK
21703_ACEOF
21704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21705  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21706fi # test -n "$CONFIG_HEADERS"
21707
21708
21709eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21710shift
21711for ac_tag
21712do
21713  case $ac_tag in
21714  :[FHLC]) ac_mode=$ac_tag; continue;;
21715  esac
21716  case $ac_mode$ac_tag in
21717  :[FHL]*:*);;
21718  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21719  :[FH]-) ac_tag=-:-;;
21720  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21721  esac
21722  ac_save_IFS=$IFS
21723  IFS=:
21724  set x $ac_tag
21725  IFS=$ac_save_IFS
21726  shift
21727  ac_file=$1
21728  shift
21729
21730  case $ac_mode in
21731  :L) ac_source=$1;;
21732  :[FH])
21733    ac_file_inputs=
21734    for ac_f
21735    do
21736      case $ac_f in
21737      -) ac_f="$ac_tmp/stdin";;
21738      *) # Look for the file first in the build tree, then in the source tree
21739	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21740	 # because $ac_f cannot contain `:'.
21741	 test -f "$ac_f" ||
21742	   case $ac_f in
21743	   [\\/$]*) false;;
21744	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21745	   esac ||
21746	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21747      esac
21748      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21749      as_fn_append ac_file_inputs " '$ac_f'"
21750    done
21751
21752    # Let's still pretend it is `configure' which instantiates (i.e., don't
21753    # use $as_me), people would be surprised to read:
21754    #    /* config.h.  Generated by config.status.  */
21755    configure_input='Generated from '`
21756	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21757	`' by configure.'
21758    if test x"$ac_file" != x-; then
21759      configure_input="$ac_file.  $configure_input"
21760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21761printf "%s\n" "$as_me: creating $ac_file" >&6;}
21762    fi
21763    # Neutralize special characters interpreted by sed in replacement strings.
21764    case $configure_input in #(
21765    *\&* | *\|* | *\\* )
21766       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21767       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21768    *) ac_sed_conf_input=$configure_input;;
21769    esac
21770
21771    case $ac_tag in
21772    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21773      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21774    esac
21775    ;;
21776  esac
21777
21778  ac_dir=`$as_dirname -- "$ac_file" ||
21779$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21780	 X"$ac_file" : 'X\(//\)[^/]' \| \
21781	 X"$ac_file" : 'X\(//\)$' \| \
21782	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21783printf "%s\n" X"$ac_file" |
21784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21785	    s//\1/
21786	    q
21787	  }
21788	  /^X\(\/\/\)[^/].*/{
21789	    s//\1/
21790	    q
21791	  }
21792	  /^X\(\/\/\)$/{
21793	    s//\1/
21794	    q
21795	  }
21796	  /^X\(\/\).*/{
21797	    s//\1/
21798	    q
21799	  }
21800	  s/.*/./; q'`
21801  as_dir="$ac_dir"; as_fn_mkdir_p
21802  ac_builddir=.
21803
21804case "$ac_dir" in
21805.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21806*)
21807  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21808  # A ".." for each directory in $ac_dir_suffix.
21809  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21810  case $ac_top_builddir_sub in
21811  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21812  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21813  esac ;;
21814esac
21815ac_abs_top_builddir=$ac_pwd
21816ac_abs_builddir=$ac_pwd$ac_dir_suffix
21817# for backward compatibility:
21818ac_top_builddir=$ac_top_build_prefix
21819
21820case $srcdir in
21821  .)  # We are building in place.
21822    ac_srcdir=.
21823    ac_top_srcdir=$ac_top_builddir_sub
21824    ac_abs_top_srcdir=$ac_pwd ;;
21825  [\\/]* | ?:[\\/]* )  # Absolute name.
21826    ac_srcdir=$srcdir$ac_dir_suffix;
21827    ac_top_srcdir=$srcdir
21828    ac_abs_top_srcdir=$srcdir ;;
21829  *) # Relative name.
21830    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21831    ac_top_srcdir=$ac_top_build_prefix$srcdir
21832    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21833esac
21834ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21835
21836
21837  case $ac_mode in
21838  :F)
21839  #
21840  # CONFIG_FILE
21841  #
21842
21843  case $INSTALL in
21844  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21845  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21846  esac
21847  ac_MKDIR_P=$MKDIR_P
21848  case $MKDIR_P in
21849  [\\/$]* | ?:[\\/]* ) ;;
21850  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21851  esac
21852_ACEOF
21853
21854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21855# If the template does not know about datarootdir, expand it.
21856# FIXME: This hack should be removed a few years after 2.60.
21857ac_datarootdir_hack=; ac_datarootdir_seen=
21858ac_sed_dataroot='
21859/datarootdir/ {
21860  p
21861  q
21862}
21863/@datadir@/p
21864/@docdir@/p
21865/@infodir@/p
21866/@localedir@/p
21867/@mandir@/p'
21868case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21869*datarootdir*) ac_datarootdir_seen=yes;;
21870*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21872printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21873_ACEOF
21874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21875  ac_datarootdir_hack='
21876  s&@datadir@&$datadir&g
21877  s&@docdir@&$docdir&g
21878  s&@infodir@&$infodir&g
21879  s&@localedir@&$localedir&g
21880  s&@mandir@&$mandir&g
21881  s&\\\${datarootdir}&$datarootdir&g' ;;
21882esac
21883_ACEOF
21884
21885# Neutralize VPATH when `$srcdir' = `.'.
21886# Shell code in configure.ac might set extrasub.
21887# FIXME: do we really want to maintain this feature?
21888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21889ac_sed_extra="$ac_vpsub
21890$extrasub
21891_ACEOF
21892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21893:t
21894/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21895s|@configure_input@|$ac_sed_conf_input|;t t
21896s&@top_builddir@&$ac_top_builddir_sub&;t t
21897s&@top_build_prefix@&$ac_top_build_prefix&;t t
21898s&@srcdir@&$ac_srcdir&;t t
21899s&@abs_srcdir@&$ac_abs_srcdir&;t t
21900s&@top_srcdir@&$ac_top_srcdir&;t t
21901s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21902s&@builddir@&$ac_builddir&;t t
21903s&@abs_builddir@&$ac_abs_builddir&;t t
21904s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21905s&@INSTALL@&$ac_INSTALL&;t t
21906s&@MKDIR_P@&$ac_MKDIR_P&;t t
21907$ac_datarootdir_hack
21908"
21909eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21910  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21911
21912test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21913  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21914  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21915      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21917which seems to be undefined.  Please make sure it is defined" >&5
21918printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21919which seems to be undefined.  Please make sure it is defined" >&2;}
21920
21921  rm -f "$ac_tmp/stdin"
21922  case $ac_file in
21923  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21924  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21925  esac \
21926  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21927 ;;
21928  :H)
21929  #
21930  # CONFIG_HEADER
21931  #
21932  if test x"$ac_file" != x-; then
21933    {
21934      printf "%s\n" "/* $configure_input  */" >&1 \
21935      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21936    } >"$ac_tmp/config.h" \
21937      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21938    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21939      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21940printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21941    else
21942      rm -f "$ac_file"
21943      mv "$ac_tmp/config.h" "$ac_file" \
21944	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21945    fi
21946  else
21947    printf "%s\n" "/* $configure_input  */" >&1 \
21948      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21949      || as_fn_error $? "could not create -" "$LINENO" 5
21950  fi
21951# Compute "$ac_file"'s index in $config_headers.
21952_am_arg="$ac_file"
21953_am_stamp_count=1
21954for _am_header in $config_headers :; do
21955  case $_am_header in
21956    $_am_arg | $_am_arg:* )
21957      break ;;
21958    * )
21959      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21960  esac
21961done
21962echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21963$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21964	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21965	 X"$_am_arg" : 'X\(//\)$' \| \
21966	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21967printf "%s\n" X"$_am_arg" |
21968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21969	    s//\1/
21970	    q
21971	  }
21972	  /^X\(\/\/\)[^/].*/{
21973	    s//\1/
21974	    q
21975	  }
21976	  /^X\(\/\/\)$/{
21977	    s//\1/
21978	    q
21979	  }
21980	  /^X\(\/\).*/{
21981	    s//\1/
21982	    q
21983	  }
21984	  s/.*/./; q'`/stamp-h$_am_stamp_count
21985 ;;
21986
21987  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21988printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21989 ;;
21990  esac
21991
21992
21993  case $ac_file$ac_mode in
21994    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21995  # Older Autoconf quotes --file arguments for eval, but not when files
21996  # are listed without --file.  Let's play safe and only enable the eval
21997  # if we detect the quoting.
21998  # TODO: see whether this extra hack can be removed once we start
21999  # requiring Autoconf 2.70 or later.
22000  case $CONFIG_FILES in #(
22001  *\'*) :
22002    eval set x "$CONFIG_FILES" ;; #(
22003  *) :
22004    set x $CONFIG_FILES ;; #(
22005  *) :
22006     ;;
22007esac
22008  shift
22009  # Used to flag and report bootstrapping failures.
22010  am_rc=0
22011  for am_mf
22012  do
22013    # Strip MF so we end up with the name of the file.
22014    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22015    # Check whether this is an Automake generated Makefile which includes
22016    # dependency-tracking related rules and includes.
22017    # Grep'ing the whole file directly is not great: AIX grep has a line
22018    # limit of 2048, but all sed's we know have understand at least 4000.
22019    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22020      || continue
22021    am_dirpart=`$as_dirname -- "$am_mf" ||
22022$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22023	 X"$am_mf" : 'X\(//\)[^/]' \| \
22024	 X"$am_mf" : 'X\(//\)$' \| \
22025	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22026printf "%s\n" X"$am_mf" |
22027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22028	    s//\1/
22029	    q
22030	  }
22031	  /^X\(\/\/\)[^/].*/{
22032	    s//\1/
22033	    q
22034	  }
22035	  /^X\(\/\/\)$/{
22036	    s//\1/
22037	    q
22038	  }
22039	  /^X\(\/\).*/{
22040	    s//\1/
22041	    q
22042	  }
22043	  s/.*/./; q'`
22044    am_filepart=`$as_basename -- "$am_mf" ||
22045$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22046	 X"$am_mf" : 'X\(//\)$' \| \
22047	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22048printf "%s\n" X/"$am_mf" |
22049    sed '/^.*\/\([^/][^/]*\)\/*$/{
22050	    s//\1/
22051	    q
22052	  }
22053	  /^X\/\(\/\/\)$/{
22054	    s//\1/
22055	    q
22056	  }
22057	  /^X\/\(\/\).*/{
22058	    s//\1/
22059	    q
22060	  }
22061	  s/.*/./; q'`
22062    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22063      && sed -e '/# am--include-marker/d' "$am_filepart" \
22064        | $MAKE -f - am--depfiles" >&5
22065   (cd "$am_dirpart" \
22066      && sed -e '/# am--include-marker/d' "$am_filepart" \
22067        | $MAKE -f - am--depfiles) >&5 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } || am_rc=$?
22071  done
22072  if test $am_rc -ne 0; then
22073    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22074printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22075as_fn_error $? "Something went wrong bootstrapping makefile fragments
22076    for automatic dependency tracking.  If GNU make was not used, consider
22077    re-running the configure script with MAKE=\"gmake\" (or whatever is
22078    necessary).  You can also try re-running configure with the
22079    '--disable-dependency-tracking' option to at least be able to build
22080    the package (albeit without support for automatic dependency tracking).
22081See \`config.log' for more details" "$LINENO" 5; }
22082  fi
22083  { am_dirpart=; unset am_dirpart;}
22084  { am_filepart=; unset am_filepart;}
22085  { am_mf=; unset am_mf;}
22086  { am_rc=; unset am_rc;}
22087  rm -f conftest-deps.mk
22088}
22089 ;;
22090    "libtool":C)
22091
22092    # See if we are running on zsh, and set the options that allow our
22093    # commands through without removal of \ escapes.
22094    if test -n "${ZSH_VERSION+set}"; then
22095      setopt NO_GLOB_SUBST
22096    fi
22097
22098    cfgfile=${ofile}T
22099    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22100    $RM "$cfgfile"
22101
22102    cat <<_LT_EOF >> "$cfgfile"
22103#! $SHELL
22104# Generated automatically by $as_me ($PACKAGE) $VERSION
22105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22107
22108# Provide generalized library-building support services.
22109# Written by Gordon Matzigkeit, 1996
22110
22111# Copyright (C) 2014 Free Software Foundation, Inc.
22112# This is free software; see the source for copying conditions.  There is NO
22113# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22114
22115# GNU Libtool is free software; you can redistribute it and/or modify
22116# it under the terms of the GNU General Public License as published by
22117# the Free Software Foundation; either version 2 of of the License, or
22118# (at your option) any later version.
22119#
22120# As a special exception to the GNU General Public License, if you
22121# distribute this file as part of a program or library that is built
22122# using GNU Libtool, you may include this file under the  same
22123# distribution terms that you use for the rest of that program.
22124#
22125# GNU Libtool is distributed in the hope that it will be useful, but
22126# WITHOUT ANY WARRANTY; without even the implied warranty of
22127# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22128# GNU General Public License for more details.
22129#
22130# You should have received a copy of the GNU General Public License
22131# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22132
22133
22134# The names of the tagged configurations supported by this script.
22135available_tags=''
22136
22137# Configured defaults for sys_lib_dlsearch_path munging.
22138: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22139
22140# ### BEGIN LIBTOOL CONFIG
22141
22142# Which release of libtool.m4 was used?
22143macro_version=$macro_version
22144macro_revision=$macro_revision
22145
22146# Whether or not to build shared libraries.
22147build_libtool_libs=$enable_shared
22148
22149# Whether or not to build static libraries.
22150build_old_libs=$enable_static
22151
22152# What type of objects to build.
22153pic_mode=$pic_mode
22154
22155# Whether or not to optimize for fast installation.
22156fast_install=$enable_fast_install
22157
22158# Shared archive member basename,for filename based shared library versioning on AIX.
22159shared_archive_member_spec=$shared_archive_member_spec
22160
22161# Shell to use when invoking shell scripts.
22162SHELL=$lt_SHELL
22163
22164# An echo program that protects backslashes.
22165ECHO=$lt_ECHO
22166
22167# The PATH separator for the build system.
22168PATH_SEPARATOR=$lt_PATH_SEPARATOR
22169
22170# The host system.
22171host_alias=$host_alias
22172host=$host
22173host_os=$host_os
22174
22175# The build system.
22176build_alias=$build_alias
22177build=$build
22178build_os=$build_os
22179
22180# A sed program that does not truncate output.
22181SED=$lt_SED
22182
22183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22184Xsed="\$SED -e 1s/^X//"
22185
22186# A grep program that handles long lines.
22187GREP=$lt_GREP
22188
22189# An ERE matcher.
22190EGREP=$lt_EGREP
22191
22192# A literal string matcher.
22193FGREP=$lt_FGREP
22194
22195# A BSD- or MS-compatible name lister.
22196NM=$lt_NM
22197
22198# Whether we need soft or hard links.
22199LN_S=$lt_LN_S
22200
22201# What is the maximum length of a command?
22202max_cmd_len=$max_cmd_len
22203
22204# Object file suffix (normally "o").
22205objext=$ac_objext
22206
22207# Executable file suffix (normally "").
22208exeext=$exeext
22209
22210# whether the shell understands "unset".
22211lt_unset=$lt_unset
22212
22213# turn spaces into newlines.
22214SP2NL=$lt_lt_SP2NL
22215
22216# turn newlines into spaces.
22217NL2SP=$lt_lt_NL2SP
22218
22219# convert \$build file names to \$host format.
22220to_host_file_cmd=$lt_cv_to_host_file_cmd
22221
22222# convert \$build files to toolchain format.
22223to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22224
22225# A file(cmd) program that detects file types.
22226FILECMD=$lt_FILECMD
22227
22228# An object symbol dumper.
22229OBJDUMP=$lt_OBJDUMP
22230
22231# Method to check whether dependent libraries are shared objects.
22232deplibs_check_method=$lt_deplibs_check_method
22233
22234# Command to use when deplibs_check_method = "file_magic".
22235file_magic_cmd=$lt_file_magic_cmd
22236
22237# How to find potential files when deplibs_check_method = "file_magic".
22238file_magic_glob=$lt_file_magic_glob
22239
22240# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22241want_nocaseglob=$lt_want_nocaseglob
22242
22243# DLL creation program.
22244DLLTOOL=$lt_DLLTOOL
22245
22246# Command to associate shared and link libraries.
22247sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22248
22249# The archiver.
22250AR=$lt_AR
22251
22252# Flags to create an archive (by configure).
22253lt_ar_flags=$lt_ar_flags
22254
22255# Flags to create an archive.
22256AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22257
22258# How to feed a file listing to the archiver.
22259archiver_list_spec=$lt_archiver_list_spec
22260
22261# A symbol stripping program.
22262STRIP=$lt_STRIP
22263
22264# Commands used to install an old-style archive.
22265RANLIB=$lt_RANLIB
22266old_postinstall_cmds=$lt_old_postinstall_cmds
22267old_postuninstall_cmds=$lt_old_postuninstall_cmds
22268
22269# Whether to use a lock for old archive extraction.
22270lock_old_archive_extraction=$lock_old_archive_extraction
22271
22272# A C compiler.
22273LTCC=$lt_CC
22274
22275# LTCC compiler flags.
22276LTCFLAGS=$lt_CFLAGS
22277
22278# Take the output of nm and produce a listing of raw symbols and C names.
22279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22280
22281# Transform the output of nm in a proper C declaration.
22282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22283
22284# Transform the output of nm into a list of symbols to manually relocate.
22285global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22286
22287# Transform the output of nm in a C name address pair.
22288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22289
22290# Transform the output of nm in a C name address pair when lib prefix is needed.
22291global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22292
22293# The name lister interface.
22294nm_interface=$lt_lt_cv_nm_interface
22295
22296# Specify filename containing input files for \$NM.
22297nm_file_list_spec=$lt_nm_file_list_spec
22298
22299# The root where to search for dependent libraries,and where our libraries should be installed.
22300lt_sysroot=$lt_sysroot
22301
22302# Command to truncate a binary pipe.
22303lt_truncate_bin=$lt_lt_cv_truncate_bin
22304
22305# The name of the directory that contains temporary libtool files.
22306objdir=$objdir
22307
22308# Used to examine libraries when file_magic_cmd begins with "file".
22309MAGIC_CMD=$MAGIC_CMD
22310
22311# Must we lock files when doing compilation?
22312need_locks=$lt_need_locks
22313
22314# Manifest tool.
22315MANIFEST_TOOL=$lt_MANIFEST_TOOL
22316
22317# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22318DSYMUTIL=$lt_DSYMUTIL
22319
22320# Tool to change global to local symbols on Mac OS X.
22321NMEDIT=$lt_NMEDIT
22322
22323# Tool to manipulate fat objects and archives on Mac OS X.
22324LIPO=$lt_LIPO
22325
22326# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22327OTOOL=$lt_OTOOL
22328
22329# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22330OTOOL64=$lt_OTOOL64
22331
22332# Old archive suffix (normally "a").
22333libext=$libext
22334
22335# Shared library suffix (normally ".so").
22336shrext_cmds=$lt_shrext_cmds
22337
22338# The commands to extract the exported symbol list from a shared archive.
22339extract_expsyms_cmds=$lt_extract_expsyms_cmds
22340
22341# Variables whose values should be saved in libtool wrapper scripts and
22342# restored at link time.
22343variables_saved_for_relink=$lt_variables_saved_for_relink
22344
22345# Do we need the "lib" prefix for modules?
22346need_lib_prefix=$need_lib_prefix
22347
22348# Do we need a version for libraries?
22349need_version=$need_version
22350
22351# Library versioning type.
22352version_type=$version_type
22353
22354# Shared library runtime path variable.
22355runpath_var=$runpath_var
22356
22357# Shared library path variable.
22358shlibpath_var=$shlibpath_var
22359
22360# Is shlibpath searched before the hard-coded library search path?
22361shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22362
22363# Format of library name prefix.
22364libname_spec=$lt_libname_spec
22365
22366# List of archive names.  First name is the real one, the rest are links.
22367# The last name is the one that the linker finds with -lNAME
22368library_names_spec=$lt_library_names_spec
22369
22370# The coded name of the library, if different from the real name.
22371soname_spec=$lt_soname_spec
22372
22373# Permission mode override for installation of shared libraries.
22374install_override_mode=$lt_install_override_mode
22375
22376# Command to use after installation of a shared archive.
22377postinstall_cmds=$lt_postinstall_cmds
22378
22379# Command to use after uninstallation of a shared archive.
22380postuninstall_cmds=$lt_postuninstall_cmds
22381
22382# Commands used to finish a libtool library installation in a directory.
22383finish_cmds=$lt_finish_cmds
22384
22385# As "finish_cmds", except a single script fragment to be evaled but
22386# not shown.
22387finish_eval=$lt_finish_eval
22388
22389# Whether we should hardcode library paths into libraries.
22390hardcode_into_libs=$hardcode_into_libs
22391
22392# Compile-time system search path for libraries.
22393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22394
22395# Detected run-time system search path for libraries.
22396sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22397
22398# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22399configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22400
22401# Whether dlopen is supported.
22402dlopen_support=$enable_dlopen
22403
22404# Whether dlopen of programs is supported.
22405dlopen_self=$enable_dlopen_self
22406
22407# Whether dlopen of statically linked programs is supported.
22408dlopen_self_static=$enable_dlopen_self_static
22409
22410# Commands to strip libraries.
22411old_striplib=$lt_old_striplib
22412striplib=$lt_striplib
22413
22414
22415# The linker used to build libraries.
22416LD=$lt_LD
22417
22418# How to create reloadable object files.
22419reload_flag=$lt_reload_flag
22420reload_cmds=$lt_reload_cmds
22421
22422# Commands used to build an old-style archive.
22423old_archive_cmds=$lt_old_archive_cmds
22424
22425# A language specific compiler.
22426CC=$lt_compiler
22427
22428# Is the compiler the GNU compiler?
22429with_gcc=$GCC
22430
22431# Compiler flag to turn off builtin functions.
22432no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22433
22434# Additional compiler flags for building library objects.
22435pic_flag=$lt_lt_prog_compiler_pic
22436
22437# How to pass a linker flag through the compiler.
22438wl=$lt_lt_prog_compiler_wl
22439
22440# Compiler flag to prevent dynamic linking.
22441link_static_flag=$lt_lt_prog_compiler_static
22442
22443# Does compiler simultaneously support -c and -o options?
22444compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22445
22446# Whether or not to add -lc for building shared libraries.
22447build_libtool_need_lc=$archive_cmds_need_lc
22448
22449# Whether or not to disallow shared libs when runtime libs are static.
22450allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22451
22452# Compiler flag to allow reflexive dlopens.
22453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22454
22455# Compiler flag to generate shared objects directly from archives.
22456whole_archive_flag_spec=$lt_whole_archive_flag_spec
22457
22458# Whether the compiler copes with passing no objects directly.
22459compiler_needs_object=$lt_compiler_needs_object
22460
22461# Create an old-style archive from a shared archive.
22462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22463
22464# Create a temporary old-style archive to link instead of a shared archive.
22465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22466
22467# Commands used to build a shared archive.
22468archive_cmds=$lt_archive_cmds
22469archive_expsym_cmds=$lt_archive_expsym_cmds
22470
22471# Commands used to build a loadable module if different from building
22472# a shared archive.
22473module_cmds=$lt_module_cmds
22474module_expsym_cmds=$lt_module_expsym_cmds
22475
22476# Whether we are building with GNU ld or not.
22477with_gnu_ld=$lt_with_gnu_ld
22478
22479# Flag that allows shared libraries with undefined symbols to be built.
22480allow_undefined_flag=$lt_allow_undefined_flag
22481
22482# Flag that enforces no undefined symbols.
22483no_undefined_flag=$lt_no_undefined_flag
22484
22485# Flag to hardcode \$libdir into a binary during linking.
22486# This must work even if \$libdir does not exist
22487hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22488
22489# Whether we need a single "-rpath" flag with a separated argument.
22490hardcode_libdir_separator=$lt_hardcode_libdir_separator
22491
22492# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22493# DIR into the resulting binary.
22494hardcode_direct=$hardcode_direct
22495
22496# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22497# DIR into the resulting binary and the resulting library dependency is
22498# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22499# library is relocated.
22500hardcode_direct_absolute=$hardcode_direct_absolute
22501
22502# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22503# into the resulting binary.
22504hardcode_minus_L=$hardcode_minus_L
22505
22506# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22507# into the resulting binary.
22508hardcode_shlibpath_var=$hardcode_shlibpath_var
22509
22510# Set to "yes" if building a shared library automatically hardcodes DIR
22511# into the library and all subsequent libraries and executables linked
22512# against it.
22513hardcode_automatic=$hardcode_automatic
22514
22515# Set to yes if linker adds runtime paths of dependent libraries
22516# to runtime path list.
22517inherit_rpath=$inherit_rpath
22518
22519# Whether libtool must link a program against all its dependency libraries.
22520link_all_deplibs=$link_all_deplibs
22521
22522# Set to "yes" if exported symbols are required.
22523always_export_symbols=$always_export_symbols
22524
22525# The commands to list exported symbols.
22526export_symbols_cmds=$lt_export_symbols_cmds
22527
22528# Symbols that should not be listed in the preloaded symbols.
22529exclude_expsyms=$lt_exclude_expsyms
22530
22531# Symbols that must always be exported.
22532include_expsyms=$lt_include_expsyms
22533
22534# Commands necessary for linking programs (against libraries) with templates.
22535prelink_cmds=$lt_prelink_cmds
22536
22537# Commands necessary for finishing linking programs.
22538postlink_cmds=$lt_postlink_cmds
22539
22540# Specify filename containing input files.
22541file_list_spec=$lt_file_list_spec
22542
22543# How to hardcode a shared library path into an executable.
22544hardcode_action=$hardcode_action
22545
22546# ### END LIBTOOL CONFIG
22547
22548_LT_EOF
22549
22550    cat <<'_LT_EOF' >> "$cfgfile"
22551
22552# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22553
22554# func_munge_path_list VARIABLE PATH
22555# -----------------------------------
22556# VARIABLE is name of variable containing _space_ separated list of
22557# directories to be munged by the contents of PATH, which is string
22558# having a format:
22559# "DIR[:DIR]:"
22560#       string "DIR[ DIR]" will be prepended to VARIABLE
22561# ":DIR[:DIR]"
22562#       string "DIR[ DIR]" will be appended to VARIABLE
22563# "DIRP[:DIRP]::[DIRA:]DIRA"
22564#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22565#       "DIRA[ DIRA]" will be appended to VARIABLE
22566# "DIR[:DIR]"
22567#       VARIABLE will be replaced by "DIR[ DIR]"
22568func_munge_path_list ()
22569{
22570    case x$2 in
22571    x)
22572        ;;
22573    *:)
22574        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22575        ;;
22576    x:*)
22577        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22578        ;;
22579    *::*)
22580        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22581        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22582        ;;
22583    *)
22584        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22585        ;;
22586    esac
22587}
22588
22589
22590# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22591func_cc_basename ()
22592{
22593    for cc_temp in $*""; do
22594      case $cc_temp in
22595        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22596        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22597        \-*) ;;
22598        *) break;;
22599      esac
22600    done
22601    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22602}
22603
22604
22605# ### END FUNCTIONS SHARED WITH CONFIGURE
22606
22607_LT_EOF
22608
22609  case $host_os in
22610  aix3*)
22611    cat <<\_LT_EOF >> "$cfgfile"
22612# AIX sometimes has problems with the GCC collect2 program.  For some
22613# reason, if we set the COLLECT_NAMES environment variable, the problems
22614# vanish in a puff of smoke.
22615if test set != "${COLLECT_NAMES+set}"; then
22616  COLLECT_NAMES=
22617  export COLLECT_NAMES
22618fi
22619_LT_EOF
22620    ;;
22621  esac
22622
22623
22624
22625ltmain=$ac_aux_dir/ltmain.sh
22626
22627
22628  # We use sed instead of cat because bash on DJGPP gets confused if
22629  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22630  # text mode, it properly converts lines to CR/LF.  This bash problem
22631  # is reportedly fixed, but why not run on old versions too?
22632  $SED '$q' "$ltmain" >> "$cfgfile" \
22633     || (rm -f "$cfgfile"; exit 1)
22634
22635   mv -f "$cfgfile" "$ofile" ||
22636    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22637  chmod +x "$ofile"
22638
22639 ;;
22640
22641  esac
22642done # for ac_tag
22643
22644
22645as_fn_exit 0
22646_ACEOF
22647ac_clean_files=$ac_clean_files_save
22648
22649test $ac_write_fail = 0 ||
22650  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22651
22652
22653# configure is writing to config.log, and then calls config.status.
22654# config.status does its own redirection, appending to config.log.
22655# Unfortunately, on DOS this fails, as config.log is still kept open
22656# by configure, so config.status won't be able to write to it; its
22657# output is simply discarded.  So we exec the FD to /dev/null,
22658# effectively closing config.log, so it can be properly (re)opened and
22659# appended to by config.status.  When coming back to configure, we
22660# need to make the FD available again.
22661if test "$no_create" != yes; then
22662  ac_cs_success=:
22663  ac_config_status_args=
22664  test "$silent" = yes &&
22665    ac_config_status_args="$ac_config_status_args --quiet"
22666  exec 5>/dev/null
22667  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22668  exec 5>>config.log
22669  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22670  # would make configure fail if this is the last instruction.
22671  $ac_cs_success || as_fn_exit 1
22672fi
22673if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22675printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22676fi
22677
22678
22679