configure revision 9c9cb266
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXfont2 2.0.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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/libxfont/-/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='libXfont2'
684PACKAGE_TARNAME='libXfont2'
685PACKAGE_VERSION='2.0.6'
686PACKAGE_STRING='libXfont2 2.0.6'
687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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_config_libobj_dir=src/util
724ac_subst_vars='am__EXEEXT_FALSE
725am__EXEEXT_TRUE
726LTLIBOBJS
727OS_CFLAGS
728XFONT_LIBS
729XFONT_CFLAGS
730MATH_LIBS
731XFONT_FC_FALSE
732XFONT_FC_TRUE
733XFONT_FONTFILE_FALSE
734XFONT_FONTFILE_TRUE
735XFONT_BITMAP_FALSE
736XFONT_BITMAP_TRUE
737XFONT_SNFFORMAT_FALSE
738XFONT_SNFFORMAT_TRUE
739XFONT_BDFFORMAT_FALSE
740XFONT_BDFFORMAT_TRUE
741XFONT_PCF_OR_BUILTIN_FALSE
742XFONT_PCF_OR_BUILTIN_TRUE
743XFONT_PCFFORMAT_FALSE
744XFONT_PCFFORMAT_TRUE
745XFONT_BUILTINS_FALSE
746XFONT_BUILTINS_TRUE
747Z_LIBS
748X_BZIP2_FONT_COMPRESSION_FALSE
749X_BZIP2_FONT_COMPRESSION_TRUE
750Z_REQUIRES
751ZLIB_LIBS
752ZLIB_CFLAGS
753X_GZIP_FONT_COMPRESSION
754FREETYPE_REQUIRES
755ft_config
756FREETYPE_LIBS
757FREETYPE_CFLAGS
758XFONT_FREETYPE_FALSE
759XFONT_FREETYPE_TRUE
760LIBOBJS
761HAVE_STYLESHEETS_FALSE
762HAVE_STYLESHEETS_TRUE
763XSL_STYLESHEET
764STYLESHEET_SRCDIR
765XORG_SGML_PATH
766HAVE_FOP_FALSE
767HAVE_FOP_TRUE
768FOP
769HAVE_XMLTO_FALSE
770HAVE_XMLTO_TRUE
771HAVE_XMLTO_TEXT_FALSE
772HAVE_XMLTO_TEXT_TRUE
773XMLTO
774ENABLE_DEVEL_DOCS_FALSE
775ENABLE_DEVEL_DOCS_TRUE
776MAN_SUBSTS
777XORG_MAN_PAGE
778ADMIN_MAN_DIR
779DRIVER_MAN_DIR
780MISC_MAN_DIR
781FILE_MAN_DIR
782LIB_MAN_DIR
783APP_MAN_DIR
784ADMIN_MAN_SUFFIX
785DRIVER_MAN_SUFFIX
786MISC_MAN_SUFFIX
787FILE_MAN_SUFFIX
788LIB_MAN_SUFFIX
789APP_MAN_SUFFIX
790INSTALL_CMD
791PKG_CONFIG_LIBDIR
792PKG_CONFIG_PATH
793PKG_CONFIG
794CHANGELOG_CMD
795STRICT_CFLAGS
796CWARNFLAGS
797BASE_CFLAGS
798LT_SYS_LIBRARY_PATH
799OTOOL64
800OTOOL
801LIPO
802NMEDIT
803DSYMUTIL
804MANIFEST_TOOL
805RANLIB
806ac_ct_AR
807AR
808DLLTOOL
809OBJDUMP
810FILECMD
811LN_S
812NM
813ac_ct_DUMPBIN
814DUMPBIN
815LD
816FGREP
817EGREP
818GREP
819SED
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828LIBTOOL
829am__fastdepCC_FALSE
830am__fastdepCC_TRUE
831CCDEPMODE
832am__nodep
833AMDEPBACKSLASH
834AMDEP_FALSE
835AMDEP_TRUE
836am__include
837DEPDIR
838OBJEXT
839EXEEXT
840ac_ct_CC
841CPPFLAGS
842LDFLAGS
843CFLAGS
844CC
845AM_BACKSLASH
846AM_DEFAULT_VERBOSITY
847AM_DEFAULT_V
848AM_V
849CSCOPE
850ETAGS
851CTAGS
852am__untar
853am__tar
854AMTAR
855am__leading_dot
856SET_MAKE
857AWK
858mkdir_p
859MKDIR_P
860INSTALL_STRIP_PROGRAM
861STRIP
862install_sh
863MAKEINFO
864AUTOHEADER
865AUTOMAKE
866AUTOCONF
867ACLOCAL
868VERSION
869PACKAGE
870CYGPATH_W
871am__isrc
872INSTALL_DATA
873INSTALL_SCRIPT
874INSTALL_PROGRAM
875target_alias
876host_alias
877build_alias
878LIBS
879ECHO_T
880ECHO_N
881ECHO_C
882DEFS
883mandir
884localedir
885libdir
886psdir
887pdfdir
888dvidir
889htmldir
890infodir
891docdir
892oldincludedir
893includedir
894runstatedir
895localstatedir
896sharedstatedir
897sysconfdir
898datadir
899datarootdir
900libexecdir
901sbindir
902bindir
903program_transform_name
904prefix
905exec_prefix
906PACKAGE_URL
907PACKAGE_BUGREPORT
908PACKAGE_STRING
909PACKAGE_VERSION
910PACKAGE_TARNAME
911PACKAGE_NAME
912PATH_SEPARATOR
913SHELL
914am__quote'
915ac_subst_files=''
916ac_user_opts='
917enable_option_checking
918enable_silent_rules
919enable_dependency_tracking
920enable_shared
921enable_static
922with_pic
923enable_fast_install
924with_aix_soname
925with_gnu_ld
926with_sysroot
927enable_libtool_lock
928enable_selective_werror
929enable_strict_compilation
930enable_devel_docs
931with_xmlto
932with_fop
933enable_freetype
934with_freetype_config
935with_bzip2
936enable_builtins
937enable_pcfformat
938enable_bdfformat
939enable_snfformat
940enable_fc
941enable_unix_transport
942enable_tcp_transport
943enable_ipv6
944enable_local_transport
945'
946      ac_precious_vars='build_alias
947host_alias
948target_alias
949CC
950CFLAGS
951LDFLAGS
952LIBS
953CPPFLAGS
954LT_SYS_LIBRARY_PATH
955PKG_CONFIG
956PKG_CONFIG_PATH
957PKG_CONFIG_LIBDIR
958XMLTO
959FOP
960FREETYPE_CFLAGS
961FREETYPE_LIBS
962ZLIB_CFLAGS
963ZLIB_LIBS
964XFONT_CFLAGS
965XFONT_LIBS'
966
967
968# Initialize some variables set by options.
969ac_init_help=
970ac_init_version=false
971ac_unrecognized_opts=
972ac_unrecognized_sep=
973# The variables have the same names as the options, with
974# dashes changed to underlines.
975cache_file=/dev/null
976exec_prefix=NONE
977no_create=
978no_recursion=
979prefix=NONE
980program_prefix=NONE
981program_suffix=NONE
982program_transform_name=s,x,x,
983silent=
984site=
985srcdir=
986verbose=
987x_includes=NONE
988x_libraries=NONE
989
990# Installation directory options.
991# These are left unexpanded so users can "make install exec_prefix=/foo"
992# and all the variables that are supposed to be based on exec_prefix
993# by default will actually change.
994# Use braces instead of parens because sh, perl, etc. also accept them.
995# (The list follows the same order as the GNU Coding Standards.)
996bindir='${exec_prefix}/bin'
997sbindir='${exec_prefix}/sbin'
998libexecdir='${exec_prefix}/libexec'
999datarootdir='${prefix}/share'
1000datadir='${datarootdir}'
1001sysconfdir='${prefix}/etc'
1002sharedstatedir='${prefix}/com'
1003localstatedir='${prefix}/var'
1004runstatedir='${localstatedir}/run'
1005includedir='${prefix}/include'
1006oldincludedir='/usr/include'
1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008infodir='${datarootdir}/info'
1009htmldir='${docdir}'
1010dvidir='${docdir}'
1011pdfdir='${docdir}'
1012psdir='${docdir}'
1013libdir='${exec_prefix}/lib'
1014localedir='${datarootdir}/locale'
1015mandir='${datarootdir}/man'
1016
1017ac_prev=
1018ac_dashdash=
1019for ac_option
1020do
1021  # If the previous option needs an argument, assign it.
1022  if test -n "$ac_prev"; then
1023    eval $ac_prev=\$ac_option
1024    ac_prev=
1025    continue
1026  fi
1027
1028  case $ac_option in
1029  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030  *=)   ac_optarg= ;;
1031  *)    ac_optarg=yes ;;
1032  esac
1033
1034  case $ac_dashdash$ac_option in
1035  --)
1036    ac_dashdash=yes ;;
1037
1038  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039    ac_prev=bindir ;;
1040  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041    bindir=$ac_optarg ;;
1042
1043  -build | --build | --buil | --bui | --bu)
1044    ac_prev=build_alias ;;
1045  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046    build_alias=$ac_optarg ;;
1047
1048  -cache-file | --cache-file | --cache-fil | --cache-fi \
1049  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050    ac_prev=cache_file ;;
1051  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053    cache_file=$ac_optarg ;;
1054
1055  --config-cache | -C)
1056    cache_file=config.cache ;;
1057
1058  -datadir | --datadir | --datadi | --datad)
1059    ac_prev=datadir ;;
1060  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061    datadir=$ac_optarg ;;
1062
1063  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064  | --dataroo | --dataro | --datar)
1065    ac_prev=datarootdir ;;
1066  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068    datarootdir=$ac_optarg ;;
1069
1070  -disable-* | --disable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=no ;;
1085
1086  -docdir | --docdir | --docdi | --doc | --do)
1087    ac_prev=docdir ;;
1088  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089    docdir=$ac_optarg ;;
1090
1091  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092    ac_prev=dvidir ;;
1093  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094    dvidir=$ac_optarg ;;
1095
1096  -enable-* | --enable-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"enable_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114  | --exec | --exe | --ex)
1115    ac_prev=exec_prefix ;;
1116  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118  | --exec=* | --exe=* | --ex=*)
1119    exec_prefix=$ac_optarg ;;
1120
1121  -gas | --gas | --ga | --g)
1122    # Obsolete; use --with-gas.
1123    with_gas=yes ;;
1124
1125  -help | --help | --hel | --he | -h)
1126    ac_init_help=long ;;
1127  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128    ac_init_help=recursive ;;
1129  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130    ac_init_help=short ;;
1131
1132  -host | --host | --hos | --ho)
1133    ac_prev=host_alias ;;
1134  -host=* | --host=* | --hos=* | --ho=*)
1135    host_alias=$ac_optarg ;;
1136
1137  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138    ac_prev=htmldir ;;
1139  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140  | --ht=*)
1141    htmldir=$ac_optarg ;;
1142
1143  -includedir | --includedir | --includedi | --included | --include \
1144  | --includ | --inclu | --incl | --inc)
1145    ac_prev=includedir ;;
1146  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147  | --includ=* | --inclu=* | --incl=* | --inc=*)
1148    includedir=$ac_optarg ;;
1149
1150  -infodir | --infodir | --infodi | --infod | --info | --inf)
1151    ac_prev=infodir ;;
1152  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153    infodir=$ac_optarg ;;
1154
1155  -libdir | --libdir | --libdi | --libd)
1156    ac_prev=libdir ;;
1157  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158    libdir=$ac_optarg ;;
1159
1160  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161  | --libexe | --libex | --libe)
1162    ac_prev=libexecdir ;;
1163  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164  | --libexe=* | --libex=* | --libe=*)
1165    libexecdir=$ac_optarg ;;
1166
1167  -localedir | --localedir | --localedi | --localed | --locale)
1168    ac_prev=localedir ;;
1169  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170    localedir=$ac_optarg ;;
1171
1172  -localstatedir | --localstatedir | --localstatedi | --localstated \
1173  | --localstate | --localstat | --localsta | --localst | --locals)
1174    ac_prev=localstatedir ;;
1175  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177    localstatedir=$ac_optarg ;;
1178
1179  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180    ac_prev=mandir ;;
1181  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182    mandir=$ac_optarg ;;
1183
1184  -nfp | --nfp | --nf)
1185    # Obsolete; use --without-fp.
1186    with_fp=no ;;
1187
1188  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189  | --no-cr | --no-c | -n)
1190    no_create=yes ;;
1191
1192  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194    no_recursion=yes ;;
1195
1196  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198  | --oldin | --oldi | --old | --ol | --o)
1199    ac_prev=oldincludedir ;;
1200  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203    oldincludedir=$ac_optarg ;;
1204
1205  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206    ac_prev=prefix ;;
1207  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208    prefix=$ac_optarg ;;
1209
1210  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211  | --program-pre | --program-pr | --program-p)
1212    ac_prev=program_prefix ;;
1213  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215    program_prefix=$ac_optarg ;;
1216
1217  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218  | --program-suf | --program-su | --program-s)
1219    ac_prev=program_suffix ;;
1220  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222    program_suffix=$ac_optarg ;;
1223
1224  -program-transform-name | --program-transform-name \
1225  | --program-transform-nam | --program-transform-na \
1226  | --program-transform-n | --program-transform- \
1227  | --program-transform | --program-transfor \
1228  | --program-transfo | --program-transf \
1229  | --program-trans | --program-tran \
1230  | --progr-tra | --program-tr | --program-t)
1231    ac_prev=program_transform_name ;;
1232  -program-transform-name=* | --program-transform-name=* \
1233  | --program-transform-nam=* | --program-transform-na=* \
1234  | --program-transform-n=* | --program-transform-=* \
1235  | --program-transform=* | --program-transfor=* \
1236  | --program-transfo=* | --program-transf=* \
1237  | --program-trans=* | --program-tran=* \
1238  | --progr-tra=* | --program-tr=* | --program-t=*)
1239    program_transform_name=$ac_optarg ;;
1240
1241  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242    ac_prev=pdfdir ;;
1243  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244    pdfdir=$ac_optarg ;;
1245
1246  -psdir | --psdir | --psdi | --psd | --ps)
1247    ac_prev=psdir ;;
1248  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249    psdir=$ac_optarg ;;
1250
1251  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252  | -silent | --silent | --silen | --sile | --sil)
1253    silent=yes ;;
1254
1255  -runstatedir | --runstatedir | --runstatedi | --runstated \
1256  | --runstate | --runstat | --runsta | --runst | --runs \
1257  | --run | --ru | --r)
1258    ac_prev=runstatedir ;;
1259  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1260  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1261  | --run=* | --ru=* | --r=*)
1262    runstatedir=$ac_optarg ;;
1263
1264  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265    ac_prev=sbindir ;;
1266  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267  | --sbi=* | --sb=*)
1268    sbindir=$ac_optarg ;;
1269
1270  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272  | --sharedst | --shareds | --shared | --share | --shar \
1273  | --sha | --sh)
1274    ac_prev=sharedstatedir ;;
1275  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278  | --sha=* | --sh=*)
1279    sharedstatedir=$ac_optarg ;;
1280
1281  -site | --site | --sit)
1282    ac_prev=site ;;
1283  -site=* | --site=* | --sit=*)
1284    site=$ac_optarg ;;
1285
1286  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287    ac_prev=srcdir ;;
1288  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289    srcdir=$ac_optarg ;;
1290
1291  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292  | --syscon | --sysco | --sysc | --sys | --sy)
1293    ac_prev=sysconfdir ;;
1294  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296    sysconfdir=$ac_optarg ;;
1297
1298  -target | --target | --targe | --targ | --tar | --ta | --t)
1299    ac_prev=target_alias ;;
1300  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301    target_alias=$ac_optarg ;;
1302
1303  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304    verbose=yes ;;
1305
1306  -version | --version | --versio | --versi | --vers | -V)
1307    ac_init_version=: ;;
1308
1309  -with-* | --with-*)
1310    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311    # Reject names that are not valid shell variable names.
1312    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313      as_fn_error $? "invalid package name: \`$ac_useropt'"
1314    ac_useropt_orig=$ac_useropt
1315    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1316    case $ac_user_opts in
1317      *"
1318"with_$ac_useropt"
1319"*) ;;
1320      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321	 ac_unrecognized_sep=', ';;
1322    esac
1323    eval with_$ac_useropt=\$ac_optarg ;;
1324
1325  -without-* | --without-*)
1326    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329      as_fn_error $? "invalid package name: \`$ac_useropt'"
1330    ac_useropt_orig=$ac_useropt
1331    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332    case $ac_user_opts in
1333      *"
1334"with_$ac_useropt"
1335"*) ;;
1336      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337	 ac_unrecognized_sep=', ';;
1338    esac
1339    eval with_$ac_useropt=no ;;
1340
1341  --x)
1342    # Obsolete; use --with-x.
1343    with_x=yes ;;
1344
1345  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346  | --x-incl | --x-inc | --x-in | --x-i)
1347    ac_prev=x_includes ;;
1348  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350    x_includes=$ac_optarg ;;
1351
1352  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354    ac_prev=x_libraries ;;
1355  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357    x_libraries=$ac_optarg ;;
1358
1359  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360Try \`$0 --help' for more information"
1361    ;;
1362
1363  *=*)
1364    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365    # Reject names that are not valid shell variable names.
1366    case $ac_envvar in #(
1367      '' | [0-9]* | *[!_$as_cr_alnum]* )
1368      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369    esac
1370    eval $ac_envvar=\$ac_optarg
1371    export $ac_envvar ;;
1372
1373  *)
1374    # FIXME: should be removed in autoconf 3.0.
1375    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1376    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1378    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379    ;;
1380
1381  esac
1382done
1383
1384if test -n "$ac_prev"; then
1385  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386  as_fn_error $? "missing argument to $ac_option"
1387fi
1388
1389if test -n "$ac_unrecognized_opts"; then
1390  case $enable_option_checking in
1391    no) ;;
1392    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394  esac
1395fi
1396
1397# Check all directory arguments for consistency.
1398for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399		datadir sysconfdir sharedstatedir localstatedir includedir \
1400		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401		libdir localedir mandir runstatedir
1402do
1403  eval ac_val=\$$ac_var
1404  # Remove trailing slashes.
1405  case $ac_val in
1406    */ )
1407      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408      eval $ac_var=\$ac_val;;
1409  esac
1410  # Be sure to have absolute directory names.
1411  case $ac_val in
1412    [\\/$]* | ?:[\\/]* )  continue;;
1413    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414  esac
1415  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416done
1417
1418# There might be people who depend on the old broken behavior: `$host'
1419# used to hold the argument of --host etc.
1420# FIXME: To remove some day.
1421build=$build_alias
1422host=$host_alias
1423target=$target_alias
1424
1425# FIXME: To remove some day.
1426if test "x$host_alias" != x; then
1427  if test "x$build_alias" = x; then
1428    cross_compiling=maybe
1429  elif test "x$build_alias" != "x$host_alias"; then
1430    cross_compiling=yes
1431  fi
1432fi
1433
1434ac_tool_prefix=
1435test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437test "$silent" = yes && exec 6>/dev/null
1438
1439
1440ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441ac_ls_di=`ls -di .` &&
1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443  as_fn_error $? "working directory cannot be determined"
1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445  as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448# Find the source files, if location was not specified.
1449if test -z "$srcdir"; then
1450  ac_srcdir_defaulted=yes
1451  # Try the directory containing this script, then the parent directory.
1452  ac_confdir=`$as_dirname -- "$as_myself" ||
1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454	 X"$as_myself" : 'X\(//\)[^/]' \| \
1455	 X"$as_myself" : 'X\(//\)$' \| \
1456	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457printf "%s\n" X"$as_myself" |
1458    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459	    s//\1/
1460	    q
1461	  }
1462	  /^X\(\/\/\)[^/].*/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\/\)$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\).*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  s/.*/./; q'`
1475  srcdir=$ac_confdir
1476  if test ! -r "$srcdir/$ac_unique_file"; then
1477    srcdir=..
1478  fi
1479else
1480  ac_srcdir_defaulted=no
1481fi
1482if test ! -r "$srcdir/$ac_unique_file"; then
1483  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485fi
1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487ac_abs_confdir=`(
1488	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489	pwd)`
1490# When building in place, set srcdir=.
1491if test "$ac_abs_confdir" = "$ac_pwd"; then
1492  srcdir=.
1493fi
1494# Remove unnecessary trailing slashes from srcdir.
1495# Double slashes in file names in object file debugging info
1496# mess up M-x gdb in Emacs.
1497case $srcdir in
1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499esac
1500for ac_var in $ac_precious_vars; do
1501  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502  eval ac_env_${ac_var}_value=\$${ac_var}
1503  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505done
1506
1507#
1508# Report the --help message.
1509#
1510if test "$ac_init_help" = "long"; then
1511  # Omit some internal or obsolete options to make the list less imposing.
1512  # This message is too long to be a string in the A/UX 3.1 sh.
1513  cat <<_ACEOF
1514\`configure' configures libXfont2 2.0.6 to adapt to many kinds of systems.
1515
1516Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521Defaults for the options are specified in brackets.
1522
1523Configuration:
1524  -h, --help              display this help and exit
1525      --help=short        display options specific to this package
1526      --help=recursive    display the short help of all the included packages
1527  -V, --version           display version information and exit
1528  -q, --quiet, --silent   do not print \`checking ...' messages
1529      --cache-file=FILE   cache test results in FILE [disabled]
1530  -C, --config-cache      alias for \`--cache-file=config.cache'
1531  -n, --no-create         do not create output files
1532      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534Installation directories:
1535  --prefix=PREFIX         install architecture-independent files in PREFIX
1536                          [$ac_default_prefix]
1537  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                          [PREFIX]
1539
1540By default, \`make install' will install all the files in
1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543for instance \`--prefix=\$HOME'.
1544
1545For better control, use the options below.
1546
1547Fine tuning of the installation directories:
1548  --bindir=DIR            user executables [EPREFIX/bin]
1549  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550  --libexecdir=DIR        program executables [EPREFIX/libexec]
1551  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1555  --libdir=DIR            object code libraries [EPREFIX/lib]
1556  --includedir=DIR        C header files [PREFIX/include]
1557  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1558  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1559  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1560  --infodir=DIR           info documentation [DATAROOTDIR/info]
1561  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1562  --mandir=DIR            man documentation [DATAROOTDIR/man]
1563  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont2]
1564  --htmldir=DIR           html documentation [DOCDIR]
1565  --dvidir=DIR            dvi documentation [DOCDIR]
1566  --pdfdir=DIR            pdf documentation [DOCDIR]
1567  --psdir=DIR             ps documentation [DOCDIR]
1568_ACEOF
1569
1570  cat <<\_ACEOF
1571
1572Program names:
1573  --program-prefix=PREFIX            prepend PREFIX to installed program names
1574  --program-suffix=SUFFIX            append SUFFIX to installed program names
1575  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1576
1577System types:
1578  --build=BUILD     configure for building on BUILD [guessed]
1579  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1580_ACEOF
1581fi
1582
1583if test -n "$ac_init_help"; then
1584  case $ac_init_help in
1585     short | recursive ) echo "Configuration of libXfont2 2.0.6:";;
1586   esac
1587  cat <<\_ACEOF
1588
1589Optional Features:
1590  --disable-option-checking  ignore unrecognized --enable/--with options
1591  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1592  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1593  --enable-silent-rules   less verbose build output (undo: "make V=1")
1594  --disable-silent-rules  verbose build output (undo: "make V=0")
1595  --enable-dependency-tracking
1596                          do not reject slow dependency extractors
1597  --disable-dependency-tracking
1598                          speeds up one-time build
1599  --enable-shared[=PKGS]  build shared libraries [default=yes]
1600  --enable-static[=PKGS]  build static libraries [default=yes]
1601  --enable-fast-install[=PKGS]
1602                          optimize for fast installation [default=yes]
1603  --disable-libtool-lock  avoid locking (might break parallel builds)
1604  --disable-selective-werror
1605                          Turn off selective compiler errors. (default:
1606                          enabled)
1607  --enable-strict-compilation
1608                          Enable all warnings from compiler and make them
1609                          errors (default: disabled)
1610  --enable-devel-docs     Enable building the developer documentation
1611                          (default: yes)
1612  --disable-freetype      Build freetype backend (default: enabled)
1613  --disable-builtins      Support builtin fonts (default: enabled)
1614  --disable-pcfformat     Support PCF format bitmap fonts (default: enabled)
1615  --disable-bdfformat     Support BDF format bitmap fonts (default: enabled)
1616  --enable-snfformat      Support SNF format bitmap fonts (default: disabled)
1617  --disable-fc            Support connections to xfs servers (default:
1618                          enabled)
1619  --enable-unix-transport Enable UNIX domain socket transport
1620  --enable-tcp-transport  Enable TCP socket transport
1621  --enable-ipv6           Enable IPv6 support
1622  --enable-local-transport
1623                          Enable os-specific local transport
1624
1625Optional Packages:
1626  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1629                          both]
1630  --with-aix-soname=aix|svr4|both
1631                          shared library versioning (aka "SONAME") variant to
1632                          provide on AIX, [default=aix].
1633  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1634  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1635                          compiler's sysroot if not specified).
1636  --with-xmlto            Use xmlto to regenerate documentation (default:
1637                          auto)
1638  --with-fop              Use fop to regenerate documentation (default: auto)
1639  --with-freetype-config=PROG
1640                          Use FreeType configuration program PROG
1641  --with-bzip2            Use libbz2 to support bzip2 compressed bitmap fonts
1642                          (default: no)
1643
1644Some influential environment variables:
1645  CC          C compiler command
1646  CFLAGS      C compiler flags
1647  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1648              nonstandard directory <lib dir>
1649  LIBS        libraries to pass to the linker, e.g. -l<library>
1650  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1651              you have headers in a nonstandard directory <include dir>
1652  LT_SYS_LIBRARY_PATH
1653              User-defined run-time library search path.
1654  PKG_CONFIG  path to pkg-config utility
1655  PKG_CONFIG_PATH
1656              directories to add to pkg-config's search path
1657  PKG_CONFIG_LIBDIR
1658              path overriding pkg-config's built-in search path
1659  XMLTO       Path to xmlto command
1660  FOP         Path to fop command
1661  FREETYPE_CFLAGS
1662              C compiler flags for FREETYPE, overriding pkg-config
1663  FREETYPE_LIBS
1664              linker flags for FREETYPE, overriding pkg-config
1665  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1666  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1667  XFONT_CFLAGS
1668              C compiler flags for XFONT, overriding pkg-config
1669  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1670
1671Use these variables to override the choices made by `configure' or to help
1672it to find libraries and programs with nonstandard names/locations.
1673
1674Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>.
1675_ACEOF
1676ac_status=$?
1677fi
1678
1679if test "$ac_init_help" = "recursive"; then
1680  # If there are subdirs, report their specific --help.
1681  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682    test -d "$ac_dir" ||
1683      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684      continue
1685    ac_builddir=.
1686
1687case "$ac_dir" in
1688.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689*)
1690  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1691  # A ".." for each directory in $ac_dir_suffix.
1692  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693  case $ac_top_builddir_sub in
1694  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696  esac ;;
1697esac
1698ac_abs_top_builddir=$ac_pwd
1699ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700# for backward compatibility:
1701ac_top_builddir=$ac_top_build_prefix
1702
1703case $srcdir in
1704  .)  # We are building in place.
1705    ac_srcdir=.
1706    ac_top_srcdir=$ac_top_builddir_sub
1707    ac_abs_top_srcdir=$ac_pwd ;;
1708  [\\/]* | ?:[\\/]* )  # Absolute name.
1709    ac_srcdir=$srcdir$ac_dir_suffix;
1710    ac_top_srcdir=$srcdir
1711    ac_abs_top_srcdir=$srcdir ;;
1712  *) # Relative name.
1713    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714    ac_top_srcdir=$ac_top_build_prefix$srcdir
1715    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1716esac
1717ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719    cd "$ac_dir" || { ac_status=$?; continue; }
1720    # Check for configure.gnu first; this name is used for a wrapper for
1721    # Metaconfig's "Configure" on case-insensitive file systems.
1722    if test -f "$ac_srcdir/configure.gnu"; then
1723      echo &&
1724      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725    elif test -f "$ac_srcdir/configure"; then
1726      echo &&
1727      $SHELL "$ac_srcdir/configure" --help=recursive
1728    else
1729      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730    fi || ac_status=$?
1731    cd "$ac_pwd" || { ac_status=$?; break; }
1732  done
1733fi
1734
1735test -n "$ac_init_help" && exit $ac_status
1736if $ac_init_version; then
1737  cat <<\_ACEOF
1738libXfont2 configure 2.0.6
1739generated by GNU Autoconf 2.71
1740
1741Copyright (C) 2021 Free Software Foundation, Inc.
1742This configure script is free software; the Free Software Foundation
1743gives unlimited permission to copy, distribute and modify it.
1744_ACEOF
1745  exit
1746fi
1747
1748## ------------------------ ##
1749## Autoconf initialization. ##
1750## ------------------------ ##
1751
1752# ac_fn_c_try_compile LINENO
1753# --------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  rm -f conftest.$ac_objext conftest.beam
1759  if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765printf "%s\n" "$ac_try_echo"; } >&5
1766  (eval "$ac_compile") 2>conftest.err
1767  ac_status=$?
1768  if test -s conftest.err; then
1769    grep -v '^ *+' conftest.err >conftest.er1
1770    cat conftest.er1 >&5
1771    mv -f conftest.er1 conftest.err
1772  fi
1773  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } && {
1775	 test -z "$ac_c_werror_flag" ||
1776	 test ! -s conftest.err
1777       } && test -s conftest.$ac_objext
1778then :
1779  ac_retval=0
1780else $as_nop
1781  printf "%s\n" "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784	ac_retval=1
1785fi
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_compile
1790
1791# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists and can be compiled using the include files in
1794# INCLUDES, setting the cache variable VAR accordingly.
1795ac_fn_c_check_header_compile ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799printf %s "checking for $2... " >&6; }
1800if eval test \${$3+y}
1801then :
1802  printf %s "(cached) " >&6
1803else $as_nop
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"
1810then :
1811  eval "$3=yes"
1812else $as_nop
1813  eval "$3=no"
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819printf "%s\n" "$ac_res" >&6; }
1820  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822} # ac_fn_c_check_header_compile
1823
1824# ac_fn_c_try_link LINENO
1825# -----------------------
1826# Try to link conftest.$ac_ext, and return whether this succeeded.
1827ac_fn_c_try_link ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1831  if { { ac_try="$ac_link"
1832case "(($ac_try" in
1833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834  *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837printf "%s\n" "$ac_try_echo"; } >&5
1838  (eval "$ac_link") 2>conftest.err
1839  ac_status=$?
1840  if test -s conftest.err; then
1841    grep -v '^ *+' conftest.err >conftest.er1
1842    cat conftest.er1 >&5
1843    mv -f conftest.er1 conftest.err
1844  fi
1845  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846  test $ac_status = 0; } && {
1847	 test -z "$ac_c_werror_flag" ||
1848	 test ! -s conftest.err
1849       } && test -s conftest$ac_exeext && {
1850	 test "$cross_compiling" = yes ||
1851	 test -x conftest$ac_exeext
1852       }
1853then :
1854  ac_retval=0
1855else $as_nop
1856  printf "%s\n" "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859	ac_retval=1
1860fi
1861  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863  # interfere with the next link command; also delete a directory that is
1864  # left behind by Apple's compiler.  We do this before executing the actions.
1865  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867  as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_link
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878printf %s "checking for $2... " >&6; }
1879if eval test \${$3+y}
1880then :
1881  printf %s "(cached) " >&6
1882else $as_nop
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887#define $2 innocuous_$2
1888
1889/* System header to define __stub macros and hopefully few prototypes,
1890   which can conflict with char $2 (); below.  */
1891
1892#include <limits.h>
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896   Use char because int might match the return type of a GCC
1897   builtin and then its argument prototype would still apply.  */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903    to always fail with ENOSYS.  Some functions are actually named
1904    something starting with __ and the normal name is an alias.  */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main (void)
1911{
1912return $2 ();
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"
1918then :
1919  eval "$3=yes"
1920else $as_nop
1921  eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.beam \
1924    conftest$ac_exeext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928printf "%s\n" "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_func
1932
1933# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1934# ------------------------------------------------------------------
1935# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1936# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1937ac_fn_check_decl ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  as_decl_name=`echo $2|sed 's/ *(.*//'`
1941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1942printf %s "checking whether $as_decl_name is declared... " >&6; }
1943if eval test \${$3+y}
1944then :
1945  printf %s "(cached) " >&6
1946else $as_nop
1947  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948  eval ac_save_FLAGS=\$$6
1949  as_fn_append $6 " $5"
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952$4
1953int
1954main (void)
1955{
1956#ifndef $as_decl_name
1957#ifdef __cplusplus
1958  (void) $as_decl_use;
1959#else
1960  (void) $as_decl_name;
1961#endif
1962#endif
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"
1969then :
1970  eval "$3=yes"
1971else $as_nop
1972  eval "$3=no"
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1975  eval $6=\$ac_save_FLAGS
1976
1977fi
1978eval ac_res=\$$3
1979	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980printf "%s\n" "$ac_res" >&6; }
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_check_decl
1984
1985# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986# ----------------------------------------------------
1987# Tries to find if the field MEMBER exists in type AGGR, after including
1988# INCLUDES, setting cache variable VAR accordingly.
1989ac_fn_c_check_member ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993printf %s "checking for $2.$3... " >&6; }
1994if eval test \${$4+y}
1995then :
1996  printf %s "(cached) " >&6
1997else $as_nop
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$5
2001int
2002main (void)
2003{
2004static $2 ac_aggr;
2005if (ac_aggr.$3)
2006return 0;
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"
2012then :
2013  eval "$4=yes"
2014else $as_nop
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$5
2018int
2019main (void)
2020{
2021static $2 ac_aggr;
2022if (sizeof ac_aggr.$3)
2023return 0;
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"
2029then :
2030  eval "$4=yes"
2031else $as_nop
2032  eval "$4=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2037fi
2038eval ac_res=\$$4
2039	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040printf "%s\n" "$ac_res" >&6; }
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_member
2044
2045# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2046# -------------------------------------------
2047# Tests whether TYPE exists after having included INCLUDES, setting cache
2048# variable VAR accordingly.
2049ac_fn_c_check_type ()
2050{
2051  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053printf %s "checking for $2... " >&6; }
2054if eval test \${$3+y}
2055then :
2056  printf %s "(cached) " >&6
2057else $as_nop
2058  eval "$3=no"
2059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061$4
2062int
2063main (void)
2064{
2065if (sizeof ($2))
2066	 return 0;
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"
2072then :
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main (void)
2078{
2079if (sizeof (($2)))
2080	    return 0;
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"
2086then :
2087
2088else $as_nop
2089  eval "$3=yes"
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094fi
2095eval ac_res=\$$3
2096	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097printf "%s\n" "$ac_res" >&6; }
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100} # ac_fn_c_check_type
2101ac_configure_args_raw=
2102for ac_arg
2103do
2104  case $ac_arg in
2105  *\'*)
2106    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107  esac
2108  as_fn_append ac_configure_args_raw " '$ac_arg'"
2109done
2110
2111case $ac_configure_args_raw in
2112  *$as_nl*)
2113    ac_safe_unquote= ;;
2114  *)
2115    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2116    ac_unsafe_a="$ac_unsafe_z#~"
2117    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2118    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2119esac
2120
2121cat >config.log <<_ACEOF
2122This file contains any messages produced by compilers while
2123running configure, to aid debugging if configure makes a mistake.
2124
2125It was created by libXfont2 $as_me 2.0.6, which was
2126generated by GNU Autoconf 2.71.  Invocation command line was
2127
2128  $ $0$ac_configure_args_raw
2129
2130_ACEOF
2131exec 5>>config.log
2132{
2133cat <<_ASUNAME
2134## --------- ##
2135## Platform. ##
2136## --------- ##
2137
2138hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2146
2147/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2148/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2149/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2151/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2152/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2153/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2154
2155_ASUNAME
2156
2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158for as_dir in $PATH
2159do
2160  IFS=$as_save_IFS
2161  case $as_dir in #(((
2162    '') as_dir=./ ;;
2163    */) ;;
2164    *) as_dir=$as_dir/ ;;
2165  esac
2166    printf "%s\n" "PATH: $as_dir"
2167  done
2168IFS=$as_save_IFS
2169
2170} >&5
2171
2172cat >&5 <<_ACEOF
2173
2174
2175## ----------- ##
2176## Core tests. ##
2177## ----------- ##
2178
2179_ACEOF
2180
2181
2182# Keep a trace of the command line.
2183# Strip out --no-create and --no-recursion so they do not pile up.
2184# Strip out --silent because we don't want to record it for future runs.
2185# Also quote any args containing shell meta-characters.
2186# Make two passes to allow for proper duplicate-argument suppression.
2187ac_configure_args=
2188ac_configure_args0=
2189ac_configure_args1=
2190ac_must_keep_next=false
2191for ac_pass in 1 2
2192do
2193  for ac_arg
2194  do
2195    case $ac_arg in
2196    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198    | -silent | --silent | --silen | --sile | --sil)
2199      continue ;;
2200    *\'*)
2201      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202    esac
2203    case $ac_pass in
2204    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205    2)
2206      as_fn_append ac_configure_args1 " '$ac_arg'"
2207      if test $ac_must_keep_next = true; then
2208	ac_must_keep_next=false # Got value, back to normal.
2209      else
2210	case $ac_arg in
2211	  *=* | --config-cache | -C | -disable-* | --disable-* \
2212	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214	  | -with-* | --with-* | -without-* | --without-* | --x)
2215	    case "$ac_configure_args0 " in
2216	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217	    esac
2218	    ;;
2219	  -* ) ac_must_keep_next=true ;;
2220	esac
2221      fi
2222      as_fn_append ac_configure_args " '$ac_arg'"
2223      ;;
2224    esac
2225  done
2226done
2227{ ac_configure_args0=; unset ac_configure_args0;}
2228{ ac_configure_args1=; unset ac_configure_args1;}
2229
2230# When interrupted or exit'd, cleanup temporary files, and complete
2231# config.log.  We remove comments because anyway the quotes in there
2232# would cause problems or look ugly.
2233# WARNING: Use '\'' to represent an apostrophe within the trap.
2234# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235trap 'exit_status=$?
2236  # Sanitize IFS.
2237  IFS=" ""	$as_nl"
2238  # Save into config.log some information that might help in debugging.
2239  {
2240    echo
2241
2242    printf "%s\n" "## ---------------- ##
2243## Cache variables. ##
2244## ---------------- ##"
2245    echo
2246    # The following way of writing the cache mishandles newlines in values,
2247(
2248  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249    eval ac_val=\$$ac_var
2250    case $ac_val in #(
2251    *${as_nl}*)
2252      case $ac_var in #(
2253      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2255      esac
2256      case $ac_var in #(
2257      _ | IFS | as_nl) ;; #(
2258      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259      *) { eval $ac_var=; unset $ac_var;} ;;
2260      esac ;;
2261    esac
2262  done
2263  (set) 2>&1 |
2264    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265    *${as_nl}ac_space=\ *)
2266      sed -n \
2267	"s/'\''/'\''\\\\'\'''\''/g;
2268	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2269      ;; #(
2270    *)
2271      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2272      ;;
2273    esac |
2274    sort
2275)
2276    echo
2277
2278    printf "%s\n" "## ----------------- ##
2279## Output variables. ##
2280## ----------------- ##"
2281    echo
2282    for ac_var in $ac_subst_vars
2283    do
2284      eval ac_val=\$$ac_var
2285      case $ac_val in
2286      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287      esac
2288      printf "%s\n" "$ac_var='\''$ac_val'\''"
2289    done | sort
2290    echo
2291
2292    if test -n "$ac_subst_files"; then
2293      printf "%s\n" "## ------------------- ##
2294## File substitutions. ##
2295## ------------------- ##"
2296      echo
2297      for ac_var in $ac_subst_files
2298      do
2299	eval ac_val=\$$ac_var
2300	case $ac_val in
2301	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302	esac
2303	printf "%s\n" "$ac_var='\''$ac_val'\''"
2304      done | sort
2305      echo
2306    fi
2307
2308    if test -s confdefs.h; then
2309      printf "%s\n" "## ----------- ##
2310## confdefs.h. ##
2311## ----------- ##"
2312      echo
2313      cat confdefs.h
2314      echo
2315    fi
2316    test "$ac_signal" != 0 &&
2317      printf "%s\n" "$as_me: caught signal $ac_signal"
2318    printf "%s\n" "$as_me: exit $exit_status"
2319  } >&5
2320  rm -f core *.core core.conftest.* &&
2321    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322    exit $exit_status
2323' 0
2324for ac_signal in 1 2 13 15; do
2325  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326done
2327ac_signal=0
2328
2329# confdefs.h avoids OS command line length limits that DEFS can exceed.
2330rm -f -r conftest* confdefs.h
2331
2332printf "%s\n" "/* confdefs.h */" > confdefs.h
2333
2334# Predefined preprocessor variables.
2335
2336printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2337
2338printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2339
2340printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2341
2342printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2343
2344printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2345
2346printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2347
2348
2349# Let the site file select an alternate cache file if it wants to.
2350# Prefer an explicitly selected file to automatically selected ones.
2351if test -n "$CONFIG_SITE"; then
2352  ac_site_files="$CONFIG_SITE"
2353elif test "x$prefix" != xNONE; then
2354  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2355else
2356  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2357fi
2358
2359for ac_site_file in $ac_site_files
2360do
2361  case $ac_site_file in #(
2362  */*) :
2363     ;; #(
2364  *) :
2365    ac_site_file=./$ac_site_file ;;
2366esac
2367  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2368    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2370    sed 's/^/| /' "$ac_site_file" >&5
2371    . "$ac_site_file" \
2372      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2374as_fn_error $? "failed to load site script $ac_site_file
2375See \`config.log' for more details" "$LINENO" 5; }
2376  fi
2377done
2378
2379if test -r "$cache_file"; then
2380  # Some versions of bash will fail to source /dev/null (special files
2381  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2382  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2385    case $cache_file in
2386      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387      *)                      . "./$cache_file";;
2388    esac
2389  fi
2390else
2391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2393  >$cache_file
2394fi
2395
2396as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2397# Test code for whether the C compiler supports C89 (global declarations)
2398ac_c_conftest_c89_globals='
2399/* Does the compiler advertise C89 conformance?
2400   Do not test the value of __STDC__, because some compilers set it to 0
2401   while being otherwise adequately conformant. */
2402#if !defined __STDC__
2403# error "Compiler does not advertise C89 conformance"
2404#endif
2405
2406#include <stddef.h>
2407#include <stdarg.h>
2408struct stat;
2409/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2410struct buf { int x; };
2411struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2412static char *e (p, i)
2413     char **p;
2414     int i;
2415{
2416  return p[i];
2417}
2418static char *f (char * (*g) (char **, int), char **p, ...)
2419{
2420  char *s;
2421  va_list v;
2422  va_start (v,p);
2423  s = g (p, va_arg (v,int));
2424  va_end (v);
2425  return s;
2426}
2427
2428/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2429   function prototypes and stuff, but not \xHH hex character constants.
2430   These do not provoke an error unfortunately, instead are silently treated
2431   as an "x".  The following induces an error, until -std is added to get
2432   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2433   array size at least.  It is necessary to write \x00 == 0 to get something
2434   that is true only with -std.  */
2435int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2436
2437/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2438   inside strings and character constants.  */
2439#define FOO(x) '\''x'\''
2440int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2441
2442int test (int i, double x);
2443struct s1 {int (*f) (int a);};
2444struct s2 {int (*f) (double a);};
2445int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2446               int, int);'
2447
2448# Test code for whether the C compiler supports C89 (body of main).
2449ac_c_conftest_c89_main='
2450ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2451'
2452
2453# Test code for whether the C compiler supports C99 (global declarations)
2454ac_c_conftest_c99_globals='
2455// Does the compiler advertise C99 conformance?
2456#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2457# error "Compiler does not advertise C99 conformance"
2458#endif
2459
2460#include <stdbool.h>
2461extern int puts (const char *);
2462extern int printf (const char *, ...);
2463extern int dprintf (int, const char *, ...);
2464extern void *malloc (size_t);
2465
2466// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2467// dprintf is used instead of fprintf to avoid needing to declare
2468// FILE and stderr.
2469#define debug(...) dprintf (2, __VA_ARGS__)
2470#define showlist(...) puts (#__VA_ARGS__)
2471#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2472static void
2473test_varargs_macros (void)
2474{
2475  int x = 1234;
2476  int y = 5678;
2477  debug ("Flag");
2478  debug ("X = %d\n", x);
2479  showlist (The first, second, and third items.);
2480  report (x>y, "x is %d but y is %d", x, y);
2481}
2482
2483// Check long long types.
2484#define BIG64 18446744073709551615ull
2485#define BIG32 4294967295ul
2486#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2487#if !BIG_OK
2488  #error "your preprocessor is broken"
2489#endif
2490#if BIG_OK
2491#else
2492  #error "your preprocessor is broken"
2493#endif
2494static long long int bignum = -9223372036854775807LL;
2495static unsigned long long int ubignum = BIG64;
2496
2497struct incomplete_array
2498{
2499  int datasize;
2500  double data[];
2501};
2502
2503struct named_init {
2504  int number;
2505  const wchar_t *name;
2506  double average;
2507};
2508
2509typedef const char *ccp;
2510
2511static inline int
2512test_restrict (ccp restrict text)
2513{
2514  // See if C++-style comments work.
2515  // Iterate through items via the restricted pointer.
2516  // Also check for declarations in for loops.
2517  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2518    continue;
2519  return 0;
2520}
2521
2522// Check varargs and va_copy.
2523static bool
2524test_varargs (const char *format, ...)
2525{
2526  va_list args;
2527  va_start (args, format);
2528  va_list args_copy;
2529  va_copy (args_copy, args);
2530
2531  const char *str = "";
2532  int number = 0;
2533  float fnumber = 0;
2534
2535  while (*format)
2536    {
2537      switch (*format++)
2538	{
2539	case '\''s'\'': // string
2540	  str = va_arg (args_copy, const char *);
2541	  break;
2542	case '\''d'\'': // int
2543	  number = va_arg (args_copy, int);
2544	  break;
2545	case '\''f'\'': // float
2546	  fnumber = va_arg (args_copy, double);
2547	  break;
2548	default:
2549	  break;
2550	}
2551    }
2552  va_end (args_copy);
2553  va_end (args);
2554
2555  return *str && number && fnumber;
2556}
2557'
2558
2559# Test code for whether the C compiler supports C99 (body of main).
2560ac_c_conftest_c99_main='
2561  // Check bool.
2562  _Bool success = false;
2563  success |= (argc != 0);
2564
2565  // Check restrict.
2566  if (test_restrict ("String literal") == 0)
2567    success = true;
2568  char *restrict newvar = "Another string";
2569
2570  // Check varargs.
2571  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2572  test_varargs_macros ();
2573
2574  // Check flexible array members.
2575  struct incomplete_array *ia =
2576    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2577  ia->datasize = 10;
2578  for (int i = 0; i < ia->datasize; ++i)
2579    ia->data[i] = i * 1.234;
2580
2581  // Check named initializers.
2582  struct named_init ni = {
2583    .number = 34,
2584    .name = L"Test wide string",
2585    .average = 543.34343,
2586  };
2587
2588  ni.number = 58;
2589
2590  int dynamic_array[ni.number];
2591  dynamic_array[0] = argv[0][0];
2592  dynamic_array[ni.number - 1] = 543;
2593
2594  // work around unused variable warnings
2595  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2596	 || dynamic_array[ni.number - 1] != 543);
2597'
2598
2599# Test code for whether the C compiler supports C11 (global declarations)
2600ac_c_conftest_c11_globals='
2601// Does the compiler advertise C11 conformance?
2602#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2603# error "Compiler does not advertise C11 conformance"
2604#endif
2605
2606// Check _Alignas.
2607char _Alignas (double) aligned_as_double;
2608char _Alignas (0) no_special_alignment;
2609extern char aligned_as_int;
2610char _Alignas (0) _Alignas (int) aligned_as_int;
2611
2612// Check _Alignof.
2613enum
2614{
2615  int_alignment = _Alignof (int),
2616  int_array_alignment = _Alignof (int[100]),
2617  char_alignment = _Alignof (char)
2618};
2619_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2620
2621// Check _Noreturn.
2622int _Noreturn does_not_return (void) { for (;;) continue; }
2623
2624// Check _Static_assert.
2625struct test_static_assert
2626{
2627  int x;
2628  _Static_assert (sizeof (int) <= sizeof (long int),
2629                  "_Static_assert does not work in struct");
2630  long int y;
2631};
2632
2633// Check UTF-8 literals.
2634#define u8 syntax error!
2635char const utf8_literal[] = u8"happens to be ASCII" "another string";
2636
2637// Check duplicate typedefs.
2638typedef long *long_ptr;
2639typedef long int *long_ptr;
2640typedef long_ptr long_ptr;
2641
2642// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2643struct anonymous
2644{
2645  union {
2646    struct { int i; int j; };
2647    struct { int k; long int l; } w;
2648  };
2649  int m;
2650} v1;
2651'
2652
2653# Test code for whether the C compiler supports C11 (body of main).
2654ac_c_conftest_c11_main='
2655  _Static_assert ((offsetof (struct anonymous, i)
2656		   == offsetof (struct anonymous, w.k)),
2657		  "Anonymous union alignment botch");
2658  v1.i = 2;
2659  v1.w.k = 5;
2660  ok |= v1.i != 5;
2661'
2662
2663# Test code for whether the C compiler supports C11 (complete).
2664ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2665${ac_c_conftest_c99_globals}
2666${ac_c_conftest_c11_globals}
2667
2668int
2669main (int argc, char **argv)
2670{
2671  int ok = 0;
2672  ${ac_c_conftest_c89_main}
2673  ${ac_c_conftest_c99_main}
2674  ${ac_c_conftest_c11_main}
2675  return ok;
2676}
2677"
2678
2679# Test code for whether the C compiler supports C99 (complete).
2680ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2681${ac_c_conftest_c99_globals}
2682
2683int
2684main (int argc, char **argv)
2685{
2686  int ok = 0;
2687  ${ac_c_conftest_c89_main}
2688  ${ac_c_conftest_c99_main}
2689  return ok;
2690}
2691"
2692
2693# Test code for whether the C compiler supports C89 (complete).
2694ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2695
2696int
2697main (int argc, char **argv)
2698{
2699  int ok = 0;
2700  ${ac_c_conftest_c89_main}
2701  return ok;
2702}
2703"
2704
2705as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2706as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2707as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2708as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2709as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2710as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2711as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2712as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2713as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2714as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2715
2716# Auxiliary files required by this configure script.
2717ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2718
2719# Locations in which to look for auxiliary files.
2720ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2721
2722# Search for a directory containing all of the required auxiliary files,
2723# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2724# If we don't find one directory that contains all the files we need,
2725# we report the set of missing files from the *first* directory in
2726# $ac_aux_dir_candidates and give up.
2727ac_missing_aux_files=""
2728ac_first_candidate=:
2729printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731as_found=false
2732for as_dir in $ac_aux_dir_candidates
2733do
2734  IFS=$as_save_IFS
2735  case $as_dir in #(((
2736    '') as_dir=./ ;;
2737    */) ;;
2738    *) as_dir=$as_dir/ ;;
2739  esac
2740  as_found=:
2741
2742  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2743  ac_aux_dir_found=yes
2744  ac_install_sh=
2745  for ac_aux in $ac_aux_files
2746  do
2747    # As a special case, if "install-sh" is required, that requirement
2748    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2749    # and $ac_install_sh is set appropriately for whichever one is found.
2750    if test x"$ac_aux" = x"install-sh"
2751    then
2752      if test -f "${as_dir}install-sh"; then
2753        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2754        ac_install_sh="${as_dir}install-sh -c"
2755      elif test -f "${as_dir}install.sh"; then
2756        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2757        ac_install_sh="${as_dir}install.sh -c"
2758      elif test -f "${as_dir}shtool"; then
2759        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2760        ac_install_sh="${as_dir}shtool install -c"
2761      else
2762        ac_aux_dir_found=no
2763        if $ac_first_candidate; then
2764          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2765        else
2766          break
2767        fi
2768      fi
2769    else
2770      if test -f "${as_dir}${ac_aux}"; then
2771        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2772      else
2773        ac_aux_dir_found=no
2774        if $ac_first_candidate; then
2775          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2776        else
2777          break
2778        fi
2779      fi
2780    fi
2781  done
2782  if test "$ac_aux_dir_found" = yes; then
2783    ac_aux_dir="$as_dir"
2784    break
2785  fi
2786  ac_first_candidate=false
2787
2788  as_found=false
2789done
2790IFS=$as_save_IFS
2791if $as_found
2792then :
2793
2794else $as_nop
2795  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2796fi
2797
2798
2799# These three variables are undocumented and unsupported,
2800# and are intended to be withdrawn in a future Autoconf release.
2801# They can cause serious problems if a builder's source tree is in a directory
2802# whose full name contains unusual characters.
2803if test -f "${ac_aux_dir}config.guess"; then
2804  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2805fi
2806if test -f "${ac_aux_dir}config.sub"; then
2807  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2808fi
2809if test -f "$ac_aux_dir/configure"; then
2810  ac_configure="$SHELL ${ac_aux_dir}configure"
2811fi
2812
2813# Check that the precious variables saved in the cache have kept the same
2814# value.
2815ac_cache_corrupted=false
2816for ac_var in $ac_precious_vars; do
2817  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2818  eval ac_new_set=\$ac_env_${ac_var}_set
2819  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2820  eval ac_new_val=\$ac_env_${ac_var}_value
2821  case $ac_old_set,$ac_new_set in
2822    set,)
2823      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2824printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2825      ac_cache_corrupted=: ;;
2826    ,set)
2827      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2828printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2829      ac_cache_corrupted=: ;;
2830    ,);;
2831    *)
2832      if test "x$ac_old_val" != "x$ac_new_val"; then
2833	# differences in whitespace do not lead to failure.
2834	ac_old_val_w=`echo x $ac_old_val`
2835	ac_new_val_w=`echo x $ac_new_val`
2836	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2837	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2838printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2839	  ac_cache_corrupted=:
2840	else
2841	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2842printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2843	  eval $ac_var=\$ac_old_val
2844	fi
2845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2846printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2848printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2849      fi;;
2850  esac
2851  # Pass precious variables to config.status.
2852  if test "$ac_new_set" = set; then
2853    case $ac_new_val in
2854    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2855    *) ac_arg=$ac_var=$ac_new_val ;;
2856    esac
2857    case " $ac_configure_args " in
2858      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2859      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2860    esac
2861  fi
2862done
2863if $ac_cache_corrupted; then
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2867printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2868  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2869	    and start over" "$LINENO" 5
2870fi
2871## -------------------- ##
2872## Main body of script. ##
2873## -------------------- ##
2874
2875ac_ext=c
2876ac_cpp='$CPP $CPPFLAGS'
2877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880
2881
2882
2883ac_config_headers="$ac_config_headers config.h"
2884
2885
2886# Initialize Automake
2887am__api_version='1.16'
2888
2889
2890
2891  # Find a good install program.  We prefer a C program (faster),
2892# so one script is as good as another.  But avoid the broken or
2893# incompatible versions:
2894# SysV /etc/install, /usr/sbin/install
2895# SunOS /usr/etc/install
2896# IRIX /sbin/install
2897# AIX /bin/install
2898# AmigaOS /C/install, which installs bootblocks on floppy discs
2899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2900# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2902# OS/2's system install, which has a completely different semantic
2903# ./install, which can be erroneously created by make from ./install.sh.
2904# Reject install programs that cannot install multiple files.
2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2906printf %s "checking for a BSD-compatible install... " >&6; }
2907if test -z "$INSTALL"; then
2908if test ${ac_cv_path_install+y}
2909then :
2910  printf %s "(cached) " >&6
2911else $as_nop
2912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  case $as_dir in #(((
2917    '') as_dir=./ ;;
2918    */) ;;
2919    *) as_dir=$as_dir/ ;;
2920  esac
2921    # Account for fact that we put trailing slashes in our PATH walk.
2922case $as_dir in #((
2923  ./ | /[cC]/* | \
2924  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2925  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2926  /usr/ucb/* ) ;;
2927  *)
2928    # OSF1 and SCO ODT 3.0 have their own names for install.
2929    # Don't use installbsd from OSF since it installs stuff as root
2930    # by default.
2931    for ac_prog in ginstall scoinst install; do
2932      for ac_exec_ext in '' $ac_executable_extensions; do
2933	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2934	  if test $ac_prog = install &&
2935	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936	    # AIX install.  It has an incompatible calling convention.
2937	    :
2938	  elif test $ac_prog = install &&
2939	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940	    # program-specific install script used by HP pwplus--don't use.
2941	    :
2942	  else
2943	    rm -rf conftest.one conftest.two conftest.dir
2944	    echo one > conftest.one
2945	    echo two > conftest.two
2946	    mkdir conftest.dir
2947	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2948	      test -s conftest.one && test -s conftest.two &&
2949	      test -s conftest.dir/conftest.one &&
2950	      test -s conftest.dir/conftest.two
2951	    then
2952	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2953	      break 3
2954	    fi
2955	  fi
2956	fi
2957      done
2958    done
2959    ;;
2960esac
2961
2962  done
2963IFS=$as_save_IFS
2964
2965rm -rf conftest.one conftest.two conftest.dir
2966
2967fi
2968  if test ${ac_cv_path_install+y}; then
2969    INSTALL=$ac_cv_path_install
2970  else
2971    # As a last resort, use the slow shell script.  Don't cache a
2972    # value for INSTALL within a source directory, because that will
2973    # break other packages using the cache if that directory is
2974    # removed, or if the value is a relative name.
2975    INSTALL=$ac_install_sh
2976  fi
2977fi
2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2979printf "%s\n" "$INSTALL" >&6; }
2980
2981# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2982# It thinks the first close brace ends the variable substitution.
2983test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2984
2985test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2986
2987test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2988
2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2990printf %s "checking whether build environment is sane... " >&6; }
2991# Reject unsafe characters in $srcdir or the absolute working directory
2992# name.  Accept space and tab only in the latter.
2993am_lf='
2994'
2995case `pwd` in
2996  *[\\\"\#\$\&\'\`$am_lf]*)
2997    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2998esac
2999case $srcdir in
3000  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3001    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3002esac
3003
3004# Do 'set' in a subshell so we don't clobber the current shell's
3005# arguments.  Must try -L first in case configure is actually a
3006# symlink; some systems play weird games with the mod time of symlinks
3007# (eg FreeBSD returns the mod time of the symlink's containing
3008# directory).
3009if (
3010   am_has_slept=no
3011   for am_try in 1 2; do
3012     echo "timestamp, slept: $am_has_slept" > conftest.file
3013     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3014     if test "$*" = "X"; then
3015	# -L didn't work.
3016	set X `ls -t "$srcdir/configure" conftest.file`
3017     fi
3018     if test "$*" != "X $srcdir/configure conftest.file" \
3019	&& test "$*" != "X conftest.file $srcdir/configure"; then
3020
3021	# If neither matched, then we have a broken ls.  This can happen
3022	# if, for instance, CONFIG_SHELL is bash and it inherits a
3023	# broken ls alias from the environment.  This has actually
3024	# happened.  Such a system could not be considered "sane".
3025	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3026  alias in your environment" "$LINENO" 5
3027     fi
3028     if test "$2" = conftest.file || test $am_try -eq 2; then
3029       break
3030     fi
3031     # Just in case.
3032     sleep 1
3033     am_has_slept=yes
3034   done
3035   test "$2" = conftest.file
3036   )
3037then
3038   # Ok.
3039   :
3040else
3041   as_fn_error $? "newly created file is older than distributed files!
3042Check your system clock" "$LINENO" 5
3043fi
3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045printf "%s\n" "yes" >&6; }
3046# If we didn't sleep, we still need to ensure time stamps of config.status and
3047# generated files are strictly newer.
3048am_sleep_pid=
3049if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3050  ( sleep 1 ) &
3051  am_sleep_pid=$!
3052fi
3053
3054rm -f conftest.file
3055
3056test "$program_prefix" != NONE &&
3057  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3058# Use a double $ so make ignores it.
3059test "$program_suffix" != NONE &&
3060  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3061# Double any \ or $.
3062# By default was `s,x,x', remove it if useless.
3063ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3064program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3065
3066
3067# Expand $ac_aux_dir to an absolute path.
3068am_aux_dir=`cd "$ac_aux_dir" && pwd`
3069
3070
3071  if test x"${MISSING+set}" != xset; then
3072  MISSING="\${SHELL} '$am_aux_dir/missing'"
3073fi
3074# Use eval to expand $SHELL
3075if eval "$MISSING --is-lightweight"; then
3076  am_missing_run="$MISSING "
3077else
3078  am_missing_run=
3079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3081fi
3082
3083if test x"${install_sh+set}" != xset; then
3084  case $am_aux_dir in
3085  *\ * | *\	*)
3086    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087  *)
3088    install_sh="\${SHELL} $am_aux_dir/install-sh"
3089  esac
3090fi
3091
3092# Installed binaries are usually stripped using 'strip' when the user
3093# run "make install-strip".  However 'strip' might not be the right
3094# tool to use in cross-compilation environments, therefore Automake
3095# will honor the 'STRIP' environment variable to overrule this program.
3096if test "$cross_compiling" != no; then
3097  if test -n "$ac_tool_prefix"; then
3098  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}strip; ac_word=$2
3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101printf %s "checking for $ac_word... " >&6; }
3102if test ${ac_cv_prog_STRIP+y}
3103then :
3104  printf %s "(cached) " >&6
3105else $as_nop
3106  if test -n "$STRIP"; then
3107  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  case $as_dir in #(((
3114    '') as_dir=./ ;;
3115    */) ;;
3116    *) as_dir=$as_dir/ ;;
3117  esac
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130STRIP=$ac_cv_prog_STRIP
3131if test -n "$STRIP"; then
3132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3133printf "%s\n" "$STRIP" >&6; }
3134else
3135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136printf "%s\n" "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$ac_cv_prog_STRIP"; then
3142  ac_ct_STRIP=$STRIP
3143  # Extract the first word of "strip", so it can be a program name with args.
3144set dummy strip; ac_word=$2
3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146printf %s "checking for $ac_word... " >&6; }
3147if test ${ac_cv_prog_ac_ct_STRIP+y}
3148then :
3149  printf %s "(cached) " >&6
3150else $as_nop
3151  if test -n "$ac_ct_STRIP"; then
3152  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157  IFS=$as_save_IFS
3158  case $as_dir in #(((
3159    '') as_dir=./ ;;
3160    */) ;;
3161    *) as_dir=$as_dir/ ;;
3162  esac
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165    ac_cv_prog_ac_ct_STRIP="strip"
3166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167    break 2
3168  fi
3169done
3170  done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3176if test -n "$ac_ct_STRIP"; then
3177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178printf "%s\n" "$ac_ct_STRIP" >&6; }
3179else
3180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181printf "%s\n" "no" >&6; }
3182fi
3183
3184  if test "x$ac_ct_STRIP" = x; then
3185    STRIP=":"
3186  else
3187    case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191ac_tool_warned=yes ;;
3192esac
3193    STRIP=$ac_ct_STRIP
3194  fi
3195else
3196  STRIP="$ac_cv_prog_STRIP"
3197fi
3198
3199fi
3200INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3201
3202
3203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3204printf %s "checking for a race-free mkdir -p... " >&6; }
3205if test -z "$MKDIR_P"; then
3206  if test ${ac_cv_path_mkdir+y}
3207then :
3208  printf %s "(cached) " >&6
3209else $as_nop
3210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212do
3213  IFS=$as_save_IFS
3214  case $as_dir in #(((
3215    '') as_dir=./ ;;
3216    */) ;;
3217    *) as_dir=$as_dir/ ;;
3218  esac
3219    for ac_prog in mkdir gmkdir; do
3220	 for ac_exec_ext in '' $ac_executable_extensions; do
3221	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3222	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3223	     'mkdir ('*'coreutils) '* | \
3224	     'BusyBox '* | \
3225	     'mkdir (fileutils) '4.1*)
3226	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3227	       break 3;;
3228	   esac
3229	 done
3230       done
3231  done
3232IFS=$as_save_IFS
3233
3234fi
3235
3236  test -d ./--version && rmdir ./--version
3237  if test ${ac_cv_path_mkdir+y}; then
3238    MKDIR_P="$ac_cv_path_mkdir -p"
3239  else
3240    # As a last resort, use the slow shell script.  Don't cache a
3241    # value for MKDIR_P within a source directory, because that will
3242    # break other packages using the cache if that directory is
3243    # removed, or if the value is a relative name.
3244    MKDIR_P="$ac_install_sh -d"
3245  fi
3246fi
3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3248printf "%s\n" "$MKDIR_P" >&6; }
3249
3250for ac_prog in gawk mawk nawk awk
3251do
3252  # Extract the first word of "$ac_prog", so it can be a program name with args.
3253set dummy $ac_prog; ac_word=$2
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255printf %s "checking for $ac_word... " >&6; }
3256if test ${ac_cv_prog_AWK+y}
3257then :
3258  printf %s "(cached) " >&6
3259else $as_nop
3260  if test -n "$AWK"; then
3261  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  case $as_dir in #(((
3268    '') as_dir=./ ;;
3269    */) ;;
3270    *) as_dir=$as_dir/ ;;
3271  esac
3272    for ac_exec_ext in '' $ac_executable_extensions; do
3273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_AWK="$ac_prog"
3275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284AWK=$ac_cv_prog_AWK
3285if test -n "$AWK"; then
3286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3287printf "%s\n" "$AWK" >&6; }
3288else
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290printf "%s\n" "no" >&6; }
3291fi
3292
3293
3294  test -n "$AWK" && break
3295done
3296
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3298printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3299set x ${MAKE-make}
3300ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3301if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3302then :
3303  printf %s "(cached) " >&6
3304else $as_nop
3305  cat >conftest.make <<\_ACEOF
3306SHELL = /bin/sh
3307all:
3308	@echo '@@@%%%=$(MAKE)=@@@%%%'
3309_ACEOF
3310# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3311case `${MAKE-make} -f conftest.make 2>/dev/null` in
3312  *@@@%%%=?*=@@@%%%*)
3313    eval ac_cv_prog_make_${ac_make}_set=yes;;
3314  *)
3315    eval ac_cv_prog_make_${ac_make}_set=no;;
3316esac
3317rm -f conftest.make
3318fi
3319if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321printf "%s\n" "yes" >&6; }
3322  SET_MAKE=
3323else
3324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325printf "%s\n" "no" >&6; }
3326  SET_MAKE="MAKE=${MAKE-make}"
3327fi
3328
3329rm -rf .tst 2>/dev/null
3330mkdir .tst 2>/dev/null
3331if test -d .tst; then
3332  am__leading_dot=.
3333else
3334  am__leading_dot=_
3335fi
3336rmdir .tst 2>/dev/null
3337
3338# Check whether --enable-silent-rules was given.
3339if test ${enable_silent_rules+y}
3340then :
3341  enableval=$enable_silent_rules;
3342fi
3343
3344case $enable_silent_rules in # (((
3345  yes) AM_DEFAULT_VERBOSITY=0;;
3346   no) AM_DEFAULT_VERBOSITY=1;;
3347    *) AM_DEFAULT_VERBOSITY=1;;
3348esac
3349am_make=${MAKE-make}
3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3351printf %s "checking whether $am_make supports nested variables... " >&6; }
3352if test ${am_cv_make_support_nested_variables+y}
3353then :
3354  printf %s "(cached) " >&6
3355else $as_nop
3356  if printf "%s\n" 'TRUE=$(BAR$(V))
3357BAR0=false
3358BAR1=true
3359V=1
3360am__doit:
3361	@$(TRUE)
3362.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3363  am_cv_make_support_nested_variables=yes
3364else
3365  am_cv_make_support_nested_variables=no
3366fi
3367fi
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3369printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3370if test $am_cv_make_support_nested_variables = yes; then
3371    AM_V='$(V)'
3372  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3373else
3374  AM_V=$AM_DEFAULT_VERBOSITY
3375  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3376fi
3377AM_BACKSLASH='\'
3378
3379if test "`cd $srcdir && pwd`" != "`pwd`"; then
3380  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3381  # is not polluted with repeated "-I."
3382  am__isrc=' -I$(srcdir)'
3383  # test to see if srcdir already configured
3384  if test -f $srcdir/config.status; then
3385    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3386  fi
3387fi
3388
3389# test whether we have cygpath
3390if test -z "$CYGPATH_W"; then
3391  if (cygpath --version) >/dev/null 2>/dev/null; then
3392    CYGPATH_W='cygpath -w'
3393  else
3394    CYGPATH_W=echo
3395  fi
3396fi
3397
3398
3399# Define the identity of the package.
3400 PACKAGE='libXfont2'
3401 VERSION='2.0.6'
3402
3403
3404printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3405
3406
3407printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3408
3409# Some tools Automake needs.
3410
3411ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3412
3413
3414AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3415
3416
3417AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3418
3419
3420AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3421
3422
3423MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3424
3425# For better backward compatibility.  To be removed once Automake 1.9.x
3426# dies out for good.  For more background, see:
3427# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3428# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3429mkdir_p='$(MKDIR_P)'
3430
3431# We need awk for the "check" target (and possibly the TAP driver).  The
3432# system "awk" is bad on some platforms.
3433# Always define AMTAR for backward compatibility.  Yes, it's still used
3434# in the wild :-(  We should find a proper way to deprecate it ...
3435AMTAR='$${TAR-tar}'
3436
3437
3438# We'll loop over all known methods to create a tar archive until one works.
3439_am_tools='gnutar  pax cpio none'
3440
3441am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3442
3443
3444
3445
3446
3447# Variables for tags utilities; see am/tags.am
3448if test -z "$CTAGS"; then
3449  CTAGS=ctags
3450fi
3451
3452if test -z "$ETAGS"; then
3453  ETAGS=etags
3454fi
3455
3456if test -z "$CSCOPE"; then
3457  CSCOPE=cscope
3458fi
3459
3460
3461
3462# POSIX will say in a future version that running "rm -f" with no argument
3463# is OK; and we want to be able to make that assumption in our Makefile
3464# recipes.  So use an aggressive probe to check that the usage we want is
3465# actually supported "in the wild" to an acceptable degree.
3466# See automake bug#10828.
3467# To make any issue more visible, cause the running configure to be aborted
3468# by default if the 'rm' program in use doesn't match our expectations; the
3469# user can still override this though.
3470if rm -f && rm -fr && rm -rf; then : OK; else
3471  cat >&2 <<'END'
3472Oops!
3473
3474Your 'rm' program seems unable to run without file operands specified
3475on the command line, even when the '-f' option is present.  This is contrary
3476to the behaviour of most rm programs out there, and not conforming with
3477the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3478
3479Please tell bug-automake@gnu.org about your system, including the value
3480of your $PATH and any error possibly output before this message.  This
3481can help us improve future automake versions.
3482
3483END
3484  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3485    echo 'Configuration will proceed anyway, since you have set the' >&2
3486    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3487    echo >&2
3488  else
3489    cat >&2 <<'END'
3490Aborting the configuration process, to ensure you take notice of the issue.
3491
3492You can download and install GNU coreutils to get an 'rm' implementation
3493that behaves properly: <https://www.gnu.org/software/coreutils/>.
3494
3495If you want to complete the configuration process using your problematic
3496'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3497to "yes", and re-run configure.
3498
3499END
3500    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3501  fi
3502fi
3503
3504
3505# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3506# Must be called before any macros that run the compiler (like
3507# AC_PROG_LIBTOOL) to avoid autoconf errors.
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517DEPDIR="${am__leading_dot}deps"
3518
3519ac_config_commands="$ac_config_commands depfiles"
3520
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3522printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3523cat > confinc.mk << 'END'
3524am__doit:
3525	@echo this is the am__doit target >confinc.out
3526.PHONY: am__doit
3527END
3528am__include="#"
3529am__quote=
3530# BSD make does it like this.
3531echo '.include "confinc.mk" # ignored' > confmf.BSD
3532# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3533echo 'include confinc.mk # ignored' > confmf.GNU
3534_am_result=no
3535for s in GNU BSD; do
3536  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3537   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }
3541  case $?:`cat confinc.out 2>/dev/null` in #(
3542  '0:this is the am__doit target') :
3543    case $s in #(
3544  BSD) :
3545    am__include='.include' am__quote='"' ;; #(
3546  *) :
3547    am__include='include' am__quote='' ;;
3548esac ;; #(
3549  *) :
3550     ;;
3551esac
3552  if test "$am__include" != "#"; then
3553    _am_result="yes ($s style)"
3554    break
3555  fi
3556done
3557rm -f confinc.* confmf.*
3558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3559printf "%s\n" "${_am_result}" >&6; }
3560
3561# Check whether --enable-dependency-tracking was given.
3562if test ${enable_dependency_tracking+y}
3563then :
3564  enableval=$enable_dependency_tracking;
3565fi
3566
3567if test "x$enable_dependency_tracking" != xno; then
3568  am_depcomp="$ac_aux_dir/depcomp"
3569  AMDEPBACKSLASH='\'
3570  am__nodep='_no'
3571fi
3572 if test "x$enable_dependency_tracking" != xno; then
3573  AMDEP_TRUE=
3574  AMDEP_FALSE='#'
3575else
3576  AMDEP_TRUE='#'
3577  AMDEP_FALSE=
3578fi
3579
3580
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586if test -n "$ac_tool_prefix"; then
3587  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3588set dummy ${ac_tool_prefix}gcc; ac_word=$2
3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590printf %s "checking for $ac_word... " >&6; }
3591if test ${ac_cv_prog_CC+y}
3592then :
3593  printf %s "(cached) " >&6
3594else $as_nop
3595  if test -n "$CC"; then
3596  ac_cv_prog_CC="$CC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  case $as_dir in #(((
3603    '') as_dir=./ ;;
3604    */) ;;
3605    *) as_dir=$as_dir/ ;;
3606  esac
3607    for ac_exec_ext in '' $ac_executable_extensions; do
3608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611    break 2
3612  fi
3613done
3614  done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619CC=$ac_cv_prog_CC
3620if test -n "$CC"; then
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622printf "%s\n" "$CC" >&6; }
3623else
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
3627
3628
3629fi
3630if test -z "$ac_cv_prog_CC"; then
3631  ac_ct_CC=$CC
3632  # Extract the first word of "gcc", so it can be a program name with args.
3633set dummy gcc; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_ac_ct_CC+y}
3637then :
3638  printf %s "(cached) " >&6
3639else $as_nop
3640  if test -n "$ac_ct_CC"; then
3641  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  case $as_dir in #(((
3648    '') as_dir=./ ;;
3649    */) ;;
3650    *) as_dir=$as_dir/ ;;
3651  esac
3652    for ac_exec_ext in '' $ac_executable_extensions; do
3653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654    ac_cv_prog_ac_ct_CC="gcc"
3655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659  done
3660IFS=$as_save_IFS
3661
3662fi
3663fi
3664ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665if test -n "$ac_ct_CC"; then
3666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667printf "%s\n" "$ac_ct_CC" >&6; }
3668else
3669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670printf "%s\n" "no" >&6; }
3671fi
3672
3673  if test "x$ac_ct_CC" = x; then
3674    CC=""
3675  else
3676    case $cross_compiling:$ac_tool_warned in
3677yes:)
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680ac_tool_warned=yes ;;
3681esac
3682    CC=$ac_ct_CC
3683  fi
3684else
3685  CC="$ac_cv_prog_CC"
3686fi
3687
3688if test -z "$CC"; then
3689          if test -n "$ac_tool_prefix"; then
3690    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3691set dummy ${ac_tool_prefix}cc; ac_word=$2
3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693printf %s "checking for $ac_word... " >&6; }
3694if test ${ac_cv_prog_CC+y}
3695then :
3696  printf %s "(cached) " >&6
3697else $as_nop
3698  if test -n "$CC"; then
3699  ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704  IFS=$as_save_IFS
3705  case $as_dir in #(((
3706    '') as_dir=./ ;;
3707    */) ;;
3708    *) as_dir=$as_dir/ ;;
3709  esac
3710    for ac_exec_ext in '' $ac_executable_extensions; do
3711  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3712    ac_cv_prog_CC="${ac_tool_prefix}cc"
3713    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714    break 2
3715  fi
3716done
3717  done
3718IFS=$as_save_IFS
3719
3720fi
3721fi
3722CC=$ac_cv_prog_CC
3723if test -n "$CC"; then
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725printf "%s\n" "$CC" >&6; }
3726else
3727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728printf "%s\n" "no" >&6; }
3729fi
3730
3731
3732  fi
3733fi
3734if test -z "$CC"; then
3735  # Extract the first word of "cc", so it can be a program name with args.
3736set dummy cc; ac_word=$2
3737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738printf %s "checking for $ac_word... " >&6; }
3739if test ${ac_cv_prog_CC+y}
3740then :
3741  printf %s "(cached) " >&6
3742else $as_nop
3743  if test -n "$CC"; then
3744  ac_cv_prog_CC="$CC" # Let the user override the test.
3745else
3746  ac_prog_rejected=no
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750  IFS=$as_save_IFS
3751  case $as_dir in #(((
3752    '') as_dir=./ ;;
3753    */) ;;
3754    *) as_dir=$as_dir/ ;;
3755  esac
3756    for ac_exec_ext in '' $ac_executable_extensions; do
3757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3759       ac_prog_rejected=yes
3760       continue
3761     fi
3762    ac_cv_prog_CC="cc"
3763    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3764    break 2
3765  fi
3766done
3767  done
3768IFS=$as_save_IFS
3769
3770if test $ac_prog_rejected = yes; then
3771  # We found a bogon in the path, so make sure we never use it.
3772  set dummy $ac_cv_prog_CC
3773  shift
3774  if test $# != 0; then
3775    # We chose a different compiler from the bogus one.
3776    # However, it has the same basename, so the bogon will be chosen
3777    # first if we set CC to just the basename; use the full file name.
3778    shift
3779    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3780  fi
3781fi
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787printf "%s\n" "$CC" >&6; }
3788else
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790printf "%s\n" "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$CC"; then
3796  if test -n "$ac_tool_prefix"; then
3797  for ac_prog in cl.exe
3798  do
3799    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802printf %s "checking for $ac_word... " >&6; }
3803if test ${ac_cv_prog_CC+y}
3804then :
3805  printf %s "(cached) " >&6
3806else $as_nop
3807  if test -n "$CC"; then
3808  ac_cv_prog_CC="$CC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  case $as_dir in #(((
3815    '') as_dir=./ ;;
3816    */) ;;
3817    *) as_dir=$as_dir/ ;;
3818  esac
3819    for ac_exec_ext in '' $ac_executable_extensions; do
3820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3823    break 2
3824  fi
3825done
3826  done
3827IFS=$as_save_IFS
3828
3829fi
3830fi
3831CC=$ac_cv_prog_CC
3832if test -n "$CC"; then
3833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834printf "%s\n" "$CC" >&6; }
3835else
3836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837printf "%s\n" "no" >&6; }
3838fi
3839
3840
3841    test -n "$CC" && break
3842  done
3843fi
3844if test -z "$CC"; then
3845  ac_ct_CC=$CC
3846  for ac_prog in cl.exe
3847do
3848  # Extract the first word of "$ac_prog", so it can be a program name with args.
3849set dummy $ac_prog; ac_word=$2
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851printf %s "checking for $ac_word... " >&6; }
3852if test ${ac_cv_prog_ac_ct_CC+y}
3853then :
3854  printf %s "(cached) " >&6
3855else $as_nop
3856  if test -n "$ac_ct_CC"; then
3857  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862  IFS=$as_save_IFS
3863  case $as_dir in #(((
3864    '') as_dir=./ ;;
3865    */) ;;
3866    *) as_dir=$as_dir/ ;;
3867  esac
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_ac_ct_CC="$ac_prog"
3871    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875  done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881if test -n "$ac_ct_CC"; then
3882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883printf "%s\n" "$ac_ct_CC" >&6; }
3884else
3885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886printf "%s\n" "no" >&6; }
3887fi
3888
3889
3890  test -n "$ac_ct_CC" && break
3891done
3892
3893  if test "x$ac_ct_CC" = x; then
3894    CC=""
3895  else
3896    case $cross_compiling:$ac_tool_warned in
3897yes:)
3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900ac_tool_warned=yes ;;
3901esac
3902    CC=$ac_ct_CC
3903  fi
3904fi
3905
3906fi
3907if test -z "$CC"; then
3908  if test -n "$ac_tool_prefix"; then
3909  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3910set dummy ${ac_tool_prefix}clang; ac_word=$2
3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912printf %s "checking for $ac_word... " >&6; }
3913if test ${ac_cv_prog_CC+y}
3914then :
3915  printf %s "(cached) " >&6
3916else $as_nop
3917  if test -n "$CC"; then
3918  ac_cv_prog_CC="$CC" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  case $as_dir in #(((
3925    '') as_dir=./ ;;
3926    */) ;;
3927    *) as_dir=$as_dir/ ;;
3928  esac
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3931    ac_cv_prog_CC="${ac_tool_prefix}clang"
3932    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936  done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944printf "%s\n" "$CC" >&6; }
3945else
3946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947printf "%s\n" "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_prog_CC"; then
3953  ac_ct_CC=$CC
3954  # Extract the first word of "clang", so it can be a program name with args.
3955set dummy clang; ac_word=$2
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957printf %s "checking for $ac_word... " >&6; }
3958if test ${ac_cv_prog_ac_ct_CC+y}
3959then :
3960  printf %s "(cached) " >&6
3961else $as_nop
3962  if test -n "$ac_ct_CC"; then
3963  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964else
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968  IFS=$as_save_IFS
3969  case $as_dir in #(((
3970    '') as_dir=./ ;;
3971    */) ;;
3972    *) as_dir=$as_dir/ ;;
3973  esac
3974    for ac_exec_ext in '' $ac_executable_extensions; do
3975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3976    ac_cv_prog_ac_ct_CC="clang"
3977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981  done
3982IFS=$as_save_IFS
3983
3984fi
3985fi
3986ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987if test -n "$ac_ct_CC"; then
3988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3989printf "%s\n" "$ac_ct_CC" >&6; }
3990else
3991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992printf "%s\n" "no" >&6; }
3993fi
3994
3995  if test "x$ac_ct_CC" = x; then
3996    CC=""
3997  else
3998    case $cross_compiling:$ac_tool_warned in
3999yes:)
4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002ac_tool_warned=yes ;;
4003esac
4004    CC=$ac_ct_CC
4005  fi
4006else
4007  CC="$ac_cv_prog_CC"
4008fi
4009
4010fi
4011
4012
4013test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4015as_fn_error $? "no acceptable C compiler found in \$PATH
4016See \`config.log' for more details" "$LINENO" 5; }
4017
4018# Provide some information about the compiler.
4019printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020set X $ac_compile
4021ac_compiler=$2
4022for ac_option in --version -v -V -qversion -version; do
4023  { { ac_try="$ac_compiler $ac_option >&5"
4024case "(($ac_try" in
4025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026  *) ac_try_echo=$ac_try;;
4027esac
4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029printf "%s\n" "$ac_try_echo"; } >&5
4030  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4031  ac_status=$?
4032  if test -s conftest.err; then
4033    sed '10a\
4034... rest of stderr output deleted ...
4035         10q' conftest.err >conftest.er1
4036    cat conftest.er1 >&5
4037  fi
4038  rm -f conftest.er1 conftest.err
4039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }
4041done
4042
4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h.  */
4045
4046int
4047main (void)
4048{
4049
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054ac_clean_files_save=$ac_clean_files
4055ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4056# Try to create an executable without -o first, disregard a.out.
4057# It will help us diagnose broken compilers, and finding out an intuition
4058# of exeext.
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4060printf %s "checking whether the C compiler works... " >&6; }
4061ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4062
4063# The possible output files:
4064ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4065
4066ac_rmfiles=
4067for ac_file in $ac_files
4068do
4069  case $ac_file in
4070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4071    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4072  esac
4073done
4074rm -f $ac_rmfiles
4075
4076if { { ac_try="$ac_link_default"
4077case "(($ac_try" in
4078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079  *) ac_try_echo=$ac_try;;
4080esac
4081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082printf "%s\n" "$ac_try_echo"; } >&5
4083  (eval "$ac_link_default") 2>&5
4084  ac_status=$?
4085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086  test $ac_status = 0; }
4087then :
4088  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4091# so that the user can short-circuit this test for compilers unknown to
4092# Autoconf.
4093for ac_file in $ac_files ''
4094do
4095  test -f "$ac_file" || continue
4096  case $ac_file in
4097    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4098	;;
4099    [ab].out )
4100	# We found the default executable, but exeext='' is most
4101	# certainly right.
4102	break;;
4103    *.* )
4104	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4105	then :; else
4106	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107	fi
4108	# We set ac_cv_exeext here because the later test for it is not
4109	# safe: cross compilers may not add the suffix if given an `-o'
4110	# argument, so we may need to know it at that point already.
4111	# Even if this section looks crufty: it has the advantage of
4112	# actually working.
4113	break;;
4114    * )
4115	break;;
4116  esac
4117done
4118test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
4120else $as_nop
4121  ac_file=''
4122fi
4123if test -z "$ac_file"
4124then :
4125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126printf "%s\n" "no" >&6; }
4127printf "%s\n" "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4132as_fn_error 77 "C compiler cannot create executables
4133See \`config.log' for more details" "$LINENO" 5; }
4134else $as_nop
4135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136printf "%s\n" "yes" >&6; }
4137fi
4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4139printf %s "checking for C compiler default output file name... " >&6; }
4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4141printf "%s\n" "$ac_file" >&6; }
4142ac_exeext=$ac_cv_exeext
4143
4144rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4145ac_clean_files=$ac_clean_files_save
4146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4147printf %s "checking for suffix of executables... " >&6; }
4148if { { ac_try="$ac_link"
4149case "(($ac_try" in
4150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151  *) ac_try_echo=$ac_try;;
4152esac
4153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154printf "%s\n" "$ac_try_echo"; } >&5
4155  (eval "$ac_link") 2>&5
4156  ac_status=$?
4157  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158  test $ac_status = 0; }
4159then :
4160  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4161# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4162# work properly (i.e., refer to `conftest.exe'), while it won't with
4163# `rm'.
4164for ac_file in conftest.exe conftest conftest.*; do
4165  test -f "$ac_file" || continue
4166  case $ac_file in
4167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4168    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169	  break;;
4170    * ) break;;
4171  esac
4172done
4173else $as_nop
4174  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4177See \`config.log' for more details" "$LINENO" 5; }
4178fi
4179rm -f conftest conftest$ac_cv_exeext
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4181printf "%s\n" "$ac_cv_exeext" >&6; }
4182
4183rm -f conftest.$ac_ext
4184EXEEXT=$ac_cv_exeext
4185ac_exeext=$EXEEXT
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <stdio.h>
4189int
4190main (void)
4191{
4192FILE *f = fopen ("conftest.out", "w");
4193 return ferror (f) || fclose (f) != 0;
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199ac_clean_files="$ac_clean_files conftest.out"
4200# Check that the compiler produces executables we can run.  If not, either
4201# the compiler is broken, or we cross compile.
4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4203printf %s "checking whether we are cross compiling... " >&6; }
4204if test "$cross_compiling" != yes; then
4205  { { ac_try="$ac_link"
4206case "(($ac_try" in
4207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208  *) ac_try_echo=$ac_try;;
4209esac
4210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211printf "%s\n" "$ac_try_echo"; } >&5
4212  (eval "$ac_link") 2>&5
4213  ac_status=$?
4214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215  test $ac_status = 0; }
4216  if { ac_try='./conftest$ac_cv_exeext'
4217  { { case "(($ac_try" in
4218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219  *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222printf "%s\n" "$ac_try_echo"; } >&5
4223  (eval "$ac_try") 2>&5
4224  ac_status=$?
4225  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226  test $ac_status = 0; }; }; then
4227    cross_compiling=no
4228  else
4229    if test "$cross_compiling" = maybe; then
4230	cross_compiling=yes
4231    else
4232	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4234as_fn_error 77 "cannot run C compiled programs.
4235If you meant to cross compile, use \`--host'.
4236See \`config.log' for more details" "$LINENO" 5; }
4237    fi
4238  fi
4239fi
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4241printf "%s\n" "$cross_compiling" >&6; }
4242
4243rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4244ac_clean_files=$ac_clean_files_save
4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4246printf %s "checking for suffix of object files... " >&6; }
4247if test ${ac_cv_objext+y}
4248then :
4249  printf %s "(cached) " >&6
4250else $as_nop
4251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252/* end confdefs.h.  */
4253
4254int
4255main (void)
4256{
4257
4258  ;
4259  return 0;
4260}
4261_ACEOF
4262rm -f conftest.o conftest.obj
4263if { { ac_try="$ac_compile"
4264case "(($ac_try" in
4265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266  *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269printf "%s\n" "$ac_try_echo"; } >&5
4270  (eval "$ac_compile") 2>&5
4271  ac_status=$?
4272  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273  test $ac_status = 0; }
4274then :
4275  for ac_file in conftest.o conftest.obj conftest.*; do
4276  test -f "$ac_file" || continue;
4277  case $ac_file in
4278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4279    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4280       break;;
4281  esac
4282done
4283else $as_nop
4284  printf "%s\n" "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4289as_fn_error $? "cannot compute suffix of object files: cannot compile
4290See \`config.log' for more details" "$LINENO" 5; }
4291fi
4292rm -f conftest.$ac_cv_objext conftest.$ac_ext
4293fi
4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4295printf "%s\n" "$ac_cv_objext" >&6; }
4296OBJEXT=$ac_cv_objext
4297ac_objext=$OBJEXT
4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4299printf %s "checking whether the compiler supports GNU C... " >&6; }
4300if test ${ac_cv_c_compiler_gnu+y}
4301then :
4302  printf %s "(cached) " >&6
4303else $as_nop
4304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h.  */
4306
4307int
4308main (void)
4309{
4310#ifndef __GNUC__
4311       choke me
4312#endif
4313
4314  ;
4315  return 0;
4316}
4317_ACEOF
4318if ac_fn_c_try_compile "$LINENO"
4319then :
4320  ac_compiler_gnu=yes
4321else $as_nop
4322  ac_compiler_gnu=no
4323fi
4324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4325ac_cv_c_compiler_gnu=$ac_compiler_gnu
4326
4327fi
4328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4329printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332if test $ac_compiler_gnu = yes; then
4333  GCC=yes
4334else
4335  GCC=
4336fi
4337ac_test_CFLAGS=${CFLAGS+y}
4338ac_save_CFLAGS=$CFLAGS
4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340printf %s "checking whether $CC accepts -g... " >&6; }
4341if test ${ac_cv_prog_cc_g+y}
4342then :
4343  printf %s "(cached) " >&6
4344else $as_nop
4345  ac_save_c_werror_flag=$ac_c_werror_flag
4346   ac_c_werror_flag=yes
4347   ac_cv_prog_cc_g=no
4348   CFLAGS="-g"
4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h.  */
4351
4352int
4353main (void)
4354{
4355
4356  ;
4357  return 0;
4358}
4359_ACEOF
4360if ac_fn_c_try_compile "$LINENO"
4361then :
4362  ac_cv_prog_cc_g=yes
4363else $as_nop
4364  CFLAGS=""
4365      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h.  */
4367
4368int
4369main (void)
4370{
4371
4372  ;
4373  return 0;
4374}
4375_ACEOF
4376if ac_fn_c_try_compile "$LINENO"
4377then :
4378
4379else $as_nop
4380  ac_c_werror_flag=$ac_save_c_werror_flag
4381	 CFLAGS="-g"
4382	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h.  */
4384
4385int
4386main (void)
4387{
4388
4389  ;
4390  return 0;
4391}
4392_ACEOF
4393if ac_fn_c_try_compile "$LINENO"
4394then :
4395  ac_cv_prog_cc_g=yes
4396fi
4397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4400fi
4401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4402   ac_c_werror_flag=$ac_save_c_werror_flag
4403fi
4404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4405printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4406if test $ac_test_CFLAGS; then
4407  CFLAGS=$ac_save_CFLAGS
4408elif test $ac_cv_prog_cc_g = yes; then
4409  if test "$GCC" = yes; then
4410    CFLAGS="-g -O2"
4411  else
4412    CFLAGS="-g"
4413  fi
4414else
4415  if test "$GCC" = yes; then
4416    CFLAGS="-O2"
4417  else
4418    CFLAGS=
4419  fi
4420fi
4421ac_prog_cc_stdc=no
4422if test x$ac_prog_cc_stdc = xno
4423then :
4424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4425printf %s "checking for $CC option to enable C11 features... " >&6; }
4426if test ${ac_cv_prog_cc_c11+y}
4427then :
4428  printf %s "(cached) " >&6
4429else $as_nop
4430  ac_cv_prog_cc_c11=no
4431ac_save_CC=$CC
4432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h.  */
4434$ac_c_conftest_c11_program
4435_ACEOF
4436for ac_arg in '' -std=gnu11
4437do
4438  CC="$ac_save_CC $ac_arg"
4439  if ac_fn_c_try_compile "$LINENO"
4440then :
4441  ac_cv_prog_cc_c11=$ac_arg
4442fi
4443rm -f core conftest.err conftest.$ac_objext conftest.beam
4444  test "x$ac_cv_prog_cc_c11" != "xno" && break
4445done
4446rm -f conftest.$ac_ext
4447CC=$ac_save_CC
4448fi
4449
4450if test "x$ac_cv_prog_cc_c11" = xno
4451then :
4452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4453printf "%s\n" "unsupported" >&6; }
4454else $as_nop
4455  if test "x$ac_cv_prog_cc_c11" = x
4456then :
4457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4458printf "%s\n" "none needed" >&6; }
4459else $as_nop
4460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4461printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4462     CC="$CC $ac_cv_prog_cc_c11"
4463fi
4464  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4465  ac_prog_cc_stdc=c11
4466fi
4467fi
4468if test x$ac_prog_cc_stdc = xno
4469then :
4470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4471printf %s "checking for $CC option to enable C99 features... " >&6; }
4472if test ${ac_cv_prog_cc_c99+y}
4473then :
4474  printf %s "(cached) " >&6
4475else $as_nop
4476  ac_cv_prog_cc_c99=no
4477ac_save_CC=$CC
4478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h.  */
4480$ac_c_conftest_c99_program
4481_ACEOF
4482for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4483do
4484  CC="$ac_save_CC $ac_arg"
4485  if ac_fn_c_try_compile "$LINENO"
4486then :
4487  ac_cv_prog_cc_c99=$ac_arg
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.beam
4490  test "x$ac_cv_prog_cc_c99" != "xno" && break
4491done
4492rm -f conftest.$ac_ext
4493CC=$ac_save_CC
4494fi
4495
4496if test "x$ac_cv_prog_cc_c99" = xno
4497then :
4498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4499printf "%s\n" "unsupported" >&6; }
4500else $as_nop
4501  if test "x$ac_cv_prog_cc_c99" = x
4502then :
4503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504printf "%s\n" "none needed" >&6; }
4505else $as_nop
4506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4507printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4508     CC="$CC $ac_cv_prog_cc_c99"
4509fi
4510  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4511  ac_prog_cc_stdc=c99
4512fi
4513fi
4514if test x$ac_prog_cc_stdc = xno
4515then :
4516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4517printf %s "checking for $CC option to enable C89 features... " >&6; }
4518if test ${ac_cv_prog_cc_c89+y}
4519then :
4520  printf %s "(cached) " >&6
4521else $as_nop
4522  ac_cv_prog_cc_c89=no
4523ac_save_CC=$CC
4524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526$ac_c_conftest_c89_program
4527_ACEOF
4528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4529do
4530  CC="$ac_save_CC $ac_arg"
4531  if ac_fn_c_try_compile "$LINENO"
4532then :
4533  ac_cv_prog_cc_c89=$ac_arg
4534fi
4535rm -f core conftest.err conftest.$ac_objext conftest.beam
4536  test "x$ac_cv_prog_cc_c89" != "xno" && break
4537done
4538rm -f conftest.$ac_ext
4539CC=$ac_save_CC
4540fi
4541
4542if test "x$ac_cv_prog_cc_c89" = xno
4543then :
4544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4545printf "%s\n" "unsupported" >&6; }
4546else $as_nop
4547  if test "x$ac_cv_prog_cc_c89" = x
4548then :
4549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4550printf "%s\n" "none needed" >&6; }
4551else $as_nop
4552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4553printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4554     CC="$CC $ac_cv_prog_cc_c89"
4555fi
4556  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4557  ac_prog_cc_stdc=c89
4558fi
4559fi
4560
4561ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568  ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4574printf %s "checking whether $CC understands -c and -o together... " >&6; }
4575if test ${am_cv_prog_cc_c_o+y}
4576then :
4577  printf %s "(cached) " >&6
4578else $as_nop
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581
4582int
4583main (void)
4584{
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590  # Make sure it works both with $CC and with simple cc.
4591  # Following AC_PROG_CC_C_O, we do the test twice because some
4592  # compilers refuse to overwrite an existing .o file with -o,
4593  # though they will create one.
4594  am_cv_prog_cc_c_o=yes
4595  for am_i in 1 2; do
4596    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4597   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } \
4601         && test -f conftest2.$ac_objext; then
4602      : OK
4603    else
4604      am_cv_prog_cc_c_o=no
4605      break
4606    fi
4607  done
4608  rm -f core conftest*
4609  unset am_i
4610fi
4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4612printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4613if test "$am_cv_prog_cc_c_o" != yes; then
4614   # Losing compiler, so override with the script.
4615   # FIXME: It is wrong to rewrite CC.
4616   # But if we don't then we get into trouble of one sort or another.
4617   # A longer-term fix would be to have automake use am__CC in this case,
4618   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4619   CC="$am_aux_dir/compile $CC"
4620fi
4621ac_ext=c
4622ac_cpp='$CPP $CPPFLAGS'
4623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627
4628depcc="$CC"   am_compiler_list=
4629
4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631printf %s "checking dependency style of $depcc... " >&6; }
4632if test ${am_cv_CC_dependencies_compiler_type+y}
4633then :
4634  printf %s "(cached) " >&6
4635else $as_nop
4636  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4637  # We make a subdir and do the tests there.  Otherwise we can end up
4638  # making bogus files that we don't know about and never remove.  For
4639  # instance it was reported that on HP-UX the gcc test will end up
4640  # making a dummy file named 'D' -- because '-MD' means "put the output
4641  # in D".
4642  rm -rf conftest.dir
4643  mkdir conftest.dir
4644  # Copy depcomp to subdir because otherwise we won't find it if we're
4645  # using a relative directory.
4646  cp "$am_depcomp" conftest.dir
4647  cd conftest.dir
4648  # We will build objects and dependencies in a subdirectory because
4649  # it helps to detect inapplicable dependency modes.  For instance
4650  # both Tru64's cc and ICC support -MD to output dependencies as a
4651  # side effect of compilation, but ICC will put the dependencies in
4652  # the current directory while Tru64 will put them in the object
4653  # directory.
4654  mkdir sub
4655
4656  am_cv_CC_dependencies_compiler_type=none
4657  if test "$am_compiler_list" = ""; then
4658     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659  fi
4660  am__universal=false
4661  case " $depcc " in #(
4662     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4663     esac
4664
4665  for depmode in $am_compiler_list; do
4666    # Setup a source with many dependencies, because some compilers
4667    # like to wrap large dependency lists on column 80 (with \), and
4668    # we should not choose a depcomp mode which is confused by this.
4669    #
4670    # We need to recreate these files for each test, as the compiler may
4671    # overwrite some of them when testing with obscure command lines.
4672    # This happens at least with the AIX C compiler.
4673    : > sub/conftest.c
4674    for i in 1 2 3 4 5 6; do
4675      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4676      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4677      # Solaris 10 /bin/sh.
4678      echo '/* dummy */' > sub/conftst$i.h
4679    done
4680    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4681
4682    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4683    # mode.  It turns out that the SunPro C++ compiler does not properly
4684    # handle '-M -o', and we need to detect this.  Also, some Intel
4685    # versions had trouble with output in subdirs.
4686    am__obj=sub/conftest.${OBJEXT-o}
4687    am__minus_obj="-o $am__obj"
4688    case $depmode in
4689    gcc)
4690      # This depmode causes a compiler race in universal mode.
4691      test "$am__universal" = false || continue
4692      ;;
4693    nosideeffect)
4694      # After this tag, mechanisms are not by side-effect, so they'll
4695      # only be used when explicitly requested.
4696      if test "x$enable_dependency_tracking" = xyes; then
4697	continue
4698      else
4699	break
4700      fi
4701      ;;
4702    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4703      # This compiler won't grok '-c -o', but also, the minuso test has
4704      # not run yet.  These depmodes are late enough in the game, and
4705      # so weak that their functioning should not be impacted.
4706      am__obj=conftest.${OBJEXT-o}
4707      am__minus_obj=
4708      ;;
4709    none) break ;;
4710    esac
4711    if depmode=$depmode \
4712       source=sub/conftest.c object=$am__obj \
4713       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4714       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4715         >/dev/null 2>conftest.err &&
4716       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4717       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4718       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4719       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4720      # icc doesn't choke on unknown options, it will just issue warnings
4721      # or remarks (even with -Werror).  So we grep stderr for any message
4722      # that says an option was ignored or not supported.
4723      # When given -MP, icc 7.0 and 7.1 complain thusly:
4724      #   icc: Command line warning: ignoring option '-M'; no argument required
4725      # The diagnosis changed in icc 8.0:
4726      #   icc: Command line remark: option '-MP' not supported
4727      if (grep 'ignoring option' conftest.err ||
4728          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4729        am_cv_CC_dependencies_compiler_type=$depmode
4730        break
4731      fi
4732    fi
4733  done
4734
4735  cd ..
4736  rm -rf conftest.dir
4737else
4738  am_cv_CC_dependencies_compiler_type=none
4739fi
4740
4741fi
4742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4743printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4744CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4745
4746 if
4747  test "x$enable_dependency_tracking" != xno \
4748  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4749  am__fastdepCC_TRUE=
4750  am__fastdepCC_FALSE='#'
4751else
4752  am__fastdepCC_TRUE='#'
4753  am__fastdepCC_FALSE=
4754fi
4755
4756
4757
4758ac_header= ac_cache=
4759for ac_item in $ac_header_c_list
4760do
4761  if test $ac_cache; then
4762    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4763    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4764      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4765    fi
4766    ac_header= ac_cache=
4767  elif test $ac_header; then
4768    ac_cache=$ac_item
4769  else
4770    ac_header=$ac_item
4771  fi
4772done
4773
4774
4775
4776
4777
4778
4779
4780
4781if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4782then :
4783
4784printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4785
4786fi
4787
4788
4789
4790
4791
4792
4793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4794printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4795if test ${ac_cv_safe_to_define___extensions__+y}
4796then :
4797  printf %s "(cached) " >&6
4798else $as_nop
4799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801
4802#         define __EXTENSIONS__ 1
4803          $ac_includes_default
4804int
4805main (void)
4806{
4807
4808  ;
4809  return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"
4813then :
4814  ac_cv_safe_to_define___extensions__=yes
4815else $as_nop
4816  ac_cv_safe_to_define___extensions__=no
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4819fi
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4821printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4822
4823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4824printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4825if test ${ac_cv_should_define__xopen_source+y}
4826then :
4827  printf %s "(cached) " >&6
4828else $as_nop
4829  ac_cv_should_define__xopen_source=no
4830    if test $ac_cv_header_wchar_h = yes
4831then :
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834
4835          #include <wchar.h>
4836          mbstate_t x;
4837int
4838main (void)
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_compile "$LINENO"
4846then :
4847
4848else $as_nop
4849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h.  */
4851
4852            #define _XOPEN_SOURCE 500
4853            #include <wchar.h>
4854            mbstate_t x;
4855int
4856main (void)
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863if ac_fn_c_try_compile "$LINENO"
4864then :
4865  ac_cv_should_define__xopen_source=yes
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4870fi
4871fi
4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4873printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4874
4875  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4876
4877  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4878
4879  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4880
4881  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4882
4883  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4884
4885  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4886
4887  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4888
4889  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4890
4891  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4892
4893  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4894
4895  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4896
4897  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4898
4899  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4900
4901  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4902
4903  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4904
4905  if test $ac_cv_header_minix_config_h = yes
4906then :
4907  MINIX=yes
4908    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4909
4910    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4911
4912    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4913
4914else $as_nop
4915  MINIX=
4916fi
4917  if test $ac_cv_safe_to_define___extensions__ = yes
4918then :
4919  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4920
4921fi
4922  if test $ac_cv_should_define__xopen_source = yes
4923then :
4924  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4925
4926fi
4927
4928
4929# Initialize libtool
4930case `pwd` in
4931  *\ * | *\	*)
4932    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4933printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4934esac
4935
4936
4937
4938macro_version='2.4.7'
4939macro_revision='2.4.7'
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954ltmain=$ac_aux_dir/ltmain.sh
4955
4956
4957
4958  # Make sure we can run config.sub.
4959$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4960  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4961
4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4963printf %s "checking build system type... " >&6; }
4964if test ${ac_cv_build+y}
4965then :
4966  printf %s "(cached) " >&6
4967else $as_nop
4968  ac_build_alias=$build_alias
4969test "x$ac_build_alias" = x &&
4970  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4971test "x$ac_build_alias" = x &&
4972  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4973ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4974  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4975
4976fi
4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4978printf "%s\n" "$ac_cv_build" >&6; }
4979case $ac_cv_build in
4980*-*-*) ;;
4981*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4982esac
4983build=$ac_cv_build
4984ac_save_IFS=$IFS; IFS='-'
4985set x $ac_cv_build
4986shift
4987build_cpu=$1
4988build_vendor=$2
4989shift; shift
4990# Remember, the first character of IFS is used to create $*,
4991# except with old shells:
4992build_os=$*
4993IFS=$ac_save_IFS
4994case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4995
4996
4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4998printf %s "checking host system type... " >&6; }
4999if test ${ac_cv_host+y}
5000then :
5001  printf %s "(cached) " >&6
5002else $as_nop
5003  if test "x$host_alias" = x; then
5004  ac_cv_host=$ac_cv_build
5005else
5006  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5007    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5008fi
5009
5010fi
5011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5012printf "%s\n" "$ac_cv_host" >&6; }
5013case $ac_cv_host in
5014*-*-*) ;;
5015*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5016esac
5017host=$ac_cv_host
5018ac_save_IFS=$IFS; IFS='-'
5019set x $ac_cv_host
5020shift
5021host_cpu=$1
5022host_vendor=$2
5023shift; shift
5024# Remember, the first character of IFS is used to create $*,
5025# except with old shells:
5026host_os=$*
5027IFS=$ac_save_IFS
5028case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5029
5030
5031# Backslashify metacharacters that are still active within
5032# double-quoted strings.
5033sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5034
5035# Same as above, but do not quote variable references.
5036double_quote_subst='s/\(["`\\]\)/\\\1/g'
5037
5038# Sed substitution to delay expansion of an escaped shell variable in a
5039# double_quote_subst'ed string.
5040delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5041
5042# Sed substitution to delay expansion of an escaped single quote.
5043delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5044
5045# Sed substitution to avoid accidental globbing in evaled expressions
5046no_glob_subst='s/\*/\\\*/g'
5047
5048ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5049ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5050ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5051
5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5053printf %s "checking how to print strings... " >&6; }
5054# Test print first, because it will be a builtin if present.
5055if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5056   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5057  ECHO='print -r --'
5058elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5059  ECHO='printf %s\n'
5060else
5061  # Use this function as a fallback that always works.
5062  func_fallback_echo ()
5063  {
5064    eval 'cat <<_LTECHO_EOF
5065$1
5066_LTECHO_EOF'
5067  }
5068  ECHO='func_fallback_echo'
5069fi
5070
5071# func_echo_all arg...
5072# Invoke $ECHO with all args, space-separated.
5073func_echo_all ()
5074{
5075    $ECHO ""
5076}
5077
5078case $ECHO in
5079  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5080printf "%s\n" "printf" >&6; } ;;
5081  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5082printf "%s\n" "print -r" >&6; } ;;
5083  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5084printf "%s\n" "cat" >&6; } ;;
5085esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5101printf %s "checking for a sed that does not truncate output... " >&6; }
5102if test ${ac_cv_path_SED+y}
5103then :
5104  printf %s "(cached) " >&6
5105else $as_nop
5106            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5107     for ac_i in 1 2 3 4 5 6 7; do
5108       ac_script="$ac_script$as_nl$ac_script"
5109     done
5110     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5111     { ac_script=; unset ac_script;}
5112     if test -z "$SED"; then
5113  ac_path_SED_found=false
5114  # Loop through the user's path and test for each of PROGNAME-LIST
5115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  case $as_dir in #(((
5120    '') as_dir=./ ;;
5121    */) ;;
5122    *) as_dir=$as_dir/ ;;
5123  esac
5124    for ac_prog in sed gsed
5125   do
5126    for ac_exec_ext in '' $ac_executable_extensions; do
5127      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5128      as_fn_executable_p "$ac_path_SED" || continue
5129# Check for GNU ac_path_SED and select it if it is found.
5130  # Check for GNU $ac_path_SED
5131case `"$ac_path_SED" --version 2>&1` in
5132*GNU*)
5133  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5134*)
5135  ac_count=0
5136  printf %s 0123456789 >"conftest.in"
5137  while :
5138  do
5139    cat "conftest.in" "conftest.in" >"conftest.tmp"
5140    mv "conftest.tmp" "conftest.in"
5141    cp "conftest.in" "conftest.nl"
5142    printf "%s\n" '' >> "conftest.nl"
5143    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145    as_fn_arith $ac_count + 1 && ac_count=$as_val
5146    if test $ac_count -gt ${ac_path_SED_max-0}; then
5147      # Best one so far, save it but keep looking for a better one
5148      ac_cv_path_SED="$ac_path_SED"
5149      ac_path_SED_max=$ac_count
5150    fi
5151    # 10*(2^10) chars as input seems more than enough
5152    test $ac_count -gt 10 && break
5153  done
5154  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155esac
5156
5157      $ac_path_SED_found && break 3
5158    done
5159  done
5160  done
5161IFS=$as_save_IFS
5162  if test -z "$ac_cv_path_SED"; then
5163    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5164  fi
5165else
5166  ac_cv_path_SED=$SED
5167fi
5168
5169fi
5170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5171printf "%s\n" "$ac_cv_path_SED" >&6; }
5172 SED="$ac_cv_path_SED"
5173  rm -f conftest.sed
5174
5175test -z "$SED" && SED=sed
5176Xsed="$SED -e 1s/^X//"
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189printf %s "checking for grep that handles long lines and -e... " >&6; }
5190if test ${ac_cv_path_GREP+y}
5191then :
5192  printf %s "(cached) " >&6
5193else $as_nop
5194  if test -z "$GREP"; then
5195  ac_path_GREP_found=false
5196  # Loop through the user's path and test for each of PROGNAME-LIST
5197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5199do
5200  IFS=$as_save_IFS
5201  case $as_dir in #(((
5202    '') as_dir=./ ;;
5203    */) ;;
5204    *) as_dir=$as_dir/ ;;
5205  esac
5206    for ac_prog in grep ggrep
5207   do
5208    for ac_exec_ext in '' $ac_executable_extensions; do
5209      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5210      as_fn_executable_p "$ac_path_GREP" || continue
5211# Check for GNU ac_path_GREP and select it if it is found.
5212  # Check for GNU $ac_path_GREP
5213case `"$ac_path_GREP" --version 2>&1` in
5214*GNU*)
5215  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5216*)
5217  ac_count=0
5218  printf %s 0123456789 >"conftest.in"
5219  while :
5220  do
5221    cat "conftest.in" "conftest.in" >"conftest.tmp"
5222    mv "conftest.tmp" "conftest.in"
5223    cp "conftest.in" "conftest.nl"
5224    printf "%s\n" 'GREP' >> "conftest.nl"
5225    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227    as_fn_arith $ac_count + 1 && ac_count=$as_val
5228    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5229      # Best one so far, save it but keep looking for a better one
5230      ac_cv_path_GREP="$ac_path_GREP"
5231      ac_path_GREP_max=$ac_count
5232    fi
5233    # 10*(2^10) chars as input seems more than enough
5234    test $ac_count -gt 10 && break
5235  done
5236  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5237esac
5238
5239      $ac_path_GREP_found && break 3
5240    done
5241  done
5242  done
5243IFS=$as_save_IFS
5244  if test -z "$ac_cv_path_GREP"; then
5245    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5246  fi
5247else
5248  ac_cv_path_GREP=$GREP
5249fi
5250
5251fi
5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5253printf "%s\n" "$ac_cv_path_GREP" >&6; }
5254 GREP="$ac_cv_path_GREP"
5255
5256
5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5258printf %s "checking for egrep... " >&6; }
5259if test ${ac_cv_path_EGREP+y}
5260then :
5261  printf %s "(cached) " >&6
5262else $as_nop
5263  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5264   then ac_cv_path_EGREP="$GREP -E"
5265   else
5266     if test -z "$EGREP"; then
5267  ac_path_EGREP_found=false
5268  # Loop through the user's path and test for each of PROGNAME-LIST
5269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271do
5272  IFS=$as_save_IFS
5273  case $as_dir in #(((
5274    '') as_dir=./ ;;
5275    */) ;;
5276    *) as_dir=$as_dir/ ;;
5277  esac
5278    for ac_prog in egrep
5279   do
5280    for ac_exec_ext in '' $ac_executable_extensions; do
5281      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5282      as_fn_executable_p "$ac_path_EGREP" || continue
5283# Check for GNU ac_path_EGREP and select it if it is found.
5284  # Check for GNU $ac_path_EGREP
5285case `"$ac_path_EGREP" --version 2>&1` in
5286*GNU*)
5287  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5288*)
5289  ac_count=0
5290  printf %s 0123456789 >"conftest.in"
5291  while :
5292  do
5293    cat "conftest.in" "conftest.in" >"conftest.tmp"
5294    mv "conftest.tmp" "conftest.in"
5295    cp "conftest.in" "conftest.nl"
5296    printf "%s\n" 'EGREP' >> "conftest.nl"
5297    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299    as_fn_arith $ac_count + 1 && ac_count=$as_val
5300    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5301      # Best one so far, save it but keep looking for a better one
5302      ac_cv_path_EGREP="$ac_path_EGREP"
5303      ac_path_EGREP_max=$ac_count
5304    fi
5305    # 10*(2^10) chars as input seems more than enough
5306    test $ac_count -gt 10 && break
5307  done
5308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309esac
5310
5311      $ac_path_EGREP_found && break 3
5312    done
5313  done
5314  done
5315IFS=$as_save_IFS
5316  if test -z "$ac_cv_path_EGREP"; then
5317    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318  fi
5319else
5320  ac_cv_path_EGREP=$EGREP
5321fi
5322
5323   fi
5324fi
5325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5326printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5327 EGREP="$ac_cv_path_EGREP"
5328
5329
5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331printf %s "checking for fgrep... " >&6; }
5332if test ${ac_cv_path_FGREP+y}
5333then :
5334  printf %s "(cached) " >&6
5335else $as_nop
5336  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5337   then ac_cv_path_FGREP="$GREP -F"
5338   else
5339     if test -z "$FGREP"; then
5340  ac_path_FGREP_found=false
5341  # Loop through the user's path and test for each of PROGNAME-LIST
5342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344do
5345  IFS=$as_save_IFS
5346  case $as_dir in #(((
5347    '') as_dir=./ ;;
5348    */) ;;
5349    *) as_dir=$as_dir/ ;;
5350  esac
5351    for ac_prog in fgrep
5352   do
5353    for ac_exec_ext in '' $ac_executable_extensions; do
5354      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5355      as_fn_executable_p "$ac_path_FGREP" || continue
5356# Check for GNU ac_path_FGREP and select it if it is found.
5357  # Check for GNU $ac_path_FGREP
5358case `"$ac_path_FGREP" --version 2>&1` in
5359*GNU*)
5360  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5361*)
5362  ac_count=0
5363  printf %s 0123456789 >"conftest.in"
5364  while :
5365  do
5366    cat "conftest.in" "conftest.in" >"conftest.tmp"
5367    mv "conftest.tmp" "conftest.in"
5368    cp "conftest.in" "conftest.nl"
5369    printf "%s\n" 'FGREP' >> "conftest.nl"
5370    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372    as_fn_arith $ac_count + 1 && ac_count=$as_val
5373    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5374      # Best one so far, save it but keep looking for a better one
5375      ac_cv_path_FGREP="$ac_path_FGREP"
5376      ac_path_FGREP_max=$ac_count
5377    fi
5378    # 10*(2^10) chars as input seems more than enough
5379    test $ac_count -gt 10 && break
5380  done
5381  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384      $ac_path_FGREP_found && break 3
5385    done
5386  done
5387  done
5388IFS=$as_save_IFS
5389  if test -z "$ac_cv_path_FGREP"; then
5390    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391  fi
5392else
5393  ac_cv_path_FGREP=$FGREP
5394fi
5395
5396   fi
5397fi
5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5399printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5400 FGREP="$ac_cv_path_FGREP"
5401
5402
5403test -z "$GREP" && GREP=grep
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423# Check whether --with-gnu-ld was given.
5424if test ${with_gnu_ld+y}
5425then :
5426  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5427else $as_nop
5428  with_gnu_ld=no
5429fi
5430
5431ac_prog=ld
5432if test yes = "$GCC"; then
5433  # Check if gcc -print-prog-name=ld gives a path.
5434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5435printf %s "checking for ld used by $CC... " >&6; }
5436  case $host in
5437  *-*-mingw*)
5438    # gcc leaves a trailing carriage return, which upsets mingw
5439    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5440  *)
5441    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5442  esac
5443  case $ac_prog in
5444    # Accept absolute paths.
5445    [\\/]* | ?:[\\/]*)
5446      re_direlt='/[^/][^/]*/\.\./'
5447      # Canonicalize the pathname of ld
5448      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5449      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5450	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5451      done
5452      test -z "$LD" && LD=$ac_prog
5453      ;;
5454  "")
5455    # If it fails, then pretend we aren't using GCC.
5456    ac_prog=ld
5457    ;;
5458  *)
5459    # If it is relative, then search for the first ld in PATH.
5460    with_gnu_ld=unknown
5461    ;;
5462  esac
5463elif test yes = "$with_gnu_ld"; then
5464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5465printf %s "checking for GNU ld... " >&6; }
5466else
5467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5468printf %s "checking for non-GNU ld... " >&6; }
5469fi
5470if test ${lt_cv_path_LD+y}
5471then :
5472  printf %s "(cached) " >&6
5473else $as_nop
5474  if test -z "$LD"; then
5475  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5476  for ac_dir in $PATH; do
5477    IFS=$lt_save_ifs
5478    test -z "$ac_dir" && ac_dir=.
5479    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5480      lt_cv_path_LD=$ac_dir/$ac_prog
5481      # Check to see if the program is GNU ld.  I'd rather use --version,
5482      # but apparently some variants of GNU ld only accept -v.
5483      # Break only if it was the GNU/non-GNU ld that we prefer.
5484      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5485      *GNU* | *'with BFD'*)
5486	test no != "$with_gnu_ld" && break
5487	;;
5488      *)
5489	test yes != "$with_gnu_ld" && break
5490	;;
5491      esac
5492    fi
5493  done
5494  IFS=$lt_save_ifs
5495else
5496  lt_cv_path_LD=$LD # Let the user override the test with a path.
5497fi
5498fi
5499
5500LD=$lt_cv_path_LD
5501if test -n "$LD"; then
5502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5503printf "%s\n" "$LD" >&6; }
5504else
5505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506printf "%s\n" "no" >&6; }
5507fi
5508test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5510printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5511if test ${lt_cv_prog_gnu_ld+y}
5512then :
5513  printf %s "(cached) " >&6
5514else $as_nop
5515  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5516case `$LD -v 2>&1 </dev/null` in
5517*GNU* | *'with BFD'*)
5518  lt_cv_prog_gnu_ld=yes
5519  ;;
5520*)
5521  lt_cv_prog_gnu_ld=no
5522  ;;
5523esac
5524fi
5525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5526printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5527with_gnu_ld=$lt_cv_prog_gnu_ld
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5538printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5539if test ${lt_cv_path_NM+y}
5540then :
5541  printf %s "(cached) " >&6
5542else $as_nop
5543  if test -n "$NM"; then
5544  # Let the user override the test.
5545  lt_cv_path_NM=$NM
5546else
5547  lt_nm_to_check=${ac_tool_prefix}nm
5548  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5549    lt_nm_to_check="$lt_nm_to_check nm"
5550  fi
5551  for lt_tmp_nm in $lt_nm_to_check; do
5552    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5553    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5554      IFS=$lt_save_ifs
5555      test -z "$ac_dir" && ac_dir=.
5556      tmp_nm=$ac_dir/$lt_tmp_nm
5557      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5558	# Check to see if the nm accepts a BSD-compat flag.
5559	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5560	#   nm: unknown option "B" ignored
5561	# Tru64's nm complains that /dev/null is an invalid object file
5562	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5563	case $build_os in
5564	mingw*) lt_bad_file=conftest.nm/nofile ;;
5565	*) lt_bad_file=/dev/null ;;
5566	esac
5567	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5568	*$lt_bad_file* | *'Invalid file or object type'*)
5569	  lt_cv_path_NM="$tmp_nm -B"
5570	  break 2
5571	  ;;
5572	*)
5573	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5574	  */dev/null*)
5575	    lt_cv_path_NM="$tmp_nm -p"
5576	    break 2
5577	    ;;
5578	  *)
5579	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5580	    continue # so that we can try to find one that supports BSD flags
5581	    ;;
5582	  esac
5583	  ;;
5584	esac
5585      fi
5586    done
5587    IFS=$lt_save_ifs
5588  done
5589  : ${lt_cv_path_NM=no}
5590fi
5591fi
5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5593printf "%s\n" "$lt_cv_path_NM" >&6; }
5594if test no != "$lt_cv_path_NM"; then
5595  NM=$lt_cv_path_NM
5596else
5597  # Didn't find any BSD compatible name lister, look for dumpbin.
5598  if test -n "$DUMPBIN"; then :
5599    # Let the user override the test.
5600  else
5601    if test -n "$ac_tool_prefix"; then
5602  for ac_prog in dumpbin "link -dump"
5603  do
5604    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607printf %s "checking for $ac_word... " >&6; }
5608if test ${ac_cv_prog_DUMPBIN+y}
5609then :
5610  printf %s "(cached) " >&6
5611else $as_nop
5612  if test -n "$DUMPBIN"; then
5613  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  case $as_dir in #(((
5620    '') as_dir=./ ;;
5621    */) ;;
5622    *) as_dir=$as_dir/ ;;
5623  esac
5624    for ac_exec_ext in '' $ac_executable_extensions; do
5625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5626    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5627    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5628    break 2
5629  fi
5630done
5631  done
5632IFS=$as_save_IFS
5633
5634fi
5635fi
5636DUMPBIN=$ac_cv_prog_DUMPBIN
5637if test -n "$DUMPBIN"; then
5638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5639printf "%s\n" "$DUMPBIN" >&6; }
5640else
5641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642printf "%s\n" "no" >&6; }
5643fi
5644
5645
5646    test -n "$DUMPBIN" && break
5647  done
5648fi
5649if test -z "$DUMPBIN"; then
5650  ac_ct_DUMPBIN=$DUMPBIN
5651  for ac_prog in dumpbin "link -dump"
5652do
5653  # Extract the first word of "$ac_prog", so it can be a program name with args.
5654set dummy $ac_prog; ac_word=$2
5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656printf %s "checking for $ac_word... " >&6; }
5657if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5658then :
5659  printf %s "(cached) " >&6
5660else $as_nop
5661  if test -n "$ac_ct_DUMPBIN"; then
5662  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  case $as_dir in #(((
5669    '') as_dir=./ ;;
5670    */) ;;
5671    *) as_dir=$as_dir/ ;;
5672  esac
5673    for ac_exec_ext in '' $ac_executable_extensions; do
5674  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5675    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5677    break 2
5678  fi
5679done
5680  done
5681IFS=$as_save_IFS
5682
5683fi
5684fi
5685ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5686if test -n "$ac_ct_DUMPBIN"; then
5687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5688printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5689else
5690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691printf "%s\n" "no" >&6; }
5692fi
5693
5694
5695  test -n "$ac_ct_DUMPBIN" && break
5696done
5697
5698  if test "x$ac_ct_DUMPBIN" = x; then
5699    DUMPBIN=":"
5700  else
5701    case $cross_compiling:$ac_tool_warned in
5702yes:)
5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705ac_tool_warned=yes ;;
5706esac
5707    DUMPBIN=$ac_ct_DUMPBIN
5708  fi
5709fi
5710
5711    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5712    *COFF*)
5713      DUMPBIN="$DUMPBIN -symbols -headers"
5714      ;;
5715    *)
5716      DUMPBIN=:
5717      ;;
5718    esac
5719  fi
5720
5721  if test : != "$DUMPBIN"; then
5722    NM=$DUMPBIN
5723  fi
5724fi
5725test -z "$NM" && NM=nm
5726
5727
5728
5729
5730
5731
5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5733printf %s "checking the name lister ($NM) interface... " >&6; }
5734if test ${lt_cv_nm_interface+y}
5735then :
5736  printf %s "(cached) " >&6
5737else $as_nop
5738  lt_cv_nm_interface="BSD nm"
5739  echo "int some_variable = 0;" > conftest.$ac_ext
5740  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5741  (eval "$ac_compile" 2>conftest.err)
5742  cat conftest.err >&5
5743  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5744  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5745  cat conftest.err >&5
5746  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5747  cat conftest.out >&5
5748  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5749    lt_cv_nm_interface="MS dumpbin"
5750  fi
5751  rm -f conftest*
5752fi
5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5754printf "%s\n" "$lt_cv_nm_interface" >&6; }
5755
5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5757printf %s "checking whether ln -s works... " >&6; }
5758LN_S=$as_ln_s
5759if test "$LN_S" = "ln -s"; then
5760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761printf "%s\n" "yes" >&6; }
5762else
5763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5764printf "%s\n" "no, using $LN_S" >&6; }
5765fi
5766
5767# find the maximum length of command line arguments
5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5769printf %s "checking the maximum length of command line arguments... " >&6; }
5770if test ${lt_cv_sys_max_cmd_len+y}
5771then :
5772  printf %s "(cached) " >&6
5773else $as_nop
5774    i=0
5775  teststring=ABCD
5776
5777  case $build_os in
5778  msdosdjgpp*)
5779    # On DJGPP, this test can blow up pretty badly due to problems in libc
5780    # (any single argument exceeding 2000 bytes causes a buffer overrun
5781    # during glob expansion).  Even if it were fixed, the result of this
5782    # check would be larger than it should be.
5783    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5784    ;;
5785
5786  gnu*)
5787    # Under GNU Hurd, this test is not required because there is
5788    # no limit to the length of command line arguments.
5789    # Libtool will interpret -1 as no limit whatsoever
5790    lt_cv_sys_max_cmd_len=-1;
5791    ;;
5792
5793  cygwin* | mingw* | cegcc*)
5794    # On Win9x/ME, this test blows up -- it succeeds, but takes
5795    # about 5 minutes as the teststring grows exponentially.
5796    # Worse, since 9x/ME are not pre-emptively multitasking,
5797    # you end up with a "frozen" computer, even though with patience
5798    # the test eventually succeeds (with a max line length of 256k).
5799    # Instead, let's just punt: use the minimum linelength reported by
5800    # all of the supported platforms: 8192 (on NT/2K/XP).
5801    lt_cv_sys_max_cmd_len=8192;
5802    ;;
5803
5804  mint*)
5805    # On MiNT this can take a long time and run out of memory.
5806    lt_cv_sys_max_cmd_len=8192;
5807    ;;
5808
5809  amigaos*)
5810    # On AmigaOS with pdksh, this test takes hours, literally.
5811    # So we just punt and use a minimum line length of 8192.
5812    lt_cv_sys_max_cmd_len=8192;
5813    ;;
5814
5815  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5816    # This has been around since 386BSD, at least.  Likely further.
5817    if test -x /sbin/sysctl; then
5818      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5819    elif test -x /usr/sbin/sysctl; then
5820      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5821    else
5822      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5823    fi
5824    # And add a safety zone
5825    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5827    ;;
5828
5829  interix*)
5830    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5831    lt_cv_sys_max_cmd_len=196608
5832    ;;
5833
5834  os2*)
5835    # The test takes a long time on OS/2.
5836    lt_cv_sys_max_cmd_len=8192
5837    ;;
5838
5839  osf*)
5840    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5841    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5842    # nice to cause kernel panics so lets avoid the loop below.
5843    # First set a reasonable default.
5844    lt_cv_sys_max_cmd_len=16384
5845    #
5846    if test -x /sbin/sysconfig; then
5847      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5848        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5849      esac
5850    fi
5851    ;;
5852  sco3.2v5*)
5853    lt_cv_sys_max_cmd_len=102400
5854    ;;
5855  sysv5* | sco5v6* | sysv4.2uw2*)
5856    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5857    if test -n "$kargmax"; then
5858      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5859    else
5860      lt_cv_sys_max_cmd_len=32768
5861    fi
5862    ;;
5863  *)
5864    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5865    if test -n "$lt_cv_sys_max_cmd_len" && \
5866       test undefined != "$lt_cv_sys_max_cmd_len"; then
5867      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869    else
5870      # Make teststring a little bigger before we do anything with it.
5871      # a 1K string should be a reasonable start.
5872      for i in 1 2 3 4 5 6 7 8; do
5873        teststring=$teststring$teststring
5874      done
5875      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5876      # If test is not a shell built-in, we'll probably end up computing a
5877      # maximum length that is only half of the actual maximum length, but
5878      # we can't tell.
5879      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5880	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5881	      test 17 != "$i" # 1/2 MB should be enough
5882      do
5883        i=`expr $i + 1`
5884        teststring=$teststring$teststring
5885      done
5886      # Only check the string length outside the loop.
5887      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5888      teststring=
5889      # Add a significant safety factor because C++ compilers can tack on
5890      # massive amounts of additional arguments before passing them to the
5891      # linker.  It appears as though 1/2 is a usable value.
5892      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5893    fi
5894    ;;
5895  esac
5896
5897fi
5898
5899if test -n "$lt_cv_sys_max_cmd_len"; then
5900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5901printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5902else
5903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5904printf "%s\n" "none" >&6; }
5905fi
5906max_cmd_len=$lt_cv_sys_max_cmd_len
5907
5908
5909
5910
5911
5912
5913: ${CP="cp -f"}
5914: ${MV="mv -f"}
5915: ${RM="rm -f"}
5916
5917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5918  lt_unset=unset
5919else
5920  lt_unset=false
5921fi
5922
5923
5924
5925
5926
5927# test EBCDIC or ASCII
5928case `echo X|tr X '\101'` in
5929 A) # ASCII based system
5930    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5931  lt_SP2NL='tr \040 \012'
5932  lt_NL2SP='tr \015\012 \040\040'
5933  ;;
5934 *) # EBCDIC based system
5935  lt_SP2NL='tr \100 \n'
5936  lt_NL2SP='tr \r\n \100\100'
5937  ;;
5938esac
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5949printf %s "checking how to convert $build file names to $host format... " >&6; }
5950if test ${lt_cv_to_host_file_cmd+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  case $host in
5955  *-*-mingw* )
5956    case $build in
5957      *-*-mingw* ) # actually msys
5958        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5959        ;;
5960      *-*-cygwin* )
5961        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5962        ;;
5963      * ) # otherwise, assume *nix
5964        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5965        ;;
5966    esac
5967    ;;
5968  *-*-cygwin* )
5969    case $build in
5970      *-*-mingw* ) # actually msys
5971        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5972        ;;
5973      *-*-cygwin* )
5974        lt_cv_to_host_file_cmd=func_convert_file_noop
5975        ;;
5976      * ) # otherwise, assume *nix
5977        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5978        ;;
5979    esac
5980    ;;
5981  * ) # unhandled hosts (and "normal" native builds)
5982    lt_cv_to_host_file_cmd=func_convert_file_noop
5983    ;;
5984esac
5985
5986fi
5987
5988to_host_file_cmd=$lt_cv_to_host_file_cmd
5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5990printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5991
5992
5993
5994
5995
5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5997printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5998if test ${lt_cv_to_tool_file_cmd+y}
5999then :
6000  printf %s "(cached) " >&6
6001else $as_nop
6002  #assume ordinary cross tools, or native build.
6003lt_cv_to_tool_file_cmd=func_convert_file_noop
6004case $host in
6005  *-*-mingw* )
6006    case $build in
6007      *-*-mingw* ) # actually msys
6008        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6009        ;;
6010    esac
6011    ;;
6012esac
6013
6014fi
6015
6016to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6018printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6019
6020
6021
6022
6023
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6025printf %s "checking for $LD option to reload object files... " >&6; }
6026if test ${lt_cv_ld_reload_flag+y}
6027then :
6028  printf %s "(cached) " >&6
6029else $as_nop
6030  lt_cv_ld_reload_flag='-r'
6031fi
6032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6033printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6034reload_flag=$lt_cv_ld_reload_flag
6035case $reload_flag in
6036"" | " "*) ;;
6037*) reload_flag=" $reload_flag" ;;
6038esac
6039reload_cmds='$LD$reload_flag -o $output$reload_objs'
6040case $host_os in
6041  cygwin* | mingw* | pw32* | cegcc*)
6042    if test yes != "$GCC"; then
6043      reload_cmds=false
6044    fi
6045    ;;
6046  darwin*)
6047    if test yes = "$GCC"; then
6048      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6049    else
6050      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6051    fi
6052    ;;
6053esac
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063if test -n "$ac_tool_prefix"; then
6064  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}file; ac_word=$2
6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067printf %s "checking for $ac_word... " >&6; }
6068if test ${ac_cv_prog_FILECMD+y}
6069then :
6070  printf %s "(cached) " >&6
6071else $as_nop
6072  if test -n "$FILECMD"; then
6073  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078  IFS=$as_save_IFS
6079  case $as_dir in #(((
6080    '') as_dir=./ ;;
6081    */) ;;
6082    *) as_dir=$as_dir/ ;;
6083  esac
6084    for ac_exec_ext in '' $ac_executable_extensions; do
6085  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6086    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6087    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091  done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096FILECMD=$ac_cv_prog_FILECMD
6097if test -n "$FILECMD"; then
6098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6099printf "%s\n" "$FILECMD" >&6; }
6100else
6101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102printf "%s\n" "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_FILECMD"; then
6108  ac_ct_FILECMD=$FILECMD
6109  # Extract the first word of "file", so it can be a program name with args.
6110set dummy file; ac_word=$2
6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112printf %s "checking for $ac_word... " >&6; }
6113if test ${ac_cv_prog_ac_ct_FILECMD+y}
6114then :
6115  printf %s "(cached) " >&6
6116else $as_nop
6117  if test -n "$ac_ct_FILECMD"; then
6118  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  case $as_dir in #(((
6125    '') as_dir=./ ;;
6126    */) ;;
6127    *) as_dir=$as_dir/ ;;
6128  esac
6129    for ac_exec_ext in '' $ac_executable_extensions; do
6130  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6131    ac_cv_prog_ac_ct_FILECMD="file"
6132    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136  done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6142if test -n "$ac_ct_FILECMD"; then
6143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6144printf "%s\n" "$ac_ct_FILECMD" >&6; }
6145else
6146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147printf "%s\n" "no" >&6; }
6148fi
6149
6150  if test "x$ac_ct_FILECMD" = x; then
6151    FILECMD=":"
6152  else
6153    case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159    FILECMD=$ac_ct_FILECMD
6160  fi
6161else
6162  FILECMD="$ac_cv_prog_FILECMD"
6163fi
6164
6165
6166
6167
6168
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}objdump; ac_word=$2
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175printf %s "checking for $ac_word... " >&6; }
6176if test ${ac_cv_prog_OBJDUMP+y}
6177then :
6178  printf %s "(cached) " >&6
6179else $as_nop
6180  if test -n "$OBJDUMP"; then
6181  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186  IFS=$as_save_IFS
6187  case $as_dir in #(((
6188    '') as_dir=./ ;;
6189    */) ;;
6190    *) as_dir=$as_dir/ ;;
6191  esac
6192    for ac_exec_ext in '' $ac_executable_extensions; do
6193  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6194    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6195    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199  done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204OBJDUMP=$ac_cv_prog_OBJDUMP
6205if test -n "$OBJDUMP"; then
6206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6207printf "%s\n" "$OBJDUMP" >&6; }
6208else
6209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210printf "%s\n" "no" >&6; }
6211fi
6212
6213
6214fi
6215if test -z "$ac_cv_prog_OBJDUMP"; then
6216  ac_ct_OBJDUMP=$OBJDUMP
6217  # Extract the first word of "objdump", so it can be a program name with args.
6218set dummy objdump; ac_word=$2
6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220printf %s "checking for $ac_word... " >&6; }
6221if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  if test -n "$ac_ct_OBJDUMP"; then
6226  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231  IFS=$as_save_IFS
6232  case $as_dir in #(((
6233    '') as_dir=./ ;;
6234    */) ;;
6235    *) as_dir=$as_dir/ ;;
6236  esac
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6250if test -n "$ac_ct_OBJDUMP"; then
6251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6252printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6253else
6254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255printf "%s\n" "no" >&6; }
6256fi
6257
6258  if test "x$ac_ct_OBJDUMP" = x; then
6259    OBJDUMP="false"
6260  else
6261    case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267    OBJDUMP=$ac_ct_OBJDUMP
6268  fi
6269else
6270  OBJDUMP="$ac_cv_prog_OBJDUMP"
6271fi
6272
6273test -z "$OBJDUMP" && OBJDUMP=objdump
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6284printf %s "checking how to recognize dependent libraries... " >&6; }
6285if test ${lt_cv_deplibs_check_method+y}
6286then :
6287  printf %s "(cached) " >&6
6288else $as_nop
6289  lt_cv_file_magic_cmd='$MAGIC_CMD'
6290lt_cv_file_magic_test_file=
6291lt_cv_deplibs_check_method='unknown'
6292# Need to set the preceding variable on all platforms that support
6293# interlibrary dependencies.
6294# 'none' -- dependencies not supported.
6295# 'unknown' -- same as none, but documents that we really don't know.
6296# 'pass_all' -- all dependencies passed with no checks.
6297# 'test_compile' -- check by making test program.
6298# 'file_magic [[regex]]' -- check by looking for files in library path
6299# that responds to the $file_magic_cmd with a given extended regex.
6300# If you have 'file' or equivalent on your system and you're not sure
6301# whether 'pass_all' will *always* work, you probably want this one.
6302
6303case $host_os in
6304aix[4-9]*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308beos*)
6309  lt_cv_deplibs_check_method=pass_all
6310  ;;
6311
6312bsdi[45]*)
6313  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314  lt_cv_file_magic_cmd='$FILECMD -L'
6315  lt_cv_file_magic_test_file=/shlib/libc.so
6316  ;;
6317
6318cygwin*)
6319  # func_win32_libid is a shell function defined in ltmain.sh
6320  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321  lt_cv_file_magic_cmd='func_win32_libid'
6322  ;;
6323
6324mingw* | pw32*)
6325  # Base MSYS/MinGW do not provide the 'file' command needed by
6326  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327  # unless we find 'file', for example because we are cross-compiling.
6328  if ( file / ) >/dev/null 2>&1; then
6329    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330    lt_cv_file_magic_cmd='func_win32_libid'
6331  else
6332    # Keep this pattern in sync with the one in func_win32_libid.
6333    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6334    lt_cv_file_magic_cmd='$OBJDUMP -f'
6335  fi
6336  ;;
6337
6338cegcc*)
6339  # use the weaker test based on 'objdump'. See mingw*.
6340  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6341  lt_cv_file_magic_cmd='$OBJDUMP -f'
6342  ;;
6343
6344darwin* | rhapsody*)
6345  lt_cv_deplibs_check_method=pass_all
6346  ;;
6347
6348freebsd* | dragonfly* | midnightbsd*)
6349  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350    case $host_cpu in
6351    i*86 )
6352      # Not sure whether the presence of OpenBSD here was a mistake.
6353      # Let's accept both of them until this is cleared up.
6354      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355      lt_cv_file_magic_cmd=$FILECMD
6356      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357      ;;
6358    esac
6359  else
6360    lt_cv_deplibs_check_method=pass_all
6361  fi
6362  ;;
6363
6364haiku*)
6365  lt_cv_deplibs_check_method=pass_all
6366  ;;
6367
6368hpux10.20* | hpux11*)
6369  lt_cv_file_magic_cmd=$FILECMD
6370  case $host_cpu in
6371  ia64*)
6372    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374    ;;
6375  hppa*64*)
6376    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]'
6377    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378    ;;
6379  *)
6380    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382    ;;
6383  esac
6384  ;;
6385
6386interix[3-9]*)
6387  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389  ;;
6390
6391irix5* | irix6* | nonstopux*)
6392  case $LD in
6393  *-32|*"-32 ") libmagic=32-bit;;
6394  *-n32|*"-n32 ") libmagic=N32;;
6395  *-64|*"-64 ") libmagic=64-bit;;
6396  *) libmagic=never-match;;
6397  esac
6398  lt_cv_deplibs_check_method=pass_all
6399  ;;
6400
6401# This must be glibc/ELF.
6402linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405
6406netbsd*)
6407  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409  else
6410    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411  fi
6412  ;;
6413
6414newos6*)
6415  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416  lt_cv_file_magic_cmd=$FILECMD
6417  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418  ;;
6419
6420*nto* | *qnx*)
6421  lt_cv_deplibs_check_method=pass_all
6422  ;;
6423
6424openbsd* | bitrig*)
6425  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6426    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427  else
6428    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429  fi
6430  ;;
6431
6432osf3* | osf4* | osf5*)
6433  lt_cv_deplibs_check_method=pass_all
6434  ;;
6435
6436rdos*)
6437  lt_cv_deplibs_check_method=pass_all
6438  ;;
6439
6440solaris*)
6441  lt_cv_deplibs_check_method=pass_all
6442  ;;
6443
6444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445  lt_cv_deplibs_check_method=pass_all
6446  ;;
6447
6448sysv4 | sysv4.3*)
6449  case $host_vendor in
6450  motorola)
6451    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]'
6452    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453    ;;
6454  ncr)
6455    lt_cv_deplibs_check_method=pass_all
6456    ;;
6457  sequent)
6458    lt_cv_file_magic_cmd='/bin/file'
6459    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460    ;;
6461  sni)
6462    lt_cv_file_magic_cmd='/bin/file'
6463    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464    lt_cv_file_magic_test_file=/lib/libc.so
6465    ;;
6466  siemens)
6467    lt_cv_deplibs_check_method=pass_all
6468    ;;
6469  pc)
6470    lt_cv_deplibs_check_method=pass_all
6471    ;;
6472  esac
6473  ;;
6474
6475tpf*)
6476  lt_cv_deplibs_check_method=pass_all
6477  ;;
6478os2*)
6479  lt_cv_deplibs_check_method=pass_all
6480  ;;
6481esac
6482
6483fi
6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6485printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6486
6487file_magic_glob=
6488want_nocaseglob=no
6489if test "$build" = "$host"; then
6490  case $host_os in
6491  mingw* | pw32*)
6492    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6493      want_nocaseglob=yes
6494    else
6495      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6496    fi
6497    ;;
6498  esac
6499fi
6500
6501file_magic_cmd=$lt_cv_file_magic_cmd
6502deplibs_check_method=$lt_cv_deplibs_check_method
6503test -z "$deplibs_check_method" && deplibs_check_method=unknown
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526if test -n "$ac_tool_prefix"; then
6527  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6528set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530printf %s "checking for $ac_word... " >&6; }
6531if test ${ac_cv_prog_DLLTOOL+y}
6532then :
6533  printf %s "(cached) " >&6
6534else $as_nop
6535  if test -n "$DLLTOOL"; then
6536  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  case $as_dir in #(((
6543    '') as_dir=./ ;;
6544    */) ;;
6545    *) as_dir=$as_dir/ ;;
6546  esac
6547    for ac_exec_ext in '' $ac_executable_extensions; do
6548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551    break 2
6552  fi
6553done
6554  done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559DLLTOOL=$ac_cv_prog_DLLTOOL
6560if test -n "$DLLTOOL"; then
6561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6562printf "%s\n" "$DLLTOOL" >&6; }
6563else
6564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565printf "%s\n" "no" >&6; }
6566fi
6567
6568
6569fi
6570if test -z "$ac_cv_prog_DLLTOOL"; then
6571  ac_ct_DLLTOOL=$DLLTOOL
6572  # Extract the first word of "dlltool", so it can be a program name with args.
6573set dummy dlltool; 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_DLLTOOL+y}
6577then :
6578  printf %s "(cached) " >&6
6579else $as_nop
6580  if test -n "$ac_ct_DLLTOOL"; then
6581  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6605if test -n "$ac_ct_DLLTOOL"; then
6606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6607printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6608else
6609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610printf "%s\n" "no" >&6; }
6611fi
6612
6613  if test "x$ac_ct_DLLTOOL" = x; then
6614    DLLTOOL="false"
6615  else
6616    case $cross_compiling:$ac_tool_warned in
6617yes:)
6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620ac_tool_warned=yes ;;
6621esac
6622    DLLTOOL=$ac_ct_DLLTOOL
6623  fi
6624else
6625  DLLTOOL="$ac_cv_prog_DLLTOOL"
6626fi
6627
6628test -z "$DLLTOOL" && DLLTOOL=dlltool
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6640printf %s "checking how to associate runtime and link libraries... " >&6; }
6641if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6642then :
6643  printf %s "(cached) " >&6
6644else $as_nop
6645  lt_cv_sharedlib_from_linklib_cmd='unknown'
6646
6647case $host_os in
6648cygwin* | mingw* | pw32* | cegcc*)
6649  # two different shell functions defined in ltmain.sh;
6650  # decide which one to use based on capabilities of $DLLTOOL
6651  case `$DLLTOOL --help 2>&1` in
6652  *--identify-strict*)
6653    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6654    ;;
6655  *)
6656    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6657    ;;
6658  esac
6659  ;;
6660*)
6661  # fallback: assume linklib IS sharedlib
6662  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6663  ;;
6664esac
6665
6666fi
6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6668printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6669sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6670test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6671
6672
6673
6674
6675
6676
6677
6678if test -n "$ac_tool_prefix"; then
6679  for ac_prog in ar
6680  do
6681    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684printf %s "checking for $ac_word... " >&6; }
6685if test ${ac_cv_prog_AR+y}
6686then :
6687  printf %s "(cached) " >&6
6688else $as_nop
6689  if test -n "$AR"; then
6690  ac_cv_prog_AR="$AR" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  case $as_dir in #(((
6697    '') as_dir=./ ;;
6698    */) ;;
6699    *) as_dir=$as_dir/ ;;
6700  esac
6701    for ac_exec_ext in '' $ac_executable_extensions; do
6702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6703    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705    break 2
6706  fi
6707done
6708  done
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713AR=$ac_cv_prog_AR
6714if test -n "$AR"; then
6715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6716printf "%s\n" "$AR" >&6; }
6717else
6718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719printf "%s\n" "no" >&6; }
6720fi
6721
6722
6723    test -n "$AR" && break
6724  done
6725fi
6726if test -z "$AR"; then
6727  ac_ct_AR=$AR
6728  for ac_prog in ar
6729do
6730  # Extract the first word of "$ac_prog", so it can be a program name with args.
6731set dummy $ac_prog; ac_word=$2
6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733printf %s "checking for $ac_word... " >&6; }
6734if test ${ac_cv_prog_ac_ct_AR+y}
6735then :
6736  printf %s "(cached) " >&6
6737else $as_nop
6738  if test -n "$ac_ct_AR"; then
6739  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  case $as_dir in #(((
6746    '') as_dir=./ ;;
6747    */) ;;
6748    *) as_dir=$as_dir/ ;;
6749  esac
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752    ac_cv_prog_ac_ct_AR="$ac_prog"
6753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762ac_ct_AR=$ac_cv_prog_ac_ct_AR
6763if test -n "$ac_ct_AR"; then
6764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6765printf "%s\n" "$ac_ct_AR" >&6; }
6766else
6767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768printf "%s\n" "no" >&6; }
6769fi
6770
6771
6772  test -n "$ac_ct_AR" && break
6773done
6774
6775  if test "x$ac_ct_AR" = x; then
6776    AR="false"
6777  else
6778    case $cross_compiling:$ac_tool_warned in
6779yes:)
6780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782ac_tool_warned=yes ;;
6783esac
6784    AR=$ac_ct_AR
6785  fi
6786fi
6787
6788: ${AR=ar}
6789
6790
6791
6792
6793
6794
6795# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6796# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6797# higher priority because thats what people were doing historically (setting
6798# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6799# variable obsoleted/removed.
6800
6801test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6802lt_ar_flags=$AR_FLAGS
6803
6804
6805
6806
6807
6808
6809# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6810# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6811
6812
6813
6814
6815
6816
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6818printf %s "checking for archiver @FILE support... " >&6; }
6819if test ${lt_cv_ar_at_file+y}
6820then :
6821  printf %s "(cached) " >&6
6822else $as_nop
6823  lt_cv_ar_at_file=no
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826
6827int
6828main (void)
6829{
6830
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"
6836then :
6837  echo conftest.$ac_objext > conftest.lst
6838      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6839      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6840  (eval $lt_ar_try) 2>&5
6841  ac_status=$?
6842  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843  test $ac_status = 0; }
6844      if test 0 -eq "$ac_status"; then
6845	# Ensure the archiver fails upon bogus file names.
6846	rm -f conftest.$ac_objext libconftest.a
6847	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6848  (eval $lt_ar_try) 2>&5
6849  ac_status=$?
6850  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851  test $ac_status = 0; }
6852	if test 0 -ne "$ac_status"; then
6853          lt_cv_ar_at_file=@
6854        fi
6855      fi
6856      rm -f conftest.* libconftest.a
6857
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860
6861fi
6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6863printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6864
6865if test no = "$lt_cv_ar_at_file"; then
6866  archiver_list_spec=
6867else
6868  archiver_list_spec=$lt_cv_ar_at_file
6869fi
6870
6871
6872
6873
6874
6875
6876
6877if test -n "$ac_tool_prefix"; then
6878  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6879set dummy ${ac_tool_prefix}strip; ac_word=$2
6880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881printf %s "checking for $ac_word... " >&6; }
6882if test ${ac_cv_prog_STRIP+y}
6883then :
6884  printf %s "(cached) " >&6
6885else $as_nop
6886  if test -n "$STRIP"; then
6887  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892  IFS=$as_save_IFS
6893  case $as_dir in #(((
6894    '') as_dir=./ ;;
6895    */) ;;
6896    *) as_dir=$as_dir/ ;;
6897  esac
6898    for ac_exec_ext in '' $ac_executable_extensions; do
6899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6900    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6902    break 2
6903  fi
6904done
6905  done
6906IFS=$as_save_IFS
6907
6908fi
6909fi
6910STRIP=$ac_cv_prog_STRIP
6911if test -n "$STRIP"; then
6912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6913printf "%s\n" "$STRIP" >&6; }
6914else
6915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916printf "%s\n" "no" >&6; }
6917fi
6918
6919
6920fi
6921if test -z "$ac_cv_prog_STRIP"; then
6922  ac_ct_STRIP=$STRIP
6923  # Extract the first word of "strip", so it can be a program name with args.
6924set dummy strip; ac_word=$2
6925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926printf %s "checking for $ac_word... " >&6; }
6927if test ${ac_cv_prog_ac_ct_STRIP+y}
6928then :
6929  printf %s "(cached) " >&6
6930else $as_nop
6931  if test -n "$ac_ct_STRIP"; then
6932  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  case $as_dir in #(((
6939    '') as_dir=./ ;;
6940    */) ;;
6941    *) as_dir=$as_dir/ ;;
6942  esac
6943    for ac_exec_ext in '' $ac_executable_extensions; do
6944  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6945    ac_cv_prog_ac_ct_STRIP="strip"
6946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6947    break 2
6948  fi
6949done
6950  done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956if test -n "$ac_ct_STRIP"; then
6957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958printf "%s\n" "$ac_ct_STRIP" >&6; }
6959else
6960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961printf "%s\n" "no" >&6; }
6962fi
6963
6964  if test "x$ac_ct_STRIP" = x; then
6965    STRIP=":"
6966  else
6967    case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973    STRIP=$ac_ct_STRIP
6974  fi
6975else
6976  STRIP="$ac_cv_prog_STRIP"
6977fi
6978
6979test -z "$STRIP" && STRIP=:
6980
6981
6982
6983
6984
6985
6986if test -n "$ac_tool_prefix"; then
6987  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990printf %s "checking for $ac_word... " >&6; }
6991if test ${ac_cv_prog_RANLIB+y}
6992then :
6993  printf %s "(cached) " >&6
6994else $as_nop
6995  if test -n "$RANLIB"; then
6996  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  case $as_dir in #(((
7003    '') as_dir=./ ;;
7004    */) ;;
7005    *) as_dir=$as_dir/ ;;
7006  esac
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019RANLIB=$ac_cv_prog_RANLIB
7020if test -n "$RANLIB"; then
7021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022printf "%s\n" "$RANLIB" >&6; }
7023else
7024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025printf "%s\n" "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_RANLIB"; then
7031  ac_ct_RANLIB=$RANLIB
7032  # Extract the first word of "ranlib", so it can be a program name with args.
7033set dummy ranlib; ac_word=$2
7034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035printf %s "checking for $ac_word... " >&6; }
7036if test ${ac_cv_prog_ac_ct_RANLIB+y}
7037then :
7038  printf %s "(cached) " >&6
7039else $as_nop
7040  if test -n "$ac_ct_RANLIB"; then
7041  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046  IFS=$as_save_IFS
7047  case $as_dir in #(((
7048    '') as_dir=./ ;;
7049    */) ;;
7050    *) as_dir=$as_dir/ ;;
7051  esac
7052    for ac_exec_ext in '' $ac_executable_extensions; do
7053  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7054    ac_cv_prog_ac_ct_RANLIB="ranlib"
7055    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059  done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7065if test -n "$ac_ct_RANLIB"; then
7066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7067printf "%s\n" "$ac_ct_RANLIB" >&6; }
7068else
7069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070printf "%s\n" "no" >&6; }
7071fi
7072
7073  if test "x$ac_ct_RANLIB" = x; then
7074    RANLIB=":"
7075  else
7076    case $cross_compiling:$ac_tool_warned in
7077yes:)
7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080ac_tool_warned=yes ;;
7081esac
7082    RANLIB=$ac_ct_RANLIB
7083  fi
7084else
7085  RANLIB="$ac_cv_prog_RANLIB"
7086fi
7087
7088test -z "$RANLIB" && RANLIB=:
7089
7090
7091
7092
7093
7094
7095# Determine commands to create old-style static archives.
7096old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7097old_postinstall_cmds='chmod 644 $oldlib'
7098old_postuninstall_cmds=
7099
7100if test -n "$RANLIB"; then
7101  case $host_os in
7102  bitrig* | openbsd*)
7103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7104    ;;
7105  *)
7106    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7107    ;;
7108  esac
7109  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7110fi
7111
7112case $host_os in
7113  darwin*)
7114    lock_old_archive_extraction=yes ;;
7115  *)
7116    lock_old_archive_extraction=no ;;
7117esac
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157# If no C compiler was specified, use CC.
7158LTCC=${LTCC-"$CC"}
7159
7160# If no C compiler flags were specified, use CFLAGS.
7161LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7162
7163# Allow CC to be a program name with arguments.
7164compiler=$CC
7165
7166
7167# Check for command to grab the raw symbol name followed by C symbol from nm.
7168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7169printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7170if test ${lt_cv_sys_global_symbol_pipe+y}
7171then :
7172  printf %s "(cached) " >&6
7173else $as_nop
7174
7175# These are sane defaults that work on at least a few old systems.
7176# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7177
7178# Character class describing NM global symbol codes.
7179symcode='[BCDEGRST]'
7180
7181# Regexp to match symbols that can be accessed directly from C.
7182sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7183
7184# Define system-specific variables.
7185case $host_os in
7186aix*)
7187  symcode='[BCDT]'
7188  ;;
7189cygwin* | mingw* | pw32* | cegcc*)
7190  symcode='[ABCDGISTW]'
7191  ;;
7192hpux*)
7193  if test ia64 = "$host_cpu"; then
7194    symcode='[ABCDEGRST]'
7195  fi
7196  ;;
7197irix* | nonstopux*)
7198  symcode='[BCDEGRST]'
7199  ;;
7200osf*)
7201  symcode='[BCDEGQRST]'
7202  ;;
7203solaris*)
7204  symcode='[BDRT]'
7205  ;;
7206sco3.2v5*)
7207  symcode='[DT]'
7208  ;;
7209sysv4.2uw2*)
7210  symcode='[DT]'
7211  ;;
7212sysv5* | sco5v6* | unixware* | OpenUNIX*)
7213  symcode='[ABDT]'
7214  ;;
7215sysv4)
7216  symcode='[DFNSTU]'
7217  ;;
7218esac
7219
7220# If we're using GNU nm, then use its standard symbol codes.
7221case `$NM -V 2>&1` in
7222*GNU* | *'with BFD'*)
7223  symcode='[ABCDGIRSTW]' ;;
7224esac
7225
7226if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7227  # Gets list of data symbols to import.
7228  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7229  # Adjust the below global symbol transforms to fixup imported variables.
7230  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7231  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7232  lt_c_name_lib_hook="\
7233  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7234  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7235else
7236  # Disable hooks by default.
7237  lt_cv_sys_global_symbol_to_import=
7238  lt_cdecl_hook=
7239  lt_c_name_hook=
7240  lt_c_name_lib_hook=
7241fi
7242
7243# Transform an extracted symbol line into a proper C declaration.
7244# Some systems (esp. on ia64) link data and code symbols differently,
7245# so use this general approach.
7246lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7247$lt_cdecl_hook\
7248" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7249" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7250
7251# Transform an extracted symbol line into symbol name and symbol address
7252lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7253$lt_c_name_hook\
7254" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7255" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7256
7257# Transform an extracted symbol line into symbol name with lib prefix and
7258# symbol address.
7259lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7260$lt_c_name_lib_hook\
7261" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7262" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7263" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7264
7265# Handle CRLF in mingw tool chain
7266opt_cr=
7267case $build_os in
7268mingw*)
7269  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7270  ;;
7271esac
7272
7273# Try without a prefix underscore, then with it.
7274for ac_symprfx in "" "_"; do
7275
7276  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7277  symxfrm="\\1 $ac_symprfx\\2 \\2"
7278
7279  # Write the raw and C identifiers.
7280  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7281    # Fake it for dumpbin and say T for any non-static function,
7282    # D for any global variable and I for any imported variable.
7283    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7284    # which start with @ or ?.
7285    lt_cv_sys_global_symbol_pipe="$AWK '"\
7286"     {last_section=section; section=\$ 3};"\
7287"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7288"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7289"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7290"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7291"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7292"     \$ 0!~/External *\|/{next};"\
7293"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7294"     {if(hide[section]) next};"\
7295"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7296"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7297"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7298"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7299"     ' prfx=^$ac_symprfx"
7300  else
7301    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7302  fi
7303  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7304
7305  # Check to see that the pipe works correctly.
7306  pipe_works=no
7307
7308  rm -f conftest*
7309  cat > conftest.$ac_ext <<_LT_EOF
7310#ifdef __cplusplus
7311extern "C" {
7312#endif
7313char nm_test_var;
7314void nm_test_func(void);
7315void nm_test_func(void){}
7316#ifdef __cplusplus
7317}
7318#endif
7319int main(){nm_test_var='a';nm_test_func();return(0);}
7320_LT_EOF
7321
7322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323  (eval $ac_compile) 2>&5
7324  ac_status=$?
7325  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; }; then
7327    # Now try to grab the symbols.
7328    nlist=conftest.nm
7329    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7330  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7331  ac_status=$?
7332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333  test $ac_status = 0; } && test -s "$nlist"; then
7334      # Try sorting and uniquifying the output.
7335      if sort "$nlist" | uniq > "$nlist"T; then
7336	mv -f "$nlist"T "$nlist"
7337      else
7338	rm -f "$nlist"T
7339      fi
7340
7341      # Make sure that we snagged all the symbols we need.
7342      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7343	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7344	  cat <<_LT_EOF > conftest.$ac_ext
7345/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7346#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7347/* DATA imports from DLLs on WIN32 can't be const, because runtime
7348   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7349# define LT_DLSYM_CONST
7350#elif defined __osf__
7351/* This system does not cope well with relocations in const data.  */
7352# define LT_DLSYM_CONST
7353#else
7354# define LT_DLSYM_CONST const
7355#endif
7356
7357#ifdef __cplusplus
7358extern "C" {
7359#endif
7360
7361_LT_EOF
7362	  # Now generate the symbol file.
7363	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7364
7365	  cat <<_LT_EOF >> conftest.$ac_ext
7366
7367/* The mapping between symbol names and symbols.  */
7368LT_DLSYM_CONST struct {
7369  const char *name;
7370  void       *address;
7371}
7372lt__PROGRAM__LTX_preloaded_symbols[] =
7373{
7374  { "@PROGRAM@", (void *) 0 },
7375_LT_EOF
7376	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7377	  cat <<\_LT_EOF >> conftest.$ac_ext
7378  {0, (void *) 0}
7379};
7380
7381/* This works around a problem in FreeBSD linker */
7382#ifdef FREEBSD_WORKAROUND
7383static const void *lt_preloaded_setup() {
7384  return lt__PROGRAM__LTX_preloaded_symbols;
7385}
7386#endif
7387
7388#ifdef __cplusplus
7389}
7390#endif
7391_LT_EOF
7392	  # Now try linking the two files.
7393	  mv conftest.$ac_objext conftstm.$ac_objext
7394	  lt_globsym_save_LIBS=$LIBS
7395	  lt_globsym_save_CFLAGS=$CFLAGS
7396	  LIBS=conftstm.$ac_objext
7397	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7398	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7399  (eval $ac_link) 2>&5
7400  ac_status=$?
7401  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7403	    pipe_works=yes
7404	  fi
7405	  LIBS=$lt_globsym_save_LIBS
7406	  CFLAGS=$lt_globsym_save_CFLAGS
7407	else
7408	  echo "cannot find nm_test_func in $nlist" >&5
7409	fi
7410      else
7411	echo "cannot find nm_test_var in $nlist" >&5
7412      fi
7413    else
7414      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7415    fi
7416  else
7417    echo "$progname: failed program was:" >&5
7418    cat conftest.$ac_ext >&5
7419  fi
7420  rm -rf conftest* conftst*
7421
7422  # Do not use the global_symbol_pipe unless it works.
7423  if test yes = "$pipe_works"; then
7424    break
7425  else
7426    lt_cv_sys_global_symbol_pipe=
7427  fi
7428done
7429
7430fi
7431
7432if test -z "$lt_cv_sys_global_symbol_pipe"; then
7433  lt_cv_sys_global_symbol_to_cdecl=
7434fi
7435if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7437printf "%s\n" "failed" >&6; }
7438else
7439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7440printf "%s\n" "ok" >&6; }
7441fi
7442
7443# Response file support.
7444if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7445  nm_file_list_spec='@'
7446elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7447  nm_file_list_spec='@'
7448fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7487printf %s "checking for sysroot... " >&6; }
7488
7489# Check whether --with-sysroot was given.
7490if test ${with_sysroot+y}
7491then :
7492  withval=$with_sysroot;
7493else $as_nop
7494  with_sysroot=no
7495fi
7496
7497
7498lt_sysroot=
7499case $with_sysroot in #(
7500 yes)
7501   if test yes = "$GCC"; then
7502     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7503   fi
7504   ;; #(
7505 /*)
7506   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7507   ;; #(
7508 no|'')
7509   ;; #(
7510 *)
7511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7512printf "%s\n" "$with_sysroot" >&6; }
7513   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7514   ;;
7515esac
7516
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7518printf "%s\n" "${lt_sysroot:-no}" >&6; }
7519
7520
7521
7522
7523
7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7525printf %s "checking for a working dd... " >&6; }
7526if test ${ac_cv_path_lt_DD+y}
7527then :
7528  printf %s "(cached) " >&6
7529else $as_nop
7530  printf 0123456789abcdef0123456789abcdef >conftest.i
7531cat conftest.i conftest.i >conftest2.i
7532: ${lt_DD:=$DD}
7533if test -z "$lt_DD"; then
7534  ac_path_lt_DD_found=false
7535  # Loop through the user's path and test for each of PROGNAME-LIST
7536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  case $as_dir in #(((
7541    '') as_dir=./ ;;
7542    */) ;;
7543    *) as_dir=$as_dir/ ;;
7544  esac
7545    for ac_prog in dd
7546   do
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7549      as_fn_executable_p "$ac_path_lt_DD" || continue
7550if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7551  cmp -s conftest.i conftest.out \
7552  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7553fi
7554      $ac_path_lt_DD_found && break 3
7555    done
7556  done
7557  done
7558IFS=$as_save_IFS
7559  if test -z "$ac_cv_path_lt_DD"; then
7560    :
7561  fi
7562else
7563  ac_cv_path_lt_DD=$lt_DD
7564fi
7565
7566rm -f conftest.i conftest2.i conftest.out
7567fi
7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7569printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7570
7571
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7573printf %s "checking how to truncate binary pipes... " >&6; }
7574if test ${lt_cv_truncate_bin+y}
7575then :
7576  printf %s "(cached) " >&6
7577else $as_nop
7578  printf 0123456789abcdef0123456789abcdef >conftest.i
7579cat conftest.i conftest.i >conftest2.i
7580lt_cv_truncate_bin=
7581if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7582  cmp -s conftest.i conftest.out \
7583  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7584fi
7585rm -f conftest.i conftest2.i conftest.out
7586test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7587fi
7588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7589printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7590
7591
7592
7593
7594
7595
7596
7597# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7598func_cc_basename ()
7599{
7600    for cc_temp in $*""; do
7601      case $cc_temp in
7602        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7603        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7604        \-*) ;;
7605        *) break;;
7606      esac
7607    done
7608    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7609}
7610
7611# Check whether --enable-libtool-lock was given.
7612if test ${enable_libtool_lock+y}
7613then :
7614  enableval=$enable_libtool_lock;
7615fi
7616
7617test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7618
7619# Some flags need to be propagated to the compiler or linker for good
7620# libtool support.
7621case $host in
7622ia64-*-hpux*)
7623  # Find out what ABI is being produced by ac_compile, and set mode
7624  # options accordingly.
7625  echo 'int i;' > conftest.$ac_ext
7626  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7627  (eval $ac_compile) 2>&5
7628  ac_status=$?
7629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630  test $ac_status = 0; }; then
7631    case `$FILECMD conftest.$ac_objext` in
7632      *ELF-32*)
7633	HPUX_IA64_MODE=32
7634	;;
7635      *ELF-64*)
7636	HPUX_IA64_MODE=64
7637	;;
7638    esac
7639  fi
7640  rm -rf conftest*
7641  ;;
7642*-*-irix6*)
7643  # Find out what ABI is being produced by ac_compile, and set linker
7644  # options accordingly.
7645  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7646  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647  (eval $ac_compile) 2>&5
7648  ac_status=$?
7649  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650  test $ac_status = 0; }; then
7651    if test yes = "$lt_cv_prog_gnu_ld"; then
7652      case `$FILECMD conftest.$ac_objext` in
7653	*32-bit*)
7654	  LD="${LD-ld} -melf32bsmip"
7655	  ;;
7656	*N32*)
7657	  LD="${LD-ld} -melf32bmipn32"
7658	  ;;
7659	*64-bit*)
7660	  LD="${LD-ld} -melf64bmip"
7661	;;
7662      esac
7663    else
7664      case `$FILECMD conftest.$ac_objext` in
7665	*32-bit*)
7666	  LD="${LD-ld} -32"
7667	  ;;
7668	*N32*)
7669	  LD="${LD-ld} -n32"
7670	  ;;
7671	*64-bit*)
7672	  LD="${LD-ld} -64"
7673	  ;;
7674      esac
7675    fi
7676  fi
7677  rm -rf conftest*
7678  ;;
7679
7680mips64*-*linux*)
7681  # Find out what ABI is being produced by ac_compile, and set linker
7682  # options accordingly.
7683  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685  (eval $ac_compile) 2>&5
7686  ac_status=$?
7687  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688  test $ac_status = 0; }; then
7689    emul=elf
7690    case `$FILECMD conftest.$ac_objext` in
7691      *32-bit*)
7692	emul="${emul}32"
7693	;;
7694      *64-bit*)
7695	emul="${emul}64"
7696	;;
7697    esac
7698    case `$FILECMD conftest.$ac_objext` in
7699      *MSB*)
7700	emul="${emul}btsmip"
7701	;;
7702      *LSB*)
7703	emul="${emul}ltsmip"
7704	;;
7705    esac
7706    case `$FILECMD conftest.$ac_objext` in
7707      *N32*)
7708	emul="${emul}n32"
7709	;;
7710    esac
7711    LD="${LD-ld} -m $emul"
7712  fi
7713  rm -rf conftest*
7714  ;;
7715
7716x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7717s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7718  # Find out what ABI is being produced by ac_compile, and set linker
7719  # options accordingly.  Note that the listed cases only cover the
7720  # situations where additional linker options are needed (such as when
7721  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7722  # vice versa); the common cases where no linker options are needed do
7723  # not appear in the list.
7724  echo 'int i;' > conftest.$ac_ext
7725  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726  (eval $ac_compile) 2>&5
7727  ac_status=$?
7728  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729  test $ac_status = 0; }; then
7730    case `$FILECMD conftest.o` in
7731      *32-bit*)
7732	case $host in
7733	  x86_64-*kfreebsd*-gnu)
7734	    LD="${LD-ld} -m elf_i386_fbsd"
7735	    ;;
7736	  x86_64-*linux*)
7737	    case `$FILECMD conftest.o` in
7738	      *x86-64*)
7739		LD="${LD-ld} -m elf32_x86_64"
7740		;;
7741	      *)
7742		LD="${LD-ld} -m elf_i386"
7743		;;
7744	    esac
7745	    ;;
7746	  powerpc64le-*linux*)
7747	    LD="${LD-ld} -m elf32lppclinux"
7748	    ;;
7749	  powerpc64-*linux*)
7750	    LD="${LD-ld} -m elf32ppclinux"
7751	    ;;
7752	  s390x-*linux*)
7753	    LD="${LD-ld} -m elf_s390"
7754	    ;;
7755	  sparc64-*linux*)
7756	    LD="${LD-ld} -m elf32_sparc"
7757	    ;;
7758	esac
7759	;;
7760      *64-bit*)
7761	case $host in
7762	  x86_64-*kfreebsd*-gnu)
7763	    LD="${LD-ld} -m elf_x86_64_fbsd"
7764	    ;;
7765	  x86_64-*linux*)
7766	    LD="${LD-ld} -m elf_x86_64"
7767	    ;;
7768	  powerpcle-*linux*)
7769	    LD="${LD-ld} -m elf64lppc"
7770	    ;;
7771	  powerpc-*linux*)
7772	    LD="${LD-ld} -m elf64ppc"
7773	    ;;
7774	  s390*-*linux*|s390*-*tpf*)
7775	    LD="${LD-ld} -m elf64_s390"
7776	    ;;
7777	  sparc*-*linux*)
7778	    LD="${LD-ld} -m elf64_sparc"
7779	    ;;
7780	esac
7781	;;
7782    esac
7783  fi
7784  rm -rf conftest*
7785  ;;
7786
7787*-*-sco3.2v5*)
7788  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7789  SAVE_CFLAGS=$CFLAGS
7790  CFLAGS="$CFLAGS -belf"
7791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7792printf %s "checking whether the C compiler needs -belf... " >&6; }
7793if test ${lt_cv_cc_needs_belf+y}
7794then :
7795  printf %s "(cached) " >&6
7796else $as_nop
7797  ac_ext=c
7798ac_cpp='$CPP $CPPFLAGS'
7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802
7803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804/* end confdefs.h.  */
7805
7806int
7807main (void)
7808{
7809
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_link "$LINENO"
7815then :
7816  lt_cv_cc_needs_belf=yes
7817else $as_nop
7818  lt_cv_cc_needs_belf=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.beam \
7821    conftest$ac_exeext conftest.$ac_ext
7822     ac_ext=c
7823ac_cpp='$CPP $CPPFLAGS'
7824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827
7828fi
7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7830printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7831  if test yes != "$lt_cv_cc_needs_belf"; then
7832    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7833    CFLAGS=$SAVE_CFLAGS
7834  fi
7835  ;;
7836*-*solaris*)
7837  # Find out what ABI is being produced by ac_compile, and set linker
7838  # options accordingly.
7839  echo 'int i;' > conftest.$ac_ext
7840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7841  (eval $ac_compile) 2>&5
7842  ac_status=$?
7843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844  test $ac_status = 0; }; then
7845    case `$FILECMD conftest.o` in
7846    *64-bit*)
7847      case $lt_cv_prog_gnu_ld in
7848      yes*)
7849        case $host in
7850        i?86-*-solaris*|x86_64-*-solaris*)
7851          LD="${LD-ld} -m elf_x86_64"
7852          ;;
7853        sparc*-*-solaris*)
7854          LD="${LD-ld} -m elf64_sparc"
7855          ;;
7856        esac
7857        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7858        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7859          LD=${LD-ld}_sol2
7860        fi
7861        ;;
7862      *)
7863	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7864	  LD="${LD-ld} -64"
7865	fi
7866	;;
7867      esac
7868      ;;
7869    esac
7870  fi
7871  rm -rf conftest*
7872  ;;
7873esac
7874
7875need_locks=$enable_libtool_lock
7876
7877if test -n "$ac_tool_prefix"; then
7878  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7879set dummy ${ac_tool_prefix}mt; ac_word=$2
7880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881printf %s "checking for $ac_word... " >&6; }
7882if test ${ac_cv_prog_MANIFEST_TOOL+y}
7883then :
7884  printf %s "(cached) " >&6
7885else $as_nop
7886  if test -n "$MANIFEST_TOOL"; then
7887  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  case $as_dir in #(((
7894    '') as_dir=./ ;;
7895    */) ;;
7896    *) as_dir=$as_dir/ ;;
7897  esac
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7901    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7911if test -n "$MANIFEST_TOOL"; then
7912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7913printf "%s\n" "$MANIFEST_TOOL" >&6; }
7914else
7915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916printf "%s\n" "no" >&6; }
7917fi
7918
7919
7920fi
7921if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7922  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7923  # Extract the first word of "mt", so it can be a program name with args.
7924set dummy mt; ac_word=$2
7925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926printf %s "checking for $ac_word... " >&6; }
7927if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7928then :
7929  printf %s "(cached) " >&6
7930else $as_nop
7931  if test -n "$ac_ct_MANIFEST_TOOL"; then
7932  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  case $as_dir in #(((
7939    '') as_dir=./ ;;
7940    */) ;;
7941    *) as_dir=$as_dir/ ;;
7942  esac
7943    for ac_exec_ext in '' $ac_executable_extensions; do
7944  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7945    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7947    break 2
7948  fi
7949done
7950  done
7951IFS=$as_save_IFS
7952
7953fi
7954fi
7955ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7956if test -n "$ac_ct_MANIFEST_TOOL"; then
7957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7958printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7959else
7960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961printf "%s\n" "no" >&6; }
7962fi
7963
7964  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7965    MANIFEST_TOOL=":"
7966  else
7967    case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7974  fi
7975else
7976  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7977fi
7978
7979test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7981printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7982if test ${lt_cv_path_mainfest_tool+y}
7983then :
7984  printf %s "(cached) " >&6
7985else $as_nop
7986  lt_cv_path_mainfest_tool=no
7987  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7988  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7989  cat conftest.err >&5
7990  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7991    lt_cv_path_mainfest_tool=yes
7992  fi
7993  rm -f conftest*
7994fi
7995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7996printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7997if test yes != "$lt_cv_path_mainfest_tool"; then
7998  MANIFEST_TOOL=:
7999fi
8000
8001
8002
8003
8004
8005
8006  case $host_os in
8007    rhapsody* | darwin*)
8008    if test -n "$ac_tool_prefix"; then
8009  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8010set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012printf %s "checking for $ac_word... " >&6; }
8013if test ${ac_cv_prog_DSYMUTIL+y}
8014then :
8015  printf %s "(cached) " >&6
8016else $as_nop
8017  if test -n "$DSYMUTIL"; then
8018  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023  IFS=$as_save_IFS
8024  case $as_dir in #(((
8025    '') as_dir=./ ;;
8026    */) ;;
8027    *) as_dir=$as_dir/ ;;
8028  esac
8029    for ac_exec_ext in '' $ac_executable_extensions; do
8030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033    break 2
8034  fi
8035done
8036  done
8037IFS=$as_save_IFS
8038
8039fi
8040fi
8041DSYMUTIL=$ac_cv_prog_DSYMUTIL
8042if test -n "$DSYMUTIL"; then
8043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8044printf "%s\n" "$DSYMUTIL" >&6; }
8045else
8046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047printf "%s\n" "no" >&6; }
8048fi
8049
8050
8051fi
8052if test -z "$ac_cv_prog_DSYMUTIL"; then
8053  ac_ct_DSYMUTIL=$DSYMUTIL
8054  # Extract the first word of "dsymutil", so it can be a program name with args.
8055set dummy dsymutil; ac_word=$2
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057printf %s "checking for $ac_word... " >&6; }
8058if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8059then :
8060  printf %s "(cached) " >&6
8061else $as_nop
8062  if test -n "$ac_ct_DSYMUTIL"; then
8063  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8064else
8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068  IFS=$as_save_IFS
8069  case $as_dir in #(((
8070    '') as_dir=./ ;;
8071    */) ;;
8072    *) as_dir=$as_dir/ ;;
8073  esac
8074    for ac_exec_ext in '' $ac_executable_extensions; do
8075  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8077    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081  done
8082IFS=$as_save_IFS
8083
8084fi
8085fi
8086ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8087if test -n "$ac_ct_DSYMUTIL"; then
8088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8089printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8090else
8091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092printf "%s\n" "no" >&6; }
8093fi
8094
8095  if test "x$ac_ct_DSYMUTIL" = x; then
8096    DSYMUTIL=":"
8097  else
8098    case $cross_compiling:$ac_tool_warned in
8099yes:)
8100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102ac_tool_warned=yes ;;
8103esac
8104    DSYMUTIL=$ac_ct_DSYMUTIL
8105  fi
8106else
8107  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8108fi
8109
8110    if test -n "$ac_tool_prefix"; then
8111  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8112set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114printf %s "checking for $ac_word... " >&6; }
8115if test ${ac_cv_prog_NMEDIT+y}
8116then :
8117  printf %s "(cached) " >&6
8118else $as_nop
8119  if test -n "$NMEDIT"; then
8120  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  case $as_dir in #(((
8127    '') as_dir=./ ;;
8128    */) ;;
8129    *) as_dir=$as_dir/ ;;
8130  esac
8131    for ac_exec_ext in '' $ac_executable_extensions; do
8132  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135    break 2
8136  fi
8137done
8138  done
8139IFS=$as_save_IFS
8140
8141fi
8142fi
8143NMEDIT=$ac_cv_prog_NMEDIT
8144if test -n "$NMEDIT"; then
8145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8146printf "%s\n" "$NMEDIT" >&6; }
8147else
8148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149printf "%s\n" "no" >&6; }
8150fi
8151
8152
8153fi
8154if test -z "$ac_cv_prog_NMEDIT"; then
8155  ac_ct_NMEDIT=$NMEDIT
8156  # Extract the first word of "nmedit", so it can be a program name with args.
8157set dummy nmedit; ac_word=$2
8158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159printf %s "checking for $ac_word... " >&6; }
8160if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8161then :
8162  printf %s "(cached) " >&6
8163else $as_nop
8164  if test -n "$ac_ct_NMEDIT"; then
8165  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170  IFS=$as_save_IFS
8171  case $as_dir in #(((
8172    '') as_dir=./ ;;
8173    */) ;;
8174    *) as_dir=$as_dir/ ;;
8175  esac
8176    for ac_exec_ext in '' $ac_executable_extensions; do
8177  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8179    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180    break 2
8181  fi
8182done
8183  done
8184IFS=$as_save_IFS
8185
8186fi
8187fi
8188ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189if test -n "$ac_ct_NMEDIT"; then
8190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8192else
8193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194printf "%s\n" "no" >&6; }
8195fi
8196
8197  if test "x$ac_ct_NMEDIT" = x; then
8198    NMEDIT=":"
8199  else
8200    case $cross_compiling:$ac_tool_warned in
8201yes:)
8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204ac_tool_warned=yes ;;
8205esac
8206    NMEDIT=$ac_ct_NMEDIT
8207  fi
8208else
8209  NMEDIT="$ac_cv_prog_NMEDIT"
8210fi
8211
8212    if test -n "$ac_tool_prefix"; then
8213  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214set dummy ${ac_tool_prefix}lipo; ac_word=$2
8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216printf %s "checking for $ac_word... " >&6; }
8217if test ${ac_cv_prog_LIPO+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  if test -n "$LIPO"; then
8222  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8223else
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227  IFS=$as_save_IFS
8228  case $as_dir in #(((
8229    '') as_dir=./ ;;
8230    */) ;;
8231    *) as_dir=$as_dir/ ;;
8232  esac
8233    for ac_exec_ext in '' $ac_executable_extensions; do
8234  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8236    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237    break 2
8238  fi
8239done
8240  done
8241IFS=$as_save_IFS
8242
8243fi
8244fi
8245LIPO=$ac_cv_prog_LIPO
8246if test -n "$LIPO"; then
8247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8248printf "%s\n" "$LIPO" >&6; }
8249else
8250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251printf "%s\n" "no" >&6; }
8252fi
8253
8254
8255fi
8256if test -z "$ac_cv_prog_LIPO"; then
8257  ac_ct_LIPO=$LIPO
8258  # Extract the first word of "lipo", so it can be a program name with args.
8259set dummy lipo; ac_word=$2
8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261printf %s "checking for $ac_word... " >&6; }
8262if test ${ac_cv_prog_ac_ct_LIPO+y}
8263then :
8264  printf %s "(cached) " >&6
8265else $as_nop
8266  if test -n "$ac_ct_LIPO"; then
8267  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  case $as_dir in #(((
8274    '') as_dir=./ ;;
8275    */) ;;
8276    *) as_dir=$as_dir/ ;;
8277  esac
8278    for ac_exec_ext in '' $ac_executable_extensions; do
8279  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280    ac_cv_prog_ac_ct_LIPO="lipo"
8281    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282    break 2
8283  fi
8284done
8285  done
8286IFS=$as_save_IFS
8287
8288fi
8289fi
8290ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8291if test -n "$ac_ct_LIPO"; then
8292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8293printf "%s\n" "$ac_ct_LIPO" >&6; }
8294else
8295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296printf "%s\n" "no" >&6; }
8297fi
8298
8299  if test "x$ac_ct_LIPO" = x; then
8300    LIPO=":"
8301  else
8302    case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308    LIPO=$ac_ct_LIPO
8309  fi
8310else
8311  LIPO="$ac_cv_prog_LIPO"
8312fi
8313
8314    if test -n "$ac_tool_prefix"; then
8315  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}otool; ac_word=$2
8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318printf %s "checking for $ac_word... " >&6; }
8319if test ${ac_cv_prog_OTOOL+y}
8320then :
8321  printf %s "(cached) " >&6
8322else $as_nop
8323  if test -n "$OTOOL"; then
8324  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329  IFS=$as_save_IFS
8330  case $as_dir in #(((
8331    '') as_dir=./ ;;
8332    */) ;;
8333    *) as_dir=$as_dir/ ;;
8334  esac
8335    for ac_exec_ext in '' $ac_executable_extensions; do
8336  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8337    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8338    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8339    break 2
8340  fi
8341done
8342  done
8343IFS=$as_save_IFS
8344
8345fi
8346fi
8347OTOOL=$ac_cv_prog_OTOOL
8348if test -n "$OTOOL"; then
8349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8350printf "%s\n" "$OTOOL" >&6; }
8351else
8352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353printf "%s\n" "no" >&6; }
8354fi
8355
8356
8357fi
8358if test -z "$ac_cv_prog_OTOOL"; then
8359  ac_ct_OTOOL=$OTOOL
8360  # Extract the first word of "otool", so it can be a program name with args.
8361set dummy otool; ac_word=$2
8362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363printf %s "checking for $ac_word... " >&6; }
8364if test ${ac_cv_prog_ac_ct_OTOOL+y}
8365then :
8366  printf %s "(cached) " >&6
8367else $as_nop
8368  if test -n "$ac_ct_OTOOL"; then
8369  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8370else
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374  IFS=$as_save_IFS
8375  case $as_dir in #(((
8376    '') as_dir=./ ;;
8377    */) ;;
8378    *) as_dir=$as_dir/ ;;
8379  esac
8380    for ac_exec_ext in '' $ac_executable_extensions; do
8381  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382    ac_cv_prog_ac_ct_OTOOL="otool"
8383    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384    break 2
8385  fi
8386done
8387  done
8388IFS=$as_save_IFS
8389
8390fi
8391fi
8392ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8393if test -n "$ac_ct_OTOOL"; then
8394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8395printf "%s\n" "$ac_ct_OTOOL" >&6; }
8396else
8397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398printf "%s\n" "no" >&6; }
8399fi
8400
8401  if test "x$ac_ct_OTOOL" = x; then
8402    OTOOL=":"
8403  else
8404    case $cross_compiling:$ac_tool_warned in
8405yes:)
8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408ac_tool_warned=yes ;;
8409esac
8410    OTOOL=$ac_ct_OTOOL
8411  fi
8412else
8413  OTOOL="$ac_cv_prog_OTOOL"
8414fi
8415
8416    if test -n "$ac_tool_prefix"; then
8417  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8418set dummy ${ac_tool_prefix}otool64; ac_word=$2
8419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420printf %s "checking for $ac_word... " >&6; }
8421if test ${ac_cv_prog_OTOOL64+y}
8422then :
8423  printf %s "(cached) " >&6
8424else $as_nop
8425  if test -n "$OTOOL64"; then
8426  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8427else
8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431  IFS=$as_save_IFS
8432  case $as_dir in #(((
8433    '') as_dir=./ ;;
8434    */) ;;
8435    *) as_dir=$as_dir/ ;;
8436  esac
8437    for ac_exec_ext in '' $ac_executable_extensions; do
8438  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8439    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8440    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8441    break 2
8442  fi
8443done
8444  done
8445IFS=$as_save_IFS
8446
8447fi
8448fi
8449OTOOL64=$ac_cv_prog_OTOOL64
8450if test -n "$OTOOL64"; then
8451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8452printf "%s\n" "$OTOOL64" >&6; }
8453else
8454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455printf "%s\n" "no" >&6; }
8456fi
8457
8458
8459fi
8460if test -z "$ac_cv_prog_OTOOL64"; then
8461  ac_ct_OTOOL64=$OTOOL64
8462  # Extract the first word of "otool64", so it can be a program name with args.
8463set dummy otool64; ac_word=$2
8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465printf %s "checking for $ac_word... " >&6; }
8466if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8467then :
8468  printf %s "(cached) " >&6
8469else $as_nop
8470  if test -n "$ac_ct_OTOOL64"; then
8471  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8472else
8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476  IFS=$as_save_IFS
8477  case $as_dir in #(((
8478    '') as_dir=./ ;;
8479    */) ;;
8480    *) as_dir=$as_dir/ ;;
8481  esac
8482    for ac_exec_ext in '' $ac_executable_extensions; do
8483  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8484    ac_cv_prog_ac_ct_OTOOL64="otool64"
8485    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8486    break 2
8487  fi
8488done
8489  done
8490IFS=$as_save_IFS
8491
8492fi
8493fi
8494ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8495if test -n "$ac_ct_OTOOL64"; then
8496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8497printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8498else
8499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500printf "%s\n" "no" >&6; }
8501fi
8502
8503  if test "x$ac_ct_OTOOL64" = x; then
8504    OTOOL64=":"
8505  else
8506    case $cross_compiling:$ac_tool_warned in
8507yes:)
8508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510ac_tool_warned=yes ;;
8511esac
8512    OTOOL64=$ac_ct_OTOOL64
8513  fi
8514else
8515  OTOOL64="$ac_cv_prog_OTOOL64"
8516fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8545printf %s "checking for -single_module linker flag... " >&6; }
8546if test ${lt_cv_apple_cc_single_mod+y}
8547then :
8548  printf %s "(cached) " >&6
8549else $as_nop
8550  lt_cv_apple_cc_single_mod=no
8551      if test -z "$LT_MULTI_MODULE"; then
8552	# By default we will add the -single_module flag. You can override
8553	# by either setting the environment variable LT_MULTI_MODULE
8554	# non-empty at configure time, or by adding -multi_module to the
8555	# link flags.
8556	rm -rf libconftest.dylib*
8557	echo "int foo(void){return 1;}" > conftest.c
8558	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8559-dynamiclib -Wl,-single_module conftest.c" >&5
8560	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8561	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8562        _lt_result=$?
8563	# If there is a non-empty error log, and "single_module"
8564	# appears in it, assume the flag caused a linker warning
8565        if test -s conftest.err && $GREP single_module conftest.err; then
8566	  cat conftest.err >&5
8567	# Otherwise, if the output was created with a 0 exit code from
8568	# the compiler, it worked.
8569	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8570	  lt_cv_apple_cc_single_mod=yes
8571	else
8572	  cat conftest.err >&5
8573	fi
8574	rm -rf libconftest.dylib*
8575	rm -f conftest.*
8576      fi
8577fi
8578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8579printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8580
8581    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8582printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8583if test ${lt_cv_ld_exported_symbols_list+y}
8584then :
8585  printf %s "(cached) " >&6
8586else $as_nop
8587  lt_cv_ld_exported_symbols_list=no
8588      save_LDFLAGS=$LDFLAGS
8589      echo "_main" > conftest.sym
8590      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592/* end confdefs.h.  */
8593
8594int
8595main (void)
8596{
8597
8598  ;
8599  return 0;
8600}
8601_ACEOF
8602if ac_fn_c_try_link "$LINENO"
8603then :
8604  lt_cv_ld_exported_symbols_list=yes
8605else $as_nop
8606  lt_cv_ld_exported_symbols_list=no
8607fi
8608rm -f core conftest.err conftest.$ac_objext conftest.beam \
8609    conftest$ac_exeext conftest.$ac_ext
8610	LDFLAGS=$save_LDFLAGS
8611
8612fi
8613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8614printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8615
8616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8617printf %s "checking for -force_load linker flag... " >&6; }
8618if test ${lt_cv_ld_force_load+y}
8619then :
8620  printf %s "(cached) " >&6
8621else $as_nop
8622  lt_cv_ld_force_load=no
8623      cat > conftest.c << _LT_EOF
8624int forced_loaded() { return 2;}
8625_LT_EOF
8626      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8627      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8628      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8629      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8630      echo "$RANLIB libconftest.a" >&5
8631      $RANLIB libconftest.a 2>&5
8632      cat > conftest.c << _LT_EOF
8633int main() { return 0;}
8634_LT_EOF
8635      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8636      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8637      _lt_result=$?
8638      if test -s conftest.err && $GREP force_load conftest.err; then
8639	cat conftest.err >&5
8640      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8641	lt_cv_ld_force_load=yes
8642      else
8643	cat conftest.err >&5
8644      fi
8645        rm -f conftest.err libconftest.a conftest conftest.c
8646        rm -rf conftest.dSYM
8647
8648fi
8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8650printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8651    case $host_os in
8652    rhapsody* | darwin1.[012])
8653      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8654    darwin1.*)
8655      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8656    darwin*)
8657      case $MACOSX_DEPLOYMENT_TARGET,$host in
8658        10.[012],*|,*powerpc*-darwin[5-8]*)
8659          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8660        *)
8661          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8662      esac
8663    ;;
8664  esac
8665    if test yes = "$lt_cv_apple_cc_single_mod"; then
8666      _lt_dar_single_mod='$single_module'
8667    fi
8668    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8669      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8670    else
8671      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8672    fi
8673    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8674      _lt_dsymutil='~$DSYMUTIL $lib || :'
8675    else
8676      _lt_dsymutil=
8677    fi
8678    ;;
8679  esac
8680
8681# func_munge_path_list VARIABLE PATH
8682# -----------------------------------
8683# VARIABLE is name of variable containing _space_ separated list of
8684# directories to be munged by the contents of PATH, which is string
8685# having a format:
8686# "DIR[:DIR]:"
8687#       string "DIR[ DIR]" will be prepended to VARIABLE
8688# ":DIR[:DIR]"
8689#       string "DIR[ DIR]" will be appended to VARIABLE
8690# "DIRP[:DIRP]::[DIRA:]DIRA"
8691#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8692#       "DIRA[ DIRA]" will be appended to VARIABLE
8693# "DIR[:DIR]"
8694#       VARIABLE will be replaced by "DIR[ DIR]"
8695func_munge_path_list ()
8696{
8697    case x$2 in
8698    x)
8699        ;;
8700    *:)
8701        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8702        ;;
8703    x:*)
8704        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8705        ;;
8706    *::*)
8707        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8708        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8709        ;;
8710    *)
8711        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8712        ;;
8713    esac
8714}
8715
8716ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8717"
8718if test "x$ac_cv_header_dlfcn_h" = xyes
8719then :
8720  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8721
8722fi
8723
8724
8725
8726
8727
8728# Set options
8729
8730
8731
8732        enable_dlopen=no
8733
8734
8735  enable_win32_dll=no
8736
8737
8738            # Check whether --enable-shared was given.
8739if test ${enable_shared+y}
8740then :
8741  enableval=$enable_shared; p=${PACKAGE-default}
8742    case $enableval in
8743    yes) enable_shared=yes ;;
8744    no) enable_shared=no ;;
8745    *)
8746      enable_shared=no
8747      # Look at the argument we got.  We use all the common list separators.
8748      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8749      for pkg in $enableval; do
8750	IFS=$lt_save_ifs
8751	if test "X$pkg" = "X$p"; then
8752	  enable_shared=yes
8753	fi
8754      done
8755      IFS=$lt_save_ifs
8756      ;;
8757    esac
8758else $as_nop
8759  enable_shared=yes
8760fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770  # Check whether --enable-static was given.
8771if test ${enable_static+y}
8772then :
8773  enableval=$enable_static; p=${PACKAGE-default}
8774    case $enableval in
8775    yes) enable_static=yes ;;
8776    no) enable_static=no ;;
8777    *)
8778     enable_static=no
8779      # Look at the argument we got.  We use all the common list separators.
8780      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8781      for pkg in $enableval; do
8782	IFS=$lt_save_ifs
8783	if test "X$pkg" = "X$p"; then
8784	  enable_static=yes
8785	fi
8786      done
8787      IFS=$lt_save_ifs
8788      ;;
8789    esac
8790else $as_nop
8791  enable_static=yes
8792fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803# Check whether --with-pic was given.
8804if test ${with_pic+y}
8805then :
8806  withval=$with_pic; lt_p=${PACKAGE-default}
8807    case $withval in
8808    yes|no) pic_mode=$withval ;;
8809    *)
8810      pic_mode=default
8811      # Look at the argument we got.  We use all the common list separators.
8812      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8813      for lt_pkg in $withval; do
8814	IFS=$lt_save_ifs
8815	if test "X$lt_pkg" = "X$lt_p"; then
8816	  pic_mode=yes
8817	fi
8818      done
8819      IFS=$lt_save_ifs
8820      ;;
8821    esac
8822else $as_nop
8823  pic_mode=default
8824fi
8825
8826
8827
8828
8829
8830
8831
8832
8833  # Check whether --enable-fast-install was given.
8834if test ${enable_fast_install+y}
8835then :
8836  enableval=$enable_fast_install; p=${PACKAGE-default}
8837    case $enableval in
8838    yes) enable_fast_install=yes ;;
8839    no) enable_fast_install=no ;;
8840    *)
8841      enable_fast_install=no
8842      # Look at the argument we got.  We use all the common list separators.
8843      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8844      for pkg in $enableval; do
8845	IFS=$lt_save_ifs
8846	if test "X$pkg" = "X$p"; then
8847	  enable_fast_install=yes
8848	fi
8849      done
8850      IFS=$lt_save_ifs
8851      ;;
8852    esac
8853else $as_nop
8854  enable_fast_install=yes
8855fi
8856
8857
8858
8859
8860
8861
8862
8863
8864  shared_archive_member_spec=
8865case $host,$enable_shared in
8866power*-*-aix[5-9]*,yes)
8867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8868printf %s "checking which variant of shared library versioning to provide... " >&6; }
8869
8870# Check whether --with-aix-soname was given.
8871if test ${with_aix_soname+y}
8872then :
8873  withval=$with_aix_soname; case $withval in
8874    aix|svr4|both)
8875      ;;
8876    *)
8877      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8878      ;;
8879    esac
8880    lt_cv_with_aix_soname=$with_aix_soname
8881else $as_nop
8882  if test ${lt_cv_with_aix_soname+y}
8883then :
8884  printf %s "(cached) " >&6
8885else $as_nop
8886  lt_cv_with_aix_soname=aix
8887fi
8888
8889    with_aix_soname=$lt_cv_with_aix_soname
8890fi
8891
8892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8893printf "%s\n" "$with_aix_soname" >&6; }
8894  if test aix != "$with_aix_soname"; then
8895    # For the AIX way of multilib, we name the shared archive member
8896    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8897    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8898    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8899    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8900    if test 64 = "${OBJECT_MODE-32}"; then
8901      shared_archive_member_spec=shr_64
8902    else
8903      shared_archive_member_spec=shr
8904    fi
8905  fi
8906  ;;
8907*)
8908  with_aix_soname=aix
8909  ;;
8910esac
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921# This can be used to rebuild libtool when needed
8922LIBTOOL_DEPS=$ltmain
8923
8924# Always use our own libtool.
8925LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956test -z "$LN_S" && LN_S="ln -s"
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971if test -n "${ZSH_VERSION+set}"; then
8972   setopt NO_GLOB_SUBST
8973fi
8974
8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8976printf %s "checking for objdir... " >&6; }
8977if test ${lt_cv_objdir+y}
8978then :
8979  printf %s "(cached) " >&6
8980else $as_nop
8981  rm -f .libs 2>/dev/null
8982mkdir .libs 2>/dev/null
8983if test -d .libs; then
8984  lt_cv_objdir=.libs
8985else
8986  # MS-DOS does not allow filenames that begin with a dot.
8987  lt_cv_objdir=_libs
8988fi
8989rmdir .libs 2>/dev/null
8990fi
8991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8992printf "%s\n" "$lt_cv_objdir" >&6; }
8993objdir=$lt_cv_objdir
8994
8995
8996
8997
8998
8999printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9000
9001
9002
9003
9004case $host_os in
9005aix3*)
9006  # AIX sometimes has problems with the GCC collect2 program.  For some
9007  # reason, if we set the COLLECT_NAMES environment variable, the problems
9008  # vanish in a puff of smoke.
9009  if test set != "${COLLECT_NAMES+set}"; then
9010    COLLECT_NAMES=
9011    export COLLECT_NAMES
9012  fi
9013  ;;
9014esac
9015
9016# Global variables:
9017ofile=libtool
9018can_build_shared=yes
9019
9020# All known linkers require a '.a' archive for static linking (except MSVC and
9021# ICC, which need '.lib').
9022libext=a
9023
9024with_gnu_ld=$lt_cv_prog_gnu_ld
9025
9026old_CC=$CC
9027old_CFLAGS=$CFLAGS
9028
9029# Set sane defaults for various variables
9030test -z "$CC" && CC=cc
9031test -z "$LTCC" && LTCC=$CC
9032test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9033test -z "$LD" && LD=ld
9034test -z "$ac_objext" && ac_objext=o
9035
9036func_cc_basename $compiler
9037cc_basename=$func_cc_basename_result
9038
9039
9040# Only perform the check for file, if the check method requires it
9041test -z "$MAGIC_CMD" && MAGIC_CMD=file
9042case $deplibs_check_method in
9043file_magic*)
9044  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9045    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9046printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9047if test ${lt_cv_path_MAGIC_CMD+y}
9048then :
9049  printf %s "(cached) " >&6
9050else $as_nop
9051  case $MAGIC_CMD in
9052[\\/*] |  ?:[\\/]*)
9053  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9054  ;;
9055*)
9056  lt_save_MAGIC_CMD=$MAGIC_CMD
9057  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9058  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9059  for ac_dir in $ac_dummy; do
9060    IFS=$lt_save_ifs
9061    test -z "$ac_dir" && ac_dir=.
9062    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9063      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9064      if test -n "$file_magic_test_file"; then
9065	case $deplibs_check_method in
9066	"file_magic "*)
9067	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9068	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9069	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9070	    $EGREP "$file_magic_regex" > /dev/null; then
9071	    :
9072	  else
9073	    cat <<_LT_EOF 1>&2
9074
9075*** Warning: the command libtool uses to detect shared libraries,
9076*** $file_magic_cmd, produces output that libtool cannot recognize.
9077*** The result is that libtool may fail to recognize shared libraries
9078*** as such.  This will affect the creation of libtool libraries that
9079*** depend on shared libraries, but programs linked with such libtool
9080*** libraries will work regardless of this problem.  Nevertheless, you
9081*** may want to report the problem to your system manager and/or to
9082*** bug-libtool@gnu.org
9083
9084_LT_EOF
9085	  fi ;;
9086	esac
9087      fi
9088      break
9089    fi
9090  done
9091  IFS=$lt_save_ifs
9092  MAGIC_CMD=$lt_save_MAGIC_CMD
9093  ;;
9094esac
9095fi
9096
9097MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9098if test -n "$MAGIC_CMD"; then
9099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9100printf "%s\n" "$MAGIC_CMD" >&6; }
9101else
9102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103printf "%s\n" "no" >&6; }
9104fi
9105
9106
9107
9108
9109
9110if test -z "$lt_cv_path_MAGIC_CMD"; then
9111  if test -n "$ac_tool_prefix"; then
9112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9113printf %s "checking for file... " >&6; }
9114if test ${lt_cv_path_MAGIC_CMD+y}
9115then :
9116  printf %s "(cached) " >&6
9117else $as_nop
9118  case $MAGIC_CMD in
9119[\\/*] |  ?:[\\/]*)
9120  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9121  ;;
9122*)
9123  lt_save_MAGIC_CMD=$MAGIC_CMD
9124  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9125  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9126  for ac_dir in $ac_dummy; do
9127    IFS=$lt_save_ifs
9128    test -z "$ac_dir" && ac_dir=.
9129    if test -f "$ac_dir/file"; then
9130      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9131      if test -n "$file_magic_test_file"; then
9132	case $deplibs_check_method in
9133	"file_magic "*)
9134	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9135	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9136	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9137	    $EGREP "$file_magic_regex" > /dev/null; then
9138	    :
9139	  else
9140	    cat <<_LT_EOF 1>&2
9141
9142*** Warning: the command libtool uses to detect shared libraries,
9143*** $file_magic_cmd, produces output that libtool cannot recognize.
9144*** The result is that libtool may fail to recognize shared libraries
9145*** as such.  This will affect the creation of libtool libraries that
9146*** depend on shared libraries, but programs linked with such libtool
9147*** libraries will work regardless of this problem.  Nevertheless, you
9148*** may want to report the problem to your system manager and/or to
9149*** bug-libtool@gnu.org
9150
9151_LT_EOF
9152	  fi ;;
9153	esac
9154      fi
9155      break
9156    fi
9157  done
9158  IFS=$lt_save_ifs
9159  MAGIC_CMD=$lt_save_MAGIC_CMD
9160  ;;
9161esac
9162fi
9163
9164MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9165if test -n "$MAGIC_CMD"; then
9166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9167printf "%s\n" "$MAGIC_CMD" >&6; }
9168else
9169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170printf "%s\n" "no" >&6; }
9171fi
9172
9173
9174  else
9175    MAGIC_CMD=:
9176  fi
9177fi
9178
9179  fi
9180  ;;
9181esac
9182
9183# Use C for the default configuration in the libtool script
9184
9185lt_save_CC=$CC
9186ac_ext=c
9187ac_cpp='$CPP $CPPFLAGS'
9188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192
9193# Source file extension for C test sources.
9194ac_ext=c
9195
9196# Object file extension for compiled C test sources.
9197objext=o
9198objext=$objext
9199
9200# Code to be used in simple compile tests
9201lt_simple_compile_test_code="int some_variable = 0;"
9202
9203# Code to be used in simple link tests
9204lt_simple_link_test_code='int main(){return(0);}'
9205
9206
9207
9208
9209
9210
9211
9212# If no C compiler was specified, use CC.
9213LTCC=${LTCC-"$CC"}
9214
9215# If no C compiler flags were specified, use CFLAGS.
9216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9217
9218# Allow CC to be a program name with arguments.
9219compiler=$CC
9220
9221# Save the default compiler, since it gets overwritten when the other
9222# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9223compiler_DEFAULT=$CC
9224
9225# save warnings/boilerplate of simple test code
9226ac_outfile=conftest.$ac_objext
9227echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9228eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9229_lt_compiler_boilerplate=`cat conftest.err`
9230$RM conftest*
9231
9232ac_outfile=conftest.$ac_objext
9233echo "$lt_simple_link_test_code" >conftest.$ac_ext
9234eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9235_lt_linker_boilerplate=`cat conftest.err`
9236$RM -r conftest*
9237
9238
9239if test -n "$compiler"; then
9240
9241lt_prog_compiler_no_builtin_flag=
9242
9243if test yes = "$GCC"; then
9244  case $cc_basename in
9245  nvcc*)
9246    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9247  *)
9248    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9249  esac
9250
9251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9252printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9253if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9254then :
9255  printf %s "(cached) " >&6
9256else $as_nop
9257  lt_cv_prog_compiler_rtti_exceptions=no
9258   ac_outfile=conftest.$ac_objext
9259   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9261   # Insert the option either (1) after the last *FLAGS variable, or
9262   # (2) before a word containing "conftest.", or (3) at the end.
9263   # Note that $ac_compile itself does not contain backslashes and begins
9264   # with a dollar sign (not a hyphen), so the echo should work correctly.
9265   # The option is referenced via a variable to avoid confusing sed.
9266   lt_compile=`echo "$ac_compile" | $SED \
9267   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9269   -e 's:$: $lt_compiler_flag:'`
9270   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9271   (eval "$lt_compile" 2>conftest.err)
9272   ac_status=$?
9273   cat conftest.err >&5
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   if (exit $ac_status) && test -s "$ac_outfile"; then
9276     # The compiler can only warn and ignore the option if not recognized
9277     # So say no if there are warnings other than the usual output.
9278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9279     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9280     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9281       lt_cv_prog_compiler_rtti_exceptions=yes
9282     fi
9283   fi
9284   $RM conftest*
9285
9286fi
9287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9288printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9289
9290if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9291    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9292else
9293    :
9294fi
9295
9296fi
9297
9298
9299
9300
9301
9302
9303  lt_prog_compiler_wl=
9304lt_prog_compiler_pic=
9305lt_prog_compiler_static=
9306
9307
9308  if test yes = "$GCC"; then
9309    lt_prog_compiler_wl='-Wl,'
9310    lt_prog_compiler_static='-static'
9311
9312    case $host_os in
9313      aix*)
9314      # All AIX code is PIC.
9315      if test ia64 = "$host_cpu"; then
9316	# AIX 5 now supports IA64 processor
9317	lt_prog_compiler_static='-Bstatic'
9318      fi
9319      lt_prog_compiler_pic='-fPIC'
9320      ;;
9321
9322    amigaos*)
9323      case $host_cpu in
9324      powerpc)
9325            # see comment about AmigaOS4 .so support
9326            lt_prog_compiler_pic='-fPIC'
9327        ;;
9328      m68k)
9329            # FIXME: we need at least 68020 code to build shared libraries, but
9330            # adding the '-m68020' flag to GCC prevents building anything better,
9331            # like '-m68040'.
9332            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9333        ;;
9334      esac
9335      ;;
9336
9337    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9338      # PIC is the default for these OSes.
9339      ;;
9340
9341    mingw* | cygwin* | pw32* | os2* | cegcc*)
9342      # This hack is so that the source file can tell whether it is being
9343      # built for inclusion in a dll (and should export symbols for example).
9344      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9345      # (--disable-auto-import) libraries
9346      lt_prog_compiler_pic='-DDLL_EXPORT'
9347      case $host_os in
9348      os2*)
9349	lt_prog_compiler_static='$wl-static'
9350	;;
9351      esac
9352      ;;
9353
9354    darwin* | rhapsody*)
9355      # PIC is the default on this platform
9356      # Common symbols not allowed in MH_DYLIB files
9357      lt_prog_compiler_pic='-fno-common'
9358      ;;
9359
9360    haiku*)
9361      # PIC is the default for Haiku.
9362      # The "-static" flag exists, but is broken.
9363      lt_prog_compiler_static=
9364      ;;
9365
9366    hpux*)
9367      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9368      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9369      # sets the default TLS model and affects inlining.
9370      case $host_cpu in
9371      hppa*64*)
9372	# +Z the default
9373	;;
9374      *)
9375	lt_prog_compiler_pic='-fPIC'
9376	;;
9377      esac
9378      ;;
9379
9380    interix[3-9]*)
9381      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9382      # Instead, we relocate shared libraries at runtime.
9383      ;;
9384
9385    msdosdjgpp*)
9386      # Just because we use GCC doesn't mean we suddenly get shared libraries
9387      # on systems that don't support them.
9388      lt_prog_compiler_can_build_shared=no
9389      enable_shared=no
9390      ;;
9391
9392    *nto* | *qnx*)
9393      # QNX uses GNU C++, but need to define -shared option too, otherwise
9394      # it will coredump.
9395      lt_prog_compiler_pic='-fPIC -shared'
9396      ;;
9397
9398    sysv4*MP*)
9399      if test -d /usr/nec; then
9400	lt_prog_compiler_pic=-Kconform_pic
9401      fi
9402      ;;
9403
9404    *)
9405      lt_prog_compiler_pic='-fPIC'
9406      ;;
9407    esac
9408
9409    case $cc_basename in
9410    nvcc*) # Cuda Compiler Driver 2.2
9411      lt_prog_compiler_wl='-Xlinker '
9412      if test -n "$lt_prog_compiler_pic"; then
9413        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9414      fi
9415      ;;
9416    esac
9417  else
9418    # PORTME Check for flag to pass linker flags through the system compiler.
9419    case $host_os in
9420    aix*)
9421      lt_prog_compiler_wl='-Wl,'
9422      if test ia64 = "$host_cpu"; then
9423	# AIX 5 now supports IA64 processor
9424	lt_prog_compiler_static='-Bstatic'
9425      else
9426	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9427      fi
9428      ;;
9429
9430    darwin* | rhapsody*)
9431      # PIC is the default on this platform
9432      # Common symbols not allowed in MH_DYLIB files
9433      lt_prog_compiler_pic='-fno-common'
9434      case $cc_basename in
9435      nagfor*)
9436        # NAG Fortran compiler
9437        lt_prog_compiler_wl='-Wl,-Wl,,'
9438        lt_prog_compiler_pic='-PIC'
9439        lt_prog_compiler_static='-Bstatic'
9440        ;;
9441      esac
9442      ;;
9443
9444    mingw* | cygwin* | pw32* | os2* | cegcc*)
9445      # This hack is so that the source file can tell whether it is being
9446      # built for inclusion in a dll (and should export symbols for example).
9447      lt_prog_compiler_pic='-DDLL_EXPORT'
9448      case $host_os in
9449      os2*)
9450	lt_prog_compiler_static='$wl-static'
9451	;;
9452      esac
9453      ;;
9454
9455    hpux9* | hpux10* | hpux11*)
9456      lt_prog_compiler_wl='-Wl,'
9457      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9458      # not for PA HP-UX.
9459      case $host_cpu in
9460      hppa*64*|ia64*)
9461	# +Z the default
9462	;;
9463      *)
9464	lt_prog_compiler_pic='+Z'
9465	;;
9466      esac
9467      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9468      lt_prog_compiler_static='$wl-a ${wl}archive'
9469      ;;
9470
9471    irix5* | irix6* | nonstopux*)
9472      lt_prog_compiler_wl='-Wl,'
9473      # PIC (with -KPIC) is the default.
9474      lt_prog_compiler_static='-non_shared'
9475      ;;
9476
9477    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9478      case $cc_basename in
9479      # old Intel for x86_64, which still supported -KPIC.
9480      ecc*)
9481	lt_prog_compiler_wl='-Wl,'
9482	lt_prog_compiler_pic='-KPIC'
9483	lt_prog_compiler_static='-static'
9484        ;;
9485      # icc used to be incompatible with GCC.
9486      # ICC 10 doesn't accept -KPIC any more.
9487      icc* | ifort*)
9488	lt_prog_compiler_wl='-Wl,'
9489	lt_prog_compiler_pic='-fPIC'
9490	lt_prog_compiler_static='-static'
9491        ;;
9492      # Lahey Fortran 8.1.
9493      lf95*)
9494	lt_prog_compiler_wl='-Wl,'
9495	lt_prog_compiler_pic='--shared'
9496	lt_prog_compiler_static='--static'
9497	;;
9498      nagfor*)
9499	# NAG Fortran compiler
9500	lt_prog_compiler_wl='-Wl,-Wl,,'
9501	lt_prog_compiler_pic='-PIC'
9502	lt_prog_compiler_static='-Bstatic'
9503	;;
9504      tcc*)
9505	# Fabrice Bellard et al's Tiny C Compiler
9506	lt_prog_compiler_wl='-Wl,'
9507	lt_prog_compiler_pic='-fPIC'
9508	lt_prog_compiler_static='-static'
9509	;;
9510      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9511        # Portland Group compilers (*not* the Pentium gcc compiler,
9512	# which looks to be a dead project)
9513	lt_prog_compiler_wl='-Wl,'
9514	lt_prog_compiler_pic='-fpic'
9515	lt_prog_compiler_static='-Bstatic'
9516        ;;
9517      ccc*)
9518        lt_prog_compiler_wl='-Wl,'
9519        # All Alpha code is PIC.
9520        lt_prog_compiler_static='-non_shared'
9521        ;;
9522      xl* | bgxl* | bgf* | mpixl*)
9523	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9524	lt_prog_compiler_wl='-Wl,'
9525	lt_prog_compiler_pic='-qpic'
9526	lt_prog_compiler_static='-qstaticlink'
9527	;;
9528      *)
9529	case `$CC -V 2>&1 | $SED 5q` in
9530	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9531	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9532	  lt_prog_compiler_pic='-KPIC'
9533	  lt_prog_compiler_static='-Bstatic'
9534	  lt_prog_compiler_wl=''
9535	  ;;
9536	*Sun\ F* | *Sun*Fortran*)
9537	  lt_prog_compiler_pic='-KPIC'
9538	  lt_prog_compiler_static='-Bstatic'
9539	  lt_prog_compiler_wl='-Qoption ld '
9540	  ;;
9541	*Sun\ C*)
9542	  # Sun C 5.9
9543	  lt_prog_compiler_pic='-KPIC'
9544	  lt_prog_compiler_static='-Bstatic'
9545	  lt_prog_compiler_wl='-Wl,'
9546	  ;;
9547        *Intel*\ [CF]*Compiler*)
9548	  lt_prog_compiler_wl='-Wl,'
9549	  lt_prog_compiler_pic='-fPIC'
9550	  lt_prog_compiler_static='-static'
9551	  ;;
9552	*Portland\ Group*)
9553	  lt_prog_compiler_wl='-Wl,'
9554	  lt_prog_compiler_pic='-fpic'
9555	  lt_prog_compiler_static='-Bstatic'
9556	  ;;
9557	esac
9558	;;
9559      esac
9560      ;;
9561
9562    newsos6)
9563      lt_prog_compiler_pic='-KPIC'
9564      lt_prog_compiler_static='-Bstatic'
9565      ;;
9566
9567    *nto* | *qnx*)
9568      # QNX uses GNU C++, but need to define -shared option too, otherwise
9569      # it will coredump.
9570      lt_prog_compiler_pic='-fPIC -shared'
9571      ;;
9572
9573    osf3* | osf4* | osf5*)
9574      lt_prog_compiler_wl='-Wl,'
9575      # All OSF/1 code is PIC.
9576      lt_prog_compiler_static='-non_shared'
9577      ;;
9578
9579    rdos*)
9580      lt_prog_compiler_static='-non_shared'
9581      ;;
9582
9583    solaris*)
9584      lt_prog_compiler_pic='-KPIC'
9585      lt_prog_compiler_static='-Bstatic'
9586      case $cc_basename in
9587      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9588	lt_prog_compiler_wl='-Qoption ld ';;
9589      *)
9590	lt_prog_compiler_wl='-Wl,';;
9591      esac
9592      ;;
9593
9594    sunos4*)
9595      lt_prog_compiler_wl='-Qoption ld '
9596      lt_prog_compiler_pic='-PIC'
9597      lt_prog_compiler_static='-Bstatic'
9598      ;;
9599
9600    sysv4 | sysv4.2uw2* | sysv4.3*)
9601      lt_prog_compiler_wl='-Wl,'
9602      lt_prog_compiler_pic='-KPIC'
9603      lt_prog_compiler_static='-Bstatic'
9604      ;;
9605
9606    sysv4*MP*)
9607      if test -d /usr/nec; then
9608	lt_prog_compiler_pic='-Kconform_pic'
9609	lt_prog_compiler_static='-Bstatic'
9610      fi
9611      ;;
9612
9613    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9614      lt_prog_compiler_wl='-Wl,'
9615      lt_prog_compiler_pic='-KPIC'
9616      lt_prog_compiler_static='-Bstatic'
9617      ;;
9618
9619    unicos*)
9620      lt_prog_compiler_wl='-Wl,'
9621      lt_prog_compiler_can_build_shared=no
9622      ;;
9623
9624    uts4*)
9625      lt_prog_compiler_pic='-pic'
9626      lt_prog_compiler_static='-Bstatic'
9627      ;;
9628
9629    *)
9630      lt_prog_compiler_can_build_shared=no
9631      ;;
9632    esac
9633  fi
9634
9635case $host_os in
9636  # For platforms that do not support PIC, -DPIC is meaningless:
9637  *djgpp*)
9638    lt_prog_compiler_pic=
9639    ;;
9640  *)
9641    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9642    ;;
9643esac
9644
9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9646printf %s "checking for $compiler option to produce PIC... " >&6; }
9647if test ${lt_cv_prog_compiler_pic+y}
9648then :
9649  printf %s "(cached) " >&6
9650else $as_nop
9651  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9652fi
9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9654printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9655lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9656
9657#
9658# Check to make sure the PIC flag actually works.
9659#
9660if test -n "$lt_prog_compiler_pic"; then
9661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9662printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9663if test ${lt_cv_prog_compiler_pic_works+y}
9664then :
9665  printf %s "(cached) " >&6
9666else $as_nop
9667  lt_cv_prog_compiler_pic_works=no
9668   ac_outfile=conftest.$ac_objext
9669   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9671   # Insert the option either (1) after the last *FLAGS variable, or
9672   # (2) before a word containing "conftest.", or (3) at the end.
9673   # Note that $ac_compile itself does not contain backslashes and begins
9674   # with a dollar sign (not a hyphen), so the echo should work correctly.
9675   # The option is referenced via a variable to avoid confusing sed.
9676   lt_compile=`echo "$ac_compile" | $SED \
9677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679   -e 's:$: $lt_compiler_flag:'`
9680   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681   (eval "$lt_compile" 2>conftest.err)
9682   ac_status=$?
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   if (exit $ac_status) && test -s "$ac_outfile"; then
9686     # The compiler can only warn and ignore the option if not recognized
9687     # So say no if there are warnings other than the usual output.
9688     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9689     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9691       lt_cv_prog_compiler_pic_works=yes
9692     fi
9693   fi
9694   $RM conftest*
9695
9696fi
9697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9698printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9699
9700if test yes = "$lt_cv_prog_compiler_pic_works"; then
9701    case $lt_prog_compiler_pic in
9702     "" | " "*) ;;
9703     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9704     esac
9705else
9706    lt_prog_compiler_pic=
9707     lt_prog_compiler_can_build_shared=no
9708fi
9709
9710fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722#
9723# Check to make sure the static flag actually works.
9724#
9725wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9727printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9728if test ${lt_cv_prog_compiler_static_works+y}
9729then :
9730  printf %s "(cached) " >&6
9731else $as_nop
9732  lt_cv_prog_compiler_static_works=no
9733   save_LDFLAGS=$LDFLAGS
9734   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9735   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9736   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9737     # The linker can only warn and ignore the option if not recognized
9738     # So say no if there are warnings
9739     if test -s conftest.err; then
9740       # Append any errors to the config.log.
9741       cat conftest.err 1>&5
9742       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9743       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9744       if diff conftest.exp conftest.er2 >/dev/null; then
9745         lt_cv_prog_compiler_static_works=yes
9746       fi
9747     else
9748       lt_cv_prog_compiler_static_works=yes
9749     fi
9750   fi
9751   $RM -r conftest*
9752   LDFLAGS=$save_LDFLAGS
9753
9754fi
9755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9756printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9757
9758if test yes = "$lt_cv_prog_compiler_static_works"; then
9759    :
9760else
9761    lt_prog_compiler_static=
9762fi
9763
9764
9765
9766
9767
9768
9769
9770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9771printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9772if test ${lt_cv_prog_compiler_c_o+y}
9773then :
9774  printf %s "(cached) " >&6
9775else $as_nop
9776  lt_cv_prog_compiler_c_o=no
9777   $RM -r conftest 2>/dev/null
9778   mkdir conftest
9779   cd conftest
9780   mkdir out
9781   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783   lt_compiler_flag="-o out/conftest2.$ac_objext"
9784   # Insert the option either (1) after the last *FLAGS variable, or
9785   # (2) before a word containing "conftest.", or (3) at the end.
9786   # Note that $ac_compile itself does not contain backslashes and begins
9787   # with a dollar sign (not a hyphen), so the echo should work correctly.
9788   lt_compile=`echo "$ac_compile" | $SED \
9789   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791   -e 's:$: $lt_compiler_flag:'`
9792   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793   (eval "$lt_compile" 2>out/conftest.err)
9794   ac_status=$?
9795   cat out/conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9798   then
9799     # The compiler can only warn and ignore the option if not recognized
9800     # So say no if there are warnings
9801     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804       lt_cv_prog_compiler_c_o=yes
9805     fi
9806   fi
9807   chmod u+w . 2>&5
9808   $RM conftest*
9809   # SGI C++ compiler will create directory out/ii_files/ for
9810   # template instantiation
9811   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812   $RM out/* && rmdir out
9813   cd ..
9814   $RM -r conftest
9815   $RM conftest*
9816
9817fi
9818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9820
9821
9822
9823
9824
9825
9826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9827printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9828if test ${lt_cv_prog_compiler_c_o+y}
9829then :
9830  printf %s "(cached) " >&6
9831else $as_nop
9832  lt_cv_prog_compiler_c_o=no
9833   $RM -r conftest 2>/dev/null
9834   mkdir conftest
9835   cd conftest
9836   mkdir out
9837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9838
9839   lt_compiler_flag="-o out/conftest2.$ac_objext"
9840   # Insert the option either (1) after the last *FLAGS variable, or
9841   # (2) before a word containing "conftest.", or (3) at the end.
9842   # Note that $ac_compile itself does not contain backslashes and begins
9843   # with a dollar sign (not a hyphen), so the echo should work correctly.
9844   lt_compile=`echo "$ac_compile" | $SED \
9845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9847   -e 's:$: $lt_compiler_flag:'`
9848   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9849   (eval "$lt_compile" 2>out/conftest.err)
9850   ac_status=$?
9851   cat out/conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9854   then
9855     # The compiler can only warn and ignore the option if not recognized
9856     # So say no if there are warnings
9857     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9858     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9859     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9860       lt_cv_prog_compiler_c_o=yes
9861     fi
9862   fi
9863   chmod u+w . 2>&5
9864   $RM conftest*
9865   # SGI C++ compiler will create directory out/ii_files/ for
9866   # template instantiation
9867   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9868   $RM out/* && rmdir out
9869   cd ..
9870   $RM -r conftest
9871   $RM conftest*
9872
9873fi
9874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9875printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9876
9877
9878
9879
9880hard_links=nottested
9881if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9882  # do not overwrite the value of need_locks provided by the user
9883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9884printf %s "checking if we can lock with hard links... " >&6; }
9885  hard_links=yes
9886  $RM conftest*
9887  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9888  touch conftest.a
9889  ln conftest.a conftest.b 2>&5 || hard_links=no
9890  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9892printf "%s\n" "$hard_links" >&6; }
9893  if test no = "$hard_links"; then
9894    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9895printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9896    need_locks=warn
9897  fi
9898else
9899  need_locks=no
9900fi
9901
9902
9903
9904
9905
9906
9907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9908printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9909
9910  runpath_var=
9911  allow_undefined_flag=
9912  always_export_symbols=no
9913  archive_cmds=
9914  archive_expsym_cmds=
9915  compiler_needs_object=no
9916  enable_shared_with_static_runtimes=no
9917  export_dynamic_flag_spec=
9918  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9919  hardcode_automatic=no
9920  hardcode_direct=no
9921  hardcode_direct_absolute=no
9922  hardcode_libdir_flag_spec=
9923  hardcode_libdir_separator=
9924  hardcode_minus_L=no
9925  hardcode_shlibpath_var=unsupported
9926  inherit_rpath=no
9927  link_all_deplibs=unknown
9928  module_cmds=
9929  module_expsym_cmds=
9930  old_archive_from_new_cmds=
9931  old_archive_from_expsyms_cmds=
9932  thread_safe_flag_spec=
9933  whole_archive_flag_spec=
9934  # include_expsyms should be a list of space-separated symbols to be *always*
9935  # included in the symbol list
9936  include_expsyms=
9937  # exclude_expsyms can be an extended regexp of symbols to exclude
9938  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9939  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9940  # as well as any symbol that contains 'd'.
9941  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9942  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9943  # platforms (ab)use it in PIC code, but their linkers get confused if
9944  # the symbol is explicitly referenced.  Since portable code cannot
9945  # rely on this symbol name, it's probably fine to never include it in
9946  # preloaded symbol tables.
9947  # Exclude shared library initialization/finalization symbols.
9948  extract_expsyms_cmds=
9949
9950  case $host_os in
9951  cygwin* | mingw* | pw32* | cegcc*)
9952    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9953    # When not using gcc, we currently assume that we are using
9954    # Microsoft Visual C++ or Intel C++ Compiler.
9955    if test yes != "$GCC"; then
9956      with_gnu_ld=no
9957    fi
9958    ;;
9959  interix*)
9960    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9961    with_gnu_ld=yes
9962    ;;
9963  openbsd* | bitrig*)
9964    with_gnu_ld=no
9965    ;;
9966  esac
9967
9968  ld_shlibs=yes
9969
9970  # On some targets, GNU ld is compatible enough with the native linker
9971  # that we're better off using the native interface for both.
9972  lt_use_gnu_ld_interface=no
9973  if test yes = "$with_gnu_ld"; then
9974    case $host_os in
9975      aix*)
9976	# The AIX port of GNU ld has always aspired to compatibility
9977	# with the native linker.  However, as the warning in the GNU ld
9978	# block says, versions before 2.19.5* couldn't really create working
9979	# shared libraries, regardless of the interface used.
9980	case `$LD -v 2>&1` in
9981	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9982	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9983	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9984	  *)
9985	    lt_use_gnu_ld_interface=yes
9986	    ;;
9987	esac
9988	;;
9989      *)
9990	lt_use_gnu_ld_interface=yes
9991	;;
9992    esac
9993  fi
9994
9995  if test yes = "$lt_use_gnu_ld_interface"; then
9996    # If archive_cmds runs LD, not CC, wlarc should be empty
9997    wlarc='$wl'
9998
9999    # Set some defaults for GNU ld with shared library support. These
10000    # are reset later if shared libraries are not supported. Putting them
10001    # here allows them to be overridden if necessary.
10002    runpath_var=LD_RUN_PATH
10003    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10004    export_dynamic_flag_spec='$wl--export-dynamic'
10005    # ancient GNU ld didn't support --whole-archive et. al.
10006    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10007      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10008    else
10009      whole_archive_flag_spec=
10010    fi
10011    supports_anon_versioning=no
10012    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10013      *GNU\ gold*) supports_anon_versioning=yes ;;
10014      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10015      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10016      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10017      *\ 2.11.*) ;; # other 2.11 versions
10018      *) supports_anon_versioning=yes ;;
10019    esac
10020
10021    # See if GNU ld supports shared libraries.
10022    case $host_os in
10023    aix[3-9]*)
10024      # On AIX/PPC, the GNU linker is very broken
10025      if test ia64 != "$host_cpu"; then
10026	ld_shlibs=no
10027	cat <<_LT_EOF 1>&2
10028
10029*** Warning: the GNU linker, at least up to release 2.19, is reported
10030*** to be unable to reliably create shared libraries on AIX.
10031*** Therefore, libtool is disabling shared libraries support.  If you
10032*** really care for shared libraries, you may want to install binutils
10033*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10034*** You will then need to restart the configuration process.
10035
10036_LT_EOF
10037      fi
10038      ;;
10039
10040    amigaos*)
10041      case $host_cpu in
10042      powerpc)
10043            # see comment about AmigaOS4 .so support
10044            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10045            archive_expsym_cmds=''
10046        ;;
10047      m68k)
10048            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)'
10049            hardcode_libdir_flag_spec='-L$libdir'
10050            hardcode_minus_L=yes
10051        ;;
10052      esac
10053      ;;
10054
10055    beos*)
10056      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057	allow_undefined_flag=unsupported
10058	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059	# support --undefined.  This deserves some investigation.  FIXME
10060	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10061      else
10062	ld_shlibs=no
10063      fi
10064      ;;
10065
10066    cygwin* | mingw* | pw32* | cegcc*)
10067      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068      # as there is no search path for DLLs.
10069      hardcode_libdir_flag_spec='-L$libdir'
10070      export_dynamic_flag_spec='$wl--export-all-symbols'
10071      allow_undefined_flag=unsupported
10072      always_export_symbols=no
10073      enable_shared_with_static_runtimes=yes
10074      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'
10075      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10076
10077      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10078        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079	# If the export-symbols file already is a .def file, use it as
10080	# is; otherwise, prepend EXPORTS...
10081	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10082          cp $export_symbols $output_objdir/$soname.def;
10083        else
10084          echo EXPORTS > $output_objdir/$soname.def;
10085          cat $export_symbols >> $output_objdir/$soname.def;
10086        fi~
10087        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10088      else
10089	ld_shlibs=no
10090      fi
10091      ;;
10092
10093    haiku*)
10094      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10095      link_all_deplibs=yes
10096      ;;
10097
10098    os2*)
10099      hardcode_libdir_flag_spec='-L$libdir'
10100      hardcode_minus_L=yes
10101      allow_undefined_flag=unsupported
10102      shrext_cmds=.dll
10103      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10104	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10105	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10106	$ECHO EXPORTS >> $output_objdir/$libname.def~
10107	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10108	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10109	emximp -o $lib $output_objdir/$libname.def'
10110      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10111	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10112	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10113	$ECHO EXPORTS >> $output_objdir/$libname.def~
10114	prefix_cmds="$SED"~
10115	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10116	  prefix_cmds="$prefix_cmds -e 1d";
10117	fi~
10118	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10119	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10120	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10121	emximp -o $lib $output_objdir/$libname.def'
10122      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10123      enable_shared_with_static_runtimes=yes
10124      file_list_spec='@'
10125      ;;
10126
10127    interix[3-9]*)
10128      hardcode_direct=no
10129      hardcode_shlibpath_var=no
10130      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10131      export_dynamic_flag_spec='$wl-E'
10132      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10133      # Instead, shared libraries are loaded at an image base (0x10000000 by
10134      # default) and relocated if they conflict, which is a slow very memory
10135      # consuming and fragmenting process.  To avoid this, we pick a random,
10136      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10137      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10138      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10139      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'
10140      ;;
10141
10142    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10143      tmp_diet=no
10144      if test linux-dietlibc = "$host_os"; then
10145	case $cc_basename in
10146	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10147	esac
10148      fi
10149      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10150	 && test no = "$tmp_diet"
10151      then
10152	tmp_addflag=' $pic_flag'
10153	tmp_sharedflag='-shared'
10154	case $cc_basename,$host_cpu in
10155        pgcc*)				# Portland Group C compiler
10156	  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'
10157	  tmp_addflag=' $pic_flag'
10158	  ;;
10159	pgf77* | pgf90* | pgf95* | pgfortran*)
10160					# Portland Group f77 and f90 compilers
10161	  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'
10162	  tmp_addflag=' $pic_flag -Mnomain' ;;
10163	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10164	  tmp_addflag=' -i_dynamic' ;;
10165	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10166	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10167	ifc* | ifort*)			# Intel Fortran compiler
10168	  tmp_addflag=' -nofor_main' ;;
10169	lf95*)				# Lahey Fortran 8.1
10170	  whole_archive_flag_spec=
10171	  tmp_sharedflag='--shared' ;;
10172        nagfor*)                        # NAGFOR 5.3
10173          tmp_sharedflag='-Wl,-shared' ;;
10174	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10175	  tmp_sharedflag='-qmkshrobj'
10176	  tmp_addflag= ;;
10177	nvcc*)	# Cuda Compiler Driver 2.2
10178	  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'
10179	  compiler_needs_object=yes
10180	  ;;
10181	esac
10182	case `$CC -V 2>&1 | $SED 5q` in
10183	*Sun\ C*)			# Sun C 5.9
10184	  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'
10185	  compiler_needs_object=yes
10186	  tmp_sharedflag='-G' ;;
10187	*Sun\ F*)			# Sun Fortran 8.3
10188	  tmp_sharedflag='-G' ;;
10189	esac
10190	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191
10192        if test yes = "$supports_anon_versioning"; then
10193          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195            echo "local: *; };" >> $output_objdir/$libname.ver~
10196            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10197        fi
10198
10199	case $cc_basename in
10200	tcc*)
10201	  export_dynamic_flag_spec='-rdynamic'
10202	  ;;
10203	xlf* | bgf* | bgxlf* | mpixlf*)
10204	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10205	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10206	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10208	  if test yes = "$supports_anon_versioning"; then
10209	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10210              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10211              echo "local: *; };" >> $output_objdir/$libname.ver~
10212              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10213	  fi
10214	  ;;
10215	esac
10216      else
10217        ld_shlibs=no
10218      fi
10219      ;;
10220
10221    netbsd*)
10222      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10223	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10224	wlarc=
10225      else
10226	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10228      fi
10229      ;;
10230
10231    solaris*)
10232      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10233	ld_shlibs=no
10234	cat <<_LT_EOF 1>&2
10235
10236*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10237*** create shared libraries on Solaris systems.  Therefore, libtool
10238*** is disabling shared libraries support.  We urge you to upgrade GNU
10239*** binutils to release 2.9.1 or newer.  Another option is to modify
10240*** your PATH or compiler configuration so that the native linker is
10241*** used, and then restart.
10242
10243_LT_EOF
10244      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10247      else
10248	ld_shlibs=no
10249      fi
10250      ;;
10251
10252    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10253      case `$LD -v 2>&1` in
10254        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10255	ld_shlibs=no
10256	cat <<_LT_EOF 1>&2
10257
10258*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10259*** reliably create shared libraries on SCO systems.  Therefore, libtool
10260*** is disabling shared libraries support.  We urge you to upgrade GNU
10261*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10262*** your PATH or compiler configuration so that the native linker is
10263*** used, and then restart.
10264
10265_LT_EOF
10266	;;
10267	*)
10268	  # For security reasons, it is highly recommended that you always
10269	  # use absolute paths for naming shared libraries, and exclude the
10270	  # DT_RUNPATH tag from executables and libraries.  But doing so
10271	  # requires that you compile everything twice, which is a pain.
10272	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10275	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10276	  else
10277	    ld_shlibs=no
10278	  fi
10279	;;
10280      esac
10281      ;;
10282
10283    sunos4*)
10284      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10285      wlarc=
10286      hardcode_direct=yes
10287      hardcode_shlibpath_var=no
10288      ;;
10289
10290    *)
10291      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10294      else
10295	ld_shlibs=no
10296      fi
10297      ;;
10298    esac
10299
10300    if test no = "$ld_shlibs"; then
10301      runpath_var=
10302      hardcode_libdir_flag_spec=
10303      export_dynamic_flag_spec=
10304      whole_archive_flag_spec=
10305    fi
10306  else
10307    # PORTME fill in a description of your system's linker (not GNU ld)
10308    case $host_os in
10309    aix3*)
10310      allow_undefined_flag=unsupported
10311      always_export_symbols=yes
10312      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'
10313      # Note: this linker hardcodes the directories in LIBPATH if there
10314      # are no directories specified by -L.
10315      hardcode_minus_L=yes
10316      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10317	# Neither direct hardcoding nor static linking is supported with a
10318	# broken collect2.
10319	hardcode_direct=unsupported
10320      fi
10321      ;;
10322
10323    aix[4-9]*)
10324      if test ia64 = "$host_cpu"; then
10325	# On IA64, the linker does run time linking by default, so we don't
10326	# have to do anything special.
10327	aix_use_runtimelinking=no
10328	exp_sym_flag='-Bexport'
10329	no_entry_flag=
10330      else
10331	# If we're using GNU nm, then we don't want the "-C" option.
10332	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10333	# Without the "-l" option, or with the "-B" option, AIX nm treats
10334	# weak defined symbols like other global defined symbols, whereas
10335	# GNU nm marks them as "W".
10336	# While the 'weak' keyword is ignored in the Export File, we need
10337	# it in the Import File for the 'aix-soname' feature, so we have
10338	# to replace the "-B" option with "-P" for AIX nm.
10339	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10340	  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'
10341	else
10342	  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'
10343	fi
10344	aix_use_runtimelinking=no
10345
10346	# Test if we are trying to use run time linking or normal
10347	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10348	# have runtime linking enabled, and use it for executables.
10349	# For shared libraries, we enable/disable runtime linking
10350	# depending on the kind of the shared library created -
10351	# when "with_aix_soname,aix_use_runtimelinking" is:
10352	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10353	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10354	#            lib.a           static archive
10355	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10356	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10357	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10358	#            lib.a(lib.so.V) shared, rtl:no
10359	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10360	#            lib.a           static archive
10361	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362	  for ld_flag in $LDFLAGS; do
10363	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10364	    aix_use_runtimelinking=yes
10365	    break
10366	  fi
10367	  done
10368	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10369	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10370	    # so we don't have lib.a shared libs to link our executables.
10371	    # We have to force runtime linking in this case.
10372	    aix_use_runtimelinking=yes
10373	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10374	  fi
10375	  ;;
10376	esac
10377
10378	exp_sym_flag='-bexport'
10379	no_entry_flag='-bnoentry'
10380      fi
10381
10382      # When large executables or shared objects are built, AIX ld can
10383      # have problems creating the table of contents.  If linking a library
10384      # or program results in "error TOC overflow" add -mminimal-toc to
10385      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10386      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10387
10388      archive_cmds=''
10389      hardcode_direct=yes
10390      hardcode_direct_absolute=yes
10391      hardcode_libdir_separator=':'
10392      link_all_deplibs=yes
10393      file_list_spec='$wl-f,'
10394      case $with_aix_soname,$aix_use_runtimelinking in
10395      aix,*) ;; # traditional, no import file
10396      svr4,* | *,yes) # use import file
10397	# The Import File defines what to hardcode.
10398	hardcode_direct=no
10399	hardcode_direct_absolute=no
10400	;;
10401      esac
10402
10403      if test yes = "$GCC"; then
10404	case $host_os in aix4.[012]|aix4.[012].*)
10405	# We only want to do this on AIX 4.2 and lower, the check
10406	# below for broken collect2 doesn't work under 4.3+
10407	  collect2name=`$CC -print-prog-name=collect2`
10408	  if test -f "$collect2name" &&
10409	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10410	  then
10411	  # We have reworked collect2
10412	  :
10413	  else
10414	  # We have old collect2
10415	  hardcode_direct=unsupported
10416	  # It fails to find uninstalled libraries when the uninstalled
10417	  # path is not listed in the libpath.  Setting hardcode_minus_L
10418	  # to unsupported forces relinking
10419	  hardcode_minus_L=yes
10420	  hardcode_libdir_flag_spec='-L$libdir'
10421	  hardcode_libdir_separator=
10422	  fi
10423	  ;;
10424	esac
10425	shared_flag='-shared'
10426	if test yes = "$aix_use_runtimelinking"; then
10427	  shared_flag="$shared_flag "'$wl-G'
10428	fi
10429	# Need to ensure runtime linking is disabled for the traditional
10430	# shared library, or the linker may eventually find shared libraries
10431	# /with/ Import File - we do not want to mix them.
10432	shared_flag_aix='-shared'
10433	shared_flag_svr4='-shared $wl-G'
10434      else
10435	# not using gcc
10436	if test ia64 = "$host_cpu"; then
10437	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10438	# chokes on -Wl,-G. The following line is correct:
10439	  shared_flag='-G'
10440	else
10441	  if test yes = "$aix_use_runtimelinking"; then
10442	    shared_flag='$wl-G'
10443	  else
10444	    shared_flag='$wl-bM:SRE'
10445	  fi
10446	  shared_flag_aix='$wl-bM:SRE'
10447	  shared_flag_svr4='$wl-G'
10448	fi
10449      fi
10450
10451      export_dynamic_flag_spec='$wl-bexpall'
10452      # It seems that -bexpall does not export symbols beginning with
10453      # underscore (_), so it is better to generate a list of symbols to export.
10454      always_export_symbols=yes
10455      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10456	# Warning - without using the other runtime loading flags (-brtl),
10457	# -berok will link without error, but may produce a broken library.
10458	allow_undefined_flag='-berok'
10459        # Determine the default libpath from the value encoded in an
10460        # empty executable.
10461        if test set = "${lt_cv_aix_libpath+set}"; then
10462  aix_libpath=$lt_cv_aix_libpath
10463else
10464  if test ${lt_cv_aix_libpath_+y}
10465then :
10466  printf %s "(cached) " >&6
10467else $as_nop
10468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h.  */
10470
10471int
10472main (void)
10473{
10474
10475  ;
10476  return 0;
10477}
10478_ACEOF
10479if ac_fn_c_try_link "$LINENO"
10480then :
10481
10482  lt_aix_libpath_sed='
10483      /Import File Strings/,/^$/ {
10484	  /^0/ {
10485	      s/^0  *\([^ ]*\) *$/\1/
10486	      p
10487	  }
10488      }'
10489  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490  # Check for a 64-bit object if we didn't find anything.
10491  if test -z "$lt_cv_aix_libpath_"; then
10492    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493  fi
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496    conftest$ac_exeext conftest.$ac_ext
10497  if test -z "$lt_cv_aix_libpath_"; then
10498    lt_cv_aix_libpath_=/usr/lib:/lib
10499  fi
10500
10501fi
10502
10503  aix_libpath=$lt_cv_aix_libpath_
10504fi
10505
10506        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10507        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
10508      else
10509	if test ia64 = "$host_cpu"; then
10510	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10511	  allow_undefined_flag="-z nodefs"
10512	  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"
10513	else
10514	 # Determine the default libpath from the value encoded in an
10515	 # empty executable.
10516	 if test set = "${lt_cv_aix_libpath+set}"; then
10517  aix_libpath=$lt_cv_aix_libpath
10518else
10519  if test ${lt_cv_aix_libpath_+y}
10520then :
10521  printf %s "(cached) " >&6
10522else $as_nop
10523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h.  */
10525
10526int
10527main (void)
10528{
10529
10530  ;
10531  return 0;
10532}
10533_ACEOF
10534if ac_fn_c_try_link "$LINENO"
10535then :
10536
10537  lt_aix_libpath_sed='
10538      /Import File Strings/,/^$/ {
10539	  /^0/ {
10540	      s/^0  *\([^ ]*\) *$/\1/
10541	      p
10542	  }
10543      }'
10544  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545  # Check for a 64-bit object if we didn't find anything.
10546  if test -z "$lt_cv_aix_libpath_"; then
10547    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548  fi
10549fi
10550rm -f core conftest.err conftest.$ac_objext conftest.beam \
10551    conftest$ac_exeext conftest.$ac_ext
10552  if test -z "$lt_cv_aix_libpath_"; then
10553    lt_cv_aix_libpath_=/usr/lib:/lib
10554  fi
10555
10556fi
10557
10558  aix_libpath=$lt_cv_aix_libpath_
10559fi
10560
10561	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10562	  # Warning - without using the other run time loading flags,
10563	  # -berok will link without error, but may produce a broken library.
10564	  no_undefined_flag=' $wl-bernotok'
10565	  allow_undefined_flag=' $wl-berok'
10566	  if test yes = "$with_gnu_ld"; then
10567	    # We only use this code for GNU lds that support --whole-archive.
10568	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10569	  else
10570	    # Exported symbols can be pulled into shared objects from archives
10571	    whole_archive_flag_spec='$convenience'
10572	  fi
10573	  archive_cmds_need_lc=yes
10574	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10575	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10576	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10577	  if test svr4 != "$with_aix_soname"; then
10578	    # This is similar to how AIX traditionally builds its shared libraries.
10579	    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'
10580	  fi
10581	  if test aix != "$with_aix_soname"; then
10582	    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'
10583	  else
10584	    # used by -dlpreopen to get the symbols
10585	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10586	  fi
10587	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10588	fi
10589      fi
10590      ;;
10591
10592    amigaos*)
10593      case $host_cpu in
10594      powerpc)
10595            # see comment about AmigaOS4 .so support
10596            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597            archive_expsym_cmds=''
10598        ;;
10599      m68k)
10600            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)'
10601            hardcode_libdir_flag_spec='-L$libdir'
10602            hardcode_minus_L=yes
10603        ;;
10604      esac
10605      ;;
10606
10607    bsdi[45]*)
10608      export_dynamic_flag_spec=-rdynamic
10609      ;;
10610
10611    cygwin* | mingw* | pw32* | cegcc*)
10612      # When not using gcc, we currently assume that we are using
10613      # Microsoft Visual C++ or Intel C++ Compiler.
10614      # hardcode_libdir_flag_spec is actually meaningless, as there is
10615      # no search path for DLLs.
10616      case $cc_basename in
10617      cl* | icl*)
10618	# Native MSVC or ICC
10619	hardcode_libdir_flag_spec=' '
10620	allow_undefined_flag=unsupported
10621	always_export_symbols=yes
10622	file_list_spec='@'
10623	# Tell ltmain to make .lib files, not .a files.
10624	libext=lib
10625	# Tell ltmain to make .dll files, not .so files.
10626	shrext_cmds=.dll
10627	# FIXME: Setting linknames here is a bad hack.
10628	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10629	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10630            cp "$export_symbols" "$output_objdir/$soname.def";
10631            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10632          else
10633            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10634          fi~
10635          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10636          linknames='
10637	# The linker will not automatically build a static lib if we build a DLL.
10638	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10639	enable_shared_with_static_runtimes=yes
10640	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10641	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10642	# Don't use ranlib
10643	old_postinstall_cmds='chmod 644 $oldlib'
10644	postlink_cmds='lt_outputfile="@OUTPUT@"~
10645          lt_tool_outputfile="@TOOL_OUTPUT@"~
10646          case $lt_outputfile in
10647            *.exe|*.EXE) ;;
10648            *)
10649              lt_outputfile=$lt_outputfile.exe
10650              lt_tool_outputfile=$lt_tool_outputfile.exe
10651              ;;
10652          esac~
10653          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10654            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10655            $RM "$lt_outputfile.manifest";
10656          fi'
10657	;;
10658      *)
10659	# Assume MSVC and ICC wrapper
10660	hardcode_libdir_flag_spec=' '
10661	allow_undefined_flag=unsupported
10662	# Tell ltmain to make .lib files, not .a files.
10663	libext=lib
10664	# Tell ltmain to make .dll files, not .so files.
10665	shrext_cmds=.dll
10666	# FIXME: Setting linknames here is a bad hack.
10667	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10668	# The linker will automatically build a .lib file if we build a DLL.
10669	old_archive_from_new_cmds='true'
10670	# FIXME: Should let the user specify the lib program.
10671	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10672	enable_shared_with_static_runtimes=yes
10673	;;
10674      esac
10675      ;;
10676
10677    darwin* | rhapsody*)
10678
10679
10680  archive_cmds_need_lc=no
10681  hardcode_direct=no
10682  hardcode_automatic=yes
10683  hardcode_shlibpath_var=unsupported
10684  if test yes = "$lt_cv_ld_force_load"; then
10685    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\"`'
10686
10687  else
10688    whole_archive_flag_spec=''
10689  fi
10690  link_all_deplibs=yes
10691  allow_undefined_flag=$_lt_dar_allow_undefined
10692  case $cc_basename in
10693     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10694     *) _lt_dar_can_shared=$GCC ;;
10695  esac
10696  if test yes = "$_lt_dar_can_shared"; then
10697    output_verbose_link_cmd=func_echo_all
10698    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10699    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10700    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"
10701    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"
10702
10703  else
10704  ld_shlibs=no
10705  fi
10706
10707      ;;
10708
10709    dgux*)
10710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711      hardcode_libdir_flag_spec='-L$libdir'
10712      hardcode_shlibpath_var=no
10713      ;;
10714
10715    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10716    # support.  Future versions do this automatically, but an explicit c++rt0.o
10717    # does not break anything, and helps significantly (at the cost of a little
10718    # extra space).
10719    freebsd2.2*)
10720      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10721      hardcode_libdir_flag_spec='-R$libdir'
10722      hardcode_direct=yes
10723      hardcode_shlibpath_var=no
10724      ;;
10725
10726    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10727    freebsd2.*)
10728      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10729      hardcode_direct=yes
10730      hardcode_minus_L=yes
10731      hardcode_shlibpath_var=no
10732      ;;
10733
10734    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10735    freebsd* | dragonfly* | midnightbsd*)
10736      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10737      hardcode_libdir_flag_spec='-R$libdir'
10738      hardcode_direct=yes
10739      hardcode_shlibpath_var=no
10740      ;;
10741
10742    hpux9*)
10743      if test yes = "$GCC"; then
10744	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'
10745      else
10746	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'
10747      fi
10748      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10749      hardcode_libdir_separator=:
10750      hardcode_direct=yes
10751
10752      # hardcode_minus_L: Not really in the search PATH,
10753      # but as the default location of the library.
10754      hardcode_minus_L=yes
10755      export_dynamic_flag_spec='$wl-E'
10756      ;;
10757
10758    hpux10*)
10759      if test yes,no = "$GCC,$with_gnu_ld"; then
10760	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761      else
10762	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10763      fi
10764      if test no = "$with_gnu_ld"; then
10765	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10766	hardcode_libdir_separator=:
10767	hardcode_direct=yes
10768	hardcode_direct_absolute=yes
10769	export_dynamic_flag_spec='$wl-E'
10770	# hardcode_minus_L: Not really in the search PATH,
10771	# but as the default location of the library.
10772	hardcode_minus_L=yes
10773      fi
10774      ;;
10775
10776    hpux11*)
10777      if test yes,no = "$GCC,$with_gnu_ld"; then
10778	case $host_cpu in
10779	hppa*64*)
10780	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10781	  ;;
10782	ia64*)
10783	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10784	  ;;
10785	*)
10786	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10787	  ;;
10788	esac
10789      else
10790	case $host_cpu in
10791	hppa*64*)
10792	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10793	  ;;
10794	ia64*)
10795	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10796	  ;;
10797	*)
10798
10799	  # Older versions of the 11.00 compiler do not understand -b yet
10800	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10801	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10802printf %s "checking if $CC understands -b... " >&6; }
10803if test ${lt_cv_prog_compiler__b+y}
10804then :
10805  printf %s "(cached) " >&6
10806else $as_nop
10807  lt_cv_prog_compiler__b=no
10808   save_LDFLAGS=$LDFLAGS
10809   LDFLAGS="$LDFLAGS -b"
10810   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10811   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10812     # The linker can only warn and ignore the option if not recognized
10813     # So say no if there are warnings
10814     if test -s conftest.err; then
10815       # Append any errors to the config.log.
10816       cat conftest.err 1>&5
10817       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10818       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10819       if diff conftest.exp conftest.er2 >/dev/null; then
10820         lt_cv_prog_compiler__b=yes
10821       fi
10822     else
10823       lt_cv_prog_compiler__b=yes
10824     fi
10825   fi
10826   $RM -r conftest*
10827   LDFLAGS=$save_LDFLAGS
10828
10829fi
10830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10831printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10832
10833if test yes = "$lt_cv_prog_compiler__b"; then
10834    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10835else
10836    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10837fi
10838
10839	  ;;
10840	esac
10841      fi
10842      if test no = "$with_gnu_ld"; then
10843	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10844	hardcode_libdir_separator=:
10845
10846	case $host_cpu in
10847	hppa*64*|ia64*)
10848	  hardcode_direct=no
10849	  hardcode_shlibpath_var=no
10850	  ;;
10851	*)
10852	  hardcode_direct=yes
10853	  hardcode_direct_absolute=yes
10854	  export_dynamic_flag_spec='$wl-E'
10855
10856	  # hardcode_minus_L: Not really in the search PATH,
10857	  # but as the default location of the library.
10858	  hardcode_minus_L=yes
10859	  ;;
10860	esac
10861      fi
10862      ;;
10863
10864    irix5* | irix6* | nonstopux*)
10865      if test yes = "$GCC"; then
10866	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'
10867	# Try to use the -exported_symbol ld option, if it does not
10868	# work, assume that -exports_file does not work either and
10869	# implicitly export all symbols.
10870	# This should be the same for all languages, so no per-tag cache variable.
10871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10872printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10873if test ${lt_cv_irix_exported_symbol+y}
10874then :
10875  printf %s "(cached) " >&6
10876else $as_nop
10877  save_LDFLAGS=$LDFLAGS
10878	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10879	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880/* end confdefs.h.  */
10881int foo (void) { return 0; }
10882_ACEOF
10883if ac_fn_c_try_link "$LINENO"
10884then :
10885  lt_cv_irix_exported_symbol=yes
10886else $as_nop
10887  lt_cv_irix_exported_symbol=no
10888fi
10889rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890    conftest$ac_exeext conftest.$ac_ext
10891           LDFLAGS=$save_LDFLAGS
10892fi
10893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10894printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10895	if test yes = "$lt_cv_irix_exported_symbol"; then
10896          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'
10897	fi
10898      else
10899	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'
10900	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'
10901      fi
10902      archive_cmds_need_lc='no'
10903      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10904      hardcode_libdir_separator=:
10905      inherit_rpath=yes
10906      link_all_deplibs=yes
10907      ;;
10908
10909    linux*)
10910      case $cc_basename in
10911      tcc*)
10912	# Fabrice Bellard et al's Tiny C Compiler
10913	ld_shlibs=yes
10914	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10915	;;
10916      esac
10917      ;;
10918
10919    netbsd*)
10920      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10921	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10922      else
10923	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10924      fi
10925      hardcode_libdir_flag_spec='-R$libdir'
10926      hardcode_direct=yes
10927      hardcode_shlibpath_var=no
10928      ;;
10929
10930    newsos6)
10931      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932      hardcode_direct=yes
10933      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10934      hardcode_libdir_separator=:
10935      hardcode_shlibpath_var=no
10936      ;;
10937
10938    *nto* | *qnx*)
10939      ;;
10940
10941    openbsd* | bitrig*)
10942      if test -f /usr/libexec/ld.so; then
10943	hardcode_direct=yes
10944	hardcode_shlibpath_var=no
10945	hardcode_direct_absolute=yes
10946	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10947	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10948	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10949	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10950	  export_dynamic_flag_spec='$wl-E'
10951	else
10952	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10953	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10954	fi
10955      else
10956	ld_shlibs=no
10957      fi
10958      ;;
10959
10960    os2*)
10961      hardcode_libdir_flag_spec='-L$libdir'
10962      hardcode_minus_L=yes
10963      allow_undefined_flag=unsupported
10964      shrext_cmds=.dll
10965      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10966	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10967	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10968	$ECHO EXPORTS >> $output_objdir/$libname.def~
10969	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10970	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10971	emximp -o $lib $output_objdir/$libname.def'
10972      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10973	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10974	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10975	$ECHO EXPORTS >> $output_objdir/$libname.def~
10976	prefix_cmds="$SED"~
10977	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10978	  prefix_cmds="$prefix_cmds -e 1d";
10979	fi~
10980	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10981	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10982	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10983	emximp -o $lib $output_objdir/$libname.def'
10984      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10985      enable_shared_with_static_runtimes=yes
10986      file_list_spec='@'
10987      ;;
10988
10989    osf3*)
10990      if test yes = "$GCC"; then
10991	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10992	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'
10993      else
10994	allow_undefined_flag=' -expect_unresolved \*'
10995	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'
10996      fi
10997      archive_cmds_need_lc='no'
10998      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999      hardcode_libdir_separator=:
11000      ;;
11001
11002    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11003      if test yes = "$GCC"; then
11004	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11005	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'
11006	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11007      else
11008	allow_undefined_flag=' -expect_unresolved \*'
11009	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'
11010	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~
11011          $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'
11012
11013	# Both c and cxx compiler support -rpath directly
11014	hardcode_libdir_flag_spec='-rpath $libdir'
11015      fi
11016      archive_cmds_need_lc='no'
11017      hardcode_libdir_separator=:
11018      ;;
11019
11020    solaris*)
11021      no_undefined_flag=' -z defs'
11022      if test yes = "$GCC"; then
11023	wlarc='$wl'
11024	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11026          $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'
11027      else
11028	case `$CC -V 2>&1` in
11029	*"Compilers 5.0"*)
11030	  wlarc=''
11031	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11034	  ;;
11035	*)
11036	  wlarc='$wl'
11037	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11040	  ;;
11041	esac
11042      fi
11043      hardcode_libdir_flag_spec='-R$libdir'
11044      hardcode_shlibpath_var=no
11045      case $host_os in
11046      solaris2.[0-5] | solaris2.[0-5].*) ;;
11047      *)
11048	# The compiler driver will combine and reorder linker options,
11049	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11050	# but is careful enough not to reorder.
11051	# Supported since Solaris 2.6 (maybe 2.5.1?)
11052	if test yes = "$GCC"; then
11053	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11054	else
11055	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11056	fi
11057	;;
11058      esac
11059      link_all_deplibs=yes
11060      ;;
11061
11062    sunos4*)
11063      if test sequent = "$host_vendor"; then
11064	# Use $CC to link under sequent, because it throws in some extra .o
11065	# files that make .init and .fini sections work.
11066	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11067      else
11068	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11069      fi
11070      hardcode_libdir_flag_spec='-L$libdir'
11071      hardcode_direct=yes
11072      hardcode_minus_L=yes
11073      hardcode_shlibpath_var=no
11074      ;;
11075
11076    sysv4)
11077      case $host_vendor in
11078	sni)
11079	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080	  hardcode_direct=yes # is this really true???
11081	;;
11082	siemens)
11083	  ## LD is ld it makes a PLAMLIB
11084	  ## CC just makes a GrossModule.
11085	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11086	  reload_cmds='$CC -r -o $output$reload_objs'
11087	  hardcode_direct=no
11088        ;;
11089	motorola)
11090	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11092	;;
11093      esac
11094      runpath_var='LD_RUN_PATH'
11095      hardcode_shlibpath_var=no
11096      ;;
11097
11098    sysv4.3*)
11099      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100      hardcode_shlibpath_var=no
11101      export_dynamic_flag_spec='-Bexport'
11102      ;;
11103
11104    sysv4*MP*)
11105      if test -d /usr/nec; then
11106	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107	hardcode_shlibpath_var=no
11108	runpath_var=LD_RUN_PATH
11109	hardcode_runpath_var=yes
11110	ld_shlibs=yes
11111      fi
11112      ;;
11113
11114    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11115      no_undefined_flag='$wl-z,text'
11116      archive_cmds_need_lc=no
11117      hardcode_shlibpath_var=no
11118      runpath_var='LD_RUN_PATH'
11119
11120      if test yes = "$GCC"; then
11121	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123      else
11124	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126      fi
11127      ;;
11128
11129    sysv5* | sco3.2v5* | sco5v6*)
11130      # Note: We CANNOT use -z defs as we might desire, because we do not
11131      # link with -lc, and that would cause any symbols used from libc to
11132      # always be unresolved, which means just about no library would
11133      # ever link correctly.  If we're not using GNU ld we use -z text
11134      # though, which does catch some bad symbols but isn't as heavy-handed
11135      # as -z defs.
11136      no_undefined_flag='$wl-z,text'
11137      allow_undefined_flag='$wl-z,nodefs'
11138      archive_cmds_need_lc=no
11139      hardcode_shlibpath_var=no
11140      hardcode_libdir_flag_spec='$wl-R,$libdir'
11141      hardcode_libdir_separator=':'
11142      link_all_deplibs=yes
11143      export_dynamic_flag_spec='$wl-Bexport'
11144      runpath_var='LD_RUN_PATH'
11145
11146      if test yes = "$GCC"; then
11147	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149      else
11150	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152      fi
11153      ;;
11154
11155    uts4*)
11156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157      hardcode_libdir_flag_spec='-L$libdir'
11158      hardcode_shlibpath_var=no
11159      ;;
11160
11161    *)
11162      ld_shlibs=no
11163      ;;
11164    esac
11165
11166    if test sni = "$host_vendor"; then
11167      case $host in
11168      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11169	export_dynamic_flag_spec='$wl-Blargedynsym'
11170	;;
11171      esac
11172    fi
11173  fi
11174
11175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11176printf "%s\n" "$ld_shlibs" >&6; }
11177test no = "$ld_shlibs" && can_build_shared=no
11178
11179with_gnu_ld=$with_gnu_ld
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195#
11196# Do we need to explicitly link libc?
11197#
11198case "x$archive_cmds_need_lc" in
11199x|xyes)
11200  # Assume -lc should be added
11201  archive_cmds_need_lc=yes
11202
11203  if test yes,yes = "$GCC,$enable_shared"; then
11204    case $archive_cmds in
11205    *'~'*)
11206      # FIXME: we may have to deal with multi-command sequences.
11207      ;;
11208    '$CC '*)
11209      # Test whether the compiler implicitly links with -lc since on some
11210      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11211      # to ld, don't add -lc before -lgcc.
11212      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11213printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11214if test ${lt_cv_archive_cmds_need_lc+y}
11215then :
11216  printf %s "(cached) " >&6
11217else $as_nop
11218  $RM conftest*
11219	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11220
11221	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11222  (eval $ac_compile) 2>&5
11223  ac_status=$?
11224  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225  test $ac_status = 0; } 2>conftest.err; then
11226	  soname=conftest
11227	  lib=conftest
11228	  libobjs=conftest.$ac_objext
11229	  deplibs=
11230	  wl=$lt_prog_compiler_wl
11231	  pic_flag=$lt_prog_compiler_pic
11232	  compiler_flags=-v
11233	  linker_flags=-v
11234	  verstring=
11235	  output_objdir=.
11236	  libname=conftest
11237	  lt_save_allow_undefined_flag=$allow_undefined_flag
11238	  allow_undefined_flag=
11239	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11240  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241  ac_status=$?
11242  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243  test $ac_status = 0; }
11244	  then
11245	    lt_cv_archive_cmds_need_lc=no
11246	  else
11247	    lt_cv_archive_cmds_need_lc=yes
11248	  fi
11249	  allow_undefined_flag=$lt_save_allow_undefined_flag
11250	else
11251	  cat conftest.err 1>&5
11252	fi
11253	$RM conftest*
11254
11255fi
11256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11257printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11258      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11259      ;;
11260    esac
11261  fi
11262  ;;
11263esac
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11417printf %s "checking dynamic linker characteristics... " >&6; }
11418
11419if test yes = "$GCC"; then
11420  case $host_os in
11421    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11422    *) lt_awk_arg='/^libraries:/' ;;
11423  esac
11424  case $host_os in
11425    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11426    *) lt_sed_strip_eq='s|=/|/|g' ;;
11427  esac
11428  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11429  case $lt_search_path_spec in
11430  *\;*)
11431    # if the path contains ";" then we assume it to be the separator
11432    # otherwise default to the standard path separator (i.e. ":") - it is
11433    # assumed that no part of a normal pathname contains ";" but that should
11434    # okay in the real world where ";" in dirpaths is itself problematic.
11435    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11436    ;;
11437  *)
11438    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11439    ;;
11440  esac
11441  # Ok, now we have the path, separated by spaces, we can step through it
11442  # and add multilib dir if necessary...
11443  lt_tmp_lt_search_path_spec=
11444  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11445  # ...but if some path component already ends with the multilib dir we assume
11446  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11447  case "$lt_multi_os_dir; $lt_search_path_spec " in
11448  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11449    lt_multi_os_dir=
11450    ;;
11451  esac
11452  for lt_sys_path in $lt_search_path_spec; do
11453    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11454      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11455    elif test -n "$lt_multi_os_dir"; then
11456      test -d "$lt_sys_path" && \
11457	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11458    fi
11459  done
11460  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11461BEGIN {RS = " "; FS = "/|\n";} {
11462  lt_foo = "";
11463  lt_count = 0;
11464  for (lt_i = NF; lt_i > 0; lt_i--) {
11465    if ($lt_i != "" && $lt_i != ".") {
11466      if ($lt_i == "..") {
11467        lt_count++;
11468      } else {
11469        if (lt_count == 0) {
11470          lt_foo = "/" $lt_i lt_foo;
11471        } else {
11472          lt_count--;
11473        }
11474      }
11475    }
11476  }
11477  if (lt_foo != "") { lt_freq[lt_foo]++; }
11478  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11479}'`
11480  # AWK program above erroneously prepends '/' to C:/dos/paths
11481  # for these hosts.
11482  case $host_os in
11483    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11484      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11485  esac
11486  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11487else
11488  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11489fi
11490library_names_spec=
11491libname_spec='lib$name'
11492soname_spec=
11493shrext_cmds=.so
11494postinstall_cmds=
11495postuninstall_cmds=
11496finish_cmds=
11497finish_eval=
11498shlibpath_var=
11499shlibpath_overrides_runpath=unknown
11500version_type=none
11501dynamic_linker="$host_os ld.so"
11502sys_lib_dlsearch_path_spec="/lib /usr/lib"
11503need_lib_prefix=unknown
11504hardcode_into_libs=no
11505
11506# when you set need_version to no, make sure it does not cause -set_version
11507# flags to be left without arguments
11508need_version=unknown
11509
11510
11511
11512case $host_os in
11513aix3*)
11514  version_type=linux # correct to gnu/linux during the next big refactor
11515  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11516  shlibpath_var=LIBPATH
11517
11518  # AIX 3 has no versioning support, so we append a major version to the name.
11519  soname_spec='$libname$release$shared_ext$major'
11520  ;;
11521
11522aix[4-9]*)
11523  version_type=linux # correct to gnu/linux during the next big refactor
11524  need_lib_prefix=no
11525  need_version=no
11526  hardcode_into_libs=yes
11527  if test ia64 = "$host_cpu"; then
11528    # AIX 5 supports IA64
11529    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11530    shlibpath_var=LD_LIBRARY_PATH
11531  else
11532    # With GCC up to 2.95.x, collect2 would create an import file
11533    # for dependence libraries.  The import file would start with
11534    # the line '#! .'.  This would cause the generated library to
11535    # depend on '.', always an invalid library.  This was fixed in
11536    # development snapshots of GCC prior to 3.0.
11537    case $host_os in
11538      aix4 | aix4.[01] | aix4.[01].*)
11539      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11540	   echo ' yes '
11541	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11542	:
11543      else
11544	can_build_shared=no
11545      fi
11546      ;;
11547    esac
11548    # Using Import Files as archive members, it is possible to support
11549    # filename-based versioning of shared library archives on AIX. While
11550    # this would work for both with and without runtime linking, it will
11551    # prevent static linking of such archives. So we do filename-based
11552    # shared library versioning with .so extension only, which is used
11553    # when both runtime linking and shared linking is enabled.
11554    # Unfortunately, runtime linking may impact performance, so we do
11555    # not want this to be the default eventually. Also, we use the
11556    # versioned .so libs for executables only if there is the -brtl
11557    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11558    # To allow for filename-based versioning support, we need to create
11559    # libNAME.so.V as an archive file, containing:
11560    # *) an Import File, referring to the versioned filename of the
11561    #    archive as well as the shared archive member, telling the
11562    #    bitwidth (32 or 64) of that shared object, and providing the
11563    #    list of exported symbols of that shared object, eventually
11564    #    decorated with the 'weak' keyword
11565    # *) the shared object with the F_LOADONLY flag set, to really avoid
11566    #    it being seen by the linker.
11567    # At run time we better use the real file rather than another symlink,
11568    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11569
11570    case $with_aix_soname,$aix_use_runtimelinking in
11571    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11572    # soname into executable. Probably we can add versioning support to
11573    # collect2, so additional links can be useful in future.
11574    aix,yes) # traditional libtool
11575      dynamic_linker='AIX unversionable lib.so'
11576      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577      # instead of lib<name>.a to let people know that these are not
11578      # typical AIX shared libraries.
11579      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580      ;;
11581    aix,no) # traditional AIX only
11582      dynamic_linker='AIX lib.a(lib.so.V)'
11583      # We preserve .a as extension for shared libraries through AIX4.2
11584      # and later when we are not doing run time linking.
11585      library_names_spec='$libname$release.a $libname.a'
11586      soname_spec='$libname$release$shared_ext$major'
11587      ;;
11588    svr4,*) # full svr4 only
11589      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11590      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11591      # We do not specify a path in Import Files, so LIBPATH fires.
11592      shlibpath_overrides_runpath=yes
11593      ;;
11594    *,yes) # both, prefer svr4
11595      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11596      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11597      # unpreferred sharedlib libNAME.a needs extra handling
11598      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"'
11599      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"'
11600      # We do not specify a path in Import Files, so LIBPATH fires.
11601      shlibpath_overrides_runpath=yes
11602      ;;
11603    *,no) # both, prefer aix
11604      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11605      library_names_spec='$libname$release.a $libname.a'
11606      soname_spec='$libname$release$shared_ext$major'
11607      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11608      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)'
11609      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"'
11610      ;;
11611    esac
11612    shlibpath_var=LIBPATH
11613  fi
11614  ;;
11615
11616amigaos*)
11617  case $host_cpu in
11618  powerpc)
11619    # Since July 2007 AmigaOS4 officially supports .so libraries.
11620    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11621    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622    ;;
11623  m68k)
11624    library_names_spec='$libname.ixlibrary $libname.a'
11625    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11626    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'
11627    ;;
11628  esac
11629  ;;
11630
11631beos*)
11632  library_names_spec='$libname$shared_ext'
11633  dynamic_linker="$host_os ld.so"
11634  shlibpath_var=LIBRARY_PATH
11635  ;;
11636
11637bsdi[45]*)
11638  version_type=linux # correct to gnu/linux during the next big refactor
11639  need_version=no
11640  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641  soname_spec='$libname$release$shared_ext$major'
11642  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11643  shlibpath_var=LD_LIBRARY_PATH
11644  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11645  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11646  # the default ld.so.conf also contains /usr/contrib/lib and
11647  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11648  # libtool to hard-code these into programs
11649  ;;
11650
11651cygwin* | mingw* | pw32* | cegcc*)
11652  version_type=windows
11653  shrext_cmds=.dll
11654  need_version=no
11655  need_lib_prefix=no
11656
11657  case $GCC,$cc_basename in
11658  yes,*)
11659    # gcc
11660    library_names_spec='$libname.dll.a'
11661    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11662    postinstall_cmds='base_file=`basename \$file`~
11663      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11664      dldir=$destdir/`dirname \$dlpath`~
11665      test -d \$dldir || mkdir -p \$dldir~
11666      $install_prog $dir/$dlname \$dldir/$dlname~
11667      chmod a+x \$dldir/$dlname~
11668      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11669        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11670      fi'
11671    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11672      dlpath=$dir/\$dldll~
11673       $RM \$dlpath'
11674    shlibpath_overrides_runpath=yes
11675
11676    case $host_os in
11677    cygwin*)
11678      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11679      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11680
11681      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11682      ;;
11683    mingw* | cegcc*)
11684      # MinGW DLLs use traditional 'lib' prefix
11685      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11686      ;;
11687    pw32*)
11688      # pw32 DLLs use 'pw' prefix rather than 'lib'
11689      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11690      ;;
11691    esac
11692    dynamic_linker='Win32 ld.exe'
11693    ;;
11694
11695  *,cl* | *,icl*)
11696    # Native MSVC or ICC
11697    libname_spec='$name'
11698    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11699    library_names_spec='$libname.dll.lib'
11700
11701    case $build_os in
11702    mingw*)
11703      sys_lib_search_path_spec=
11704      lt_save_ifs=$IFS
11705      IFS=';'
11706      for lt_path in $LIB
11707      do
11708        IFS=$lt_save_ifs
11709        # Let DOS variable expansion print the short 8.3 style file name.
11710        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11711        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11712      done
11713      IFS=$lt_save_ifs
11714      # Convert to MSYS style.
11715      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11716      ;;
11717    cygwin*)
11718      # Convert to unix form, then to dos form, then back to unix form
11719      # but this time dos style (no spaces!) so that the unix form looks
11720      # like /cygdrive/c/PROGRA~1:/cygdr...
11721      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11722      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11723      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11724      ;;
11725    *)
11726      sys_lib_search_path_spec=$LIB
11727      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11728        # It is most probably a Windows format PATH.
11729        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11730      else
11731        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11732      fi
11733      # FIXME: find the short name or the path components, as spaces are
11734      # common. (e.g. "Program Files" -> "PROGRA~1")
11735      ;;
11736    esac
11737
11738    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11739    postinstall_cmds='base_file=`basename \$file`~
11740      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11741      dldir=$destdir/`dirname \$dlpath`~
11742      test -d \$dldir || mkdir -p \$dldir~
11743      $install_prog $dir/$dlname \$dldir/$dlname'
11744    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11745      dlpath=$dir/\$dldll~
11746       $RM \$dlpath'
11747    shlibpath_overrides_runpath=yes
11748    dynamic_linker='Win32 link.exe'
11749    ;;
11750
11751  *)
11752    # Assume MSVC and ICC wrapper
11753    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11754    dynamic_linker='Win32 ld.exe'
11755    ;;
11756  esac
11757  # FIXME: first we should search . and the directory the executable is in
11758  shlibpath_var=PATH
11759  ;;
11760
11761darwin* | rhapsody*)
11762  dynamic_linker="$host_os dyld"
11763  version_type=darwin
11764  need_lib_prefix=no
11765  need_version=no
11766  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11767  soname_spec='$libname$release$major$shared_ext'
11768  shlibpath_overrides_runpath=yes
11769  shlibpath_var=DYLD_LIBRARY_PATH
11770  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11771
11772  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11773  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11774  ;;
11775
11776dgux*)
11777  version_type=linux # correct to gnu/linux during the next big refactor
11778  need_lib_prefix=no
11779  need_version=no
11780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781  soname_spec='$libname$release$shared_ext$major'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  ;;
11784
11785freebsd* | dragonfly* | midnightbsd*)
11786  # DragonFly does not have aout.  When/if they implement a new
11787  # versioning mechanism, adjust this.
11788  if test -x /usr/bin/objformat; then
11789    objformat=`/usr/bin/objformat`
11790  else
11791    case $host_os in
11792    freebsd[23].*) objformat=aout ;;
11793    *) objformat=elf ;;
11794    esac
11795  fi
11796  version_type=freebsd-$objformat
11797  case $version_type in
11798    freebsd-elf*)
11799      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800      soname_spec='$libname$release$shared_ext$major'
11801      need_version=no
11802      need_lib_prefix=no
11803      ;;
11804    freebsd-*)
11805      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11806      need_version=yes
11807      ;;
11808  esac
11809  shlibpath_var=LD_LIBRARY_PATH
11810  case $host_os in
11811  freebsd2.*)
11812    shlibpath_overrides_runpath=yes
11813    ;;
11814  freebsd3.[01]* | freebsdelf3.[01]*)
11815    shlibpath_overrides_runpath=yes
11816    hardcode_into_libs=yes
11817    ;;
11818  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11819  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11820    shlibpath_overrides_runpath=no
11821    hardcode_into_libs=yes
11822    ;;
11823  *) # from 4.6 on, and DragonFly
11824    shlibpath_overrides_runpath=yes
11825    hardcode_into_libs=yes
11826    ;;
11827  esac
11828  ;;
11829
11830haiku*)
11831  version_type=linux # correct to gnu/linux during the next big refactor
11832  need_lib_prefix=no
11833  need_version=no
11834  dynamic_linker="$host_os runtime_loader"
11835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836  soname_spec='$libname$release$shared_ext$major'
11837  shlibpath_var=LIBRARY_PATH
11838  shlibpath_overrides_runpath=no
11839  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11840  hardcode_into_libs=yes
11841  ;;
11842
11843hpux9* | hpux10* | hpux11*)
11844  # Give a soname corresponding to the major version so that dld.sl refuses to
11845  # link against other versions.
11846  version_type=sunos
11847  need_lib_prefix=no
11848  need_version=no
11849  case $host_cpu in
11850  ia64*)
11851    shrext_cmds='.so'
11852    hardcode_into_libs=yes
11853    dynamic_linker="$host_os dld.so"
11854    shlibpath_var=LD_LIBRARY_PATH
11855    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857    soname_spec='$libname$release$shared_ext$major'
11858    if test 32 = "$HPUX_IA64_MODE"; then
11859      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11861    else
11862      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11863      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11864    fi
11865    ;;
11866  hppa*64*)
11867    shrext_cmds='.sl'
11868    hardcode_into_libs=yes
11869    dynamic_linker="$host_os dld.sl"
11870    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11871    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11872    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11873    soname_spec='$libname$release$shared_ext$major'
11874    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11875    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11876    ;;
11877  *)
11878    shrext_cmds='.sl'
11879    dynamic_linker="$host_os dld.sl"
11880    shlibpath_var=SHLIB_PATH
11881    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11882    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883    soname_spec='$libname$release$shared_ext$major'
11884    ;;
11885  esac
11886  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11887  postinstall_cmds='chmod 555 $lib'
11888  # or fails outright, so override atomically:
11889  install_override_mode=555
11890  ;;
11891
11892interix[3-9]*)
11893  version_type=linux # correct to gnu/linux during the next big refactor
11894  need_lib_prefix=no
11895  need_version=no
11896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897  soname_spec='$libname$release$shared_ext$major'
11898  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11899  shlibpath_var=LD_LIBRARY_PATH
11900  shlibpath_overrides_runpath=no
11901  hardcode_into_libs=yes
11902  ;;
11903
11904irix5* | irix6* | nonstopux*)
11905  case $host_os in
11906    nonstopux*) version_type=nonstopux ;;
11907    *)
11908	if test yes = "$lt_cv_prog_gnu_ld"; then
11909		version_type=linux # correct to gnu/linux during the next big refactor
11910	else
11911		version_type=irix
11912	fi ;;
11913  esac
11914  need_lib_prefix=no
11915  need_version=no
11916  soname_spec='$libname$release$shared_ext$major'
11917  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11918  case $host_os in
11919  irix5* | nonstopux*)
11920    libsuff= shlibsuff=
11921    ;;
11922  *)
11923    case $LD in # libtool.m4 will add one of these switches to LD
11924    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11925      libsuff= shlibsuff= libmagic=32-bit;;
11926    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11927      libsuff=32 shlibsuff=N32 libmagic=N32;;
11928    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11929      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11930    *) libsuff= shlibsuff= libmagic=never-match;;
11931    esac
11932    ;;
11933  esac
11934  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11935  shlibpath_overrides_runpath=no
11936  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11937  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11938  hardcode_into_libs=yes
11939  ;;
11940
11941# No shared lib support for Linux oldld, aout, or coff.
11942linux*oldld* | linux*aout* | linux*coff*)
11943  dynamic_linker=no
11944  ;;
11945
11946linux*android*)
11947  version_type=none # Android doesn't support versioned libraries.
11948  need_lib_prefix=no
11949  need_version=no
11950  library_names_spec='$libname$release$shared_ext'
11951  soname_spec='$libname$release$shared_ext'
11952  finish_cmds=
11953  shlibpath_var=LD_LIBRARY_PATH
11954  shlibpath_overrides_runpath=yes
11955
11956  # This implies no fast_install, which is unacceptable.
11957  # Some rework will be needed to allow for fast_install
11958  # before this can be enabled.
11959  hardcode_into_libs=yes
11960
11961  dynamic_linker='Android linker'
11962  # Don't embed -rpath directories since the linker doesn't support them.
11963  hardcode_libdir_flag_spec='-L$libdir'
11964  ;;
11965
11966# This must be glibc/ELF.
11967linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11968  version_type=linux # correct to gnu/linux during the next big refactor
11969  need_lib_prefix=no
11970  need_version=no
11971  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972  soname_spec='$libname$release$shared_ext$major'
11973  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11974  shlibpath_var=LD_LIBRARY_PATH
11975  shlibpath_overrides_runpath=no
11976
11977  # Some binutils ld are patched to set DT_RUNPATH
11978  if test ${lt_cv_shlibpath_overrides_runpath+y}
11979then :
11980  printf %s "(cached) " >&6
11981else $as_nop
11982  lt_cv_shlibpath_overrides_runpath=no
11983    save_LDFLAGS=$LDFLAGS
11984    save_libdir=$libdir
11985    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11986	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h.  */
11989
11990int
11991main (void)
11992{
11993
11994  ;
11995  return 0;
11996}
11997_ACEOF
11998if ac_fn_c_try_link "$LINENO"
11999then :
12000  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12001then :
12002  lt_cv_shlibpath_overrides_runpath=yes
12003fi
12004fi
12005rm -f core conftest.err conftest.$ac_objext conftest.beam \
12006    conftest$ac_exeext conftest.$ac_ext
12007    LDFLAGS=$save_LDFLAGS
12008    libdir=$save_libdir
12009
12010fi
12011
12012  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12013
12014  # This implies no fast_install, which is unacceptable.
12015  # Some rework will be needed to allow for fast_install
12016  # before this can be enabled.
12017  hardcode_into_libs=yes
12018
12019  # Ideally, we could use ldconfig to report *all* directores which are
12020  # searched for libraries, however this is still not possible.  Aside from not
12021  # being certain /sbin/ldconfig is available, command
12022  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12023  # even though it is searched at run-time.  Try to do the best guess by
12024  # appending ld.so.conf contents (and includes) to the search path.
12025  if test -f /etc/ld.so.conf; then
12026    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' ' '`
12027    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12028  fi
12029
12030  # We used to test for /lib/ld.so.1 and disable shared libraries on
12031  # powerpc, because MkLinux only supported shared libraries with the
12032  # GNU dynamic linker.  Since this was broken with cross compilers,
12033  # most powerpc-linux boxes support dynamic linking these days and
12034  # people can always --disable-shared, the test was removed, and we
12035  # assume the GNU/Linux dynamic linker is in use.
12036  dynamic_linker='GNU/Linux ld.so'
12037  ;;
12038
12039netbsd*)
12040  version_type=sunos
12041  need_lib_prefix=no
12042  need_version=no
12043  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12044    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12045    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12046    dynamic_linker='NetBSD (a.out) ld.so'
12047  else
12048    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049    soname_spec='$libname$release$shared_ext$major'
12050    dynamic_linker='NetBSD ld.elf_so'
12051  fi
12052  shlibpath_var=LD_LIBRARY_PATH
12053  shlibpath_overrides_runpath=yes
12054  hardcode_into_libs=yes
12055  ;;
12056
12057newsos6)
12058  version_type=linux # correct to gnu/linux during the next big refactor
12059  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060  shlibpath_var=LD_LIBRARY_PATH
12061  shlibpath_overrides_runpath=yes
12062  ;;
12063
12064*nto* | *qnx*)
12065  version_type=qnx
12066  need_lib_prefix=no
12067  need_version=no
12068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069  soname_spec='$libname$release$shared_ext$major'
12070  shlibpath_var=LD_LIBRARY_PATH
12071  shlibpath_overrides_runpath=no
12072  hardcode_into_libs=yes
12073  dynamic_linker='ldqnx.so'
12074  ;;
12075
12076openbsd* | bitrig*)
12077  version_type=sunos
12078  sys_lib_dlsearch_path_spec=/usr/lib
12079  need_lib_prefix=no
12080  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12081    need_version=no
12082  else
12083    need_version=yes
12084  fi
12085  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12087  shlibpath_var=LD_LIBRARY_PATH
12088  shlibpath_overrides_runpath=yes
12089  ;;
12090
12091os2*)
12092  libname_spec='$name'
12093  version_type=windows
12094  shrext_cmds=.dll
12095  need_version=no
12096  need_lib_prefix=no
12097  # OS/2 can only load a DLL with a base name of 8 characters or less.
12098  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12099    v=$($ECHO $release$versuffix | tr -d .-);
12100    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12101    $ECHO $n$v`$shared_ext'
12102  library_names_spec='${libname}_dll.$libext'
12103  dynamic_linker='OS/2 ld.exe'
12104  shlibpath_var=BEGINLIBPATH
12105  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12106  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12107  postinstall_cmds='base_file=`basename \$file`~
12108    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12109    dldir=$destdir/`dirname \$dlpath`~
12110    test -d \$dldir || mkdir -p \$dldir~
12111    $install_prog $dir/$dlname \$dldir/$dlname~
12112    chmod a+x \$dldir/$dlname~
12113    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12115    fi'
12116  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12117    dlpath=$dir/\$dldll~
12118    $RM \$dlpath'
12119  ;;
12120
12121osf3* | osf4* | osf5*)
12122  version_type=osf
12123  need_lib_prefix=no
12124  need_version=no
12125  soname_spec='$libname$release$shared_ext$major'
12126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12129  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12130  ;;
12131
12132rdos*)
12133  dynamic_linker=no
12134  ;;
12135
12136solaris*)
12137  version_type=linux # correct to gnu/linux during the next big refactor
12138  need_lib_prefix=no
12139  need_version=no
12140  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12141  soname_spec='$libname$release$shared_ext$major'
12142  shlibpath_var=LD_LIBRARY_PATH
12143  shlibpath_overrides_runpath=yes
12144  hardcode_into_libs=yes
12145  # ldd complains unless libraries are executable
12146  postinstall_cmds='chmod +x $lib'
12147  ;;
12148
12149sunos4*)
12150  version_type=sunos
12151  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12152  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12153  shlibpath_var=LD_LIBRARY_PATH
12154  shlibpath_overrides_runpath=yes
12155  if test yes = "$with_gnu_ld"; then
12156    need_lib_prefix=no
12157  fi
12158  need_version=yes
12159  ;;
12160
12161sysv4 | sysv4.3*)
12162  version_type=linux # correct to gnu/linux during the next big refactor
12163  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164  soname_spec='$libname$release$shared_ext$major'
12165  shlibpath_var=LD_LIBRARY_PATH
12166  case $host_vendor in
12167    sni)
12168      shlibpath_overrides_runpath=no
12169      need_lib_prefix=no
12170      runpath_var=LD_RUN_PATH
12171      ;;
12172    siemens)
12173      need_lib_prefix=no
12174      ;;
12175    motorola)
12176      need_lib_prefix=no
12177      need_version=no
12178      shlibpath_overrides_runpath=no
12179      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12180      ;;
12181  esac
12182  ;;
12183
12184sysv4*MP*)
12185  if test -d /usr/nec; then
12186    version_type=linux # correct to gnu/linux during the next big refactor
12187    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12188    soname_spec='$libname$shared_ext.$major'
12189    shlibpath_var=LD_LIBRARY_PATH
12190  fi
12191  ;;
12192
12193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12194  version_type=sco
12195  need_lib_prefix=no
12196  need_version=no
12197  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12198  soname_spec='$libname$release$shared_ext$major'
12199  shlibpath_var=LD_LIBRARY_PATH
12200  shlibpath_overrides_runpath=yes
12201  hardcode_into_libs=yes
12202  if test yes = "$with_gnu_ld"; then
12203    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12204  else
12205    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12206    case $host_os in
12207      sco3.2v5*)
12208        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12209	;;
12210    esac
12211  fi
12212  sys_lib_dlsearch_path_spec='/usr/lib'
12213  ;;
12214
12215tpf*)
12216  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12217  version_type=linux # correct to gnu/linux during the next big refactor
12218  need_lib_prefix=no
12219  need_version=no
12220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221  shlibpath_var=LD_LIBRARY_PATH
12222  shlibpath_overrides_runpath=no
12223  hardcode_into_libs=yes
12224  ;;
12225
12226uts4*)
12227  version_type=linux # correct to gnu/linux during the next big refactor
12228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229  soname_spec='$libname$release$shared_ext$major'
12230  shlibpath_var=LD_LIBRARY_PATH
12231  ;;
12232
12233*)
12234  dynamic_linker=no
12235  ;;
12236esac
12237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12238printf "%s\n" "$dynamic_linker" >&6; }
12239test no = "$dynamic_linker" && can_build_shared=no
12240
12241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12242if test yes = "$GCC"; then
12243  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12244fi
12245
12246if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12247  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12248fi
12249
12250if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12251  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12252fi
12253
12254# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12255configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12256
12257# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12258func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12259
12260# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12261configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12360printf %s "checking how to hardcode library paths into programs... " >&6; }
12361hardcode_action=
12362if test -n "$hardcode_libdir_flag_spec" ||
12363   test -n "$runpath_var" ||
12364   test yes = "$hardcode_automatic"; then
12365
12366  # We can hardcode non-existent directories.
12367  if test no != "$hardcode_direct" &&
12368     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12369     # have to relink, otherwise we might link with an installed library
12370     # when we should be linking with a yet-to-be-installed one
12371     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12372     test no != "$hardcode_minus_L"; then
12373    # Linking always hardcodes the temporary library directory.
12374    hardcode_action=relink
12375  else
12376    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12377    hardcode_action=immediate
12378  fi
12379else
12380  # We cannot hardcode anything, or else we can only hardcode existing
12381  # directories.
12382  hardcode_action=unsupported
12383fi
12384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12385printf "%s\n" "$hardcode_action" >&6; }
12386
12387if test relink = "$hardcode_action" ||
12388   test yes = "$inherit_rpath"; then
12389  # Fast installation is not supported
12390  enable_fast_install=no
12391elif test yes = "$shlibpath_overrides_runpath" ||
12392     test no = "$enable_shared"; then
12393  # Fast installation is not necessary
12394  enable_fast_install=needless
12395fi
12396
12397
12398
12399
12400
12401
12402  if test yes != "$enable_dlopen"; then
12403  enable_dlopen=unknown
12404  enable_dlopen_self=unknown
12405  enable_dlopen_self_static=unknown
12406else
12407  lt_cv_dlopen=no
12408  lt_cv_dlopen_libs=
12409
12410  case $host_os in
12411  beos*)
12412    lt_cv_dlopen=load_add_on
12413    lt_cv_dlopen_libs=
12414    lt_cv_dlopen_self=yes
12415    ;;
12416
12417  mingw* | pw32* | cegcc*)
12418    lt_cv_dlopen=LoadLibrary
12419    lt_cv_dlopen_libs=
12420    ;;
12421
12422  cygwin*)
12423    lt_cv_dlopen=dlopen
12424    lt_cv_dlopen_libs=
12425    ;;
12426
12427  darwin*)
12428    # if libdl is installed we need to link against it
12429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12430printf %s "checking for dlopen in -ldl... " >&6; }
12431if test ${ac_cv_lib_dl_dlopen+y}
12432then :
12433  printf %s "(cached) " >&6
12434else $as_nop
12435  ac_check_lib_save_LIBS=$LIBS
12436LIBS="-ldl  $LIBS"
12437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h.  */
12439
12440/* Override any GCC internal prototype to avoid an error.
12441   Use char because int might match the return type of a GCC
12442   builtin and then its argument prototype would still apply.  */
12443char dlopen ();
12444int
12445main (void)
12446{
12447return dlopen ();
12448  ;
12449  return 0;
12450}
12451_ACEOF
12452if ac_fn_c_try_link "$LINENO"
12453then :
12454  ac_cv_lib_dl_dlopen=yes
12455else $as_nop
12456  ac_cv_lib_dl_dlopen=no
12457fi
12458rm -f core conftest.err conftest.$ac_objext conftest.beam \
12459    conftest$ac_exeext conftest.$ac_ext
12460LIBS=$ac_check_lib_save_LIBS
12461fi
12462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12463printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12464if test "x$ac_cv_lib_dl_dlopen" = xyes
12465then :
12466  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12467else $as_nop
12468
12469    lt_cv_dlopen=dyld
12470    lt_cv_dlopen_libs=
12471    lt_cv_dlopen_self=yes
12472
12473fi
12474
12475    ;;
12476
12477  tpf*)
12478    # Don't try to run any link tests for TPF.  We know it's impossible
12479    # because TPF is a cross-compiler, and we know how we open DSOs.
12480    lt_cv_dlopen=dlopen
12481    lt_cv_dlopen_libs=
12482    lt_cv_dlopen_self=no
12483    ;;
12484
12485  *)
12486    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12487if test "x$ac_cv_func_shl_load" = xyes
12488then :
12489  lt_cv_dlopen=shl_load
12490else $as_nop
12491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12492printf %s "checking for shl_load in -ldld... " >&6; }
12493if test ${ac_cv_lib_dld_shl_load+y}
12494then :
12495  printf %s "(cached) " >&6
12496else $as_nop
12497  ac_check_lib_save_LIBS=$LIBS
12498LIBS="-ldld  $LIBS"
12499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500/* end confdefs.h.  */
12501
12502/* Override any GCC internal prototype to avoid an error.
12503   Use char because int might match the return type of a GCC
12504   builtin and then its argument prototype would still apply.  */
12505char shl_load ();
12506int
12507main (void)
12508{
12509return shl_load ();
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"
12515then :
12516  ac_cv_lib_dld_shl_load=yes
12517else $as_nop
12518  ac_cv_lib_dld_shl_load=no
12519fi
12520rm -f core conftest.err conftest.$ac_objext conftest.beam \
12521    conftest$ac_exeext conftest.$ac_ext
12522LIBS=$ac_check_lib_save_LIBS
12523fi
12524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12525printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12526if test "x$ac_cv_lib_dld_shl_load" = xyes
12527then :
12528  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12529else $as_nop
12530  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12531if test "x$ac_cv_func_dlopen" = xyes
12532then :
12533  lt_cv_dlopen=dlopen
12534else $as_nop
12535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12536printf %s "checking for dlopen in -ldl... " >&6; }
12537if test ${ac_cv_lib_dl_dlopen+y}
12538then :
12539  printf %s "(cached) " >&6
12540else $as_nop
12541  ac_check_lib_save_LIBS=$LIBS
12542LIBS="-ldl  $LIBS"
12543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544/* end confdefs.h.  */
12545
12546/* Override any GCC internal prototype to avoid an error.
12547   Use char because int might match the return type of a GCC
12548   builtin and then its argument prototype would still apply.  */
12549char dlopen ();
12550int
12551main (void)
12552{
12553return dlopen ();
12554  ;
12555  return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_link "$LINENO"
12559then :
12560  ac_cv_lib_dl_dlopen=yes
12561else $as_nop
12562  ac_cv_lib_dl_dlopen=no
12563fi
12564rm -f core conftest.err conftest.$ac_objext conftest.beam \
12565    conftest$ac_exeext conftest.$ac_ext
12566LIBS=$ac_check_lib_save_LIBS
12567fi
12568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12569printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12570if test "x$ac_cv_lib_dl_dlopen" = xyes
12571then :
12572  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12573else $as_nop
12574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12575printf %s "checking for dlopen in -lsvld... " >&6; }
12576if test ${ac_cv_lib_svld_dlopen+y}
12577then :
12578  printf %s "(cached) " >&6
12579else $as_nop
12580  ac_check_lib_save_LIBS=$LIBS
12581LIBS="-lsvld  $LIBS"
12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h.  */
12584
12585/* Override any GCC internal prototype to avoid an error.
12586   Use char because int might match the return type of a GCC
12587   builtin and then its argument prototype would still apply.  */
12588char dlopen ();
12589int
12590main (void)
12591{
12592return dlopen ();
12593  ;
12594  return 0;
12595}
12596_ACEOF
12597if ac_fn_c_try_link "$LINENO"
12598then :
12599  ac_cv_lib_svld_dlopen=yes
12600else $as_nop
12601  ac_cv_lib_svld_dlopen=no
12602fi
12603rm -f core conftest.err conftest.$ac_objext conftest.beam \
12604    conftest$ac_exeext conftest.$ac_ext
12605LIBS=$ac_check_lib_save_LIBS
12606fi
12607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12608printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12609if test "x$ac_cv_lib_svld_dlopen" = xyes
12610then :
12611  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12612else $as_nop
12613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12614printf %s "checking for dld_link in -ldld... " >&6; }
12615if test ${ac_cv_lib_dld_dld_link+y}
12616then :
12617  printf %s "(cached) " >&6
12618else $as_nop
12619  ac_check_lib_save_LIBS=$LIBS
12620LIBS="-ldld  $LIBS"
12621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622/* end confdefs.h.  */
12623
12624/* Override any GCC internal prototype to avoid an error.
12625   Use char because int might match the return type of a GCC
12626   builtin and then its argument prototype would still apply.  */
12627char dld_link ();
12628int
12629main (void)
12630{
12631return dld_link ();
12632  ;
12633  return 0;
12634}
12635_ACEOF
12636if ac_fn_c_try_link "$LINENO"
12637then :
12638  ac_cv_lib_dld_dld_link=yes
12639else $as_nop
12640  ac_cv_lib_dld_dld_link=no
12641fi
12642rm -f core conftest.err conftest.$ac_objext conftest.beam \
12643    conftest$ac_exeext conftest.$ac_ext
12644LIBS=$ac_check_lib_save_LIBS
12645fi
12646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12647printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12648if test "x$ac_cv_lib_dld_dld_link" = xyes
12649then :
12650  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12651fi
12652
12653
12654fi
12655
12656
12657fi
12658
12659
12660fi
12661
12662
12663fi
12664
12665
12666fi
12667
12668    ;;
12669  esac
12670
12671  if test no = "$lt_cv_dlopen"; then
12672    enable_dlopen=no
12673  else
12674    enable_dlopen=yes
12675  fi
12676
12677  case $lt_cv_dlopen in
12678  dlopen)
12679    save_CPPFLAGS=$CPPFLAGS
12680    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12681
12682    save_LDFLAGS=$LDFLAGS
12683    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12684
12685    save_LIBS=$LIBS
12686    LIBS="$lt_cv_dlopen_libs $LIBS"
12687
12688    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12689printf %s "checking whether a program can dlopen itself... " >&6; }
12690if test ${lt_cv_dlopen_self+y}
12691then :
12692  printf %s "(cached) " >&6
12693else $as_nop
12694  	  if test yes = "$cross_compiling"; then :
12695  lt_cv_dlopen_self=cross
12696else
12697  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12698  lt_status=$lt_dlunknown
12699  cat > conftest.$ac_ext <<_LT_EOF
12700#line $LINENO "configure"
12701#include "confdefs.h"
12702
12703#if HAVE_DLFCN_H
12704#include <dlfcn.h>
12705#endif
12706
12707#include <stdio.h>
12708
12709#ifdef RTLD_GLOBAL
12710#  define LT_DLGLOBAL		RTLD_GLOBAL
12711#else
12712#  ifdef DL_GLOBAL
12713#    define LT_DLGLOBAL		DL_GLOBAL
12714#  else
12715#    define LT_DLGLOBAL		0
12716#  endif
12717#endif
12718
12719/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12720   find out it does not work in some platform. */
12721#ifndef LT_DLLAZY_OR_NOW
12722#  ifdef RTLD_LAZY
12723#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12724#  else
12725#    ifdef DL_LAZY
12726#      define LT_DLLAZY_OR_NOW		DL_LAZY
12727#    else
12728#      ifdef RTLD_NOW
12729#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12730#      else
12731#        ifdef DL_NOW
12732#          define LT_DLLAZY_OR_NOW	DL_NOW
12733#        else
12734#          define LT_DLLAZY_OR_NOW	0
12735#        endif
12736#      endif
12737#    endif
12738#  endif
12739#endif
12740
12741/* When -fvisibility=hidden is used, assume the code has been annotated
12742   correspondingly for the symbols needed.  */
12743#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12744int fnord () __attribute__((visibility("default")));
12745#endif
12746
12747int fnord () { return 42; }
12748int main ()
12749{
12750  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12751  int status = $lt_dlunknown;
12752
12753  if (self)
12754    {
12755      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12756      else
12757        {
12758	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12759          else puts (dlerror ());
12760	}
12761      /* dlclose (self); */
12762    }
12763  else
12764    puts (dlerror ());
12765
12766  return status;
12767}
12768_LT_EOF
12769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12770  (eval $ac_link) 2>&5
12771  ac_status=$?
12772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12774    (./conftest; exit; ) >&5 2>/dev/null
12775    lt_status=$?
12776    case x$lt_status in
12777      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12778      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12779      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12780    esac
12781  else :
12782    # compilation failed
12783    lt_cv_dlopen_self=no
12784  fi
12785fi
12786rm -fr conftest*
12787
12788
12789fi
12790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12791printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12792
12793    if test yes = "$lt_cv_dlopen_self"; then
12794      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12795      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12796printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12797if test ${lt_cv_dlopen_self_static+y}
12798then :
12799  printf %s "(cached) " >&6
12800else $as_nop
12801  	  if test yes = "$cross_compiling"; then :
12802  lt_cv_dlopen_self_static=cross
12803else
12804  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12805  lt_status=$lt_dlunknown
12806  cat > conftest.$ac_ext <<_LT_EOF
12807#line $LINENO "configure"
12808#include "confdefs.h"
12809
12810#if HAVE_DLFCN_H
12811#include <dlfcn.h>
12812#endif
12813
12814#include <stdio.h>
12815
12816#ifdef RTLD_GLOBAL
12817#  define LT_DLGLOBAL		RTLD_GLOBAL
12818#else
12819#  ifdef DL_GLOBAL
12820#    define LT_DLGLOBAL		DL_GLOBAL
12821#  else
12822#    define LT_DLGLOBAL		0
12823#  endif
12824#endif
12825
12826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12827   find out it does not work in some platform. */
12828#ifndef LT_DLLAZY_OR_NOW
12829#  ifdef RTLD_LAZY
12830#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12831#  else
12832#    ifdef DL_LAZY
12833#      define LT_DLLAZY_OR_NOW		DL_LAZY
12834#    else
12835#      ifdef RTLD_NOW
12836#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12837#      else
12838#        ifdef DL_NOW
12839#          define LT_DLLAZY_OR_NOW	DL_NOW
12840#        else
12841#          define LT_DLLAZY_OR_NOW	0
12842#        endif
12843#      endif
12844#    endif
12845#  endif
12846#endif
12847
12848/* When -fvisibility=hidden is used, assume the code has been annotated
12849   correspondingly for the symbols needed.  */
12850#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12851int fnord () __attribute__((visibility("default")));
12852#endif
12853
12854int fnord () { return 42; }
12855int main ()
12856{
12857  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12858  int status = $lt_dlunknown;
12859
12860  if (self)
12861    {
12862      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12863      else
12864        {
12865	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12866          else puts (dlerror ());
12867	}
12868      /* dlclose (self); */
12869    }
12870  else
12871    puts (dlerror ());
12872
12873  return status;
12874}
12875_LT_EOF
12876  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12877  (eval $ac_link) 2>&5
12878  ac_status=$?
12879  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12881    (./conftest; exit; ) >&5 2>/dev/null
12882    lt_status=$?
12883    case x$lt_status in
12884      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12885      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12886      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12887    esac
12888  else :
12889    # compilation failed
12890    lt_cv_dlopen_self_static=no
12891  fi
12892fi
12893rm -fr conftest*
12894
12895
12896fi
12897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12898printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12899    fi
12900
12901    CPPFLAGS=$save_CPPFLAGS
12902    LDFLAGS=$save_LDFLAGS
12903    LIBS=$save_LIBS
12904    ;;
12905  esac
12906
12907  case $lt_cv_dlopen_self in
12908  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12909  *) enable_dlopen_self=unknown ;;
12910  esac
12911
12912  case $lt_cv_dlopen_self_static in
12913  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12914  *) enable_dlopen_self_static=unknown ;;
12915  esac
12916fi
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934striplib=
12935old_striplib=
12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12937printf %s "checking whether stripping libraries is possible... " >&6; }
12938if test -z "$STRIP"; then
12939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940printf "%s\n" "no" >&6; }
12941else
12942  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12943    old_striplib="$STRIP --strip-debug"
12944    striplib="$STRIP --strip-unneeded"
12945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946printf "%s\n" "yes" >&6; }
12947  else
12948    case $host_os in
12949    darwin*)
12950      # FIXME - insert some real tests, host_os isn't really good enough
12951      striplib="$STRIP -x"
12952      old_striplib="$STRIP -S"
12953      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954printf "%s\n" "yes" >&6; }
12955      ;;
12956    freebsd*)
12957      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12958        old_striplib="$STRIP --strip-debug"
12959        striplib="$STRIP --strip-unneeded"
12960        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961printf "%s\n" "yes" >&6; }
12962      else
12963        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964printf "%s\n" "no" >&6; }
12965      fi
12966      ;;
12967    *)
12968      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969printf "%s\n" "no" >&6; }
12970      ;;
12971    esac
12972  fi
12973fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986  # Report what library types will actually be built
12987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12988printf %s "checking if libtool supports shared libraries... " >&6; }
12989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12990printf "%s\n" "$can_build_shared" >&6; }
12991
12992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12993printf %s "checking whether to build shared libraries... " >&6; }
12994  test no = "$can_build_shared" && enable_shared=no
12995
12996  # On AIX, shared libraries and static libraries use the same namespace, and
12997  # are all built from PIC.
12998  case $host_os in
12999  aix3*)
13000    test yes = "$enable_shared" && enable_static=no
13001    if test -n "$RANLIB"; then
13002      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13003      postinstall_cmds='$RANLIB $lib'
13004    fi
13005    ;;
13006
13007  aix[4-9]*)
13008    if test ia64 != "$host_cpu"; then
13009      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13010      yes,aix,yes) ;;			# shared object as lib.so file only
13011      yes,svr4,*) ;;			# shared object as lib.so archive member only
13012      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13013      esac
13014    fi
13015    ;;
13016  esac
13017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13018printf "%s\n" "$enable_shared" >&6; }
13019
13020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13021printf %s "checking whether to build static libraries... " >&6; }
13022  # Make sure either enable_shared or enable_static is yes.
13023  test yes = "$enable_shared" || enable_static=yes
13024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13025printf "%s\n" "$enable_static" >&6; }
13026
13027
13028
13029
13030fi
13031ac_ext=c
13032ac_cpp='$CPP $CPPFLAGS'
13033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
13037CC=$lt_save_CC
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053        ac_config_commands="$ac_config_commands libtool"
13054
13055
13056
13057
13058# Only expand once:
13059
13060
13061
13062# Require xorg-macros minimum of 1.10 for DocBook XML documentation
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13076printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13077if test ${ac_cv_c_undeclared_builtin_options+y}
13078then :
13079  printf %s "(cached) " >&6
13080else $as_nop
13081  ac_save_CFLAGS=$CFLAGS
13082   ac_cv_c_undeclared_builtin_options='cannot detect'
13083   for ac_arg in '' -fno-builtin; do
13084     CFLAGS="$ac_save_CFLAGS $ac_arg"
13085     # This test program should *not* compile successfully.
13086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088
13089int
13090main (void)
13091{
13092(void) strchr;
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"
13098then :
13099
13100else $as_nop
13101  # This test program should compile successfully.
13102        # No library function is consistently available on
13103        # freestanding implementations, so test against a dummy
13104        # declaration.  Include always-available headers on the
13105        # off chance that they somehow elicit warnings.
13106        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h.  */
13108#include <float.h>
13109#include <limits.h>
13110#include <stdarg.h>
13111#include <stddef.h>
13112extern void ac_decl (int, char *);
13113
13114int
13115main (void)
13116{
13117(void) ac_decl (0, (char *) 0);
13118  (void) ac_decl;
13119
13120  ;
13121  return 0;
13122}
13123_ACEOF
13124if ac_fn_c_try_compile "$LINENO"
13125then :
13126  if test x"$ac_arg" = x
13127then :
13128  ac_cv_c_undeclared_builtin_options='none needed'
13129else $as_nop
13130  ac_cv_c_undeclared_builtin_options=$ac_arg
13131fi
13132          break
13133fi
13134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13135fi
13136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13137    done
13138    CFLAGS=$ac_save_CFLAGS
13139
13140fi
13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13142printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13143  case $ac_cv_c_undeclared_builtin_options in #(
13144  'cannot detect') :
13145    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13146printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13147as_fn_error $? "cannot make $CC report undeclared builtins
13148See \`config.log' for more details" "$LINENO" 5; } ;; #(
13149  'none needed') :
13150    ac_c_undeclared_builtin_options='' ;; #(
13151  *) :
13152    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13153esac
13154
13155
13156
13157
13158
13159ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13160if test "x$ac_cv_have_decl___clang__" = xyes
13161then :
13162  CLANGCC="yes"
13163else $as_nop
13164  CLANGCC="no"
13165fi
13166ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13167if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13168then :
13169  INTELCC="yes"
13170else $as_nop
13171  INTELCC="no"
13172fi
13173ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13174if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13175then :
13176  SUNCC="yes"
13177else $as_nop
13178  SUNCC="no"
13179fi
13180
13181
13182
13183
13184
13185
13186
13187
13188if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13189	if test -n "$ac_tool_prefix"; then
13190  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13191set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193printf %s "checking for $ac_word... " >&6; }
13194if test ${ac_cv_path_PKG_CONFIG+y}
13195then :
13196  printf %s "(cached) " >&6
13197else $as_nop
13198  case $PKG_CONFIG in
13199  [\\/]* | ?:[\\/]*)
13200  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13201  ;;
13202  *)
13203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206  IFS=$as_save_IFS
13207  case $as_dir in #(((
13208    '') as_dir=./ ;;
13209    */) ;;
13210    *) as_dir=$as_dir/ ;;
13211  esac
13212    for ac_exec_ext in '' $ac_executable_extensions; do
13213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13214    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13216    break 2
13217  fi
13218done
13219  done
13220IFS=$as_save_IFS
13221
13222  ;;
13223esac
13224fi
13225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13226if test -n "$PKG_CONFIG"; then
13227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13228printf "%s\n" "$PKG_CONFIG" >&6; }
13229else
13230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231printf "%s\n" "no" >&6; }
13232fi
13233
13234
13235fi
13236if test -z "$ac_cv_path_PKG_CONFIG"; then
13237  ac_pt_PKG_CONFIG=$PKG_CONFIG
13238  # Extract the first word of "pkg-config", so it can be a program name with args.
13239set dummy pkg-config; ac_word=$2
13240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241printf %s "checking for $ac_word... " >&6; }
13242if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13243then :
13244  printf %s "(cached) " >&6
13245else $as_nop
13246  case $ac_pt_PKG_CONFIG in
13247  [\\/]* | ?:[\\/]*)
13248  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13249  ;;
13250  *)
13251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $PATH
13253do
13254  IFS=$as_save_IFS
13255  case $as_dir in #(((
13256    '') as_dir=./ ;;
13257    */) ;;
13258    *) as_dir=$as_dir/ ;;
13259  esac
13260    for ac_exec_ext in '' $ac_executable_extensions; do
13261  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13262    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13263    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13264    break 2
13265  fi
13266done
13267  done
13268IFS=$as_save_IFS
13269
13270  ;;
13271esac
13272fi
13273ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13274if test -n "$ac_pt_PKG_CONFIG"; then
13275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13276printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13277else
13278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279printf "%s\n" "no" >&6; }
13280fi
13281
13282  if test "x$ac_pt_PKG_CONFIG" = x; then
13283    PKG_CONFIG=""
13284  else
13285    case $cross_compiling:$ac_tool_warned in
13286yes:)
13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13289ac_tool_warned=yes ;;
13290esac
13291    PKG_CONFIG=$ac_pt_PKG_CONFIG
13292  fi
13293else
13294  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13295fi
13296
13297fi
13298if test -n "$PKG_CONFIG"; then
13299	_pkg_min_version=0.9.0
13300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13301printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13302	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304printf "%s\n" "yes" >&6; }
13305	else
13306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307printf "%s\n" "no" >&6; }
13308		PKG_CONFIG=""
13309	fi
13310fi
13311
13312
13313
13314
13315
13316# Check whether --enable-selective-werror was given.
13317if test ${enable_selective_werror+y}
13318then :
13319  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13320else $as_nop
13321  SELECTIVE_WERROR=yes
13322fi
13323
13324
13325
13326
13327
13328# -v is too short to test reliably with XORG_TESTSET_CFLAG
13329if test "x$SUNCC" = "xyes"; then
13330    BASE_CFLAGS="-v"
13331else
13332    BASE_CFLAGS=""
13333fi
13334
13335# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349xorg_testset_save_CFLAGS="$CFLAGS"
13350
13351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13355if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13356then :
13357  printf %s "(cached) " >&6
13358else $as_nop
13359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360/* end confdefs.h.  */
13361int i;
13362_ACEOF
13363if ac_fn_c_try_compile "$LINENO"
13364then :
13365  xorg_cv_cc_flag_unknown_warning_option=yes
13366else $as_nop
13367  xorg_cv_cc_flag_unknown_warning_option=no
13368fi
13369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13370fi
13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13374	CFLAGS="$xorg_testset_save_CFLAGS"
13375fi
13376
13377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13380	fi
13381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13385then :
13386  printf %s "(cached) " >&6
13387else $as_nop
13388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h.  */
13390int i;
13391_ACEOF
13392if ac_fn_c_try_compile "$LINENO"
13393then :
13394  xorg_cv_cc_flag_unused_command_line_argument=yes
13395else $as_nop
13396  xorg_cv_cc_flag_unused_command_line_argument=no
13397fi
13398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13399fi
13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13403	CFLAGS="$xorg_testset_save_CFLAGS"
13404fi
13405
13406found="no"
13407
13408	if test $found = "no" ; then
13409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13411		fi
13412
13413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13415		fi
13416
13417		CFLAGS="$CFLAGS -Wall"
13418
13419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13420printf %s "checking if $CC supports -Wall... " >&6; }
13421		cacheid=xorg_cv_cc_flag__Wall
13422		if eval test \${$cacheid+y}
13423then :
13424  printf %s "(cached) " >&6
13425else $as_nop
13426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427/* end confdefs.h.  */
13428int i;
13429int
13430main (void)
13431{
13432
13433  ;
13434  return 0;
13435}
13436_ACEOF
13437if ac_fn_c_try_link "$LINENO"
13438then :
13439  eval $cacheid=yes
13440else $as_nop
13441  eval $cacheid=no
13442fi
13443rm -f core conftest.err conftest.$ac_objext conftest.beam \
13444    conftest$ac_exeext conftest.$ac_ext
13445fi
13446
13447
13448		CFLAGS="$xorg_testset_save_CFLAGS"
13449
13450		eval supported=\$$cacheid
13451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13452printf "%s\n" "$supported" >&6; }
13453		if test "$supported" = "yes" ; then
13454			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13455			found="yes"
13456		fi
13457	fi
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473xorg_testset_save_CFLAGS="$CFLAGS"
13474
13475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13480then :
13481  printf %s "(cached) " >&6
13482else $as_nop
13483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h.  */
13485int i;
13486_ACEOF
13487if ac_fn_c_try_compile "$LINENO"
13488then :
13489  xorg_cv_cc_flag_unknown_warning_option=yes
13490else $as_nop
13491  xorg_cv_cc_flag_unknown_warning_option=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13494fi
13495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13498	CFLAGS="$xorg_testset_save_CFLAGS"
13499fi
13500
13501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504	fi
13505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13509then :
13510  printf %s "(cached) " >&6
13511else $as_nop
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514int i;
13515_ACEOF
13516if ac_fn_c_try_compile "$LINENO"
13517then :
13518  xorg_cv_cc_flag_unused_command_line_argument=yes
13519else $as_nop
13520  xorg_cv_cc_flag_unused_command_line_argument=no
13521fi
13522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13523fi
13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13527	CFLAGS="$xorg_testset_save_CFLAGS"
13528fi
13529
13530found="no"
13531
13532	if test $found = "no" ; then
13533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535		fi
13536
13537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13539		fi
13540
13541		CFLAGS="$CFLAGS -Wpointer-arith"
13542
13543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13544printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13545		cacheid=xorg_cv_cc_flag__Wpointer_arith
13546		if eval test \${$cacheid+y}
13547then :
13548  printf %s "(cached) " >&6
13549else $as_nop
13550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551/* end confdefs.h.  */
13552int i;
13553int
13554main (void)
13555{
13556
13557  ;
13558  return 0;
13559}
13560_ACEOF
13561if ac_fn_c_try_link "$LINENO"
13562then :
13563  eval $cacheid=yes
13564else $as_nop
13565  eval $cacheid=no
13566fi
13567rm -f core conftest.err conftest.$ac_objext conftest.beam \
13568    conftest$ac_exeext conftest.$ac_ext
13569fi
13570
13571
13572		CFLAGS="$xorg_testset_save_CFLAGS"
13573
13574		eval supported=\$$cacheid
13575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13576printf "%s\n" "$supported" >&6; }
13577		if test "$supported" = "yes" ; then
13578			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13579			found="yes"
13580		fi
13581	fi
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597xorg_testset_save_CFLAGS="$CFLAGS"
13598
13599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13603if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13604then :
13605  printf %s "(cached) " >&6
13606else $as_nop
13607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609int i;
13610_ACEOF
13611if ac_fn_c_try_compile "$LINENO"
13612then :
13613  xorg_cv_cc_flag_unknown_warning_option=yes
13614else $as_nop
13615  xorg_cv_cc_flag_unknown_warning_option=no
13616fi
13617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13618fi
13619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13622	CFLAGS="$xorg_testset_save_CFLAGS"
13623fi
13624
13625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628	fi
13629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13632if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13633then :
13634  printf %s "(cached) " >&6
13635else $as_nop
13636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637/* end confdefs.h.  */
13638int i;
13639_ACEOF
13640if ac_fn_c_try_compile "$LINENO"
13641then :
13642  xorg_cv_cc_flag_unused_command_line_argument=yes
13643else $as_nop
13644  xorg_cv_cc_flag_unused_command_line_argument=no
13645fi
13646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13647fi
13648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13651	CFLAGS="$xorg_testset_save_CFLAGS"
13652fi
13653
13654found="no"
13655
13656	if test $found = "no" ; then
13657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13659		fi
13660
13661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13663		fi
13664
13665		CFLAGS="$CFLAGS -Wmissing-declarations"
13666
13667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13668printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13669		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13670		if eval test \${$cacheid+y}
13671then :
13672  printf %s "(cached) " >&6
13673else $as_nop
13674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h.  */
13676int i;
13677int
13678main (void)
13679{
13680
13681  ;
13682  return 0;
13683}
13684_ACEOF
13685if ac_fn_c_try_link "$LINENO"
13686then :
13687  eval $cacheid=yes
13688else $as_nop
13689  eval $cacheid=no
13690fi
13691rm -f core conftest.err conftest.$ac_objext conftest.beam \
13692    conftest$ac_exeext conftest.$ac_ext
13693fi
13694
13695
13696		CFLAGS="$xorg_testset_save_CFLAGS"
13697
13698		eval supported=\$$cacheid
13699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13700printf "%s\n" "$supported" >&6; }
13701		if test "$supported" = "yes" ; then
13702			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13703			found="yes"
13704		fi
13705	fi
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721xorg_testset_save_CFLAGS="$CFLAGS"
13722
13723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13726printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13727if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13728then :
13729  printf %s "(cached) " >&6
13730else $as_nop
13731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h.  */
13733int i;
13734_ACEOF
13735if ac_fn_c_try_compile "$LINENO"
13736then :
13737  xorg_cv_cc_flag_unknown_warning_option=yes
13738else $as_nop
13739  xorg_cv_cc_flag_unknown_warning_option=no
13740fi
13741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13742fi
13743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13746	CFLAGS="$xorg_testset_save_CFLAGS"
13747fi
13748
13749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752	fi
13753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13756if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13757then :
13758  printf %s "(cached) " >&6
13759else $as_nop
13760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761/* end confdefs.h.  */
13762int i;
13763_ACEOF
13764if ac_fn_c_try_compile "$LINENO"
13765then :
13766  xorg_cv_cc_flag_unused_command_line_argument=yes
13767else $as_nop
13768  xorg_cv_cc_flag_unused_command_line_argument=no
13769fi
13770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13771fi
13772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13775	CFLAGS="$xorg_testset_save_CFLAGS"
13776fi
13777
13778found="no"
13779
13780	if test $found = "no" ; then
13781		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783		fi
13784
13785		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13787		fi
13788
13789		CFLAGS="$CFLAGS -Wformat=2"
13790
13791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13792printf %s "checking if $CC supports -Wformat=2... " >&6; }
13793		cacheid=xorg_cv_cc_flag__Wformat_2
13794		if eval test \${$cacheid+y}
13795then :
13796  printf %s "(cached) " >&6
13797else $as_nop
13798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799/* end confdefs.h.  */
13800int i;
13801int
13802main (void)
13803{
13804
13805  ;
13806  return 0;
13807}
13808_ACEOF
13809if ac_fn_c_try_link "$LINENO"
13810then :
13811  eval $cacheid=yes
13812else $as_nop
13813  eval $cacheid=no
13814fi
13815rm -f core conftest.err conftest.$ac_objext conftest.beam \
13816    conftest$ac_exeext conftest.$ac_ext
13817fi
13818
13819
13820		CFLAGS="$xorg_testset_save_CFLAGS"
13821
13822		eval supported=\$$cacheid
13823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13824printf "%s\n" "$supported" >&6; }
13825		if test "$supported" = "yes" ; then
13826			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13827			found="yes"
13828		fi
13829	fi
13830
13831	if test $found = "no" ; then
13832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13834		fi
13835
13836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13838		fi
13839
13840		CFLAGS="$CFLAGS -Wformat"
13841
13842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13843printf %s "checking if $CC supports -Wformat... " >&6; }
13844		cacheid=xorg_cv_cc_flag__Wformat
13845		if eval test \${$cacheid+y}
13846then :
13847  printf %s "(cached) " >&6
13848else $as_nop
13849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h.  */
13851int i;
13852int
13853main (void)
13854{
13855
13856  ;
13857  return 0;
13858}
13859_ACEOF
13860if ac_fn_c_try_link "$LINENO"
13861then :
13862  eval $cacheid=yes
13863else $as_nop
13864  eval $cacheid=no
13865fi
13866rm -f core conftest.err conftest.$ac_objext conftest.beam \
13867    conftest$ac_exeext conftest.$ac_ext
13868fi
13869
13870
13871		CFLAGS="$xorg_testset_save_CFLAGS"
13872
13873		eval supported=\$$cacheid
13874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13875printf "%s\n" "$supported" >&6; }
13876		if test "$supported" = "yes" ; then
13877			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13878			found="yes"
13879		fi
13880	fi
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898xorg_testset_save_CFLAGS="$CFLAGS"
13899
13900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13905then :
13906  printf %s "(cached) " >&6
13907else $as_nop
13908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h.  */
13910int i;
13911_ACEOF
13912if ac_fn_c_try_compile "$LINENO"
13913then :
13914  xorg_cv_cc_flag_unknown_warning_option=yes
13915else $as_nop
13916  xorg_cv_cc_flag_unknown_warning_option=no
13917fi
13918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13919fi
13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13923	CFLAGS="$xorg_testset_save_CFLAGS"
13924fi
13925
13926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929	fi
13930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13934then :
13935  printf %s "(cached) " >&6
13936else $as_nop
13937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h.  */
13939int i;
13940_ACEOF
13941if ac_fn_c_try_compile "$LINENO"
13942then :
13943  xorg_cv_cc_flag_unused_command_line_argument=yes
13944else $as_nop
13945  xorg_cv_cc_flag_unused_command_line_argument=no
13946fi
13947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13948fi
13949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13952	CFLAGS="$xorg_testset_save_CFLAGS"
13953fi
13954
13955found="no"
13956
13957	if test $found = "no" ; then
13958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13960		fi
13961
13962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964		fi
13965
13966		CFLAGS="$CFLAGS -Wstrict-prototypes"
13967
13968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13969printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13970		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13971		if eval test \${$cacheid+y}
13972then :
13973  printf %s "(cached) " >&6
13974else $as_nop
13975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h.  */
13977int i;
13978int
13979main (void)
13980{
13981
13982  ;
13983  return 0;
13984}
13985_ACEOF
13986if ac_fn_c_try_link "$LINENO"
13987then :
13988  eval $cacheid=yes
13989else $as_nop
13990  eval $cacheid=no
13991fi
13992rm -f core conftest.err conftest.$ac_objext conftest.beam \
13993    conftest$ac_exeext conftest.$ac_ext
13994fi
13995
13996
13997		CFLAGS="$xorg_testset_save_CFLAGS"
13998
13999		eval supported=\$$cacheid
14000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14001printf "%s\n" "$supported" >&6; }
14002		if test "$supported" = "yes" ; then
14003			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14004			found="yes"
14005		fi
14006	fi
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022xorg_testset_save_CFLAGS="$CFLAGS"
14023
14024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14029then :
14030  printf %s "(cached) " >&6
14031else $as_nop
14032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033/* end confdefs.h.  */
14034int i;
14035_ACEOF
14036if ac_fn_c_try_compile "$LINENO"
14037then :
14038  xorg_cv_cc_flag_unknown_warning_option=yes
14039else $as_nop
14040  xorg_cv_cc_flag_unknown_warning_option=no
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14043fi
14044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14047	CFLAGS="$xorg_testset_save_CFLAGS"
14048fi
14049
14050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14053	fi
14054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14058then :
14059  printf %s "(cached) " >&6
14060else $as_nop
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062/* end confdefs.h.  */
14063int i;
14064_ACEOF
14065if ac_fn_c_try_compile "$LINENO"
14066then :
14067  xorg_cv_cc_flag_unused_command_line_argument=yes
14068else $as_nop
14069  xorg_cv_cc_flag_unused_command_line_argument=no
14070fi
14071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14072fi
14073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14076	CFLAGS="$xorg_testset_save_CFLAGS"
14077fi
14078
14079found="no"
14080
14081	if test $found = "no" ; then
14082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084		fi
14085
14086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14088		fi
14089
14090		CFLAGS="$CFLAGS -Wmissing-prototypes"
14091
14092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14093printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14094		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14095		if eval test \${$cacheid+y}
14096then :
14097  printf %s "(cached) " >&6
14098else $as_nop
14099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100/* end confdefs.h.  */
14101int i;
14102int
14103main (void)
14104{
14105
14106  ;
14107  return 0;
14108}
14109_ACEOF
14110if ac_fn_c_try_link "$LINENO"
14111then :
14112  eval $cacheid=yes
14113else $as_nop
14114  eval $cacheid=no
14115fi
14116rm -f core conftest.err conftest.$ac_objext conftest.beam \
14117    conftest$ac_exeext conftest.$ac_ext
14118fi
14119
14120
14121		CFLAGS="$xorg_testset_save_CFLAGS"
14122
14123		eval supported=\$$cacheid
14124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14125printf "%s\n" "$supported" >&6; }
14126		if test "$supported" = "yes" ; then
14127			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14128			found="yes"
14129		fi
14130	fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146xorg_testset_save_CFLAGS="$CFLAGS"
14147
14148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14152if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14153then :
14154  printf %s "(cached) " >&6
14155else $as_nop
14156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157/* end confdefs.h.  */
14158int i;
14159_ACEOF
14160if ac_fn_c_try_compile "$LINENO"
14161then :
14162  xorg_cv_cc_flag_unknown_warning_option=yes
14163else $as_nop
14164  xorg_cv_cc_flag_unknown_warning_option=no
14165fi
14166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14167fi
14168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14171	CFLAGS="$xorg_testset_save_CFLAGS"
14172fi
14173
14174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177	fi
14178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14181if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14182then :
14183  printf %s "(cached) " >&6
14184else $as_nop
14185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187int i;
14188_ACEOF
14189if ac_fn_c_try_compile "$LINENO"
14190then :
14191  xorg_cv_cc_flag_unused_command_line_argument=yes
14192else $as_nop
14193  xorg_cv_cc_flag_unused_command_line_argument=no
14194fi
14195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14196fi
14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14200	CFLAGS="$xorg_testset_save_CFLAGS"
14201fi
14202
14203found="no"
14204
14205	if test $found = "no" ; then
14206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208		fi
14209
14210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14212		fi
14213
14214		CFLAGS="$CFLAGS -Wnested-externs"
14215
14216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14217printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14218		cacheid=xorg_cv_cc_flag__Wnested_externs
14219		if eval test \${$cacheid+y}
14220then :
14221  printf %s "(cached) " >&6
14222else $as_nop
14223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224/* end confdefs.h.  */
14225int i;
14226int
14227main (void)
14228{
14229
14230  ;
14231  return 0;
14232}
14233_ACEOF
14234if ac_fn_c_try_link "$LINENO"
14235then :
14236  eval $cacheid=yes
14237else $as_nop
14238  eval $cacheid=no
14239fi
14240rm -f core conftest.err conftest.$ac_objext conftest.beam \
14241    conftest$ac_exeext conftest.$ac_ext
14242fi
14243
14244
14245		CFLAGS="$xorg_testset_save_CFLAGS"
14246
14247		eval supported=\$$cacheid
14248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14249printf "%s\n" "$supported" >&6; }
14250		if test "$supported" = "yes" ; then
14251			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14252			found="yes"
14253		fi
14254	fi
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270xorg_testset_save_CFLAGS="$CFLAGS"
14271
14272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14277then :
14278  printf %s "(cached) " >&6
14279else $as_nop
14280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282int i;
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"
14285then :
14286  xorg_cv_cc_flag_unknown_warning_option=yes
14287else $as_nop
14288  xorg_cv_cc_flag_unknown_warning_option=no
14289fi
14290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14291fi
14292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14295	CFLAGS="$xorg_testset_save_CFLAGS"
14296fi
14297
14298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301	fi
14302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14306then :
14307  printf %s "(cached) " >&6
14308else $as_nop
14309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h.  */
14311int i;
14312_ACEOF
14313if ac_fn_c_try_compile "$LINENO"
14314then :
14315  xorg_cv_cc_flag_unused_command_line_argument=yes
14316else $as_nop
14317  xorg_cv_cc_flag_unused_command_line_argument=no
14318fi
14319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14320fi
14321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14324	CFLAGS="$xorg_testset_save_CFLAGS"
14325fi
14326
14327found="no"
14328
14329	if test $found = "no" ; then
14330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332		fi
14333
14334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336		fi
14337
14338		CFLAGS="$CFLAGS -Wbad-function-cast"
14339
14340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14341printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14342		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14343		if eval test \${$cacheid+y}
14344then :
14345  printf %s "(cached) " >&6
14346else $as_nop
14347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h.  */
14349int i;
14350int
14351main (void)
14352{
14353
14354  ;
14355  return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_link "$LINENO"
14359then :
14360  eval $cacheid=yes
14361else $as_nop
14362  eval $cacheid=no
14363fi
14364rm -f core conftest.err conftest.$ac_objext conftest.beam \
14365    conftest$ac_exeext conftest.$ac_ext
14366fi
14367
14368
14369		CFLAGS="$xorg_testset_save_CFLAGS"
14370
14371		eval supported=\$$cacheid
14372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14373printf "%s\n" "$supported" >&6; }
14374		if test "$supported" = "yes" ; then
14375			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14376			found="yes"
14377		fi
14378	fi
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394xorg_testset_save_CFLAGS="$CFLAGS"
14395
14396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14401then :
14402  printf %s "(cached) " >&6
14403else $as_nop
14404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405/* end confdefs.h.  */
14406int i;
14407_ACEOF
14408if ac_fn_c_try_compile "$LINENO"
14409then :
14410  xorg_cv_cc_flag_unknown_warning_option=yes
14411else $as_nop
14412  xorg_cv_cc_flag_unknown_warning_option=no
14413fi
14414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14415fi
14416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14419	CFLAGS="$xorg_testset_save_CFLAGS"
14420fi
14421
14422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425	fi
14426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14430then :
14431  printf %s "(cached) " >&6
14432else $as_nop
14433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h.  */
14435int i;
14436_ACEOF
14437if ac_fn_c_try_compile "$LINENO"
14438then :
14439  xorg_cv_cc_flag_unused_command_line_argument=yes
14440else $as_nop
14441  xorg_cv_cc_flag_unused_command_line_argument=no
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14444fi
14445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14448	CFLAGS="$xorg_testset_save_CFLAGS"
14449fi
14450
14451found="no"
14452
14453	if test $found = "no" ; then
14454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14456		fi
14457
14458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14460		fi
14461
14462		CFLAGS="$CFLAGS -Wold-style-definition"
14463
14464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14465printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14466		cacheid=xorg_cv_cc_flag__Wold_style_definition
14467		if eval test \${$cacheid+y}
14468then :
14469  printf %s "(cached) " >&6
14470else $as_nop
14471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h.  */
14473int i;
14474int
14475main (void)
14476{
14477
14478  ;
14479  return 0;
14480}
14481_ACEOF
14482if ac_fn_c_try_link "$LINENO"
14483then :
14484  eval $cacheid=yes
14485else $as_nop
14486  eval $cacheid=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.beam \
14489    conftest$ac_exeext conftest.$ac_ext
14490fi
14491
14492
14493		CFLAGS="$xorg_testset_save_CFLAGS"
14494
14495		eval supported=\$$cacheid
14496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14497printf "%s\n" "$supported" >&6; }
14498		if test "$supported" = "yes" ; then
14499			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14500			found="yes"
14501		fi
14502	fi
14503
14504	if test $found = "no" ; then
14505		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507		fi
14508
14509		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14511		fi
14512
14513		CFLAGS="$CFLAGS -fd"
14514
14515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14516printf %s "checking if $CC supports -fd... " >&6; }
14517		cacheid=xorg_cv_cc_flag__fd
14518		if eval test \${$cacheid+y}
14519then :
14520  printf %s "(cached) " >&6
14521else $as_nop
14522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524int i;
14525int
14526main (void)
14527{
14528
14529  ;
14530  return 0;
14531}
14532_ACEOF
14533if ac_fn_c_try_link "$LINENO"
14534then :
14535  eval $cacheid=yes
14536else $as_nop
14537  eval $cacheid=no
14538fi
14539rm -f core conftest.err conftest.$ac_objext conftest.beam \
14540    conftest$ac_exeext conftest.$ac_ext
14541fi
14542
14543
14544		CFLAGS="$xorg_testset_save_CFLAGS"
14545
14546		eval supported=\$$cacheid
14547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14548printf "%s\n" "$supported" >&6; }
14549		if test "$supported" = "yes" ; then
14550			BASE_CFLAGS="$BASE_CFLAGS -fd"
14551			found="yes"
14552		fi
14553	fi
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569xorg_testset_save_CFLAGS="$CFLAGS"
14570
14571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14575if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14576then :
14577  printf %s "(cached) " >&6
14578else $as_nop
14579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581int i;
14582_ACEOF
14583if ac_fn_c_try_compile "$LINENO"
14584then :
14585  xorg_cv_cc_flag_unknown_warning_option=yes
14586else $as_nop
14587  xorg_cv_cc_flag_unknown_warning_option=no
14588fi
14589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14590fi
14591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14593	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14594	CFLAGS="$xorg_testset_save_CFLAGS"
14595fi
14596
14597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14598	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14599		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14600	fi
14601	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14604if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14605then :
14606  printf %s "(cached) " >&6
14607else $as_nop
14608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610int i;
14611_ACEOF
14612if ac_fn_c_try_compile "$LINENO"
14613then :
14614  xorg_cv_cc_flag_unused_command_line_argument=yes
14615else $as_nop
14616  xorg_cv_cc_flag_unused_command_line_argument=no
14617fi
14618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14619fi
14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14623	CFLAGS="$xorg_testset_save_CFLAGS"
14624fi
14625
14626found="no"
14627
14628	if test $found = "no" ; then
14629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631		fi
14632
14633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635		fi
14636
14637		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14638
14639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14640printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14641		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14642		if eval test \${$cacheid+y}
14643then :
14644  printf %s "(cached) " >&6
14645else $as_nop
14646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647/* end confdefs.h.  */
14648int i;
14649int
14650main (void)
14651{
14652
14653  ;
14654  return 0;
14655}
14656_ACEOF
14657if ac_fn_c_try_link "$LINENO"
14658then :
14659  eval $cacheid=yes
14660else $as_nop
14661  eval $cacheid=no
14662fi
14663rm -f core conftest.err conftest.$ac_objext conftest.beam \
14664    conftest$ac_exeext conftest.$ac_ext
14665fi
14666
14667
14668		CFLAGS="$xorg_testset_save_CFLAGS"
14669
14670		eval supported=\$$cacheid
14671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14672printf "%s\n" "$supported" >&6; }
14673		if test "$supported" = "yes" ; then
14674			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14675			found="yes"
14676		fi
14677	fi
14678
14679
14680
14681
14682
14683# This chunk adds additional warnings that could catch undesired effects.
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697xorg_testset_save_CFLAGS="$CFLAGS"
14698
14699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14703if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14704then :
14705  printf %s "(cached) " >&6
14706else $as_nop
14707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708/* end confdefs.h.  */
14709int i;
14710_ACEOF
14711if ac_fn_c_try_compile "$LINENO"
14712then :
14713  xorg_cv_cc_flag_unknown_warning_option=yes
14714else $as_nop
14715  xorg_cv_cc_flag_unknown_warning_option=no
14716fi
14717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14718fi
14719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14722	CFLAGS="$xorg_testset_save_CFLAGS"
14723fi
14724
14725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728	fi
14729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14733then :
14734  printf %s "(cached) " >&6
14735else $as_nop
14736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737/* end confdefs.h.  */
14738int i;
14739_ACEOF
14740if ac_fn_c_try_compile "$LINENO"
14741then :
14742  xorg_cv_cc_flag_unused_command_line_argument=yes
14743else $as_nop
14744  xorg_cv_cc_flag_unused_command_line_argument=no
14745fi
14746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14747fi
14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14751	CFLAGS="$xorg_testset_save_CFLAGS"
14752fi
14753
14754found="no"
14755
14756	if test $found = "no" ; then
14757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759		fi
14760
14761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14763		fi
14764
14765		CFLAGS="$CFLAGS -Wunused"
14766
14767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14768printf %s "checking if $CC supports -Wunused... " >&6; }
14769		cacheid=xorg_cv_cc_flag__Wunused
14770		if eval test \${$cacheid+y}
14771then :
14772  printf %s "(cached) " >&6
14773else $as_nop
14774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775/* end confdefs.h.  */
14776int i;
14777int
14778main (void)
14779{
14780
14781  ;
14782  return 0;
14783}
14784_ACEOF
14785if ac_fn_c_try_link "$LINENO"
14786then :
14787  eval $cacheid=yes
14788else $as_nop
14789  eval $cacheid=no
14790fi
14791rm -f core conftest.err conftest.$ac_objext conftest.beam \
14792    conftest$ac_exeext conftest.$ac_ext
14793fi
14794
14795
14796		CFLAGS="$xorg_testset_save_CFLAGS"
14797
14798		eval supported=\$$cacheid
14799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14800printf "%s\n" "$supported" >&6; }
14801		if test "$supported" = "yes" ; then
14802			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14803			found="yes"
14804		fi
14805	fi
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821xorg_testset_save_CFLAGS="$CFLAGS"
14822
14823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14828then :
14829  printf %s "(cached) " >&6
14830else $as_nop
14831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832/* end confdefs.h.  */
14833int i;
14834_ACEOF
14835if ac_fn_c_try_compile "$LINENO"
14836then :
14837  xorg_cv_cc_flag_unknown_warning_option=yes
14838else $as_nop
14839  xorg_cv_cc_flag_unknown_warning_option=no
14840fi
14841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14842fi
14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14846	CFLAGS="$xorg_testset_save_CFLAGS"
14847fi
14848
14849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852	fi
14853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14857then :
14858  printf %s "(cached) " >&6
14859else $as_nop
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862int i;
14863_ACEOF
14864if ac_fn_c_try_compile "$LINENO"
14865then :
14866  xorg_cv_cc_flag_unused_command_line_argument=yes
14867else $as_nop
14868  xorg_cv_cc_flag_unused_command_line_argument=no
14869fi
14870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14871fi
14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14875	CFLAGS="$xorg_testset_save_CFLAGS"
14876fi
14877
14878found="no"
14879
14880	if test $found = "no" ; then
14881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14883		fi
14884
14885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14887		fi
14888
14889		CFLAGS="$CFLAGS -Wuninitialized"
14890
14891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14892printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14893		cacheid=xorg_cv_cc_flag__Wuninitialized
14894		if eval test \${$cacheid+y}
14895then :
14896  printf %s "(cached) " >&6
14897else $as_nop
14898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899/* end confdefs.h.  */
14900int i;
14901int
14902main (void)
14903{
14904
14905  ;
14906  return 0;
14907}
14908_ACEOF
14909if ac_fn_c_try_link "$LINENO"
14910then :
14911  eval $cacheid=yes
14912else $as_nop
14913  eval $cacheid=no
14914fi
14915rm -f core conftest.err conftest.$ac_objext conftest.beam \
14916    conftest$ac_exeext conftest.$ac_ext
14917fi
14918
14919
14920		CFLAGS="$xorg_testset_save_CFLAGS"
14921
14922		eval supported=\$$cacheid
14923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14924printf "%s\n" "$supported" >&6; }
14925		if test "$supported" = "yes" ; then
14926			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14927			found="yes"
14928		fi
14929	fi
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945xorg_testset_save_CFLAGS="$CFLAGS"
14946
14947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14951if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14952then :
14953  printf %s "(cached) " >&6
14954else $as_nop
14955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956/* end confdefs.h.  */
14957int i;
14958_ACEOF
14959if ac_fn_c_try_compile "$LINENO"
14960then :
14961  xorg_cv_cc_flag_unknown_warning_option=yes
14962else $as_nop
14963  xorg_cv_cc_flag_unknown_warning_option=no
14964fi
14965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14966fi
14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14970	CFLAGS="$xorg_testset_save_CFLAGS"
14971fi
14972
14973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14976	fi
14977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14981then :
14982  printf %s "(cached) " >&6
14983else $as_nop
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"
14989then :
14990  xorg_cv_cc_flag_unused_command_line_argument=yes
14991else $as_nop
14992  xorg_cv_cc_flag_unused_command_line_argument=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14995fi
14996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14999	CFLAGS="$xorg_testset_save_CFLAGS"
15000fi
15001
15002found="no"
15003
15004	if test $found = "no" ; then
15005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007		fi
15008
15009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15011		fi
15012
15013		CFLAGS="$CFLAGS -Wshadow"
15014
15015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15016printf %s "checking if $CC supports -Wshadow... " >&6; }
15017		cacheid=xorg_cv_cc_flag__Wshadow
15018		if eval test \${$cacheid+y}
15019then :
15020  printf %s "(cached) " >&6
15021else $as_nop
15022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h.  */
15024int i;
15025int
15026main (void)
15027{
15028
15029  ;
15030  return 0;
15031}
15032_ACEOF
15033if ac_fn_c_try_link "$LINENO"
15034then :
15035  eval $cacheid=yes
15036else $as_nop
15037  eval $cacheid=no
15038fi
15039rm -f core conftest.err conftest.$ac_objext conftest.beam \
15040    conftest$ac_exeext conftest.$ac_ext
15041fi
15042
15043
15044		CFLAGS="$xorg_testset_save_CFLAGS"
15045
15046		eval supported=\$$cacheid
15047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15048printf "%s\n" "$supported" >&6; }
15049		if test "$supported" = "yes" ; then
15050			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15051			found="yes"
15052		fi
15053	fi
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069xorg_testset_save_CFLAGS="$CFLAGS"
15070
15071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15076then :
15077  printf %s "(cached) " >&6
15078else $as_nop
15079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h.  */
15081int i;
15082_ACEOF
15083if ac_fn_c_try_compile "$LINENO"
15084then :
15085  xorg_cv_cc_flag_unknown_warning_option=yes
15086else $as_nop
15087  xorg_cv_cc_flag_unknown_warning_option=no
15088fi
15089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15090fi
15091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15094	CFLAGS="$xorg_testset_save_CFLAGS"
15095fi
15096
15097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15100	fi
15101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15104if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15105then :
15106  printf %s "(cached) " >&6
15107else $as_nop
15108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109/* end confdefs.h.  */
15110int i;
15111_ACEOF
15112if ac_fn_c_try_compile "$LINENO"
15113then :
15114  xorg_cv_cc_flag_unused_command_line_argument=yes
15115else $as_nop
15116  xorg_cv_cc_flag_unused_command_line_argument=no
15117fi
15118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15119fi
15120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15123	CFLAGS="$xorg_testset_save_CFLAGS"
15124fi
15125
15126found="no"
15127
15128	if test $found = "no" ; then
15129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131		fi
15132
15133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15135		fi
15136
15137		CFLAGS="$CFLAGS -Wmissing-noreturn"
15138
15139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15140printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15141		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15142		if eval test \${$cacheid+y}
15143then :
15144  printf %s "(cached) " >&6
15145else $as_nop
15146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h.  */
15148int i;
15149int
15150main (void)
15151{
15152
15153  ;
15154  return 0;
15155}
15156_ACEOF
15157if ac_fn_c_try_link "$LINENO"
15158then :
15159  eval $cacheid=yes
15160else $as_nop
15161  eval $cacheid=no
15162fi
15163rm -f core conftest.err conftest.$ac_objext conftest.beam \
15164    conftest$ac_exeext conftest.$ac_ext
15165fi
15166
15167
15168		CFLAGS="$xorg_testset_save_CFLAGS"
15169
15170		eval supported=\$$cacheid
15171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15172printf "%s\n" "$supported" >&6; }
15173		if test "$supported" = "yes" ; then
15174			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15175			found="yes"
15176		fi
15177	fi
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193xorg_testset_save_CFLAGS="$CFLAGS"
15194
15195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15200then :
15201  printf %s "(cached) " >&6
15202else $as_nop
15203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204/* end confdefs.h.  */
15205int i;
15206_ACEOF
15207if ac_fn_c_try_compile "$LINENO"
15208then :
15209  xorg_cv_cc_flag_unknown_warning_option=yes
15210else $as_nop
15211  xorg_cv_cc_flag_unknown_warning_option=no
15212fi
15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15214fi
15215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15218	CFLAGS="$xorg_testset_save_CFLAGS"
15219fi
15220
15221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224	fi
15225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15228if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15229then :
15230  printf %s "(cached) " >&6
15231else $as_nop
15232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h.  */
15234int i;
15235_ACEOF
15236if ac_fn_c_try_compile "$LINENO"
15237then :
15238  xorg_cv_cc_flag_unused_command_line_argument=yes
15239else $as_nop
15240  xorg_cv_cc_flag_unused_command_line_argument=no
15241fi
15242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15243fi
15244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15247	CFLAGS="$xorg_testset_save_CFLAGS"
15248fi
15249
15250found="no"
15251
15252	if test $found = "no" ; then
15253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15255		fi
15256
15257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15259		fi
15260
15261		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15262
15263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15264printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15265		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15266		if eval test \${$cacheid+y}
15267then :
15268  printf %s "(cached) " >&6
15269else $as_nop
15270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272int i;
15273int
15274main (void)
15275{
15276
15277  ;
15278  return 0;
15279}
15280_ACEOF
15281if ac_fn_c_try_link "$LINENO"
15282then :
15283  eval $cacheid=yes
15284else $as_nop
15285  eval $cacheid=no
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.beam \
15288    conftest$ac_exeext conftest.$ac_ext
15289fi
15290
15291
15292		CFLAGS="$xorg_testset_save_CFLAGS"
15293
15294		eval supported=\$$cacheid
15295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15296printf "%s\n" "$supported" >&6; }
15297		if test "$supported" = "yes" ; then
15298			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15299			found="yes"
15300		fi
15301	fi
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317xorg_testset_save_CFLAGS="$CFLAGS"
15318
15319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15323if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15324then :
15325  printf %s "(cached) " >&6
15326else $as_nop
15327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h.  */
15329int i;
15330_ACEOF
15331if ac_fn_c_try_compile "$LINENO"
15332then :
15333  xorg_cv_cc_flag_unknown_warning_option=yes
15334else $as_nop
15335  xorg_cv_cc_flag_unknown_warning_option=no
15336fi
15337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15338fi
15339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15342	CFLAGS="$xorg_testset_save_CFLAGS"
15343fi
15344
15345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15348	fi
15349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15352if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15353then :
15354  printf %s "(cached) " >&6
15355else $as_nop
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"
15361then :
15362  xorg_cv_cc_flag_unused_command_line_argument=yes
15363else $as_nop
15364  xorg_cv_cc_flag_unused_command_line_argument=no
15365fi
15366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15367fi
15368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15371	CFLAGS="$xorg_testset_save_CFLAGS"
15372fi
15373
15374found="no"
15375
15376	if test $found = "no" ; then
15377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15379		fi
15380
15381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383		fi
15384
15385		CFLAGS="$CFLAGS -Wredundant-decls"
15386
15387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15388printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15389		cacheid=xorg_cv_cc_flag__Wredundant_decls
15390		if eval test \${$cacheid+y}
15391then :
15392  printf %s "(cached) " >&6
15393else $as_nop
15394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h.  */
15396int i;
15397int
15398main (void)
15399{
15400
15401  ;
15402  return 0;
15403}
15404_ACEOF
15405if ac_fn_c_try_link "$LINENO"
15406then :
15407  eval $cacheid=yes
15408else $as_nop
15409  eval $cacheid=no
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.beam \
15412    conftest$ac_exeext conftest.$ac_ext
15413fi
15414
15415
15416		CFLAGS="$xorg_testset_save_CFLAGS"
15417
15418		eval supported=\$$cacheid
15419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15420printf "%s\n" "$supported" >&6; }
15421		if test "$supported" = "yes" ; then
15422			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15423			found="yes"
15424		fi
15425	fi
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441xorg_testset_save_CFLAGS="$CFLAGS"
15442
15443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15446printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15447if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15448then :
15449  printf %s "(cached) " >&6
15450else $as_nop
15451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h.  */
15453int i;
15454_ACEOF
15455if ac_fn_c_try_compile "$LINENO"
15456then :
15457  xorg_cv_cc_flag_unknown_warning_option=yes
15458else $as_nop
15459  xorg_cv_cc_flag_unknown_warning_option=no
15460fi
15461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15462fi
15463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15466	CFLAGS="$xorg_testset_save_CFLAGS"
15467fi
15468
15469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15472	fi
15473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15476if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15477then :
15478  printf %s "(cached) " >&6
15479else $as_nop
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482int i;
15483_ACEOF
15484if ac_fn_c_try_compile "$LINENO"
15485then :
15486  xorg_cv_cc_flag_unused_command_line_argument=yes
15487else $as_nop
15488  xorg_cv_cc_flag_unused_command_line_argument=no
15489fi
15490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15491fi
15492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15495	CFLAGS="$xorg_testset_save_CFLAGS"
15496fi
15497
15498found="no"
15499
15500	if test $found = "no" ; then
15501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15503		fi
15504
15505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15507		fi
15508
15509		CFLAGS="$CFLAGS -Wlogical-op"
15510
15511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15512printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15513		cacheid=xorg_cv_cc_flag__Wlogical_op
15514		if eval test \${$cacheid+y}
15515then :
15516  printf %s "(cached) " >&6
15517else $as_nop
15518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519/* end confdefs.h.  */
15520int i;
15521int
15522main (void)
15523{
15524
15525  ;
15526  return 0;
15527}
15528_ACEOF
15529if ac_fn_c_try_link "$LINENO"
15530then :
15531  eval $cacheid=yes
15532else $as_nop
15533  eval $cacheid=no
15534fi
15535rm -f core conftest.err conftest.$ac_objext conftest.beam \
15536    conftest$ac_exeext conftest.$ac_ext
15537fi
15538
15539
15540		CFLAGS="$xorg_testset_save_CFLAGS"
15541
15542		eval supported=\$$cacheid
15543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15544printf "%s\n" "$supported" >&6; }
15545		if test "$supported" = "yes" ; then
15546			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15547			found="yes"
15548		fi
15549	fi
15550
15551
15552
15553# These are currently disabled because they are noisy.  They will be enabled
15554# in the future once the codebase is sufficiently modernized to silence
15555# them.  For now, I don't want them to drown out the other warnings.
15556# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15557# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15558# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15559
15560# Turn some warnings into errors, so we don't accidently get successful builds
15561# when there are problems that should be fixed.
15562
15563if test "x$SELECTIVE_WERROR" = "xyes" ; then
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577xorg_testset_save_CFLAGS="$CFLAGS"
15578
15579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15583if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15584then :
15585  printf %s "(cached) " >&6
15586else $as_nop
15587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588/* end confdefs.h.  */
15589int i;
15590_ACEOF
15591if ac_fn_c_try_compile "$LINENO"
15592then :
15593  xorg_cv_cc_flag_unknown_warning_option=yes
15594else $as_nop
15595  xorg_cv_cc_flag_unknown_warning_option=no
15596fi
15597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15598fi
15599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15600printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15602	CFLAGS="$xorg_testset_save_CFLAGS"
15603fi
15604
15605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15608	fi
15609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15611printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15612if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15613then :
15614  printf %s "(cached) " >&6
15615else $as_nop
15616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617/* end confdefs.h.  */
15618int i;
15619_ACEOF
15620if ac_fn_c_try_compile "$LINENO"
15621then :
15622  xorg_cv_cc_flag_unused_command_line_argument=yes
15623else $as_nop
15624  xorg_cv_cc_flag_unused_command_line_argument=no
15625fi
15626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15627fi
15628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15631	CFLAGS="$xorg_testset_save_CFLAGS"
15632fi
15633
15634found="no"
15635
15636	if test $found = "no" ; then
15637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15639		fi
15640
15641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643		fi
15644
15645		CFLAGS="$CFLAGS -Werror=implicit"
15646
15647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15648printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15649		cacheid=xorg_cv_cc_flag__Werror_implicit
15650		if eval test \${$cacheid+y}
15651then :
15652  printf %s "(cached) " >&6
15653else $as_nop
15654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h.  */
15656int i;
15657int
15658main (void)
15659{
15660
15661  ;
15662  return 0;
15663}
15664_ACEOF
15665if ac_fn_c_try_link "$LINENO"
15666then :
15667  eval $cacheid=yes
15668else $as_nop
15669  eval $cacheid=no
15670fi
15671rm -f core conftest.err conftest.$ac_objext conftest.beam \
15672    conftest$ac_exeext conftest.$ac_ext
15673fi
15674
15675
15676		CFLAGS="$xorg_testset_save_CFLAGS"
15677
15678		eval supported=\$$cacheid
15679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15680printf "%s\n" "$supported" >&6; }
15681		if test "$supported" = "yes" ; then
15682			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15683			found="yes"
15684		fi
15685	fi
15686
15687	if test $found = "no" ; then
15688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15690		fi
15691
15692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15694		fi
15695
15696		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15697
15698		{ 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
15699printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15700		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15701		if eval test \${$cacheid+y}
15702then :
15703  printf %s "(cached) " >&6
15704else $as_nop
15705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706/* end confdefs.h.  */
15707int i;
15708int
15709main (void)
15710{
15711
15712  ;
15713  return 0;
15714}
15715_ACEOF
15716if ac_fn_c_try_link "$LINENO"
15717then :
15718  eval $cacheid=yes
15719else $as_nop
15720  eval $cacheid=no
15721fi
15722rm -f core conftest.err conftest.$ac_objext conftest.beam \
15723    conftest$ac_exeext conftest.$ac_ext
15724fi
15725
15726
15727		CFLAGS="$xorg_testset_save_CFLAGS"
15728
15729		eval supported=\$$cacheid
15730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15731printf "%s\n" "$supported" >&6; }
15732		if test "$supported" = "yes" ; then
15733			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15734			found="yes"
15735		fi
15736	fi
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752xorg_testset_save_CFLAGS="$CFLAGS"
15753
15754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15758if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15759then :
15760  printf %s "(cached) " >&6
15761else $as_nop
15762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h.  */
15764int i;
15765_ACEOF
15766if ac_fn_c_try_compile "$LINENO"
15767then :
15768  xorg_cv_cc_flag_unknown_warning_option=yes
15769else $as_nop
15770  xorg_cv_cc_flag_unknown_warning_option=no
15771fi
15772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15773fi
15774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15777	CFLAGS="$xorg_testset_save_CFLAGS"
15778fi
15779
15780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783	fi
15784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15787if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15788then :
15789  printf %s "(cached) " >&6
15790else $as_nop
15791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h.  */
15793int i;
15794_ACEOF
15795if ac_fn_c_try_compile "$LINENO"
15796then :
15797  xorg_cv_cc_flag_unused_command_line_argument=yes
15798else $as_nop
15799  xorg_cv_cc_flag_unused_command_line_argument=no
15800fi
15801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15802fi
15803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15806	CFLAGS="$xorg_testset_save_CFLAGS"
15807fi
15808
15809found="no"
15810
15811	if test $found = "no" ; then
15812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814		fi
15815
15816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818		fi
15819
15820		CFLAGS="$CFLAGS -Werror=nonnull"
15821
15822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15823printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15824		cacheid=xorg_cv_cc_flag__Werror_nonnull
15825		if eval test \${$cacheid+y}
15826then :
15827  printf %s "(cached) " >&6
15828else $as_nop
15829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h.  */
15831int i;
15832int
15833main (void)
15834{
15835
15836  ;
15837  return 0;
15838}
15839_ACEOF
15840if ac_fn_c_try_link "$LINENO"
15841then :
15842  eval $cacheid=yes
15843else $as_nop
15844  eval $cacheid=no
15845fi
15846rm -f core conftest.err conftest.$ac_objext conftest.beam \
15847    conftest$ac_exeext conftest.$ac_ext
15848fi
15849
15850
15851		CFLAGS="$xorg_testset_save_CFLAGS"
15852
15853		eval supported=\$$cacheid
15854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15855printf "%s\n" "$supported" >&6; }
15856		if test "$supported" = "yes" ; then
15857			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15858			found="yes"
15859		fi
15860	fi
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876xorg_testset_save_CFLAGS="$CFLAGS"
15877
15878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15882if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15883then :
15884  printf %s "(cached) " >&6
15885else $as_nop
15886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h.  */
15888int i;
15889_ACEOF
15890if ac_fn_c_try_compile "$LINENO"
15891then :
15892  xorg_cv_cc_flag_unknown_warning_option=yes
15893else $as_nop
15894  xorg_cv_cc_flag_unknown_warning_option=no
15895fi
15896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15897fi
15898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15901	CFLAGS="$xorg_testset_save_CFLAGS"
15902fi
15903
15904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907	fi
15908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15911if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15912then :
15913  printf %s "(cached) " >&6
15914else $as_nop
15915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916/* end confdefs.h.  */
15917int i;
15918_ACEOF
15919if ac_fn_c_try_compile "$LINENO"
15920then :
15921  xorg_cv_cc_flag_unused_command_line_argument=yes
15922else $as_nop
15923  xorg_cv_cc_flag_unused_command_line_argument=no
15924fi
15925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15926fi
15927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15930	CFLAGS="$xorg_testset_save_CFLAGS"
15931fi
15932
15933found="no"
15934
15935	if test $found = "no" ; then
15936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15938		fi
15939
15940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15942		fi
15943
15944		CFLAGS="$CFLAGS -Werror=init-self"
15945
15946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15947printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15948		cacheid=xorg_cv_cc_flag__Werror_init_self
15949		if eval test \${$cacheid+y}
15950then :
15951  printf %s "(cached) " >&6
15952else $as_nop
15953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h.  */
15955int i;
15956int
15957main (void)
15958{
15959
15960  ;
15961  return 0;
15962}
15963_ACEOF
15964if ac_fn_c_try_link "$LINENO"
15965then :
15966  eval $cacheid=yes
15967else $as_nop
15968  eval $cacheid=no
15969fi
15970rm -f core conftest.err conftest.$ac_objext conftest.beam \
15971    conftest$ac_exeext conftest.$ac_ext
15972fi
15973
15974
15975		CFLAGS="$xorg_testset_save_CFLAGS"
15976
15977		eval supported=\$$cacheid
15978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979printf "%s\n" "$supported" >&6; }
15980		if test "$supported" = "yes" ; then
15981			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15982			found="yes"
15983		fi
15984	fi
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000xorg_testset_save_CFLAGS="$CFLAGS"
16001
16002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16006if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16007then :
16008  printf %s "(cached) " >&6
16009else $as_nop
16010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011/* end confdefs.h.  */
16012int i;
16013_ACEOF
16014if ac_fn_c_try_compile "$LINENO"
16015then :
16016  xorg_cv_cc_flag_unknown_warning_option=yes
16017else $as_nop
16018  xorg_cv_cc_flag_unknown_warning_option=no
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16021fi
16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025	CFLAGS="$xorg_testset_save_CFLAGS"
16026fi
16027
16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031	fi
16032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16036then :
16037  printf %s "(cached) " >&6
16038else $as_nop
16039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h.  */
16041int i;
16042_ACEOF
16043if ac_fn_c_try_compile "$LINENO"
16044then :
16045  xorg_cv_cc_flag_unused_command_line_argument=yes
16046else $as_nop
16047  xorg_cv_cc_flag_unused_command_line_argument=no
16048fi
16049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16050fi
16051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16054	CFLAGS="$xorg_testset_save_CFLAGS"
16055fi
16056
16057found="no"
16058
16059	if test $found = "no" ; then
16060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16062		fi
16063
16064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16066		fi
16067
16068		CFLAGS="$CFLAGS -Werror=main"
16069
16070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16071printf %s "checking if $CC supports -Werror=main... " >&6; }
16072		cacheid=xorg_cv_cc_flag__Werror_main
16073		if eval test \${$cacheid+y}
16074then :
16075  printf %s "(cached) " >&6
16076else $as_nop
16077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079int i;
16080int
16081main (void)
16082{
16083
16084  ;
16085  return 0;
16086}
16087_ACEOF
16088if ac_fn_c_try_link "$LINENO"
16089then :
16090  eval $cacheid=yes
16091else $as_nop
16092  eval $cacheid=no
16093fi
16094rm -f core conftest.err conftest.$ac_objext conftest.beam \
16095    conftest$ac_exeext conftest.$ac_ext
16096fi
16097
16098
16099		CFLAGS="$xorg_testset_save_CFLAGS"
16100
16101		eval supported=\$$cacheid
16102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16103printf "%s\n" "$supported" >&6; }
16104		if test "$supported" = "yes" ; then
16105			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16106			found="yes"
16107		fi
16108	fi
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124xorg_testset_save_CFLAGS="$CFLAGS"
16125
16126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16130if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16131then :
16132  printf %s "(cached) " >&6
16133else $as_nop
16134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h.  */
16136int i;
16137_ACEOF
16138if ac_fn_c_try_compile "$LINENO"
16139then :
16140  xorg_cv_cc_flag_unknown_warning_option=yes
16141else $as_nop
16142  xorg_cv_cc_flag_unknown_warning_option=no
16143fi
16144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16145fi
16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16149	CFLAGS="$xorg_testset_save_CFLAGS"
16150fi
16151
16152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16155	fi
16156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16159if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16160then :
16161  printf %s "(cached) " >&6
16162else $as_nop
16163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164/* end confdefs.h.  */
16165int i;
16166_ACEOF
16167if ac_fn_c_try_compile "$LINENO"
16168then :
16169  xorg_cv_cc_flag_unused_command_line_argument=yes
16170else $as_nop
16171  xorg_cv_cc_flag_unused_command_line_argument=no
16172fi
16173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16174fi
16175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16178	CFLAGS="$xorg_testset_save_CFLAGS"
16179fi
16180
16181found="no"
16182
16183	if test $found = "no" ; then
16184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186		fi
16187
16188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190		fi
16191
16192		CFLAGS="$CFLAGS -Werror=missing-braces"
16193
16194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16195printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16196		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16197		if eval test \${$cacheid+y}
16198then :
16199  printf %s "(cached) " >&6
16200else $as_nop
16201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202/* end confdefs.h.  */
16203int i;
16204int
16205main (void)
16206{
16207
16208  ;
16209  return 0;
16210}
16211_ACEOF
16212if ac_fn_c_try_link "$LINENO"
16213then :
16214  eval $cacheid=yes
16215else $as_nop
16216  eval $cacheid=no
16217fi
16218rm -f core conftest.err conftest.$ac_objext conftest.beam \
16219    conftest$ac_exeext conftest.$ac_ext
16220fi
16221
16222
16223		CFLAGS="$xorg_testset_save_CFLAGS"
16224
16225		eval supported=\$$cacheid
16226		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16227printf "%s\n" "$supported" >&6; }
16228		if test "$supported" = "yes" ; then
16229			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16230			found="yes"
16231		fi
16232	fi
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248xorg_testset_save_CFLAGS="$CFLAGS"
16249
16250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16254if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16255then :
16256  printf %s "(cached) " >&6
16257else $as_nop
16258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h.  */
16260int i;
16261_ACEOF
16262if ac_fn_c_try_compile "$LINENO"
16263then :
16264  xorg_cv_cc_flag_unknown_warning_option=yes
16265else $as_nop
16266  xorg_cv_cc_flag_unknown_warning_option=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16269fi
16270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16273	CFLAGS="$xorg_testset_save_CFLAGS"
16274fi
16275
16276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279	fi
16280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16284then :
16285  printf %s "(cached) " >&6
16286else $as_nop
16287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288/* end confdefs.h.  */
16289int i;
16290_ACEOF
16291if ac_fn_c_try_compile "$LINENO"
16292then :
16293  xorg_cv_cc_flag_unused_command_line_argument=yes
16294else $as_nop
16295  xorg_cv_cc_flag_unused_command_line_argument=no
16296fi
16297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16298fi
16299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16302	CFLAGS="$xorg_testset_save_CFLAGS"
16303fi
16304
16305found="no"
16306
16307	if test $found = "no" ; then
16308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16310		fi
16311
16312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16314		fi
16315
16316		CFLAGS="$CFLAGS -Werror=sequence-point"
16317
16318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16319printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16320		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16321		if eval test \${$cacheid+y}
16322then :
16323  printf %s "(cached) " >&6
16324else $as_nop
16325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327int i;
16328int
16329main (void)
16330{
16331
16332  ;
16333  return 0;
16334}
16335_ACEOF
16336if ac_fn_c_try_link "$LINENO"
16337then :
16338  eval $cacheid=yes
16339else $as_nop
16340  eval $cacheid=no
16341fi
16342rm -f core conftest.err conftest.$ac_objext conftest.beam \
16343    conftest$ac_exeext conftest.$ac_ext
16344fi
16345
16346
16347		CFLAGS="$xorg_testset_save_CFLAGS"
16348
16349		eval supported=\$$cacheid
16350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16351printf "%s\n" "$supported" >&6; }
16352		if test "$supported" = "yes" ; then
16353			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16354			found="yes"
16355		fi
16356	fi
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372xorg_testset_save_CFLAGS="$CFLAGS"
16373
16374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16377printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16378if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16379then :
16380  printf %s "(cached) " >&6
16381else $as_nop
16382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h.  */
16384int i;
16385_ACEOF
16386if ac_fn_c_try_compile "$LINENO"
16387then :
16388  xorg_cv_cc_flag_unknown_warning_option=yes
16389else $as_nop
16390  xorg_cv_cc_flag_unknown_warning_option=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16393fi
16394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16395printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16403	fi
16404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16406printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16407if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16408then :
16409  printf %s "(cached) " >&6
16410else $as_nop
16411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412/* end confdefs.h.  */
16413int i;
16414_ACEOF
16415if ac_fn_c_try_compile "$LINENO"
16416then :
16417  xorg_cv_cc_flag_unused_command_line_argument=yes
16418else $as_nop
16419  xorg_cv_cc_flag_unused_command_line_argument=no
16420fi
16421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16422fi
16423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16426	CFLAGS="$xorg_testset_save_CFLAGS"
16427fi
16428
16429found="no"
16430
16431	if test $found = "no" ; then
16432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434		fi
16435
16436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16438		fi
16439
16440		CFLAGS="$CFLAGS -Werror=return-type"
16441
16442		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16443printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16444		cacheid=xorg_cv_cc_flag__Werror_return_type
16445		if eval test \${$cacheid+y}
16446then :
16447  printf %s "(cached) " >&6
16448else $as_nop
16449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450/* end confdefs.h.  */
16451int i;
16452int
16453main (void)
16454{
16455
16456  ;
16457  return 0;
16458}
16459_ACEOF
16460if ac_fn_c_try_link "$LINENO"
16461then :
16462  eval $cacheid=yes
16463else $as_nop
16464  eval $cacheid=no
16465fi
16466rm -f core conftest.err conftest.$ac_objext conftest.beam \
16467    conftest$ac_exeext conftest.$ac_ext
16468fi
16469
16470
16471		CFLAGS="$xorg_testset_save_CFLAGS"
16472
16473		eval supported=\$$cacheid
16474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16475printf "%s\n" "$supported" >&6; }
16476		if test "$supported" = "yes" ; then
16477			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16478			found="yes"
16479		fi
16480	fi
16481
16482	if test $found = "no" ; then
16483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16485		fi
16486
16487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16489		fi
16490
16491		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16492
16493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16494printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16495		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16496		if eval test \${$cacheid+y}
16497then :
16498  printf %s "(cached) " >&6
16499else $as_nop
16500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h.  */
16502int i;
16503int
16504main (void)
16505{
16506
16507  ;
16508  return 0;
16509}
16510_ACEOF
16511if ac_fn_c_try_link "$LINENO"
16512then :
16513  eval $cacheid=yes
16514else $as_nop
16515  eval $cacheid=no
16516fi
16517rm -f core conftest.err conftest.$ac_objext conftest.beam \
16518    conftest$ac_exeext conftest.$ac_ext
16519fi
16520
16521
16522		CFLAGS="$xorg_testset_save_CFLAGS"
16523
16524		eval supported=\$$cacheid
16525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16526printf "%s\n" "$supported" >&6; }
16527		if test "$supported" = "yes" ; then
16528			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16529			found="yes"
16530		fi
16531	fi
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547xorg_testset_save_CFLAGS="$CFLAGS"
16548
16549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16553if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16554then :
16555  printf %s "(cached) " >&6
16556else $as_nop
16557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559int i;
16560_ACEOF
16561if ac_fn_c_try_compile "$LINENO"
16562then :
16563  xorg_cv_cc_flag_unknown_warning_option=yes
16564else $as_nop
16565  xorg_cv_cc_flag_unknown_warning_option=no
16566fi
16567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16568fi
16569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16572	CFLAGS="$xorg_testset_save_CFLAGS"
16573fi
16574
16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16578	fi
16579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16582if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16583then :
16584  printf %s "(cached) " >&6
16585else $as_nop
16586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h.  */
16588int i;
16589_ACEOF
16590if ac_fn_c_try_compile "$LINENO"
16591then :
16592  xorg_cv_cc_flag_unused_command_line_argument=yes
16593else $as_nop
16594  xorg_cv_cc_flag_unused_command_line_argument=no
16595fi
16596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16597fi
16598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601	CFLAGS="$xorg_testset_save_CFLAGS"
16602fi
16603
16604found="no"
16605
16606	if test $found = "no" ; then
16607		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609		fi
16610
16611		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16612			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613		fi
16614
16615		CFLAGS="$CFLAGS -Werror=trigraphs"
16616
16617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16618printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16619		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16620		if eval test \${$cacheid+y}
16621then :
16622  printf %s "(cached) " >&6
16623else $as_nop
16624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625/* end confdefs.h.  */
16626int i;
16627int
16628main (void)
16629{
16630
16631  ;
16632  return 0;
16633}
16634_ACEOF
16635if ac_fn_c_try_link "$LINENO"
16636then :
16637  eval $cacheid=yes
16638else $as_nop
16639  eval $cacheid=no
16640fi
16641rm -f core conftest.err conftest.$ac_objext conftest.beam \
16642    conftest$ac_exeext conftest.$ac_ext
16643fi
16644
16645
16646		CFLAGS="$xorg_testset_save_CFLAGS"
16647
16648		eval supported=\$$cacheid
16649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16650printf "%s\n" "$supported" >&6; }
16651		if test "$supported" = "yes" ; then
16652			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16653			found="yes"
16654		fi
16655	fi
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671xorg_testset_save_CFLAGS="$CFLAGS"
16672
16673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16677if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16678then :
16679  printf %s "(cached) " >&6
16680else $as_nop
16681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682/* end confdefs.h.  */
16683int i;
16684_ACEOF
16685if ac_fn_c_try_compile "$LINENO"
16686then :
16687  xorg_cv_cc_flag_unknown_warning_option=yes
16688else $as_nop
16689  xorg_cv_cc_flag_unknown_warning_option=no
16690fi
16691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16692fi
16693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16696	CFLAGS="$xorg_testset_save_CFLAGS"
16697fi
16698
16699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702	fi
16703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16707then :
16708  printf %s "(cached) " >&6
16709else $as_nop
16710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712int i;
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"
16715then :
16716  xorg_cv_cc_flag_unused_command_line_argument=yes
16717else $as_nop
16718  xorg_cv_cc_flag_unused_command_line_argument=no
16719fi
16720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16721fi
16722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16725	CFLAGS="$xorg_testset_save_CFLAGS"
16726fi
16727
16728found="no"
16729
16730	if test $found = "no" ; then
16731		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733		fi
16734
16735		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16737		fi
16738
16739		CFLAGS="$CFLAGS -Werror=array-bounds"
16740
16741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16742printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16743		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16744		if eval test \${$cacheid+y}
16745then :
16746  printf %s "(cached) " >&6
16747else $as_nop
16748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749/* end confdefs.h.  */
16750int i;
16751int
16752main (void)
16753{
16754
16755  ;
16756  return 0;
16757}
16758_ACEOF
16759if ac_fn_c_try_link "$LINENO"
16760then :
16761  eval $cacheid=yes
16762else $as_nop
16763  eval $cacheid=no
16764fi
16765rm -f core conftest.err conftest.$ac_objext conftest.beam \
16766    conftest$ac_exeext conftest.$ac_ext
16767fi
16768
16769
16770		CFLAGS="$xorg_testset_save_CFLAGS"
16771
16772		eval supported=\$$cacheid
16773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16774printf "%s\n" "$supported" >&6; }
16775		if test "$supported" = "yes" ; then
16776			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16777			found="yes"
16778		fi
16779	fi
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795xorg_testset_save_CFLAGS="$CFLAGS"
16796
16797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16801if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16802then :
16803  printf %s "(cached) " >&6
16804else $as_nop
16805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h.  */
16807int i;
16808_ACEOF
16809if ac_fn_c_try_compile "$LINENO"
16810then :
16811  xorg_cv_cc_flag_unknown_warning_option=yes
16812else $as_nop
16813  xorg_cv_cc_flag_unknown_warning_option=no
16814fi
16815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16816fi
16817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16820	CFLAGS="$xorg_testset_save_CFLAGS"
16821fi
16822
16823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16826	fi
16827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16830if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16831then :
16832  printf %s "(cached) " >&6
16833else $as_nop
16834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h.  */
16836int i;
16837_ACEOF
16838if ac_fn_c_try_compile "$LINENO"
16839then :
16840  xorg_cv_cc_flag_unused_command_line_argument=yes
16841else $as_nop
16842  xorg_cv_cc_flag_unused_command_line_argument=no
16843fi
16844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16845fi
16846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16849	CFLAGS="$xorg_testset_save_CFLAGS"
16850fi
16851
16852found="no"
16853
16854	if test $found = "no" ; then
16855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857		fi
16858
16859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16861		fi
16862
16863		CFLAGS="$CFLAGS -Werror=write-strings"
16864
16865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16866printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16867		cacheid=xorg_cv_cc_flag__Werror_write_strings
16868		if eval test \${$cacheid+y}
16869then :
16870  printf %s "(cached) " >&6
16871else $as_nop
16872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873/* end confdefs.h.  */
16874int i;
16875int
16876main (void)
16877{
16878
16879  ;
16880  return 0;
16881}
16882_ACEOF
16883if ac_fn_c_try_link "$LINENO"
16884then :
16885  eval $cacheid=yes
16886else $as_nop
16887  eval $cacheid=no
16888fi
16889rm -f core conftest.err conftest.$ac_objext conftest.beam \
16890    conftest$ac_exeext conftest.$ac_ext
16891fi
16892
16893
16894		CFLAGS="$xorg_testset_save_CFLAGS"
16895
16896		eval supported=\$$cacheid
16897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16898printf "%s\n" "$supported" >&6; }
16899		if test "$supported" = "yes" ; then
16900			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16901			found="yes"
16902		fi
16903	fi
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919xorg_testset_save_CFLAGS="$CFLAGS"
16920
16921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16925if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16926then :
16927  printf %s "(cached) " >&6
16928else $as_nop
16929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930/* end confdefs.h.  */
16931int i;
16932_ACEOF
16933if ac_fn_c_try_compile "$LINENO"
16934then :
16935  xorg_cv_cc_flag_unknown_warning_option=yes
16936else $as_nop
16937  xorg_cv_cc_flag_unknown_warning_option=no
16938fi
16939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16940fi
16941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16944	CFLAGS="$xorg_testset_save_CFLAGS"
16945fi
16946
16947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950	fi
16951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16954if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16955then :
16956  printf %s "(cached) " >&6
16957else $as_nop
16958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960int i;
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"
16963then :
16964  xorg_cv_cc_flag_unused_command_line_argument=yes
16965else $as_nop
16966  xorg_cv_cc_flag_unused_command_line_argument=no
16967fi
16968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16969fi
16970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16973	CFLAGS="$xorg_testset_save_CFLAGS"
16974fi
16975
16976found="no"
16977
16978	if test $found = "no" ; then
16979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981		fi
16982
16983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16985		fi
16986
16987		CFLAGS="$CFLAGS -Werror=address"
16988
16989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16990printf %s "checking if $CC supports -Werror=address... " >&6; }
16991		cacheid=xorg_cv_cc_flag__Werror_address
16992		if eval test \${$cacheid+y}
16993then :
16994  printf %s "(cached) " >&6
16995else $as_nop
16996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997/* end confdefs.h.  */
16998int i;
16999int
17000main (void)
17001{
17002
17003  ;
17004  return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"
17008then :
17009  eval $cacheid=yes
17010else $as_nop
17011  eval $cacheid=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.beam \
17014    conftest$ac_exeext conftest.$ac_ext
17015fi
17016
17017
17018		CFLAGS="$xorg_testset_save_CFLAGS"
17019
17020		eval supported=\$$cacheid
17021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17022printf "%s\n" "$supported" >&6; }
17023		if test "$supported" = "yes" ; then
17024			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17025			found="yes"
17026		fi
17027	fi
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043xorg_testset_save_CFLAGS="$CFLAGS"
17044
17045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17046	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17049if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17050then :
17051  printf %s "(cached) " >&6
17052else $as_nop
17053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054/* end confdefs.h.  */
17055int i;
17056_ACEOF
17057if ac_fn_c_try_compile "$LINENO"
17058then :
17059  xorg_cv_cc_flag_unknown_warning_option=yes
17060else $as_nop
17061  xorg_cv_cc_flag_unknown_warning_option=no
17062fi
17063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17064fi
17065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17068	CFLAGS="$xorg_testset_save_CFLAGS"
17069fi
17070
17071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074	fi
17075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17078if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17079then :
17080  printf %s "(cached) " >&6
17081else $as_nop
17082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083/* end confdefs.h.  */
17084int i;
17085_ACEOF
17086if ac_fn_c_try_compile "$LINENO"
17087then :
17088  xorg_cv_cc_flag_unused_command_line_argument=yes
17089else $as_nop
17090  xorg_cv_cc_flag_unused_command_line_argument=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17093fi
17094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17096	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17097	CFLAGS="$xorg_testset_save_CFLAGS"
17098fi
17099
17100found="no"
17101
17102	if test $found = "no" ; then
17103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17105		fi
17106
17107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109		fi
17110
17111		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17112
17113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17114printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17115		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17116		if eval test \${$cacheid+y}
17117then :
17118  printf %s "(cached) " >&6
17119else $as_nop
17120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121/* end confdefs.h.  */
17122int i;
17123int
17124main (void)
17125{
17126
17127  ;
17128  return 0;
17129}
17130_ACEOF
17131if ac_fn_c_try_link "$LINENO"
17132then :
17133  eval $cacheid=yes
17134else $as_nop
17135  eval $cacheid=no
17136fi
17137rm -f core conftest.err conftest.$ac_objext conftest.beam \
17138    conftest$ac_exeext conftest.$ac_ext
17139fi
17140
17141
17142		CFLAGS="$xorg_testset_save_CFLAGS"
17143
17144		eval supported=\$$cacheid
17145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17146printf "%s\n" "$supported" >&6; }
17147		if test "$supported" = "yes" ; then
17148			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17149			found="yes"
17150		fi
17151	fi
17152
17153	if test $found = "no" ; then
17154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156		fi
17157
17158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160		fi
17161
17162		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17163
17164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17165printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17166		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17167		if eval test \${$cacheid+y}
17168then :
17169  printf %s "(cached) " >&6
17170else $as_nop
17171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173int i;
17174int
17175main (void)
17176{
17177
17178  ;
17179  return 0;
17180}
17181_ACEOF
17182if ac_fn_c_try_link "$LINENO"
17183then :
17184  eval $cacheid=yes
17185else $as_nop
17186  eval $cacheid=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189    conftest$ac_exeext conftest.$ac_ext
17190fi
17191
17192
17193		CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195		eval supported=\$$cacheid
17196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197printf "%s\n" "$supported" >&6; }
17198		if test "$supported" = "yes" ; then
17199			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17200			found="yes"
17201		fi
17202	fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225then :
17226  printf %s "(cached) " >&6
17227else $as_nop
17228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230int i;
17231_ACEOF
17232if ac_fn_c_try_compile "$LINENO"
17233then :
17234  xorg_cv_cc_flag_unknown_warning_option=yes
17235else $as_nop
17236  xorg_cv_cc_flag_unknown_warning_option=no
17237fi
17238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17239fi
17240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17243	CFLAGS="$xorg_testset_save_CFLAGS"
17244fi
17245
17246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249	fi
17250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17254then :
17255  printf %s "(cached) " >&6
17256else $as_nop
17257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h.  */
17259int i;
17260_ACEOF
17261if ac_fn_c_try_compile "$LINENO"
17262then :
17263  xorg_cv_cc_flag_unused_command_line_argument=yes
17264else $as_nop
17265  xorg_cv_cc_flag_unused_command_line_argument=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17268fi
17269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17272	CFLAGS="$xorg_testset_save_CFLAGS"
17273fi
17274
17275found="no"
17276
17277	if test $found = "no" ; then
17278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17280		fi
17281
17282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17284		fi
17285
17286		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17287
17288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17289printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17290		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17291		if eval test \${$cacheid+y}
17292then :
17293  printf %s "(cached) " >&6
17294else $as_nop
17295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h.  */
17297int i;
17298int
17299main (void)
17300{
17301
17302  ;
17303  return 0;
17304}
17305_ACEOF
17306if ac_fn_c_try_link "$LINENO"
17307then :
17308  eval $cacheid=yes
17309else $as_nop
17310  eval $cacheid=no
17311fi
17312rm -f core conftest.err conftest.$ac_objext conftest.beam \
17313    conftest$ac_exeext conftest.$ac_ext
17314fi
17315
17316
17317		CFLAGS="$xorg_testset_save_CFLAGS"
17318
17319		eval supported=\$$cacheid
17320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17321printf "%s\n" "$supported" >&6; }
17322		if test "$supported" = "yes" ; then
17323			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17324			found="yes"
17325		fi
17326	fi
17327
17328 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17329else
17330{ 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
17331printf "%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;}
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345xorg_testset_save_CFLAGS="$CFLAGS"
17346
17347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17351if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17352then :
17353  printf %s "(cached) " >&6
17354else $as_nop
17355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356/* end confdefs.h.  */
17357int i;
17358_ACEOF
17359if ac_fn_c_try_compile "$LINENO"
17360then :
17361  xorg_cv_cc_flag_unknown_warning_option=yes
17362else $as_nop
17363  xorg_cv_cc_flag_unknown_warning_option=no
17364fi
17365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17366fi
17367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17370	CFLAGS="$xorg_testset_save_CFLAGS"
17371fi
17372
17373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376	fi
17377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17381then :
17382  printf %s "(cached) " >&6
17383else $as_nop
17384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h.  */
17386int i;
17387_ACEOF
17388if ac_fn_c_try_compile "$LINENO"
17389then :
17390  xorg_cv_cc_flag_unused_command_line_argument=yes
17391else $as_nop
17392  xorg_cv_cc_flag_unused_command_line_argument=no
17393fi
17394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17395fi
17396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17399	CFLAGS="$xorg_testset_save_CFLAGS"
17400fi
17401
17402found="no"
17403
17404	if test $found = "no" ; then
17405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407		fi
17408
17409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17411		fi
17412
17413		CFLAGS="$CFLAGS -Wimplicit"
17414
17415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17416printf %s "checking if $CC supports -Wimplicit... " >&6; }
17417		cacheid=xorg_cv_cc_flag__Wimplicit
17418		if eval test \${$cacheid+y}
17419then :
17420  printf %s "(cached) " >&6
17421else $as_nop
17422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423/* end confdefs.h.  */
17424int i;
17425int
17426main (void)
17427{
17428
17429  ;
17430  return 0;
17431}
17432_ACEOF
17433if ac_fn_c_try_link "$LINENO"
17434then :
17435  eval $cacheid=yes
17436else $as_nop
17437  eval $cacheid=no
17438fi
17439rm -f core conftest.err conftest.$ac_objext conftest.beam \
17440    conftest$ac_exeext conftest.$ac_ext
17441fi
17442
17443
17444		CFLAGS="$xorg_testset_save_CFLAGS"
17445
17446		eval supported=\$$cacheid
17447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17448printf "%s\n" "$supported" >&6; }
17449		if test "$supported" = "yes" ; then
17450			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17451			found="yes"
17452		fi
17453	fi
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469xorg_testset_save_CFLAGS="$CFLAGS"
17470
17471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17476then :
17477  printf %s "(cached) " >&6
17478else $as_nop
17479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h.  */
17481int i;
17482_ACEOF
17483if ac_fn_c_try_compile "$LINENO"
17484then :
17485  xorg_cv_cc_flag_unknown_warning_option=yes
17486else $as_nop
17487  xorg_cv_cc_flag_unknown_warning_option=no
17488fi
17489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17490fi
17491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17494	CFLAGS="$xorg_testset_save_CFLAGS"
17495fi
17496
17497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17500	fi
17501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17504if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17505then :
17506  printf %s "(cached) " >&6
17507else $as_nop
17508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509/* end confdefs.h.  */
17510int i;
17511_ACEOF
17512if ac_fn_c_try_compile "$LINENO"
17513then :
17514  xorg_cv_cc_flag_unused_command_line_argument=yes
17515else $as_nop
17516  xorg_cv_cc_flag_unused_command_line_argument=no
17517fi
17518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17519fi
17520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17523	CFLAGS="$xorg_testset_save_CFLAGS"
17524fi
17525
17526found="no"
17527
17528	if test $found = "no" ; then
17529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17531		fi
17532
17533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17535		fi
17536
17537		CFLAGS="$CFLAGS -Wnonnull"
17538
17539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17540printf %s "checking if $CC supports -Wnonnull... " >&6; }
17541		cacheid=xorg_cv_cc_flag__Wnonnull
17542		if eval test \${$cacheid+y}
17543then :
17544  printf %s "(cached) " >&6
17545else $as_nop
17546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547/* end confdefs.h.  */
17548int i;
17549int
17550main (void)
17551{
17552
17553  ;
17554  return 0;
17555}
17556_ACEOF
17557if ac_fn_c_try_link "$LINENO"
17558then :
17559  eval $cacheid=yes
17560else $as_nop
17561  eval $cacheid=no
17562fi
17563rm -f core conftest.err conftest.$ac_objext conftest.beam \
17564    conftest$ac_exeext conftest.$ac_ext
17565fi
17566
17567
17568		CFLAGS="$xorg_testset_save_CFLAGS"
17569
17570		eval supported=\$$cacheid
17571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17572printf "%s\n" "$supported" >&6; }
17573		if test "$supported" = "yes" ; then
17574			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17575			found="yes"
17576		fi
17577	fi
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593xorg_testset_save_CFLAGS="$CFLAGS"
17594
17595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17599if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17600then :
17601  printf %s "(cached) " >&6
17602else $as_nop
17603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604/* end confdefs.h.  */
17605int i;
17606_ACEOF
17607if ac_fn_c_try_compile "$LINENO"
17608then :
17609  xorg_cv_cc_flag_unknown_warning_option=yes
17610else $as_nop
17611  xorg_cv_cc_flag_unknown_warning_option=no
17612fi
17613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17614fi
17615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17618	CFLAGS="$xorg_testset_save_CFLAGS"
17619fi
17620
17621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624	fi
17625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17628if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17629then :
17630  printf %s "(cached) " >&6
17631else $as_nop
17632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633/* end confdefs.h.  */
17634int i;
17635_ACEOF
17636if ac_fn_c_try_compile "$LINENO"
17637then :
17638  xorg_cv_cc_flag_unused_command_line_argument=yes
17639else $as_nop
17640  xorg_cv_cc_flag_unused_command_line_argument=no
17641fi
17642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17643fi
17644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17647	CFLAGS="$xorg_testset_save_CFLAGS"
17648fi
17649
17650found="no"
17651
17652	if test $found = "no" ; then
17653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17655		fi
17656
17657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17659		fi
17660
17661		CFLAGS="$CFLAGS -Winit-self"
17662
17663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17664printf %s "checking if $CC supports -Winit-self... " >&6; }
17665		cacheid=xorg_cv_cc_flag__Winit_self
17666		if eval test \${$cacheid+y}
17667then :
17668  printf %s "(cached) " >&6
17669else $as_nop
17670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h.  */
17672int i;
17673int
17674main (void)
17675{
17676
17677  ;
17678  return 0;
17679}
17680_ACEOF
17681if ac_fn_c_try_link "$LINENO"
17682then :
17683  eval $cacheid=yes
17684else $as_nop
17685  eval $cacheid=no
17686fi
17687rm -f core conftest.err conftest.$ac_objext conftest.beam \
17688    conftest$ac_exeext conftest.$ac_ext
17689fi
17690
17691
17692		CFLAGS="$xorg_testset_save_CFLAGS"
17693
17694		eval supported=\$$cacheid
17695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17696printf "%s\n" "$supported" >&6; }
17697		if test "$supported" = "yes" ; then
17698			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17699			found="yes"
17700		fi
17701	fi
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717xorg_testset_save_CFLAGS="$CFLAGS"
17718
17719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17724then :
17725  printf %s "(cached) " >&6
17726else $as_nop
17727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h.  */
17729int i;
17730_ACEOF
17731if ac_fn_c_try_compile "$LINENO"
17732then :
17733  xorg_cv_cc_flag_unknown_warning_option=yes
17734else $as_nop
17735  xorg_cv_cc_flag_unknown_warning_option=no
17736fi
17737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17738fi
17739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17742	CFLAGS="$xorg_testset_save_CFLAGS"
17743fi
17744
17745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17748	fi
17749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17753then :
17754  printf %s "(cached) " >&6
17755else $as_nop
17756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757/* end confdefs.h.  */
17758int i;
17759_ACEOF
17760if ac_fn_c_try_compile "$LINENO"
17761then :
17762  xorg_cv_cc_flag_unused_command_line_argument=yes
17763else $as_nop
17764  xorg_cv_cc_flag_unused_command_line_argument=no
17765fi
17766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17767fi
17768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17771	CFLAGS="$xorg_testset_save_CFLAGS"
17772fi
17773
17774found="no"
17775
17776	if test $found = "no" ; then
17777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17779		fi
17780
17781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17783		fi
17784
17785		CFLAGS="$CFLAGS -Wmain"
17786
17787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17788printf %s "checking if $CC supports -Wmain... " >&6; }
17789		cacheid=xorg_cv_cc_flag__Wmain
17790		if eval test \${$cacheid+y}
17791then :
17792  printf %s "(cached) " >&6
17793else $as_nop
17794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795/* end confdefs.h.  */
17796int i;
17797int
17798main (void)
17799{
17800
17801  ;
17802  return 0;
17803}
17804_ACEOF
17805if ac_fn_c_try_link "$LINENO"
17806then :
17807  eval $cacheid=yes
17808else $as_nop
17809  eval $cacheid=no
17810fi
17811rm -f core conftest.err conftest.$ac_objext conftest.beam \
17812    conftest$ac_exeext conftest.$ac_ext
17813fi
17814
17815
17816		CFLAGS="$xorg_testset_save_CFLAGS"
17817
17818		eval supported=\$$cacheid
17819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17820printf "%s\n" "$supported" >&6; }
17821		if test "$supported" = "yes" ; then
17822			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17823			found="yes"
17824		fi
17825	fi
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841xorg_testset_save_CFLAGS="$CFLAGS"
17842
17843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17848then :
17849  printf %s "(cached) " >&6
17850else $as_nop
17851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852/* end confdefs.h.  */
17853int i;
17854_ACEOF
17855if ac_fn_c_try_compile "$LINENO"
17856then :
17857  xorg_cv_cc_flag_unknown_warning_option=yes
17858else $as_nop
17859  xorg_cv_cc_flag_unknown_warning_option=no
17860fi
17861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17862fi
17863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17866	CFLAGS="$xorg_testset_save_CFLAGS"
17867fi
17868
17869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17872	fi
17873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17877then :
17878  printf %s "(cached) " >&6
17879else $as_nop
17880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881/* end confdefs.h.  */
17882int i;
17883_ACEOF
17884if ac_fn_c_try_compile "$LINENO"
17885then :
17886  xorg_cv_cc_flag_unused_command_line_argument=yes
17887else $as_nop
17888  xorg_cv_cc_flag_unused_command_line_argument=no
17889fi
17890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17891fi
17892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17895	CFLAGS="$xorg_testset_save_CFLAGS"
17896fi
17897
17898found="no"
17899
17900	if test $found = "no" ; then
17901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17903		fi
17904
17905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17907		fi
17908
17909		CFLAGS="$CFLAGS -Wmissing-braces"
17910
17911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17912printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17913		cacheid=xorg_cv_cc_flag__Wmissing_braces
17914		if eval test \${$cacheid+y}
17915then :
17916  printf %s "(cached) " >&6
17917else $as_nop
17918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919/* end confdefs.h.  */
17920int i;
17921int
17922main (void)
17923{
17924
17925  ;
17926  return 0;
17927}
17928_ACEOF
17929if ac_fn_c_try_link "$LINENO"
17930then :
17931  eval $cacheid=yes
17932else $as_nop
17933  eval $cacheid=no
17934fi
17935rm -f core conftest.err conftest.$ac_objext conftest.beam \
17936    conftest$ac_exeext conftest.$ac_ext
17937fi
17938
17939
17940		CFLAGS="$xorg_testset_save_CFLAGS"
17941
17942		eval supported=\$$cacheid
17943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17944printf "%s\n" "$supported" >&6; }
17945		if test "$supported" = "yes" ; then
17946			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17947			found="yes"
17948		fi
17949	fi
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965xorg_testset_save_CFLAGS="$CFLAGS"
17966
17967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17972then :
17973  printf %s "(cached) " >&6
17974else $as_nop
17975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976/* end confdefs.h.  */
17977int i;
17978_ACEOF
17979if ac_fn_c_try_compile "$LINENO"
17980then :
17981  xorg_cv_cc_flag_unknown_warning_option=yes
17982else $as_nop
17983  xorg_cv_cc_flag_unknown_warning_option=no
17984fi
17985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17986fi
17987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17990	CFLAGS="$xorg_testset_save_CFLAGS"
17991fi
17992
17993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17996	fi
17997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18001then :
18002  printf %s "(cached) " >&6
18003else $as_nop
18004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005/* end confdefs.h.  */
18006int i;
18007_ACEOF
18008if ac_fn_c_try_compile "$LINENO"
18009then :
18010  xorg_cv_cc_flag_unused_command_line_argument=yes
18011else $as_nop
18012  xorg_cv_cc_flag_unused_command_line_argument=no
18013fi
18014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18015fi
18016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18019	CFLAGS="$xorg_testset_save_CFLAGS"
18020fi
18021
18022found="no"
18023
18024	if test $found = "no" ; then
18025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18027		fi
18028
18029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18031		fi
18032
18033		CFLAGS="$CFLAGS -Wsequence-point"
18034
18035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18036printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18037		cacheid=xorg_cv_cc_flag__Wsequence_point
18038		if eval test \${$cacheid+y}
18039then :
18040  printf %s "(cached) " >&6
18041else $as_nop
18042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043/* end confdefs.h.  */
18044int i;
18045int
18046main (void)
18047{
18048
18049  ;
18050  return 0;
18051}
18052_ACEOF
18053if ac_fn_c_try_link "$LINENO"
18054then :
18055  eval $cacheid=yes
18056else $as_nop
18057  eval $cacheid=no
18058fi
18059rm -f core conftest.err conftest.$ac_objext conftest.beam \
18060    conftest$ac_exeext conftest.$ac_ext
18061fi
18062
18063
18064		CFLAGS="$xorg_testset_save_CFLAGS"
18065
18066		eval supported=\$$cacheid
18067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18068printf "%s\n" "$supported" >&6; }
18069		if test "$supported" = "yes" ; then
18070			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18071			found="yes"
18072		fi
18073	fi
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089xorg_testset_save_CFLAGS="$CFLAGS"
18090
18091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18096then :
18097  printf %s "(cached) " >&6
18098else $as_nop
18099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100/* end confdefs.h.  */
18101int i;
18102_ACEOF
18103if ac_fn_c_try_compile "$LINENO"
18104then :
18105  xorg_cv_cc_flag_unknown_warning_option=yes
18106else $as_nop
18107  xorg_cv_cc_flag_unknown_warning_option=no
18108fi
18109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18110fi
18111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18114	CFLAGS="$xorg_testset_save_CFLAGS"
18115fi
18116
18117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18120	fi
18121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18125then :
18126  printf %s "(cached) " >&6
18127else $as_nop
18128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129/* end confdefs.h.  */
18130int i;
18131_ACEOF
18132if ac_fn_c_try_compile "$LINENO"
18133then :
18134  xorg_cv_cc_flag_unused_command_line_argument=yes
18135else $as_nop
18136  xorg_cv_cc_flag_unused_command_line_argument=no
18137fi
18138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18139fi
18140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18143	CFLAGS="$xorg_testset_save_CFLAGS"
18144fi
18145
18146found="no"
18147
18148	if test $found = "no" ; then
18149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18151		fi
18152
18153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18155		fi
18156
18157		CFLAGS="$CFLAGS -Wreturn-type"
18158
18159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18160printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18161		cacheid=xorg_cv_cc_flag__Wreturn_type
18162		if eval test \${$cacheid+y}
18163then :
18164  printf %s "(cached) " >&6
18165else $as_nop
18166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167/* end confdefs.h.  */
18168int i;
18169int
18170main (void)
18171{
18172
18173  ;
18174  return 0;
18175}
18176_ACEOF
18177if ac_fn_c_try_link "$LINENO"
18178then :
18179  eval $cacheid=yes
18180else $as_nop
18181  eval $cacheid=no
18182fi
18183rm -f core conftest.err conftest.$ac_objext conftest.beam \
18184    conftest$ac_exeext conftest.$ac_ext
18185fi
18186
18187
18188		CFLAGS="$xorg_testset_save_CFLAGS"
18189
18190		eval supported=\$$cacheid
18191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18192printf "%s\n" "$supported" >&6; }
18193		if test "$supported" = "yes" ; then
18194			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18195			found="yes"
18196		fi
18197	fi
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213xorg_testset_save_CFLAGS="$CFLAGS"
18214
18215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18220then :
18221  printf %s "(cached) " >&6
18222else $as_nop
18223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224/* end confdefs.h.  */
18225int i;
18226_ACEOF
18227if ac_fn_c_try_compile "$LINENO"
18228then :
18229  xorg_cv_cc_flag_unknown_warning_option=yes
18230else $as_nop
18231  xorg_cv_cc_flag_unknown_warning_option=no
18232fi
18233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18234fi
18235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18238	CFLAGS="$xorg_testset_save_CFLAGS"
18239fi
18240
18241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18244	fi
18245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18249then :
18250  printf %s "(cached) " >&6
18251else $as_nop
18252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253/* end confdefs.h.  */
18254int i;
18255_ACEOF
18256if ac_fn_c_try_compile "$LINENO"
18257then :
18258  xorg_cv_cc_flag_unused_command_line_argument=yes
18259else $as_nop
18260  xorg_cv_cc_flag_unused_command_line_argument=no
18261fi
18262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18263fi
18264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18267	CFLAGS="$xorg_testset_save_CFLAGS"
18268fi
18269
18270found="no"
18271
18272	if test $found = "no" ; then
18273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18275		fi
18276
18277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18279		fi
18280
18281		CFLAGS="$CFLAGS -Wtrigraphs"
18282
18283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18284printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18285		cacheid=xorg_cv_cc_flag__Wtrigraphs
18286		if eval test \${$cacheid+y}
18287then :
18288  printf %s "(cached) " >&6
18289else $as_nop
18290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291/* end confdefs.h.  */
18292int i;
18293int
18294main (void)
18295{
18296
18297  ;
18298  return 0;
18299}
18300_ACEOF
18301if ac_fn_c_try_link "$LINENO"
18302then :
18303  eval $cacheid=yes
18304else $as_nop
18305  eval $cacheid=no
18306fi
18307rm -f core conftest.err conftest.$ac_objext conftest.beam \
18308    conftest$ac_exeext conftest.$ac_ext
18309fi
18310
18311
18312		CFLAGS="$xorg_testset_save_CFLAGS"
18313
18314		eval supported=\$$cacheid
18315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18316printf "%s\n" "$supported" >&6; }
18317		if test "$supported" = "yes" ; then
18318			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18319			found="yes"
18320		fi
18321	fi
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337xorg_testset_save_CFLAGS="$CFLAGS"
18338
18339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18344then :
18345  printf %s "(cached) " >&6
18346else $as_nop
18347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348/* end confdefs.h.  */
18349int i;
18350_ACEOF
18351if ac_fn_c_try_compile "$LINENO"
18352then :
18353  xorg_cv_cc_flag_unknown_warning_option=yes
18354else $as_nop
18355  xorg_cv_cc_flag_unknown_warning_option=no
18356fi
18357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18358fi
18359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18362	CFLAGS="$xorg_testset_save_CFLAGS"
18363fi
18364
18365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18368	fi
18369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18373then :
18374  printf %s "(cached) " >&6
18375else $as_nop
18376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377/* end confdefs.h.  */
18378int i;
18379_ACEOF
18380if ac_fn_c_try_compile "$LINENO"
18381then :
18382  xorg_cv_cc_flag_unused_command_line_argument=yes
18383else $as_nop
18384  xorg_cv_cc_flag_unused_command_line_argument=no
18385fi
18386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18387fi
18388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18391	CFLAGS="$xorg_testset_save_CFLAGS"
18392fi
18393
18394found="no"
18395
18396	if test $found = "no" ; then
18397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18399		fi
18400
18401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18403		fi
18404
18405		CFLAGS="$CFLAGS -Warray-bounds"
18406
18407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18408printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18409		cacheid=xorg_cv_cc_flag__Warray_bounds
18410		if eval test \${$cacheid+y}
18411then :
18412  printf %s "(cached) " >&6
18413else $as_nop
18414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415/* end confdefs.h.  */
18416int i;
18417int
18418main (void)
18419{
18420
18421  ;
18422  return 0;
18423}
18424_ACEOF
18425if ac_fn_c_try_link "$LINENO"
18426then :
18427  eval $cacheid=yes
18428else $as_nop
18429  eval $cacheid=no
18430fi
18431rm -f core conftest.err conftest.$ac_objext conftest.beam \
18432    conftest$ac_exeext conftest.$ac_ext
18433fi
18434
18435
18436		CFLAGS="$xorg_testset_save_CFLAGS"
18437
18438		eval supported=\$$cacheid
18439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18440printf "%s\n" "$supported" >&6; }
18441		if test "$supported" = "yes" ; then
18442			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18443			found="yes"
18444		fi
18445	fi
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461xorg_testset_save_CFLAGS="$CFLAGS"
18462
18463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18467if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18468then :
18469  printf %s "(cached) " >&6
18470else $as_nop
18471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472/* end confdefs.h.  */
18473int i;
18474_ACEOF
18475if ac_fn_c_try_compile "$LINENO"
18476then :
18477  xorg_cv_cc_flag_unknown_warning_option=yes
18478else $as_nop
18479  xorg_cv_cc_flag_unknown_warning_option=no
18480fi
18481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18482fi
18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18486	CFLAGS="$xorg_testset_save_CFLAGS"
18487fi
18488
18489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18492	fi
18493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18497then :
18498  printf %s "(cached) " >&6
18499else $as_nop
18500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h.  */
18502int i;
18503_ACEOF
18504if ac_fn_c_try_compile "$LINENO"
18505then :
18506  xorg_cv_cc_flag_unused_command_line_argument=yes
18507else $as_nop
18508  xorg_cv_cc_flag_unused_command_line_argument=no
18509fi
18510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18511fi
18512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18515	CFLAGS="$xorg_testset_save_CFLAGS"
18516fi
18517
18518found="no"
18519
18520	if test $found = "no" ; then
18521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18523		fi
18524
18525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18527		fi
18528
18529		CFLAGS="$CFLAGS -Wwrite-strings"
18530
18531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18532printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18533		cacheid=xorg_cv_cc_flag__Wwrite_strings
18534		if eval test \${$cacheid+y}
18535then :
18536  printf %s "(cached) " >&6
18537else $as_nop
18538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539/* end confdefs.h.  */
18540int i;
18541int
18542main (void)
18543{
18544
18545  ;
18546  return 0;
18547}
18548_ACEOF
18549if ac_fn_c_try_link "$LINENO"
18550then :
18551  eval $cacheid=yes
18552else $as_nop
18553  eval $cacheid=no
18554fi
18555rm -f core conftest.err conftest.$ac_objext conftest.beam \
18556    conftest$ac_exeext conftest.$ac_ext
18557fi
18558
18559
18560		CFLAGS="$xorg_testset_save_CFLAGS"
18561
18562		eval supported=\$$cacheid
18563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18564printf "%s\n" "$supported" >&6; }
18565		if test "$supported" = "yes" ; then
18566			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18567			found="yes"
18568		fi
18569	fi
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585xorg_testset_save_CFLAGS="$CFLAGS"
18586
18587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18592then :
18593  printf %s "(cached) " >&6
18594else $as_nop
18595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596/* end confdefs.h.  */
18597int i;
18598_ACEOF
18599if ac_fn_c_try_compile "$LINENO"
18600then :
18601  xorg_cv_cc_flag_unknown_warning_option=yes
18602else $as_nop
18603  xorg_cv_cc_flag_unknown_warning_option=no
18604fi
18605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18606fi
18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18610	CFLAGS="$xorg_testset_save_CFLAGS"
18611fi
18612
18613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18616	fi
18617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18621then :
18622  printf %s "(cached) " >&6
18623else $as_nop
18624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625/* end confdefs.h.  */
18626int i;
18627_ACEOF
18628if ac_fn_c_try_compile "$LINENO"
18629then :
18630  xorg_cv_cc_flag_unused_command_line_argument=yes
18631else $as_nop
18632  xorg_cv_cc_flag_unused_command_line_argument=no
18633fi
18634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18635fi
18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18639	CFLAGS="$xorg_testset_save_CFLAGS"
18640fi
18641
18642found="no"
18643
18644	if test $found = "no" ; then
18645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18647		fi
18648
18649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651		fi
18652
18653		CFLAGS="$CFLAGS -Waddress"
18654
18655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18656printf %s "checking if $CC supports -Waddress... " >&6; }
18657		cacheid=xorg_cv_cc_flag__Waddress
18658		if eval test \${$cacheid+y}
18659then :
18660  printf %s "(cached) " >&6
18661else $as_nop
18662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664int i;
18665int
18666main (void)
18667{
18668
18669  ;
18670  return 0;
18671}
18672_ACEOF
18673if ac_fn_c_try_link "$LINENO"
18674then :
18675  eval $cacheid=yes
18676else $as_nop
18677  eval $cacheid=no
18678fi
18679rm -f core conftest.err conftest.$ac_objext conftest.beam \
18680    conftest$ac_exeext conftest.$ac_ext
18681fi
18682
18683
18684		CFLAGS="$xorg_testset_save_CFLAGS"
18685
18686		eval supported=\$$cacheid
18687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18688printf "%s\n" "$supported" >&6; }
18689		if test "$supported" = "yes" ; then
18690			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18691			found="yes"
18692		fi
18693	fi
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709xorg_testset_save_CFLAGS="$CFLAGS"
18710
18711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18716then :
18717  printf %s "(cached) " >&6
18718else $as_nop
18719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720/* end confdefs.h.  */
18721int i;
18722_ACEOF
18723if ac_fn_c_try_compile "$LINENO"
18724then :
18725  xorg_cv_cc_flag_unknown_warning_option=yes
18726else $as_nop
18727  xorg_cv_cc_flag_unknown_warning_option=no
18728fi
18729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18730fi
18731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18734	CFLAGS="$xorg_testset_save_CFLAGS"
18735fi
18736
18737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18740	fi
18741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18745then :
18746  printf %s "(cached) " >&6
18747else $as_nop
18748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h.  */
18750int i;
18751_ACEOF
18752if ac_fn_c_try_compile "$LINENO"
18753then :
18754  xorg_cv_cc_flag_unused_command_line_argument=yes
18755else $as_nop
18756  xorg_cv_cc_flag_unused_command_line_argument=no
18757fi
18758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18759fi
18760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18763	CFLAGS="$xorg_testset_save_CFLAGS"
18764fi
18765
18766found="no"
18767
18768	if test $found = "no" ; then
18769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18771		fi
18772
18773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775		fi
18776
18777		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18778
18779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18780printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18781		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18782		if eval test \${$cacheid+y}
18783then :
18784  printf %s "(cached) " >&6
18785else $as_nop
18786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787/* end confdefs.h.  */
18788int i;
18789int
18790main (void)
18791{
18792
18793  ;
18794  return 0;
18795}
18796_ACEOF
18797if ac_fn_c_try_link "$LINENO"
18798then :
18799  eval $cacheid=yes
18800else $as_nop
18801  eval $cacheid=no
18802fi
18803rm -f core conftest.err conftest.$ac_objext conftest.beam \
18804    conftest$ac_exeext conftest.$ac_ext
18805fi
18806
18807
18808		CFLAGS="$xorg_testset_save_CFLAGS"
18809
18810		eval supported=\$$cacheid
18811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18812printf "%s\n" "$supported" >&6; }
18813		if test "$supported" = "yes" ; then
18814			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18815			found="yes"
18816		fi
18817	fi
18818
18819
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 -Wpointer-to-int-cast"
18902
18903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18904printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18905		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
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			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18939			found="yes"
18940		fi
18941	fi
18942
18943
18944fi
18945
18946
18947
18948
18949
18950
18951
18952		CWARNFLAGS="$BASE_CFLAGS"
18953		if  test "x$GCC" = xyes ; then
18954		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18955		fi
18956
18957
18958
18959
18960
18961
18962
18963
18964# Check whether --enable-strict-compilation was given.
18965if test ${enable_strict_compilation+y}
18966then :
18967  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18968else $as_nop
18969  STRICT_COMPILE=no
18970fi
18971
18972
18973
18974
18975
18976
18977STRICT_CFLAGS=""
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991xorg_testset_save_CFLAGS="$CFLAGS"
18992
18993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18996printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18997if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18998then :
18999  printf %s "(cached) " >&6
19000else $as_nop
19001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002/* end confdefs.h.  */
19003int i;
19004_ACEOF
19005if ac_fn_c_try_compile "$LINENO"
19006then :
19007  xorg_cv_cc_flag_unknown_warning_option=yes
19008else $as_nop
19009  xorg_cv_cc_flag_unknown_warning_option=no
19010fi
19011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19012fi
19013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19014printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19016	CFLAGS="$xorg_testset_save_CFLAGS"
19017fi
19018
19019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19022	fi
19023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19025printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19026if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19027then :
19028  printf %s "(cached) " >&6
19029else $as_nop
19030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031/* end confdefs.h.  */
19032int i;
19033_ACEOF
19034if ac_fn_c_try_compile "$LINENO"
19035then :
19036  xorg_cv_cc_flag_unused_command_line_argument=yes
19037else $as_nop
19038  xorg_cv_cc_flag_unused_command_line_argument=no
19039fi
19040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19041fi
19042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19043printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19045	CFLAGS="$xorg_testset_save_CFLAGS"
19046fi
19047
19048found="no"
19049
19050	if test $found = "no" ; then
19051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19053		fi
19054
19055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19057		fi
19058
19059		CFLAGS="$CFLAGS -pedantic"
19060
19061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19062printf %s "checking if $CC supports -pedantic... " >&6; }
19063		cacheid=xorg_cv_cc_flag__pedantic
19064		if eval test \${$cacheid+y}
19065then :
19066  printf %s "(cached) " >&6
19067else $as_nop
19068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069/* end confdefs.h.  */
19070int i;
19071int
19072main (void)
19073{
19074
19075  ;
19076  return 0;
19077}
19078_ACEOF
19079if ac_fn_c_try_link "$LINENO"
19080then :
19081  eval $cacheid=yes
19082else $as_nop
19083  eval $cacheid=no
19084fi
19085rm -f core conftest.err conftest.$ac_objext conftest.beam \
19086    conftest$ac_exeext conftest.$ac_ext
19087fi
19088
19089
19090		CFLAGS="$xorg_testset_save_CFLAGS"
19091
19092		eval supported=\$$cacheid
19093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19094printf "%s\n" "$supported" >&6; }
19095		if test "$supported" = "yes" ; then
19096			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19097			found="yes"
19098		fi
19099	fi
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115xorg_testset_save_CFLAGS="$CFLAGS"
19116
19117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19121if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19122then :
19123  printf %s "(cached) " >&6
19124else $as_nop
19125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126/* end confdefs.h.  */
19127int i;
19128_ACEOF
19129if ac_fn_c_try_compile "$LINENO"
19130then :
19131  xorg_cv_cc_flag_unknown_warning_option=yes
19132else $as_nop
19133  xorg_cv_cc_flag_unknown_warning_option=no
19134fi
19135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19136fi
19137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19138printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19140	CFLAGS="$xorg_testset_save_CFLAGS"
19141fi
19142
19143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19146	fi
19147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19149printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19150if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19151then :
19152  printf %s "(cached) " >&6
19153else $as_nop
19154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155/* end confdefs.h.  */
19156int i;
19157_ACEOF
19158if ac_fn_c_try_compile "$LINENO"
19159then :
19160  xorg_cv_cc_flag_unused_command_line_argument=yes
19161else $as_nop
19162  xorg_cv_cc_flag_unused_command_line_argument=no
19163fi
19164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19165fi
19166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19167printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19169	CFLAGS="$xorg_testset_save_CFLAGS"
19170fi
19171
19172found="no"
19173
19174	if test $found = "no" ; then
19175		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19177		fi
19178
19179		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19181		fi
19182
19183		CFLAGS="$CFLAGS -Werror"
19184
19185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19186printf %s "checking if $CC supports -Werror... " >&6; }
19187		cacheid=xorg_cv_cc_flag__Werror
19188		if eval test \${$cacheid+y}
19189then :
19190  printf %s "(cached) " >&6
19191else $as_nop
19192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193/* end confdefs.h.  */
19194int i;
19195int
19196main (void)
19197{
19198
19199  ;
19200  return 0;
19201}
19202_ACEOF
19203if ac_fn_c_try_link "$LINENO"
19204then :
19205  eval $cacheid=yes
19206else $as_nop
19207  eval $cacheid=no
19208fi
19209rm -f core conftest.err conftest.$ac_objext conftest.beam \
19210    conftest$ac_exeext conftest.$ac_ext
19211fi
19212
19213
19214		CFLAGS="$xorg_testset_save_CFLAGS"
19215
19216		eval supported=\$$cacheid
19217		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19218printf "%s\n" "$supported" >&6; }
19219		if test "$supported" = "yes" ; then
19220			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19221			found="yes"
19222		fi
19223	fi
19224
19225	if test $found = "no" ; then
19226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19228		fi
19229
19230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19232		fi
19233
19234		CFLAGS="$CFLAGS -errwarn"
19235
19236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19237printf %s "checking if $CC supports -errwarn... " >&6; }
19238		cacheid=xorg_cv_cc_flag__errwarn
19239		if eval test \${$cacheid+y}
19240then :
19241  printf %s "(cached) " >&6
19242else $as_nop
19243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244/* end confdefs.h.  */
19245int i;
19246int
19247main (void)
19248{
19249
19250  ;
19251  return 0;
19252}
19253_ACEOF
19254if ac_fn_c_try_link "$LINENO"
19255then :
19256  eval $cacheid=yes
19257else $as_nop
19258  eval $cacheid=no
19259fi
19260rm -f core conftest.err conftest.$ac_objext conftest.beam \
19261    conftest$ac_exeext conftest.$ac_ext
19262fi
19263
19264
19265		CFLAGS="$xorg_testset_save_CFLAGS"
19266
19267		eval supported=\$$cacheid
19268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19269printf "%s\n" "$supported" >&6; }
19270		if test "$supported" = "yes" ; then
19271			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19272			found="yes"
19273		fi
19274	fi
19275
19276
19277
19278# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19279# activate it with -Werror, so we add it here explicitly.
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293xorg_testset_save_CFLAGS="$CFLAGS"
19294
19295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19297	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19299if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19300then :
19301  printf %s "(cached) " >&6
19302else $as_nop
19303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304/* end confdefs.h.  */
19305int i;
19306_ACEOF
19307if ac_fn_c_try_compile "$LINENO"
19308then :
19309  xorg_cv_cc_flag_unknown_warning_option=yes
19310else $as_nop
19311  xorg_cv_cc_flag_unknown_warning_option=no
19312fi
19313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19314fi
19315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19318	CFLAGS="$xorg_testset_save_CFLAGS"
19319fi
19320
19321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19324	fi
19325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19328if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19329then :
19330  printf %s "(cached) " >&6
19331else $as_nop
19332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333/* end confdefs.h.  */
19334int i;
19335_ACEOF
19336if ac_fn_c_try_compile "$LINENO"
19337then :
19338  xorg_cv_cc_flag_unused_command_line_argument=yes
19339else $as_nop
19340  xorg_cv_cc_flag_unused_command_line_argument=no
19341fi
19342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19343fi
19344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19345printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19347	CFLAGS="$xorg_testset_save_CFLAGS"
19348fi
19349
19350found="no"
19351
19352	if test $found = "no" ; then
19353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19355		fi
19356
19357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19359		fi
19360
19361		CFLAGS="$CFLAGS -Werror=attributes"
19362
19363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19364printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19365		cacheid=xorg_cv_cc_flag__Werror_attributes
19366		if eval test \${$cacheid+y}
19367then :
19368  printf %s "(cached) " >&6
19369else $as_nop
19370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371/* end confdefs.h.  */
19372int i;
19373int
19374main (void)
19375{
19376
19377  ;
19378  return 0;
19379}
19380_ACEOF
19381if ac_fn_c_try_link "$LINENO"
19382then :
19383  eval $cacheid=yes
19384else $as_nop
19385  eval $cacheid=no
19386fi
19387rm -f core conftest.err conftest.$ac_objext conftest.beam \
19388    conftest$ac_exeext conftest.$ac_ext
19389fi
19390
19391
19392		CFLAGS="$xorg_testset_save_CFLAGS"
19393
19394		eval supported=\$$cacheid
19395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19396printf "%s\n" "$supported" >&6; }
19397		if test "$supported" = "yes" ; then
19398			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19399			found="yes"
19400		fi
19401	fi
19402
19403
19404
19405if test "x$STRICT_COMPILE" = "xyes"; then
19406    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19407    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19408fi
19409
19410
19411
19412
19413
19414
19415cat >>confdefs.h <<_ACEOF
19416#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19417_ACEOF
19418
19419	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19420	if test "x$PVM" = "x"; then
19421		PVM="0"
19422	fi
19423
19424printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19425
19426	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19427	if test "x$PVP" = "x"; then
19428		PVP="0"
19429	fi
19430
19431printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19432
19433
19434
19435CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19436mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19437|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19438touch \$(top_srcdir)/ChangeLog; \
19439echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19440
19441
19442
19443
19444macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19445INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19446mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19447|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19448touch \$(top_srcdir)/INSTALL; \
19449echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19450
19451
19452
19453
19454
19455
19456case $host_os in
19457    solaris*)
19458        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19459        # check for a man page file found in later versions that use
19460        # traditional section numbers instead
19461        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19462printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19463if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19464then :
19465  printf %s "(cached) " >&6
19466else $as_nop
19467  test "$cross_compiling" = yes &&
19468  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19469if test -r "/usr/share/man/man7/attributes.7"; then
19470  ac_cv_file__usr_share_man_man7_attributes_7=yes
19471else
19472  ac_cv_file__usr_share_man_man7_attributes_7=no
19473fi
19474fi
19475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19476printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19477if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19478then :
19479  SYSV_MAN_SECTIONS=false
19480else $as_nop
19481  SYSV_MAN_SECTIONS=true
19482fi
19483
19484        ;;
19485    *) SYSV_MAN_SECTIONS=false ;;
19486esac
19487
19488if test x$APP_MAN_SUFFIX = x    ; then
19489    APP_MAN_SUFFIX=1
19490fi
19491if test x$APP_MAN_DIR = x    ; then
19492    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19493fi
19494
19495if test x$LIB_MAN_SUFFIX = x    ; then
19496    LIB_MAN_SUFFIX=3
19497fi
19498if test x$LIB_MAN_DIR = x    ; then
19499    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19500fi
19501
19502if test x$FILE_MAN_SUFFIX = x    ; then
19503    case $SYSV_MAN_SECTIONS in
19504	true)				FILE_MAN_SUFFIX=4  ;;
19505	*)				FILE_MAN_SUFFIX=5  ;;
19506    esac
19507fi
19508if test x$FILE_MAN_DIR = x    ; then
19509    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19510fi
19511
19512if test x$MISC_MAN_SUFFIX = x    ; then
19513    case $SYSV_MAN_SECTIONS in
19514	true)				MISC_MAN_SUFFIX=5  ;;
19515	*)				MISC_MAN_SUFFIX=7  ;;
19516    esac
19517fi
19518if test x$MISC_MAN_DIR = x    ; then
19519    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19520fi
19521
19522if test x$DRIVER_MAN_SUFFIX = x    ; then
19523    case $SYSV_MAN_SECTIONS in
19524	true)				DRIVER_MAN_SUFFIX=7  ;;
19525	*)				DRIVER_MAN_SUFFIX=4  ;;
19526    esac
19527fi
19528if test x$DRIVER_MAN_DIR = x    ; then
19529    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19530fi
19531
19532if test x$ADMIN_MAN_SUFFIX = x    ; then
19533    case $SYSV_MAN_SECTIONS in
19534	true)				ADMIN_MAN_SUFFIX=1m ;;
19535	*)				ADMIN_MAN_SUFFIX=8  ;;
19536    esac
19537fi
19538if test x$ADMIN_MAN_DIR = x    ; then
19539    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19540fi
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556XORG_MAN_PAGE="X Version 11"
19557
19558MAN_SUBSTS="\
19559	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19560	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19561	-e 's|__xservername__|Xorg|g' \
19562	-e 's|__xconfigfile__|xorg.conf|g' \
19563	-e 's|__projectroot__|\$(prefix)|g' \
19564	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19565	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19566	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19567	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19568	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19569	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19570	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19571
19572
19573
19574# Check whether --enable-silent-rules was given.
19575if test ${enable_silent_rules+y}
19576then :
19577  enableval=$enable_silent_rules;
19578fi
19579
19580case $enable_silent_rules in # (((
19581  yes) AM_DEFAULT_VERBOSITY=0;;
19582   no) AM_DEFAULT_VERBOSITY=1;;
19583    *) AM_DEFAULT_VERBOSITY=0;;
19584esac
19585am_make=${MAKE-make}
19586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19587printf %s "checking whether $am_make supports nested variables... " >&6; }
19588if test ${am_cv_make_support_nested_variables+y}
19589then :
19590  printf %s "(cached) " >&6
19591else $as_nop
19592  if printf "%s\n" 'TRUE=$(BAR$(V))
19593BAR0=false
19594BAR1=true
19595V=1
19596am__doit:
19597	@$(TRUE)
19598.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19599  am_cv_make_support_nested_variables=yes
19600else
19601  am_cv_make_support_nested_variables=no
19602fi
19603fi
19604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19605printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19606if test $am_cv_make_support_nested_variables = yes; then
19607    AM_V='$(V)'
19608  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19609else
19610  AM_V=$AM_DEFAULT_VERBOSITY
19611  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19612fi
19613AM_BACKSLASH='\'
19614
19615
19616
19617
19618# Check whether --enable-devel-docs was given.
19619if test ${enable_devel_docs+y}
19620then :
19621  enableval=$enable_devel_docs; build_devel_docs=$enableval
19622else $as_nop
19623  build_devel_docs=yes
19624fi
19625
19626
19627 if test x$build_devel_docs = xyes; then
19628  ENABLE_DEVEL_DOCS_TRUE=
19629  ENABLE_DEVEL_DOCS_FALSE='#'
19630else
19631  ENABLE_DEVEL_DOCS_TRUE='#'
19632  ENABLE_DEVEL_DOCS_FALSE=
19633fi
19634
19635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19636printf %s "checking whether to build developer documentation... " >&6; }
19637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19638printf "%s\n" "$build_devel_docs" >&6; }
19639
19640
19641
19642
19643
19644# Check whether --with-xmlto was given.
19645if test ${with_xmlto+y}
19646then :
19647  withval=$with_xmlto; use_xmlto=$withval
19648else $as_nop
19649  use_xmlto=auto
19650fi
19651
19652
19653
19654if test "x$use_xmlto" = x"auto"; then
19655   # Extract the first word of "xmlto", so it can be a program name with args.
19656set dummy xmlto; ac_word=$2
19657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19658printf %s "checking for $ac_word... " >&6; }
19659if test ${ac_cv_path_XMLTO+y}
19660then :
19661  printf %s "(cached) " >&6
19662else $as_nop
19663  case $XMLTO in
19664  [\\/]* | ?:[\\/]*)
19665  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19666  ;;
19667  *)
19668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669for as_dir in $PATH
19670do
19671  IFS=$as_save_IFS
19672  case $as_dir in #(((
19673    '') as_dir=./ ;;
19674    */) ;;
19675    *) as_dir=$as_dir/ ;;
19676  esac
19677    for ac_exec_ext in '' $ac_executable_extensions; do
19678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19679    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19681    break 2
19682  fi
19683done
19684  done
19685IFS=$as_save_IFS
19686
19687  ;;
19688esac
19689fi
19690XMLTO=$ac_cv_path_XMLTO
19691if test -n "$XMLTO"; then
19692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19693printf "%s\n" "$XMLTO" >&6; }
19694else
19695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696printf "%s\n" "no" >&6; }
19697fi
19698
19699
19700   if test "x$XMLTO" = "x"; then
19701        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19702printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19703	have_xmlto=no
19704   else
19705        have_xmlto=yes
19706   fi
19707elif test "x$use_xmlto" = x"yes" ; then
19708   # Extract the first word of "xmlto", so it can be a program name with args.
19709set dummy xmlto; ac_word=$2
19710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19711printf %s "checking for $ac_word... " >&6; }
19712if test ${ac_cv_path_XMLTO+y}
19713then :
19714  printf %s "(cached) " >&6
19715else $as_nop
19716  case $XMLTO in
19717  [\\/]* | ?:[\\/]*)
19718  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19719  ;;
19720  *)
19721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722for as_dir in $PATH
19723do
19724  IFS=$as_save_IFS
19725  case $as_dir in #(((
19726    '') as_dir=./ ;;
19727    */) ;;
19728    *) as_dir=$as_dir/ ;;
19729  esac
19730    for ac_exec_ext in '' $ac_executable_extensions; do
19731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19732    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19734    break 2
19735  fi
19736done
19737  done
19738IFS=$as_save_IFS
19739
19740  ;;
19741esac
19742fi
19743XMLTO=$ac_cv_path_XMLTO
19744if test -n "$XMLTO"; then
19745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19746printf "%s\n" "$XMLTO" >&6; }
19747else
19748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749printf "%s\n" "no" >&6; }
19750fi
19751
19752
19753   if test "x$XMLTO" = "x"; then
19754        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19755   fi
19756   have_xmlto=yes
19757elif test "x$use_xmlto" = x"no" ; then
19758   if test "x$XMLTO" != "x"; then
19759      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19760printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19761   fi
19762   have_xmlto=no
19763else
19764   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19765fi
19766
19767# Test for a minimum version of xmlto, if provided.
19768if test "$have_xmlto" = yes; then
19769    # scrape the xmlto version
19770    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19771printf %s "checking the xmlto version... " >&6; }
19772    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19773    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19774printf "%s\n" "$xmlto_version" >&6; }
19775    as_arg_v1=$xmlto_version
19776as_arg_v2=0.0.22
19777awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19778case $? in #(
19779  1) :
19780    if test "x$use_xmlto" = xauto; then
19781            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19782printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19783            have_xmlto=no
19784        else
19785            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19786        fi ;; #(
19787  0) :
19788     ;; #(
19789  2) :
19790     ;; #(
19791  *) :
19792     ;;
19793esac
19794fi
19795
19796# Test for the ability of xmlto to generate a text target
19797#
19798# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19799# following test for empty XML docbook files.
19800# For compatibility reasons use the following empty XML docbook file and if
19801# it fails try it again with a non-empty XML file.
19802have_xmlto_text=no
19803cat > conftest.xml << "EOF"
19804EOF
19805if test "$have_xmlto" = yes
19806then :
19807  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19808then :
19809  have_xmlto_text=yes
19810else $as_nop
19811  # Try it again with a non-empty XML file.
19812              cat > conftest.xml << "EOF"
19813<x></x>
19814EOF
19815              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19816then :
19817  have_xmlto_text=yes
19818else $as_nop
19819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19820printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19821fi
19822fi
19823fi
19824rm -f conftest.xml
19825 if test $have_xmlto_text = yes; then
19826  HAVE_XMLTO_TEXT_TRUE=
19827  HAVE_XMLTO_TEXT_FALSE='#'
19828else
19829  HAVE_XMLTO_TEXT_TRUE='#'
19830  HAVE_XMLTO_TEXT_FALSE=
19831fi
19832
19833 if test "$have_xmlto" = yes; then
19834  HAVE_XMLTO_TRUE=
19835  HAVE_XMLTO_FALSE='#'
19836else
19837  HAVE_XMLTO_TRUE='#'
19838  HAVE_XMLTO_FALSE=
19839fi
19840
19841
19842
19843
19844
19845
19846# Check whether --with-fop was given.
19847if test ${with_fop+y}
19848then :
19849  withval=$with_fop; use_fop=$withval
19850else $as_nop
19851  use_fop=auto
19852fi
19853
19854
19855
19856if test "x$use_fop" = x"auto"; then
19857   # Extract the first word of "fop", so it can be a program name with args.
19858set dummy fop; ac_word=$2
19859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19860printf %s "checking for $ac_word... " >&6; }
19861if test ${ac_cv_path_FOP+y}
19862then :
19863  printf %s "(cached) " >&6
19864else $as_nop
19865  case $FOP in
19866  [\\/]* | ?:[\\/]*)
19867  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19868  ;;
19869  *)
19870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19871for as_dir in $PATH
19872do
19873  IFS=$as_save_IFS
19874  case $as_dir in #(((
19875    '') as_dir=./ ;;
19876    */) ;;
19877    *) as_dir=$as_dir/ ;;
19878  esac
19879    for ac_exec_ext in '' $ac_executable_extensions; do
19880  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19881    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19883    break 2
19884  fi
19885done
19886  done
19887IFS=$as_save_IFS
19888
19889  ;;
19890esac
19891fi
19892FOP=$ac_cv_path_FOP
19893if test -n "$FOP"; then
19894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19895printf "%s\n" "$FOP" >&6; }
19896else
19897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19898printf "%s\n" "no" >&6; }
19899fi
19900
19901
19902   if test "x$FOP" = "x"; then
19903        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19904printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19905	have_fop=no
19906   else
19907        have_fop=yes
19908   fi
19909elif test "x$use_fop" = x"yes" ; then
19910   # Extract the first word of "fop", so it can be a program name with args.
19911set dummy fop; ac_word=$2
19912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19913printf %s "checking for $ac_word... " >&6; }
19914if test ${ac_cv_path_FOP+y}
19915then :
19916  printf %s "(cached) " >&6
19917else $as_nop
19918  case $FOP in
19919  [\\/]* | ?:[\\/]*)
19920  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19921  ;;
19922  *)
19923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924for as_dir in $PATH
19925do
19926  IFS=$as_save_IFS
19927  case $as_dir in #(((
19928    '') as_dir=./ ;;
19929    */) ;;
19930    *) as_dir=$as_dir/ ;;
19931  esac
19932    for ac_exec_ext in '' $ac_executable_extensions; do
19933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19934    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19936    break 2
19937  fi
19938done
19939  done
19940IFS=$as_save_IFS
19941
19942  ;;
19943esac
19944fi
19945FOP=$ac_cv_path_FOP
19946if test -n "$FOP"; then
19947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19948printf "%s\n" "$FOP" >&6; }
19949else
19950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19951printf "%s\n" "no" >&6; }
19952fi
19953
19954
19955   if test "x$FOP" = "x"; then
19956        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19957   fi
19958   have_fop=yes
19959elif test "x$use_fop" = x"no" ; then
19960   if test "x$FOP" != "x"; then
19961      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19962printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19963   fi
19964   have_fop=no
19965else
19966   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19967fi
19968
19969# Test for a minimum version of fop, if provided.
19970
19971 if test "$have_fop" = yes; then
19972  HAVE_FOP_TRUE=
19973  HAVE_FOP_FALSE='#'
19974else
19975  HAVE_FOP_TRUE='#'
19976  HAVE_FOP_FALSE=
19977fi
19978
19979
19980
19981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
19982printf %s "checking for X.Org SGML entities >= 1.7... " >&6; }
19983XORG_SGML_PATH=
19984if test -n "$PKG_CONFIG" && \
19985    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
19986  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
19987  ac_status=$?
19988  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19989  test $ac_status = 0; }; then
19990  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19991else
19992  :
19993
19994fi
19995
19996# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19997# the path and the name of the doc stylesheet
19998if test "x$XORG_SGML_PATH" != "x" ; then
19999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20000printf "%s\n" "$XORG_SGML_PATH" >&6; }
20001   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20002   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20003else
20004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005printf "%s\n" "no" >&6; }
20006fi
20007
20008
20009
20010
20011 if test "x$XSL_STYLESHEET" != "x"; then
20012  HAVE_STYLESHEETS_TRUE=
20013  HAVE_STYLESHEETS_FALSE='#'
20014else
20015  HAVE_STYLESHEETS_TRUE='#'
20016  HAVE_STYLESHEETS_FALSE=
20017fi
20018
20019
20020
20021# Checks for header files.
20022ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
20023if test "x$ac_cv_header_endian_h" = xyes
20024then :
20025  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
20026
20027fi
20028ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
20029if test "x$ac_cv_header_poll_h" = xyes
20030then :
20031  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
20032
20033fi
20034ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
20035if test "x$ac_cv_header_sys_poll_h" = xyes
20036then :
20037  printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
20038
20039fi
20040
20041
20042# Checks for library functions.
20043ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20044if test "x$ac_cv_func_poll" = xyes
20045then :
20046  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
20047
20048fi
20049ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
20050if test "x$ac_cv_func_readlink" = xyes
20051then :
20052  printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
20053
20054fi
20055
20056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5
20057printf %s "checking for library containing strlcat... " >&6; }
20058if test ${ac_cv_search_strlcat+y}
20059then :
20060  printf %s "(cached) " >&6
20061else $as_nop
20062  ac_func_search_save_LIBS=$LIBS
20063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064/* end confdefs.h.  */
20065
20066/* Override any GCC internal prototype to avoid an error.
20067   Use char because int might match the return type of a GCC
20068   builtin and then its argument prototype would still apply.  */
20069char strlcat ();
20070int
20071main (void)
20072{
20073return strlcat ();
20074  ;
20075  return 0;
20076}
20077_ACEOF
20078for ac_lib in '' bsd
20079do
20080  if test -z "$ac_lib"; then
20081    ac_res="none required"
20082  else
20083    ac_res=-l$ac_lib
20084    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20085  fi
20086  if ac_fn_c_try_link "$LINENO"
20087then :
20088  ac_cv_search_strlcat=$ac_res
20089fi
20090rm -f core conftest.err conftest.$ac_objext conftest.beam \
20091    conftest$ac_exeext
20092  if test ${ac_cv_search_strlcat+y}
20093then :
20094  break
20095fi
20096done
20097if test ${ac_cv_search_strlcat+y}
20098then :
20099
20100else $as_nop
20101  ac_cv_search_strlcat=no
20102fi
20103rm conftest.$ac_ext
20104LIBS=$ac_func_search_save_LIBS
20105fi
20106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5
20107printf "%s\n" "$ac_cv_search_strlcat" >&6; }
20108ac_res=$ac_cv_search_strlcat
20109if test "$ac_res" != no
20110then :
20111  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20112
20113fi
20114
20115if test "$ac_cv_search_strlcat" = "-lbsd"; then
20116
20117printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
20118
20119fi
20120
20121ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20122if test "x$ac_cv_func_reallocarray" = xyes
20123then :
20124  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20125
20126else $as_nop
20127  case " $LIBOBJS " in
20128  *" reallocarray.$ac_objext "* ) ;;
20129  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20130 ;;
20131esac
20132
20133fi
20134ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
20135if test "x$ac_cv_func_realpath" = xyes
20136then :
20137  printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
20138
20139else $as_nop
20140  case " $LIBOBJS " in
20141  *" realpath.$ac_objext "* ) ;;
20142  *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
20143 ;;
20144esac
20145
20146fi
20147ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20148if test "x$ac_cv_func_strlcat" = xyes
20149then :
20150  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
20151
20152else $as_nop
20153  case " $LIBOBJS " in
20154  *" strlcat.$ac_objext "* ) ;;
20155  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20156 ;;
20157esac
20158
20159fi
20160ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20161if test "x$ac_cv_func_strlcpy" = xyes
20162then :
20163  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20164
20165else $as_nop
20166  case " $LIBOBJS " in
20167  *" strlcpy.$ac_objext "* ) ;;
20168  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20169 ;;
20170esac
20171
20172fi
20173
20174
20175# Check for BSDish err.h
20176ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
20177if test "x$ac_cv_header_err_h" = xyes
20178then :
20179  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
20180
20181fi
20182
20183
20184# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
20185# must first be located explicitly.
20186
20187
20188
20189
20190
20191
20192
20193if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20194	if test -n "$ac_tool_prefix"; then
20195  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20196set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198printf %s "checking for $ac_word... " >&6; }
20199if test ${ac_cv_path_PKG_CONFIG+y}
20200then :
20201  printf %s "(cached) " >&6
20202else $as_nop
20203  case $PKG_CONFIG in
20204  [\\/]* | ?:[\\/]*)
20205  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20206  ;;
20207  *)
20208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209for as_dir in $PATH
20210do
20211  IFS=$as_save_IFS
20212  case $as_dir in #(((
20213    '') as_dir=./ ;;
20214    */) ;;
20215    *) as_dir=$as_dir/ ;;
20216  esac
20217    for ac_exec_ext in '' $ac_executable_extensions; do
20218  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20219    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20220    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20221    break 2
20222  fi
20223done
20224  done
20225IFS=$as_save_IFS
20226
20227  ;;
20228esac
20229fi
20230PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20231if test -n "$PKG_CONFIG"; then
20232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20233printf "%s\n" "$PKG_CONFIG" >&6; }
20234else
20235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236printf "%s\n" "no" >&6; }
20237fi
20238
20239
20240fi
20241if test -z "$ac_cv_path_PKG_CONFIG"; then
20242  ac_pt_PKG_CONFIG=$PKG_CONFIG
20243  # Extract the first word of "pkg-config", so it can be a program name with args.
20244set dummy pkg-config; ac_word=$2
20245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20246printf %s "checking for $ac_word... " >&6; }
20247if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20248then :
20249  printf %s "(cached) " >&6
20250else $as_nop
20251  case $ac_pt_PKG_CONFIG in
20252  [\\/]* | ?:[\\/]*)
20253  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20254  ;;
20255  *)
20256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20257for as_dir in $PATH
20258do
20259  IFS=$as_save_IFS
20260  case $as_dir in #(((
20261    '') as_dir=./ ;;
20262    */) ;;
20263    *) as_dir=$as_dir/ ;;
20264  esac
20265    for ac_exec_ext in '' $ac_executable_extensions; do
20266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20267    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20269    break 2
20270  fi
20271done
20272  done
20273IFS=$as_save_IFS
20274
20275  ;;
20276esac
20277fi
20278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20279if test -n "$ac_pt_PKG_CONFIG"; then
20280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20281printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20282else
20283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284printf "%s\n" "no" >&6; }
20285fi
20286
20287  if test "x$ac_pt_PKG_CONFIG" = x; then
20288    PKG_CONFIG=""
20289  else
20290    case $cross_compiling:$ac_tool_warned in
20291yes:)
20292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20293printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20294ac_tool_warned=yes ;;
20295esac
20296    PKG_CONFIG=$ac_pt_PKG_CONFIG
20297  fi
20298else
20299  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20300fi
20301
20302fi
20303if test -n "$PKG_CONFIG"; then
20304	_pkg_min_version=0.9.0
20305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20306printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20307	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20309printf "%s\n" "yes" >&6; }
20310	else
20311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20312printf "%s\n" "no" >&6; }
20313		PKG_CONFIG=""
20314	fi
20315fi
20316
20317#
20318# select libraries to include
20319#
20320
20321XFONT_FONTFILE=no
20322
20323#
20324# FreeType for all scalable (OpenType, TrueType, PostScript) and
20325# some bitmap formats (BDF & PCF)
20326#
20327# Check whether --enable-freetype was given.
20328if test ${enable_freetype+y}
20329then :
20330  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
20331else $as_nop
20332  XFONT_FREETYPE=yes
20333fi
20334
20335 if test x$XFONT_FREETYPE = xyes; then
20336  XFONT_FREETYPE_TRUE=
20337  XFONT_FREETYPE_FALSE='#'
20338else
20339  XFONT_FREETYPE_TRUE='#'
20340  XFONT_FREETYPE_FALSE=
20341fi
20342
20343if test x$XFONT_FREETYPE = xyes; then
20344
20345printf "%s\n" "#define XFONT_FREETYPE 1" >>confdefs.h
20346
20347
20348# Check whether --with-freetype-config was given.
20349if test ${with_freetype_config+y}
20350then :
20351  withval=$with_freetype_config; freetype_config=$withval
20352else $as_nop
20353  freetype_config=auto
20354fi
20355
20356
20357	if test "$freetype_config" = "auto" ; then
20358
20359pkg_failed=no
20360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20361printf %s "checking for FREETYPE... " >&6; }
20362
20363if test -n "$FREETYPE_CFLAGS"; then
20364    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20365 elif test -n "$PKG_CONFIG"; then
20366    if test -n "$PKG_CONFIG" && \
20367    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
20368  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20369  ac_status=$?
20370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20371  test $ac_status = 0; }; then
20372  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
20373		      test "x$?" != "x0" && pkg_failed=yes
20374else
20375  pkg_failed=yes
20376fi
20377 else
20378    pkg_failed=untried
20379fi
20380if test -n "$FREETYPE_LIBS"; then
20381    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20382 elif test -n "$PKG_CONFIG"; then
20383    if test -n "$PKG_CONFIG" && \
20384    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
20385  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20386  ac_status=$?
20387  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20388  test $ac_status = 0; }; then
20389  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
20390		      test "x$?" != "x0" && pkg_failed=yes
20391else
20392  pkg_failed=yes
20393fi
20394 else
20395    pkg_failed=untried
20396fi
20397
20398
20399
20400if test $pkg_failed = yes; then
20401   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20402printf "%s\n" "no" >&6; }
20403
20404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20405        _pkg_short_errors_supported=yes
20406else
20407        _pkg_short_errors_supported=no
20408fi
20409        if test $_pkg_short_errors_supported = yes; then
20410	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
20411        else
20412	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
20413        fi
20414	# Put the nasty error message in config.log where it belongs
20415	echo "$FREETYPE_PKG_ERRORS" >&5
20416
20417	freetype_config=yes
20418elif test $pkg_failed = untried; then
20419     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20420printf "%s\n" "no" >&6; }
20421	freetype_config=yes
20422else
20423	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20424	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20425        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20426printf "%s\n" "yes" >&6; }
20427	freetype_config=no
20428fi
20429	fi
20430
20431	if test "$freetype_config" = "yes"; then
20432		# Extract the first word of "freetype-config", so it can be a program name with args.
20433set dummy freetype-config; ac_word=$2
20434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435printf %s "checking for $ac_word... " >&6; }
20436if test ${ac_cv_path_ft_config+y}
20437then :
20438  printf %s "(cached) " >&6
20439else $as_nop
20440  case $ft_config in
20441  [\\/]* | ?:[\\/]*)
20442  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
20443  ;;
20444  *)
20445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20446for as_dir in $PATH
20447do
20448  IFS=$as_save_IFS
20449  case $as_dir in #(((
20450    '') as_dir=./ ;;
20451    */) ;;
20452    *) as_dir=$as_dir/ ;;
20453  esac
20454    for ac_exec_ext in '' $ac_executable_extensions; do
20455  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20456    ac_cv_path_ft_config="$as_dir$ac_word$ac_exec_ext"
20457    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20458    break 2
20459  fi
20460done
20461  done
20462IFS=$as_save_IFS
20463
20464  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
20465  ;;
20466esac
20467fi
20468ft_config=$ac_cv_path_ft_config
20469if test -n "$ft_config"; then
20470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
20471printf "%s\n" "$ft_config" >&6; }
20472else
20473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20474printf "%s\n" "no" >&6; }
20475fi
20476
20477
20478		if test "$ft_config" = "no"; then
20479			as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
20480		fi
20481	else
20482		ft_config="$freetype_config"
20483	fi
20484
20485	if test "$freetype_config" != "no"; then
20486		FREETYPE_CFLAGS="`$ft_config --cflags`"
20487		FREETYPE_LIBS="`$ft_config --libs`"
20488	fi
20489	FREETYPE_REQUIRES="freetype2"
20490	XFONT_FONTFILE=yes
20491else
20492	FREETYPE_CFLAGS=""
20493	FREETYPE_LIBS=""
20494	FREETYPE_REQUIRES=""
20495fi
20496
20497
20498
20499
20500#
20501# Bitmap fonts in files:
20502#	Builtins (gzipped pcf format in .text segment)
20503#	PCF
20504#	BDF
20505#	SNF
20506#
20507
20508
20509printf "%s\n" "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
20510
20511X_GZIP_FONT_COMPRESSION=1
20512
20513
20514pkg_failed=no
20515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
20516printf %s "checking for ZLIB... " >&6; }
20517
20518if test -n "$ZLIB_CFLAGS"; then
20519    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20520 elif test -n "$PKG_CONFIG"; then
20521    if test -n "$PKG_CONFIG" && \
20522    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20523  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20524  ac_status=$?
20525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20526  test $ac_status = 0; }; then
20527  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20528		      test "x$?" != "x0" && pkg_failed=yes
20529else
20530  pkg_failed=yes
20531fi
20532 else
20533    pkg_failed=untried
20534fi
20535if test -n "$ZLIB_LIBS"; then
20536    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20537 elif test -n "$PKG_CONFIG"; then
20538    if test -n "$PKG_CONFIG" && \
20539    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20540  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20541  ac_status=$?
20542  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543  test $ac_status = 0; }; then
20544  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20545		      test "x$?" != "x0" && pkg_failed=yes
20546else
20547  pkg_failed=yes
20548fi
20549 else
20550    pkg_failed=untried
20551fi
20552
20553
20554
20555if test $pkg_failed = yes; then
20556   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557printf "%s\n" "no" >&6; }
20558
20559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20560        _pkg_short_errors_supported=yes
20561else
20562        _pkg_short_errors_supported=no
20563fi
20564        if test $_pkg_short_errors_supported = yes; then
20565	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20566        else
20567	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20568        fi
20569	# Put the nasty error message in config.log where it belongs
20570	echo "$ZLIB_PKG_ERRORS" >&5
20571
20572	Z_REQUIRES=""
20573elif test $pkg_failed = untried; then
20574     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575printf "%s\n" "no" >&6; }
20576	Z_REQUIRES=""
20577else
20578	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20579	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20580        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20581printf "%s\n" "yes" >&6; }
20582	Z_REQUIRES=zlib
20583fi
20584if test "x$Z_REQUIRES" = "x"; then
20585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
20586printf %s "checking for gzopen in -lz... " >&6; }
20587if test ${ac_cv_lib_z_gzopen+y}
20588then :
20589  printf %s "(cached) " >&6
20590else $as_nop
20591  ac_check_lib_save_LIBS=$LIBS
20592LIBS="-lz  $LIBS"
20593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594/* end confdefs.h.  */
20595
20596/* Override any GCC internal prototype to avoid an error.
20597   Use char because int might match the return type of a GCC
20598   builtin and then its argument prototype would still apply.  */
20599char gzopen ();
20600int
20601main (void)
20602{
20603return gzopen ();
20604  ;
20605  return 0;
20606}
20607_ACEOF
20608if ac_fn_c_try_link "$LINENO"
20609then :
20610  ac_cv_lib_z_gzopen=yes
20611else $as_nop
20612  ac_cv_lib_z_gzopen=no
20613fi
20614rm -f core conftest.err conftest.$ac_objext conftest.beam \
20615    conftest$ac_exeext conftest.$ac_ext
20616LIBS=$ac_check_lib_save_LIBS
20617fi
20618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
20619printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
20620if test "x$ac_cv_lib_z_gzopen" = xyes
20621then :
20622  Z_LIBS=-lz
20623else $as_nop
20624  as_fn_error $? "*** zlib is required" "$LINENO" 5
20625fi
20626
20627fi
20628
20629
20630
20631# Check whether --with-bzip2 was given.
20632if test ${with_bzip2+y}
20633then :
20634  withval=$with_bzip2;
20635else $as_nop
20636  with_bzip2=no
20637fi
20638
20639if test "x$with_bzip2" = xyes; then
20640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
20641printf %s "checking for BZ2_bzopen in -lbz2... " >&6; }
20642if test ${ac_cv_lib_bz2_BZ2_bzopen+y}
20643then :
20644  printf %s "(cached) " >&6
20645else $as_nop
20646  ac_check_lib_save_LIBS=$LIBS
20647LIBS="-lbz2  $LIBS"
20648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649/* end confdefs.h.  */
20650
20651/* Override any GCC internal prototype to avoid an error.
20652   Use char because int might match the return type of a GCC
20653   builtin and then its argument prototype would still apply.  */
20654char BZ2_bzopen ();
20655int
20656main (void)
20657{
20658return BZ2_bzopen ();
20659  ;
20660  return 0;
20661}
20662_ACEOF
20663if ac_fn_c_try_link "$LINENO"
20664then :
20665  ac_cv_lib_bz2_BZ2_bzopen=yes
20666else $as_nop
20667  ac_cv_lib_bz2_BZ2_bzopen=no
20668fi
20669rm -f core conftest.err conftest.$ac_objext conftest.beam \
20670    conftest$ac_exeext conftest.$ac_ext
20671LIBS=$ac_check_lib_save_LIBS
20672fi
20673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
20674printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
20675if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes
20676then :
20677  Z_LIBS="$Z_LIBS -lbz2"
20678else $as_nop
20679  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
20680fi
20681
20682
20683printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
20684
20685fi
20686 if test "x$with_bzip2" = xyes ; then
20687  X_BZIP2_FONT_COMPRESSION_TRUE=
20688  X_BZIP2_FONT_COMPRESSION_FALSE='#'
20689else
20690  X_BZIP2_FONT_COMPRESSION_TRUE='#'
20691  X_BZIP2_FONT_COMPRESSION_FALSE=
20692fi
20693
20694
20695
20696# Check whether --enable-builtins was given.
20697if test ${enable_builtins+y}
20698then :
20699  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
20700else $as_nop
20701  XFONT_BUILTINS=yes
20702fi
20703
20704 if test "x$XFONT_BUILTINS" = xyes ; then
20705  XFONT_BUILTINS_TRUE=
20706  XFONT_BUILTINS_FALSE='#'
20707else
20708  XFONT_BUILTINS_TRUE='#'
20709  XFONT_BUILTINS_FALSE=
20710fi
20711
20712if test "x$XFONT_BUILTINS" = xyes; then
20713
20714printf "%s\n" "#define XFONT_BUILTINS 1" >>confdefs.h
20715
20716	XFONT_BITMAP=yes
20717fi
20718
20719# Check whether --enable-pcfformat was given.
20720if test ${enable_pcfformat+y}
20721then :
20722  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
20723else $as_nop
20724  XFONT_PCFFORMAT=yes
20725fi
20726
20727 if test "x$XFONT_PCFFORMAT" = xyes; then
20728  XFONT_PCFFORMAT_TRUE=
20729  XFONT_PCFFORMAT_FALSE='#'
20730else
20731  XFONT_PCFFORMAT_TRUE='#'
20732  XFONT_PCFFORMAT_FALSE=
20733fi
20734
20735if test "x$XFONT_PCFFORMAT" = xyes; then
20736
20737printf "%s\n" "#define XFONT_PCFFORMAT 1" >>confdefs.h
20738
20739	XFONT_BITMAP=yes
20740fi
20741
20742 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
20743  XFONT_PCF_OR_BUILTIN_TRUE=
20744  XFONT_PCF_OR_BUILTIN_FALSE='#'
20745else
20746  XFONT_PCF_OR_BUILTIN_TRUE='#'
20747  XFONT_PCF_OR_BUILTIN_FALSE=
20748fi
20749
20750
20751# Check whether --enable-bdfformat was given.
20752if test ${enable_bdfformat+y}
20753then :
20754  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
20755else $as_nop
20756  XFONT_BDFFORMAT=yes
20757fi
20758
20759 if test "x$XFONT_BDFFORMAT" = xyes; then
20760  XFONT_BDFFORMAT_TRUE=
20761  XFONT_BDFFORMAT_FALSE='#'
20762else
20763  XFONT_BDFFORMAT_TRUE='#'
20764  XFONT_BDFFORMAT_FALSE=
20765fi
20766
20767if test "x$XFONT_BDFFORMAT" = xyes; then
20768
20769printf "%s\n" "#define XFONT_BDFFORMAT 1" >>confdefs.h
20770
20771	XFONT_BITMAP=yes
20772fi
20773
20774# Check whether --enable-snfformat was given.
20775if test ${enable_snfformat+y}
20776then :
20777  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
20778else $as_nop
20779  XFONT_SNFFORMAT=no
20780fi
20781
20782 if test "x$XFONT_SNFFORMAT" = xyes; then
20783  XFONT_SNFFORMAT_TRUE=
20784  XFONT_SNFFORMAT_FALSE='#'
20785else
20786  XFONT_SNFFORMAT_TRUE='#'
20787  XFONT_SNFFORMAT_FALSE=
20788fi
20789
20790if test "x$XFONT_SNFFORMAT" = xyes; then
20791
20792printf "%s\n" "#define XFONT_SNFFORMAT 1" >>confdefs.h
20793
20794	XFONT_BITMAP=yes
20795fi
20796
20797 if test "x$XFONT_BITMAP" = xyes ; then
20798  XFONT_BITMAP_TRUE=
20799  XFONT_BITMAP_FALSE='#'
20800else
20801  XFONT_BITMAP_TRUE='#'
20802  XFONT_BITMAP_FALSE=
20803fi
20804
20805if test "x$XFONT_BITMAP" = xyes; then
20806
20807printf "%s\n" "#define XFONT_BITMAP 1" >>confdefs.h
20808
20809	XFONT_FONTFILE=yes
20810fi
20811
20812 if test "x$XFONT_FONTFILE" = xyes; then
20813  XFONT_FONTFILE_TRUE=
20814  XFONT_FONTFILE_FALSE='#'
20815else
20816  XFONT_FONTFILE_TRUE='#'
20817  XFONT_FONTFILE_FALSE=
20818fi
20819
20820if test "x$XFONT_FONTFILE" = xyes; then
20821
20822printf "%s\n" "#define XFONT_FONTFILE 1" >>confdefs.h
20823
20824fi
20825
20826#
20827# Support connection to font servers?
20828#
20829
20830# Check whether --enable-fc was given.
20831if test ${enable_fc+y}
20832then :
20833  enableval=$enable_fc; XFONT_FC=$enableval
20834else $as_nop
20835  XFONT_FC=yes
20836fi
20837
20838 if test "x$XFONT_FC" = xyes; then
20839  XFONT_FC_TRUE=
20840  XFONT_FC_FALSE='#'
20841else
20842  XFONT_FC_TRUE='#'
20843  XFONT_FC_FALSE=
20844fi
20845
20846if test "x$XFONT_FC" = xyes; then
20847
20848printf "%s\n" "#define XFONT_FC 1" >>confdefs.h
20849
20850fi
20851
20852
20853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
20854printf %s "checking for hypot in -lm... " >&6; }
20855if test ${ac_cv_lib_m_hypot+y}
20856then :
20857  printf %s "(cached) " >&6
20858else $as_nop
20859  ac_check_lib_save_LIBS=$LIBS
20860LIBS="-lm  $LIBS"
20861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862/* end confdefs.h.  */
20863
20864/* Override any GCC internal prototype to avoid an error.
20865   Use char because int might match the return type of a GCC
20866   builtin and then its argument prototype would still apply.  */
20867char hypot ();
20868int
20869main (void)
20870{
20871return hypot ();
20872  ;
20873  return 0;
20874}
20875_ACEOF
20876if ac_fn_c_try_link "$LINENO"
20877then :
20878  ac_cv_lib_m_hypot=yes
20879else $as_nop
20880  ac_cv_lib_m_hypot=no
20881fi
20882rm -f core conftest.err conftest.$ac_objext conftest.beam \
20883    conftest$ac_exeext conftest.$ac_ext
20884LIBS=$ac_check_lib_save_LIBS
20885fi
20886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
20887printf "%s\n" "$ac_cv_lib_m_hypot" >&6; }
20888if test "x$ac_cv_lib_m_hypot" = xyes
20889then :
20890  MATH_LIBS=-lm
20891
20892else $as_nop
20893  as_fn_error $? "*** libm is required" "$LINENO" 5
20894fi
20895
20896
20897
20898pkg_failed=no
20899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
20900printf %s "checking for XFONT... " >&6; }
20901
20902if test -n "$XFONT_CFLAGS"; then
20903    pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
20904 elif test -n "$PKG_CONFIG"; then
20905    if test -n "$PKG_CONFIG" && \
20906    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
20907  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
20908  ac_status=$?
20909  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20910  test $ac_status = 0; }; then
20911  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
20912		      test "x$?" != "x0" && pkg_failed=yes
20913else
20914  pkg_failed=yes
20915fi
20916 else
20917    pkg_failed=untried
20918fi
20919if test -n "$XFONT_LIBS"; then
20920    pkg_cv_XFONT_LIBS="$XFONT_LIBS"
20921 elif test -n "$PKG_CONFIG"; then
20922    if test -n "$PKG_CONFIG" && \
20923    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
20924  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
20925  ac_status=$?
20926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20927  test $ac_status = 0; }; then
20928  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
20929		      test "x$?" != "x0" && pkg_failed=yes
20930else
20931  pkg_failed=yes
20932fi
20933 else
20934    pkg_failed=untried
20935fi
20936
20937
20938
20939if test $pkg_failed = yes; then
20940   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941printf "%s\n" "no" >&6; }
20942
20943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20944        _pkg_short_errors_supported=yes
20945else
20946        _pkg_short_errors_supported=no
20947fi
20948        if test $_pkg_short_errors_supported = yes; then
20949	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
20950        else
20951	        XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
20952        fi
20953	# Put the nasty error message in config.log where it belongs
20954	echo "$XFONT_PKG_ERRORS" >&5
20955
20956	as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
20957
20958$XFONT_PKG_ERRORS
20959
20960Consider adjusting the PKG_CONFIG_PATH environment variable if you
20961installed software in a non-standard prefix.
20962
20963Alternatively, you may set the environment variables XFONT_CFLAGS
20964and XFONT_LIBS to avoid the need to call pkg-config.
20965See the pkg-config man page for more details." "$LINENO" 5
20966elif test $pkg_failed = untried; then
20967     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20968printf "%s\n" "no" >&6; }
20969	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20970printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20971as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20972is in your PATH or set the PKG_CONFIG environment variable to the full
20973path to pkg-config.
20974
20975Alternatively, you may set the environment variables XFONT_CFLAGS
20976and XFONT_LIBS to avoid the need to call pkg-config.
20977See the pkg-config man page for more details.
20978
20979To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20980See \`config.log' for more details" "$LINENO" 5; }
20981else
20982	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
20983	XFONT_LIBS=$pkg_cv_XFONT_LIBS
20984        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985printf "%s\n" "yes" >&6; }
20986
20987fi
20988
20989# Transport selection macro from xtrans.m4
20990
20991
20992 case $host_os in
20993	mingw*)	unixdef="no"   ;;
20994	*)	unixdef="yes"  ;;
20995 esac
20996 # Check whether --enable-unix-transport was given.
20997if test ${enable_unix_transport+y}
20998then :
20999  enableval=$enable_unix_transport; UNIXCONN=$enableval
21000else $as_nop
21001  UNIXCONN=$unixdef
21002fi
21003
21004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21005printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21006 if test "$UNIXCONN" = "yes"; then
21007
21008printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21009
21010 fi
21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21012printf "%s\n" "$UNIXCONN" >&6; }
21013 # Check whether --enable-tcp-transport was given.
21014if test ${enable_tcp_transport+y}
21015then :
21016  enableval=$enable_tcp_transport; TCPCONN=$enableval
21017else $as_nop
21018  TCPCONN=yes
21019fi
21020
21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21022printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21024printf "%s\n" "$TCPCONN" >&6; }
21025 if test "$TCPCONN" = "yes"; then
21026
21027printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21028
21029
21030 # SVR4 hides these in libraries other than libc
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21032printf %s "checking for library containing socket... " >&6; }
21033if test ${ac_cv_search_socket+y}
21034then :
21035  printf %s "(cached) " >&6
21036else $as_nop
21037  ac_func_search_save_LIBS=$LIBS
21038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039/* end confdefs.h.  */
21040
21041/* Override any GCC internal prototype to avoid an error.
21042   Use char because int might match the return type of a GCC
21043   builtin and then its argument prototype would still apply.  */
21044char socket ();
21045int
21046main (void)
21047{
21048return socket ();
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053for ac_lib in '' socket
21054do
21055  if test -z "$ac_lib"; then
21056    ac_res="none required"
21057  else
21058    ac_res=-l$ac_lib
21059    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21060  fi
21061  if ac_fn_c_try_link "$LINENO"
21062then :
21063  ac_cv_search_socket=$ac_res
21064fi
21065rm -f core conftest.err conftest.$ac_objext conftest.beam \
21066    conftest$ac_exeext
21067  if test ${ac_cv_search_socket+y}
21068then :
21069  break
21070fi
21071done
21072if test ${ac_cv_search_socket+y}
21073then :
21074
21075else $as_nop
21076  ac_cv_search_socket=no
21077fi
21078rm conftest.$ac_ext
21079LIBS=$ac_func_search_save_LIBS
21080fi
21081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21082printf "%s\n" "$ac_cv_search_socket" >&6; }
21083ac_res=$ac_cv_search_socket
21084if test "$ac_res" != no
21085then :
21086  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21087
21088fi
21089
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21091printf %s "checking for library containing gethostbyname... " >&6; }
21092if test ${ac_cv_search_gethostbyname+y}
21093then :
21094  printf %s "(cached) " >&6
21095else $as_nop
21096  ac_func_search_save_LIBS=$LIBS
21097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098/* end confdefs.h.  */
21099
21100/* Override any GCC internal prototype to avoid an error.
21101   Use char because int might match the return type of a GCC
21102   builtin and then its argument prototype would still apply.  */
21103char gethostbyname ();
21104int
21105main (void)
21106{
21107return gethostbyname ();
21108  ;
21109  return 0;
21110}
21111_ACEOF
21112for ac_lib in '' nsl
21113do
21114  if test -z "$ac_lib"; then
21115    ac_res="none required"
21116  else
21117    ac_res=-l$ac_lib
21118    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21119  fi
21120  if ac_fn_c_try_link "$LINENO"
21121then :
21122  ac_cv_search_gethostbyname=$ac_res
21123fi
21124rm -f core conftest.err conftest.$ac_objext conftest.beam \
21125    conftest$ac_exeext
21126  if test ${ac_cv_search_gethostbyname+y}
21127then :
21128  break
21129fi
21130done
21131if test ${ac_cv_search_gethostbyname+y}
21132then :
21133
21134else $as_nop
21135  ac_cv_search_gethostbyname=no
21136fi
21137rm conftest.$ac_ext
21138LIBS=$ac_func_search_save_LIBS
21139fi
21140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21141printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21142ac_res=$ac_cv_search_gethostbyname
21143if test "$ac_res" != no
21144then :
21145  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21146
21147fi
21148
21149 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21151printf %s "checking for main in -lws2_32... " >&6; }
21152if test ${ac_cv_lib_ws2_32_main+y}
21153then :
21154  printf %s "(cached) " >&6
21155else $as_nop
21156  ac_check_lib_save_LIBS=$LIBS
21157LIBS="-lws2_32  $LIBS"
21158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159/* end confdefs.h.  */
21160
21161
21162int
21163main (void)
21164{
21165return main ();
21166  ;
21167  return 0;
21168}
21169_ACEOF
21170if ac_fn_c_try_link "$LINENO"
21171then :
21172  ac_cv_lib_ws2_32_main=yes
21173else $as_nop
21174  ac_cv_lib_ws2_32_main=no
21175fi
21176rm -f core conftest.err conftest.$ac_objext conftest.beam \
21177    conftest$ac_exeext conftest.$ac_ext
21178LIBS=$ac_check_lib_save_LIBS
21179fi
21180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21181printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21182if test "x$ac_cv_lib_ws2_32_main" = xyes
21183then :
21184  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21185
21186  LIBS="-lws2_32 $LIBS"
21187
21188fi
21189
21190 fi
21191
21192 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21193 # Check whether --enable-ipv6 was given.
21194if test ${enable_ipv6+y}
21195then :
21196  enableval=$enable_ipv6; IPV6CONN=$enableval
21197else $as_nop
21198  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21199if test "x$ac_cv_func_getaddrinfo" = xyes
21200then :
21201  IPV6CONN=yes
21202else $as_nop
21203  IPV6CONN=no
21204fi
21205
21206fi
21207
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21209printf %s "checking if IPv6 support should be built... " >&6; }
21210 if test "$IPV6CONN" = "yes"; then
21211
21212printf "%s\n" "#define IPv6 1" >>confdefs.h
21213
21214 fi
21215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21216printf "%s\n" "$IPV6CONN" >&6; }
21217
21218 # 4.3BSD-Reno added a new member to struct sockaddr_in
21219 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21220#include <sys/types.h>
21221#include <sys/socket.h>
21222#include <netinet/in.h>
21223
21224"
21225if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21226then :
21227
21228printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21229
21230fi
21231
21232
21233 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21234 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21235$ac_includes_default
21236#include <sys/socket.h>
21237"
21238if test "x$ac_cv_type_socklen_t" = xyes
21239then :
21240
21241printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21242
21243
21244fi
21245
21246
21247 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21248 # _XOPEN_SOURCE to get it (such as on Solaris)
21249 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21250$ac_includes_default
21251#include <sys/socket.h>
21252
21253"
21254if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21255then :
21256
21257fi
21258
21259 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21260 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21261     unset ac_cv_member_struct_msghdr_msg_control
21262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21263printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21264     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21265#define _XOPEN_SOURCE 600
21266$ac_includes_default
21267#include <sys/socket.h>
21268
21269"
21270if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21271then :
21272
21273printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21274
21275
21276fi
21277
21278 fi
21279 # If that didn't work, fall back to XPG5/UNIX98 with C89
21280 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21281     unset ac_cv_member_struct_msghdr_msg_control
21282     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21283printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21284     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21285#define _XOPEN_SOURCE 500
21286$ac_includes_default
21287#include <sys/socket.h>
21288
21289"
21290if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21291then :
21292
21293printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21294
21295
21296fi
21297
21298 fi
21299
21300
21301
21302 fi
21303 case $host_os in
21304	solaris*)		localdef="yes" ;;
21305	*)			localdef="no"  ;;
21306 esac
21307 # Check whether --enable-local-transport was given.
21308if test ${enable_local_transport+y}
21309then :
21310  enableval=$enable_local_transport; LOCALCONN=$enableval
21311else $as_nop
21312  LOCALCONN=$localdef
21313fi
21314
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21316printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21318printf "%s\n" "$LOCALCONN" >&6; }
21319 if test "$LOCALCONN" = "yes"; then
21320
21321printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21322
21323 fi
21324
21325 # Other functions Xtrans may need
21326 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21327if test "x$ac_cv_func_strcasecmp" = xyes
21328then :
21329  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21330
21331fi
21332ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21333if test "x$ac_cv_func_strlcpy" = xyes
21334then :
21335  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21336
21337fi
21338
21339
21340
21341
21342case $host_os in
21343    linux*)
21344        OS_CFLAGS="-D_XOPEN_SOURCE"
21345        ;;
21346    *)
21347        OS_CFLAGS=
21348        ;;
21349esac
21350
21351save_CFLAGS="$CFLAGS"
21352CFLAGS="$CFLAGS -fvisibility=hidden"
21353CFLAGS_VISIBILITY=
21354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355/* end confdefs.h.  */
21356
21357    #if defined(__CYGWIN__) || defined(__MINGW32__)
21358    #error No visibility support
21359    #endif
21360    extern __attribute__((__visibility__("default"))) int x;
21361
21362_ACEOF
21363if ac_fn_c_try_compile "$LINENO"
21364then :
21365  CFLAGS_VISIBILITY=-fvisibility=hidden
21366fi
21367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21368CFLAGS="$save_CFLAGS"
21369OS_CFLAGS="$OS_CFLAGS $CFLAGS_VISIBILITY"
21370
21371
21372
21373ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc"
21374
21375cat >confcache <<\_ACEOF
21376# This file is a shell script that caches the results of configure
21377# tests run on this system so they can be shared between configure
21378# scripts and configure runs, see configure's option --config-cache.
21379# It is not useful on other systems.  If it contains results you don't
21380# want to keep, you may remove or edit it.
21381#
21382# config.status only pays attention to the cache file if you give it
21383# the --recheck option to rerun configure.
21384#
21385# `ac_cv_env_foo' variables (set or unset) will be overridden when
21386# loading this file, other *unset* `ac_cv_foo' will be assigned the
21387# following values.
21388
21389_ACEOF
21390
21391# The following way of writing the cache mishandles newlines in values,
21392# but we know of no workaround that is simple, portable, and efficient.
21393# So, we kill variables containing newlines.
21394# Ultrix sh set writes to stderr and can't be redirected directly,
21395# and sets the high bit in the cache file unless we assign to the vars.
21396(
21397  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21398    eval ac_val=\$$ac_var
21399    case $ac_val in #(
21400    *${as_nl}*)
21401      case $ac_var in #(
21402      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21403printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21404      esac
21405      case $ac_var in #(
21406      _ | IFS | as_nl) ;; #(
21407      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21408      *) { eval $ac_var=; unset $ac_var;} ;;
21409      esac ;;
21410    esac
21411  done
21412
21413  (set) 2>&1 |
21414    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415    *${as_nl}ac_space=\ *)
21416      # `set' does not quote correctly, so add quotes: double-quote
21417      # substitution turns \\\\ into \\, and sed turns \\ into \.
21418      sed -n \
21419	"s/'/'\\\\''/g;
21420	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21421      ;; #(
21422    *)
21423      # `set' quotes correctly as required by POSIX, so do not add quotes.
21424      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21425      ;;
21426    esac |
21427    sort
21428) |
21429  sed '
21430     /^ac_cv_env_/b end
21431     t clear
21432     :clear
21433     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21434     t end
21435     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21436     :end' >>confcache
21437if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438  if test -w "$cache_file"; then
21439    if test "x$cache_file" != "x/dev/null"; then
21440      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21441printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21442      if test ! -f "$cache_file" || test -h "$cache_file"; then
21443	cat confcache >"$cache_file"
21444      else
21445        case $cache_file in #(
21446        */* | ?:*)
21447	  mv -f confcache "$cache_file"$$ &&
21448	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21449        *)
21450	  mv -f confcache "$cache_file" ;;
21451	esac
21452      fi
21453    fi
21454  else
21455    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21456printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21457  fi
21458fi
21459rm -f confcache
21460
21461test "x$prefix" = xNONE && prefix=$ac_default_prefix
21462# Let make expand exec_prefix.
21463test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21464
21465DEFS=-DHAVE_CONFIG_H
21466
21467ac_libobjs=
21468ac_ltlibobjs=
21469U=
21470for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21471  # 1. Remove the extension, and $U if already installed.
21472  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21473  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21474  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21475  #    will be set to the directory where LIBOBJS objects are built.
21476  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21477  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21478done
21479LIBOBJS=$ac_libobjs
21480
21481LTLIBOBJS=$ac_ltlibobjs
21482
21483
21484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21485printf %s "checking that generated files are newer than configure... " >&6; }
21486   if test -n "$am_sleep_pid"; then
21487     # Hide warnings about reused PIDs.
21488     wait $am_sleep_pid 2>/dev/null
21489   fi
21490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21491printf "%s\n" "done" >&6; }
21492 if test -n "$EXEEXT"; then
21493  am__EXEEXT_TRUE=
21494  am__EXEEXT_FALSE='#'
21495else
21496  am__EXEEXT_TRUE='#'
21497  am__EXEEXT_FALSE=
21498fi
21499
21500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21501  as_fn_error $? "conditional \"AMDEP\" was never defined.
21502Usually this means the macro was only invoked conditionally." "$LINENO" 5
21503fi
21504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21505  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21506Usually this means the macro was only invoked conditionally." "$LINENO" 5
21507fi
21508if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
21509  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
21510Usually this means the macro was only invoked conditionally." "$LINENO" 5
21511fi
21512if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21513  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21514Usually this means the macro was only invoked conditionally." "$LINENO" 5
21515fi
21516if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21517  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21518Usually this means the macro was only invoked conditionally." "$LINENO" 5
21519fi
21520if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21521  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21522Usually this means the macro was only invoked conditionally." "$LINENO" 5
21523fi
21524if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21525  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21526Usually this means the macro was only invoked conditionally." "$LINENO" 5
21527fi
21528if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
21529  as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
21530Usually this means the macro was only invoked conditionally." "$LINENO" 5
21531fi
21532if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
21533  as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
21534Usually this means the macro was only invoked conditionally." "$LINENO" 5
21535fi
21536if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
21537  as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
21538Usually this means the macro was only invoked conditionally." "$LINENO" 5
21539fi
21540if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
21541  as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
21542Usually this means the macro was only invoked conditionally." "$LINENO" 5
21543fi
21544if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
21545  as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
21546Usually this means the macro was only invoked conditionally." "$LINENO" 5
21547fi
21548if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
21549  as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
21550Usually this means the macro was only invoked conditionally." "$LINENO" 5
21551fi
21552if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
21553  as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
21554Usually this means the macro was only invoked conditionally." "$LINENO" 5
21555fi
21556if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
21557  as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
21558Usually this means the macro was only invoked conditionally." "$LINENO" 5
21559fi
21560if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
21561  as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
21562Usually this means the macro was only invoked conditionally." "$LINENO" 5
21563fi
21564if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
21565  as_fn_error $? "conditional \"XFONT_FC\" was never defined.
21566Usually this means the macro was only invoked conditionally." "$LINENO" 5
21567fi
21568
21569: "${CONFIG_STATUS=./config.status}"
21570ac_write_fail=0
21571ac_clean_files_save=$ac_clean_files
21572ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21574printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21575as_write_fail=0
21576cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21577#! $SHELL
21578# Generated by $as_me.
21579# Run this file to recreate the current configuration.
21580# Compiler output produced by configure, useful for debugging
21581# configure, is in config.log if it exists.
21582
21583debug=false
21584ac_cs_recheck=false
21585ac_cs_silent=false
21586
21587SHELL=\${CONFIG_SHELL-$SHELL}
21588export SHELL
21589_ASEOF
21590cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21591## -------------------- ##
21592## M4sh Initialization. ##
21593## -------------------- ##
21594
21595# Be more Bourne compatible
21596DUALCASE=1; export DUALCASE # for MKS sh
21597as_nop=:
21598if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21599then :
21600  emulate sh
21601  NULLCMD=:
21602  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21603  # is contrary to our usage.  Disable this feature.
21604  alias -g '${1+"$@"}'='"$@"'
21605  setopt NO_GLOB_SUBST
21606else $as_nop
21607  case `(set -o) 2>/dev/null` in #(
21608  *posix*) :
21609    set -o posix ;; #(
21610  *) :
21611     ;;
21612esac
21613fi
21614
21615
21616
21617# Reset variables that may have inherited troublesome values from
21618# the environment.
21619
21620# IFS needs to be set, to space, tab, and newline, in precisely that order.
21621# (If _AS_PATH_WALK were called with IFS unset, it would have the
21622# side effect of setting IFS to empty, thus disabling word splitting.)
21623# Quoting is to prevent editors from complaining about space-tab.
21624as_nl='
21625'
21626export as_nl
21627IFS=" ""	$as_nl"
21628
21629PS1='$ '
21630PS2='> '
21631PS4='+ '
21632
21633# Ensure predictable behavior from utilities with locale-dependent output.
21634LC_ALL=C
21635export LC_ALL
21636LANGUAGE=C
21637export LANGUAGE
21638
21639# We cannot yet rely on "unset" to work, but we need these variables
21640# to be unset--not just set to an empty or harmless value--now, to
21641# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21642# also avoids known problems related to "unset" and subshell syntax
21643# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21644for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21645do eval test \${$as_var+y} \
21646  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21647done
21648
21649# Ensure that fds 0, 1, and 2 are open.
21650if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21651if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21652if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21653
21654# The user is always right.
21655if ${PATH_SEPARATOR+false} :; then
21656  PATH_SEPARATOR=:
21657  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21658    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21659      PATH_SEPARATOR=';'
21660  }
21661fi
21662
21663
21664# Find who we are.  Look in the path if we contain no directory separator.
21665as_myself=
21666case $0 in #((
21667  *[\\/]* ) as_myself=$0 ;;
21668  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669for as_dir in $PATH
21670do
21671  IFS=$as_save_IFS
21672  case $as_dir in #(((
21673    '') as_dir=./ ;;
21674    */) ;;
21675    *) as_dir=$as_dir/ ;;
21676  esac
21677    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21678  done
21679IFS=$as_save_IFS
21680
21681     ;;
21682esac
21683# We did not find ourselves, most probably we were run as `sh COMMAND'
21684# in which case we are not to be found in the path.
21685if test "x$as_myself" = x; then
21686  as_myself=$0
21687fi
21688if test ! -f "$as_myself"; then
21689  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21690  exit 1
21691fi
21692
21693
21694
21695# as_fn_error STATUS ERROR [LINENO LOG_FD]
21696# ----------------------------------------
21697# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21698# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21699# script with STATUS, using 1 if that was 0.
21700as_fn_error ()
21701{
21702  as_status=$1; test $as_status -eq 0 && as_status=1
21703  if test "$4"; then
21704    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21705    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21706  fi
21707  printf "%s\n" "$as_me: error: $2" >&2
21708  as_fn_exit $as_status
21709} # as_fn_error
21710
21711
21712
21713# as_fn_set_status STATUS
21714# -----------------------
21715# Set $? to STATUS, without forking.
21716as_fn_set_status ()
21717{
21718  return $1
21719} # as_fn_set_status
21720
21721# as_fn_exit STATUS
21722# -----------------
21723# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21724as_fn_exit ()
21725{
21726  set +e
21727  as_fn_set_status $1
21728  exit $1
21729} # as_fn_exit
21730
21731# as_fn_unset VAR
21732# ---------------
21733# Portably unset VAR.
21734as_fn_unset ()
21735{
21736  { eval $1=; unset $1;}
21737}
21738as_unset=as_fn_unset
21739
21740# as_fn_append VAR VALUE
21741# ----------------------
21742# Append the text in VALUE to the end of the definition contained in VAR. Take
21743# advantage of any shell optimizations that allow amortized linear growth over
21744# repeated appends, instead of the typical quadratic growth present in naive
21745# implementations.
21746if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21747then :
21748  eval 'as_fn_append ()
21749  {
21750    eval $1+=\$2
21751  }'
21752else $as_nop
21753  as_fn_append ()
21754  {
21755    eval $1=\$$1\$2
21756  }
21757fi # as_fn_append
21758
21759# as_fn_arith ARG...
21760# ------------------
21761# Perform arithmetic evaluation on the ARGs, and store the result in the
21762# global $as_val. Take advantage of shells that can avoid forks. The arguments
21763# must be portable across $(()) and expr.
21764if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21765then :
21766  eval 'as_fn_arith ()
21767  {
21768    as_val=$(( $* ))
21769  }'
21770else $as_nop
21771  as_fn_arith ()
21772  {
21773    as_val=`expr "$@" || test $? -eq 1`
21774  }
21775fi # as_fn_arith
21776
21777
21778if expr a : '\(a\)' >/dev/null 2>&1 &&
21779   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21780  as_expr=expr
21781else
21782  as_expr=false
21783fi
21784
21785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21786  as_basename=basename
21787else
21788  as_basename=false
21789fi
21790
21791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21792  as_dirname=dirname
21793else
21794  as_dirname=false
21795fi
21796
21797as_me=`$as_basename -- "$0" ||
21798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21799	 X"$0" : 'X\(//\)$' \| \
21800	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21801printf "%s\n" X/"$0" |
21802    sed '/^.*\/\([^/][^/]*\)\/*$/{
21803	    s//\1/
21804	    q
21805	  }
21806	  /^X\/\(\/\/\)$/{
21807	    s//\1/
21808	    q
21809	  }
21810	  /^X\/\(\/\).*/{
21811	    s//\1/
21812	    q
21813	  }
21814	  s/.*/./; q'`
21815
21816# Avoid depending upon Character Ranges.
21817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820as_cr_digits='0123456789'
21821as_cr_alnum=$as_cr_Letters$as_cr_digits
21822
21823
21824# Determine whether it's possible to make 'echo' print without a newline.
21825# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21826# for compatibility with existing Makefiles.
21827ECHO_C= ECHO_N= ECHO_T=
21828case `echo -n x` in #(((((
21829-n*)
21830  case `echo 'xy\c'` in
21831  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21832  xy)  ECHO_C='\c';;
21833  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21834       ECHO_T='	';;
21835  esac;;
21836*)
21837  ECHO_N='-n';;
21838esac
21839
21840# For backward compatibility with old third-party macros, we provide
21841# the shell variables $as_echo and $as_echo_n.  New code should use
21842# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21843as_echo='printf %s\n'
21844as_echo_n='printf %s'
21845
21846rm -f conf$$ conf$$.exe conf$$.file
21847if test -d conf$$.dir; then
21848  rm -f conf$$.dir/conf$$.file
21849else
21850  rm -f conf$$.dir
21851  mkdir conf$$.dir 2>/dev/null
21852fi
21853if (echo >conf$$.file) 2>/dev/null; then
21854  if ln -s conf$$.file conf$$ 2>/dev/null; then
21855    as_ln_s='ln -s'
21856    # ... but there are two gotchas:
21857    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21858    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21859    # In both cases, we have to default to `cp -pR'.
21860    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21861      as_ln_s='cp -pR'
21862  elif ln conf$$.file conf$$ 2>/dev/null; then
21863    as_ln_s=ln
21864  else
21865    as_ln_s='cp -pR'
21866  fi
21867else
21868  as_ln_s='cp -pR'
21869fi
21870rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21871rmdir conf$$.dir 2>/dev/null
21872
21873
21874# as_fn_mkdir_p
21875# -------------
21876# Create "$as_dir" as a directory, including parents if necessary.
21877as_fn_mkdir_p ()
21878{
21879
21880  case $as_dir in #(
21881  -*) as_dir=./$as_dir;;
21882  esac
21883  test -d "$as_dir" || eval $as_mkdir_p || {
21884    as_dirs=
21885    while :; do
21886      case $as_dir in #(
21887      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21888      *) as_qdir=$as_dir;;
21889      esac
21890      as_dirs="'$as_qdir' $as_dirs"
21891      as_dir=`$as_dirname -- "$as_dir" ||
21892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21893	 X"$as_dir" : 'X\(//\)[^/]' \| \
21894	 X"$as_dir" : 'X\(//\)$' \| \
21895	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21896printf "%s\n" X"$as_dir" |
21897    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21898	    s//\1/
21899	    q
21900	  }
21901	  /^X\(\/\/\)[^/].*/{
21902	    s//\1/
21903	    q
21904	  }
21905	  /^X\(\/\/\)$/{
21906	    s//\1/
21907	    q
21908	  }
21909	  /^X\(\/\).*/{
21910	    s//\1/
21911	    q
21912	  }
21913	  s/.*/./; q'`
21914      test -d "$as_dir" && break
21915    done
21916    test -z "$as_dirs" || eval "mkdir $as_dirs"
21917  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21918
21919
21920} # as_fn_mkdir_p
21921if mkdir -p . 2>/dev/null; then
21922  as_mkdir_p='mkdir -p "$as_dir"'
21923else
21924  test -d ./-p && rmdir ./-p
21925  as_mkdir_p=false
21926fi
21927
21928
21929# as_fn_executable_p FILE
21930# -----------------------
21931# Test if FILE is an executable regular file.
21932as_fn_executable_p ()
21933{
21934  test -f "$1" && test -x "$1"
21935} # as_fn_executable_p
21936as_test_x='test -x'
21937as_executable_p=as_fn_executable_p
21938
21939# Sed expression to map a string onto a valid CPP name.
21940as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21941
21942# Sed expression to map a string onto a valid variable name.
21943as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21944
21945
21946exec 6>&1
21947## ----------------------------------- ##
21948## Main body of $CONFIG_STATUS script. ##
21949## ----------------------------------- ##
21950_ASEOF
21951test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21952
21953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21954# Save the log message, to keep $0 and so on meaningful, and to
21955# report actual input values of CONFIG_FILES etc. instead of their
21956# values after options handling.
21957ac_log="
21958This file was extended by libXfont2 $as_me 2.0.6, which was
21959generated by GNU Autoconf 2.71.  Invocation command line was
21960
21961  CONFIG_FILES    = $CONFIG_FILES
21962  CONFIG_HEADERS  = $CONFIG_HEADERS
21963  CONFIG_LINKS    = $CONFIG_LINKS
21964  CONFIG_COMMANDS = $CONFIG_COMMANDS
21965  $ $0 $@
21966
21967on `(hostname || uname -n) 2>/dev/null | sed 1q`
21968"
21969
21970_ACEOF
21971
21972case $ac_config_files in *"
21973"*) set x $ac_config_files; shift; ac_config_files=$*;;
21974esac
21975
21976case $ac_config_headers in *"
21977"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21978esac
21979
21980
21981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21982# Files that config.status was made for.
21983config_files="$ac_config_files"
21984config_headers="$ac_config_headers"
21985config_commands="$ac_config_commands"
21986
21987_ACEOF
21988
21989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21990ac_cs_usage="\
21991\`$as_me' instantiates files and other configuration actions
21992from templates according to the current configuration.  Unless the files
21993and actions are specified as TAGs, all are instantiated by default.
21994
21995Usage: $0 [OPTION]... [TAG]...
21996
21997  -h, --help       print this help, then exit
21998  -V, --version    print version number and configuration settings, then exit
21999      --config     print configuration, then exit
22000  -q, --quiet, --silent
22001                   do not print progress messages
22002  -d, --debug      don't remove temporary files
22003      --recheck    update $as_me by reconfiguring in the same conditions
22004      --file=FILE[:TEMPLATE]
22005                   instantiate the configuration file FILE
22006      --header=FILE[:TEMPLATE]
22007                   instantiate the configuration header FILE
22008
22009Configuration files:
22010$config_files
22011
22012Configuration headers:
22013$config_headers
22014
22015Configuration commands:
22016$config_commands
22017
22018Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>."
22019
22020_ACEOF
22021ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22022ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22024ac_cs_config='$ac_cs_config_escaped'
22025ac_cs_version="\\
22026libXfont2 config.status 2.0.6
22027configured by $0, generated by GNU Autoconf 2.71,
22028  with options \\"\$ac_cs_config\\"
22029
22030Copyright (C) 2021 Free Software Foundation, Inc.
22031This config.status script is free software; the Free Software Foundation
22032gives unlimited permission to copy, distribute and modify it."
22033
22034ac_pwd='$ac_pwd'
22035srcdir='$srcdir'
22036INSTALL='$INSTALL'
22037MKDIR_P='$MKDIR_P'
22038AWK='$AWK'
22039test -n "\$AWK" || AWK=awk
22040_ACEOF
22041
22042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22043# The default lists apply if the user does not specify any file.
22044ac_need_defaults=:
22045while test $# != 0
22046do
22047  case $1 in
22048  --*=?*)
22049    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22050    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22051    ac_shift=:
22052    ;;
22053  --*=)
22054    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22055    ac_optarg=
22056    ac_shift=:
22057    ;;
22058  *)
22059    ac_option=$1
22060    ac_optarg=$2
22061    ac_shift=shift
22062    ;;
22063  esac
22064
22065  case $ac_option in
22066  # Handling of the options.
22067  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22068    ac_cs_recheck=: ;;
22069  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22070    printf "%s\n" "$ac_cs_version"; exit ;;
22071  --config | --confi | --conf | --con | --co | --c )
22072    printf "%s\n" "$ac_cs_config"; exit ;;
22073  --debug | --debu | --deb | --de | --d | -d )
22074    debug=: ;;
22075  --file | --fil | --fi | --f )
22076    $ac_shift
22077    case $ac_optarg in
22078    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22079    '') as_fn_error $? "missing file argument" ;;
22080    esac
22081    as_fn_append CONFIG_FILES " '$ac_optarg'"
22082    ac_need_defaults=false;;
22083  --header | --heade | --head | --hea )
22084    $ac_shift
22085    case $ac_optarg in
22086    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22087    esac
22088    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22089    ac_need_defaults=false;;
22090  --he | --h)
22091    # Conflict between --help and --header
22092    as_fn_error $? "ambiguous option: \`$1'
22093Try \`$0 --help' for more information.";;
22094  --help | --hel | -h )
22095    printf "%s\n" "$ac_cs_usage"; exit ;;
22096  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22097  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22098    ac_cs_silent=: ;;
22099
22100  # This is an error.
22101  -*) as_fn_error $? "unrecognized option: \`$1'
22102Try \`$0 --help' for more information." ;;
22103
22104  *) as_fn_append ac_config_targets " $1"
22105     ac_need_defaults=false ;;
22106
22107  esac
22108  shift
22109done
22110
22111ac_configure_extra_args=
22112
22113if $ac_cs_silent; then
22114  exec 6>/dev/null
22115  ac_configure_extra_args="$ac_configure_extra_args --silent"
22116fi
22117
22118_ACEOF
22119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22120if \$ac_cs_recheck; then
22121  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22122  shift
22123  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22124  CONFIG_SHELL='$SHELL'
22125  export CONFIG_SHELL
22126  exec "\$@"
22127fi
22128
22129_ACEOF
22130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22131exec 5>>config.log
22132{
22133  echo
22134  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22135## Running $as_me. ##
22136_ASBOX
22137  printf "%s\n" "$ac_log"
22138} >&5
22139
22140_ACEOF
22141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22142#
22143# INIT-COMMANDS
22144#
22145AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22146
22147
22148# The HP-UX ksh and POSIX shell print the target directory to stdout
22149# if CDPATH is set.
22150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22151
22152sed_quote_subst='$sed_quote_subst'
22153double_quote_subst='$double_quote_subst'
22154delay_variable_subst='$delay_variable_subst'
22155macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22156macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22157enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22158enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22159pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22160enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22161shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22162SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22163ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22164PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22165host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22166host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22167host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22168build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22169build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22170build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22171SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22172Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22173GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22174EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22175FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22176LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22177NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22178LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22179max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22180ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22181exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22182lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22183lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22184lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22185lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22186lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22187reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22188reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22189FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22190OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22191deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22192file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22193file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22194want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22195DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22196sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22197AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22198lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22199AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22200archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22201STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22202RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22203old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22204old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22205old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22206lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22207CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22208CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22209compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22210GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22211lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22212lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22213lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22214lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22215lt_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"`'
22216lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22217nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22218lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22219lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22220objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22221MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22222lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22223lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22224lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22225lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22226lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22227need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22228MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22229DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22230NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22231LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22232OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22233OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22234libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22235shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22236extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22237archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22238enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22239export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22240whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22241compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22242old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22243old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22244archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22245archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22246module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22247module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22248with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22249allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22250no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22251hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22252hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22253hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22254hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22255hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22256hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22257hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22258inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22259link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22260always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22261export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22262exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22263include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22264prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22265postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22266file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22267variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22268need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22269need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22270version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22271runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22272shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22273shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22274libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22275library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22276soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22277install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22278postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22279postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22280finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22281finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22282hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22283sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22284configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22285configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22286hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22287enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22288enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22289enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22290old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22291striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22292
22293LTCC='$LTCC'
22294LTCFLAGS='$LTCFLAGS'
22295compiler='$compiler_DEFAULT'
22296
22297# A function that is used when there is no print builtin or printf.
22298func_fallback_echo ()
22299{
22300  eval 'cat <<_LTECHO_EOF
22301\$1
22302_LTECHO_EOF'
22303}
22304
22305# Quote evaled strings.
22306for var in SHELL \
22307ECHO \
22308PATH_SEPARATOR \
22309SED \
22310GREP \
22311EGREP \
22312FGREP \
22313LD \
22314NM \
22315LN_S \
22316lt_SP2NL \
22317lt_NL2SP \
22318reload_flag \
22319FILECMD \
22320OBJDUMP \
22321deplibs_check_method \
22322file_magic_cmd \
22323file_magic_glob \
22324want_nocaseglob \
22325DLLTOOL \
22326sharedlib_from_linklib_cmd \
22327AR \
22328archiver_list_spec \
22329STRIP \
22330RANLIB \
22331CC \
22332CFLAGS \
22333compiler \
22334lt_cv_sys_global_symbol_pipe \
22335lt_cv_sys_global_symbol_to_cdecl \
22336lt_cv_sys_global_symbol_to_import \
22337lt_cv_sys_global_symbol_to_c_name_address \
22338lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22339lt_cv_nm_interface \
22340nm_file_list_spec \
22341lt_cv_truncate_bin \
22342lt_prog_compiler_no_builtin_flag \
22343lt_prog_compiler_pic \
22344lt_prog_compiler_wl \
22345lt_prog_compiler_static \
22346lt_cv_prog_compiler_c_o \
22347need_locks \
22348MANIFEST_TOOL \
22349DSYMUTIL \
22350NMEDIT \
22351LIPO \
22352OTOOL \
22353OTOOL64 \
22354shrext_cmds \
22355export_dynamic_flag_spec \
22356whole_archive_flag_spec \
22357compiler_needs_object \
22358with_gnu_ld \
22359allow_undefined_flag \
22360no_undefined_flag \
22361hardcode_libdir_flag_spec \
22362hardcode_libdir_separator \
22363exclude_expsyms \
22364include_expsyms \
22365file_list_spec \
22366variables_saved_for_relink \
22367libname_spec \
22368library_names_spec \
22369soname_spec \
22370install_override_mode \
22371finish_eval \
22372old_striplib \
22373striplib; do
22374    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22375    *[\\\\\\\`\\"\\\$]*)
22376      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22377      ;;
22378    *)
22379      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22380      ;;
22381    esac
22382done
22383
22384# Double-quote double-evaled strings.
22385for var in reload_cmds \
22386old_postinstall_cmds \
22387old_postuninstall_cmds \
22388old_archive_cmds \
22389extract_expsyms_cmds \
22390old_archive_from_new_cmds \
22391old_archive_from_expsyms_cmds \
22392archive_cmds \
22393archive_expsym_cmds \
22394module_cmds \
22395module_expsym_cmds \
22396export_symbols_cmds \
22397prelink_cmds \
22398postlink_cmds \
22399postinstall_cmds \
22400postuninstall_cmds \
22401finish_cmds \
22402sys_lib_search_path_spec \
22403configure_time_dlsearch_path \
22404configure_time_lt_sys_library_path; do
22405    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22406    *[\\\\\\\`\\"\\\$]*)
22407      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22408      ;;
22409    *)
22410      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22411      ;;
22412    esac
22413done
22414
22415ac_aux_dir='$ac_aux_dir'
22416
22417# See if we are running on zsh, and set the options that allow our
22418# commands through without removal of \ escapes INIT.
22419if test -n "\${ZSH_VERSION+set}"; then
22420   setopt NO_GLOB_SUBST
22421fi
22422
22423
22424    PACKAGE='$PACKAGE'
22425    VERSION='$VERSION'
22426    RM='$RM'
22427    ofile='$ofile'
22428
22429
22430
22431
22432_ACEOF
22433
22434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22435
22436# Handling of arguments.
22437for ac_config_target in $ac_config_targets
22438do
22439  case $ac_config_target in
22440    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22441    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22442    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22443    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22444    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22445    "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;;
22446
22447  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22448  esac
22449done
22450
22451
22452# If the user did not use the arguments to specify the items to instantiate,
22453# then the envvar interface is used.  Set only those that are not.
22454# We use the long form for the default assignment because of an extremely
22455# bizarre bug on SunOS 4.1.3.
22456if $ac_need_defaults; then
22457  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22458  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22459  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22460fi
22461
22462# Have a temporary directory for convenience.  Make it in the build tree
22463# simply because there is no reason against having it here, and in addition,
22464# creating and moving files from /tmp can sometimes cause problems.
22465# Hook for its removal unless debugging.
22466# Note that there is a small window in which the directory will not be cleaned:
22467# after its creation but before its name has been assigned to `$tmp'.
22468$debug ||
22469{
22470  tmp= ac_tmp=
22471  trap 'exit_status=$?
22472  : "${ac_tmp:=$tmp}"
22473  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22474' 0
22475  trap 'as_fn_exit 1' 1 2 13 15
22476}
22477# Create a (secure) tmp directory for tmp files.
22478
22479{
22480  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22481  test -d "$tmp"
22482}  ||
22483{
22484  tmp=./conf$$-$RANDOM
22485  (umask 077 && mkdir "$tmp")
22486} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22487ac_tmp=$tmp
22488
22489# Set up the scripts for CONFIG_FILES section.
22490# No need to generate them if there are no CONFIG_FILES.
22491# This happens for instance with `./config.status config.h'.
22492if test -n "$CONFIG_FILES"; then
22493
22494
22495ac_cr=`echo X | tr X '\015'`
22496# On cygwin, bash can eat \r inside `` if the user requested igncr.
22497# But we know of no other shell where ac_cr would be empty at this
22498# point, so we can use a bashism as a fallback.
22499if test "x$ac_cr" = x; then
22500  eval ac_cr=\$\'\\r\'
22501fi
22502ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22503if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22504  ac_cs_awk_cr='\\r'
22505else
22506  ac_cs_awk_cr=$ac_cr
22507fi
22508
22509echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22510_ACEOF
22511
22512
22513{
22514  echo "cat >conf$$subs.awk <<_ACEOF" &&
22515  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22516  echo "_ACEOF"
22517} >conf$$subs.sh ||
22518  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22519ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22520ac_delim='%!_!# '
22521for ac_last_try in false false false false false :; do
22522  . ./conf$$subs.sh ||
22523    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22524
22525  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22526  if test $ac_delim_n = $ac_delim_num; then
22527    break
22528  elif $ac_last_try; then
22529    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22530  else
22531    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22532  fi
22533done
22534rm -f conf$$subs.sh
22535
22536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22537cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22538_ACEOF
22539sed -n '
22540h
22541s/^/S["/; s/!.*/"]=/
22542p
22543g
22544s/^[^!]*!//
22545:repl
22546t repl
22547s/'"$ac_delim"'$//
22548t delim
22549:nl
22550h
22551s/\(.\{148\}\)..*/\1/
22552t more1
22553s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22554p
22555n
22556b repl
22557:more1
22558s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22559p
22560g
22561s/.\{148\}//
22562t nl
22563:delim
22564h
22565s/\(.\{148\}\)..*/\1/
22566t more2
22567s/["\\]/\\&/g; s/^/"/; s/$/"/
22568p
22569b
22570:more2
22571s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22572p
22573g
22574s/.\{148\}//
22575t delim
22576' <conf$$subs.awk | sed '
22577/^[^""]/{
22578  N
22579  s/\n//
22580}
22581' >>$CONFIG_STATUS || ac_write_fail=1
22582rm -f conf$$subs.awk
22583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22584_ACAWK
22585cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22586  for (key in S) S_is_set[key] = 1
22587  FS = ""
22588
22589}
22590{
22591  line = $ 0
22592  nfields = split(line, field, "@")
22593  substed = 0
22594  len = length(field[1])
22595  for (i = 2; i < nfields; i++) {
22596    key = field[i]
22597    keylen = length(key)
22598    if (S_is_set[key]) {
22599      value = S[key]
22600      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22601      len += length(value) + length(field[++i])
22602      substed = 1
22603    } else
22604      len += 1 + keylen
22605  }
22606
22607  print line
22608}
22609
22610_ACAWK
22611_ACEOF
22612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22613if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22614  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22615else
22616  cat
22617fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22618  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22619_ACEOF
22620
22621# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22622# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22623# trailing colons and then remove the whole line if VPATH becomes empty
22624# (actually we leave an empty line to preserve line numbers).
22625if test "x$srcdir" = x.; then
22626  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22627h
22628s///
22629s/^/:/
22630s/[	 ]*$/:/
22631s/:\$(srcdir):/:/g
22632s/:\${srcdir}:/:/g
22633s/:@srcdir@:/:/g
22634s/^:*//
22635s/:*$//
22636x
22637s/\(=[	 ]*\).*/\1/
22638G
22639s/\n//
22640s/^[^=]*=[	 ]*$//
22641}'
22642fi
22643
22644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22645fi # test -n "$CONFIG_FILES"
22646
22647# Set up the scripts for CONFIG_HEADERS section.
22648# No need to generate them if there are no CONFIG_HEADERS.
22649# This happens for instance with `./config.status Makefile'.
22650if test -n "$CONFIG_HEADERS"; then
22651cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22652BEGIN {
22653_ACEOF
22654
22655# Transform confdefs.h into an awk script `defines.awk', embedded as
22656# here-document in config.status, that substitutes the proper values into
22657# config.h.in to produce config.h.
22658
22659# Create a delimiter string that does not exist in confdefs.h, to ease
22660# handling of long lines.
22661ac_delim='%!_!# '
22662for ac_last_try in false false :; do
22663  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22664  if test -z "$ac_tt"; then
22665    break
22666  elif $ac_last_try; then
22667    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22668  else
22669    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22670  fi
22671done
22672
22673# For the awk script, D is an array of macro values keyed by name,
22674# likewise P contains macro parameters if any.  Preserve backslash
22675# newline sequences.
22676
22677ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22678sed -n '
22679s/.\{148\}/&'"$ac_delim"'/g
22680t rset
22681:rset
22682s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22683t def
22684d
22685:def
22686s/\\$//
22687t bsnl
22688s/["\\]/\\&/g
22689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22690D["\1"]=" \3"/p
22691s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22692d
22693:bsnl
22694s/["\\]/\\&/g
22695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22696D["\1"]=" \3\\\\\\n"\\/p
22697t cont
22698s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22699t cont
22700d
22701:cont
22702n
22703s/.\{148\}/&'"$ac_delim"'/g
22704t clear
22705:clear
22706s/\\$//
22707t bsnlc
22708s/["\\]/\\&/g; s/^/"/; s/$/"/p
22709d
22710:bsnlc
22711s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22712b cont
22713' <confdefs.h | sed '
22714s/'"$ac_delim"'/"\\\
22715"/g' >>$CONFIG_STATUS || ac_write_fail=1
22716
22717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22718  for (key in D) D_is_set[key] = 1
22719  FS = ""
22720}
22721/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22722  line = \$ 0
22723  split(line, arg, " ")
22724  if (arg[1] == "#") {
22725    defundef = arg[2]
22726    mac1 = arg[3]
22727  } else {
22728    defundef = substr(arg[1], 2)
22729    mac1 = arg[2]
22730  }
22731  split(mac1, mac2, "(") #)
22732  macro = mac2[1]
22733  prefix = substr(line, 1, index(line, defundef) - 1)
22734  if (D_is_set[macro]) {
22735    # Preserve the white space surrounding the "#".
22736    print prefix "define", macro P[macro] D[macro]
22737    next
22738  } else {
22739    # Replace #undef with comments.  This is necessary, for example,
22740    # in the case of _POSIX_SOURCE, which is predefined and required
22741    # on some systems where configure will not decide to define it.
22742    if (defundef == "undef") {
22743      print "/*", prefix defundef, macro, "*/"
22744      next
22745    }
22746  }
22747}
22748{ print }
22749_ACAWK
22750_ACEOF
22751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22753fi # test -n "$CONFIG_HEADERS"
22754
22755
22756eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22757shift
22758for ac_tag
22759do
22760  case $ac_tag in
22761  :[FHLC]) ac_mode=$ac_tag; continue;;
22762  esac
22763  case $ac_mode$ac_tag in
22764  :[FHL]*:*);;
22765  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22766  :[FH]-) ac_tag=-:-;;
22767  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22768  esac
22769  ac_save_IFS=$IFS
22770  IFS=:
22771  set x $ac_tag
22772  IFS=$ac_save_IFS
22773  shift
22774  ac_file=$1
22775  shift
22776
22777  case $ac_mode in
22778  :L) ac_source=$1;;
22779  :[FH])
22780    ac_file_inputs=
22781    for ac_f
22782    do
22783      case $ac_f in
22784      -) ac_f="$ac_tmp/stdin";;
22785      *) # Look for the file first in the build tree, then in the source tree
22786	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22787	 # because $ac_f cannot contain `:'.
22788	 test -f "$ac_f" ||
22789	   case $ac_f in
22790	   [\\/$]*) false;;
22791	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22792	   esac ||
22793	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22794      esac
22795      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22796      as_fn_append ac_file_inputs " '$ac_f'"
22797    done
22798
22799    # Let's still pretend it is `configure' which instantiates (i.e., don't
22800    # use $as_me), people would be surprised to read:
22801    #    /* config.h.  Generated by config.status.  */
22802    configure_input='Generated from '`
22803	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22804	`' by configure.'
22805    if test x"$ac_file" != x-; then
22806      configure_input="$ac_file.  $configure_input"
22807      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22808printf "%s\n" "$as_me: creating $ac_file" >&6;}
22809    fi
22810    # Neutralize special characters interpreted by sed in replacement strings.
22811    case $configure_input in #(
22812    *\&* | *\|* | *\\* )
22813       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22814       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22815    *) ac_sed_conf_input=$configure_input;;
22816    esac
22817
22818    case $ac_tag in
22819    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22820      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22821    esac
22822    ;;
22823  esac
22824
22825  ac_dir=`$as_dirname -- "$ac_file" ||
22826$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22827	 X"$ac_file" : 'X\(//\)[^/]' \| \
22828	 X"$ac_file" : 'X\(//\)$' \| \
22829	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22830printf "%s\n" X"$ac_file" |
22831    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22832	    s//\1/
22833	    q
22834	  }
22835	  /^X\(\/\/\)[^/].*/{
22836	    s//\1/
22837	    q
22838	  }
22839	  /^X\(\/\/\)$/{
22840	    s//\1/
22841	    q
22842	  }
22843	  /^X\(\/\).*/{
22844	    s//\1/
22845	    q
22846	  }
22847	  s/.*/./; q'`
22848  as_dir="$ac_dir"; as_fn_mkdir_p
22849  ac_builddir=.
22850
22851case "$ac_dir" in
22852.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853*)
22854  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22855  # A ".." for each directory in $ac_dir_suffix.
22856  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22857  case $ac_top_builddir_sub in
22858  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22859  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22860  esac ;;
22861esac
22862ac_abs_top_builddir=$ac_pwd
22863ac_abs_builddir=$ac_pwd$ac_dir_suffix
22864# for backward compatibility:
22865ac_top_builddir=$ac_top_build_prefix
22866
22867case $srcdir in
22868  .)  # We are building in place.
22869    ac_srcdir=.
22870    ac_top_srcdir=$ac_top_builddir_sub
22871    ac_abs_top_srcdir=$ac_pwd ;;
22872  [\\/]* | ?:[\\/]* )  # Absolute name.
22873    ac_srcdir=$srcdir$ac_dir_suffix;
22874    ac_top_srcdir=$srcdir
22875    ac_abs_top_srcdir=$srcdir ;;
22876  *) # Relative name.
22877    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22878    ac_top_srcdir=$ac_top_build_prefix$srcdir
22879    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22880esac
22881ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22882
22883
22884  case $ac_mode in
22885  :F)
22886  #
22887  # CONFIG_FILE
22888  #
22889
22890  case $INSTALL in
22891  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22892  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22893  esac
22894  ac_MKDIR_P=$MKDIR_P
22895  case $MKDIR_P in
22896  [\\/$]* | ?:[\\/]* ) ;;
22897  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22898  esac
22899_ACEOF
22900
22901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22902# If the template does not know about datarootdir, expand it.
22903# FIXME: This hack should be removed a few years after 2.60.
22904ac_datarootdir_hack=; ac_datarootdir_seen=
22905ac_sed_dataroot='
22906/datarootdir/ {
22907  p
22908  q
22909}
22910/@datadir@/p
22911/@docdir@/p
22912/@infodir@/p
22913/@localedir@/p
22914/@mandir@/p'
22915case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22916*datarootdir*) ac_datarootdir_seen=yes;;
22917*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22919printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22920_ACEOF
22921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22922  ac_datarootdir_hack='
22923  s&@datadir@&$datadir&g
22924  s&@docdir@&$docdir&g
22925  s&@infodir@&$infodir&g
22926  s&@localedir@&$localedir&g
22927  s&@mandir@&$mandir&g
22928  s&\\\${datarootdir}&$datarootdir&g' ;;
22929esac
22930_ACEOF
22931
22932# Neutralize VPATH when `$srcdir' = `.'.
22933# Shell code in configure.ac might set extrasub.
22934# FIXME: do we really want to maintain this feature?
22935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22936ac_sed_extra="$ac_vpsub
22937$extrasub
22938_ACEOF
22939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22940:t
22941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22942s|@configure_input@|$ac_sed_conf_input|;t t
22943s&@top_builddir@&$ac_top_builddir_sub&;t t
22944s&@top_build_prefix@&$ac_top_build_prefix&;t t
22945s&@srcdir@&$ac_srcdir&;t t
22946s&@abs_srcdir@&$ac_abs_srcdir&;t t
22947s&@top_srcdir@&$ac_top_srcdir&;t t
22948s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22949s&@builddir@&$ac_builddir&;t t
22950s&@abs_builddir@&$ac_abs_builddir&;t t
22951s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22952s&@INSTALL@&$ac_INSTALL&;t t
22953s&@MKDIR_P@&$ac_MKDIR_P&;t t
22954$ac_datarootdir_hack
22955"
22956eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22957  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22958
22959test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22960  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22961  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22962      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22964which seems to be undefined.  Please make sure it is defined" >&5
22965printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22966which seems to be undefined.  Please make sure it is defined" >&2;}
22967
22968  rm -f "$ac_tmp/stdin"
22969  case $ac_file in
22970  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22971  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22972  esac \
22973  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22974 ;;
22975  :H)
22976  #
22977  # CONFIG_HEADER
22978  #
22979  if test x"$ac_file" != x-; then
22980    {
22981      printf "%s\n" "/* $configure_input  */" >&1 \
22982      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22983    } >"$ac_tmp/config.h" \
22984      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22985    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22986      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22987printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22988    else
22989      rm -f "$ac_file"
22990      mv "$ac_tmp/config.h" "$ac_file" \
22991	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22992    fi
22993  else
22994    printf "%s\n" "/* $configure_input  */" >&1 \
22995      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22996      || as_fn_error $? "could not create -" "$LINENO" 5
22997  fi
22998# Compute "$ac_file"'s index in $config_headers.
22999_am_arg="$ac_file"
23000_am_stamp_count=1
23001for _am_header in $config_headers :; do
23002  case $_am_header in
23003    $_am_arg | $_am_arg:* )
23004      break ;;
23005    * )
23006      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23007  esac
23008done
23009echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23010$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23011	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23012	 X"$_am_arg" : 'X\(//\)$' \| \
23013	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23014printf "%s\n" X"$_am_arg" |
23015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23016	    s//\1/
23017	    q
23018	  }
23019	  /^X\(\/\/\)[^/].*/{
23020	    s//\1/
23021	    q
23022	  }
23023	  /^X\(\/\/\)$/{
23024	    s//\1/
23025	    q
23026	  }
23027	  /^X\(\/\).*/{
23028	    s//\1/
23029	    q
23030	  }
23031	  s/.*/./; q'`/stamp-h$_am_stamp_count
23032 ;;
23033
23034  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23035printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23036 ;;
23037  esac
23038
23039
23040  case $ac_file$ac_mode in
23041    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23042  # Older Autoconf quotes --file arguments for eval, but not when files
23043  # are listed without --file.  Let's play safe and only enable the eval
23044  # if we detect the quoting.
23045  # TODO: see whether this extra hack can be removed once we start
23046  # requiring Autoconf 2.70 or later.
23047  case $CONFIG_FILES in #(
23048  *\'*) :
23049    eval set x "$CONFIG_FILES" ;; #(
23050  *) :
23051    set x $CONFIG_FILES ;; #(
23052  *) :
23053     ;;
23054esac
23055  shift
23056  # Used to flag and report bootstrapping failures.
23057  am_rc=0
23058  for am_mf
23059  do
23060    # Strip MF so we end up with the name of the file.
23061    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23062    # Check whether this is an Automake generated Makefile which includes
23063    # dependency-tracking related rules and includes.
23064    # Grep'ing the whole file directly is not great: AIX grep has a line
23065    # limit of 2048, but all sed's we know have understand at least 4000.
23066    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23067      || continue
23068    am_dirpart=`$as_dirname -- "$am_mf" ||
23069$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23070	 X"$am_mf" : 'X\(//\)[^/]' \| \
23071	 X"$am_mf" : 'X\(//\)$' \| \
23072	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23073printf "%s\n" X"$am_mf" |
23074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23075	    s//\1/
23076	    q
23077	  }
23078	  /^X\(\/\/\)[^/].*/{
23079	    s//\1/
23080	    q
23081	  }
23082	  /^X\(\/\/\)$/{
23083	    s//\1/
23084	    q
23085	  }
23086	  /^X\(\/\).*/{
23087	    s//\1/
23088	    q
23089	  }
23090	  s/.*/./; q'`
23091    am_filepart=`$as_basename -- "$am_mf" ||
23092$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23093	 X"$am_mf" : 'X\(//\)$' \| \
23094	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23095printf "%s\n" X/"$am_mf" |
23096    sed '/^.*\/\([^/][^/]*\)\/*$/{
23097	    s//\1/
23098	    q
23099	  }
23100	  /^X\/\(\/\/\)$/{
23101	    s//\1/
23102	    q
23103	  }
23104	  /^X\/\(\/\).*/{
23105	    s//\1/
23106	    q
23107	  }
23108	  s/.*/./; q'`
23109    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23110      && sed -e '/# am--include-marker/d' "$am_filepart" \
23111        | $MAKE -f - am--depfiles" >&5
23112   (cd "$am_dirpart" \
23113      && sed -e '/# am--include-marker/d' "$am_filepart" \
23114        | $MAKE -f - am--depfiles) >&5 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } || am_rc=$?
23118  done
23119  if test $am_rc -ne 0; then
23120    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23122as_fn_error $? "Something went wrong bootstrapping makefile fragments
23123    for automatic dependency tracking.  If GNU make was not used, consider
23124    re-running the configure script with MAKE=\"gmake\" (or whatever is
23125    necessary).  You can also try re-running configure with the
23126    '--disable-dependency-tracking' option to at least be able to build
23127    the package (albeit without support for automatic dependency tracking).
23128See \`config.log' for more details" "$LINENO" 5; }
23129  fi
23130  { am_dirpart=; unset am_dirpart;}
23131  { am_filepart=; unset am_filepart;}
23132  { am_mf=; unset am_mf;}
23133  { am_rc=; unset am_rc;}
23134  rm -f conftest-deps.mk
23135}
23136 ;;
23137    "libtool":C)
23138
23139    # See if we are running on zsh, and set the options that allow our
23140    # commands through without removal of \ escapes.
23141    if test -n "${ZSH_VERSION+set}"; then
23142      setopt NO_GLOB_SUBST
23143    fi
23144
23145    cfgfile=${ofile}T
23146    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23147    $RM "$cfgfile"
23148
23149    cat <<_LT_EOF >> "$cfgfile"
23150#! $SHELL
23151# Generated automatically by $as_me ($PACKAGE) $VERSION
23152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23153# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23154
23155# Provide generalized library-building support services.
23156# Written by Gordon Matzigkeit, 1996
23157
23158# Copyright (C) 2014 Free Software Foundation, Inc.
23159# This is free software; see the source for copying conditions.  There is NO
23160# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23161
23162# GNU Libtool is free software; you can redistribute it and/or modify
23163# it under the terms of the GNU General Public License as published by
23164# the Free Software Foundation; either version 2 of of the License, or
23165# (at your option) any later version.
23166#
23167# As a special exception to the GNU General Public License, if you
23168# distribute this file as part of a program or library that is built
23169# using GNU Libtool, you may include this file under the  same
23170# distribution terms that you use for the rest of that program.
23171#
23172# GNU Libtool is distributed in the hope that it will be useful, but
23173# WITHOUT ANY WARRANTY; without even the implied warranty of
23174# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23175# GNU General Public License for more details.
23176#
23177# You should have received a copy of the GNU General Public License
23178# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23179
23180
23181# The names of the tagged configurations supported by this script.
23182available_tags=''
23183
23184# Configured defaults for sys_lib_dlsearch_path munging.
23185: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23186
23187# ### BEGIN LIBTOOL CONFIG
23188
23189# Which release of libtool.m4 was used?
23190macro_version=$macro_version
23191macro_revision=$macro_revision
23192
23193# Whether or not to build shared libraries.
23194build_libtool_libs=$enable_shared
23195
23196# Whether or not to build static libraries.
23197build_old_libs=$enable_static
23198
23199# What type of objects to build.
23200pic_mode=$pic_mode
23201
23202# Whether or not to optimize for fast installation.
23203fast_install=$enable_fast_install
23204
23205# Shared archive member basename,for filename based shared library versioning on AIX.
23206shared_archive_member_spec=$shared_archive_member_spec
23207
23208# Shell to use when invoking shell scripts.
23209SHELL=$lt_SHELL
23210
23211# An echo program that protects backslashes.
23212ECHO=$lt_ECHO
23213
23214# The PATH separator for the build system.
23215PATH_SEPARATOR=$lt_PATH_SEPARATOR
23216
23217# The host system.
23218host_alias=$host_alias
23219host=$host
23220host_os=$host_os
23221
23222# The build system.
23223build_alias=$build_alias
23224build=$build
23225build_os=$build_os
23226
23227# A sed program that does not truncate output.
23228SED=$lt_SED
23229
23230# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23231Xsed="\$SED -e 1s/^X//"
23232
23233# A grep program that handles long lines.
23234GREP=$lt_GREP
23235
23236# An ERE matcher.
23237EGREP=$lt_EGREP
23238
23239# A literal string matcher.
23240FGREP=$lt_FGREP
23241
23242# A BSD- or MS-compatible name lister.
23243NM=$lt_NM
23244
23245# Whether we need soft or hard links.
23246LN_S=$lt_LN_S
23247
23248# What is the maximum length of a command?
23249max_cmd_len=$max_cmd_len
23250
23251# Object file suffix (normally "o").
23252objext=$ac_objext
23253
23254# Executable file suffix (normally "").
23255exeext=$exeext
23256
23257# whether the shell understands "unset".
23258lt_unset=$lt_unset
23259
23260# turn spaces into newlines.
23261SP2NL=$lt_lt_SP2NL
23262
23263# turn newlines into spaces.
23264NL2SP=$lt_lt_NL2SP
23265
23266# convert \$build file names to \$host format.
23267to_host_file_cmd=$lt_cv_to_host_file_cmd
23268
23269# convert \$build files to toolchain format.
23270to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23271
23272# A file(cmd) program that detects file types.
23273FILECMD=$lt_FILECMD
23274
23275# An object symbol dumper.
23276OBJDUMP=$lt_OBJDUMP
23277
23278# Method to check whether dependent libraries are shared objects.
23279deplibs_check_method=$lt_deplibs_check_method
23280
23281# Command to use when deplibs_check_method = "file_magic".
23282file_magic_cmd=$lt_file_magic_cmd
23283
23284# How to find potential files when deplibs_check_method = "file_magic".
23285file_magic_glob=$lt_file_magic_glob
23286
23287# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23288want_nocaseglob=$lt_want_nocaseglob
23289
23290# DLL creation program.
23291DLLTOOL=$lt_DLLTOOL
23292
23293# Command to associate shared and link libraries.
23294sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23295
23296# The archiver.
23297AR=$lt_AR
23298
23299# Flags to create an archive (by configure).
23300lt_ar_flags=$lt_ar_flags
23301
23302# Flags to create an archive.
23303AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23304
23305# How to feed a file listing to the archiver.
23306archiver_list_spec=$lt_archiver_list_spec
23307
23308# A symbol stripping program.
23309STRIP=$lt_STRIP
23310
23311# Commands used to install an old-style archive.
23312RANLIB=$lt_RANLIB
23313old_postinstall_cmds=$lt_old_postinstall_cmds
23314old_postuninstall_cmds=$lt_old_postuninstall_cmds
23315
23316# Whether to use a lock for old archive extraction.
23317lock_old_archive_extraction=$lock_old_archive_extraction
23318
23319# A C compiler.
23320LTCC=$lt_CC
23321
23322# LTCC compiler flags.
23323LTCFLAGS=$lt_CFLAGS
23324
23325# Take the output of nm and produce a listing of raw symbols and C names.
23326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23327
23328# Transform the output of nm in a proper C declaration.
23329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23330
23331# Transform the output of nm into a list of symbols to manually relocate.
23332global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23333
23334# Transform the output of nm in a C name address pair.
23335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23336
23337# Transform the output of nm in a C name address pair when lib prefix is needed.
23338global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23339
23340# The name lister interface.
23341nm_interface=$lt_lt_cv_nm_interface
23342
23343# Specify filename containing input files for \$NM.
23344nm_file_list_spec=$lt_nm_file_list_spec
23345
23346# The root where to search for dependent libraries,and where our libraries should be installed.
23347lt_sysroot=$lt_sysroot
23348
23349# Command to truncate a binary pipe.
23350lt_truncate_bin=$lt_lt_cv_truncate_bin
23351
23352# The name of the directory that contains temporary libtool files.
23353objdir=$objdir
23354
23355# Used to examine libraries when file_magic_cmd begins with "file".
23356MAGIC_CMD=$MAGIC_CMD
23357
23358# Must we lock files when doing compilation?
23359need_locks=$lt_need_locks
23360
23361# Manifest tool.
23362MANIFEST_TOOL=$lt_MANIFEST_TOOL
23363
23364# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23365DSYMUTIL=$lt_DSYMUTIL
23366
23367# Tool to change global to local symbols on Mac OS X.
23368NMEDIT=$lt_NMEDIT
23369
23370# Tool to manipulate fat objects and archives on Mac OS X.
23371LIPO=$lt_LIPO
23372
23373# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23374OTOOL=$lt_OTOOL
23375
23376# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23377OTOOL64=$lt_OTOOL64
23378
23379# Old archive suffix (normally "a").
23380libext=$libext
23381
23382# Shared library suffix (normally ".so").
23383shrext_cmds=$lt_shrext_cmds
23384
23385# The commands to extract the exported symbol list from a shared archive.
23386extract_expsyms_cmds=$lt_extract_expsyms_cmds
23387
23388# Variables whose values should be saved in libtool wrapper scripts and
23389# restored at link time.
23390variables_saved_for_relink=$lt_variables_saved_for_relink
23391
23392# Do we need the "lib" prefix for modules?
23393need_lib_prefix=$need_lib_prefix
23394
23395# Do we need a version for libraries?
23396need_version=$need_version
23397
23398# Library versioning type.
23399version_type=$version_type
23400
23401# Shared library runtime path variable.
23402runpath_var=$runpath_var
23403
23404# Shared library path variable.
23405shlibpath_var=$shlibpath_var
23406
23407# Is shlibpath searched before the hard-coded library search path?
23408shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23409
23410# Format of library name prefix.
23411libname_spec=$lt_libname_spec
23412
23413# List of archive names.  First name is the real one, the rest are links.
23414# The last name is the one that the linker finds with -lNAME
23415library_names_spec=$lt_library_names_spec
23416
23417# The coded name of the library, if different from the real name.
23418soname_spec=$lt_soname_spec
23419
23420# Permission mode override for installation of shared libraries.
23421install_override_mode=$lt_install_override_mode
23422
23423# Command to use after installation of a shared archive.
23424postinstall_cmds=$lt_postinstall_cmds
23425
23426# Command to use after uninstallation of a shared archive.
23427postuninstall_cmds=$lt_postuninstall_cmds
23428
23429# Commands used to finish a libtool library installation in a directory.
23430finish_cmds=$lt_finish_cmds
23431
23432# As "finish_cmds", except a single script fragment to be evaled but
23433# not shown.
23434finish_eval=$lt_finish_eval
23435
23436# Whether we should hardcode library paths into libraries.
23437hardcode_into_libs=$hardcode_into_libs
23438
23439# Compile-time system search path for libraries.
23440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23441
23442# Detected run-time system search path for libraries.
23443sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23444
23445# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23446configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23447
23448# Whether dlopen is supported.
23449dlopen_support=$enable_dlopen
23450
23451# Whether dlopen of programs is supported.
23452dlopen_self=$enable_dlopen_self
23453
23454# Whether dlopen of statically linked programs is supported.
23455dlopen_self_static=$enable_dlopen_self_static
23456
23457# Commands to strip libraries.
23458old_striplib=$lt_old_striplib
23459striplib=$lt_striplib
23460
23461
23462# The linker used to build libraries.
23463LD=$lt_LD
23464
23465# How to create reloadable object files.
23466reload_flag=$lt_reload_flag
23467reload_cmds=$lt_reload_cmds
23468
23469# Commands used to build an old-style archive.
23470old_archive_cmds=$lt_old_archive_cmds
23471
23472# A language specific compiler.
23473CC=$lt_compiler
23474
23475# Is the compiler the GNU compiler?
23476with_gcc=$GCC
23477
23478# Compiler flag to turn off builtin functions.
23479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23480
23481# Additional compiler flags for building library objects.
23482pic_flag=$lt_lt_prog_compiler_pic
23483
23484# How to pass a linker flag through the compiler.
23485wl=$lt_lt_prog_compiler_wl
23486
23487# Compiler flag to prevent dynamic linking.
23488link_static_flag=$lt_lt_prog_compiler_static
23489
23490# Does compiler simultaneously support -c and -o options?
23491compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23492
23493# Whether or not to add -lc for building shared libraries.
23494build_libtool_need_lc=$archive_cmds_need_lc
23495
23496# Whether or not to disallow shared libs when runtime libs are static.
23497allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23498
23499# Compiler flag to allow reflexive dlopens.
23500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23501
23502# Compiler flag to generate shared objects directly from archives.
23503whole_archive_flag_spec=$lt_whole_archive_flag_spec
23504
23505# Whether the compiler copes with passing no objects directly.
23506compiler_needs_object=$lt_compiler_needs_object
23507
23508# Create an old-style archive from a shared archive.
23509old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23510
23511# Create a temporary old-style archive to link instead of a shared archive.
23512old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23513
23514# Commands used to build a shared archive.
23515archive_cmds=$lt_archive_cmds
23516archive_expsym_cmds=$lt_archive_expsym_cmds
23517
23518# Commands used to build a loadable module if different from building
23519# a shared archive.
23520module_cmds=$lt_module_cmds
23521module_expsym_cmds=$lt_module_expsym_cmds
23522
23523# Whether we are building with GNU ld or not.
23524with_gnu_ld=$lt_with_gnu_ld
23525
23526# Flag that allows shared libraries with undefined symbols to be built.
23527allow_undefined_flag=$lt_allow_undefined_flag
23528
23529# Flag that enforces no undefined symbols.
23530no_undefined_flag=$lt_no_undefined_flag
23531
23532# Flag to hardcode \$libdir into a binary during linking.
23533# This must work even if \$libdir does not exist
23534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23535
23536# Whether we need a single "-rpath" flag with a separated argument.
23537hardcode_libdir_separator=$lt_hardcode_libdir_separator
23538
23539# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23540# DIR into the resulting binary.
23541hardcode_direct=$hardcode_direct
23542
23543# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23544# DIR into the resulting binary and the resulting library dependency is
23545# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23546# library is relocated.
23547hardcode_direct_absolute=$hardcode_direct_absolute
23548
23549# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23550# into the resulting binary.
23551hardcode_minus_L=$hardcode_minus_L
23552
23553# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23554# into the resulting binary.
23555hardcode_shlibpath_var=$hardcode_shlibpath_var
23556
23557# Set to "yes" if building a shared library automatically hardcodes DIR
23558# into the library and all subsequent libraries and executables linked
23559# against it.
23560hardcode_automatic=$hardcode_automatic
23561
23562# Set to yes if linker adds runtime paths of dependent libraries
23563# to runtime path list.
23564inherit_rpath=$inherit_rpath
23565
23566# Whether libtool must link a program against all its dependency libraries.
23567link_all_deplibs=$link_all_deplibs
23568
23569# Set to "yes" if exported symbols are required.
23570always_export_symbols=$always_export_symbols
23571
23572# The commands to list exported symbols.
23573export_symbols_cmds=$lt_export_symbols_cmds
23574
23575# Symbols that should not be listed in the preloaded symbols.
23576exclude_expsyms=$lt_exclude_expsyms
23577
23578# Symbols that must always be exported.
23579include_expsyms=$lt_include_expsyms
23580
23581# Commands necessary for linking programs (against libraries) with templates.
23582prelink_cmds=$lt_prelink_cmds
23583
23584# Commands necessary for finishing linking programs.
23585postlink_cmds=$lt_postlink_cmds
23586
23587# Specify filename containing input files.
23588file_list_spec=$lt_file_list_spec
23589
23590# How to hardcode a shared library path into an executable.
23591hardcode_action=$hardcode_action
23592
23593# ### END LIBTOOL CONFIG
23594
23595_LT_EOF
23596
23597    cat <<'_LT_EOF' >> "$cfgfile"
23598
23599# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23600
23601# func_munge_path_list VARIABLE PATH
23602# -----------------------------------
23603# VARIABLE is name of variable containing _space_ separated list of
23604# directories to be munged by the contents of PATH, which is string
23605# having a format:
23606# "DIR[:DIR]:"
23607#       string "DIR[ DIR]" will be prepended to VARIABLE
23608# ":DIR[:DIR]"
23609#       string "DIR[ DIR]" will be appended to VARIABLE
23610# "DIRP[:DIRP]::[DIRA:]DIRA"
23611#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23612#       "DIRA[ DIRA]" will be appended to VARIABLE
23613# "DIR[:DIR]"
23614#       VARIABLE will be replaced by "DIR[ DIR]"
23615func_munge_path_list ()
23616{
23617    case x$2 in
23618    x)
23619        ;;
23620    *:)
23621        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23622        ;;
23623    x:*)
23624        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23625        ;;
23626    *::*)
23627        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23628        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23629        ;;
23630    *)
23631        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23632        ;;
23633    esac
23634}
23635
23636
23637# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23638func_cc_basename ()
23639{
23640    for cc_temp in $*""; do
23641      case $cc_temp in
23642        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23643        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23644        \-*) ;;
23645        *) break;;
23646      esac
23647    done
23648    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23649}
23650
23651
23652# ### END FUNCTIONS SHARED WITH CONFIGURE
23653
23654_LT_EOF
23655
23656  case $host_os in
23657  aix3*)
23658    cat <<\_LT_EOF >> "$cfgfile"
23659# AIX sometimes has problems with the GCC collect2 program.  For some
23660# reason, if we set the COLLECT_NAMES environment variable, the problems
23661# vanish in a puff of smoke.
23662if test set != "${COLLECT_NAMES+set}"; then
23663  COLLECT_NAMES=
23664  export COLLECT_NAMES
23665fi
23666_LT_EOF
23667    ;;
23668  esac
23669
23670
23671
23672ltmain=$ac_aux_dir/ltmain.sh
23673
23674
23675  # We use sed instead of cat because bash on DJGPP gets confused if
23676  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23677  # text mode, it properly converts lines to CR/LF.  This bash problem
23678  # is reportedly fixed, but why not run on old versions too?
23679  $SED '$q' "$ltmain" >> "$cfgfile" \
23680     || (rm -f "$cfgfile"; exit 1)
23681
23682   mv -f "$cfgfile" "$ofile" ||
23683    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23684  chmod +x "$ofile"
23685
23686 ;;
23687
23688  esac
23689done # for ac_tag
23690
23691
23692as_fn_exit 0
23693_ACEOF
23694ac_clean_files=$ac_clean_files_save
23695
23696test $ac_write_fail = 0 ||
23697  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23698
23699
23700# configure is writing to config.log, and then calls config.status.
23701# config.status does its own redirection, appending to config.log.
23702# Unfortunately, on DOS this fails, as config.log is still kept open
23703# by configure, so config.status won't be able to write to it; its
23704# output is simply discarded.  So we exec the FD to /dev/null,
23705# effectively closing config.log, so it can be properly (re)opened and
23706# appended to by config.status.  When coming back to configure, we
23707# need to make the FD available again.
23708if test "$no_create" != yes; then
23709  ac_cs_success=:
23710  ac_config_status_args=
23711  test "$silent" = yes &&
23712    ac_config_status_args="$ac_config_status_args --quiet"
23713  exec 5>/dev/null
23714  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23715  exec 5>>config.log
23716  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23717  # would make configure fail if this is the last instruction.
23718  $ac_cs_success || as_fn_exit 1
23719fi
23720if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23722printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23723fi
23724
23725
23726