configure revision f9f7a7f2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xdm 1.1.14.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/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/app/xdm/-/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
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xdm'
624PACKAGE_TARNAME='xdm'
625PACKAGE_VERSION='1.1.14'
626PACKAGE_STRING='xdm 1.1.14'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdm/-/issues'
628PACKAGE_URL=''
629
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_unique_file="Makefile.am"
663ac_func_c_list=
664ac_subst_vars='am__EXEEXT_FALSE
665am__EXEEXT_TRUE
666LTLIBOBJS
667LIBOBJS
668appdefaultdir
669APPDEFS_LIBS
670APPDEFS_CFLAGS
671DEF_AUTH_DIR
672XDMXAUTHDIR
673DEF_CHOOSER
674DEF_XDM_CONFIG
675DEF_FAILSAFE_CLIENT
676DEF_SYSTEM_SHELL
677DEF_SYSTEM_PATH
678DEF_USER_PATH
679DEF_SESSION
680XRDB_PROGRAM
681DEF_SERVER_LINE
682CHOOSER_LIBS
683CHOOSER_CFLAGS
684XDMSHELL_LIBS
685XDMSHELL_CFLAGS
686XT_LIBS
687XT_CFLAGS
688INSTALL_XDMSHELL_FALSE
689INSTALL_XDMSHELL_TRUE
690HAS_XDM_AUTH_FALSE
691HAS_XDM_AUTH_TRUE
692DEF_GREETER_LIB
693XDMGREET_LIBS
694XDMGREET_CFLAGS
695AUTH_LIBS
696AUTH_CFLAGS
697XLIB_LIBS
698XLIB_CFLAGS
699DMCP_LIBS
700DMCP_CFLAGS
701XDM_TOOLKIT_LIBS
702XDM_TOOLKIT_CFLAGS
703XDM_PIXMAPDIR
704XDM_BWPIXMAP
705XDM_PIXMAP
706USE_XPM_FALSE
707USE_XPM_TRUE
708XPM_LIBS
709XPM_CFLAGS
710XFT_LIBS
711XFT_CFLAGS
712XINERAMA_LIBS
713XINERAMA_CFLAGS
714SHELL_CMD
715WTMP_FILE
716SET_WTMP_FILE_FALSE
717SET_WTMP_FILE_TRUE
718UTMP_FILE
719SET_UTMP_FILE_FALSE
720SET_UTMP_FILE_TRUE
721SERVERSTYPE
722DEFAULTVT
723XDMPIDDIR
724XDMLOGDIR
725XDMSCRIPTDIR
726XDMCONFIGDIR
727XDMLIBDIR
728HAS_KERBEROS_FIVE_FALSE
729HAS_KERBEROS_FIVE_TRUE
730DEV_RANDOM
731SU
732USE_SYSTEMD_DAEMON_FALSE
733USE_SYSTEMD_DAEMON_TRUE
734SYSTEMD_DAEMON_LIBS
735SYSTEMD_DAEMON_CFLAGS
736HAVE_SYSTEMD_FALSE
737HAVE_SYSTEMD_TRUE
738systemdsystemunitdir
739HAS_SECURE_RPC_FALSE
740HAS_SECURE_RPC_TRUE
741HAVE_ARC4RANDOM_FALSE
742HAVE_ARC4RANDOM_TRUE
743HAVE_ARC4RANDOM
744LIBBSD_LIBS
745LIBBSD_CFLAGS
746XDM_LIBS
747XDM_CFLAGS
748HAVE_MKTEMP_COMMAND_FALSE
749HAVE_MKTEMP_COMMAND_TRUE
750MKTEMP_COMMAND
751LINT_FALSE
752LINT_TRUE
753LINT_FLAGS
754LINT
755TRADITIONALCPPFLAGS
756RAWCPPFLAGS
757RAWCPP
758CPP
759MAN_SUBSTS
760XORG_MAN_PAGE
761ADMIN_MAN_DIR
762DRIVER_MAN_DIR
763MISC_MAN_DIR
764FILE_MAN_DIR
765LIB_MAN_DIR
766APP_MAN_DIR
767ADMIN_MAN_SUFFIX
768DRIVER_MAN_SUFFIX
769MISC_MAN_SUFFIX
770FILE_MAN_SUFFIX
771LIB_MAN_SUFFIX
772APP_MAN_SUFFIX
773INSTALL_CMD
774PKG_CONFIG_LIBDIR
775PKG_CONFIG_PATH
776PKG_CONFIG
777CHANGELOG_CMD
778STRICT_CFLAGS
779CWARNFLAGS
780BASE_CFLAGS
781LT_SYS_LIBRARY_PATH
782OTOOL64
783OTOOL
784LIPO
785NMEDIT
786DSYMUTIL
787MANIFEST_TOOL
788RANLIB
789ac_ct_AR
790AR
791DLLTOOL
792OBJDUMP
793FILECMD
794LN_S
795NM
796ac_ct_DUMPBIN
797DUMPBIN
798LD
799FGREP
800EGREP
801GREP
802SED
803host_os
804host_vendor
805host_cpu
806host
807build_os
808build_vendor
809build_cpu
810build
811LIBTOOL
812AM_BACKSLASH
813AM_DEFAULT_VERBOSITY
814AM_DEFAULT_V
815AM_V
816CSCOPE
817ETAGS
818CTAGS
819am__fastdepCC_FALSE
820am__fastdepCC_TRUE
821CCDEPMODE
822am__nodep
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__include
827DEPDIR
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
835MKDIR_P
836INSTALL_STRIP_PROGRAM
837STRIP
838install_sh
839MAKEINFO
840AUTOHEADER
841AUTOMAKE
842AUTOCONF
843ACLOCAL
844VERSION
845PACKAGE
846CYGPATH_W
847am__isrc
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
851OBJEXT
852EXEEXT
853ac_ct_CC
854CPPFLAGS
855LDFLAGS
856CFLAGS
857CC
858target_alias
859host_alias
860build_alias
861LIBS
862ECHO_T
863ECHO_N
864ECHO_C
865DEFS
866mandir
867localedir
868libdir
869psdir
870pdfdir
871dvidir
872htmldir
873infodir
874docdir
875oldincludedir
876includedir
877runstatedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL
897am__quote'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_dependency_tracking
902enable_silent_rules
903enable_static
904enable_shared
905with_pic
906enable_fast_install
907with_aix_soname
908with_gnu_ld
909with_sysroot
910enable_libtool_lock
911enable_selective_werror
912enable_strict_compilation
913with_lint
914enable_unix_transport
915enable_tcp_transport
916enable_ipv6
917enable_local_transport
918enable_secure_rpc
919with_pam
920with_selinux
921with_systemdsystemunitdir
922with_systemd_daemon
923with_random_device
924with_xdmlibdir
925with_xdmconfigdir
926with_xdmscriptdir
927with_logdir
928with_piddir
929with_default_vt
930with_config_type
931with_utmp_file
932with_wtmp_file
933with_xinerama
934with_xft
935enable_xpm_logos
936with_color_pixmap
937with_bw_pixmap
938with_pixmapdir
939enable_xdm_auth
940enable_xdmshell
941with_xrdb
942with_default_session
943with_authdir
944with_appdefaultdir
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
958CPP
959LINT
960LINT_FLAGS
961XDM_CFLAGS
962XDM_LIBS
963LIBBSD_CFLAGS
964LIBBSD_LIBS
965SYSTEMD_DAEMON_CFLAGS
966SYSTEMD_DAEMON_LIBS
967XINERAMA_CFLAGS
968XINERAMA_LIBS
969XFT_CFLAGS
970XFT_LIBS
971XPM_CFLAGS
972XPM_LIBS
973XDM_TOOLKIT_CFLAGS
974XDM_TOOLKIT_LIBS
975DMCP_CFLAGS
976DMCP_LIBS
977XLIB_CFLAGS
978XLIB_LIBS
979AUTH_CFLAGS
980AUTH_LIBS
981XDMGREET_CFLAGS
982XDMGREET_LIBS
983XT_CFLAGS
984XT_LIBS
985APPDEFS_CFLAGS
986APPDEFS_LIBS'
987
988
989# Initialize some variables set by options.
990ac_init_help=
991ac_init_version=false
992ac_unrecognized_opts=
993ac_unrecognized_sep=
994# The variables have the same names as the options, with
995# dashes changed to underlines.
996cache_file=/dev/null
997exec_prefix=NONE
998no_create=
999no_recursion=
1000prefix=NONE
1001program_prefix=NONE
1002program_suffix=NONE
1003program_transform_name=s,x,x,
1004silent=
1005site=
1006srcdir=
1007verbose=
1008x_includes=NONE
1009x_libraries=NONE
1010
1011# Installation directory options.
1012# These are left unexpanded so users can "make install exec_prefix=/foo"
1013# and all the variables that are supposed to be based on exec_prefix
1014# by default will actually change.
1015# Use braces instead of parens because sh, perl, etc. also accept them.
1016# (The list follows the same order as the GNU Coding Standards.)
1017bindir='${exec_prefix}/bin'
1018sbindir='${exec_prefix}/sbin'
1019libexecdir='${exec_prefix}/libexec'
1020datarootdir='${prefix}/share'
1021datadir='${datarootdir}'
1022sysconfdir='${prefix}/etc'
1023sharedstatedir='${prefix}/com'
1024localstatedir='${prefix}/var'
1025runstatedir='${localstatedir}/run'
1026includedir='${prefix}/include'
1027oldincludedir='/usr/include'
1028docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029infodir='${datarootdir}/info'
1030htmldir='${docdir}'
1031dvidir='${docdir}'
1032pdfdir='${docdir}'
1033psdir='${docdir}'
1034libdir='${exec_prefix}/lib'
1035localedir='${datarootdir}/locale'
1036mandir='${datarootdir}/man'
1037
1038ac_prev=
1039ac_dashdash=
1040for ac_option
1041do
1042  # If the previous option needs an argument, assign it.
1043  if test -n "$ac_prev"; then
1044    eval $ac_prev=\$ac_option
1045    ac_prev=
1046    continue
1047  fi
1048
1049  case $ac_option in
1050  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051  *=)   ac_optarg= ;;
1052  *)    ac_optarg=yes ;;
1053  esac
1054
1055  case $ac_dashdash$ac_option in
1056  --)
1057    ac_dashdash=yes ;;
1058
1059  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060    ac_prev=bindir ;;
1061  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062    bindir=$ac_optarg ;;
1063
1064  -build | --build | --buil | --bui | --bu)
1065    ac_prev=build_alias ;;
1066  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067    build_alias=$ac_optarg ;;
1068
1069  -cache-file | --cache-file | --cache-fil | --cache-fi \
1070  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071    ac_prev=cache_file ;;
1072  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074    cache_file=$ac_optarg ;;
1075
1076  --config-cache | -C)
1077    cache_file=config.cache ;;
1078
1079  -datadir | --datadir | --datadi | --datad)
1080    ac_prev=datadir ;;
1081  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082    datadir=$ac_optarg ;;
1083
1084  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085  | --dataroo | --dataro | --datar)
1086    ac_prev=datarootdir ;;
1087  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089    datarootdir=$ac_optarg ;;
1090
1091  -disable-* | --disable-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=no ;;
1106
1107  -docdir | --docdir | --docdi | --doc | --do)
1108    ac_prev=docdir ;;
1109  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110    docdir=$ac_optarg ;;
1111
1112  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113    ac_prev=dvidir ;;
1114  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115    dvidir=$ac_optarg ;;
1116
1117  -enable-* | --enable-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"enable_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval enable_$ac_useropt=\$ac_optarg ;;
1132
1133  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1134  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1135  | --exec | --exe | --ex)
1136    ac_prev=exec_prefix ;;
1137  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1138  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1139  | --exec=* | --exe=* | --ex=*)
1140    exec_prefix=$ac_optarg ;;
1141
1142  -gas | --gas | --ga | --g)
1143    # Obsolete; use --with-gas.
1144    with_gas=yes ;;
1145
1146  -help | --help | --hel | --he | -h)
1147    ac_init_help=long ;;
1148  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1149    ac_init_help=recursive ;;
1150  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1151    ac_init_help=short ;;
1152
1153  -host | --host | --hos | --ho)
1154    ac_prev=host_alias ;;
1155  -host=* | --host=* | --hos=* | --ho=*)
1156    host_alias=$ac_optarg ;;
1157
1158  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159    ac_prev=htmldir ;;
1160  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161  | --ht=*)
1162    htmldir=$ac_optarg ;;
1163
1164  -includedir | --includedir | --includedi | --included | --include \
1165  | --includ | --inclu | --incl | --inc)
1166    ac_prev=includedir ;;
1167  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1168  | --includ=* | --inclu=* | --incl=* | --inc=*)
1169    includedir=$ac_optarg ;;
1170
1171  -infodir | --infodir | --infodi | --infod | --info | --inf)
1172    ac_prev=infodir ;;
1173  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1174    infodir=$ac_optarg ;;
1175
1176  -libdir | --libdir | --libdi | --libd)
1177    ac_prev=libdir ;;
1178  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1179    libdir=$ac_optarg ;;
1180
1181  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1182  | --libexe | --libex | --libe)
1183    ac_prev=libexecdir ;;
1184  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1185  | --libexe=* | --libex=* | --libe=*)
1186    libexecdir=$ac_optarg ;;
1187
1188  -localedir | --localedir | --localedi | --localed | --locale)
1189    ac_prev=localedir ;;
1190  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1191    localedir=$ac_optarg ;;
1192
1193  -localstatedir | --localstatedir | --localstatedi | --localstated \
1194  | --localstate | --localstat | --localsta | --localst | --locals)
1195    ac_prev=localstatedir ;;
1196  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1197  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1198    localstatedir=$ac_optarg ;;
1199
1200  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201    ac_prev=mandir ;;
1202  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1203    mandir=$ac_optarg ;;
1204
1205  -nfp | --nfp | --nf)
1206    # Obsolete; use --without-fp.
1207    with_fp=no ;;
1208
1209  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1210  | --no-cr | --no-c | -n)
1211    no_create=yes ;;
1212
1213  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1214  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215    no_recursion=yes ;;
1216
1217  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1218  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1219  | --oldin | --oldi | --old | --ol | --o)
1220    ac_prev=oldincludedir ;;
1221  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1222  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1223  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1224    oldincludedir=$ac_optarg ;;
1225
1226  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227    ac_prev=prefix ;;
1228  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1229    prefix=$ac_optarg ;;
1230
1231  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1232  | --program-pre | --program-pr | --program-p)
1233    ac_prev=program_prefix ;;
1234  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1235  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1236    program_prefix=$ac_optarg ;;
1237
1238  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1239  | --program-suf | --program-su | --program-s)
1240    ac_prev=program_suffix ;;
1241  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1242  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1243    program_suffix=$ac_optarg ;;
1244
1245  -program-transform-name | --program-transform-name \
1246  | --program-transform-nam | --program-transform-na \
1247  | --program-transform-n | --program-transform- \
1248  | --program-transform | --program-transfor \
1249  | --program-transfo | --program-transf \
1250  | --program-trans | --program-tran \
1251  | --progr-tra | --program-tr | --program-t)
1252    ac_prev=program_transform_name ;;
1253  -program-transform-name=* | --program-transform-name=* \
1254  | --program-transform-nam=* | --program-transform-na=* \
1255  | --program-transform-n=* | --program-transform-=* \
1256  | --program-transform=* | --program-transfor=* \
1257  | --program-transfo=* | --program-transf=* \
1258  | --program-trans=* | --program-tran=* \
1259  | --progr-tra=* | --program-tr=* | --program-t=*)
1260    program_transform_name=$ac_optarg ;;
1261
1262  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263    ac_prev=pdfdir ;;
1264  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1265    pdfdir=$ac_optarg ;;
1266
1267  -psdir | --psdir | --psdi | --psd | --ps)
1268    ac_prev=psdir ;;
1269  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270    psdir=$ac_optarg ;;
1271
1272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273  | -silent | --silent | --silen | --sile | --sil)
1274    silent=yes ;;
1275
1276  -runstatedir | --runstatedir | --runstatedi | --runstated \
1277  | --runstate | --runstat | --runsta | --runst | --runs \
1278  | --run | --ru | --r)
1279    ac_prev=runstatedir ;;
1280  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1281  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1282  | --run=* | --ru=* | --r=*)
1283    runstatedir=$ac_optarg ;;
1284
1285  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286    ac_prev=sbindir ;;
1287  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288  | --sbi=* | --sb=*)
1289    sbindir=$ac_optarg ;;
1290
1291  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293  | --sharedst | --shareds | --shared | --share | --shar \
1294  | --sha | --sh)
1295    ac_prev=sharedstatedir ;;
1296  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299  | --sha=* | --sh=*)
1300    sharedstatedir=$ac_optarg ;;
1301
1302  -site | --site | --sit)
1303    ac_prev=site ;;
1304  -site=* | --site=* | --sit=*)
1305    site=$ac_optarg ;;
1306
1307  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308    ac_prev=srcdir ;;
1309  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310    srcdir=$ac_optarg ;;
1311
1312  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313  | --syscon | --sysco | --sysc | --sys | --sy)
1314    ac_prev=sysconfdir ;;
1315  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317    sysconfdir=$ac_optarg ;;
1318
1319  -target | --target | --targe | --targ | --tar | --ta | --t)
1320    ac_prev=target_alias ;;
1321  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322    target_alias=$ac_optarg ;;
1323
1324  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325    verbose=yes ;;
1326
1327  -version | --version | --versio | --versi | --vers | -V)
1328    ac_init_version=: ;;
1329
1330  -with-* | --with-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332    # Reject names that are not valid shell variable names.
1333    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334      as_fn_error $? "invalid package name: \`$ac_useropt'"
1335    ac_useropt_orig=$ac_useropt
1336    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1337    case $ac_user_opts in
1338      *"
1339"with_$ac_useropt"
1340"*) ;;
1341      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342	 ac_unrecognized_sep=', ';;
1343    esac
1344    eval with_$ac_useropt=\$ac_optarg ;;
1345
1346  -without-* | --without-*)
1347    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348    # Reject names that are not valid shell variable names.
1349    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350      as_fn_error $? "invalid package name: \`$ac_useropt'"
1351    ac_useropt_orig=$ac_useropt
1352    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1353    case $ac_user_opts in
1354      *"
1355"with_$ac_useropt"
1356"*) ;;
1357      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358	 ac_unrecognized_sep=', ';;
1359    esac
1360    eval with_$ac_useropt=no ;;
1361
1362  --x)
1363    # Obsolete; use --with-x.
1364    with_x=yes ;;
1365
1366  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367  | --x-incl | --x-inc | --x-in | --x-i)
1368    ac_prev=x_includes ;;
1369  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371    x_includes=$ac_optarg ;;
1372
1373  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375    ac_prev=x_libraries ;;
1376  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378    x_libraries=$ac_optarg ;;
1379
1380  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1381Try \`$0 --help' for more information"
1382    ;;
1383
1384  *=*)
1385    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386    # Reject names that are not valid shell variable names.
1387    case $ac_envvar in #(
1388      '' | [0-9]* | *[!_$as_cr_alnum]* )
1389      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1390    esac
1391    eval $ac_envvar=\$ac_optarg
1392    export $ac_envvar ;;
1393
1394  *)
1395    # FIXME: should be removed in autoconf 3.0.
1396    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1397    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1399    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1400    ;;
1401
1402  esac
1403done
1404
1405if test -n "$ac_prev"; then
1406  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407  as_fn_error $? "missing argument to $ac_option"
1408fi
1409
1410if test -n "$ac_unrecognized_opts"; then
1411  case $enable_option_checking in
1412    no) ;;
1413    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1414    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415  esac
1416fi
1417
1418# Check all directory arguments for consistency.
1419for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420		datadir sysconfdir sharedstatedir localstatedir includedir \
1421		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422		libdir localedir mandir runstatedir
1423do
1424  eval ac_val=\$$ac_var
1425  # Remove trailing slashes.
1426  case $ac_val in
1427    */ )
1428      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429      eval $ac_var=\$ac_val;;
1430  esac
1431  # Be sure to have absolute directory names.
1432  case $ac_val in
1433    [\\/$]* | ?:[\\/]* )  continue;;
1434    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435  esac
1436  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1437done
1438
1439# There might be people who depend on the old broken behavior: `$host'
1440# used to hold the argument of --host etc.
1441# FIXME: To remove some day.
1442build=$build_alias
1443host=$host_alias
1444target=$target_alias
1445
1446# FIXME: To remove some day.
1447if test "x$host_alias" != x; then
1448  if test "x$build_alias" = x; then
1449    cross_compiling=maybe
1450  elif test "x$build_alias" != "x$host_alias"; then
1451    cross_compiling=yes
1452  fi
1453fi
1454
1455ac_tool_prefix=
1456test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458test "$silent" = yes && exec 6>/dev/null
1459
1460
1461ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462ac_ls_di=`ls -di .` &&
1463ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464  as_fn_error $? "working directory cannot be determined"
1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466  as_fn_error $? "pwd does not report name of working directory"
1467
1468
1469# Find the source files, if location was not specified.
1470if test -z "$srcdir"; then
1471  ac_srcdir_defaulted=yes
1472  # Try the directory containing this script, then the parent directory.
1473  ac_confdir=`$as_dirname -- "$as_myself" ||
1474$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475	 X"$as_myself" : 'X\(//\)[^/]' \| \
1476	 X"$as_myself" : 'X\(//\)$' \| \
1477	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478printf "%s\n" X"$as_myself" |
1479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480	    s//\1/
1481	    q
1482	  }
1483	  /^X\(\/\/\)[^/].*/{
1484	    s//\1/
1485	    q
1486	  }
1487	  /^X\(\/\/\)$/{
1488	    s//\1/
1489	    q
1490	  }
1491	  /^X\(\/\).*/{
1492	    s//\1/
1493	    q
1494	  }
1495	  s/.*/./; q'`
1496  srcdir=$ac_confdir
1497  if test ! -r "$srcdir/$ac_unique_file"; then
1498    srcdir=..
1499  fi
1500else
1501  ac_srcdir_defaulted=no
1502fi
1503if test ! -r "$srcdir/$ac_unique_file"; then
1504  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1506fi
1507ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508ac_abs_confdir=`(
1509	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510	pwd)`
1511# When building in place, set srcdir=.
1512if test "$ac_abs_confdir" = "$ac_pwd"; then
1513  srcdir=.
1514fi
1515# Remove unnecessary trailing slashes from srcdir.
1516# Double slashes in file names in object file debugging info
1517# mess up M-x gdb in Emacs.
1518case $srcdir in
1519*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520esac
1521for ac_var in $ac_precious_vars; do
1522  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523  eval ac_env_${ac_var}_value=\$${ac_var}
1524  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526done
1527
1528#
1529# Report the --help message.
1530#
1531if test "$ac_init_help" = "long"; then
1532  # Omit some internal or obsolete options to make the list less imposing.
1533  # This message is too long to be a string in the A/UX 3.1 sh.
1534  cat <<_ACEOF
1535\`configure' configures xdm 1.1.14 to adapt to many kinds of systems.
1536
1537Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540VAR=VALUE.  See below for descriptions of some of the useful variables.
1541
1542Defaults for the options are specified in brackets.
1543
1544Configuration:
1545  -h, --help              display this help and exit
1546      --help=short        display options specific to this package
1547      --help=recursive    display the short help of all the included packages
1548  -V, --version           display version information and exit
1549  -q, --quiet, --silent   do not print \`checking ...' messages
1550      --cache-file=FILE   cache test results in FILE [disabled]
1551  -C, --config-cache      alias for \`--cache-file=config.cache'
1552  -n, --no-create         do not create output files
1553      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1554
1555Installation directories:
1556  --prefix=PREFIX         install architecture-independent files in PREFIX
1557                          [$ac_default_prefix]
1558  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1559                          [PREFIX]
1560
1561By default, \`make install' will install all the files in
1562\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1563an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564for instance \`--prefix=\$HOME'.
1565
1566For better control, use the options below.
1567
1568Fine tuning of the installation directories:
1569  --bindir=DIR            user executables [EPREFIX/bin]
1570  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1571  --libexecdir=DIR        program executables [EPREFIX/libexec]
1572  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1573  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1574  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1575  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1576  --libdir=DIR            object code libraries [EPREFIX/lib]
1577  --includedir=DIR        C header files [PREFIX/include]
1578  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1579  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1580  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1581  --infodir=DIR           info documentation [DATAROOTDIR/info]
1582  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1583  --mandir=DIR            man documentation [DATAROOTDIR/man]
1584  --docdir=DIR            documentation root [DATAROOTDIR/doc/xdm]
1585  --htmldir=DIR           html documentation [DOCDIR]
1586  --dvidir=DIR            dvi documentation [DOCDIR]
1587  --pdfdir=DIR            pdf documentation [DOCDIR]
1588  --psdir=DIR             ps documentation [DOCDIR]
1589_ACEOF
1590
1591  cat <<\_ACEOF
1592
1593Program names:
1594  --program-prefix=PREFIX            prepend PREFIX to installed program names
1595  --program-suffix=SUFFIX            append SUFFIX to installed program names
1596  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1597
1598System types:
1599  --build=BUILD     configure for building on BUILD [guessed]
1600  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1601_ACEOF
1602fi
1603
1604if test -n "$ac_init_help"; then
1605  case $ac_init_help in
1606     short | recursive ) echo "Configuration of xdm 1.1.14:";;
1607   esac
1608  cat <<\_ACEOF
1609
1610Optional Features:
1611  --disable-option-checking  ignore unrecognized --enable/--with options
1612  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1613  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1614  --enable-dependency-tracking
1615                          do not reject slow dependency extractors
1616  --disable-dependency-tracking
1617                          speeds up one-time build
1618  --enable-silent-rules   less verbose build output (undo: "make V=1")
1619  --disable-silent-rules  verbose build output (undo: "make V=0")
1620  --enable-static[=PKGS]  build static libraries [default=no]
1621  --enable-shared[=PKGS]  build shared libraries [default=yes]
1622  --enable-fast-install[=PKGS]
1623                          optimize for fast installation [default=yes]
1624  --disable-libtool-lock  avoid locking (might break parallel builds)
1625  --disable-selective-werror
1626                          Turn off selective compiler errors. (default:
1627                          enabled)
1628  --enable-strict-compilation
1629                          Enable all warnings from compiler and make them
1630                          errors (default: disabled)
1631  --enable-unix-transport Enable UNIX domain socket transport
1632  --enable-tcp-transport  Enable TCP socket transport
1633  --enable-ipv6           Enable IPv6 support
1634  --enable-local-transport
1635                          Enable os-specific local transport
1636  --enable-secure-rpc     Enable Secure RPC
1637  --enable-xpm-logos      Display xpm logos in greeter (default is YES)
1638  --enable-xdm-auth       Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1
1639                          (default: auto)
1640  --enable-xdmshell       Install xdmshell (default: disabled)
1641
1642Optional Packages:
1643  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1644  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1645  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1646                          both]
1647  --with-aix-soname=aix|svr4|both
1648                          shared library versioning (aka "SONAME") variant to
1649                          provide on AIX, [default=aix].
1650  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1651  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1652                          compiler's sysroot if not specified).
1653  --with-lint             Use a lint-style source code checker (default:
1654                          disabled)
1655  --with-pam              Use PAM for authentication (default is autodetected)
1656  --with-selinux          Add support for SELinux (default is no support)
1657  --with-systemdsystemunitdir=DIR
1658                          Directory for systemd service files (default from
1659                          the System and Service Manager)
1660  --with-systemd-daemon   Add support for systemd startup notification
1661                          (default is autodetected)
1662  --with-random-device\=<pathname>\
1663                          Use <pathname> as a source of randomness (default is
1664                          auto-detected)
1665  --with-xdmlibdir=<pathname>
1666                          specify directory for xdm scripts and modules
1667                          (default=${libdir}/X11/xdm)
1668  --with-xdmconfigdir=<pathname>
1669                          specify directory for xdm config files (default is
1670                          same as xdmlibdir)
1671  --with-xdmscriptdir=<pathname>
1672                          specify directory for xdm scripts (default is same
1673                          as xdmlibdir)
1674  --with-logdir=<pathname>
1675                          specify directory for xdm log files
1676                          (default=/var/log)
1677  --with-piddir=<pathname>
1678                          specify directory for xdm pid files
1679                          (default=/var/run)
1680  --with-default-vt=<vtname>
1681                          specify default vt to start xdm on (default=none)
1682  --with-config-type={ws|fs}
1683                          default config file type to use - workstation (ws)
1684                          or fileserver (fs) (default=ws)
1685  --with-utmp-file=<pathname>
1686                          specify file to pass to sessreg -u for current
1687                          logins
1688  --without-utmp-file     specify passing "none" to sessreg -u to not record
1689                          logins in utmp
1690  --with-wtmp-file=<pathname>
1691                          specify file to pass to sessreg -w for login history
1692  --without-wtmp-file     specify passing "none" to sessreg -w to not record
1693                          logins in wtmp
1694  --with-xinerama         Use Xinerama (default is YES if installed)
1695  --with-xft              Use Xft to draw text (default is YES if installed)
1696  --with-color-pixmap=<filename>
1697                          specify xpm file to use as color logo
1698                          (default=xorg.xpm)
1699  --with-bw-pixmap=<filename>
1700                          specify xpm file to use as black-and-white logo
1701                          (default=xorg-bw.xpm)
1702  --with-pixmapdir=<pathname>
1703                          specify directory for xpm files
1704                          (default=xdmlibdir/pixmaps)
1705  --with-xrdb=path        Use path for xrdb (default: bindir/xrdb)
1706  --with-default-session=command
1707                          Use command for default session (default:
1708                          bindir/xterm -ls)
1709  --with-authdir=<pathname>
1710                          specify directory for X auth files
1711                          (default=/var/lib/xdm)
1712  --with-appdefaultdir=<pathname>
1713                          specify directory for app-defaults files (default is
1714                          autodetected)
1715
1716Some influential environment variables:
1717  CC          C compiler command
1718  CFLAGS      C compiler flags
1719  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1720              nonstandard directory <lib dir>
1721  LIBS        libraries to pass to the linker, e.g. -l<library>
1722  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1723              you have headers in a nonstandard directory <include dir>
1724  LT_SYS_LIBRARY_PATH
1725              User-defined run-time library search path.
1726  PKG_CONFIG  path to pkg-config utility
1727  PKG_CONFIG_PATH
1728              directories to add to pkg-config's search path
1729  PKG_CONFIG_LIBDIR
1730              path overriding pkg-config's built-in search path
1731  CPP         C preprocessor
1732  LINT        Path to a lint-style command
1733  LINT_FLAGS  Flags for the lint-style command
1734  XDM_CFLAGS  C compiler flags for XDM, overriding pkg-config
1735  XDM_LIBS    linker flags for XDM, overriding pkg-config
1736  LIBBSD_CFLAGS
1737              C compiler flags for LIBBSD, overriding pkg-config
1738  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1739  SYSTEMD_DAEMON_CFLAGS
1740              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1741  SYSTEMD_DAEMON_LIBS
1742              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1743  XINERAMA_CFLAGS
1744              C compiler flags for XINERAMA, overriding pkg-config
1745  XINERAMA_LIBS
1746              linker flags for XINERAMA, overriding pkg-config
1747  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1748  XFT_LIBS    linker flags for XFT, overriding pkg-config
1749  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1750  XPM_LIBS    linker flags for XPM, overriding pkg-config
1751  XDM_TOOLKIT_CFLAGS
1752              C compiler flags for XDM_TOOLKIT, overriding pkg-config
1753  XDM_TOOLKIT_LIBS
1754              linker flags for XDM_TOOLKIT, overriding pkg-config
1755  DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config
1756  DMCP_LIBS   linker flags for DMCP, overriding pkg-config
1757  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1758  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1759  AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config
1760  AUTH_LIBS   linker flags for AUTH, overriding pkg-config
1761  XDMGREET_CFLAGS
1762              C compiler flags for XDMGREET, overriding pkg-config
1763  XDMGREET_LIBS
1764              linker flags for XDMGREET, overriding pkg-config
1765  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1766  XT_LIBS     linker flags for XT, overriding pkg-config
1767  APPDEFS_CFLAGS
1768              C compiler flags for APPDEFS, overriding pkg-config
1769  APPDEFS_LIBS
1770              linker flags for APPDEFS, overriding pkg-config
1771
1772Use these variables to override the choices made by `configure' or to help
1773it to find libraries and programs with nonstandard names/locations.
1774
1775Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>.
1776_ACEOF
1777ac_status=$?
1778fi
1779
1780if test "$ac_init_help" = "recursive"; then
1781  # If there are subdirs, report their specific --help.
1782  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783    test -d "$ac_dir" ||
1784      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1785      continue
1786    ac_builddir=.
1787
1788case "$ac_dir" in
1789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1790*)
1791  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1792  # A ".." for each directory in $ac_dir_suffix.
1793  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1794  case $ac_top_builddir_sub in
1795  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1796  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797  esac ;;
1798esac
1799ac_abs_top_builddir=$ac_pwd
1800ac_abs_builddir=$ac_pwd$ac_dir_suffix
1801# for backward compatibility:
1802ac_top_builddir=$ac_top_build_prefix
1803
1804case $srcdir in
1805  .)  # We are building in place.
1806    ac_srcdir=.
1807    ac_top_srcdir=$ac_top_builddir_sub
1808    ac_abs_top_srcdir=$ac_pwd ;;
1809  [\\/]* | ?:[\\/]* )  # Absolute name.
1810    ac_srcdir=$srcdir$ac_dir_suffix;
1811    ac_top_srcdir=$srcdir
1812    ac_abs_top_srcdir=$srcdir ;;
1813  *) # Relative name.
1814    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1815    ac_top_srcdir=$ac_top_build_prefix$srcdir
1816    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1817esac
1818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1819
1820    cd "$ac_dir" || { ac_status=$?; continue; }
1821    # Check for configure.gnu first; this name is used for a wrapper for
1822    # Metaconfig's "Configure" on case-insensitive file systems.
1823    if test -f "$ac_srcdir/configure.gnu"; then
1824      echo &&
1825      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826    elif test -f "$ac_srcdir/configure"; then
1827      echo &&
1828      $SHELL "$ac_srcdir/configure" --help=recursive
1829    else
1830      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1831    fi || ac_status=$?
1832    cd "$ac_pwd" || { ac_status=$?; break; }
1833  done
1834fi
1835
1836test -n "$ac_init_help" && exit $ac_status
1837if $ac_init_version; then
1838  cat <<\_ACEOF
1839xdm configure 1.1.14
1840generated by GNU Autoconf 2.71
1841
1842Copyright (C) 2021 Free Software Foundation, Inc.
1843This configure script is free software; the Free Software Foundation
1844gives unlimited permission to copy, distribute and modify it.
1845_ACEOF
1846  exit
1847fi
1848
1849## ------------------------ ##
1850## Autoconf initialization. ##
1851## ------------------------ ##
1852
1853# ac_fn_c_try_compile LINENO
1854# --------------------------
1855# Try to compile conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_c_try_compile ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  rm -f conftest.$ac_objext conftest.beam
1860  if { { ac_try="$ac_compile"
1861case "(($ac_try" in
1862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863  *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866printf "%s\n" "$ac_try_echo"; } >&5
1867  (eval "$ac_compile") 2>conftest.err
1868  ac_status=$?
1869  if test -s conftest.err; then
1870    grep -v '^ *+' conftest.err >conftest.er1
1871    cat conftest.er1 >&5
1872    mv -f conftest.er1 conftest.err
1873  fi
1874  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; } && {
1876	 test -z "$ac_c_werror_flag" ||
1877	 test ! -s conftest.err
1878       } && test -s conftest.$ac_objext
1879then :
1880  ac_retval=0
1881else $as_nop
1882  printf "%s\n" "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885	ac_retval=1
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_compile
1891
1892# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1893# -------------------------------------------------------
1894# Tests whether HEADER exists and can be compiled using the include files in
1895# INCLUDES, setting the cache variable VAR accordingly.
1896ac_fn_c_check_header_compile ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900printf %s "checking for $2... " >&6; }
1901if eval test \${$3+y}
1902then :
1903  printf %s "(cached) " >&6
1904else $as_nop
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"
1911then :
1912  eval "$3=yes"
1913else $as_nop
1914  eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920printf "%s\n" "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_header_compile
1924
1925# ac_fn_c_try_link LINENO
1926# -----------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_c_try_link ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1932  if { { ac_try="$ac_link"
1933case "(($ac_try" in
1934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935  *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938printf "%s\n" "$ac_try_echo"; } >&5
1939  (eval "$ac_link") 2>conftest.err
1940  ac_status=$?
1941  if test -s conftest.err; then
1942    grep -v '^ *+' conftest.err >conftest.er1
1943    cat conftest.er1 >&5
1944    mv -f conftest.er1 conftest.err
1945  fi
1946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; } && {
1948	 test -z "$ac_c_werror_flag" ||
1949	 test ! -s conftest.err
1950       } && test -s conftest$ac_exeext && {
1951	 test "$cross_compiling" = yes ||
1952	 test -x conftest$ac_exeext
1953       }
1954then :
1955  ac_retval=0
1956else $as_nop
1957  printf "%s\n" "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960	ac_retval=1
1961fi
1962  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964  # interfere with the next link command; also delete a directory that is
1965  # left behind by Apple's compiler.  We do this before executing the actions.
1966  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968  as_fn_set_status $ac_retval
1969
1970} # ac_fn_c_try_link
1971
1972# ac_fn_c_check_func LINENO FUNC VAR
1973# ----------------------------------
1974# Tests whether FUNC exists, setting the cache variable VAR accordingly
1975ac_fn_c_check_func ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979printf %s "checking for $2... " >&6; }
1980if eval test \${$3+y}
1981then :
1982  printf %s "(cached) " >&6
1983else $as_nop
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1987   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1988#define $2 innocuous_$2
1989
1990/* System header to define __stub macros and hopefully few prototypes,
1991   which can conflict with char $2 (); below.  */
1992
1993#include <limits.h>
1994#undef $2
1995
1996/* Override any GCC internal prototype to avoid an error.
1997   Use char because int might match the return type of a GCC
1998   builtin and then its argument prototype would still apply.  */
1999#ifdef __cplusplus
2000extern "C"
2001#endif
2002char $2 ();
2003/* The GNU C library defines this for functions which it implements
2004    to always fail with ENOSYS.  Some functions are actually named
2005    something starting with __ and the normal name is an alias.  */
2006#if defined __stub_$2 || defined __stub___$2
2007choke me
2008#endif
2009
2010int
2011main (void)
2012{
2013return $2 ();
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_link "$LINENO"
2019then :
2020  eval "$3=yes"
2021else $as_nop
2022  eval "$3=no"
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.beam \
2025    conftest$ac_exeext conftest.$ac_ext
2026fi
2027eval ac_res=\$$3
2028	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029printf "%s\n" "$ac_res" >&6; }
2030  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032} # ac_fn_c_check_func
2033
2034# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2035# ------------------------------------------------------------------
2036# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2037# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2038ac_fn_check_decl ()
2039{
2040  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041  as_decl_name=`echo $2|sed 's/ *(.*//'`
2042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2043printf %s "checking whether $as_decl_name is declared... " >&6; }
2044if eval test \${$3+y}
2045then :
2046  printf %s "(cached) " >&6
2047else $as_nop
2048  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2049  eval ac_save_FLAGS=\$$6
2050  as_fn_append $6 " $5"
2051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052/* end confdefs.h.  */
2053$4
2054int
2055main (void)
2056{
2057#ifndef $as_decl_name
2058#ifdef __cplusplus
2059  (void) $as_decl_use;
2060#else
2061  (void) $as_decl_name;
2062#endif
2063#endif
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"
2070then :
2071  eval "$3=yes"
2072else $as_nop
2073  eval "$3=no"
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2076  eval $6=\$ac_save_FLAGS
2077
2078fi
2079eval ac_res=\$$3
2080	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081printf "%s\n" "$ac_res" >&6; }
2082  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084} # ac_fn_check_decl
2085
2086# ac_fn_c_try_cpp LINENO
2087# ----------------------
2088# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2089ac_fn_c_try_cpp ()
2090{
2091  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092  if { { ac_try="$ac_cpp conftest.$ac_ext"
2093case "(($ac_try" in
2094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095  *) ac_try_echo=$ac_try;;
2096esac
2097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2098printf "%s\n" "$ac_try_echo"; } >&5
2099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2100  ac_status=$?
2101  if test -s conftest.err; then
2102    grep -v '^ *+' conftest.err >conftest.er1
2103    cat conftest.er1 >&5
2104    mv -f conftest.er1 conftest.err
2105  fi
2106  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107  test $ac_status = 0; } > conftest.i && {
2108	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2109	 test ! -s conftest.err
2110       }
2111then :
2112  ac_retval=0
2113else $as_nop
2114  printf "%s\n" "$as_me: failed program was:" >&5
2115sed 's/^/| /' conftest.$ac_ext >&5
2116
2117    ac_retval=1
2118fi
2119  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120  as_fn_set_status $ac_retval
2121
2122} # ac_fn_c_try_cpp
2123
2124# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2125# -------------------------------------------
2126# Tests whether TYPE exists after having included INCLUDES, setting cache
2127# variable VAR accordingly.
2128ac_fn_c_check_type ()
2129{
2130  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132printf %s "checking for $2... " >&6; }
2133if eval test \${$3+y}
2134then :
2135  printf %s "(cached) " >&6
2136else $as_nop
2137  eval "$3=no"
2138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h.  */
2140$4
2141int
2142main (void)
2143{
2144if (sizeof ($2))
2145	 return 0;
2146  ;
2147  return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"
2151then :
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main (void)
2157{
2158if (sizeof (($2)))
2159	    return 0;
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"
2165then :
2166
2167else $as_nop
2168  eval "$3=yes"
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2173fi
2174eval ac_res=\$$3
2175	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176printf "%s\n" "$ac_res" >&6; }
2177  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179} # ac_fn_c_check_type
2180
2181# ac_fn_c_try_run LINENO
2182# ----------------------
2183# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2184# executables *can* be run.
2185ac_fn_c_try_run ()
2186{
2187  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188  if { { ac_try="$ac_link"
2189case "(($ac_try" in
2190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191  *) ac_try_echo=$ac_try;;
2192esac
2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194printf "%s\n" "$ac_try_echo"; } >&5
2195  (eval "$ac_link") 2>&5
2196  ac_status=$?
2197  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2199  { { case "(($ac_try" in
2200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201  *) ac_try_echo=$ac_try;;
2202esac
2203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2204printf "%s\n" "$ac_try_echo"; } >&5
2205  (eval "$ac_try") 2>&5
2206  ac_status=$?
2207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208  test $ac_status = 0; }; }
2209then :
2210  ac_retval=0
2211else $as_nop
2212  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2213       printf "%s\n" "$as_me: failed program was:" >&5
2214sed 's/^/| /' conftest.$ac_ext >&5
2215
2216       ac_retval=$ac_status
2217fi
2218  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2219  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220  as_fn_set_status $ac_retval
2221
2222} # ac_fn_c_try_run
2223
2224# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2225# ----------------------------------------------------
2226# Tries to find if the field MEMBER exists in type AGGR, after including
2227# INCLUDES, setting cache variable VAR accordingly.
2228ac_fn_c_check_member ()
2229{
2230  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2232printf %s "checking for $2.$3... " >&6; }
2233if eval test \${$4+y}
2234then :
2235  printf %s "(cached) " >&6
2236else $as_nop
2237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h.  */
2239$5
2240int
2241main (void)
2242{
2243static $2 ac_aggr;
2244if (ac_aggr.$3)
2245return 0;
2246  ;
2247  return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"
2251then :
2252  eval "$4=yes"
2253else $as_nop
2254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h.  */
2256$5
2257int
2258main (void)
2259{
2260static $2 ac_aggr;
2261if (sizeof ac_aggr.$3)
2262return 0;
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"
2268then :
2269  eval "$4=yes"
2270else $as_nop
2271  eval "$4=no"
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2276fi
2277eval ac_res=\$$4
2278	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279printf "%s\n" "$ac_res" >&6; }
2280  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281
2282} # ac_fn_c_check_member
2283ac_configure_args_raw=
2284for ac_arg
2285do
2286  case $ac_arg in
2287  *\'*)
2288    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2289  esac
2290  as_fn_append ac_configure_args_raw " '$ac_arg'"
2291done
2292
2293case $ac_configure_args_raw in
2294  *$as_nl*)
2295    ac_safe_unquote= ;;
2296  *)
2297    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2298    ac_unsafe_a="$ac_unsafe_z#~"
2299    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2300    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2301esac
2302
2303cat >config.log <<_ACEOF
2304This file contains any messages produced by compilers while
2305running configure, to aid debugging if configure makes a mistake.
2306
2307It was created by xdm $as_me 1.1.14, which was
2308generated by GNU Autoconf 2.71.  Invocation command line was
2309
2310  $ $0$ac_configure_args_raw
2311
2312_ACEOF
2313exec 5>>config.log
2314{
2315cat <<_ASUNAME
2316## --------- ##
2317## Platform. ##
2318## --------- ##
2319
2320hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325
2326/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2328
2329/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2330/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2331/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2333/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2334/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2335/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2336
2337_ASUNAME
2338
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342  IFS=$as_save_IFS
2343  case $as_dir in #(((
2344    '') as_dir=./ ;;
2345    */) ;;
2346    *) as_dir=$as_dir/ ;;
2347  esac
2348    printf "%s\n" "PATH: $as_dir"
2349  done
2350IFS=$as_save_IFS
2351
2352} >&5
2353
2354cat >&5 <<_ACEOF
2355
2356
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
2360
2361_ACEOF
2362
2363
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
2372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375  for ac_arg
2376  do
2377    case $ac_arg in
2378    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380    | -silent | --silent | --silen | --sile | --sil)
2381      continue ;;
2382    *\'*)
2383      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    esac
2385    case $ac_pass in
2386    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387    2)
2388      as_fn_append ac_configure_args1 " '$ac_arg'"
2389      if test $ac_must_keep_next = true; then
2390	ac_must_keep_next=false # Got value, back to normal.
2391      else
2392	case $ac_arg in
2393	  *=* | --config-cache | -C | -disable-* | --disable-* \
2394	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396	  | -with-* | --with-* | -without-* | --without-* | --x)
2397	    case "$ac_configure_args0 " in
2398	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399	    esac
2400	    ;;
2401	  -* ) ac_must_keep_next=true ;;
2402	esac
2403      fi
2404      as_fn_append ac_configure_args " '$ac_arg'"
2405      ;;
2406    esac
2407  done
2408done
2409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
2411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log.  We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
2415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417trap 'exit_status=$?
2418  # Sanitize IFS.
2419  IFS=" ""	$as_nl"
2420  # Save into config.log some information that might help in debugging.
2421  {
2422    echo
2423
2424    printf "%s\n" "## ---------------- ##
2425## Cache variables. ##
2426## ---------------- ##"
2427    echo
2428    # The following way of writing the cache mishandles newlines in values,
2429(
2430  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2431    eval ac_val=\$$ac_var
2432    case $ac_val in #(
2433    *${as_nl}*)
2434      case $ac_var in #(
2435      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437      esac
2438      case $ac_var in #(
2439      _ | IFS | as_nl) ;; #(
2440      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441      *) { eval $ac_var=; unset $ac_var;} ;;
2442      esac ;;
2443    esac
2444  done
2445  (set) 2>&1 |
2446    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2447    *${as_nl}ac_space=\ *)
2448      sed -n \
2449	"s/'\''/'\''\\\\'\'''\''/g;
2450	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451      ;; #(
2452    *)
2453      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454      ;;
2455    esac |
2456    sort
2457)
2458    echo
2459
2460    printf "%s\n" "## ----------------- ##
2461## Output variables. ##
2462## ----------------- ##"
2463    echo
2464    for ac_var in $ac_subst_vars
2465    do
2466      eval ac_val=\$$ac_var
2467      case $ac_val in
2468      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469      esac
2470      printf "%s\n" "$ac_var='\''$ac_val'\''"
2471    done | sort
2472    echo
2473
2474    if test -n "$ac_subst_files"; then
2475      printf "%s\n" "## ------------------- ##
2476## File substitutions. ##
2477## ------------------- ##"
2478      echo
2479      for ac_var in $ac_subst_files
2480      do
2481	eval ac_val=\$$ac_var
2482	case $ac_val in
2483	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484	esac
2485	printf "%s\n" "$ac_var='\''$ac_val'\''"
2486      done | sort
2487      echo
2488    fi
2489
2490    if test -s confdefs.h; then
2491      printf "%s\n" "## ----------- ##
2492## confdefs.h. ##
2493## ----------- ##"
2494      echo
2495      cat confdefs.h
2496      echo
2497    fi
2498    test "$ac_signal" != 0 &&
2499      printf "%s\n" "$as_me: caught signal $ac_signal"
2500    printf "%s\n" "$as_me: exit $exit_status"
2501  } >&5
2502  rm -f core *.core core.conftest.* &&
2503    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504    exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
2507  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
2513
2514printf "%s\n" "/* confdefs.h */" > confdefs.h
2515
2516# Predefined preprocessor variables.
2517
2518printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2519
2520printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2521
2522printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2523
2524printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2525
2526printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2527
2528printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2529
2530
2531# Let the site file select an alternate cache file if it wants to.
2532# Prefer an explicitly selected file to automatically selected ones.
2533if test -n "$CONFIG_SITE"; then
2534  ac_site_files="$CONFIG_SITE"
2535elif test "x$prefix" != xNONE; then
2536  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2537else
2538  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2539fi
2540
2541for ac_site_file in $ac_site_files
2542do
2543  case $ac_site_file in #(
2544  */*) :
2545     ;; #(
2546  *) :
2547    ac_site_file=./$ac_site_file ;;
2548esac
2549  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2550    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2552    sed 's/^/| /' "$ac_site_file" >&5
2553    . "$ac_site_file" \
2554      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error $? "failed to load site script $ac_site_file
2557See \`config.log' for more details" "$LINENO" 5; }
2558  fi
2559done
2560
2561if test -r "$cache_file"; then
2562  # Some versions of bash will fail to source /dev/null (special files
2563  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2564  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2567    case $cache_file in
2568      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569      *)                      . "./$cache_file";;
2570    esac
2571  fi
2572else
2573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2575  >$cache_file
2576fi
2577
2578as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2579# Test code for whether the C compiler supports C89 (global declarations)
2580ac_c_conftest_c89_globals='
2581/* Does the compiler advertise C89 conformance?
2582   Do not test the value of __STDC__, because some compilers set it to 0
2583   while being otherwise adequately conformant. */
2584#if !defined __STDC__
2585# error "Compiler does not advertise C89 conformance"
2586#endif
2587
2588#include <stddef.h>
2589#include <stdarg.h>
2590struct stat;
2591/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2592struct buf { int x; };
2593struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2594static char *e (p, i)
2595     char **p;
2596     int i;
2597{
2598  return p[i];
2599}
2600static char *f (char * (*g) (char **, int), char **p, ...)
2601{
2602  char *s;
2603  va_list v;
2604  va_start (v,p);
2605  s = g (p, va_arg (v,int));
2606  va_end (v);
2607  return s;
2608}
2609
2610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2611   function prototypes and stuff, but not \xHH hex character constants.
2612   These do not provoke an error unfortunately, instead are silently treated
2613   as an "x".  The following induces an error, until -std is added to get
2614   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2615   array size at least.  It is necessary to write \x00 == 0 to get something
2616   that is true only with -std.  */
2617int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2618
2619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2620   inside strings and character constants.  */
2621#define FOO(x) '\''x'\''
2622int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2623
2624int test (int i, double x);
2625struct s1 {int (*f) (int a);};
2626struct s2 {int (*f) (double a);};
2627int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2628               int, int);'
2629
2630# Test code for whether the C compiler supports C89 (body of main).
2631ac_c_conftest_c89_main='
2632ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2633'
2634
2635# Test code for whether the C compiler supports C99 (global declarations)
2636ac_c_conftest_c99_globals='
2637// Does the compiler advertise C99 conformance?
2638#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2639# error "Compiler does not advertise C99 conformance"
2640#endif
2641
2642#include <stdbool.h>
2643extern int puts (const char *);
2644extern int printf (const char *, ...);
2645extern int dprintf (int, const char *, ...);
2646extern void *malloc (size_t);
2647
2648// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2649// dprintf is used instead of fprintf to avoid needing to declare
2650// FILE and stderr.
2651#define debug(...) dprintf (2, __VA_ARGS__)
2652#define showlist(...) puts (#__VA_ARGS__)
2653#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2654static void
2655test_varargs_macros (void)
2656{
2657  int x = 1234;
2658  int y = 5678;
2659  debug ("Flag");
2660  debug ("X = %d\n", x);
2661  showlist (The first, second, and third items.);
2662  report (x>y, "x is %d but y is %d", x, y);
2663}
2664
2665// Check long long types.
2666#define BIG64 18446744073709551615ull
2667#define BIG32 4294967295ul
2668#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2669#if !BIG_OK
2670  #error "your preprocessor is broken"
2671#endif
2672#if BIG_OK
2673#else
2674  #error "your preprocessor is broken"
2675#endif
2676static long long int bignum = -9223372036854775807LL;
2677static unsigned long long int ubignum = BIG64;
2678
2679struct incomplete_array
2680{
2681  int datasize;
2682  double data[];
2683};
2684
2685struct named_init {
2686  int number;
2687  const wchar_t *name;
2688  double average;
2689};
2690
2691typedef const char *ccp;
2692
2693static inline int
2694test_restrict (ccp restrict text)
2695{
2696  // See if C++-style comments work.
2697  // Iterate through items via the restricted pointer.
2698  // Also check for declarations in for loops.
2699  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2700    continue;
2701  return 0;
2702}
2703
2704// Check varargs and va_copy.
2705static bool
2706test_varargs (const char *format, ...)
2707{
2708  va_list args;
2709  va_start (args, format);
2710  va_list args_copy;
2711  va_copy (args_copy, args);
2712
2713  const char *str = "";
2714  int number = 0;
2715  float fnumber = 0;
2716
2717  while (*format)
2718    {
2719      switch (*format++)
2720	{
2721	case '\''s'\'': // string
2722	  str = va_arg (args_copy, const char *);
2723	  break;
2724	case '\''d'\'': // int
2725	  number = va_arg (args_copy, int);
2726	  break;
2727	case '\''f'\'': // float
2728	  fnumber = va_arg (args_copy, double);
2729	  break;
2730	default:
2731	  break;
2732	}
2733    }
2734  va_end (args_copy);
2735  va_end (args);
2736
2737  return *str && number && fnumber;
2738}
2739'
2740
2741# Test code for whether the C compiler supports C99 (body of main).
2742ac_c_conftest_c99_main='
2743  // Check bool.
2744  _Bool success = false;
2745  success |= (argc != 0);
2746
2747  // Check restrict.
2748  if (test_restrict ("String literal") == 0)
2749    success = true;
2750  char *restrict newvar = "Another string";
2751
2752  // Check varargs.
2753  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2754  test_varargs_macros ();
2755
2756  // Check flexible array members.
2757  struct incomplete_array *ia =
2758    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2759  ia->datasize = 10;
2760  for (int i = 0; i < ia->datasize; ++i)
2761    ia->data[i] = i * 1.234;
2762
2763  // Check named initializers.
2764  struct named_init ni = {
2765    .number = 34,
2766    .name = L"Test wide string",
2767    .average = 543.34343,
2768  };
2769
2770  ni.number = 58;
2771
2772  int dynamic_array[ni.number];
2773  dynamic_array[0] = argv[0][0];
2774  dynamic_array[ni.number - 1] = 543;
2775
2776  // work around unused variable warnings
2777  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2778	 || dynamic_array[ni.number - 1] != 543);
2779'
2780
2781# Test code for whether the C compiler supports C11 (global declarations)
2782ac_c_conftest_c11_globals='
2783// Does the compiler advertise C11 conformance?
2784#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2785# error "Compiler does not advertise C11 conformance"
2786#endif
2787
2788// Check _Alignas.
2789char _Alignas (double) aligned_as_double;
2790char _Alignas (0) no_special_alignment;
2791extern char aligned_as_int;
2792char _Alignas (0) _Alignas (int) aligned_as_int;
2793
2794// Check _Alignof.
2795enum
2796{
2797  int_alignment = _Alignof (int),
2798  int_array_alignment = _Alignof (int[100]),
2799  char_alignment = _Alignof (char)
2800};
2801_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2802
2803// Check _Noreturn.
2804int _Noreturn does_not_return (void) { for (;;) continue; }
2805
2806// Check _Static_assert.
2807struct test_static_assert
2808{
2809  int x;
2810  _Static_assert (sizeof (int) <= sizeof (long int),
2811                  "_Static_assert does not work in struct");
2812  long int y;
2813};
2814
2815// Check UTF-8 literals.
2816#define u8 syntax error!
2817char const utf8_literal[] = u8"happens to be ASCII" "another string";
2818
2819// Check duplicate typedefs.
2820typedef long *long_ptr;
2821typedef long int *long_ptr;
2822typedef long_ptr long_ptr;
2823
2824// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2825struct anonymous
2826{
2827  union {
2828    struct { int i; int j; };
2829    struct { int k; long int l; } w;
2830  };
2831  int m;
2832} v1;
2833'
2834
2835# Test code for whether the C compiler supports C11 (body of main).
2836ac_c_conftest_c11_main='
2837  _Static_assert ((offsetof (struct anonymous, i)
2838		   == offsetof (struct anonymous, w.k)),
2839		  "Anonymous union alignment botch");
2840  v1.i = 2;
2841  v1.w.k = 5;
2842  ok |= v1.i != 5;
2843'
2844
2845# Test code for whether the C compiler supports C11 (complete).
2846ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2847${ac_c_conftest_c99_globals}
2848${ac_c_conftest_c11_globals}
2849
2850int
2851main (int argc, char **argv)
2852{
2853  int ok = 0;
2854  ${ac_c_conftest_c89_main}
2855  ${ac_c_conftest_c99_main}
2856  ${ac_c_conftest_c11_main}
2857  return ok;
2858}
2859"
2860
2861# Test code for whether the C compiler supports C99 (complete).
2862ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2863${ac_c_conftest_c99_globals}
2864
2865int
2866main (int argc, char **argv)
2867{
2868  int ok = 0;
2869  ${ac_c_conftest_c89_main}
2870  ${ac_c_conftest_c99_main}
2871  return ok;
2872}
2873"
2874
2875# Test code for whether the C compiler supports C89 (complete).
2876ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2877
2878int
2879main (int argc, char **argv)
2880{
2881  int ok = 0;
2882  ${ac_c_conftest_c89_main}
2883  return ok;
2884}
2885"
2886
2887as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2888as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2889as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2890as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2891as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2892as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2893as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2894as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2895as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2896as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2897as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2898as_fn_append ac_func_c_list " fork HAVE_FORK"
2899as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2900
2901# Auxiliary files required by this configure script.
2902ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2903
2904# Locations in which to look for auxiliary files.
2905ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2906
2907# Search for a directory containing all of the required auxiliary files,
2908# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2909# If we don't find one directory that contains all the files we need,
2910# we report the set of missing files from the *first* directory in
2911# $ac_aux_dir_candidates and give up.
2912ac_missing_aux_files=""
2913ac_first_candidate=:
2914printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916as_found=false
2917for as_dir in $ac_aux_dir_candidates
2918do
2919  IFS=$as_save_IFS
2920  case $as_dir in #(((
2921    '') as_dir=./ ;;
2922    */) ;;
2923    *) as_dir=$as_dir/ ;;
2924  esac
2925  as_found=:
2926
2927  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2928  ac_aux_dir_found=yes
2929  ac_install_sh=
2930  for ac_aux in $ac_aux_files
2931  do
2932    # As a special case, if "install-sh" is required, that requirement
2933    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2934    # and $ac_install_sh is set appropriately for whichever one is found.
2935    if test x"$ac_aux" = x"install-sh"
2936    then
2937      if test -f "${as_dir}install-sh"; then
2938        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2939        ac_install_sh="${as_dir}install-sh -c"
2940      elif test -f "${as_dir}install.sh"; then
2941        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2942        ac_install_sh="${as_dir}install.sh -c"
2943      elif test -f "${as_dir}shtool"; then
2944        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2945        ac_install_sh="${as_dir}shtool install -c"
2946      else
2947        ac_aux_dir_found=no
2948        if $ac_first_candidate; then
2949          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2950        else
2951          break
2952        fi
2953      fi
2954    else
2955      if test -f "${as_dir}${ac_aux}"; then
2956        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2957      else
2958        ac_aux_dir_found=no
2959        if $ac_first_candidate; then
2960          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2961        else
2962          break
2963        fi
2964      fi
2965    fi
2966  done
2967  if test "$ac_aux_dir_found" = yes; then
2968    ac_aux_dir="$as_dir"
2969    break
2970  fi
2971  ac_first_candidate=false
2972
2973  as_found=false
2974done
2975IFS=$as_save_IFS
2976if $as_found
2977then :
2978
2979else $as_nop
2980  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2981fi
2982
2983
2984# These three variables are undocumented and unsupported,
2985# and are intended to be withdrawn in a future Autoconf release.
2986# They can cause serious problems if a builder's source tree is in a directory
2987# whose full name contains unusual characters.
2988if test -f "${ac_aux_dir}config.guess"; then
2989  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2990fi
2991if test -f "${ac_aux_dir}config.sub"; then
2992  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2993fi
2994if test -f "$ac_aux_dir/configure"; then
2995  ac_configure="$SHELL ${ac_aux_dir}configure"
2996fi
2997
2998# Check that the precious variables saved in the cache have kept the same
2999# value.
3000ac_cache_corrupted=false
3001for ac_var in $ac_precious_vars; do
3002  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3003  eval ac_new_set=\$ac_env_${ac_var}_set
3004  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3005  eval ac_new_val=\$ac_env_${ac_var}_value
3006  case $ac_old_set,$ac_new_set in
3007    set,)
3008      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3009printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3010      ac_cache_corrupted=: ;;
3011    ,set)
3012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3013printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3014      ac_cache_corrupted=: ;;
3015    ,);;
3016    *)
3017      if test "x$ac_old_val" != "x$ac_new_val"; then
3018	# differences in whitespace do not lead to failure.
3019	ac_old_val_w=`echo x $ac_old_val`
3020	ac_new_val_w=`echo x $ac_new_val`
3021	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3022	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3023printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3024	  ac_cache_corrupted=:
3025	else
3026	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3027printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3028	  eval $ac_var=\$ac_old_val
3029	fi
3030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3031printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3033printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3034      fi;;
3035  esac
3036  # Pass precious variables to config.status.
3037  if test "$ac_new_set" = set; then
3038    case $ac_new_val in
3039    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3040    *) ac_arg=$ac_var=$ac_new_val ;;
3041    esac
3042    case " $ac_configure_args " in
3043      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3044      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3045    esac
3046  fi
3047done
3048if $ac_cache_corrupted; then
3049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3052printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3053  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3054	    and start over" "$LINENO" 5
3055fi
3056## -------------------- ##
3057## Main body of script. ##
3058## -------------------- ##
3059
3060ac_ext=c
3061ac_cpp='$CPP $CPPFLAGS'
3062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078# Expand $ac_aux_dir to an absolute path.
3079am_aux_dir=`cd "$ac_aux_dir" && pwd`
3080
3081ac_ext=c
3082ac_cpp='$CPP $CPPFLAGS'
3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086if test -n "$ac_tool_prefix"; then
3087  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090printf %s "checking for $ac_word... " >&6; }
3091if test ${ac_cv_prog_CC+y}
3092then :
3093  printf %s "(cached) " >&6
3094else $as_nop
3095  if test -n "$CC"; then
3096  ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101  IFS=$as_save_IFS
3102  case $as_dir in #(((
3103    '') as_dir=./ ;;
3104    */) ;;
3105    *) as_dir=$as_dir/ ;;
3106  esac
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3109    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111    break 2
3112  fi
3113done
3114  done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119CC=$ac_cv_prog_CC
3120if test -n "$CC"; then
3121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122printf "%s\n" "$CC" >&6; }
3123else
3124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125printf "%s\n" "no" >&6; }
3126fi
3127
3128
3129fi
3130if test -z "$ac_cv_prog_CC"; then
3131  ac_ct_CC=$CC
3132  # Extract the first word of "gcc", so it can be a program name with args.
3133set dummy gcc; ac_word=$2
3134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135printf %s "checking for $ac_word... " >&6; }
3136if test ${ac_cv_prog_ac_ct_CC+y}
3137then :
3138  printf %s "(cached) " >&6
3139else $as_nop
3140  if test -n "$ac_ct_CC"; then
3141  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  case $as_dir in #(((
3148    '') as_dir=./ ;;
3149    */) ;;
3150    *) as_dir=$as_dir/ ;;
3151  esac
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3154    ac_cv_prog_ac_ct_CC="gcc"
3155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158done
3159  done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if test -n "$ac_ct_CC"; then
3166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167printf "%s\n" "$ac_ct_CC" >&6; }
3168else
3169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170printf "%s\n" "no" >&6; }
3171fi
3172
3173  if test "x$ac_ct_CC" = x; then
3174    CC=""
3175  else
3176    case $cross_compiling:$ac_tool_warned in
3177yes:)
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180ac_tool_warned=yes ;;
3181esac
3182    CC=$ac_ct_CC
3183  fi
3184else
3185  CC="$ac_cv_prog_CC"
3186fi
3187
3188if test -z "$CC"; then
3189          if test -n "$ac_tool_prefix"; then
3190    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3191set dummy ${ac_tool_prefix}cc; ac_word=$2
3192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193printf %s "checking for $ac_word... " >&6; }
3194if test ${ac_cv_prog_CC+y}
3195then :
3196  printf %s "(cached) " >&6
3197else $as_nop
3198  if test -n "$CC"; then
3199  ac_cv_prog_CC="$CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  case $as_dir in #(((
3206    '') as_dir=./ ;;
3207    */) ;;
3208    *) as_dir=$as_dir/ ;;
3209  esac
3210    for ac_exec_ext in '' $ac_executable_extensions; do
3211  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3212    ac_cv_prog_CC="${ac_tool_prefix}cc"
3213    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3214    break 2
3215  fi
3216done
3217  done
3218IFS=$as_save_IFS
3219
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
3224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225printf "%s\n" "$CC" >&6; }
3226else
3227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228printf "%s\n" "no" >&6; }
3229fi
3230
3231
3232  fi
3233fi
3234if test -z "$CC"; then
3235  # Extract the first word of "cc", so it can be a program name with args.
3236set dummy cc; ac_word=$2
3237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238printf %s "checking for $ac_word... " >&6; }
3239if test ${ac_cv_prog_CC+y}
3240then :
3241  printf %s "(cached) " >&6
3242else $as_nop
3243  if test -n "$CC"; then
3244  ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246  ac_prog_rejected=no
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250  IFS=$as_save_IFS
3251  case $as_dir in #(((
3252    '') as_dir=./ ;;
3253    */) ;;
3254    *) as_dir=$as_dir/ ;;
3255  esac
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3258    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259       ac_prog_rejected=yes
3260       continue
3261     fi
3262    ac_cv_prog_CC="cc"
3263    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270if test $ac_prog_rejected = yes; then
3271  # We found a bogon in the path, so make sure we never use it.
3272  set dummy $ac_cv_prog_CC
3273  shift
3274  if test $# != 0; then
3275    # We chose a different compiler from the bogus one.
3276    # However, it has the same basename, so the bogon will be chosen
3277    # first if we set CC to just the basename; use the full file name.
3278    shift
3279    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3280  fi
3281fi
3282fi
3283fi
3284CC=$ac_cv_prog_CC
3285if test -n "$CC"; then
3286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287printf "%s\n" "$CC" >&6; }
3288else
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290printf "%s\n" "no" >&6; }
3291fi
3292
3293
3294fi
3295if test -z "$CC"; then
3296  if test -n "$ac_tool_prefix"; then
3297  for ac_prog in cl.exe
3298  do
3299    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302printf %s "checking for $ac_word... " >&6; }
3303if test ${ac_cv_prog_CC+y}
3304then :
3305  printf %s "(cached) " >&6
3306else $as_nop
3307  if test -n "$CC"; then
3308  ac_cv_prog_CC="$CC" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313  IFS=$as_save_IFS
3314  case $as_dir in #(((
3315    '') as_dir=./ ;;
3316    */) ;;
3317    *) as_dir=$as_dir/ ;;
3318  esac
3319    for ac_exec_ext in '' $ac_executable_extensions; do
3320  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326  done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334printf "%s\n" "$CC" >&6; }
3335else
3336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337printf "%s\n" "no" >&6; }
3338fi
3339
3340
3341    test -n "$CC" && break
3342  done
3343fi
3344if test -z "$CC"; then
3345  ac_ct_CC=$CC
3346  for ac_prog in cl.exe
3347do
3348  # Extract the first word of "$ac_prog", so it can be a program name with args.
3349set dummy $ac_prog; ac_word=$2
3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351printf %s "checking for $ac_word... " >&6; }
3352if test ${ac_cv_prog_ac_ct_CC+y}
3353then :
3354  printf %s "(cached) " >&6
3355else $as_nop
3356  if test -n "$ac_ct_CC"; then
3357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358else
3359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360for as_dir in $PATH
3361do
3362  IFS=$as_save_IFS
3363  case $as_dir in #(((
3364    '') as_dir=./ ;;
3365    */) ;;
3366    *) as_dir=$as_dir/ ;;
3367  esac
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370    ac_cv_prog_ac_ct_CC="$ac_prog"
3371    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374done
3375  done
3376IFS=$as_save_IFS
3377
3378fi
3379fi
3380ac_ct_CC=$ac_cv_prog_ac_ct_CC
3381if test -n "$ac_ct_CC"; then
3382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3383printf "%s\n" "$ac_ct_CC" >&6; }
3384else
3385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386printf "%s\n" "no" >&6; }
3387fi
3388
3389
3390  test -n "$ac_ct_CC" && break
3391done
3392
3393  if test "x$ac_ct_CC" = x; then
3394    CC=""
3395  else
3396    case $cross_compiling:$ac_tool_warned in
3397yes:)
3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3399printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400ac_tool_warned=yes ;;
3401esac
3402    CC=$ac_ct_CC
3403  fi
3404fi
3405
3406fi
3407if test -z "$CC"; then
3408  if test -n "$ac_tool_prefix"; then
3409  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3410set dummy ${ac_tool_prefix}clang; ac_word=$2
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412printf %s "checking for $ac_word... " >&6; }
3413if test ${ac_cv_prog_CC+y}
3414then :
3415  printf %s "(cached) " >&6
3416else $as_nop
3417  if test -n "$CC"; then
3418  ac_cv_prog_CC="$CC" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  case $as_dir in #(((
3425    '') as_dir=./ ;;
3426    */) ;;
3427    *) as_dir=$as_dir/ ;;
3428  esac
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431    ac_cv_prog_CC="${ac_tool_prefix}clang"
3432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441CC=$ac_cv_prog_CC
3442if test -n "$CC"; then
3443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444printf "%s\n" "$CC" >&6; }
3445else
3446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447printf "%s\n" "no" >&6; }
3448fi
3449
3450
3451fi
3452if test -z "$ac_cv_prog_CC"; then
3453  ac_ct_CC=$CC
3454  # Extract the first word of "clang", so it can be a program name with args.
3455set dummy clang; ac_word=$2
3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457printf %s "checking for $ac_word... " >&6; }
3458if test ${ac_cv_prog_ac_ct_CC+y}
3459then :
3460  printf %s "(cached) " >&6
3461else $as_nop
3462  if test -n "$ac_ct_CC"; then
3463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  case $as_dir in #(((
3470    '') as_dir=./ ;;
3471    */) ;;
3472    *) as_dir=$as_dir/ ;;
3473  esac
3474    for ac_exec_ext in '' $ac_executable_extensions; do
3475  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3476    ac_cv_prog_ac_ct_CC="clang"
3477    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3478    break 2
3479  fi
3480done
3481  done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487if test -n "$ac_ct_CC"; then
3488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489printf "%s\n" "$ac_ct_CC" >&6; }
3490else
3491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492printf "%s\n" "no" >&6; }
3493fi
3494
3495  if test "x$ac_ct_CC" = x; then
3496    CC=""
3497  else
3498    case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504    CC=$ac_ct_CC
3505  fi
3506else
3507  CC="$ac_cv_prog_CC"
3508fi
3509
3510fi
3511
3512
3513test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "no acceptable C compiler found in \$PATH
3516See \`config.log' for more details" "$LINENO" 5; }
3517
3518# Provide some information about the compiler.
3519printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3520set X $ac_compile
3521ac_compiler=$2
3522for ac_option in --version -v -V -qversion -version; do
3523  { { ac_try="$ac_compiler $ac_option >&5"
3524case "(($ac_try" in
3525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526  *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529printf "%s\n" "$ac_try_echo"; } >&5
3530  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3531  ac_status=$?
3532  if test -s conftest.err; then
3533    sed '10a\
3534... rest of stderr output deleted ...
3535         10q' conftest.err >conftest.er1
3536    cat conftest.er1 >&5
3537  fi
3538  rm -f conftest.er1 conftest.err
3539  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540  test $ac_status = 0; }
3541done
3542
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545
3546int
3547main (void)
3548{
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554ac_clean_files_save=$ac_clean_files
3555ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3556# Try to create an executable without -o first, disregard a.out.
3557# It will help us diagnose broken compilers, and finding out an intuition
3558# of exeext.
3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3560printf %s "checking whether the C compiler works... " >&6; }
3561ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3562
3563# The possible output files:
3564ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3565
3566ac_rmfiles=
3567for ac_file in $ac_files
3568do
3569  case $ac_file in
3570    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3571    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3572  esac
3573done
3574rm -f $ac_rmfiles
3575
3576if { { ac_try="$ac_link_default"
3577case "(($ac_try" in
3578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579  *) ac_try_echo=$ac_try;;
3580esac
3581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582printf "%s\n" "$ac_try_echo"; } >&5
3583  (eval "$ac_link_default") 2>&5
3584  ac_status=$?
3585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586  test $ac_status = 0; }
3587then :
3588  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3589# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3590# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3591# so that the user can short-circuit this test for compilers unknown to
3592# Autoconf.
3593for ac_file in $ac_files ''
3594do
3595  test -f "$ac_file" || continue
3596  case $ac_file in
3597    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3598	;;
3599    [ab].out )
3600	# We found the default executable, but exeext='' is most
3601	# certainly right.
3602	break;;
3603    *.* )
3604	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3605	then :; else
3606	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3607	fi
3608	# We set ac_cv_exeext here because the later test for it is not
3609	# safe: cross compilers may not add the suffix if given an `-o'
3610	# argument, so we may need to know it at that point already.
3611	# Even if this section looks crufty: it has the advantage of
3612	# actually working.
3613	break;;
3614    * )
3615	break;;
3616  esac
3617done
3618test "$ac_cv_exeext" = no && ac_cv_exeext=
3619
3620else $as_nop
3621  ac_file=''
3622fi
3623if test -z "$ac_file"
3624then :
3625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626printf "%s\n" "no" >&6; }
3627printf "%s\n" "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3632as_fn_error 77 "C compiler cannot create executables
3633See \`config.log' for more details" "$LINENO" 5; }
3634else $as_nop
3635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636printf "%s\n" "yes" >&6; }
3637fi
3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639printf %s "checking for C compiler default output file name... " >&6; }
3640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641printf "%s\n" "$ac_file" >&6; }
3642ac_exeext=$ac_cv_exeext
3643
3644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3645ac_clean_files=$ac_clean_files_save
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647printf %s "checking for suffix of executables... " >&6; }
3648if { { ac_try="$ac_link"
3649case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654printf "%s\n" "$ac_try_echo"; } >&5
3655  (eval "$ac_link") 2>&5
3656  ac_status=$?
3657  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658  test $ac_status = 0; }
3659then :
3660  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3661# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3662# work properly (i.e., refer to `conftest.exe'), while it won't with
3663# `rm'.
3664for ac_file in conftest.exe conftest conftest.*; do
3665  test -f "$ac_file" || continue
3666  case $ac_file in
3667    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669	  break;;
3670    * ) break;;
3671  esac
3672done
3673else $as_nop
3674  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3676as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3677See \`config.log' for more details" "$LINENO" 5; }
3678fi
3679rm -f conftest conftest$ac_cv_exeext
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3681printf "%s\n" "$ac_cv_exeext" >&6; }
3682
3683rm -f conftest.$ac_ext
3684EXEEXT=$ac_cv_exeext
3685ac_exeext=$EXEEXT
3686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688#include <stdio.h>
3689int
3690main (void)
3691{
3692FILE *f = fopen ("conftest.out", "w");
3693 return ferror (f) || fclose (f) != 0;
3694
3695  ;
3696  return 0;
3697}
3698_ACEOF
3699ac_clean_files="$ac_clean_files conftest.out"
3700# Check that the compiler produces executables we can run.  If not, either
3701# the compiler is broken, or we cross compile.
3702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3703printf %s "checking whether we are cross compiling... " >&6; }
3704if test "$cross_compiling" != yes; then
3705  { { ac_try="$ac_link"
3706case "(($ac_try" in
3707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708  *) ac_try_echo=$ac_try;;
3709esac
3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711printf "%s\n" "$ac_try_echo"; } >&5
3712  (eval "$ac_link") 2>&5
3713  ac_status=$?
3714  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715  test $ac_status = 0; }
3716  if { ac_try='./conftest$ac_cv_exeext'
3717  { { case "(($ac_try" in
3718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719  *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722printf "%s\n" "$ac_try_echo"; } >&5
3723  (eval "$ac_try") 2>&5
3724  ac_status=$?
3725  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726  test $ac_status = 0; }; }; then
3727    cross_compiling=no
3728  else
3729    if test "$cross_compiling" = maybe; then
3730	cross_compiling=yes
3731    else
3732	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3734as_fn_error 77 "cannot run C compiled programs.
3735If you meant to cross compile, use \`--host'.
3736See \`config.log' for more details" "$LINENO" 5; }
3737    fi
3738  fi
3739fi
3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741printf "%s\n" "$cross_compiling" >&6; }
3742
3743rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3744ac_clean_files=$ac_clean_files_save
3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746printf %s "checking for suffix of object files... " >&6; }
3747if test ${ac_cv_objext+y}
3748then :
3749  printf %s "(cached) " >&6
3750else $as_nop
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753
3754int
3755main (void)
3756{
3757
3758  ;
3759  return 0;
3760}
3761_ACEOF
3762rm -f conftest.o conftest.obj
3763if { { ac_try="$ac_compile"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769printf "%s\n" "$ac_try_echo"; } >&5
3770  (eval "$ac_compile") 2>&5
3771  ac_status=$?
3772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }
3774then :
3775  for ac_file in conftest.o conftest.obj conftest.*; do
3776  test -f "$ac_file" || continue;
3777  case $ac_file in
3778    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780       break;;
3781  esac
3782done
3783else $as_nop
3784  printf "%s\n" "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3789as_fn_error $? "cannot compute suffix of object files: cannot compile
3790See \`config.log' for more details" "$LINENO" 5; }
3791fi
3792rm -f conftest.$ac_cv_objext conftest.$ac_ext
3793fi
3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795printf "%s\n" "$ac_cv_objext" >&6; }
3796OBJEXT=$ac_cv_objext
3797ac_objext=$OBJEXT
3798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3799printf %s "checking whether the compiler supports GNU C... " >&6; }
3800if test ${ac_cv_c_compiler_gnu+y}
3801then :
3802  printf %s "(cached) " >&6
3803else $as_nop
3804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806
3807int
3808main (void)
3809{
3810#ifndef __GNUC__
3811       choke me
3812#endif
3813
3814  ;
3815  return 0;
3816}
3817_ACEOF
3818if ac_fn_c_try_compile "$LINENO"
3819then :
3820  ac_compiler_gnu=yes
3821else $as_nop
3822  ac_compiler_gnu=no
3823fi
3824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3825ac_cv_c_compiler_gnu=$ac_compiler_gnu
3826
3827fi
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3829printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3830ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832if test $ac_compiler_gnu = yes; then
3833  GCC=yes
3834else
3835  GCC=
3836fi
3837ac_test_CFLAGS=${CFLAGS+y}
3838ac_save_CFLAGS=$CFLAGS
3839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3840printf %s "checking whether $CC accepts -g... " >&6; }
3841if test ${ac_cv_prog_cc_g+y}
3842then :
3843  printf %s "(cached) " >&6
3844else $as_nop
3845  ac_save_c_werror_flag=$ac_c_werror_flag
3846   ac_c_werror_flag=yes
3847   ac_cv_prog_cc_g=no
3848   CFLAGS="-g"
3849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main (void)
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"
3861then :
3862  ac_cv_prog_cc_g=yes
3863else $as_nop
3864  CFLAGS=""
3865      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866/* end confdefs.h.  */
3867
3868int
3869main (void)
3870{
3871
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876if ac_fn_c_try_compile "$LINENO"
3877then :
3878
3879else $as_nop
3880  ac_c_werror_flag=$ac_save_c_werror_flag
3881	 CFLAGS="-g"
3882	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884
3885int
3886main (void)
3887{
3888
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"
3894then :
3895  ac_cv_prog_cc_g=yes
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3898fi
3899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3900fi
3901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3902   ac_c_werror_flag=$ac_save_c_werror_flag
3903fi
3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3906if test $ac_test_CFLAGS; then
3907  CFLAGS=$ac_save_CFLAGS
3908elif test $ac_cv_prog_cc_g = yes; then
3909  if test "$GCC" = yes; then
3910    CFLAGS="-g -O2"
3911  else
3912    CFLAGS="-g"
3913  fi
3914else
3915  if test "$GCC" = yes; then
3916    CFLAGS="-O2"
3917  else
3918    CFLAGS=
3919  fi
3920fi
3921ac_prog_cc_stdc=no
3922if test x$ac_prog_cc_stdc = xno
3923then :
3924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3925printf %s "checking for $CC option to enable C11 features... " >&6; }
3926if test ${ac_cv_prog_cc_c11+y}
3927then :
3928  printf %s "(cached) " >&6
3929else $as_nop
3930  ac_cv_prog_cc_c11=no
3931ac_save_CC=$CC
3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934$ac_c_conftest_c11_program
3935_ACEOF
3936for ac_arg in '' -std=gnu11
3937do
3938  CC="$ac_save_CC $ac_arg"
3939  if ac_fn_c_try_compile "$LINENO"
3940then :
3941  ac_cv_prog_cc_c11=$ac_arg
3942fi
3943rm -f core conftest.err conftest.$ac_objext conftest.beam
3944  test "x$ac_cv_prog_cc_c11" != "xno" && break
3945done
3946rm -f conftest.$ac_ext
3947CC=$ac_save_CC
3948fi
3949
3950if test "x$ac_cv_prog_cc_c11" = xno
3951then :
3952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3953printf "%s\n" "unsupported" >&6; }
3954else $as_nop
3955  if test "x$ac_cv_prog_cc_c11" = x
3956then :
3957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3958printf "%s\n" "none needed" >&6; }
3959else $as_nop
3960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3961printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3962     CC="$CC $ac_cv_prog_cc_c11"
3963fi
3964  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3965  ac_prog_cc_stdc=c11
3966fi
3967fi
3968if test x$ac_prog_cc_stdc = xno
3969then :
3970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3971printf %s "checking for $CC option to enable C99 features... " >&6; }
3972if test ${ac_cv_prog_cc_c99+y}
3973then :
3974  printf %s "(cached) " >&6
3975else $as_nop
3976  ac_cv_prog_cc_c99=no
3977ac_save_CC=$CC
3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980$ac_c_conftest_c99_program
3981_ACEOF
3982for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3983do
3984  CC="$ac_save_CC $ac_arg"
3985  if ac_fn_c_try_compile "$LINENO"
3986then :
3987  ac_cv_prog_cc_c99=$ac_arg
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.beam
3990  test "x$ac_cv_prog_cc_c99" != "xno" && break
3991done
3992rm -f conftest.$ac_ext
3993CC=$ac_save_CC
3994fi
3995
3996if test "x$ac_cv_prog_cc_c99" = xno
3997then :
3998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3999printf "%s\n" "unsupported" >&6; }
4000else $as_nop
4001  if test "x$ac_cv_prog_cc_c99" = x
4002then :
4003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004printf "%s\n" "none needed" >&6; }
4005else $as_nop
4006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4007printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4008     CC="$CC $ac_cv_prog_cc_c99"
4009fi
4010  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4011  ac_prog_cc_stdc=c99
4012fi
4013fi
4014if test x$ac_prog_cc_stdc = xno
4015then :
4016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4017printf %s "checking for $CC option to enable C89 features... " >&6; }
4018if test ${ac_cv_prog_cc_c89+y}
4019then :
4020  printf %s "(cached) " >&6
4021else $as_nop
4022  ac_cv_prog_cc_c89=no
4023ac_save_CC=$CC
4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026$ac_c_conftest_c89_program
4027_ACEOF
4028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029do
4030  CC="$ac_save_CC $ac_arg"
4031  if ac_fn_c_try_compile "$LINENO"
4032then :
4033  ac_cv_prog_cc_c89=$ac_arg
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.beam
4036  test "x$ac_cv_prog_cc_c89" != "xno" && break
4037done
4038rm -f conftest.$ac_ext
4039CC=$ac_save_CC
4040fi
4041
4042if test "x$ac_cv_prog_cc_c89" = xno
4043then :
4044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045printf "%s\n" "unsupported" >&6; }
4046else $as_nop
4047  if test "x$ac_cv_prog_cc_c89" = x
4048then :
4049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050printf "%s\n" "none needed" >&6; }
4051else $as_nop
4052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4053printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4054     CC="$CC $ac_cv_prog_cc_c89"
4055fi
4056  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4057  ac_prog_cc_stdc=c89
4058fi
4059fi
4060
4061ac_ext=c
4062ac_cpp='$CPP $CPPFLAGS'
4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067
4068  ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4074printf %s "checking whether $CC understands -c and -o together... " >&6; }
4075if test ${am_cv_prog_cc_c_o+y}
4076then :
4077  printf %s "(cached) " >&6
4078else $as_nop
4079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081
4082int
4083main (void)
4084{
4085
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090  # Make sure it works both with $CC and with simple cc.
4091  # Following AC_PROG_CC_C_O, we do the test twice because some
4092  # compilers refuse to overwrite an existing .o file with -o,
4093  # though they will create one.
4094  am_cv_prog_cc_c_o=yes
4095  for am_i in 1 2; do
4096    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4097   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } \
4101         && test -f conftest2.$ac_objext; then
4102      : OK
4103    else
4104      am_cv_prog_cc_c_o=no
4105      break
4106    fi
4107  done
4108  rm -f core conftest*
4109  unset am_i
4110fi
4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4112printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4113if test "$am_cv_prog_cc_c_o" != yes; then
4114   # Losing compiler, so override with the script.
4115   # FIXME: It is wrong to rewrite CC.
4116   # But if we don't then we get into trouble of one sort or another.
4117   # A longer-term fix would be to have automake use am__CC in this case,
4118   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4119   CC="$am_aux_dir/compile $CC"
4120fi
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127
4128
4129ac_header= ac_cache=
4130for ac_item in $ac_header_c_list
4131do
4132  if test $ac_cache; then
4133    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4134    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4135      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4136    fi
4137    ac_header= ac_cache=
4138  elif test $ac_header; then
4139    ac_cache=$ac_item
4140  else
4141    ac_header=$ac_item
4142  fi
4143done
4144
4145
4146
4147
4148
4149
4150
4151
4152if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4153then :
4154
4155printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4156
4157fi
4158
4159
4160
4161
4162
4163
4164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4165printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4166if test ${ac_cv_safe_to_define___extensions__+y}
4167then :
4168  printf %s "(cached) " >&6
4169else $as_nop
4170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h.  */
4172
4173#         define __EXTENSIONS__ 1
4174          $ac_includes_default
4175int
4176main (void)
4177{
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"
4184then :
4185  ac_cv_safe_to_define___extensions__=yes
4186else $as_nop
4187  ac_cv_safe_to_define___extensions__=no
4188fi
4189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4190fi
4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4192printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4193
4194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4195printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4196if test ${ac_cv_should_define__xopen_source+y}
4197then :
4198  printf %s "(cached) " >&6
4199else $as_nop
4200  ac_cv_should_define__xopen_source=no
4201    if test $ac_cv_header_wchar_h = yes
4202then :
4203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205
4206          #include <wchar.h>
4207          mbstate_t x;
4208int
4209main (void)
4210{
4211
4212  ;
4213  return 0;
4214}
4215_ACEOF
4216if ac_fn_c_try_compile "$LINENO"
4217then :
4218
4219else $as_nop
4220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222
4223            #define _XOPEN_SOURCE 500
4224            #include <wchar.h>
4225            mbstate_t x;
4226int
4227main (void)
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_compile "$LINENO"
4235then :
4236  ac_cv_should_define__xopen_source=yes
4237fi
4238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4241fi
4242fi
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4244printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4245
4246  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4247
4248  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4249
4250  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4251
4252  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4253
4254  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4255
4256  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4257
4258  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4259
4260  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4261
4262  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4263
4264  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4265
4266  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4267
4268  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4269
4270  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4271
4272  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4273
4274  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4275
4276  if test $ac_cv_header_minix_config_h = yes
4277then :
4278  MINIX=yes
4279    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4280
4281    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4282
4283    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4284
4285else $as_nop
4286  MINIX=
4287fi
4288  if test $ac_cv_safe_to_define___extensions__ = yes
4289then :
4290  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4291
4292fi
4293  if test $ac_cv_should_define__xopen_source = yes
4294then :
4295  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4296
4297fi
4298
4299
4300
4301ac_config_headers="$ac_config_headers config.h"
4302
4303
4304# Initialize Automake
4305am__api_version='1.16'
4306
4307
4308  # Find a good install program.  We prefer a C program (faster),
4309# so one script is as good as another.  But avoid the broken or
4310# incompatible versions:
4311# SysV /etc/install, /usr/sbin/install
4312# SunOS /usr/etc/install
4313# IRIX /sbin/install
4314# AIX /bin/install
4315# AmigaOS /C/install, which installs bootblocks on floppy discs
4316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4319# OS/2's system install, which has a completely different semantic
4320# ./install, which can be erroneously created by make from ./install.sh.
4321# Reject install programs that cannot install multiple files.
4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4323printf %s "checking for a BSD-compatible install... " >&6; }
4324if test -z "$INSTALL"; then
4325if test ${ac_cv_path_install+y}
4326then :
4327  printf %s "(cached) " >&6
4328else $as_nop
4329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332  IFS=$as_save_IFS
4333  case $as_dir in #(((
4334    '') as_dir=./ ;;
4335    */) ;;
4336    *) as_dir=$as_dir/ ;;
4337  esac
4338    # Account for fact that we put trailing slashes in our PATH walk.
4339case $as_dir in #((
4340  ./ | /[cC]/* | \
4341  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4342  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4343  /usr/ucb/* ) ;;
4344  *)
4345    # OSF1 and SCO ODT 3.0 have their own names for install.
4346    # Don't use installbsd from OSF since it installs stuff as root
4347    # by default.
4348    for ac_prog in ginstall scoinst install; do
4349      for ac_exec_ext in '' $ac_executable_extensions; do
4350	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4351	  if test $ac_prog = install &&
4352	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4353	    # AIX install.  It has an incompatible calling convention.
4354	    :
4355	  elif test $ac_prog = install &&
4356	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4357	    # program-specific install script used by HP pwplus--don't use.
4358	    :
4359	  else
4360	    rm -rf conftest.one conftest.two conftest.dir
4361	    echo one > conftest.one
4362	    echo two > conftest.two
4363	    mkdir conftest.dir
4364	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4365	      test -s conftest.one && test -s conftest.two &&
4366	      test -s conftest.dir/conftest.one &&
4367	      test -s conftest.dir/conftest.two
4368	    then
4369	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4370	      break 3
4371	    fi
4372	  fi
4373	fi
4374      done
4375    done
4376    ;;
4377esac
4378
4379  done
4380IFS=$as_save_IFS
4381
4382rm -rf conftest.one conftest.two conftest.dir
4383
4384fi
4385  if test ${ac_cv_path_install+y}; then
4386    INSTALL=$ac_cv_path_install
4387  else
4388    # As a last resort, use the slow shell script.  Don't cache a
4389    # value for INSTALL within a source directory, because that will
4390    # break other packages using the cache if that directory is
4391    # removed, or if the value is a relative name.
4392    INSTALL=$ac_install_sh
4393  fi
4394fi
4395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4396printf "%s\n" "$INSTALL" >&6; }
4397
4398# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4399# It thinks the first close brace ends the variable substitution.
4400test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4401
4402test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4403
4404test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4405
4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4407printf %s "checking whether build environment is sane... " >&6; }
4408# Reject unsafe characters in $srcdir or the absolute working directory
4409# name.  Accept space and tab only in the latter.
4410am_lf='
4411'
4412case `pwd` in
4413  *[\\\"\#\$\&\'\`$am_lf]*)
4414    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4415esac
4416case $srcdir in
4417  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4418    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4419esac
4420
4421# Do 'set' in a subshell so we don't clobber the current shell's
4422# arguments.  Must try -L first in case configure is actually a
4423# symlink; some systems play weird games with the mod time of symlinks
4424# (eg FreeBSD returns the mod time of the symlink's containing
4425# directory).
4426if (
4427   am_has_slept=no
4428   for am_try in 1 2; do
4429     echo "timestamp, slept: $am_has_slept" > conftest.file
4430     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4431     if test "$*" = "X"; then
4432	# -L didn't work.
4433	set X `ls -t "$srcdir/configure" conftest.file`
4434     fi
4435     if test "$*" != "X $srcdir/configure conftest.file" \
4436	&& test "$*" != "X conftest.file $srcdir/configure"; then
4437
4438	# If neither matched, then we have a broken ls.  This can happen
4439	# if, for instance, CONFIG_SHELL is bash and it inherits a
4440	# broken ls alias from the environment.  This has actually
4441	# happened.  Such a system could not be considered "sane".
4442	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4443  alias in your environment" "$LINENO" 5
4444     fi
4445     if test "$2" = conftest.file || test $am_try -eq 2; then
4446       break
4447     fi
4448     # Just in case.
4449     sleep 1
4450     am_has_slept=yes
4451   done
4452   test "$2" = conftest.file
4453   )
4454then
4455   # Ok.
4456   :
4457else
4458   as_fn_error $? "newly created file is older than distributed files!
4459Check your system clock" "$LINENO" 5
4460fi
4461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462printf "%s\n" "yes" >&6; }
4463# If we didn't sleep, we still need to ensure time stamps of config.status and
4464# generated files are strictly newer.
4465am_sleep_pid=
4466if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4467  ( sleep 1 ) &
4468  am_sleep_pid=$!
4469fi
4470
4471rm -f conftest.file
4472
4473test "$program_prefix" != NONE &&
4474  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4475# Use a double $ so make ignores it.
4476test "$program_suffix" != NONE &&
4477  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4478# Double any \ or $.
4479# By default was `s,x,x', remove it if useless.
4480ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4481program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4482
4483
4484  if test x"${MISSING+set}" != xset; then
4485  MISSING="\${SHELL} '$am_aux_dir/missing'"
4486fi
4487# Use eval to expand $SHELL
4488if eval "$MISSING --is-lightweight"; then
4489  am_missing_run="$MISSING "
4490else
4491  am_missing_run=
4492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4493printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4494fi
4495
4496if test x"${install_sh+set}" != xset; then
4497  case $am_aux_dir in
4498  *\ * | *\	*)
4499    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4500  *)
4501    install_sh="\${SHELL} $am_aux_dir/install-sh"
4502  esac
4503fi
4504
4505# Installed binaries are usually stripped using 'strip' when the user
4506# run "make install-strip".  However 'strip' might not be the right
4507# tool to use in cross-compilation environments, therefore Automake
4508# will honor the 'STRIP' environment variable to overrule this program.
4509if test "$cross_compiling" != no; then
4510  if test -n "$ac_tool_prefix"; then
4511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4512set dummy ${ac_tool_prefix}strip; ac_word=$2
4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514printf %s "checking for $ac_word... " >&6; }
4515if test ${ac_cv_prog_STRIP+y}
4516then :
4517  printf %s "(cached) " >&6
4518else $as_nop
4519  if test -n "$STRIP"; then
4520  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  case $as_dir in #(((
4527    '') as_dir=./ ;;
4528    */) ;;
4529    *) as_dir=$as_dir/ ;;
4530  esac
4531    for ac_exec_ext in '' $ac_executable_extensions; do
4532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4533    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4535    break 2
4536  fi
4537done
4538  done
4539IFS=$as_save_IFS
4540
4541fi
4542fi
4543STRIP=$ac_cv_prog_STRIP
4544if test -n "$STRIP"; then
4545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4546printf "%s\n" "$STRIP" >&6; }
4547else
4548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549printf "%s\n" "no" >&6; }
4550fi
4551
4552
4553fi
4554if test -z "$ac_cv_prog_STRIP"; then
4555  ac_ct_STRIP=$STRIP
4556  # Extract the first word of "strip", so it can be a program name with args.
4557set dummy strip; ac_word=$2
4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559printf %s "checking for $ac_word... " >&6; }
4560if test ${ac_cv_prog_ac_ct_STRIP+y}
4561then :
4562  printf %s "(cached) " >&6
4563else $as_nop
4564  if test -n "$ac_ct_STRIP"; then
4565  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570  IFS=$as_save_IFS
4571  case $as_dir in #(((
4572    '') as_dir=./ ;;
4573    */) ;;
4574    *) as_dir=$as_dir/ ;;
4575  esac
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4578    ac_cv_prog_ac_ct_STRIP="strip"
4579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583  done
4584IFS=$as_save_IFS
4585
4586fi
4587fi
4588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4589if test -n "$ac_ct_STRIP"; then
4590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4591printf "%s\n" "$ac_ct_STRIP" >&6; }
4592else
4593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594printf "%s\n" "no" >&6; }
4595fi
4596
4597  if test "x$ac_ct_STRIP" = x; then
4598    STRIP=":"
4599  else
4600    case $cross_compiling:$ac_tool_warned in
4601yes:)
4602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604ac_tool_warned=yes ;;
4605esac
4606    STRIP=$ac_ct_STRIP
4607  fi
4608else
4609  STRIP="$ac_cv_prog_STRIP"
4610fi
4611
4612fi
4613INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4614
4615
4616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4617printf %s "checking for a race-free mkdir -p... " >&6; }
4618if test -z "$MKDIR_P"; then
4619  if test ${ac_cv_path_mkdir+y}
4620then :
4621  printf %s "(cached) " >&6
4622else $as_nop
4623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4625do
4626  IFS=$as_save_IFS
4627  case $as_dir in #(((
4628    '') as_dir=./ ;;
4629    */) ;;
4630    *) as_dir=$as_dir/ ;;
4631  esac
4632    for ac_prog in mkdir gmkdir; do
4633	 for ac_exec_ext in '' $ac_executable_extensions; do
4634	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4635	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4636	     'mkdir ('*'coreutils) '* | \
4637	     'BusyBox '* | \
4638	     'mkdir (fileutils) '4.1*)
4639	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4640	       break 3;;
4641	   esac
4642	 done
4643       done
4644  done
4645IFS=$as_save_IFS
4646
4647fi
4648
4649  test -d ./--version && rmdir ./--version
4650  if test ${ac_cv_path_mkdir+y}; then
4651    MKDIR_P="$ac_cv_path_mkdir -p"
4652  else
4653    # As a last resort, use the slow shell script.  Don't cache a
4654    # value for MKDIR_P within a source directory, because that will
4655    # break other packages using the cache if that directory is
4656    # removed, or if the value is a relative name.
4657    MKDIR_P="$ac_install_sh -d"
4658  fi
4659fi
4660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4661printf "%s\n" "$MKDIR_P" >&6; }
4662
4663for ac_prog in gawk mawk nawk awk
4664do
4665  # Extract the first word of "$ac_prog", so it can be a program name with args.
4666set dummy $ac_prog; ac_word=$2
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668printf %s "checking for $ac_word... " >&6; }
4669if test ${ac_cv_prog_AWK+y}
4670then :
4671  printf %s "(cached) " >&6
4672else $as_nop
4673  if test -n "$AWK"; then
4674  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4675else
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679  IFS=$as_save_IFS
4680  case $as_dir in #(((
4681    '') as_dir=./ ;;
4682    */) ;;
4683    *) as_dir=$as_dir/ ;;
4684  esac
4685    for ac_exec_ext in '' $ac_executable_extensions; do
4686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4687    ac_cv_prog_AWK="$ac_prog"
4688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4689    break 2
4690  fi
4691done
4692  done
4693IFS=$as_save_IFS
4694
4695fi
4696fi
4697AWK=$ac_cv_prog_AWK
4698if test -n "$AWK"; then
4699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4700printf "%s\n" "$AWK" >&6; }
4701else
4702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703printf "%s\n" "no" >&6; }
4704fi
4705
4706
4707  test -n "$AWK" && break
4708done
4709
4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4711printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4712set x ${MAKE-make}
4713ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4714if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4715then :
4716  printf %s "(cached) " >&6
4717else $as_nop
4718  cat >conftest.make <<\_ACEOF
4719SHELL = /bin/sh
4720all:
4721	@echo '@@@%%%=$(MAKE)=@@@%%%'
4722_ACEOF
4723# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4724case `${MAKE-make} -f conftest.make 2>/dev/null` in
4725  *@@@%%%=?*=@@@%%%*)
4726    eval ac_cv_prog_make_${ac_make}_set=yes;;
4727  *)
4728    eval ac_cv_prog_make_${ac_make}_set=no;;
4729esac
4730rm -f conftest.make
4731fi
4732if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734printf "%s\n" "yes" >&6; }
4735  SET_MAKE=
4736else
4737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738printf "%s\n" "no" >&6; }
4739  SET_MAKE="MAKE=${MAKE-make}"
4740fi
4741
4742rm -rf .tst 2>/dev/null
4743mkdir .tst 2>/dev/null
4744if test -d .tst; then
4745  am__leading_dot=.
4746else
4747  am__leading_dot=_
4748fi
4749rmdir .tst 2>/dev/null
4750
4751DEPDIR="${am__leading_dot}deps"
4752
4753ac_config_commands="$ac_config_commands depfiles"
4754
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4756printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4757cat > confinc.mk << 'END'
4758am__doit:
4759	@echo this is the am__doit target >confinc.out
4760.PHONY: am__doit
4761END
4762am__include="#"
4763am__quote=
4764# BSD make does it like this.
4765echo '.include "confinc.mk" # ignored' > confmf.BSD
4766# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4767echo 'include confinc.mk # ignored' > confmf.GNU
4768_am_result=no
4769for s in GNU BSD; do
4770  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4771   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }
4775  case $?:`cat confinc.out 2>/dev/null` in #(
4776  '0:this is the am__doit target') :
4777    case $s in #(
4778  BSD) :
4779    am__include='.include' am__quote='"' ;; #(
4780  *) :
4781    am__include='include' am__quote='' ;;
4782esac ;; #(
4783  *) :
4784     ;;
4785esac
4786  if test "$am__include" != "#"; then
4787    _am_result="yes ($s style)"
4788    break
4789  fi
4790done
4791rm -f confinc.* confmf.*
4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4793printf "%s\n" "${_am_result}" >&6; }
4794
4795# Check whether --enable-dependency-tracking was given.
4796if test ${enable_dependency_tracking+y}
4797then :
4798  enableval=$enable_dependency_tracking;
4799fi
4800
4801if test "x$enable_dependency_tracking" != xno; then
4802  am_depcomp="$ac_aux_dir/depcomp"
4803  AMDEPBACKSLASH='\'
4804  am__nodep='_no'
4805fi
4806 if test "x$enable_dependency_tracking" != xno; then
4807  AMDEP_TRUE=
4808  AMDEP_FALSE='#'
4809else
4810  AMDEP_TRUE='#'
4811  AMDEP_FALSE=
4812fi
4813
4814
4815# Check whether --enable-silent-rules was given.
4816if test ${enable_silent_rules+y}
4817then :
4818  enableval=$enable_silent_rules;
4819fi
4820
4821case $enable_silent_rules in # (((
4822  yes) AM_DEFAULT_VERBOSITY=0;;
4823   no) AM_DEFAULT_VERBOSITY=1;;
4824    *) AM_DEFAULT_VERBOSITY=1;;
4825esac
4826am_make=${MAKE-make}
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4828printf %s "checking whether $am_make supports nested variables... " >&6; }
4829if test ${am_cv_make_support_nested_variables+y}
4830then :
4831  printf %s "(cached) " >&6
4832else $as_nop
4833  if printf "%s\n" 'TRUE=$(BAR$(V))
4834BAR0=false
4835BAR1=true
4836V=1
4837am__doit:
4838	@$(TRUE)
4839.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4840  am_cv_make_support_nested_variables=yes
4841else
4842  am_cv_make_support_nested_variables=no
4843fi
4844fi
4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4846printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4847if test $am_cv_make_support_nested_variables = yes; then
4848    AM_V='$(V)'
4849  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4850else
4851  AM_V=$AM_DEFAULT_VERBOSITY
4852  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4853fi
4854AM_BACKSLASH='\'
4855
4856if test "`cd $srcdir && pwd`" != "`pwd`"; then
4857  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4858  # is not polluted with repeated "-I."
4859  am__isrc=' -I$(srcdir)'
4860  # test to see if srcdir already configured
4861  if test -f $srcdir/config.status; then
4862    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4863  fi
4864fi
4865
4866# test whether we have cygpath
4867if test -z "$CYGPATH_W"; then
4868  if (cygpath --version) >/dev/null 2>/dev/null; then
4869    CYGPATH_W='cygpath -w'
4870  else
4871    CYGPATH_W=echo
4872  fi
4873fi
4874
4875
4876# Define the identity of the package.
4877 PACKAGE='xdm'
4878 VERSION='1.1.14'
4879
4880
4881printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4882
4883
4884printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4885
4886# Some tools Automake needs.
4887
4888ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4889
4890
4891AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4892
4893
4894AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4895
4896
4897AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4898
4899
4900MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4901
4902# For better backward compatibility.  To be removed once Automake 1.9.x
4903# dies out for good.  For more background, see:
4904# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4905# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4906mkdir_p='$(MKDIR_P)'
4907
4908# We need awk for the "check" target (and possibly the TAP driver).  The
4909# system "awk" is bad on some platforms.
4910# Always define AMTAR for backward compatibility.  Yes, it's still used
4911# in the wild :-(  We should find a proper way to deprecate it ...
4912AMTAR='$${TAR-tar}'
4913
4914
4915# We'll loop over all known methods to create a tar archive until one works.
4916_am_tools='gnutar  pax cpio none'
4917
4918am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4919
4920
4921
4922
4923
4924depcc="$CC"   am_compiler_list=
4925
4926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4927printf %s "checking dependency style of $depcc... " >&6; }
4928if test ${am_cv_CC_dependencies_compiler_type+y}
4929then :
4930  printf %s "(cached) " >&6
4931else $as_nop
4932  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4933  # We make a subdir and do the tests there.  Otherwise we can end up
4934  # making bogus files that we don't know about and never remove.  For
4935  # instance it was reported that on HP-UX the gcc test will end up
4936  # making a dummy file named 'D' -- because '-MD' means "put the output
4937  # in D".
4938  rm -rf conftest.dir
4939  mkdir conftest.dir
4940  # Copy depcomp to subdir because otherwise we won't find it if we're
4941  # using a relative directory.
4942  cp "$am_depcomp" conftest.dir
4943  cd conftest.dir
4944  # We will build objects and dependencies in a subdirectory because
4945  # it helps to detect inapplicable dependency modes.  For instance
4946  # both Tru64's cc and ICC support -MD to output dependencies as a
4947  # side effect of compilation, but ICC will put the dependencies in
4948  # the current directory while Tru64 will put them in the object
4949  # directory.
4950  mkdir sub
4951
4952  am_cv_CC_dependencies_compiler_type=none
4953  if test "$am_compiler_list" = ""; then
4954     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4955  fi
4956  am__universal=false
4957  case " $depcc " in #(
4958     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4959     esac
4960
4961  for depmode in $am_compiler_list; do
4962    # Setup a source with many dependencies, because some compilers
4963    # like to wrap large dependency lists on column 80 (with \), and
4964    # we should not choose a depcomp mode which is confused by this.
4965    #
4966    # We need to recreate these files for each test, as the compiler may
4967    # overwrite some of them when testing with obscure command lines.
4968    # This happens at least with the AIX C compiler.
4969    : > sub/conftest.c
4970    for i in 1 2 3 4 5 6; do
4971      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4972      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4973      # Solaris 10 /bin/sh.
4974      echo '/* dummy */' > sub/conftst$i.h
4975    done
4976    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4977
4978    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4979    # mode.  It turns out that the SunPro C++ compiler does not properly
4980    # handle '-M -o', and we need to detect this.  Also, some Intel
4981    # versions had trouble with output in subdirs.
4982    am__obj=sub/conftest.${OBJEXT-o}
4983    am__minus_obj="-o $am__obj"
4984    case $depmode in
4985    gcc)
4986      # This depmode causes a compiler race in universal mode.
4987      test "$am__universal" = false || continue
4988      ;;
4989    nosideeffect)
4990      # After this tag, mechanisms are not by side-effect, so they'll
4991      # only be used when explicitly requested.
4992      if test "x$enable_dependency_tracking" = xyes; then
4993	continue
4994      else
4995	break
4996      fi
4997      ;;
4998    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4999      # This compiler won't grok '-c -o', but also, the minuso test has
5000      # not run yet.  These depmodes are late enough in the game, and
5001      # so weak that their functioning should not be impacted.
5002      am__obj=conftest.${OBJEXT-o}
5003      am__minus_obj=
5004      ;;
5005    none) break ;;
5006    esac
5007    if depmode=$depmode \
5008       source=sub/conftest.c object=$am__obj \
5009       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5010       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5011         >/dev/null 2>conftest.err &&
5012       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5013       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5014       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5015       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5016      # icc doesn't choke on unknown options, it will just issue warnings
5017      # or remarks (even with -Werror).  So we grep stderr for any message
5018      # that says an option was ignored or not supported.
5019      # When given -MP, icc 7.0 and 7.1 complain thusly:
5020      #   icc: Command line warning: ignoring option '-M'; no argument required
5021      # The diagnosis changed in icc 8.0:
5022      #   icc: Command line remark: option '-MP' not supported
5023      if (grep 'ignoring option' conftest.err ||
5024          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5025        am_cv_CC_dependencies_compiler_type=$depmode
5026        break
5027      fi
5028    fi
5029  done
5030
5031  cd ..
5032  rm -rf conftest.dir
5033else
5034  am_cv_CC_dependencies_compiler_type=none
5035fi
5036
5037fi
5038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5039printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5041
5042 if
5043  test "x$enable_dependency_tracking" != xno \
5044  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5045  am__fastdepCC_TRUE=
5046  am__fastdepCC_FALSE='#'
5047else
5048  am__fastdepCC_TRUE='#'
5049  am__fastdepCC_FALSE=
5050fi
5051
5052
5053# Variables for tags utilities; see am/tags.am
5054if test -z "$CTAGS"; then
5055  CTAGS=ctags
5056fi
5057
5058if test -z "$ETAGS"; then
5059  ETAGS=etags
5060fi
5061
5062if test -z "$CSCOPE"; then
5063  CSCOPE=cscope
5064fi
5065
5066
5067
5068# POSIX will say in a future version that running "rm -f" with no argument
5069# is OK; and we want to be able to make that assumption in our Makefile
5070# recipes.  So use an aggressive probe to check that the usage we want is
5071# actually supported "in the wild" to an acceptable degree.
5072# See automake bug#10828.
5073# To make any issue more visible, cause the running configure to be aborted
5074# by default if the 'rm' program in use doesn't match our expectations; the
5075# user can still override this though.
5076if rm -f && rm -fr && rm -rf; then : OK; else
5077  cat >&2 <<'END'
5078Oops!
5079
5080Your 'rm' program seems unable to run without file operands specified
5081on the command line, even when the '-f' option is present.  This is contrary
5082to the behaviour of most rm programs out there, and not conforming with
5083the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5084
5085Please tell bug-automake@gnu.org about your system, including the value
5086of your $PATH and any error possibly output before this message.  This
5087can help us improve future automake versions.
5088
5089END
5090  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5091    echo 'Configuration will proceed anyway, since you have set the' >&2
5092    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5093    echo >&2
5094  else
5095    cat >&2 <<'END'
5096Aborting the configuration process, to ensure you take notice of the issue.
5097
5098You can download and install GNU coreutils to get an 'rm' implementation
5099that behaves properly: <https://www.gnu.org/software/coreutils/>.
5100
5101If you want to complete the configuration process using your problematic
5102'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5103to "yes", and re-run configure.
5104
5105END
5106    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5107  fi
5108fi
5109
5110
5111# Initialize libtool
5112# Check whether --enable-static was given.
5113if test ${enable_static+y}
5114then :
5115  enableval=$enable_static; p=${PACKAGE-default}
5116    case $enableval in
5117    yes) enable_static=yes ;;
5118    no) enable_static=no ;;
5119    *)
5120     enable_static=no
5121      # Look at the argument we got.  We use all the common list separators.
5122      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5123      for pkg in $enableval; do
5124	IFS=$lt_save_ifs
5125	if test "X$pkg" = "X$p"; then
5126	  enable_static=yes
5127	fi
5128      done
5129      IFS=$lt_save_ifs
5130      ;;
5131    esac
5132else $as_nop
5133  enable_static=no
5134fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144enable_dlopen=yes
5145
5146
5147
5148case `pwd` in
5149  *\ * | *\	*)
5150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5151printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5152esac
5153
5154
5155
5156macro_version='2.4.7'
5157macro_revision='2.4.7'
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172ltmain=$ac_aux_dir/ltmain.sh
5173
5174
5175
5176  # Make sure we can run config.sub.
5177$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5178  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5179
5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5181printf %s "checking build system type... " >&6; }
5182if test ${ac_cv_build+y}
5183then :
5184  printf %s "(cached) " >&6
5185else $as_nop
5186  ac_build_alias=$build_alias
5187test "x$ac_build_alias" = x &&
5188  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5189test "x$ac_build_alias" = x &&
5190  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5191ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5192  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5193
5194fi
5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5196printf "%s\n" "$ac_cv_build" >&6; }
5197case $ac_cv_build in
5198*-*-*) ;;
5199*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5200esac
5201build=$ac_cv_build
5202ac_save_IFS=$IFS; IFS='-'
5203set x $ac_cv_build
5204shift
5205build_cpu=$1
5206build_vendor=$2
5207shift; shift
5208# Remember, the first character of IFS is used to create $*,
5209# except with old shells:
5210build_os=$*
5211IFS=$ac_save_IFS
5212case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5213
5214
5215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5216printf %s "checking host system type... " >&6; }
5217if test ${ac_cv_host+y}
5218then :
5219  printf %s "(cached) " >&6
5220else $as_nop
5221  if test "x$host_alias" = x; then
5222  ac_cv_host=$ac_cv_build
5223else
5224  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5225    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5226fi
5227
5228fi
5229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5230printf "%s\n" "$ac_cv_host" >&6; }
5231case $ac_cv_host in
5232*-*-*) ;;
5233*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5234esac
5235host=$ac_cv_host
5236ac_save_IFS=$IFS; IFS='-'
5237set x $ac_cv_host
5238shift
5239host_cpu=$1
5240host_vendor=$2
5241shift; shift
5242# Remember, the first character of IFS is used to create $*,
5243# except with old shells:
5244host_os=$*
5245IFS=$ac_save_IFS
5246case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5247
5248
5249# Backslashify metacharacters that are still active within
5250# double-quoted strings.
5251sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5252
5253# Same as above, but do not quote variable references.
5254double_quote_subst='s/\(["`\\]\)/\\\1/g'
5255
5256# Sed substitution to delay expansion of an escaped shell variable in a
5257# double_quote_subst'ed string.
5258delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5259
5260# Sed substitution to delay expansion of an escaped single quote.
5261delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5262
5263# Sed substitution to avoid accidental globbing in evaled expressions
5264no_glob_subst='s/\*/\\\*/g'
5265
5266ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5267ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5268ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5269
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5271printf %s "checking how to print strings... " >&6; }
5272# Test print first, because it will be a builtin if present.
5273if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5274   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5275  ECHO='print -r --'
5276elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5277  ECHO='printf %s\n'
5278else
5279  # Use this function as a fallback that always works.
5280  func_fallback_echo ()
5281  {
5282    eval 'cat <<_LTECHO_EOF
5283$1
5284_LTECHO_EOF'
5285  }
5286  ECHO='func_fallback_echo'
5287fi
5288
5289# func_echo_all arg...
5290# Invoke $ECHO with all args, space-separated.
5291func_echo_all ()
5292{
5293    $ECHO ""
5294}
5295
5296case $ECHO in
5297  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5298printf "%s\n" "printf" >&6; } ;;
5299  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5300printf "%s\n" "print -r" >&6; } ;;
5301  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5302printf "%s\n" "cat" >&6; } ;;
5303esac
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5319printf %s "checking for a sed that does not truncate output... " >&6; }
5320if test ${ac_cv_path_SED+y}
5321then :
5322  printf %s "(cached) " >&6
5323else $as_nop
5324            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5325     for ac_i in 1 2 3 4 5 6 7; do
5326       ac_script="$ac_script$as_nl$ac_script"
5327     done
5328     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5329     { ac_script=; unset ac_script;}
5330     if test -z "$SED"; then
5331  ac_path_SED_found=false
5332  # Loop through the user's path and test for each of PROGNAME-LIST
5333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  case $as_dir in #(((
5338    '') as_dir=./ ;;
5339    */) ;;
5340    *) as_dir=$as_dir/ ;;
5341  esac
5342    for ac_prog in sed gsed
5343   do
5344    for ac_exec_ext in '' $ac_executable_extensions; do
5345      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5346      as_fn_executable_p "$ac_path_SED" || continue
5347# Check for GNU ac_path_SED and select it if it is found.
5348  # Check for GNU $ac_path_SED
5349case `"$ac_path_SED" --version 2>&1` in
5350*GNU*)
5351  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5352*)
5353  ac_count=0
5354  printf %s 0123456789 >"conftest.in"
5355  while :
5356  do
5357    cat "conftest.in" "conftest.in" >"conftest.tmp"
5358    mv "conftest.tmp" "conftest.in"
5359    cp "conftest.in" "conftest.nl"
5360    printf "%s\n" '' >> "conftest.nl"
5361    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5362    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5363    as_fn_arith $ac_count + 1 && ac_count=$as_val
5364    if test $ac_count -gt ${ac_path_SED_max-0}; then
5365      # Best one so far, save it but keep looking for a better one
5366      ac_cv_path_SED="$ac_path_SED"
5367      ac_path_SED_max=$ac_count
5368    fi
5369    # 10*(2^10) chars as input seems more than enough
5370    test $ac_count -gt 10 && break
5371  done
5372  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5373esac
5374
5375      $ac_path_SED_found && break 3
5376    done
5377  done
5378  done
5379IFS=$as_save_IFS
5380  if test -z "$ac_cv_path_SED"; then
5381    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5382  fi
5383else
5384  ac_cv_path_SED=$SED
5385fi
5386
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5389printf "%s\n" "$ac_cv_path_SED" >&6; }
5390 SED="$ac_cv_path_SED"
5391  rm -f conftest.sed
5392
5393test -z "$SED" && SED=sed
5394Xsed="$SED -e 1s/^X//"
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5407printf %s "checking for grep that handles long lines and -e... " >&6; }
5408if test ${ac_cv_path_GREP+y}
5409then :
5410  printf %s "(cached) " >&6
5411else $as_nop
5412  if test -z "$GREP"; then
5413  ac_path_GREP_found=false
5414  # Loop through the user's path and test for each of PROGNAME-LIST
5415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417do
5418  IFS=$as_save_IFS
5419  case $as_dir in #(((
5420    '') as_dir=./ ;;
5421    */) ;;
5422    *) as_dir=$as_dir/ ;;
5423  esac
5424    for ac_prog in grep ggrep
5425   do
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5428      as_fn_executable_p "$ac_path_GREP" || continue
5429# Check for GNU ac_path_GREP and select it if it is found.
5430  # Check for GNU $ac_path_GREP
5431case `"$ac_path_GREP" --version 2>&1` in
5432*GNU*)
5433  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5434*)
5435  ac_count=0
5436  printf %s 0123456789 >"conftest.in"
5437  while :
5438  do
5439    cat "conftest.in" "conftest.in" >"conftest.tmp"
5440    mv "conftest.tmp" "conftest.in"
5441    cp "conftest.in" "conftest.nl"
5442    printf "%s\n" 'GREP' >> "conftest.nl"
5443    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5444    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5445    as_fn_arith $ac_count + 1 && ac_count=$as_val
5446    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5447      # Best one so far, save it but keep looking for a better one
5448      ac_cv_path_GREP="$ac_path_GREP"
5449      ac_path_GREP_max=$ac_count
5450    fi
5451    # 10*(2^10) chars as input seems more than enough
5452    test $ac_count -gt 10 && break
5453  done
5454  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5455esac
5456
5457      $ac_path_GREP_found && break 3
5458    done
5459  done
5460  done
5461IFS=$as_save_IFS
5462  if test -z "$ac_cv_path_GREP"; then
5463    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5464  fi
5465else
5466  ac_cv_path_GREP=$GREP
5467fi
5468
5469fi
5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5471printf "%s\n" "$ac_cv_path_GREP" >&6; }
5472 GREP="$ac_cv_path_GREP"
5473
5474
5475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5476printf %s "checking for egrep... " >&6; }
5477if test ${ac_cv_path_EGREP+y}
5478then :
5479  printf %s "(cached) " >&6
5480else $as_nop
5481  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5482   then ac_cv_path_EGREP="$GREP -E"
5483   else
5484     if test -z "$EGREP"; then
5485  ac_path_EGREP_found=false
5486  # Loop through the user's path and test for each of PROGNAME-LIST
5487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5489do
5490  IFS=$as_save_IFS
5491  case $as_dir in #(((
5492    '') as_dir=./ ;;
5493    */) ;;
5494    *) as_dir=$as_dir/ ;;
5495  esac
5496    for ac_prog in egrep
5497   do
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5500      as_fn_executable_p "$ac_path_EGREP" || continue
5501# Check for GNU ac_path_EGREP and select it if it is found.
5502  # Check for GNU $ac_path_EGREP
5503case `"$ac_path_EGREP" --version 2>&1` in
5504*GNU*)
5505  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5506*)
5507  ac_count=0
5508  printf %s 0123456789 >"conftest.in"
5509  while :
5510  do
5511    cat "conftest.in" "conftest.in" >"conftest.tmp"
5512    mv "conftest.tmp" "conftest.in"
5513    cp "conftest.in" "conftest.nl"
5514    printf "%s\n" 'EGREP' >> "conftest.nl"
5515    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517    as_fn_arith $ac_count + 1 && ac_count=$as_val
5518    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5519      # Best one so far, save it but keep looking for a better one
5520      ac_cv_path_EGREP="$ac_path_EGREP"
5521      ac_path_EGREP_max=$ac_count
5522    fi
5523    # 10*(2^10) chars as input seems more than enough
5524    test $ac_count -gt 10 && break
5525  done
5526  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527esac
5528
5529      $ac_path_EGREP_found && break 3
5530    done
5531  done
5532  done
5533IFS=$as_save_IFS
5534  if test -z "$ac_cv_path_EGREP"; then
5535    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5536  fi
5537else
5538  ac_cv_path_EGREP=$EGREP
5539fi
5540
5541   fi
5542fi
5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5544printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5545 EGREP="$ac_cv_path_EGREP"
5546
5547
5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5549printf %s "checking for fgrep... " >&6; }
5550if test ${ac_cv_path_FGREP+y}
5551then :
5552  printf %s "(cached) " >&6
5553else $as_nop
5554  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5555   then ac_cv_path_FGREP="$GREP -F"
5556   else
5557     if test -z "$FGREP"; then
5558  ac_path_FGREP_found=false
5559  # Loop through the user's path and test for each of PROGNAME-LIST
5560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562do
5563  IFS=$as_save_IFS
5564  case $as_dir in #(((
5565    '') as_dir=./ ;;
5566    */) ;;
5567    *) as_dir=$as_dir/ ;;
5568  esac
5569    for ac_prog in fgrep
5570   do
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5573      as_fn_executable_p "$ac_path_FGREP" || continue
5574# Check for GNU ac_path_FGREP and select it if it is found.
5575  # Check for GNU $ac_path_FGREP
5576case `"$ac_path_FGREP" --version 2>&1` in
5577*GNU*)
5578  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5579*)
5580  ac_count=0
5581  printf %s 0123456789 >"conftest.in"
5582  while :
5583  do
5584    cat "conftest.in" "conftest.in" >"conftest.tmp"
5585    mv "conftest.tmp" "conftest.in"
5586    cp "conftest.in" "conftest.nl"
5587    printf "%s\n" 'FGREP' >> "conftest.nl"
5588    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590    as_fn_arith $ac_count + 1 && ac_count=$as_val
5591    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5592      # Best one so far, save it but keep looking for a better one
5593      ac_cv_path_FGREP="$ac_path_FGREP"
5594      ac_path_FGREP_max=$ac_count
5595    fi
5596    # 10*(2^10) chars as input seems more than enough
5597    test $ac_count -gt 10 && break
5598  done
5599  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600esac
5601
5602      $ac_path_FGREP_found && break 3
5603    done
5604  done
5605  done
5606IFS=$as_save_IFS
5607  if test -z "$ac_cv_path_FGREP"; then
5608    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5609  fi
5610else
5611  ac_cv_path_FGREP=$FGREP
5612fi
5613
5614   fi
5615fi
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5617printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5618 FGREP="$ac_cv_path_FGREP"
5619
5620
5621test -z "$GREP" && GREP=grep
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641# Check whether --with-gnu-ld was given.
5642if test ${with_gnu_ld+y}
5643then :
5644  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5645else $as_nop
5646  with_gnu_ld=no
5647fi
5648
5649ac_prog=ld
5650if test yes = "$GCC"; then
5651  # Check if gcc -print-prog-name=ld gives a path.
5652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5653printf %s "checking for ld used by $CC... " >&6; }
5654  case $host in
5655  *-*-mingw*)
5656    # gcc leaves a trailing carriage return, which upsets mingw
5657    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5658  *)
5659    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5660  esac
5661  case $ac_prog in
5662    # Accept absolute paths.
5663    [\\/]* | ?:[\\/]*)
5664      re_direlt='/[^/][^/]*/\.\./'
5665      # Canonicalize the pathname of ld
5666      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5667      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5668	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5669      done
5670      test -z "$LD" && LD=$ac_prog
5671      ;;
5672  "")
5673    # If it fails, then pretend we aren't using GCC.
5674    ac_prog=ld
5675    ;;
5676  *)
5677    # If it is relative, then search for the first ld in PATH.
5678    with_gnu_ld=unknown
5679    ;;
5680  esac
5681elif test yes = "$with_gnu_ld"; then
5682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5683printf %s "checking for GNU ld... " >&6; }
5684else
5685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5686printf %s "checking for non-GNU ld... " >&6; }
5687fi
5688if test ${lt_cv_path_LD+y}
5689then :
5690  printf %s "(cached) " >&6
5691else $as_nop
5692  if test -z "$LD"; then
5693  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5694  for ac_dir in $PATH; do
5695    IFS=$lt_save_ifs
5696    test -z "$ac_dir" && ac_dir=.
5697    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698      lt_cv_path_LD=$ac_dir/$ac_prog
5699      # Check to see if the program is GNU ld.  I'd rather use --version,
5700      # but apparently some variants of GNU ld only accept -v.
5701      # Break only if it was the GNU/non-GNU ld that we prefer.
5702      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703      *GNU* | *'with BFD'*)
5704	test no != "$with_gnu_ld" && break
5705	;;
5706      *)
5707	test yes != "$with_gnu_ld" && break
5708	;;
5709      esac
5710    fi
5711  done
5712  IFS=$lt_save_ifs
5713else
5714  lt_cv_path_LD=$LD # Let the user override the test with a path.
5715fi
5716fi
5717
5718LD=$lt_cv_path_LD
5719if test -n "$LD"; then
5720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5721printf "%s\n" "$LD" >&6; }
5722else
5723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724printf "%s\n" "no" >&6; }
5725fi
5726test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5728printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5729if test ${lt_cv_prog_gnu_ld+y}
5730then :
5731  printf %s "(cached) " >&6
5732else $as_nop
5733  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5734case `$LD -v 2>&1 </dev/null` in
5735*GNU* | *'with BFD'*)
5736  lt_cv_prog_gnu_ld=yes
5737  ;;
5738*)
5739  lt_cv_prog_gnu_ld=no
5740  ;;
5741esac
5742fi
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5744printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5745with_gnu_ld=$lt_cv_prog_gnu_ld
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5756printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5757if test ${lt_cv_path_NM+y}
5758then :
5759  printf %s "(cached) " >&6
5760else $as_nop
5761  if test -n "$NM"; then
5762  # Let the user override the test.
5763  lt_cv_path_NM=$NM
5764else
5765  lt_nm_to_check=${ac_tool_prefix}nm
5766  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767    lt_nm_to_check="$lt_nm_to_check nm"
5768  fi
5769  for lt_tmp_nm in $lt_nm_to_check; do
5770    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5771    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772      IFS=$lt_save_ifs
5773      test -z "$ac_dir" && ac_dir=.
5774      tmp_nm=$ac_dir/$lt_tmp_nm
5775      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5776	# Check to see if the nm accepts a BSD-compat flag.
5777	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5778	#   nm: unknown option "B" ignored
5779	# Tru64's nm complains that /dev/null is an invalid object file
5780	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5781	case $build_os in
5782	mingw*) lt_bad_file=conftest.nm/nofile ;;
5783	*) lt_bad_file=/dev/null ;;
5784	esac
5785	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5786	*$lt_bad_file* | *'Invalid file or object type'*)
5787	  lt_cv_path_NM="$tmp_nm -B"
5788	  break 2
5789	  ;;
5790	*)
5791	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5792	  */dev/null*)
5793	    lt_cv_path_NM="$tmp_nm -p"
5794	    break 2
5795	    ;;
5796	  *)
5797	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5798	    continue # so that we can try to find one that supports BSD flags
5799	    ;;
5800	  esac
5801	  ;;
5802	esac
5803      fi
5804    done
5805    IFS=$lt_save_ifs
5806  done
5807  : ${lt_cv_path_NM=no}
5808fi
5809fi
5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5811printf "%s\n" "$lt_cv_path_NM" >&6; }
5812if test no != "$lt_cv_path_NM"; then
5813  NM=$lt_cv_path_NM
5814else
5815  # Didn't find any BSD compatible name lister, look for dumpbin.
5816  if test -n "$DUMPBIN"; then :
5817    # Let the user override the test.
5818  else
5819    if test -n "$ac_tool_prefix"; then
5820  for ac_prog in dumpbin "link -dump"
5821  do
5822    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825printf %s "checking for $ac_word... " >&6; }
5826if test ${ac_cv_prog_DUMPBIN+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  if test -n "$DUMPBIN"; then
5831  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836  IFS=$as_save_IFS
5837  case $as_dir in #(((
5838    '') as_dir=./ ;;
5839    */) ;;
5840    *) as_dir=$as_dir/ ;;
5841  esac
5842    for ac_exec_ext in '' $ac_executable_extensions; do
5843  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5844    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5845    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5846    break 2
5847  fi
5848done
5849  done
5850IFS=$as_save_IFS
5851
5852fi
5853fi
5854DUMPBIN=$ac_cv_prog_DUMPBIN
5855if test -n "$DUMPBIN"; then
5856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5857printf "%s\n" "$DUMPBIN" >&6; }
5858else
5859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860printf "%s\n" "no" >&6; }
5861fi
5862
5863
5864    test -n "$DUMPBIN" && break
5865  done
5866fi
5867if test -z "$DUMPBIN"; then
5868  ac_ct_DUMPBIN=$DUMPBIN
5869  for ac_prog in dumpbin "link -dump"
5870do
5871  # Extract the first word of "$ac_prog", so it can be a program name with args.
5872set dummy $ac_prog; ac_word=$2
5873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874printf %s "checking for $ac_word... " >&6; }
5875if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5876then :
5877  printf %s "(cached) " >&6
5878else $as_nop
5879  if test -n "$ac_ct_DUMPBIN"; then
5880  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  case $as_dir in #(((
5887    '') as_dir=./ ;;
5888    */) ;;
5889    *) as_dir=$as_dir/ ;;
5890  esac
5891    for ac_exec_ext in '' $ac_executable_extensions; do
5892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5893    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5895    break 2
5896  fi
5897done
5898  done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5904if test -n "$ac_ct_DUMPBIN"; then
5905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5906printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5907else
5908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909printf "%s\n" "no" >&6; }
5910fi
5911
5912
5913  test -n "$ac_ct_DUMPBIN" && break
5914done
5915
5916  if test "x$ac_ct_DUMPBIN" = x; then
5917    DUMPBIN=":"
5918  else
5919    case $cross_compiling:$ac_tool_warned in
5920yes:)
5921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923ac_tool_warned=yes ;;
5924esac
5925    DUMPBIN=$ac_ct_DUMPBIN
5926  fi
5927fi
5928
5929    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5930    *COFF*)
5931      DUMPBIN="$DUMPBIN -symbols -headers"
5932      ;;
5933    *)
5934      DUMPBIN=:
5935      ;;
5936    esac
5937  fi
5938
5939  if test : != "$DUMPBIN"; then
5940    NM=$DUMPBIN
5941  fi
5942fi
5943test -z "$NM" && NM=nm
5944
5945
5946
5947
5948
5949
5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5951printf %s "checking the name lister ($NM) interface... " >&6; }
5952if test ${lt_cv_nm_interface+y}
5953then :
5954  printf %s "(cached) " >&6
5955else $as_nop
5956  lt_cv_nm_interface="BSD nm"
5957  echo "int some_variable = 0;" > conftest.$ac_ext
5958  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5959  (eval "$ac_compile" 2>conftest.err)
5960  cat conftest.err >&5
5961  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5962  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5963  cat conftest.err >&5
5964  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5965  cat conftest.out >&5
5966  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5967    lt_cv_nm_interface="MS dumpbin"
5968  fi
5969  rm -f conftest*
5970fi
5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972printf "%s\n" "$lt_cv_nm_interface" >&6; }
5973
5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975printf %s "checking whether ln -s works... " >&6; }
5976LN_S=$as_ln_s
5977if test "$LN_S" = "ln -s"; then
5978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979printf "%s\n" "yes" >&6; }
5980else
5981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982printf "%s\n" "no, using $LN_S" >&6; }
5983fi
5984
5985# find the maximum length of command line arguments
5986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5987printf %s "checking the maximum length of command line arguments... " >&6; }
5988if test ${lt_cv_sys_max_cmd_len+y}
5989then :
5990  printf %s "(cached) " >&6
5991else $as_nop
5992    i=0
5993  teststring=ABCD
5994
5995  case $build_os in
5996  msdosdjgpp*)
5997    # On DJGPP, this test can blow up pretty badly due to problems in libc
5998    # (any single argument exceeding 2000 bytes causes a buffer overrun
5999    # during glob expansion).  Even if it were fixed, the result of this
6000    # check would be larger than it should be.
6001    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6002    ;;
6003
6004  gnu*)
6005    # Under GNU Hurd, this test is not required because there is
6006    # no limit to the length of command line arguments.
6007    # Libtool will interpret -1 as no limit whatsoever
6008    lt_cv_sys_max_cmd_len=-1;
6009    ;;
6010
6011  cygwin* | mingw* | cegcc*)
6012    # On Win9x/ME, this test blows up -- it succeeds, but takes
6013    # about 5 minutes as the teststring grows exponentially.
6014    # Worse, since 9x/ME are not pre-emptively multitasking,
6015    # you end up with a "frozen" computer, even though with patience
6016    # the test eventually succeeds (with a max line length of 256k).
6017    # Instead, let's just punt: use the minimum linelength reported by
6018    # all of the supported platforms: 8192 (on NT/2K/XP).
6019    lt_cv_sys_max_cmd_len=8192;
6020    ;;
6021
6022  mint*)
6023    # On MiNT this can take a long time and run out of memory.
6024    lt_cv_sys_max_cmd_len=8192;
6025    ;;
6026
6027  amigaos*)
6028    # On AmigaOS with pdksh, this test takes hours, literally.
6029    # So we just punt and use a minimum line length of 8192.
6030    lt_cv_sys_max_cmd_len=8192;
6031    ;;
6032
6033  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6034    # This has been around since 386BSD, at least.  Likely further.
6035    if test -x /sbin/sysctl; then
6036      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6037    elif test -x /usr/sbin/sysctl; then
6038      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6039    else
6040      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6041    fi
6042    # And add a safety zone
6043    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6044    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6045    ;;
6046
6047  interix*)
6048    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6049    lt_cv_sys_max_cmd_len=196608
6050    ;;
6051
6052  os2*)
6053    # The test takes a long time on OS/2.
6054    lt_cv_sys_max_cmd_len=8192
6055    ;;
6056
6057  osf*)
6058    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6059    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6060    # nice to cause kernel panics so lets avoid the loop below.
6061    # First set a reasonable default.
6062    lt_cv_sys_max_cmd_len=16384
6063    #
6064    if test -x /sbin/sysconfig; then
6065      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6066        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6067      esac
6068    fi
6069    ;;
6070  sco3.2v5*)
6071    lt_cv_sys_max_cmd_len=102400
6072    ;;
6073  sysv5* | sco5v6* | sysv4.2uw2*)
6074    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6075    if test -n "$kargmax"; then
6076      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6077    else
6078      lt_cv_sys_max_cmd_len=32768
6079    fi
6080    ;;
6081  *)
6082    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6083    if test -n "$lt_cv_sys_max_cmd_len" && \
6084       test undefined != "$lt_cv_sys_max_cmd_len"; then
6085      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6086      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6087    else
6088      # Make teststring a little bigger before we do anything with it.
6089      # a 1K string should be a reasonable start.
6090      for i in 1 2 3 4 5 6 7 8; do
6091        teststring=$teststring$teststring
6092      done
6093      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6094      # If test is not a shell built-in, we'll probably end up computing a
6095      # maximum length that is only half of the actual maximum length, but
6096      # we can't tell.
6097      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6098	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6099	      test 17 != "$i" # 1/2 MB should be enough
6100      do
6101        i=`expr $i + 1`
6102        teststring=$teststring$teststring
6103      done
6104      # Only check the string length outside the loop.
6105      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6106      teststring=
6107      # Add a significant safety factor because C++ compilers can tack on
6108      # massive amounts of additional arguments before passing them to the
6109      # linker.  It appears as though 1/2 is a usable value.
6110      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6111    fi
6112    ;;
6113  esac
6114
6115fi
6116
6117if test -n "$lt_cv_sys_max_cmd_len"; then
6118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6119printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6120else
6121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6122printf "%s\n" "none" >&6; }
6123fi
6124max_cmd_len=$lt_cv_sys_max_cmd_len
6125
6126
6127
6128
6129
6130
6131: ${CP="cp -f"}
6132: ${MV="mv -f"}
6133: ${RM="rm -f"}
6134
6135if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6136  lt_unset=unset
6137else
6138  lt_unset=false
6139fi
6140
6141
6142
6143
6144
6145# test EBCDIC or ASCII
6146case `echo X|tr X '\101'` in
6147 A) # ASCII based system
6148    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6149  lt_SP2NL='tr \040 \012'
6150  lt_NL2SP='tr \015\012 \040\040'
6151  ;;
6152 *) # EBCDIC based system
6153  lt_SP2NL='tr \100 \n'
6154  lt_NL2SP='tr \r\n \100\100'
6155  ;;
6156esac
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6167printf %s "checking how to convert $build file names to $host format... " >&6; }
6168if test ${lt_cv_to_host_file_cmd+y}
6169then :
6170  printf %s "(cached) " >&6
6171else $as_nop
6172  case $host in
6173  *-*-mingw* )
6174    case $build in
6175      *-*-mingw* ) # actually msys
6176        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6177        ;;
6178      *-*-cygwin* )
6179        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6180        ;;
6181      * ) # otherwise, assume *nix
6182        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6183        ;;
6184    esac
6185    ;;
6186  *-*-cygwin* )
6187    case $build in
6188      *-*-mingw* ) # actually msys
6189        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6190        ;;
6191      *-*-cygwin* )
6192        lt_cv_to_host_file_cmd=func_convert_file_noop
6193        ;;
6194      * ) # otherwise, assume *nix
6195        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6196        ;;
6197    esac
6198    ;;
6199  * ) # unhandled hosts (and "normal" native builds)
6200    lt_cv_to_host_file_cmd=func_convert_file_noop
6201    ;;
6202esac
6203
6204fi
6205
6206to_host_file_cmd=$lt_cv_to_host_file_cmd
6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6208printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6209
6210
6211
6212
6213
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6215printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6216if test ${lt_cv_to_tool_file_cmd+y}
6217then :
6218  printf %s "(cached) " >&6
6219else $as_nop
6220  #assume ordinary cross tools, or native build.
6221lt_cv_to_tool_file_cmd=func_convert_file_noop
6222case $host in
6223  *-*-mingw* )
6224    case $build in
6225      *-*-mingw* ) # actually msys
6226        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6227        ;;
6228    esac
6229    ;;
6230esac
6231
6232fi
6233
6234to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6236printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6237
6238
6239
6240
6241
6242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6243printf %s "checking for $LD option to reload object files... " >&6; }
6244if test ${lt_cv_ld_reload_flag+y}
6245then :
6246  printf %s "(cached) " >&6
6247else $as_nop
6248  lt_cv_ld_reload_flag='-r'
6249fi
6250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6251printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6252reload_flag=$lt_cv_ld_reload_flag
6253case $reload_flag in
6254"" | " "*) ;;
6255*) reload_flag=" $reload_flag" ;;
6256esac
6257reload_cmds='$LD$reload_flag -o $output$reload_objs'
6258case $host_os in
6259  cygwin* | mingw* | pw32* | cegcc*)
6260    if test yes != "$GCC"; then
6261      reload_cmds=false
6262    fi
6263    ;;
6264  darwin*)
6265    if test yes = "$GCC"; then
6266      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6267    else
6268      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6269    fi
6270    ;;
6271esac
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281if test -n "$ac_tool_prefix"; then
6282  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}file; ac_word=$2
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285printf %s "checking for $ac_word... " >&6; }
6286if test ${ac_cv_prog_FILECMD+y}
6287then :
6288  printf %s "(cached) " >&6
6289else $as_nop
6290  if test -n "$FILECMD"; then
6291  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  case $as_dir in #(((
6298    '') as_dir=./ ;;
6299    */) ;;
6300    *) as_dir=$as_dir/ ;;
6301  esac
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6304    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314FILECMD=$ac_cv_prog_FILECMD
6315if test -n "$FILECMD"; then
6316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6317printf "%s\n" "$FILECMD" >&6; }
6318else
6319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320printf "%s\n" "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_FILECMD"; then
6326  ac_ct_FILECMD=$FILECMD
6327  # Extract the first word of "file", so it can be a program name with args.
6328set dummy file; ac_word=$2
6329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330printf %s "checking for $ac_word... " >&6; }
6331if test ${ac_cv_prog_ac_ct_FILECMD+y}
6332then :
6333  printf %s "(cached) " >&6
6334else $as_nop
6335  if test -n "$ac_ct_FILECMD"; then
6336  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  case $as_dir in #(((
6343    '') as_dir=./ ;;
6344    */) ;;
6345    *) as_dir=$as_dir/ ;;
6346  esac
6347    for ac_exec_ext in '' $ac_executable_extensions; do
6348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_ac_ct_FILECMD="file"
6350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354  done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6360if test -n "$ac_ct_FILECMD"; then
6361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6362printf "%s\n" "$ac_ct_FILECMD" >&6; }
6363else
6364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365printf "%s\n" "no" >&6; }
6366fi
6367
6368  if test "x$ac_ct_FILECMD" = x; then
6369    FILECMD=":"
6370  else
6371    case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377    FILECMD=$ac_ct_FILECMD
6378  fi
6379else
6380  FILECMD="$ac_cv_prog_FILECMD"
6381fi
6382
6383
6384
6385
6386
6387
6388
6389if test -n "$ac_tool_prefix"; then
6390  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391set dummy ${ac_tool_prefix}objdump; ac_word=$2
6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393printf %s "checking for $ac_word... " >&6; }
6394if test ${ac_cv_prog_OBJDUMP+y}
6395then :
6396  printf %s "(cached) " >&6
6397else $as_nop
6398  if test -n "$OBJDUMP"; then
6399  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  case $as_dir in #(((
6406    '') as_dir=./ ;;
6407    */) ;;
6408    *) as_dir=$as_dir/ ;;
6409  esac
6410    for ac_exec_ext in '' $ac_executable_extensions; do
6411  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6412    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6413    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6414    break 2
6415  fi
6416done
6417  done
6418IFS=$as_save_IFS
6419
6420fi
6421fi
6422OBJDUMP=$ac_cv_prog_OBJDUMP
6423if test -n "$OBJDUMP"; then
6424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6425printf "%s\n" "$OBJDUMP" >&6; }
6426else
6427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428printf "%s\n" "no" >&6; }
6429fi
6430
6431
6432fi
6433if test -z "$ac_cv_prog_OBJDUMP"; then
6434  ac_ct_OBJDUMP=$OBJDUMP
6435  # Extract the first word of "objdump", so it can be a program name with args.
6436set dummy objdump; ac_word=$2
6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438printf %s "checking for $ac_word... " >&6; }
6439if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6440then :
6441  printf %s "(cached) " >&6
6442else $as_nop
6443  if test -n "$ac_ct_OBJDUMP"; then
6444  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449  IFS=$as_save_IFS
6450  case $as_dir in #(((
6451    '') as_dir=./ ;;
6452    */) ;;
6453    *) as_dir=$as_dir/ ;;
6454  esac
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6457    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6458    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6468if test -n "$ac_ct_OBJDUMP"; then
6469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6470printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6471else
6472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473printf "%s\n" "no" >&6; }
6474fi
6475
6476  if test "x$ac_ct_OBJDUMP" = x; then
6477    OBJDUMP="false"
6478  else
6479    case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485    OBJDUMP=$ac_ct_OBJDUMP
6486  fi
6487else
6488  OBJDUMP="$ac_cv_prog_OBJDUMP"
6489fi
6490
6491test -z "$OBJDUMP" && OBJDUMP=objdump
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6502printf %s "checking how to recognize dependent libraries... " >&6; }
6503if test ${lt_cv_deplibs_check_method+y}
6504then :
6505  printf %s "(cached) " >&6
6506else $as_nop
6507  lt_cv_file_magic_cmd='$MAGIC_CMD'
6508lt_cv_file_magic_test_file=
6509lt_cv_deplibs_check_method='unknown'
6510# Need to set the preceding variable on all platforms that support
6511# interlibrary dependencies.
6512# 'none' -- dependencies not supported.
6513# 'unknown' -- same as none, but documents that we really don't know.
6514# 'pass_all' -- all dependencies passed with no checks.
6515# 'test_compile' -- check by making test program.
6516# 'file_magic [[regex]]' -- check by looking for files in library path
6517# that responds to the $file_magic_cmd with a given extended regex.
6518# If you have 'file' or equivalent on your system and you're not sure
6519# whether 'pass_all' will *always* work, you probably want this one.
6520
6521case $host_os in
6522aix[4-9]*)
6523  lt_cv_deplibs_check_method=pass_all
6524  ;;
6525
6526beos*)
6527  lt_cv_deplibs_check_method=pass_all
6528  ;;
6529
6530bsdi[45]*)
6531  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6532  lt_cv_file_magic_cmd='$FILECMD -L'
6533  lt_cv_file_magic_test_file=/shlib/libc.so
6534  ;;
6535
6536cygwin*)
6537  # func_win32_libid is a shell function defined in ltmain.sh
6538  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6539  lt_cv_file_magic_cmd='func_win32_libid'
6540  ;;
6541
6542mingw* | pw32*)
6543  # Base MSYS/MinGW do not provide the 'file' command needed by
6544  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6545  # unless we find 'file', for example because we are cross-compiling.
6546  if ( file / ) >/dev/null 2>&1; then
6547    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6548    lt_cv_file_magic_cmd='func_win32_libid'
6549  else
6550    # Keep this pattern in sync with the one in func_win32_libid.
6551    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6552    lt_cv_file_magic_cmd='$OBJDUMP -f'
6553  fi
6554  ;;
6555
6556cegcc*)
6557  # use the weaker test based on 'objdump'. See mingw*.
6558  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6559  lt_cv_file_magic_cmd='$OBJDUMP -f'
6560  ;;
6561
6562darwin* | rhapsody*)
6563  lt_cv_deplibs_check_method=pass_all
6564  ;;
6565
6566freebsd* | dragonfly* | midnightbsd*)
6567  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6568    case $host_cpu in
6569    i*86 )
6570      # Not sure whether the presence of OpenBSD here was a mistake.
6571      # Let's accept both of them until this is cleared up.
6572      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6573      lt_cv_file_magic_cmd=$FILECMD
6574      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6575      ;;
6576    esac
6577  else
6578    lt_cv_deplibs_check_method=pass_all
6579  fi
6580  ;;
6581
6582haiku*)
6583  lt_cv_deplibs_check_method=pass_all
6584  ;;
6585
6586hpux10.20* | hpux11*)
6587  lt_cv_file_magic_cmd=$FILECMD
6588  case $host_cpu in
6589  ia64*)
6590    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6591    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6592    ;;
6593  hppa*64*)
6594    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]'
6595    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6596    ;;
6597  *)
6598    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6599    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6600    ;;
6601  esac
6602  ;;
6603
6604interix[3-9]*)
6605  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6606  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6607  ;;
6608
6609irix5* | irix6* | nonstopux*)
6610  case $LD in
6611  *-32|*"-32 ") libmagic=32-bit;;
6612  *-n32|*"-n32 ") libmagic=N32;;
6613  *-64|*"-64 ") libmagic=64-bit;;
6614  *) libmagic=never-match;;
6615  esac
6616  lt_cv_deplibs_check_method=pass_all
6617  ;;
6618
6619# This must be glibc/ELF.
6620linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6621  lt_cv_deplibs_check_method=pass_all
6622  ;;
6623
6624netbsd*)
6625  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6626    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6627  else
6628    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6629  fi
6630  ;;
6631
6632newos6*)
6633  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6634  lt_cv_file_magic_cmd=$FILECMD
6635  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6636  ;;
6637
6638*nto* | *qnx*)
6639  lt_cv_deplibs_check_method=pass_all
6640  ;;
6641
6642openbsd* | bitrig*)
6643  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6644    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6645  else
6646    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6647  fi
6648  ;;
6649
6650osf3* | osf4* | osf5*)
6651  lt_cv_deplibs_check_method=pass_all
6652  ;;
6653
6654rdos*)
6655  lt_cv_deplibs_check_method=pass_all
6656  ;;
6657
6658solaris*)
6659  lt_cv_deplibs_check_method=pass_all
6660  ;;
6661
6662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6663  lt_cv_deplibs_check_method=pass_all
6664  ;;
6665
6666sysv4 | sysv4.3*)
6667  case $host_vendor in
6668  motorola)
6669    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]'
6670    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6671    ;;
6672  ncr)
6673    lt_cv_deplibs_check_method=pass_all
6674    ;;
6675  sequent)
6676    lt_cv_file_magic_cmd='/bin/file'
6677    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6678    ;;
6679  sni)
6680    lt_cv_file_magic_cmd='/bin/file'
6681    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6682    lt_cv_file_magic_test_file=/lib/libc.so
6683    ;;
6684  siemens)
6685    lt_cv_deplibs_check_method=pass_all
6686    ;;
6687  pc)
6688    lt_cv_deplibs_check_method=pass_all
6689    ;;
6690  esac
6691  ;;
6692
6693tpf*)
6694  lt_cv_deplibs_check_method=pass_all
6695  ;;
6696os2*)
6697  lt_cv_deplibs_check_method=pass_all
6698  ;;
6699esac
6700
6701fi
6702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6703printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6704
6705file_magic_glob=
6706want_nocaseglob=no
6707if test "$build" = "$host"; then
6708  case $host_os in
6709  mingw* | pw32*)
6710    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6711      want_nocaseglob=yes
6712    else
6713      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6714    fi
6715    ;;
6716  esac
6717fi
6718
6719file_magic_cmd=$lt_cv_file_magic_cmd
6720deplibs_check_method=$lt_cv_deplibs_check_method
6721test -z "$deplibs_check_method" && deplibs_check_method=unknown
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744if test -n "$ac_tool_prefix"; then
6745  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748printf %s "checking for $ac_word... " >&6; }
6749if test ${ac_cv_prog_DLLTOOL+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  if test -n "$DLLTOOL"; then
6754  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  case $as_dir in #(((
6761    '') as_dir=./ ;;
6762    */) ;;
6763    *) as_dir=$as_dir/ ;;
6764  esac
6765    for ac_exec_ext in '' $ac_executable_extensions; do
6766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6767    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772  done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777DLLTOOL=$ac_cv_prog_DLLTOOL
6778if test -n "$DLLTOOL"; then
6779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6780printf "%s\n" "$DLLTOOL" >&6; }
6781else
6782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783printf "%s\n" "no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_DLLTOOL"; then
6789  ac_ct_DLLTOOL=$DLLTOOL
6790  # Extract the first word of "dlltool", so it can be a program name with args.
6791set dummy dlltool; ac_word=$2
6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793printf %s "checking for $ac_word... " >&6; }
6794if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6795then :
6796  printf %s "(cached) " >&6
6797else $as_nop
6798  if test -n "$ac_ct_DLLTOOL"; then
6799  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804  IFS=$as_save_IFS
6805  case $as_dir in #(((
6806    '') as_dir=./ ;;
6807    */) ;;
6808    *) as_dir=$as_dir/ ;;
6809  esac
6810    for ac_exec_ext in '' $ac_executable_extensions; do
6811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6812    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817  done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6823if test -n "$ac_ct_DLLTOOL"; then
6824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6825printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6826else
6827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828printf "%s\n" "no" >&6; }
6829fi
6830
6831  if test "x$ac_ct_DLLTOOL" = x; then
6832    DLLTOOL="false"
6833  else
6834    case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840    DLLTOOL=$ac_ct_DLLTOOL
6841  fi
6842else
6843  DLLTOOL="$ac_cv_prog_DLLTOOL"
6844fi
6845
6846test -z "$DLLTOOL" && DLLTOOL=dlltool
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6858printf %s "checking how to associate runtime and link libraries... " >&6; }
6859if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6860then :
6861  printf %s "(cached) " >&6
6862else $as_nop
6863  lt_cv_sharedlib_from_linklib_cmd='unknown'
6864
6865case $host_os in
6866cygwin* | mingw* | pw32* | cegcc*)
6867  # two different shell functions defined in ltmain.sh;
6868  # decide which one to use based on capabilities of $DLLTOOL
6869  case `$DLLTOOL --help 2>&1` in
6870  *--identify-strict*)
6871    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6872    ;;
6873  *)
6874    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6875    ;;
6876  esac
6877  ;;
6878*)
6879  # fallback: assume linklib IS sharedlib
6880  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6881  ;;
6882esac
6883
6884fi
6885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6886printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6887sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6888test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6889
6890
6891
6892
6893
6894
6895
6896if test -n "$ac_tool_prefix"; then
6897  for ac_prog in ar
6898  do
6899    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902printf %s "checking for $ac_word... " >&6; }
6903if test ${ac_cv_prog_AR+y}
6904then :
6905  printf %s "(cached) " >&6
6906else $as_nop
6907  if test -n "$AR"; then
6908  ac_cv_prog_AR="$AR" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  case $as_dir in #(((
6915    '') as_dir=./ ;;
6916    */) ;;
6917    *) as_dir=$as_dir/ ;;
6918  esac
6919    for ac_exec_ext in '' $ac_executable_extensions; do
6920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6921    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6923    break 2
6924  fi
6925done
6926  done
6927IFS=$as_save_IFS
6928
6929fi
6930fi
6931AR=$ac_cv_prog_AR
6932if test -n "$AR"; then
6933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6934printf "%s\n" "$AR" >&6; }
6935else
6936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937printf "%s\n" "no" >&6; }
6938fi
6939
6940
6941    test -n "$AR" && break
6942  done
6943fi
6944if test -z "$AR"; then
6945  ac_ct_AR=$AR
6946  for ac_prog in ar
6947do
6948  # Extract the first word of "$ac_prog", so it can be a program name with args.
6949set dummy $ac_prog; ac_word=$2
6950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951printf %s "checking for $ac_word... " >&6; }
6952if test ${ac_cv_prog_ac_ct_AR+y}
6953then :
6954  printf %s "(cached) " >&6
6955else $as_nop
6956  if test -n "$ac_ct_AR"; then
6957  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  case $as_dir in #(((
6964    '') as_dir=./ ;;
6965    */) ;;
6966    *) as_dir=$as_dir/ ;;
6967  esac
6968    for ac_exec_ext in '' $ac_executable_extensions; do
6969  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6970    ac_cv_prog_ac_ct_AR="$ac_prog"
6971    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975  done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_AR=$ac_cv_prog_ac_ct_AR
6981if test -n "$ac_ct_AR"; then
6982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6983printf "%s\n" "$ac_ct_AR" >&6; }
6984else
6985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986printf "%s\n" "no" >&6; }
6987fi
6988
6989
6990  test -n "$ac_ct_AR" && break
6991done
6992
6993  if test "x$ac_ct_AR" = x; then
6994    AR="false"
6995  else
6996    case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000ac_tool_warned=yes ;;
7001esac
7002    AR=$ac_ct_AR
7003  fi
7004fi
7005
7006: ${AR=ar}
7007
7008
7009
7010
7011
7012
7013# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7014# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7015# higher priority because thats what people were doing historically (setting
7016# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7017# variable obsoleted/removed.
7018
7019test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7020lt_ar_flags=$AR_FLAGS
7021
7022
7023
7024
7025
7026
7027# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7028# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7029
7030
7031
7032
7033
7034
7035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7036printf %s "checking for archiver @FILE support... " >&6; }
7037if test ${lt_cv_ar_at_file+y}
7038then :
7039  printf %s "(cached) " >&6
7040else $as_nop
7041  lt_cv_ar_at_file=no
7042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044
7045int
7046main (void)
7047{
7048
7049  ;
7050  return 0;
7051}
7052_ACEOF
7053if ac_fn_c_try_compile "$LINENO"
7054then :
7055  echo conftest.$ac_objext > conftest.lst
7056      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7057      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7058  (eval $lt_ar_try) 2>&5
7059  ac_status=$?
7060  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061  test $ac_status = 0; }
7062      if test 0 -eq "$ac_status"; then
7063	# Ensure the archiver fails upon bogus file names.
7064	rm -f conftest.$ac_objext libconftest.a
7065	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7066  (eval $lt_ar_try) 2>&5
7067  ac_status=$?
7068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069  test $ac_status = 0; }
7070	if test 0 -ne "$ac_status"; then
7071          lt_cv_ar_at_file=@
7072        fi
7073      fi
7074      rm -f conftest.* libconftest.a
7075
7076fi
7077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7078
7079fi
7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7081printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7082
7083if test no = "$lt_cv_ar_at_file"; then
7084  archiver_list_spec=
7085else
7086  archiver_list_spec=$lt_cv_ar_at_file
7087fi
7088
7089
7090
7091
7092
7093
7094
7095if test -n "$ac_tool_prefix"; then
7096  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7097set dummy ${ac_tool_prefix}strip; ac_word=$2
7098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099printf %s "checking for $ac_word... " >&6; }
7100if test ${ac_cv_prog_STRIP+y}
7101then :
7102  printf %s "(cached) " >&6
7103else $as_nop
7104  if test -n "$STRIP"; then
7105  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  case $as_dir in #(((
7112    '') as_dir=./ ;;
7113    */) ;;
7114    *) as_dir=$as_dir/ ;;
7115  esac
7116    for ac_exec_ext in '' $ac_executable_extensions; do
7117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7118    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7120    break 2
7121  fi
7122done
7123  done
7124IFS=$as_save_IFS
7125
7126fi
7127fi
7128STRIP=$ac_cv_prog_STRIP
7129if test -n "$STRIP"; then
7130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7131printf "%s\n" "$STRIP" >&6; }
7132else
7133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134printf "%s\n" "no" >&6; }
7135fi
7136
7137
7138fi
7139if test -z "$ac_cv_prog_STRIP"; then
7140  ac_ct_STRIP=$STRIP
7141  # Extract the first word of "strip", so it can be a program name with args.
7142set dummy strip; ac_word=$2
7143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144printf %s "checking for $ac_word... " >&6; }
7145if test ${ac_cv_prog_ac_ct_STRIP+y}
7146then :
7147  printf %s "(cached) " >&6
7148else $as_nop
7149  if test -n "$ac_ct_STRIP"; then
7150  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155  IFS=$as_save_IFS
7156  case $as_dir in #(((
7157    '') as_dir=./ ;;
7158    */) ;;
7159    *) as_dir=$as_dir/ ;;
7160  esac
7161    for ac_exec_ext in '' $ac_executable_extensions; do
7162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7163    ac_cv_prog_ac_ct_STRIP="strip"
7164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168  done
7169IFS=$as_save_IFS
7170
7171fi
7172fi
7173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7174if test -n "$ac_ct_STRIP"; then
7175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7176printf "%s\n" "$ac_ct_STRIP" >&6; }
7177else
7178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179printf "%s\n" "no" >&6; }
7180fi
7181
7182  if test "x$ac_ct_STRIP" = x; then
7183    STRIP=":"
7184  else
7185    case $cross_compiling:$ac_tool_warned in
7186yes:)
7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189ac_tool_warned=yes ;;
7190esac
7191    STRIP=$ac_ct_STRIP
7192  fi
7193else
7194  STRIP="$ac_cv_prog_STRIP"
7195fi
7196
7197test -z "$STRIP" && STRIP=:
7198
7199
7200
7201
7202
7203
7204if test -n "$ac_tool_prefix"; then
7205  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208printf %s "checking for $ac_word... " >&6; }
7209if test ${ac_cv_prog_RANLIB+y}
7210then :
7211  printf %s "(cached) " >&6
7212else $as_nop
7213  if test -n "$RANLIB"; then
7214  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  case $as_dir in #(((
7221    '') as_dir=./ ;;
7222    */) ;;
7223    *) as_dir=$as_dir/ ;;
7224  esac
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7227    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237RANLIB=$ac_cv_prog_RANLIB
7238if test -n "$RANLIB"; then
7239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7240printf "%s\n" "$RANLIB" >&6; }
7241else
7242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243printf "%s\n" "no" >&6; }
7244fi
7245
7246
7247fi
7248if test -z "$ac_cv_prog_RANLIB"; then
7249  ac_ct_RANLIB=$RANLIB
7250  # Extract the first word of "ranlib", so it can be a program name with args.
7251set dummy ranlib; ac_word=$2
7252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253printf %s "checking for $ac_word... " >&6; }
7254if test ${ac_cv_prog_ac_ct_RANLIB+y}
7255then :
7256  printf %s "(cached) " >&6
7257else $as_nop
7258  if test -n "$ac_ct_RANLIB"; then
7259  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264  IFS=$as_save_IFS
7265  case $as_dir in #(((
7266    '') as_dir=./ ;;
7267    */) ;;
7268    *) as_dir=$as_dir/ ;;
7269  esac
7270    for ac_exec_ext in '' $ac_executable_extensions; do
7271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7272    ac_cv_prog_ac_ct_RANLIB="ranlib"
7273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7274    break 2
7275  fi
7276done
7277  done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7283if test -n "$ac_ct_RANLIB"; then
7284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7285printf "%s\n" "$ac_ct_RANLIB" >&6; }
7286else
7287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288printf "%s\n" "no" >&6; }
7289fi
7290
7291  if test "x$ac_ct_RANLIB" = x; then
7292    RANLIB=":"
7293  else
7294    case $cross_compiling:$ac_tool_warned in
7295yes:)
7296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298ac_tool_warned=yes ;;
7299esac
7300    RANLIB=$ac_ct_RANLIB
7301  fi
7302else
7303  RANLIB="$ac_cv_prog_RANLIB"
7304fi
7305
7306test -z "$RANLIB" && RANLIB=:
7307
7308
7309
7310
7311
7312
7313# Determine commands to create old-style static archives.
7314old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7315old_postinstall_cmds='chmod 644 $oldlib'
7316old_postuninstall_cmds=
7317
7318if test -n "$RANLIB"; then
7319  case $host_os in
7320  bitrig* | openbsd*)
7321    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7322    ;;
7323  *)
7324    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7325    ;;
7326  esac
7327  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7328fi
7329
7330case $host_os in
7331  darwin*)
7332    lock_old_archive_extraction=yes ;;
7333  *)
7334    lock_old_archive_extraction=no ;;
7335esac
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375# If no C compiler was specified, use CC.
7376LTCC=${LTCC-"$CC"}
7377
7378# If no C compiler flags were specified, use CFLAGS.
7379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7380
7381# Allow CC to be a program name with arguments.
7382compiler=$CC
7383
7384
7385# Check for command to grab the raw symbol name followed by C symbol from nm.
7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7387printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7388if test ${lt_cv_sys_global_symbol_pipe+y}
7389then :
7390  printf %s "(cached) " >&6
7391else $as_nop
7392
7393# These are sane defaults that work on at least a few old systems.
7394# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7395
7396# Character class describing NM global symbol codes.
7397symcode='[BCDEGRST]'
7398
7399# Regexp to match symbols that can be accessed directly from C.
7400sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7401
7402# Define system-specific variables.
7403case $host_os in
7404aix*)
7405  symcode='[BCDT]'
7406  ;;
7407cygwin* | mingw* | pw32* | cegcc*)
7408  symcode='[ABCDGISTW]'
7409  ;;
7410hpux*)
7411  if test ia64 = "$host_cpu"; then
7412    symcode='[ABCDEGRST]'
7413  fi
7414  ;;
7415irix* | nonstopux*)
7416  symcode='[BCDEGRST]'
7417  ;;
7418osf*)
7419  symcode='[BCDEGQRST]'
7420  ;;
7421solaris*)
7422  symcode='[BDRT]'
7423  ;;
7424sco3.2v5*)
7425  symcode='[DT]'
7426  ;;
7427sysv4.2uw2*)
7428  symcode='[DT]'
7429  ;;
7430sysv5* | sco5v6* | unixware* | OpenUNIX*)
7431  symcode='[ABDT]'
7432  ;;
7433sysv4)
7434  symcode='[DFNSTU]'
7435  ;;
7436esac
7437
7438# If we're using GNU nm, then use its standard symbol codes.
7439case `$NM -V 2>&1` in
7440*GNU* | *'with BFD'*)
7441  symcode='[ABCDGIRSTW]' ;;
7442esac
7443
7444if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7445  # Gets list of data symbols to import.
7446  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7447  # Adjust the below global symbol transforms to fixup imported variables.
7448  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7449  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7450  lt_c_name_lib_hook="\
7451  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7452  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7453else
7454  # Disable hooks by default.
7455  lt_cv_sys_global_symbol_to_import=
7456  lt_cdecl_hook=
7457  lt_c_name_hook=
7458  lt_c_name_lib_hook=
7459fi
7460
7461# Transform an extracted symbol line into a proper C declaration.
7462# Some systems (esp. on ia64) link data and code symbols differently,
7463# so use this general approach.
7464lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7465$lt_cdecl_hook\
7466" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7467" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7468
7469# Transform an extracted symbol line into symbol name and symbol address
7470lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7471$lt_c_name_hook\
7472" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7473" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7474
7475# Transform an extracted symbol line into symbol name with lib prefix and
7476# symbol address.
7477lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7478$lt_c_name_lib_hook\
7479" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7480" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7481" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7482
7483# Handle CRLF in mingw tool chain
7484opt_cr=
7485case $build_os in
7486mingw*)
7487  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7488  ;;
7489esac
7490
7491# Try without a prefix underscore, then with it.
7492for ac_symprfx in "" "_"; do
7493
7494  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7495  symxfrm="\\1 $ac_symprfx\\2 \\2"
7496
7497  # Write the raw and C identifiers.
7498  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7499    # Fake it for dumpbin and say T for any non-static function,
7500    # D for any global variable and I for any imported variable.
7501    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7502    # which start with @ or ?.
7503    lt_cv_sys_global_symbol_pipe="$AWK '"\
7504"     {last_section=section; section=\$ 3};"\
7505"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7506"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7507"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7508"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7509"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7510"     \$ 0!~/External *\|/{next};"\
7511"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7512"     {if(hide[section]) next};"\
7513"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7514"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7515"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7516"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7517"     ' prfx=^$ac_symprfx"
7518  else
7519    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7520  fi
7521  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7522
7523  # Check to see that the pipe works correctly.
7524  pipe_works=no
7525
7526  rm -f conftest*
7527  cat > conftest.$ac_ext <<_LT_EOF
7528#ifdef __cplusplus
7529extern "C" {
7530#endif
7531char nm_test_var;
7532void nm_test_func(void);
7533void nm_test_func(void){}
7534#ifdef __cplusplus
7535}
7536#endif
7537int main(){nm_test_var='a';nm_test_func();return(0);}
7538_LT_EOF
7539
7540  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541  (eval $ac_compile) 2>&5
7542  ac_status=$?
7543  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544  test $ac_status = 0; }; then
7545    # Now try to grab the symbols.
7546    nlist=conftest.nm
7547    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7548  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7549  ac_status=$?
7550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551  test $ac_status = 0; } && test -s "$nlist"; then
7552      # Try sorting and uniquifying the output.
7553      if sort "$nlist" | uniq > "$nlist"T; then
7554	mv -f "$nlist"T "$nlist"
7555      else
7556	rm -f "$nlist"T
7557      fi
7558
7559      # Make sure that we snagged all the symbols we need.
7560      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7561	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7562	  cat <<_LT_EOF > conftest.$ac_ext
7563/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7564#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7565/* DATA imports from DLLs on WIN32 can't be const, because runtime
7566   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7567# define LT_DLSYM_CONST
7568#elif defined __osf__
7569/* This system does not cope well with relocations in const data.  */
7570# define LT_DLSYM_CONST
7571#else
7572# define LT_DLSYM_CONST const
7573#endif
7574
7575#ifdef __cplusplus
7576extern "C" {
7577#endif
7578
7579_LT_EOF
7580	  # Now generate the symbol file.
7581	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7582
7583	  cat <<_LT_EOF >> conftest.$ac_ext
7584
7585/* The mapping between symbol names and symbols.  */
7586LT_DLSYM_CONST struct {
7587  const char *name;
7588  void       *address;
7589}
7590lt__PROGRAM__LTX_preloaded_symbols[] =
7591{
7592  { "@PROGRAM@", (void *) 0 },
7593_LT_EOF
7594	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7595	  cat <<\_LT_EOF >> conftest.$ac_ext
7596  {0, (void *) 0}
7597};
7598
7599/* This works around a problem in FreeBSD linker */
7600#ifdef FREEBSD_WORKAROUND
7601static const void *lt_preloaded_setup() {
7602  return lt__PROGRAM__LTX_preloaded_symbols;
7603}
7604#endif
7605
7606#ifdef __cplusplus
7607}
7608#endif
7609_LT_EOF
7610	  # Now try linking the two files.
7611	  mv conftest.$ac_objext conftstm.$ac_objext
7612	  lt_globsym_save_LIBS=$LIBS
7613	  lt_globsym_save_CFLAGS=$CFLAGS
7614	  LIBS=conftstm.$ac_objext
7615	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7616	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7617  (eval $ac_link) 2>&5
7618  ac_status=$?
7619  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7621	    pipe_works=yes
7622	  fi
7623	  LIBS=$lt_globsym_save_LIBS
7624	  CFLAGS=$lt_globsym_save_CFLAGS
7625	else
7626	  echo "cannot find nm_test_func in $nlist" >&5
7627	fi
7628      else
7629	echo "cannot find nm_test_var in $nlist" >&5
7630      fi
7631    else
7632      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7633    fi
7634  else
7635    echo "$progname: failed program was:" >&5
7636    cat conftest.$ac_ext >&5
7637  fi
7638  rm -rf conftest* conftst*
7639
7640  # Do not use the global_symbol_pipe unless it works.
7641  if test yes = "$pipe_works"; then
7642    break
7643  else
7644    lt_cv_sys_global_symbol_pipe=
7645  fi
7646done
7647
7648fi
7649
7650if test -z "$lt_cv_sys_global_symbol_pipe"; then
7651  lt_cv_sys_global_symbol_to_cdecl=
7652fi
7653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7655printf "%s\n" "failed" >&6; }
7656else
7657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7658printf "%s\n" "ok" >&6; }
7659fi
7660
7661# Response file support.
7662if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7663  nm_file_list_spec='@'
7664elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7665  nm_file_list_spec='@'
7666fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7705printf %s "checking for sysroot... " >&6; }
7706
7707# Check whether --with-sysroot was given.
7708if test ${with_sysroot+y}
7709then :
7710  withval=$with_sysroot;
7711else $as_nop
7712  with_sysroot=no
7713fi
7714
7715
7716lt_sysroot=
7717case $with_sysroot in #(
7718 yes)
7719   if test yes = "$GCC"; then
7720     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7721   fi
7722   ;; #(
7723 /*)
7724   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7725   ;; #(
7726 no|'')
7727   ;; #(
7728 *)
7729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7730printf "%s\n" "$with_sysroot" >&6; }
7731   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7732   ;;
7733esac
7734
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7736printf "%s\n" "${lt_sysroot:-no}" >&6; }
7737
7738
7739
7740
7741
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7743printf %s "checking for a working dd... " >&6; }
7744if test ${ac_cv_path_lt_DD+y}
7745then :
7746  printf %s "(cached) " >&6
7747else $as_nop
7748  printf 0123456789abcdef0123456789abcdef >conftest.i
7749cat conftest.i conftest.i >conftest2.i
7750: ${lt_DD:=$DD}
7751if test -z "$lt_DD"; then
7752  ac_path_lt_DD_found=false
7753  # Loop through the user's path and test for each of PROGNAME-LIST
7754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757  IFS=$as_save_IFS
7758  case $as_dir in #(((
7759    '') as_dir=./ ;;
7760    */) ;;
7761    *) as_dir=$as_dir/ ;;
7762  esac
7763    for ac_prog in dd
7764   do
7765    for ac_exec_ext in '' $ac_executable_extensions; do
7766      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7767      as_fn_executable_p "$ac_path_lt_DD" || continue
7768if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7769  cmp -s conftest.i conftest.out \
7770  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7771fi
7772      $ac_path_lt_DD_found && break 3
7773    done
7774  done
7775  done
7776IFS=$as_save_IFS
7777  if test -z "$ac_cv_path_lt_DD"; then
7778    :
7779  fi
7780else
7781  ac_cv_path_lt_DD=$lt_DD
7782fi
7783
7784rm -f conftest.i conftest2.i conftest.out
7785fi
7786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7787printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7788
7789
7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7791printf %s "checking how to truncate binary pipes... " >&6; }
7792if test ${lt_cv_truncate_bin+y}
7793then :
7794  printf %s "(cached) " >&6
7795else $as_nop
7796  printf 0123456789abcdef0123456789abcdef >conftest.i
7797cat conftest.i conftest.i >conftest2.i
7798lt_cv_truncate_bin=
7799if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7800  cmp -s conftest.i conftest.out \
7801  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7802fi
7803rm -f conftest.i conftest2.i conftest.out
7804test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7805fi
7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7807printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7808
7809
7810
7811
7812
7813
7814
7815# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7816func_cc_basename ()
7817{
7818    for cc_temp in $*""; do
7819      case $cc_temp in
7820        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7821        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7822        \-*) ;;
7823        *) break;;
7824      esac
7825    done
7826    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7827}
7828
7829# Check whether --enable-libtool-lock was given.
7830if test ${enable_libtool_lock+y}
7831then :
7832  enableval=$enable_libtool_lock;
7833fi
7834
7835test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7836
7837# Some flags need to be propagated to the compiler or linker for good
7838# libtool support.
7839case $host in
7840ia64-*-hpux*)
7841  # Find out what ABI is being produced by ac_compile, and set mode
7842  # options accordingly.
7843  echo 'int i;' > conftest.$ac_ext
7844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7845  (eval $ac_compile) 2>&5
7846  ac_status=$?
7847  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848  test $ac_status = 0; }; then
7849    case `$FILECMD conftest.$ac_objext` in
7850      *ELF-32*)
7851	HPUX_IA64_MODE=32
7852	;;
7853      *ELF-64*)
7854	HPUX_IA64_MODE=64
7855	;;
7856    esac
7857  fi
7858  rm -rf conftest*
7859  ;;
7860*-*-irix6*)
7861  # Find out what ABI is being produced by ac_compile, and set linker
7862  # options accordingly.
7863  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865  (eval $ac_compile) 2>&5
7866  ac_status=$?
7867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868  test $ac_status = 0; }; then
7869    if test yes = "$lt_cv_prog_gnu_ld"; then
7870      case `$FILECMD conftest.$ac_objext` in
7871	*32-bit*)
7872	  LD="${LD-ld} -melf32bsmip"
7873	  ;;
7874	*N32*)
7875	  LD="${LD-ld} -melf32bmipn32"
7876	  ;;
7877	*64-bit*)
7878	  LD="${LD-ld} -melf64bmip"
7879	;;
7880      esac
7881    else
7882      case `$FILECMD conftest.$ac_objext` in
7883	*32-bit*)
7884	  LD="${LD-ld} -32"
7885	  ;;
7886	*N32*)
7887	  LD="${LD-ld} -n32"
7888	  ;;
7889	*64-bit*)
7890	  LD="${LD-ld} -64"
7891	  ;;
7892      esac
7893    fi
7894  fi
7895  rm -rf conftest*
7896  ;;
7897
7898mips64*-*linux*)
7899  # Find out what ABI is being produced by ac_compile, and set linker
7900  # options accordingly.
7901  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7902  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903  (eval $ac_compile) 2>&5
7904  ac_status=$?
7905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906  test $ac_status = 0; }; then
7907    emul=elf
7908    case `$FILECMD conftest.$ac_objext` in
7909      *32-bit*)
7910	emul="${emul}32"
7911	;;
7912      *64-bit*)
7913	emul="${emul}64"
7914	;;
7915    esac
7916    case `$FILECMD conftest.$ac_objext` in
7917      *MSB*)
7918	emul="${emul}btsmip"
7919	;;
7920      *LSB*)
7921	emul="${emul}ltsmip"
7922	;;
7923    esac
7924    case `$FILECMD conftest.$ac_objext` in
7925      *N32*)
7926	emul="${emul}n32"
7927	;;
7928    esac
7929    LD="${LD-ld} -m $emul"
7930  fi
7931  rm -rf conftest*
7932  ;;
7933
7934x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7936  # Find out what ABI is being produced by ac_compile, and set linker
7937  # options accordingly.  Note that the listed cases only cover the
7938  # situations where additional linker options are needed (such as when
7939  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7940  # vice versa); the common cases where no linker options are needed do
7941  # not appear in the list.
7942  echo 'int i;' > conftest.$ac_ext
7943  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7944  (eval $ac_compile) 2>&5
7945  ac_status=$?
7946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947  test $ac_status = 0; }; then
7948    case `$FILECMD conftest.o` in
7949      *32-bit*)
7950	case $host in
7951	  x86_64-*kfreebsd*-gnu)
7952	    LD="${LD-ld} -m elf_i386_fbsd"
7953	    ;;
7954	  x86_64-*linux*)
7955	    case `$FILECMD conftest.o` in
7956	      *x86-64*)
7957		LD="${LD-ld} -m elf32_x86_64"
7958		;;
7959	      *)
7960		LD="${LD-ld} -m elf_i386"
7961		;;
7962	    esac
7963	    ;;
7964	  powerpc64le-*linux*)
7965	    LD="${LD-ld} -m elf32lppclinux"
7966	    ;;
7967	  powerpc64-*linux*)
7968	    LD="${LD-ld} -m elf32ppclinux"
7969	    ;;
7970	  s390x-*linux*)
7971	    LD="${LD-ld} -m elf_s390"
7972	    ;;
7973	  sparc64-*linux*)
7974	    LD="${LD-ld} -m elf32_sparc"
7975	    ;;
7976	esac
7977	;;
7978      *64-bit*)
7979	case $host in
7980	  x86_64-*kfreebsd*-gnu)
7981	    LD="${LD-ld} -m elf_x86_64_fbsd"
7982	    ;;
7983	  x86_64-*linux*)
7984	    LD="${LD-ld} -m elf_x86_64"
7985	    ;;
7986	  powerpcle-*linux*)
7987	    LD="${LD-ld} -m elf64lppc"
7988	    ;;
7989	  powerpc-*linux*)
7990	    LD="${LD-ld} -m elf64ppc"
7991	    ;;
7992	  s390*-*linux*|s390*-*tpf*)
7993	    LD="${LD-ld} -m elf64_s390"
7994	    ;;
7995	  sparc*-*linux*)
7996	    LD="${LD-ld} -m elf64_sparc"
7997	    ;;
7998	esac
7999	;;
8000    esac
8001  fi
8002  rm -rf conftest*
8003  ;;
8004
8005*-*-sco3.2v5*)
8006  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8007  SAVE_CFLAGS=$CFLAGS
8008  CFLAGS="$CFLAGS -belf"
8009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8010printf %s "checking whether the C compiler needs -belf... " >&6; }
8011if test ${lt_cv_cc_needs_belf+y}
8012then :
8013  printf %s "(cached) " >&6
8014else $as_nop
8015  ac_ext=c
8016ac_cpp='$CPP $CPPFLAGS'
8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023
8024int
8025main (void)
8026{
8027
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_link "$LINENO"
8033then :
8034  lt_cv_cc_needs_belf=yes
8035else $as_nop
8036  lt_cv_cc_needs_belf=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.beam \
8039    conftest$ac_exeext conftest.$ac_ext
8040     ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046fi
8047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8048printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8049  if test yes != "$lt_cv_cc_needs_belf"; then
8050    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8051    CFLAGS=$SAVE_CFLAGS
8052  fi
8053  ;;
8054*-*solaris*)
8055  # Find out what ABI is being produced by ac_compile, and set linker
8056  # options accordingly.
8057  echo 'int i;' > conftest.$ac_ext
8058  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8059  (eval $ac_compile) 2>&5
8060  ac_status=$?
8061  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8062  test $ac_status = 0; }; then
8063    case `$FILECMD conftest.o` in
8064    *64-bit*)
8065      case $lt_cv_prog_gnu_ld in
8066      yes*)
8067        case $host in
8068        i?86-*-solaris*|x86_64-*-solaris*)
8069          LD="${LD-ld} -m elf_x86_64"
8070          ;;
8071        sparc*-*-solaris*)
8072          LD="${LD-ld} -m elf64_sparc"
8073          ;;
8074        esac
8075        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8076        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8077          LD=${LD-ld}_sol2
8078        fi
8079        ;;
8080      *)
8081	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8082	  LD="${LD-ld} -64"
8083	fi
8084	;;
8085      esac
8086      ;;
8087    esac
8088  fi
8089  rm -rf conftest*
8090  ;;
8091esac
8092
8093need_locks=$enable_libtool_lock
8094
8095if test -n "$ac_tool_prefix"; then
8096  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8097set dummy ${ac_tool_prefix}mt; ac_word=$2
8098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099printf %s "checking for $ac_word... " >&6; }
8100if test ${ac_cv_prog_MANIFEST_TOOL+y}
8101then :
8102  printf %s "(cached) " >&6
8103else $as_nop
8104  if test -n "$MANIFEST_TOOL"; then
8105  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  case $as_dir in #(((
8112    '') as_dir=./ ;;
8113    */) ;;
8114    *) as_dir=$as_dir/ ;;
8115  esac
8116    for ac_exec_ext in '' $ac_executable_extensions; do
8117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8118    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123  done
8124IFS=$as_save_IFS
8125
8126fi
8127fi
8128MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8129if test -n "$MANIFEST_TOOL"; then
8130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8131printf "%s\n" "$MANIFEST_TOOL" >&6; }
8132else
8133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134printf "%s\n" "no" >&6; }
8135fi
8136
8137
8138fi
8139if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8140  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8141  # Extract the first word of "mt", so it can be a program name with args.
8142set dummy mt; ac_word=$2
8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144printf %s "checking for $ac_word... " >&6; }
8145if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8146then :
8147  printf %s "(cached) " >&6
8148else $as_nop
8149  if test -n "$ac_ct_MANIFEST_TOOL"; then
8150  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8151else
8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153for as_dir in $PATH
8154do
8155  IFS=$as_save_IFS
8156  case $as_dir in #(((
8157    '') as_dir=./ ;;
8158    */) ;;
8159    *) as_dir=$as_dir/ ;;
8160  esac
8161    for ac_exec_ext in '' $ac_executable_extensions; do
8162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8163    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8165    break 2
8166  fi
8167done
8168  done
8169IFS=$as_save_IFS
8170
8171fi
8172fi
8173ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8174if test -n "$ac_ct_MANIFEST_TOOL"; then
8175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8176printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8177else
8178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179printf "%s\n" "no" >&6; }
8180fi
8181
8182  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8183    MANIFEST_TOOL=":"
8184  else
8185    case $cross_compiling:$ac_tool_warned in
8186yes:)
8187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189ac_tool_warned=yes ;;
8190esac
8191    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8192  fi
8193else
8194  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8195fi
8196
8197test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8199printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8200if test ${lt_cv_path_mainfest_tool+y}
8201then :
8202  printf %s "(cached) " >&6
8203else $as_nop
8204  lt_cv_path_mainfest_tool=no
8205  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8206  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8207  cat conftest.err >&5
8208  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8209    lt_cv_path_mainfest_tool=yes
8210  fi
8211  rm -f conftest*
8212fi
8213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8214printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8215if test yes != "$lt_cv_path_mainfest_tool"; then
8216  MANIFEST_TOOL=:
8217fi
8218
8219
8220
8221
8222
8223
8224  case $host_os in
8225    rhapsody* | darwin*)
8226    if test -n "$ac_tool_prefix"; then
8227  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8228set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230printf %s "checking for $ac_word... " >&6; }
8231if test ${ac_cv_prog_DSYMUTIL+y}
8232then :
8233  printf %s "(cached) " >&6
8234else $as_nop
8235  if test -n "$DSYMUTIL"; then
8236  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  case $as_dir in #(((
8243    '') as_dir=./ ;;
8244    */) ;;
8245    *) as_dir=$as_dir/ ;;
8246  esac
8247    for ac_exec_ext in '' $ac_executable_extensions; do
8248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8249    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254  done
8255IFS=$as_save_IFS
8256
8257fi
8258fi
8259DSYMUTIL=$ac_cv_prog_DSYMUTIL
8260if test -n "$DSYMUTIL"; then
8261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8262printf "%s\n" "$DSYMUTIL" >&6; }
8263else
8264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265printf "%s\n" "no" >&6; }
8266fi
8267
8268
8269fi
8270if test -z "$ac_cv_prog_DSYMUTIL"; then
8271  ac_ct_DSYMUTIL=$DSYMUTIL
8272  # Extract the first word of "dsymutil", so it can be a program name with args.
8273set dummy dsymutil; ac_word=$2
8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275printf %s "checking for $ac_word... " >&6; }
8276if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8277then :
8278  printf %s "(cached) " >&6
8279else $as_nop
8280  if test -n "$ac_ct_DSYMUTIL"; then
8281  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8282else
8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286  IFS=$as_save_IFS
8287  case $as_dir in #(((
8288    '') as_dir=./ ;;
8289    */) ;;
8290    *) as_dir=$as_dir/ ;;
8291  esac
8292    for ac_exec_ext in '' $ac_executable_extensions; do
8293  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8294    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8295    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8296    break 2
8297  fi
8298done
8299  done
8300IFS=$as_save_IFS
8301
8302fi
8303fi
8304ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8305if test -n "$ac_ct_DSYMUTIL"; then
8306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8307printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8308else
8309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310printf "%s\n" "no" >&6; }
8311fi
8312
8313  if test "x$ac_ct_DSYMUTIL" = x; then
8314    DSYMUTIL=":"
8315  else
8316    case $cross_compiling:$ac_tool_warned in
8317yes:)
8318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320ac_tool_warned=yes ;;
8321esac
8322    DSYMUTIL=$ac_ct_DSYMUTIL
8323  fi
8324else
8325  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8326fi
8327
8328    if test -n "$ac_tool_prefix"; then
8329  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8330set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332printf %s "checking for $ac_word... " >&6; }
8333if test ${ac_cv_prog_NMEDIT+y}
8334then :
8335  printf %s "(cached) " >&6
8336else $as_nop
8337  if test -n "$NMEDIT"; then
8338  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8339else
8340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343  IFS=$as_save_IFS
8344  case $as_dir in #(((
8345    '') as_dir=./ ;;
8346    */) ;;
8347    *) as_dir=$as_dir/ ;;
8348  esac
8349    for ac_exec_ext in '' $ac_executable_extensions; do
8350  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8351    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8352    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8353    break 2
8354  fi
8355done
8356  done
8357IFS=$as_save_IFS
8358
8359fi
8360fi
8361NMEDIT=$ac_cv_prog_NMEDIT
8362if test -n "$NMEDIT"; then
8363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8364printf "%s\n" "$NMEDIT" >&6; }
8365else
8366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367printf "%s\n" "no" >&6; }
8368fi
8369
8370
8371fi
8372if test -z "$ac_cv_prog_NMEDIT"; then
8373  ac_ct_NMEDIT=$NMEDIT
8374  # Extract the first word of "nmedit", so it can be a program name with args.
8375set dummy nmedit; ac_word=$2
8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377printf %s "checking for $ac_word... " >&6; }
8378if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8379then :
8380  printf %s "(cached) " >&6
8381else $as_nop
8382  if test -n "$ac_ct_NMEDIT"; then
8383  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388  IFS=$as_save_IFS
8389  case $as_dir in #(((
8390    '') as_dir=./ ;;
8391    */) ;;
8392    *) as_dir=$as_dir/ ;;
8393  esac
8394    for ac_exec_ext in '' $ac_executable_extensions; do
8395  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8396    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8397    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8398    break 2
8399  fi
8400done
8401  done
8402IFS=$as_save_IFS
8403
8404fi
8405fi
8406ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8407if test -n "$ac_ct_NMEDIT"; then
8408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8409printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8410else
8411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412printf "%s\n" "no" >&6; }
8413fi
8414
8415  if test "x$ac_ct_NMEDIT" = x; then
8416    NMEDIT=":"
8417  else
8418    case $cross_compiling:$ac_tool_warned in
8419yes:)
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422ac_tool_warned=yes ;;
8423esac
8424    NMEDIT=$ac_ct_NMEDIT
8425  fi
8426else
8427  NMEDIT="$ac_cv_prog_NMEDIT"
8428fi
8429
8430    if test -n "$ac_tool_prefix"; then
8431  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8432set dummy ${ac_tool_prefix}lipo; ac_word=$2
8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434printf %s "checking for $ac_word... " >&6; }
8435if test ${ac_cv_prog_LIPO+y}
8436then :
8437  printf %s "(cached) " >&6
8438else $as_nop
8439  if test -n "$LIPO"; then
8440  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8441else
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445  IFS=$as_save_IFS
8446  case $as_dir in #(((
8447    '') as_dir=./ ;;
8448    */) ;;
8449    *) as_dir=$as_dir/ ;;
8450  esac
8451    for ac_exec_ext in '' $ac_executable_extensions; do
8452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8453    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8455    break 2
8456  fi
8457done
8458  done
8459IFS=$as_save_IFS
8460
8461fi
8462fi
8463LIPO=$ac_cv_prog_LIPO
8464if test -n "$LIPO"; then
8465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8466printf "%s\n" "$LIPO" >&6; }
8467else
8468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469printf "%s\n" "no" >&6; }
8470fi
8471
8472
8473fi
8474if test -z "$ac_cv_prog_LIPO"; then
8475  ac_ct_LIPO=$LIPO
8476  # Extract the first word of "lipo", so it can be a program name with args.
8477set dummy lipo; ac_word=$2
8478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479printf %s "checking for $ac_word... " >&6; }
8480if test ${ac_cv_prog_ac_ct_LIPO+y}
8481then :
8482  printf %s "(cached) " >&6
8483else $as_nop
8484  if test -n "$ac_ct_LIPO"; then
8485  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490  IFS=$as_save_IFS
8491  case $as_dir in #(((
8492    '') as_dir=./ ;;
8493    */) ;;
8494    *) as_dir=$as_dir/ ;;
8495  esac
8496    for ac_exec_ext in '' $ac_executable_extensions; do
8497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8498    ac_cv_prog_ac_ct_LIPO="lipo"
8499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8500    break 2
8501  fi
8502done
8503  done
8504IFS=$as_save_IFS
8505
8506fi
8507fi
8508ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8509if test -n "$ac_ct_LIPO"; then
8510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8511printf "%s\n" "$ac_ct_LIPO" >&6; }
8512else
8513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514printf "%s\n" "no" >&6; }
8515fi
8516
8517  if test "x$ac_ct_LIPO" = x; then
8518    LIPO=":"
8519  else
8520    case $cross_compiling:$ac_tool_warned in
8521yes:)
8522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524ac_tool_warned=yes ;;
8525esac
8526    LIPO=$ac_ct_LIPO
8527  fi
8528else
8529  LIPO="$ac_cv_prog_LIPO"
8530fi
8531
8532    if test -n "$ac_tool_prefix"; then
8533  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8534set dummy ${ac_tool_prefix}otool; ac_word=$2
8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536printf %s "checking for $ac_word... " >&6; }
8537if test ${ac_cv_prog_OTOOL+y}
8538then :
8539  printf %s "(cached) " >&6
8540else $as_nop
8541  if test -n "$OTOOL"; then
8542  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  case $as_dir in #(((
8549    '') as_dir=./ ;;
8550    */) ;;
8551    *) as_dir=$as_dir/ ;;
8552  esac
8553    for ac_exec_ext in '' $ac_executable_extensions; do
8554  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8555    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557    break 2
8558  fi
8559done
8560  done
8561IFS=$as_save_IFS
8562
8563fi
8564fi
8565OTOOL=$ac_cv_prog_OTOOL
8566if test -n "$OTOOL"; then
8567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8568printf "%s\n" "$OTOOL" >&6; }
8569else
8570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571printf "%s\n" "no" >&6; }
8572fi
8573
8574
8575fi
8576if test -z "$ac_cv_prog_OTOOL"; then
8577  ac_ct_OTOOL=$OTOOL
8578  # Extract the first word of "otool", so it can be a program name with args.
8579set dummy otool; ac_word=$2
8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581printf %s "checking for $ac_word... " >&6; }
8582if test ${ac_cv_prog_ac_ct_OTOOL+y}
8583then :
8584  printf %s "(cached) " >&6
8585else $as_nop
8586  if test -n "$ac_ct_OTOOL"; then
8587  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8588else
8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590for as_dir in $PATH
8591do
8592  IFS=$as_save_IFS
8593  case $as_dir in #(((
8594    '') as_dir=./ ;;
8595    */) ;;
8596    *) as_dir=$as_dir/ ;;
8597  esac
8598    for ac_exec_ext in '' $ac_executable_extensions; do
8599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8600    ac_cv_prog_ac_ct_OTOOL="otool"
8601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8602    break 2
8603  fi
8604done
8605  done
8606IFS=$as_save_IFS
8607
8608fi
8609fi
8610ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8611if test -n "$ac_ct_OTOOL"; then
8612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8613printf "%s\n" "$ac_ct_OTOOL" >&6; }
8614else
8615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616printf "%s\n" "no" >&6; }
8617fi
8618
8619  if test "x$ac_ct_OTOOL" = x; then
8620    OTOOL=":"
8621  else
8622    case $cross_compiling:$ac_tool_warned in
8623yes:)
8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626ac_tool_warned=yes ;;
8627esac
8628    OTOOL=$ac_ct_OTOOL
8629  fi
8630else
8631  OTOOL="$ac_cv_prog_OTOOL"
8632fi
8633
8634    if test -n "$ac_tool_prefix"; then
8635  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8636set dummy ${ac_tool_prefix}otool64; ac_word=$2
8637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638printf %s "checking for $ac_word... " >&6; }
8639if test ${ac_cv_prog_OTOOL64+y}
8640then :
8641  printf %s "(cached) " >&6
8642else $as_nop
8643  if test -n "$OTOOL64"; then
8644  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  case $as_dir in #(((
8651    '') as_dir=./ ;;
8652    */) ;;
8653    *) as_dir=$as_dir/ ;;
8654  esac
8655    for ac_exec_ext in '' $ac_executable_extensions; do
8656  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8657    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8659    break 2
8660  fi
8661done
8662  done
8663IFS=$as_save_IFS
8664
8665fi
8666fi
8667OTOOL64=$ac_cv_prog_OTOOL64
8668if test -n "$OTOOL64"; then
8669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8670printf "%s\n" "$OTOOL64" >&6; }
8671else
8672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673printf "%s\n" "no" >&6; }
8674fi
8675
8676
8677fi
8678if test -z "$ac_cv_prog_OTOOL64"; then
8679  ac_ct_OTOOL64=$OTOOL64
8680  # Extract the first word of "otool64", so it can be a program name with args.
8681set dummy otool64; ac_word=$2
8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683printf %s "checking for $ac_word... " >&6; }
8684if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8685then :
8686  printf %s "(cached) " >&6
8687else $as_nop
8688  if test -n "$ac_ct_OTOOL64"; then
8689  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8690else
8691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694  IFS=$as_save_IFS
8695  case $as_dir in #(((
8696    '') as_dir=./ ;;
8697    */) ;;
8698    *) as_dir=$as_dir/ ;;
8699  esac
8700    for ac_exec_ext in '' $ac_executable_extensions; do
8701  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8702    ac_cv_prog_ac_ct_OTOOL64="otool64"
8703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8704    break 2
8705  fi
8706done
8707  done
8708IFS=$as_save_IFS
8709
8710fi
8711fi
8712ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8713if test -n "$ac_ct_OTOOL64"; then
8714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8715printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8716else
8717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718printf "%s\n" "no" >&6; }
8719fi
8720
8721  if test "x$ac_ct_OTOOL64" = x; then
8722    OTOOL64=":"
8723  else
8724    case $cross_compiling:$ac_tool_warned in
8725yes:)
8726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8728ac_tool_warned=yes ;;
8729esac
8730    OTOOL64=$ac_ct_OTOOL64
8731  fi
8732else
8733  OTOOL64="$ac_cv_prog_OTOOL64"
8734fi
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8763printf %s "checking for -single_module linker flag... " >&6; }
8764if test ${lt_cv_apple_cc_single_mod+y}
8765then :
8766  printf %s "(cached) " >&6
8767else $as_nop
8768  lt_cv_apple_cc_single_mod=no
8769      if test -z "$LT_MULTI_MODULE"; then
8770	# By default we will add the -single_module flag. You can override
8771	# by either setting the environment variable LT_MULTI_MODULE
8772	# non-empty at configure time, or by adding -multi_module to the
8773	# link flags.
8774	rm -rf libconftest.dylib*
8775	echo "int foo(void){return 1;}" > conftest.c
8776	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8777-dynamiclib -Wl,-single_module conftest.c" >&5
8778	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8779	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8780        _lt_result=$?
8781	# If there is a non-empty error log, and "single_module"
8782	# appears in it, assume the flag caused a linker warning
8783        if test -s conftest.err && $GREP single_module conftest.err; then
8784	  cat conftest.err >&5
8785	# Otherwise, if the output was created with a 0 exit code from
8786	# the compiler, it worked.
8787	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8788	  lt_cv_apple_cc_single_mod=yes
8789	else
8790	  cat conftest.err >&5
8791	fi
8792	rm -rf libconftest.dylib*
8793	rm -f conftest.*
8794      fi
8795fi
8796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8797printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8798
8799    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8800printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8801if test ${lt_cv_ld_exported_symbols_list+y}
8802then :
8803  printf %s "(cached) " >&6
8804else $as_nop
8805  lt_cv_ld_exported_symbols_list=no
8806      save_LDFLAGS=$LDFLAGS
8807      echo "_main" > conftest.sym
8808      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810/* end confdefs.h.  */
8811
8812int
8813main (void)
8814{
8815
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_link "$LINENO"
8821then :
8822  lt_cv_ld_exported_symbols_list=yes
8823else $as_nop
8824  lt_cv_ld_exported_symbols_list=no
8825fi
8826rm -f core conftest.err conftest.$ac_objext conftest.beam \
8827    conftest$ac_exeext conftest.$ac_ext
8828	LDFLAGS=$save_LDFLAGS
8829
8830fi
8831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8832printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8833
8834    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8835printf %s "checking for -force_load linker flag... " >&6; }
8836if test ${lt_cv_ld_force_load+y}
8837then :
8838  printf %s "(cached) " >&6
8839else $as_nop
8840  lt_cv_ld_force_load=no
8841      cat > conftest.c << _LT_EOF
8842int forced_loaded() { return 2;}
8843_LT_EOF
8844      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8845      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8846      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8847      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8848      echo "$RANLIB libconftest.a" >&5
8849      $RANLIB libconftest.a 2>&5
8850      cat > conftest.c << _LT_EOF
8851int main() { return 0;}
8852_LT_EOF
8853      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8854      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8855      _lt_result=$?
8856      if test -s conftest.err && $GREP force_load conftest.err; then
8857	cat conftest.err >&5
8858      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8859	lt_cv_ld_force_load=yes
8860      else
8861	cat conftest.err >&5
8862      fi
8863        rm -f conftest.err libconftest.a conftest conftest.c
8864        rm -rf conftest.dSYM
8865
8866fi
8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8868printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8869    case $host_os in
8870    rhapsody* | darwin1.[012])
8871      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8872    darwin1.*)
8873      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8874    darwin*)
8875      case $MACOSX_DEPLOYMENT_TARGET,$host in
8876        10.[012],*|,*powerpc*-darwin[5-8]*)
8877          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8878        *)
8879          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8880      esac
8881    ;;
8882  esac
8883    if test yes = "$lt_cv_apple_cc_single_mod"; then
8884      _lt_dar_single_mod='$single_module'
8885    fi
8886    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8887      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8888    else
8889      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8890    fi
8891    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8892      _lt_dsymutil='~$DSYMUTIL $lib || :'
8893    else
8894      _lt_dsymutil=
8895    fi
8896    ;;
8897  esac
8898
8899# func_munge_path_list VARIABLE PATH
8900# -----------------------------------
8901# VARIABLE is name of variable containing _space_ separated list of
8902# directories to be munged by the contents of PATH, which is string
8903# having a format:
8904# "DIR[:DIR]:"
8905#       string "DIR[ DIR]" will be prepended to VARIABLE
8906# ":DIR[:DIR]"
8907#       string "DIR[ DIR]" will be appended to VARIABLE
8908# "DIRP[:DIRP]::[DIRA:]DIRA"
8909#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8910#       "DIRA[ DIRA]" will be appended to VARIABLE
8911# "DIR[:DIR]"
8912#       VARIABLE will be replaced by "DIR[ DIR]"
8913func_munge_path_list ()
8914{
8915    case x$2 in
8916    x)
8917        ;;
8918    *:)
8919        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8920        ;;
8921    x:*)
8922        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8923        ;;
8924    *::*)
8925        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8926        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8927        ;;
8928    *)
8929        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8930        ;;
8931    esac
8932}
8933
8934ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8935"
8936if test "x$ac_cv_header_dlfcn_h" = xyes
8937then :
8938  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8939
8940fi
8941
8942
8943
8944
8945
8946# Set options
8947
8948
8949
8950
8951  enable_win32_dll=no
8952
8953
8954            # Check whether --enable-shared was given.
8955if test ${enable_shared+y}
8956then :
8957  enableval=$enable_shared; p=${PACKAGE-default}
8958    case $enableval in
8959    yes) enable_shared=yes ;;
8960    no) enable_shared=no ;;
8961    *)
8962      enable_shared=no
8963      # Look at the argument we got.  We use all the common list separators.
8964      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8965      for pkg in $enableval; do
8966	IFS=$lt_save_ifs
8967	if test "X$pkg" = "X$p"; then
8968	  enable_shared=yes
8969	fi
8970      done
8971      IFS=$lt_save_ifs
8972      ;;
8973    esac
8974else $as_nop
8975  enable_shared=yes
8976fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988# Check whether --with-pic was given.
8989if test ${with_pic+y}
8990then :
8991  withval=$with_pic; lt_p=${PACKAGE-default}
8992    case $withval in
8993    yes|no) pic_mode=$withval ;;
8994    *)
8995      pic_mode=default
8996      # Look at the argument we got.  We use all the common list separators.
8997      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8998      for lt_pkg in $withval; do
8999	IFS=$lt_save_ifs
9000	if test "X$lt_pkg" = "X$lt_p"; then
9001	  pic_mode=yes
9002	fi
9003      done
9004      IFS=$lt_save_ifs
9005      ;;
9006    esac
9007else $as_nop
9008  pic_mode=default
9009fi
9010
9011
9012
9013
9014
9015
9016
9017
9018  # Check whether --enable-fast-install was given.
9019if test ${enable_fast_install+y}
9020then :
9021  enableval=$enable_fast_install; p=${PACKAGE-default}
9022    case $enableval in
9023    yes) enable_fast_install=yes ;;
9024    no) enable_fast_install=no ;;
9025    *)
9026      enable_fast_install=no
9027      # Look at the argument we got.  We use all the common list separators.
9028      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9029      for pkg in $enableval; do
9030	IFS=$lt_save_ifs
9031	if test "X$pkg" = "X$p"; then
9032	  enable_fast_install=yes
9033	fi
9034      done
9035      IFS=$lt_save_ifs
9036      ;;
9037    esac
9038else $as_nop
9039  enable_fast_install=yes
9040fi
9041
9042
9043
9044
9045
9046
9047
9048
9049  shared_archive_member_spec=
9050case $host,$enable_shared in
9051power*-*-aix[5-9]*,yes)
9052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9053printf %s "checking which variant of shared library versioning to provide... " >&6; }
9054
9055# Check whether --with-aix-soname was given.
9056if test ${with_aix_soname+y}
9057then :
9058  withval=$with_aix_soname; case $withval in
9059    aix|svr4|both)
9060      ;;
9061    *)
9062      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9063      ;;
9064    esac
9065    lt_cv_with_aix_soname=$with_aix_soname
9066else $as_nop
9067  if test ${lt_cv_with_aix_soname+y}
9068then :
9069  printf %s "(cached) " >&6
9070else $as_nop
9071  lt_cv_with_aix_soname=aix
9072fi
9073
9074    with_aix_soname=$lt_cv_with_aix_soname
9075fi
9076
9077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9078printf "%s\n" "$with_aix_soname" >&6; }
9079  if test aix != "$with_aix_soname"; then
9080    # For the AIX way of multilib, we name the shared archive member
9081    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9082    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9083    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9084    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9085    if test 64 = "${OBJECT_MODE-32}"; then
9086      shared_archive_member_spec=shr_64
9087    else
9088      shared_archive_member_spec=shr
9089    fi
9090  fi
9091  ;;
9092*)
9093  with_aix_soname=aix
9094  ;;
9095esac
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106# This can be used to rebuild libtool when needed
9107LIBTOOL_DEPS=$ltmain
9108
9109# Always use our own libtool.
9110LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141test -z "$LN_S" && LN_S="ln -s"
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156if test -n "${ZSH_VERSION+set}"; then
9157   setopt NO_GLOB_SUBST
9158fi
9159
9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9161printf %s "checking for objdir... " >&6; }
9162if test ${lt_cv_objdir+y}
9163then :
9164  printf %s "(cached) " >&6
9165else $as_nop
9166  rm -f .libs 2>/dev/null
9167mkdir .libs 2>/dev/null
9168if test -d .libs; then
9169  lt_cv_objdir=.libs
9170else
9171  # MS-DOS does not allow filenames that begin with a dot.
9172  lt_cv_objdir=_libs
9173fi
9174rmdir .libs 2>/dev/null
9175fi
9176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9177printf "%s\n" "$lt_cv_objdir" >&6; }
9178objdir=$lt_cv_objdir
9179
9180
9181
9182
9183
9184printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9185
9186
9187
9188
9189case $host_os in
9190aix3*)
9191  # AIX sometimes has problems with the GCC collect2 program.  For some
9192  # reason, if we set the COLLECT_NAMES environment variable, the problems
9193  # vanish in a puff of smoke.
9194  if test set != "${COLLECT_NAMES+set}"; then
9195    COLLECT_NAMES=
9196    export COLLECT_NAMES
9197  fi
9198  ;;
9199esac
9200
9201# Global variables:
9202ofile=libtool
9203can_build_shared=yes
9204
9205# All known linkers require a '.a' archive for static linking (except MSVC and
9206# ICC, which need '.lib').
9207libext=a
9208
9209with_gnu_ld=$lt_cv_prog_gnu_ld
9210
9211old_CC=$CC
9212old_CFLAGS=$CFLAGS
9213
9214# Set sane defaults for various variables
9215test -z "$CC" && CC=cc
9216test -z "$LTCC" && LTCC=$CC
9217test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9218test -z "$LD" && LD=ld
9219test -z "$ac_objext" && ac_objext=o
9220
9221func_cc_basename $compiler
9222cc_basename=$func_cc_basename_result
9223
9224
9225# Only perform the check for file, if the check method requires it
9226test -z "$MAGIC_CMD" && MAGIC_CMD=file
9227case $deplibs_check_method in
9228file_magic*)
9229  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9230    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9231printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9232if test ${lt_cv_path_MAGIC_CMD+y}
9233then :
9234  printf %s "(cached) " >&6
9235else $as_nop
9236  case $MAGIC_CMD in
9237[\\/*] |  ?:[\\/]*)
9238  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9239  ;;
9240*)
9241  lt_save_MAGIC_CMD=$MAGIC_CMD
9242  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9243  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9244  for ac_dir in $ac_dummy; do
9245    IFS=$lt_save_ifs
9246    test -z "$ac_dir" && ac_dir=.
9247    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9248      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9249      if test -n "$file_magic_test_file"; then
9250	case $deplibs_check_method in
9251	"file_magic "*)
9252	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9253	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9254	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9255	    $EGREP "$file_magic_regex" > /dev/null; then
9256	    :
9257	  else
9258	    cat <<_LT_EOF 1>&2
9259
9260*** Warning: the command libtool uses to detect shared libraries,
9261*** $file_magic_cmd, produces output that libtool cannot recognize.
9262*** The result is that libtool may fail to recognize shared libraries
9263*** as such.  This will affect the creation of libtool libraries that
9264*** depend on shared libraries, but programs linked with such libtool
9265*** libraries will work regardless of this problem.  Nevertheless, you
9266*** may want to report the problem to your system manager and/or to
9267*** bug-libtool@gnu.org
9268
9269_LT_EOF
9270	  fi ;;
9271	esac
9272      fi
9273      break
9274    fi
9275  done
9276  IFS=$lt_save_ifs
9277  MAGIC_CMD=$lt_save_MAGIC_CMD
9278  ;;
9279esac
9280fi
9281
9282MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9283if test -n "$MAGIC_CMD"; then
9284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9285printf "%s\n" "$MAGIC_CMD" >&6; }
9286else
9287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288printf "%s\n" "no" >&6; }
9289fi
9290
9291
9292
9293
9294
9295if test -z "$lt_cv_path_MAGIC_CMD"; then
9296  if test -n "$ac_tool_prefix"; then
9297    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9298printf %s "checking for file... " >&6; }
9299if test ${lt_cv_path_MAGIC_CMD+y}
9300then :
9301  printf %s "(cached) " >&6
9302else $as_nop
9303  case $MAGIC_CMD in
9304[\\/*] |  ?:[\\/]*)
9305  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9306  ;;
9307*)
9308  lt_save_MAGIC_CMD=$MAGIC_CMD
9309  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9310  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9311  for ac_dir in $ac_dummy; do
9312    IFS=$lt_save_ifs
9313    test -z "$ac_dir" && ac_dir=.
9314    if test -f "$ac_dir/file"; then
9315      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9316      if test -n "$file_magic_test_file"; then
9317	case $deplibs_check_method in
9318	"file_magic "*)
9319	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9320	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9321	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9322	    $EGREP "$file_magic_regex" > /dev/null; then
9323	    :
9324	  else
9325	    cat <<_LT_EOF 1>&2
9326
9327*** Warning: the command libtool uses to detect shared libraries,
9328*** $file_magic_cmd, produces output that libtool cannot recognize.
9329*** The result is that libtool may fail to recognize shared libraries
9330*** as such.  This will affect the creation of libtool libraries that
9331*** depend on shared libraries, but programs linked with such libtool
9332*** libraries will work regardless of this problem.  Nevertheless, you
9333*** may want to report the problem to your system manager and/or to
9334*** bug-libtool@gnu.org
9335
9336_LT_EOF
9337	  fi ;;
9338	esac
9339      fi
9340      break
9341    fi
9342  done
9343  IFS=$lt_save_ifs
9344  MAGIC_CMD=$lt_save_MAGIC_CMD
9345  ;;
9346esac
9347fi
9348
9349MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9350if test -n "$MAGIC_CMD"; then
9351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9352printf "%s\n" "$MAGIC_CMD" >&6; }
9353else
9354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355printf "%s\n" "no" >&6; }
9356fi
9357
9358
9359  else
9360    MAGIC_CMD=:
9361  fi
9362fi
9363
9364  fi
9365  ;;
9366esac
9367
9368# Use C for the default configuration in the libtool script
9369
9370lt_save_CC=$CC
9371ac_ext=c
9372ac_cpp='$CPP $CPPFLAGS'
9373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9375ac_compiler_gnu=$ac_cv_c_compiler_gnu
9376
9377
9378# Source file extension for C test sources.
9379ac_ext=c
9380
9381# Object file extension for compiled C test sources.
9382objext=o
9383objext=$objext
9384
9385# Code to be used in simple compile tests
9386lt_simple_compile_test_code="int some_variable = 0;"
9387
9388# Code to be used in simple link tests
9389lt_simple_link_test_code='int main(){return(0);}'
9390
9391
9392
9393
9394
9395
9396
9397# If no C compiler was specified, use CC.
9398LTCC=${LTCC-"$CC"}
9399
9400# If no C compiler flags were specified, use CFLAGS.
9401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9402
9403# Allow CC to be a program name with arguments.
9404compiler=$CC
9405
9406# Save the default compiler, since it gets overwritten when the other
9407# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9408compiler_DEFAULT=$CC
9409
9410# save warnings/boilerplate of simple test code
9411ac_outfile=conftest.$ac_objext
9412echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9413eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9414_lt_compiler_boilerplate=`cat conftest.err`
9415$RM conftest*
9416
9417ac_outfile=conftest.$ac_objext
9418echo "$lt_simple_link_test_code" >conftest.$ac_ext
9419eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9420_lt_linker_boilerplate=`cat conftest.err`
9421$RM -r conftest*
9422
9423
9424## CAVEAT EMPTOR:
9425## There is no encapsulation within the following macros, do not change
9426## the running order or otherwise move them around unless you know exactly
9427## what you are doing...
9428if test -n "$compiler"; then
9429
9430lt_prog_compiler_no_builtin_flag=
9431
9432if test yes = "$GCC"; then
9433  case $cc_basename in
9434  nvcc*)
9435    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9436  *)
9437    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9438  esac
9439
9440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9441printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9442if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9443then :
9444  printf %s "(cached) " >&6
9445else $as_nop
9446  lt_cv_prog_compiler_rtti_exceptions=no
9447   ac_outfile=conftest.$ac_objext
9448   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9449   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9450   # Insert the option either (1) after the last *FLAGS variable, or
9451   # (2) before a word containing "conftest.", or (3) at the end.
9452   # Note that $ac_compile itself does not contain backslashes and begins
9453   # with a dollar sign (not a hyphen), so the echo should work correctly.
9454   # The option is referenced via a variable to avoid confusing sed.
9455   lt_compile=`echo "$ac_compile" | $SED \
9456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9458   -e 's:$: $lt_compiler_flag:'`
9459   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9460   (eval "$lt_compile" 2>conftest.err)
9461   ac_status=$?
9462   cat conftest.err >&5
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   if (exit $ac_status) && test -s "$ac_outfile"; then
9465     # The compiler can only warn and ignore the option if not recognized
9466     # So say no if there are warnings other than the usual output.
9467     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9468     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9469     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9470       lt_cv_prog_compiler_rtti_exceptions=yes
9471     fi
9472   fi
9473   $RM conftest*
9474
9475fi
9476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9477printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9478
9479if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9480    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9481else
9482    :
9483fi
9484
9485fi
9486
9487
9488
9489
9490
9491
9492  lt_prog_compiler_wl=
9493lt_prog_compiler_pic=
9494lt_prog_compiler_static=
9495
9496
9497  if test yes = "$GCC"; then
9498    lt_prog_compiler_wl='-Wl,'
9499    lt_prog_compiler_static='-static'
9500
9501    case $host_os in
9502      aix*)
9503      # All AIX code is PIC.
9504      if test ia64 = "$host_cpu"; then
9505	# AIX 5 now supports IA64 processor
9506	lt_prog_compiler_static='-Bstatic'
9507      fi
9508      lt_prog_compiler_pic='-fPIC'
9509      ;;
9510
9511    amigaos*)
9512      case $host_cpu in
9513      powerpc)
9514            # see comment about AmigaOS4 .so support
9515            lt_prog_compiler_pic='-fPIC'
9516        ;;
9517      m68k)
9518            # FIXME: we need at least 68020 code to build shared libraries, but
9519            # adding the '-m68020' flag to GCC prevents building anything better,
9520            # like '-m68040'.
9521            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9522        ;;
9523      esac
9524      ;;
9525
9526    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9527      # PIC is the default for these OSes.
9528      ;;
9529
9530    mingw* | cygwin* | pw32* | os2* | cegcc*)
9531      # This hack is so that the source file can tell whether it is being
9532      # built for inclusion in a dll (and should export symbols for example).
9533      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9534      # (--disable-auto-import) libraries
9535      lt_prog_compiler_pic='-DDLL_EXPORT'
9536      case $host_os in
9537      os2*)
9538	lt_prog_compiler_static='$wl-static'
9539	;;
9540      esac
9541      ;;
9542
9543    darwin* | rhapsody*)
9544      # PIC is the default on this platform
9545      # Common symbols not allowed in MH_DYLIB files
9546      lt_prog_compiler_pic='-fno-common'
9547      ;;
9548
9549    haiku*)
9550      # PIC is the default for Haiku.
9551      # The "-static" flag exists, but is broken.
9552      lt_prog_compiler_static=
9553      ;;
9554
9555    hpux*)
9556      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9557      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9558      # sets the default TLS model and affects inlining.
9559      case $host_cpu in
9560      hppa*64*)
9561	# +Z the default
9562	;;
9563      *)
9564	lt_prog_compiler_pic='-fPIC'
9565	;;
9566      esac
9567      ;;
9568
9569    interix[3-9]*)
9570      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9571      # Instead, we relocate shared libraries at runtime.
9572      ;;
9573
9574    msdosdjgpp*)
9575      # Just because we use GCC doesn't mean we suddenly get shared libraries
9576      # on systems that don't support them.
9577      lt_prog_compiler_can_build_shared=no
9578      enable_shared=no
9579      ;;
9580
9581    *nto* | *qnx*)
9582      # QNX uses GNU C++, but need to define -shared option too, otherwise
9583      # it will coredump.
9584      lt_prog_compiler_pic='-fPIC -shared'
9585      ;;
9586
9587    sysv4*MP*)
9588      if test -d /usr/nec; then
9589	lt_prog_compiler_pic=-Kconform_pic
9590      fi
9591      ;;
9592
9593    *)
9594      lt_prog_compiler_pic='-fPIC'
9595      ;;
9596    esac
9597
9598    case $cc_basename in
9599    nvcc*) # Cuda Compiler Driver 2.2
9600      lt_prog_compiler_wl='-Xlinker '
9601      if test -n "$lt_prog_compiler_pic"; then
9602        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9603      fi
9604      ;;
9605    esac
9606  else
9607    # PORTME Check for flag to pass linker flags through the system compiler.
9608    case $host_os in
9609    aix*)
9610      lt_prog_compiler_wl='-Wl,'
9611      if test ia64 = "$host_cpu"; then
9612	# AIX 5 now supports IA64 processor
9613	lt_prog_compiler_static='-Bstatic'
9614      else
9615	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9616      fi
9617      ;;
9618
9619    darwin* | rhapsody*)
9620      # PIC is the default on this platform
9621      # Common symbols not allowed in MH_DYLIB files
9622      lt_prog_compiler_pic='-fno-common'
9623      case $cc_basename in
9624      nagfor*)
9625        # NAG Fortran compiler
9626        lt_prog_compiler_wl='-Wl,-Wl,,'
9627        lt_prog_compiler_pic='-PIC'
9628        lt_prog_compiler_static='-Bstatic'
9629        ;;
9630      esac
9631      ;;
9632
9633    mingw* | cygwin* | pw32* | os2* | cegcc*)
9634      # This hack is so that the source file can tell whether it is being
9635      # built for inclusion in a dll (and should export symbols for example).
9636      lt_prog_compiler_pic='-DDLL_EXPORT'
9637      case $host_os in
9638      os2*)
9639	lt_prog_compiler_static='$wl-static'
9640	;;
9641      esac
9642      ;;
9643
9644    hpux9* | hpux10* | hpux11*)
9645      lt_prog_compiler_wl='-Wl,'
9646      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9647      # not for PA HP-UX.
9648      case $host_cpu in
9649      hppa*64*|ia64*)
9650	# +Z the default
9651	;;
9652      *)
9653	lt_prog_compiler_pic='+Z'
9654	;;
9655      esac
9656      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9657      lt_prog_compiler_static='$wl-a ${wl}archive'
9658      ;;
9659
9660    irix5* | irix6* | nonstopux*)
9661      lt_prog_compiler_wl='-Wl,'
9662      # PIC (with -KPIC) is the default.
9663      lt_prog_compiler_static='-non_shared'
9664      ;;
9665
9666    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9667      case $cc_basename in
9668      # old Intel for x86_64, which still supported -KPIC.
9669      ecc*)
9670	lt_prog_compiler_wl='-Wl,'
9671	lt_prog_compiler_pic='-KPIC'
9672	lt_prog_compiler_static='-static'
9673        ;;
9674      # icc used to be incompatible with GCC.
9675      # ICC 10 doesn't accept -KPIC any more.
9676      icc* | ifort*)
9677	lt_prog_compiler_wl='-Wl,'
9678	lt_prog_compiler_pic='-fPIC'
9679	lt_prog_compiler_static='-static'
9680        ;;
9681      # Lahey Fortran 8.1.
9682      lf95*)
9683	lt_prog_compiler_wl='-Wl,'
9684	lt_prog_compiler_pic='--shared'
9685	lt_prog_compiler_static='--static'
9686	;;
9687      nagfor*)
9688	# NAG Fortran compiler
9689	lt_prog_compiler_wl='-Wl,-Wl,,'
9690	lt_prog_compiler_pic='-PIC'
9691	lt_prog_compiler_static='-Bstatic'
9692	;;
9693      tcc*)
9694	# Fabrice Bellard et al's Tiny C Compiler
9695	lt_prog_compiler_wl='-Wl,'
9696	lt_prog_compiler_pic='-fPIC'
9697	lt_prog_compiler_static='-static'
9698	;;
9699      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9700        # Portland Group compilers (*not* the Pentium gcc compiler,
9701	# which looks to be a dead project)
9702	lt_prog_compiler_wl='-Wl,'
9703	lt_prog_compiler_pic='-fpic'
9704	lt_prog_compiler_static='-Bstatic'
9705        ;;
9706      ccc*)
9707        lt_prog_compiler_wl='-Wl,'
9708        # All Alpha code is PIC.
9709        lt_prog_compiler_static='-non_shared'
9710        ;;
9711      xl* | bgxl* | bgf* | mpixl*)
9712	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9713	lt_prog_compiler_wl='-Wl,'
9714	lt_prog_compiler_pic='-qpic'
9715	lt_prog_compiler_static='-qstaticlink'
9716	;;
9717      *)
9718	case `$CC -V 2>&1 | $SED 5q` in
9719	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9720	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9721	  lt_prog_compiler_pic='-KPIC'
9722	  lt_prog_compiler_static='-Bstatic'
9723	  lt_prog_compiler_wl=''
9724	  ;;
9725	*Sun\ F* | *Sun*Fortran*)
9726	  lt_prog_compiler_pic='-KPIC'
9727	  lt_prog_compiler_static='-Bstatic'
9728	  lt_prog_compiler_wl='-Qoption ld '
9729	  ;;
9730	*Sun\ C*)
9731	  # Sun C 5.9
9732	  lt_prog_compiler_pic='-KPIC'
9733	  lt_prog_compiler_static='-Bstatic'
9734	  lt_prog_compiler_wl='-Wl,'
9735	  ;;
9736        *Intel*\ [CF]*Compiler*)
9737	  lt_prog_compiler_wl='-Wl,'
9738	  lt_prog_compiler_pic='-fPIC'
9739	  lt_prog_compiler_static='-static'
9740	  ;;
9741	*Portland\ Group*)
9742	  lt_prog_compiler_wl='-Wl,'
9743	  lt_prog_compiler_pic='-fpic'
9744	  lt_prog_compiler_static='-Bstatic'
9745	  ;;
9746	esac
9747	;;
9748      esac
9749      ;;
9750
9751    newsos6)
9752      lt_prog_compiler_pic='-KPIC'
9753      lt_prog_compiler_static='-Bstatic'
9754      ;;
9755
9756    *nto* | *qnx*)
9757      # QNX uses GNU C++, but need to define -shared option too, otherwise
9758      # it will coredump.
9759      lt_prog_compiler_pic='-fPIC -shared'
9760      ;;
9761
9762    osf3* | osf4* | osf5*)
9763      lt_prog_compiler_wl='-Wl,'
9764      # All OSF/1 code is PIC.
9765      lt_prog_compiler_static='-non_shared'
9766      ;;
9767
9768    rdos*)
9769      lt_prog_compiler_static='-non_shared'
9770      ;;
9771
9772    solaris*)
9773      lt_prog_compiler_pic='-KPIC'
9774      lt_prog_compiler_static='-Bstatic'
9775      case $cc_basename in
9776      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9777	lt_prog_compiler_wl='-Qoption ld ';;
9778      *)
9779	lt_prog_compiler_wl='-Wl,';;
9780      esac
9781      ;;
9782
9783    sunos4*)
9784      lt_prog_compiler_wl='-Qoption ld '
9785      lt_prog_compiler_pic='-PIC'
9786      lt_prog_compiler_static='-Bstatic'
9787      ;;
9788
9789    sysv4 | sysv4.2uw2* | sysv4.3*)
9790      lt_prog_compiler_wl='-Wl,'
9791      lt_prog_compiler_pic='-KPIC'
9792      lt_prog_compiler_static='-Bstatic'
9793      ;;
9794
9795    sysv4*MP*)
9796      if test -d /usr/nec; then
9797	lt_prog_compiler_pic='-Kconform_pic'
9798	lt_prog_compiler_static='-Bstatic'
9799      fi
9800      ;;
9801
9802    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9803      lt_prog_compiler_wl='-Wl,'
9804      lt_prog_compiler_pic='-KPIC'
9805      lt_prog_compiler_static='-Bstatic'
9806      ;;
9807
9808    unicos*)
9809      lt_prog_compiler_wl='-Wl,'
9810      lt_prog_compiler_can_build_shared=no
9811      ;;
9812
9813    uts4*)
9814      lt_prog_compiler_pic='-pic'
9815      lt_prog_compiler_static='-Bstatic'
9816      ;;
9817
9818    *)
9819      lt_prog_compiler_can_build_shared=no
9820      ;;
9821    esac
9822  fi
9823
9824case $host_os in
9825  # For platforms that do not support PIC, -DPIC is meaningless:
9826  *djgpp*)
9827    lt_prog_compiler_pic=
9828    ;;
9829  *)
9830    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9831    ;;
9832esac
9833
9834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9835printf %s "checking for $compiler option to produce PIC... " >&6; }
9836if test ${lt_cv_prog_compiler_pic+y}
9837then :
9838  printf %s "(cached) " >&6
9839else $as_nop
9840  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9841fi
9842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9843printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9844lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9845
9846#
9847# Check to make sure the PIC flag actually works.
9848#
9849if test -n "$lt_prog_compiler_pic"; then
9850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9851printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9852if test ${lt_cv_prog_compiler_pic_works+y}
9853then :
9854  printf %s "(cached) " >&6
9855else $as_nop
9856  lt_cv_prog_compiler_pic_works=no
9857   ac_outfile=conftest.$ac_objext
9858   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9860   # Insert the option either (1) after the last *FLAGS variable, or
9861   # (2) before a word containing "conftest.", or (3) at the end.
9862   # Note that $ac_compile itself does not contain backslashes and begins
9863   # with a dollar sign (not a hyphen), so the echo should work correctly.
9864   # The option is referenced via a variable to avoid confusing sed.
9865   lt_compile=`echo "$ac_compile" | $SED \
9866   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868   -e 's:$: $lt_compiler_flag:'`
9869   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9870   (eval "$lt_compile" 2>conftest.err)
9871   ac_status=$?
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   if (exit $ac_status) && test -s "$ac_outfile"; then
9875     # The compiler can only warn and ignore the option if not recognized
9876     # So say no if there are warnings other than the usual output.
9877     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9878     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9880       lt_cv_prog_compiler_pic_works=yes
9881     fi
9882   fi
9883   $RM conftest*
9884
9885fi
9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9887printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9888
9889if test yes = "$lt_cv_prog_compiler_pic_works"; then
9890    case $lt_prog_compiler_pic in
9891     "" | " "*) ;;
9892     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9893     esac
9894else
9895    lt_prog_compiler_pic=
9896     lt_prog_compiler_can_build_shared=no
9897fi
9898
9899fi
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911#
9912# Check to make sure the static flag actually works.
9913#
9914wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9916printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9917if test ${lt_cv_prog_compiler_static_works+y}
9918then :
9919  printf %s "(cached) " >&6
9920else $as_nop
9921  lt_cv_prog_compiler_static_works=no
9922   save_LDFLAGS=$LDFLAGS
9923   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9924   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9925   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9926     # The linker can only warn and ignore the option if not recognized
9927     # So say no if there are warnings
9928     if test -s conftest.err; then
9929       # Append any errors to the config.log.
9930       cat conftest.err 1>&5
9931       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9932       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9933       if diff conftest.exp conftest.er2 >/dev/null; then
9934         lt_cv_prog_compiler_static_works=yes
9935       fi
9936     else
9937       lt_cv_prog_compiler_static_works=yes
9938     fi
9939   fi
9940   $RM -r conftest*
9941   LDFLAGS=$save_LDFLAGS
9942
9943fi
9944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9945printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9946
9947if test yes = "$lt_cv_prog_compiler_static_works"; then
9948    :
9949else
9950    lt_prog_compiler_static=
9951fi
9952
9953
9954
9955
9956
9957
9958
9959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9960printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9961if test ${lt_cv_prog_compiler_c_o+y}
9962then :
9963  printf %s "(cached) " >&6
9964else $as_nop
9965  lt_cv_prog_compiler_c_o=no
9966   $RM -r conftest 2>/dev/null
9967   mkdir conftest
9968   cd conftest
9969   mkdir out
9970   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971
9972   lt_compiler_flag="-o out/conftest2.$ac_objext"
9973   # Insert the option either (1) after the last *FLAGS variable, or
9974   # (2) before a word containing "conftest.", or (3) at the end.
9975   # Note that $ac_compile itself does not contain backslashes and begins
9976   # with a dollar sign (not a hyphen), so the echo should work correctly.
9977   lt_compile=`echo "$ac_compile" | $SED \
9978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980   -e 's:$: $lt_compiler_flag:'`
9981   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9982   (eval "$lt_compile" 2>out/conftest.err)
9983   ac_status=$?
9984   cat out/conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9987   then
9988     # The compiler can only warn and ignore the option if not recognized
9989     # So say no if there are warnings
9990     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9991     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9992     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9993       lt_cv_prog_compiler_c_o=yes
9994     fi
9995   fi
9996   chmod u+w . 2>&5
9997   $RM conftest*
9998   # SGI C++ compiler will create directory out/ii_files/ for
9999   # template instantiation
10000   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10001   $RM out/* && rmdir out
10002   cd ..
10003   $RM -r conftest
10004   $RM conftest*
10005
10006fi
10007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10008printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10009
10010
10011
10012
10013
10014
10015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10016printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10017if test ${lt_cv_prog_compiler_c_o+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  lt_cv_prog_compiler_c_o=no
10022   $RM -r conftest 2>/dev/null
10023   mkdir conftest
10024   cd conftest
10025   mkdir out
10026   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027
10028   lt_compiler_flag="-o out/conftest2.$ac_objext"
10029   # Insert the option either (1) after the last *FLAGS variable, or
10030   # (2) before a word containing "conftest.", or (3) at the end.
10031   # Note that $ac_compile itself does not contain backslashes and begins
10032   # with a dollar sign (not a hyphen), so the echo should work correctly.
10033   lt_compile=`echo "$ac_compile" | $SED \
10034   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036   -e 's:$: $lt_compiler_flag:'`
10037   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10038   (eval "$lt_compile" 2>out/conftest.err)
10039   ac_status=$?
10040   cat out/conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10043   then
10044     # The compiler can only warn and ignore the option if not recognized
10045     # So say no if there are warnings
10046     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10047     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10048     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10049       lt_cv_prog_compiler_c_o=yes
10050     fi
10051   fi
10052   chmod u+w . 2>&5
10053   $RM conftest*
10054   # SGI C++ compiler will create directory out/ii_files/ for
10055   # template instantiation
10056   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10057   $RM out/* && rmdir out
10058   cd ..
10059   $RM -r conftest
10060   $RM conftest*
10061
10062fi
10063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10064printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10065
10066
10067
10068
10069hard_links=nottested
10070if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10071  # do not overwrite the value of need_locks provided by the user
10072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10073printf %s "checking if we can lock with hard links... " >&6; }
10074  hard_links=yes
10075  $RM conftest*
10076  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10077  touch conftest.a
10078  ln conftest.a conftest.b 2>&5 || hard_links=no
10079  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10081printf "%s\n" "$hard_links" >&6; }
10082  if test no = "$hard_links"; then
10083    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10084printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10085    need_locks=warn
10086  fi
10087else
10088  need_locks=no
10089fi
10090
10091
10092
10093
10094
10095
10096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10097printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10098
10099  runpath_var=
10100  allow_undefined_flag=
10101  always_export_symbols=no
10102  archive_cmds=
10103  archive_expsym_cmds=
10104  compiler_needs_object=no
10105  enable_shared_with_static_runtimes=no
10106  export_dynamic_flag_spec=
10107  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10108  hardcode_automatic=no
10109  hardcode_direct=no
10110  hardcode_direct_absolute=no
10111  hardcode_libdir_flag_spec=
10112  hardcode_libdir_separator=
10113  hardcode_minus_L=no
10114  hardcode_shlibpath_var=unsupported
10115  inherit_rpath=no
10116  link_all_deplibs=unknown
10117  module_cmds=
10118  module_expsym_cmds=
10119  old_archive_from_new_cmds=
10120  old_archive_from_expsyms_cmds=
10121  thread_safe_flag_spec=
10122  whole_archive_flag_spec=
10123  # include_expsyms should be a list of space-separated symbols to be *always*
10124  # included in the symbol list
10125  include_expsyms=
10126  # exclude_expsyms can be an extended regexp of symbols to exclude
10127  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10128  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10129  # as well as any symbol that contains 'd'.
10130  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10131  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10132  # platforms (ab)use it in PIC code, but their linkers get confused if
10133  # the symbol is explicitly referenced.  Since portable code cannot
10134  # rely on this symbol name, it's probably fine to never include it in
10135  # preloaded symbol tables.
10136  # Exclude shared library initialization/finalization symbols.
10137  extract_expsyms_cmds=
10138
10139  case $host_os in
10140  cygwin* | mingw* | pw32* | cegcc*)
10141    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10142    # When not using gcc, we currently assume that we are using
10143    # Microsoft Visual C++ or Intel C++ Compiler.
10144    if test yes != "$GCC"; then
10145      with_gnu_ld=no
10146    fi
10147    ;;
10148  interix*)
10149    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10150    with_gnu_ld=yes
10151    ;;
10152  openbsd* | bitrig*)
10153    with_gnu_ld=no
10154    ;;
10155  esac
10156
10157  ld_shlibs=yes
10158
10159  # On some targets, GNU ld is compatible enough with the native linker
10160  # that we're better off using the native interface for both.
10161  lt_use_gnu_ld_interface=no
10162  if test yes = "$with_gnu_ld"; then
10163    case $host_os in
10164      aix*)
10165	# The AIX port of GNU ld has always aspired to compatibility
10166	# with the native linker.  However, as the warning in the GNU ld
10167	# block says, versions before 2.19.5* couldn't really create working
10168	# shared libraries, regardless of the interface used.
10169	case `$LD -v 2>&1` in
10170	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10171	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10172	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10173	  *)
10174	    lt_use_gnu_ld_interface=yes
10175	    ;;
10176	esac
10177	;;
10178      *)
10179	lt_use_gnu_ld_interface=yes
10180	;;
10181    esac
10182  fi
10183
10184  if test yes = "$lt_use_gnu_ld_interface"; then
10185    # If archive_cmds runs LD, not CC, wlarc should be empty
10186    wlarc='$wl'
10187
10188    # Set some defaults for GNU ld with shared library support. These
10189    # are reset later if shared libraries are not supported. Putting them
10190    # here allows them to be overridden if necessary.
10191    runpath_var=LD_RUN_PATH
10192    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10193    export_dynamic_flag_spec='$wl--export-dynamic'
10194    # ancient GNU ld didn't support --whole-archive et. al.
10195    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10196      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10197    else
10198      whole_archive_flag_spec=
10199    fi
10200    supports_anon_versioning=no
10201    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10202      *GNU\ gold*) supports_anon_versioning=yes ;;
10203      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10204      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10205      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10206      *\ 2.11.*) ;; # other 2.11 versions
10207      *) supports_anon_versioning=yes ;;
10208    esac
10209
10210    # See if GNU ld supports shared libraries.
10211    case $host_os in
10212    aix[3-9]*)
10213      # On AIX/PPC, the GNU linker is very broken
10214      if test ia64 != "$host_cpu"; then
10215	ld_shlibs=no
10216	cat <<_LT_EOF 1>&2
10217
10218*** Warning: the GNU linker, at least up to release 2.19, is reported
10219*** to be unable to reliably create shared libraries on AIX.
10220*** Therefore, libtool is disabling shared libraries support.  If you
10221*** really care for shared libraries, you may want to install binutils
10222*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10223*** You will then need to restart the configuration process.
10224
10225_LT_EOF
10226      fi
10227      ;;
10228
10229    amigaos*)
10230      case $host_cpu in
10231      powerpc)
10232            # see comment about AmigaOS4 .so support
10233            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10234            archive_expsym_cmds=''
10235        ;;
10236      m68k)
10237            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)'
10238            hardcode_libdir_flag_spec='-L$libdir'
10239            hardcode_minus_L=yes
10240        ;;
10241      esac
10242      ;;
10243
10244    beos*)
10245      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10246	allow_undefined_flag=unsupported
10247	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10248	# support --undefined.  This deserves some investigation.  FIXME
10249	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10250      else
10251	ld_shlibs=no
10252      fi
10253      ;;
10254
10255    cygwin* | mingw* | pw32* | cegcc*)
10256      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10257      # as there is no search path for DLLs.
10258      hardcode_libdir_flag_spec='-L$libdir'
10259      export_dynamic_flag_spec='$wl--export-all-symbols'
10260      allow_undefined_flag=unsupported
10261      always_export_symbols=no
10262      enable_shared_with_static_runtimes=yes
10263      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'
10264      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10265
10266      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10267        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10268	# If the export-symbols file already is a .def file, use it as
10269	# is; otherwise, prepend EXPORTS...
10270	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10271          cp $export_symbols $output_objdir/$soname.def;
10272        else
10273          echo EXPORTS > $output_objdir/$soname.def;
10274          cat $export_symbols >> $output_objdir/$soname.def;
10275        fi~
10276        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10277      else
10278	ld_shlibs=no
10279      fi
10280      ;;
10281
10282    haiku*)
10283      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10284      link_all_deplibs=yes
10285      ;;
10286
10287    os2*)
10288      hardcode_libdir_flag_spec='-L$libdir'
10289      hardcode_minus_L=yes
10290      allow_undefined_flag=unsupported
10291      shrext_cmds=.dll
10292      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10293	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10294	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10295	$ECHO EXPORTS >> $output_objdir/$libname.def~
10296	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10297	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10298	emximp -o $lib $output_objdir/$libname.def'
10299      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10300	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10301	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10302	$ECHO EXPORTS >> $output_objdir/$libname.def~
10303	prefix_cmds="$SED"~
10304	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10305	  prefix_cmds="$prefix_cmds -e 1d";
10306	fi~
10307	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10308	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10309	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10310	emximp -o $lib $output_objdir/$libname.def'
10311      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10312      enable_shared_with_static_runtimes=yes
10313      file_list_spec='@'
10314      ;;
10315
10316    interix[3-9]*)
10317      hardcode_direct=no
10318      hardcode_shlibpath_var=no
10319      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10320      export_dynamic_flag_spec='$wl-E'
10321      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10322      # Instead, shared libraries are loaded at an image base (0x10000000 by
10323      # default) and relocated if they conflict, which is a slow very memory
10324      # consuming and fragmenting process.  To avoid this, we pick a random,
10325      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10326      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10327      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10328      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'
10329      ;;
10330
10331    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10332      tmp_diet=no
10333      if test linux-dietlibc = "$host_os"; then
10334	case $cc_basename in
10335	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10336	esac
10337      fi
10338      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10339	 && test no = "$tmp_diet"
10340      then
10341	tmp_addflag=' $pic_flag'
10342	tmp_sharedflag='-shared'
10343	case $cc_basename,$host_cpu in
10344        pgcc*)				# Portland Group C compiler
10345	  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'
10346	  tmp_addflag=' $pic_flag'
10347	  ;;
10348	pgf77* | pgf90* | pgf95* | pgfortran*)
10349					# Portland Group f77 and f90 compilers
10350	  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'
10351	  tmp_addflag=' $pic_flag -Mnomain' ;;
10352	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10353	  tmp_addflag=' -i_dynamic' ;;
10354	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10355	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10356	ifc* | ifort*)			# Intel Fortran compiler
10357	  tmp_addflag=' -nofor_main' ;;
10358	lf95*)				# Lahey Fortran 8.1
10359	  whole_archive_flag_spec=
10360	  tmp_sharedflag='--shared' ;;
10361        nagfor*)                        # NAGFOR 5.3
10362          tmp_sharedflag='-Wl,-shared' ;;
10363	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10364	  tmp_sharedflag='-qmkshrobj'
10365	  tmp_addflag= ;;
10366	nvcc*)	# Cuda Compiler Driver 2.2
10367	  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'
10368	  compiler_needs_object=yes
10369	  ;;
10370	esac
10371	case `$CC -V 2>&1 | $SED 5q` in
10372	*Sun\ C*)			# Sun C 5.9
10373	  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'
10374	  compiler_needs_object=yes
10375	  tmp_sharedflag='-G' ;;
10376	*Sun\ F*)			# Sun Fortran 8.3
10377	  tmp_sharedflag='-G' ;;
10378	esac
10379	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10380
10381        if test yes = "$supports_anon_versioning"; then
10382          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10383            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10384            echo "local: *; };" >> $output_objdir/$libname.ver~
10385            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10386        fi
10387
10388	case $cc_basename in
10389	tcc*)
10390	  export_dynamic_flag_spec='-rdynamic'
10391	  ;;
10392	xlf* | bgf* | bgxlf* | mpixlf*)
10393	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10394	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10395	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10396	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10397	  if test yes = "$supports_anon_versioning"; then
10398	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10399              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10400              echo "local: *; };" >> $output_objdir/$libname.ver~
10401              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10402	  fi
10403	  ;;
10404	esac
10405      else
10406        ld_shlibs=no
10407      fi
10408      ;;
10409
10410    netbsd*)
10411      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10412	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10413	wlarc=
10414      else
10415	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10416	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10417      fi
10418      ;;
10419
10420    solaris*)
10421      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10422	ld_shlibs=no
10423	cat <<_LT_EOF 1>&2
10424
10425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10426*** create shared libraries on Solaris systems.  Therefore, libtool
10427*** is disabling shared libraries support.  We urge you to upgrade GNU
10428*** binutils to release 2.9.1 or newer.  Another option is to modify
10429*** your PATH or compiler configuration so that the native linker is
10430*** used, and then restart.
10431
10432_LT_EOF
10433      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10436      else
10437	ld_shlibs=no
10438      fi
10439      ;;
10440
10441    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10442      case `$LD -v 2>&1` in
10443        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10444	ld_shlibs=no
10445	cat <<_LT_EOF 1>&2
10446
10447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10448*** reliably create shared libraries on SCO systems.  Therefore, libtool
10449*** is disabling shared libraries support.  We urge you to upgrade GNU
10450*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10451*** your PATH or compiler configuration so that the native linker is
10452*** used, and then restart.
10453
10454_LT_EOF
10455	;;
10456	*)
10457	  # For security reasons, it is highly recommended that you always
10458	  # use absolute paths for naming shared libraries, and exclude the
10459	  # DT_RUNPATH tag from executables and libraries.  But doing so
10460	  # requires that you compile everything twice, which is a pain.
10461	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10462	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10463	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10464	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10465	  else
10466	    ld_shlibs=no
10467	  fi
10468	;;
10469      esac
10470      ;;
10471
10472    sunos4*)
10473      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10474      wlarc=
10475      hardcode_direct=yes
10476      hardcode_shlibpath_var=no
10477      ;;
10478
10479    *)
10480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10482	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10483      else
10484	ld_shlibs=no
10485      fi
10486      ;;
10487    esac
10488
10489    if test no = "$ld_shlibs"; then
10490      runpath_var=
10491      hardcode_libdir_flag_spec=
10492      export_dynamic_flag_spec=
10493      whole_archive_flag_spec=
10494    fi
10495  else
10496    # PORTME fill in a description of your system's linker (not GNU ld)
10497    case $host_os in
10498    aix3*)
10499      allow_undefined_flag=unsupported
10500      always_export_symbols=yes
10501      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'
10502      # Note: this linker hardcodes the directories in LIBPATH if there
10503      # are no directories specified by -L.
10504      hardcode_minus_L=yes
10505      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10506	# Neither direct hardcoding nor static linking is supported with a
10507	# broken collect2.
10508	hardcode_direct=unsupported
10509      fi
10510      ;;
10511
10512    aix[4-9]*)
10513      if test ia64 = "$host_cpu"; then
10514	# On IA64, the linker does run time linking by default, so we don't
10515	# have to do anything special.
10516	aix_use_runtimelinking=no
10517	exp_sym_flag='-Bexport'
10518	no_entry_flag=
10519      else
10520	# If we're using GNU nm, then we don't want the "-C" option.
10521	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10522	# Without the "-l" option, or with the "-B" option, AIX nm treats
10523	# weak defined symbols like other global defined symbols, whereas
10524	# GNU nm marks them as "W".
10525	# While the 'weak' keyword is ignored in the Export File, we need
10526	# it in the Import File for the 'aix-soname' feature, so we have
10527	# to replace the "-B" option with "-P" for AIX nm.
10528	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529	  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'
10530	else
10531	  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'
10532	fi
10533	aix_use_runtimelinking=no
10534
10535	# Test if we are trying to use run time linking or normal
10536	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537	# have runtime linking enabled, and use it for executables.
10538	# For shared libraries, we enable/disable runtime linking
10539	# depending on the kind of the shared library created -
10540	# when "with_aix_soname,aix_use_runtimelinking" is:
10541	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10542	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10543	#            lib.a           static archive
10544	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10545	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10546	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10547	#            lib.a(lib.so.V) shared, rtl:no
10548	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10549	#            lib.a           static archive
10550	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10551	  for ld_flag in $LDFLAGS; do
10552	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10553	    aix_use_runtimelinking=yes
10554	    break
10555	  fi
10556	  done
10557	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10558	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10559	    # so we don't have lib.a shared libs to link our executables.
10560	    # We have to force runtime linking in this case.
10561	    aix_use_runtimelinking=yes
10562	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10563	  fi
10564	  ;;
10565	esac
10566
10567	exp_sym_flag='-bexport'
10568	no_entry_flag='-bnoentry'
10569      fi
10570
10571      # When large executables or shared objects are built, AIX ld can
10572      # have problems creating the table of contents.  If linking a library
10573      # or program results in "error TOC overflow" add -mminimal-toc to
10574      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10575      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10576
10577      archive_cmds=''
10578      hardcode_direct=yes
10579      hardcode_direct_absolute=yes
10580      hardcode_libdir_separator=':'
10581      link_all_deplibs=yes
10582      file_list_spec='$wl-f,'
10583      case $with_aix_soname,$aix_use_runtimelinking in
10584      aix,*) ;; # traditional, no import file
10585      svr4,* | *,yes) # use import file
10586	# The Import File defines what to hardcode.
10587	hardcode_direct=no
10588	hardcode_direct_absolute=no
10589	;;
10590      esac
10591
10592      if test yes = "$GCC"; then
10593	case $host_os in aix4.[012]|aix4.[012].*)
10594	# We only want to do this on AIX 4.2 and lower, the check
10595	# below for broken collect2 doesn't work under 4.3+
10596	  collect2name=`$CC -print-prog-name=collect2`
10597	  if test -f "$collect2name" &&
10598	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10599	  then
10600	  # We have reworked collect2
10601	  :
10602	  else
10603	  # We have old collect2
10604	  hardcode_direct=unsupported
10605	  # It fails to find uninstalled libraries when the uninstalled
10606	  # path is not listed in the libpath.  Setting hardcode_minus_L
10607	  # to unsupported forces relinking
10608	  hardcode_minus_L=yes
10609	  hardcode_libdir_flag_spec='-L$libdir'
10610	  hardcode_libdir_separator=
10611	  fi
10612	  ;;
10613	esac
10614	shared_flag='-shared'
10615	if test yes = "$aix_use_runtimelinking"; then
10616	  shared_flag="$shared_flag "'$wl-G'
10617	fi
10618	# Need to ensure runtime linking is disabled for the traditional
10619	# shared library, or the linker may eventually find shared libraries
10620	# /with/ Import File - we do not want to mix them.
10621	shared_flag_aix='-shared'
10622	shared_flag_svr4='-shared $wl-G'
10623      else
10624	# not using gcc
10625	if test ia64 = "$host_cpu"; then
10626	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10627	# chokes on -Wl,-G. The following line is correct:
10628	  shared_flag='-G'
10629	else
10630	  if test yes = "$aix_use_runtimelinking"; then
10631	    shared_flag='$wl-G'
10632	  else
10633	    shared_flag='$wl-bM:SRE'
10634	  fi
10635	  shared_flag_aix='$wl-bM:SRE'
10636	  shared_flag_svr4='$wl-G'
10637	fi
10638      fi
10639
10640      export_dynamic_flag_spec='$wl-bexpall'
10641      # It seems that -bexpall does not export symbols beginning with
10642      # underscore (_), so it is better to generate a list of symbols to export.
10643      always_export_symbols=yes
10644      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10645	# Warning - without using the other runtime loading flags (-brtl),
10646	# -berok will link without error, but may produce a broken library.
10647	allow_undefined_flag='-berok'
10648        # Determine the default libpath from the value encoded in an
10649        # empty executable.
10650        if test set = "${lt_cv_aix_libpath+set}"; then
10651  aix_libpath=$lt_cv_aix_libpath
10652else
10653  if test ${lt_cv_aix_libpath_+y}
10654then :
10655  printf %s "(cached) " >&6
10656else $as_nop
10657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h.  */
10659
10660int
10661main (void)
10662{
10663
10664  ;
10665  return 0;
10666}
10667_ACEOF
10668if ac_fn_c_try_link "$LINENO"
10669then :
10670
10671  lt_aix_libpath_sed='
10672      /Import File Strings/,/^$/ {
10673	  /^0/ {
10674	      s/^0  *\([^ ]*\) *$/\1/
10675	      p
10676	  }
10677      }'
10678  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10679  # Check for a 64-bit object if we didn't find anything.
10680  if test -z "$lt_cv_aix_libpath_"; then
10681    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10682  fi
10683fi
10684rm -f core conftest.err conftest.$ac_objext conftest.beam \
10685    conftest$ac_exeext conftest.$ac_ext
10686  if test -z "$lt_cv_aix_libpath_"; then
10687    lt_cv_aix_libpath_=/usr/lib:/lib
10688  fi
10689
10690fi
10691
10692  aix_libpath=$lt_cv_aix_libpath_
10693fi
10694
10695        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10696        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
10697      else
10698	if test ia64 = "$host_cpu"; then
10699	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10700	  allow_undefined_flag="-z nodefs"
10701	  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"
10702	else
10703	 # Determine the default libpath from the value encoded in an
10704	 # empty executable.
10705	 if test set = "${lt_cv_aix_libpath+set}"; then
10706  aix_libpath=$lt_cv_aix_libpath
10707else
10708  if test ${lt_cv_aix_libpath_+y}
10709then :
10710  printf %s "(cached) " >&6
10711else $as_nop
10712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714
10715int
10716main (void)
10717{
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723if ac_fn_c_try_link "$LINENO"
10724then :
10725
10726  lt_aix_libpath_sed='
10727      /Import File Strings/,/^$/ {
10728	  /^0/ {
10729	      s/^0  *\([^ ]*\) *$/\1/
10730	      p
10731	  }
10732      }'
10733  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734  # Check for a 64-bit object if we didn't find anything.
10735  if test -z "$lt_cv_aix_libpath_"; then
10736    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737  fi
10738fi
10739rm -f core conftest.err conftest.$ac_objext conftest.beam \
10740    conftest$ac_exeext conftest.$ac_ext
10741  if test -z "$lt_cv_aix_libpath_"; then
10742    lt_cv_aix_libpath_=/usr/lib:/lib
10743  fi
10744
10745fi
10746
10747  aix_libpath=$lt_cv_aix_libpath_
10748fi
10749
10750	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10751	  # Warning - without using the other run time loading flags,
10752	  # -berok will link without error, but may produce a broken library.
10753	  no_undefined_flag=' $wl-bernotok'
10754	  allow_undefined_flag=' $wl-berok'
10755	  if test yes = "$with_gnu_ld"; then
10756	    # We only use this code for GNU lds that support --whole-archive.
10757	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10758	  else
10759	    # Exported symbols can be pulled into shared objects from archives
10760	    whole_archive_flag_spec='$convenience'
10761	  fi
10762	  archive_cmds_need_lc=yes
10763	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10764	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10765	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10766	  if test svr4 != "$with_aix_soname"; then
10767	    # This is similar to how AIX traditionally builds its shared libraries.
10768	    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'
10769	  fi
10770	  if test aix != "$with_aix_soname"; then
10771	    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'
10772	  else
10773	    # used by -dlpreopen to get the symbols
10774	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10775	  fi
10776	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10777	fi
10778      fi
10779      ;;
10780
10781    amigaos*)
10782      case $host_cpu in
10783      powerpc)
10784            # see comment about AmigaOS4 .so support
10785            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786            archive_expsym_cmds=''
10787        ;;
10788      m68k)
10789            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)'
10790            hardcode_libdir_flag_spec='-L$libdir'
10791            hardcode_minus_L=yes
10792        ;;
10793      esac
10794      ;;
10795
10796    bsdi[45]*)
10797      export_dynamic_flag_spec=-rdynamic
10798      ;;
10799
10800    cygwin* | mingw* | pw32* | cegcc*)
10801      # When not using gcc, we currently assume that we are using
10802      # Microsoft Visual C++ or Intel C++ Compiler.
10803      # hardcode_libdir_flag_spec is actually meaningless, as there is
10804      # no search path for DLLs.
10805      case $cc_basename in
10806      cl* | icl*)
10807	# Native MSVC or ICC
10808	hardcode_libdir_flag_spec=' '
10809	allow_undefined_flag=unsupported
10810	always_export_symbols=yes
10811	file_list_spec='@'
10812	# Tell ltmain to make .lib files, not .a files.
10813	libext=lib
10814	# Tell ltmain to make .dll files, not .so files.
10815	shrext_cmds=.dll
10816	# FIXME: Setting linknames here is a bad hack.
10817	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10818	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10819            cp "$export_symbols" "$output_objdir/$soname.def";
10820            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10821          else
10822            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10823          fi~
10824          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10825          linknames='
10826	# The linker will not automatically build a static lib if we build a DLL.
10827	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10828	enable_shared_with_static_runtimes=yes
10829	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10830	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10831	# Don't use ranlib
10832	old_postinstall_cmds='chmod 644 $oldlib'
10833	postlink_cmds='lt_outputfile="@OUTPUT@"~
10834          lt_tool_outputfile="@TOOL_OUTPUT@"~
10835          case $lt_outputfile in
10836            *.exe|*.EXE) ;;
10837            *)
10838              lt_outputfile=$lt_outputfile.exe
10839              lt_tool_outputfile=$lt_tool_outputfile.exe
10840              ;;
10841          esac~
10842          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10843            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10844            $RM "$lt_outputfile.manifest";
10845          fi'
10846	;;
10847      *)
10848	# Assume MSVC and ICC wrapper
10849	hardcode_libdir_flag_spec=' '
10850	allow_undefined_flag=unsupported
10851	# Tell ltmain to make .lib files, not .a files.
10852	libext=lib
10853	# Tell ltmain to make .dll files, not .so files.
10854	shrext_cmds=.dll
10855	# FIXME: Setting linknames here is a bad hack.
10856	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10857	# The linker will automatically build a .lib file if we build a DLL.
10858	old_archive_from_new_cmds='true'
10859	# FIXME: Should let the user specify the lib program.
10860	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10861	enable_shared_with_static_runtimes=yes
10862	;;
10863      esac
10864      ;;
10865
10866    darwin* | rhapsody*)
10867
10868
10869  archive_cmds_need_lc=no
10870  hardcode_direct=no
10871  hardcode_automatic=yes
10872  hardcode_shlibpath_var=unsupported
10873  if test yes = "$lt_cv_ld_force_load"; then
10874    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\"`'
10875
10876  else
10877    whole_archive_flag_spec=''
10878  fi
10879  link_all_deplibs=yes
10880  allow_undefined_flag=$_lt_dar_allow_undefined
10881  case $cc_basename in
10882     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10883     *) _lt_dar_can_shared=$GCC ;;
10884  esac
10885  if test yes = "$_lt_dar_can_shared"; then
10886    output_verbose_link_cmd=func_echo_all
10887    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10888    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10889    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"
10890    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"
10891
10892  else
10893  ld_shlibs=no
10894  fi
10895
10896      ;;
10897
10898    dgux*)
10899      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900      hardcode_libdir_flag_spec='-L$libdir'
10901      hardcode_shlibpath_var=no
10902      ;;
10903
10904    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10905    # support.  Future versions do this automatically, but an explicit c++rt0.o
10906    # does not break anything, and helps significantly (at the cost of a little
10907    # extra space).
10908    freebsd2.2*)
10909      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10910      hardcode_libdir_flag_spec='-R$libdir'
10911      hardcode_direct=yes
10912      hardcode_shlibpath_var=no
10913      ;;
10914
10915    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10916    freebsd2.*)
10917      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10918      hardcode_direct=yes
10919      hardcode_minus_L=yes
10920      hardcode_shlibpath_var=no
10921      ;;
10922
10923    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10924    freebsd* | dragonfly* | midnightbsd*)
10925      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10926      hardcode_libdir_flag_spec='-R$libdir'
10927      hardcode_direct=yes
10928      hardcode_shlibpath_var=no
10929      ;;
10930
10931    hpux9*)
10932      if test yes = "$GCC"; then
10933	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'
10934      else
10935	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'
10936      fi
10937      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10938      hardcode_libdir_separator=:
10939      hardcode_direct=yes
10940
10941      # hardcode_minus_L: Not really in the search PATH,
10942      # but as the default location of the library.
10943      hardcode_minus_L=yes
10944      export_dynamic_flag_spec='$wl-E'
10945      ;;
10946
10947    hpux10*)
10948      if test yes,no = "$GCC,$with_gnu_ld"; then
10949	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10950      else
10951	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10952      fi
10953      if test no = "$with_gnu_ld"; then
10954	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10955	hardcode_libdir_separator=:
10956	hardcode_direct=yes
10957	hardcode_direct_absolute=yes
10958	export_dynamic_flag_spec='$wl-E'
10959	# hardcode_minus_L: Not really in the search PATH,
10960	# but as the default location of the library.
10961	hardcode_minus_L=yes
10962      fi
10963      ;;
10964
10965    hpux11*)
10966      if test yes,no = "$GCC,$with_gnu_ld"; then
10967	case $host_cpu in
10968	hppa*64*)
10969	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10970	  ;;
10971	ia64*)
10972	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10973	  ;;
10974	*)
10975	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10976	  ;;
10977	esac
10978      else
10979	case $host_cpu in
10980	hppa*64*)
10981	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10982	  ;;
10983	ia64*)
10984	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10985	  ;;
10986	*)
10987
10988	  # Older versions of the 11.00 compiler do not understand -b yet
10989	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10990	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10991printf %s "checking if $CC understands -b... " >&6; }
10992if test ${lt_cv_prog_compiler__b+y}
10993then :
10994  printf %s "(cached) " >&6
10995else $as_nop
10996  lt_cv_prog_compiler__b=no
10997   save_LDFLAGS=$LDFLAGS
10998   LDFLAGS="$LDFLAGS -b"
10999   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11000   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11001     # The linker can only warn and ignore the option if not recognized
11002     # So say no if there are warnings
11003     if test -s conftest.err; then
11004       # Append any errors to the config.log.
11005       cat conftest.err 1>&5
11006       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11007       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11008       if diff conftest.exp conftest.er2 >/dev/null; then
11009         lt_cv_prog_compiler__b=yes
11010       fi
11011     else
11012       lt_cv_prog_compiler__b=yes
11013     fi
11014   fi
11015   $RM -r conftest*
11016   LDFLAGS=$save_LDFLAGS
11017
11018fi
11019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11020printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11021
11022if test yes = "$lt_cv_prog_compiler__b"; then
11023    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11024else
11025    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11026fi
11027
11028	  ;;
11029	esac
11030      fi
11031      if test no = "$with_gnu_ld"; then
11032	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11033	hardcode_libdir_separator=:
11034
11035	case $host_cpu in
11036	hppa*64*|ia64*)
11037	  hardcode_direct=no
11038	  hardcode_shlibpath_var=no
11039	  ;;
11040	*)
11041	  hardcode_direct=yes
11042	  hardcode_direct_absolute=yes
11043	  export_dynamic_flag_spec='$wl-E'
11044
11045	  # hardcode_minus_L: Not really in the search PATH,
11046	  # but as the default location of the library.
11047	  hardcode_minus_L=yes
11048	  ;;
11049	esac
11050      fi
11051      ;;
11052
11053    irix5* | irix6* | nonstopux*)
11054      if test yes = "$GCC"; then
11055	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'
11056	# Try to use the -exported_symbol ld option, if it does not
11057	# work, assume that -exports_file does not work either and
11058	# implicitly export all symbols.
11059	# This should be the same for all languages, so no per-tag cache variable.
11060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11061printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11062if test ${lt_cv_irix_exported_symbol+y}
11063then :
11064  printf %s "(cached) " >&6
11065else $as_nop
11066  save_LDFLAGS=$LDFLAGS
11067	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11068	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070int foo (void) { return 0; }
11071_ACEOF
11072if ac_fn_c_try_link "$LINENO"
11073then :
11074  lt_cv_irix_exported_symbol=yes
11075else $as_nop
11076  lt_cv_irix_exported_symbol=no
11077fi
11078rm -f core conftest.err conftest.$ac_objext conftest.beam \
11079    conftest$ac_exeext conftest.$ac_ext
11080           LDFLAGS=$save_LDFLAGS
11081fi
11082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11083printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11084	if test yes = "$lt_cv_irix_exported_symbol"; then
11085          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'
11086	fi
11087      else
11088	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'
11089	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'
11090      fi
11091      archive_cmds_need_lc='no'
11092      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11093      hardcode_libdir_separator=:
11094      inherit_rpath=yes
11095      link_all_deplibs=yes
11096      ;;
11097
11098    linux*)
11099      case $cc_basename in
11100      tcc*)
11101	# Fabrice Bellard et al's Tiny C Compiler
11102	ld_shlibs=yes
11103	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11104	;;
11105      esac
11106      ;;
11107
11108    netbsd*)
11109      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11111      else
11112	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11113      fi
11114      hardcode_libdir_flag_spec='-R$libdir'
11115      hardcode_direct=yes
11116      hardcode_shlibpath_var=no
11117      ;;
11118
11119    newsos6)
11120      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121      hardcode_direct=yes
11122      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11123      hardcode_libdir_separator=:
11124      hardcode_shlibpath_var=no
11125      ;;
11126
11127    *nto* | *qnx*)
11128      ;;
11129
11130    openbsd* | bitrig*)
11131      if test -f /usr/libexec/ld.so; then
11132	hardcode_direct=yes
11133	hardcode_shlibpath_var=no
11134	hardcode_direct_absolute=yes
11135	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11136	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11137	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11138	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11139	  export_dynamic_flag_spec='$wl-E'
11140	else
11141	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11142	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11143	fi
11144      else
11145	ld_shlibs=no
11146      fi
11147      ;;
11148
11149    os2*)
11150      hardcode_libdir_flag_spec='-L$libdir'
11151      hardcode_minus_L=yes
11152      allow_undefined_flag=unsupported
11153      shrext_cmds=.dll
11154      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11155	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11156	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11157	$ECHO EXPORTS >> $output_objdir/$libname.def~
11158	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11159	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11160	emximp -o $lib $output_objdir/$libname.def'
11161      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11162	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11163	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11164	$ECHO EXPORTS >> $output_objdir/$libname.def~
11165	prefix_cmds="$SED"~
11166	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11167	  prefix_cmds="$prefix_cmds -e 1d";
11168	fi~
11169	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11170	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11171	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11172	emximp -o $lib $output_objdir/$libname.def'
11173      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11174      enable_shared_with_static_runtimes=yes
11175      file_list_spec='@'
11176      ;;
11177
11178    osf3*)
11179      if test yes = "$GCC"; then
11180	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11181	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'
11182      else
11183	allow_undefined_flag=' -expect_unresolved \*'
11184	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'
11185      fi
11186      archive_cmds_need_lc='no'
11187      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188      hardcode_libdir_separator=:
11189      ;;
11190
11191    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11192      if test yes = "$GCC"; then
11193	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11194	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'
11195	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11196      else
11197	allow_undefined_flag=' -expect_unresolved \*'
11198	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'
11199	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~
11200          $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'
11201
11202	# Both c and cxx compiler support -rpath directly
11203	hardcode_libdir_flag_spec='-rpath $libdir'
11204      fi
11205      archive_cmds_need_lc='no'
11206      hardcode_libdir_separator=:
11207      ;;
11208
11209    solaris*)
11210      no_undefined_flag=' -z defs'
11211      if test yes = "$GCC"; then
11212	wlarc='$wl'
11213	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11215          $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'
11216      else
11217	case `$CC -V 2>&1` in
11218	*"Compilers 5.0"*)
11219	  wlarc=''
11220	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11222            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11223	  ;;
11224	*)
11225	  wlarc='$wl'
11226	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11227	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11228            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11229	  ;;
11230	esac
11231      fi
11232      hardcode_libdir_flag_spec='-R$libdir'
11233      hardcode_shlibpath_var=no
11234      case $host_os in
11235      solaris2.[0-5] | solaris2.[0-5].*) ;;
11236      *)
11237	# The compiler driver will combine and reorder linker options,
11238	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11239	# but is careful enough not to reorder.
11240	# Supported since Solaris 2.6 (maybe 2.5.1?)
11241	if test yes = "$GCC"; then
11242	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11243	else
11244	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11245	fi
11246	;;
11247      esac
11248      link_all_deplibs=yes
11249      ;;
11250
11251    sunos4*)
11252      if test sequent = "$host_vendor"; then
11253	# Use $CC to link under sequent, because it throws in some extra .o
11254	# files that make .init and .fini sections work.
11255	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11256      else
11257	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11258      fi
11259      hardcode_libdir_flag_spec='-L$libdir'
11260      hardcode_direct=yes
11261      hardcode_minus_L=yes
11262      hardcode_shlibpath_var=no
11263      ;;
11264
11265    sysv4)
11266      case $host_vendor in
11267	sni)
11268	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11269	  hardcode_direct=yes # is this really true???
11270	;;
11271	siemens)
11272	  ## LD is ld it makes a PLAMLIB
11273	  ## CC just makes a GrossModule.
11274	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11275	  reload_cmds='$CC -r -o $output$reload_objs'
11276	  hardcode_direct=no
11277        ;;
11278	motorola)
11279	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11281	;;
11282      esac
11283      runpath_var='LD_RUN_PATH'
11284      hardcode_shlibpath_var=no
11285      ;;
11286
11287    sysv4.3*)
11288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289      hardcode_shlibpath_var=no
11290      export_dynamic_flag_spec='-Bexport'
11291      ;;
11292
11293    sysv4*MP*)
11294      if test -d /usr/nec; then
11295	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296	hardcode_shlibpath_var=no
11297	runpath_var=LD_RUN_PATH
11298	hardcode_runpath_var=yes
11299	ld_shlibs=yes
11300      fi
11301      ;;
11302
11303    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11304      no_undefined_flag='$wl-z,text'
11305      archive_cmds_need_lc=no
11306      hardcode_shlibpath_var=no
11307      runpath_var='LD_RUN_PATH'
11308
11309      if test yes = "$GCC"; then
11310	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312      else
11313	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315      fi
11316      ;;
11317
11318    sysv5* | sco3.2v5* | sco5v6*)
11319      # Note: We CANNOT use -z defs as we might desire, because we do not
11320      # link with -lc, and that would cause any symbols used from libc to
11321      # always be unresolved, which means just about no library would
11322      # ever link correctly.  If we're not using GNU ld we use -z text
11323      # though, which does catch some bad symbols but isn't as heavy-handed
11324      # as -z defs.
11325      no_undefined_flag='$wl-z,text'
11326      allow_undefined_flag='$wl-z,nodefs'
11327      archive_cmds_need_lc=no
11328      hardcode_shlibpath_var=no
11329      hardcode_libdir_flag_spec='$wl-R,$libdir'
11330      hardcode_libdir_separator=':'
11331      link_all_deplibs=yes
11332      export_dynamic_flag_spec='$wl-Bexport'
11333      runpath_var='LD_RUN_PATH'
11334
11335      if test yes = "$GCC"; then
11336	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338      else
11339	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11340	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11341      fi
11342      ;;
11343
11344    uts4*)
11345      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11346      hardcode_libdir_flag_spec='-L$libdir'
11347      hardcode_shlibpath_var=no
11348      ;;
11349
11350    *)
11351      ld_shlibs=no
11352      ;;
11353    esac
11354
11355    if test sni = "$host_vendor"; then
11356      case $host in
11357      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11358	export_dynamic_flag_spec='$wl-Blargedynsym'
11359	;;
11360      esac
11361    fi
11362  fi
11363
11364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11365printf "%s\n" "$ld_shlibs" >&6; }
11366test no = "$ld_shlibs" && can_build_shared=no
11367
11368with_gnu_ld=$with_gnu_ld
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384#
11385# Do we need to explicitly link libc?
11386#
11387case "x$archive_cmds_need_lc" in
11388x|xyes)
11389  # Assume -lc should be added
11390  archive_cmds_need_lc=yes
11391
11392  if test yes,yes = "$GCC,$enable_shared"; then
11393    case $archive_cmds in
11394    *'~'*)
11395      # FIXME: we may have to deal with multi-command sequences.
11396      ;;
11397    '$CC '*)
11398      # Test whether the compiler implicitly links with -lc since on some
11399      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11400      # to ld, don't add -lc before -lgcc.
11401      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11402printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11403if test ${lt_cv_archive_cmds_need_lc+y}
11404then :
11405  printf %s "(cached) " >&6
11406else $as_nop
11407  $RM conftest*
11408	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11409
11410	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11411  (eval $ac_compile) 2>&5
11412  ac_status=$?
11413  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414  test $ac_status = 0; } 2>conftest.err; then
11415	  soname=conftest
11416	  lib=conftest
11417	  libobjs=conftest.$ac_objext
11418	  deplibs=
11419	  wl=$lt_prog_compiler_wl
11420	  pic_flag=$lt_prog_compiler_pic
11421	  compiler_flags=-v
11422	  linker_flags=-v
11423	  verstring=
11424	  output_objdir=.
11425	  libname=conftest
11426	  lt_save_allow_undefined_flag=$allow_undefined_flag
11427	  allow_undefined_flag=
11428	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11429  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11430  ac_status=$?
11431  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432  test $ac_status = 0; }
11433	  then
11434	    lt_cv_archive_cmds_need_lc=no
11435	  else
11436	    lt_cv_archive_cmds_need_lc=yes
11437	  fi
11438	  allow_undefined_flag=$lt_save_allow_undefined_flag
11439	else
11440	  cat conftest.err 1>&5
11441	fi
11442	$RM conftest*
11443
11444fi
11445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11446printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11447      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11448      ;;
11449    esac
11450  fi
11451  ;;
11452esac
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11606printf %s "checking dynamic linker characteristics... " >&6; }
11607
11608if test yes = "$GCC"; then
11609  case $host_os in
11610    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11611    *) lt_awk_arg='/^libraries:/' ;;
11612  esac
11613  case $host_os in
11614    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11615    *) lt_sed_strip_eq='s|=/|/|g' ;;
11616  esac
11617  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11618  case $lt_search_path_spec in
11619  *\;*)
11620    # if the path contains ";" then we assume it to be the separator
11621    # otherwise default to the standard path separator (i.e. ":") - it is
11622    # assumed that no part of a normal pathname contains ";" but that should
11623    # okay in the real world where ";" in dirpaths is itself problematic.
11624    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11625    ;;
11626  *)
11627    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11628    ;;
11629  esac
11630  # Ok, now we have the path, separated by spaces, we can step through it
11631  # and add multilib dir if necessary...
11632  lt_tmp_lt_search_path_spec=
11633  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11634  # ...but if some path component already ends with the multilib dir we assume
11635  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11636  case "$lt_multi_os_dir; $lt_search_path_spec " in
11637  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11638    lt_multi_os_dir=
11639    ;;
11640  esac
11641  for lt_sys_path in $lt_search_path_spec; do
11642    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11643      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11644    elif test -n "$lt_multi_os_dir"; then
11645      test -d "$lt_sys_path" && \
11646	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11647    fi
11648  done
11649  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11650BEGIN {RS = " "; FS = "/|\n";} {
11651  lt_foo = "";
11652  lt_count = 0;
11653  for (lt_i = NF; lt_i > 0; lt_i--) {
11654    if ($lt_i != "" && $lt_i != ".") {
11655      if ($lt_i == "..") {
11656        lt_count++;
11657      } else {
11658        if (lt_count == 0) {
11659          lt_foo = "/" $lt_i lt_foo;
11660        } else {
11661          lt_count--;
11662        }
11663      }
11664    }
11665  }
11666  if (lt_foo != "") { lt_freq[lt_foo]++; }
11667  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11668}'`
11669  # AWK program above erroneously prepends '/' to C:/dos/paths
11670  # for these hosts.
11671  case $host_os in
11672    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11673      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11674  esac
11675  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11676else
11677  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11678fi
11679library_names_spec=
11680libname_spec='lib$name'
11681soname_spec=
11682shrext_cmds=.so
11683postinstall_cmds=
11684postuninstall_cmds=
11685finish_cmds=
11686finish_eval=
11687shlibpath_var=
11688shlibpath_overrides_runpath=unknown
11689version_type=none
11690dynamic_linker="$host_os ld.so"
11691sys_lib_dlsearch_path_spec="/lib /usr/lib"
11692need_lib_prefix=unknown
11693hardcode_into_libs=no
11694
11695# when you set need_version to no, make sure it does not cause -set_version
11696# flags to be left without arguments
11697need_version=unknown
11698
11699
11700
11701case $host_os in
11702aix3*)
11703  version_type=linux # correct to gnu/linux during the next big refactor
11704  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11705  shlibpath_var=LIBPATH
11706
11707  # AIX 3 has no versioning support, so we append a major version to the name.
11708  soname_spec='$libname$release$shared_ext$major'
11709  ;;
11710
11711aix[4-9]*)
11712  version_type=linux # correct to gnu/linux during the next big refactor
11713  need_lib_prefix=no
11714  need_version=no
11715  hardcode_into_libs=yes
11716  if test ia64 = "$host_cpu"; then
11717    # AIX 5 supports IA64
11718    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11719    shlibpath_var=LD_LIBRARY_PATH
11720  else
11721    # With GCC up to 2.95.x, collect2 would create an import file
11722    # for dependence libraries.  The import file would start with
11723    # the line '#! .'.  This would cause the generated library to
11724    # depend on '.', always an invalid library.  This was fixed in
11725    # development snapshots of GCC prior to 3.0.
11726    case $host_os in
11727      aix4 | aix4.[01] | aix4.[01].*)
11728      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11729	   echo ' yes '
11730	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11731	:
11732      else
11733	can_build_shared=no
11734      fi
11735      ;;
11736    esac
11737    # Using Import Files as archive members, it is possible to support
11738    # filename-based versioning of shared library archives on AIX. While
11739    # this would work for both with and without runtime linking, it will
11740    # prevent static linking of such archives. So we do filename-based
11741    # shared library versioning with .so extension only, which is used
11742    # when both runtime linking and shared linking is enabled.
11743    # Unfortunately, runtime linking may impact performance, so we do
11744    # not want this to be the default eventually. Also, we use the
11745    # versioned .so libs for executables only if there is the -brtl
11746    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11747    # To allow for filename-based versioning support, we need to create
11748    # libNAME.so.V as an archive file, containing:
11749    # *) an Import File, referring to the versioned filename of the
11750    #    archive as well as the shared archive member, telling the
11751    #    bitwidth (32 or 64) of that shared object, and providing the
11752    #    list of exported symbols of that shared object, eventually
11753    #    decorated with the 'weak' keyword
11754    # *) the shared object with the F_LOADONLY flag set, to really avoid
11755    #    it being seen by the linker.
11756    # At run time we better use the real file rather than another symlink,
11757    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11758
11759    case $with_aix_soname,$aix_use_runtimelinking in
11760    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11761    # soname into executable. Probably we can add versioning support to
11762    # collect2, so additional links can be useful in future.
11763    aix,yes) # traditional libtool
11764      dynamic_linker='AIX unversionable lib.so'
11765      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11766      # instead of lib<name>.a to let people know that these are not
11767      # typical AIX shared libraries.
11768      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769      ;;
11770    aix,no) # traditional AIX only
11771      dynamic_linker='AIX lib.a(lib.so.V)'
11772      # We preserve .a as extension for shared libraries through AIX4.2
11773      # and later when we are not doing run time linking.
11774      library_names_spec='$libname$release.a $libname.a'
11775      soname_spec='$libname$release$shared_ext$major'
11776      ;;
11777    svr4,*) # full svr4 only
11778      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11779      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11780      # We do not specify a path in Import Files, so LIBPATH fires.
11781      shlibpath_overrides_runpath=yes
11782      ;;
11783    *,yes) # both, prefer svr4
11784      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11785      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11786      # unpreferred sharedlib libNAME.a needs extra handling
11787      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"'
11788      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"'
11789      # We do not specify a path in Import Files, so LIBPATH fires.
11790      shlibpath_overrides_runpath=yes
11791      ;;
11792    *,no) # both, prefer aix
11793      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11794      library_names_spec='$libname$release.a $libname.a'
11795      soname_spec='$libname$release$shared_ext$major'
11796      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11797      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)'
11798      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"'
11799      ;;
11800    esac
11801    shlibpath_var=LIBPATH
11802  fi
11803  ;;
11804
11805amigaos*)
11806  case $host_cpu in
11807  powerpc)
11808    # Since July 2007 AmigaOS4 officially supports .so libraries.
11809    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11810    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811    ;;
11812  m68k)
11813    library_names_spec='$libname.ixlibrary $libname.a'
11814    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11815    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'
11816    ;;
11817  esac
11818  ;;
11819
11820beos*)
11821  library_names_spec='$libname$shared_ext'
11822  dynamic_linker="$host_os ld.so"
11823  shlibpath_var=LIBRARY_PATH
11824  ;;
11825
11826bsdi[45]*)
11827  version_type=linux # correct to gnu/linux during the next big refactor
11828  need_version=no
11829  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11830  soname_spec='$libname$release$shared_ext$major'
11831  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11832  shlibpath_var=LD_LIBRARY_PATH
11833  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11834  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11835  # the default ld.so.conf also contains /usr/contrib/lib and
11836  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11837  # libtool to hard-code these into programs
11838  ;;
11839
11840cygwin* | mingw* | pw32* | cegcc*)
11841  version_type=windows
11842  shrext_cmds=.dll
11843  need_version=no
11844  need_lib_prefix=no
11845
11846  case $GCC,$cc_basename in
11847  yes,*)
11848    # gcc
11849    library_names_spec='$libname.dll.a'
11850    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851    postinstall_cmds='base_file=`basename \$file`~
11852      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11853      dldir=$destdir/`dirname \$dlpath`~
11854      test -d \$dldir || mkdir -p \$dldir~
11855      $install_prog $dir/$dlname \$dldir/$dlname~
11856      chmod a+x \$dldir/$dlname~
11857      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11858        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11859      fi'
11860    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11861      dlpath=$dir/\$dldll~
11862       $RM \$dlpath'
11863    shlibpath_overrides_runpath=yes
11864
11865    case $host_os in
11866    cygwin*)
11867      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11868      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11869
11870      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11871      ;;
11872    mingw* | cegcc*)
11873      # MinGW DLLs use traditional 'lib' prefix
11874      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11875      ;;
11876    pw32*)
11877      # pw32 DLLs use 'pw' prefix rather than 'lib'
11878      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11879      ;;
11880    esac
11881    dynamic_linker='Win32 ld.exe'
11882    ;;
11883
11884  *,cl* | *,icl*)
11885    # Native MSVC or ICC
11886    libname_spec='$name'
11887    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11888    library_names_spec='$libname.dll.lib'
11889
11890    case $build_os in
11891    mingw*)
11892      sys_lib_search_path_spec=
11893      lt_save_ifs=$IFS
11894      IFS=';'
11895      for lt_path in $LIB
11896      do
11897        IFS=$lt_save_ifs
11898        # Let DOS variable expansion print the short 8.3 style file name.
11899        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11900        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11901      done
11902      IFS=$lt_save_ifs
11903      # Convert to MSYS style.
11904      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11905      ;;
11906    cygwin*)
11907      # Convert to unix form, then to dos form, then back to unix form
11908      # but this time dos style (no spaces!) so that the unix form looks
11909      # like /cygdrive/c/PROGRA~1:/cygdr...
11910      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11911      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11912      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913      ;;
11914    *)
11915      sys_lib_search_path_spec=$LIB
11916      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11917        # It is most probably a Windows format PATH.
11918        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919      else
11920        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921      fi
11922      # FIXME: find the short name or the path components, as spaces are
11923      # common. (e.g. "Program Files" -> "PROGRA~1")
11924      ;;
11925    esac
11926
11927    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11928    postinstall_cmds='base_file=`basename \$file`~
11929      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11930      dldir=$destdir/`dirname \$dlpath`~
11931      test -d \$dldir || mkdir -p \$dldir~
11932      $install_prog $dir/$dlname \$dldir/$dlname'
11933    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11934      dlpath=$dir/\$dldll~
11935       $RM \$dlpath'
11936    shlibpath_overrides_runpath=yes
11937    dynamic_linker='Win32 link.exe'
11938    ;;
11939
11940  *)
11941    # Assume MSVC and ICC wrapper
11942    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11943    dynamic_linker='Win32 ld.exe'
11944    ;;
11945  esac
11946  # FIXME: first we should search . and the directory the executable is in
11947  shlibpath_var=PATH
11948  ;;
11949
11950darwin* | rhapsody*)
11951  dynamic_linker="$host_os dyld"
11952  version_type=darwin
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11956  soname_spec='$libname$release$major$shared_ext'
11957  shlibpath_overrides_runpath=yes
11958  shlibpath_var=DYLD_LIBRARY_PATH
11959  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11960
11961  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11962  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11963  ;;
11964
11965dgux*)
11966  version_type=linux # correct to gnu/linux during the next big refactor
11967  need_lib_prefix=no
11968  need_version=no
11969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970  soname_spec='$libname$release$shared_ext$major'
11971  shlibpath_var=LD_LIBRARY_PATH
11972  ;;
11973
11974freebsd* | dragonfly* | midnightbsd*)
11975  # DragonFly does not have aout.  When/if they implement a new
11976  # versioning mechanism, adjust this.
11977  if test -x /usr/bin/objformat; then
11978    objformat=`/usr/bin/objformat`
11979  else
11980    case $host_os in
11981    freebsd[23].*) objformat=aout ;;
11982    *) objformat=elf ;;
11983    esac
11984  fi
11985  version_type=freebsd-$objformat
11986  case $version_type in
11987    freebsd-elf*)
11988      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11989      soname_spec='$libname$release$shared_ext$major'
11990      need_version=no
11991      need_lib_prefix=no
11992      ;;
11993    freebsd-*)
11994      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11995      need_version=yes
11996      ;;
11997  esac
11998  shlibpath_var=LD_LIBRARY_PATH
11999  case $host_os in
12000  freebsd2.*)
12001    shlibpath_overrides_runpath=yes
12002    ;;
12003  freebsd3.[01]* | freebsdelf3.[01]*)
12004    shlibpath_overrides_runpath=yes
12005    hardcode_into_libs=yes
12006    ;;
12007  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12008  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12009    shlibpath_overrides_runpath=no
12010    hardcode_into_libs=yes
12011    ;;
12012  *) # from 4.6 on, and DragonFly
12013    shlibpath_overrides_runpath=yes
12014    hardcode_into_libs=yes
12015    ;;
12016  esac
12017  ;;
12018
12019haiku*)
12020  version_type=linux # correct to gnu/linux during the next big refactor
12021  need_lib_prefix=no
12022  need_version=no
12023  dynamic_linker="$host_os runtime_loader"
12024  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12025  soname_spec='$libname$release$shared_ext$major'
12026  shlibpath_var=LIBRARY_PATH
12027  shlibpath_overrides_runpath=no
12028  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12029  hardcode_into_libs=yes
12030  ;;
12031
12032hpux9* | hpux10* | hpux11*)
12033  # Give a soname corresponding to the major version so that dld.sl refuses to
12034  # link against other versions.
12035  version_type=sunos
12036  need_lib_prefix=no
12037  need_version=no
12038  case $host_cpu in
12039  ia64*)
12040    shrext_cmds='.so'
12041    hardcode_into_libs=yes
12042    dynamic_linker="$host_os dld.so"
12043    shlibpath_var=LD_LIBRARY_PATH
12044    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046    soname_spec='$libname$release$shared_ext$major'
12047    if test 32 = "$HPUX_IA64_MODE"; then
12048      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12050    else
12051      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12053    fi
12054    ;;
12055  hppa*64*)
12056    shrext_cmds='.sl'
12057    hardcode_into_libs=yes
12058    dynamic_linker="$host_os dld.sl"
12059    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062    soname_spec='$libname$release$shared_ext$major'
12063    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065    ;;
12066  *)
12067    shrext_cmds='.sl'
12068    dynamic_linker="$host_os dld.sl"
12069    shlibpath_var=SHLIB_PATH
12070    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072    soname_spec='$libname$release$shared_ext$major'
12073    ;;
12074  esac
12075  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12076  postinstall_cmds='chmod 555 $lib'
12077  # or fails outright, so override atomically:
12078  install_override_mode=555
12079  ;;
12080
12081interix[3-9]*)
12082  version_type=linux # correct to gnu/linux during the next big refactor
12083  need_lib_prefix=no
12084  need_version=no
12085  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086  soname_spec='$libname$release$shared_ext$major'
12087  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12088  shlibpath_var=LD_LIBRARY_PATH
12089  shlibpath_overrides_runpath=no
12090  hardcode_into_libs=yes
12091  ;;
12092
12093irix5* | irix6* | nonstopux*)
12094  case $host_os in
12095    nonstopux*) version_type=nonstopux ;;
12096    *)
12097	if test yes = "$lt_cv_prog_gnu_ld"; then
12098		version_type=linux # correct to gnu/linux during the next big refactor
12099	else
12100		version_type=irix
12101	fi ;;
12102  esac
12103  need_lib_prefix=no
12104  need_version=no
12105  soname_spec='$libname$release$shared_ext$major'
12106  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12107  case $host_os in
12108  irix5* | nonstopux*)
12109    libsuff= shlibsuff=
12110    ;;
12111  *)
12112    case $LD in # libtool.m4 will add one of these switches to LD
12113    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12114      libsuff= shlibsuff= libmagic=32-bit;;
12115    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12116      libsuff=32 shlibsuff=N32 libmagic=N32;;
12117    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12118      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12119    *) libsuff= shlibsuff= libmagic=never-match;;
12120    esac
12121    ;;
12122  esac
12123  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12124  shlibpath_overrides_runpath=no
12125  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12126  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12127  hardcode_into_libs=yes
12128  ;;
12129
12130# No shared lib support for Linux oldld, aout, or coff.
12131linux*oldld* | linux*aout* | linux*coff*)
12132  dynamic_linker=no
12133  ;;
12134
12135linux*android*)
12136  version_type=none # Android doesn't support versioned libraries.
12137  need_lib_prefix=no
12138  need_version=no
12139  library_names_spec='$libname$release$shared_ext'
12140  soname_spec='$libname$release$shared_ext'
12141  finish_cmds=
12142  shlibpath_var=LD_LIBRARY_PATH
12143  shlibpath_overrides_runpath=yes
12144
12145  # This implies no fast_install, which is unacceptable.
12146  # Some rework will be needed to allow for fast_install
12147  # before this can be enabled.
12148  hardcode_into_libs=yes
12149
12150  dynamic_linker='Android linker'
12151  # Don't embed -rpath directories since the linker doesn't support them.
12152  hardcode_libdir_flag_spec='-L$libdir'
12153  ;;
12154
12155# This must be glibc/ELF.
12156linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12157  version_type=linux # correct to gnu/linux during the next big refactor
12158  need_lib_prefix=no
12159  need_version=no
12160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161  soname_spec='$libname$release$shared_ext$major'
12162  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12163  shlibpath_var=LD_LIBRARY_PATH
12164  shlibpath_overrides_runpath=no
12165
12166  # Some binutils ld are patched to set DT_RUNPATH
12167  if test ${lt_cv_shlibpath_overrides_runpath+y}
12168then :
12169  printf %s "(cached) " >&6
12170else $as_nop
12171  lt_cv_shlibpath_overrides_runpath=no
12172    save_LDFLAGS=$LDFLAGS
12173    save_libdir=$libdir
12174    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12175	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12176    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179int
12180main (void)
12181{
12182
12183  ;
12184  return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_link "$LINENO"
12188then :
12189  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12190then :
12191  lt_cv_shlibpath_overrides_runpath=yes
12192fi
12193fi
12194rm -f core conftest.err conftest.$ac_objext conftest.beam \
12195    conftest$ac_exeext conftest.$ac_ext
12196    LDFLAGS=$save_LDFLAGS
12197    libdir=$save_libdir
12198
12199fi
12200
12201  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12202
12203  # This implies no fast_install, which is unacceptable.
12204  # Some rework will be needed to allow for fast_install
12205  # before this can be enabled.
12206  hardcode_into_libs=yes
12207
12208  # Ideally, we could use ldconfig to report *all* directores which are
12209  # searched for libraries, however this is still not possible.  Aside from not
12210  # being certain /sbin/ldconfig is available, command
12211  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12212  # even though it is searched at run-time.  Try to do the best guess by
12213  # appending ld.so.conf contents (and includes) to the search path.
12214  if test -f /etc/ld.so.conf; then
12215    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' ' '`
12216    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12217  fi
12218
12219  # We used to test for /lib/ld.so.1 and disable shared libraries on
12220  # powerpc, because MkLinux only supported shared libraries with the
12221  # GNU dynamic linker.  Since this was broken with cross compilers,
12222  # most powerpc-linux boxes support dynamic linking these days and
12223  # people can always --disable-shared, the test was removed, and we
12224  # assume the GNU/Linux dynamic linker is in use.
12225  dynamic_linker='GNU/Linux ld.so'
12226  ;;
12227
12228netbsd*)
12229  version_type=sunos
12230  need_lib_prefix=no
12231  need_version=no
12232  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12233    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12234    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12235    dynamic_linker='NetBSD (a.out) ld.so'
12236  else
12237    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238    soname_spec='$libname$release$shared_ext$major'
12239    dynamic_linker='NetBSD ld.elf_so'
12240  fi
12241  shlibpath_var=LD_LIBRARY_PATH
12242  shlibpath_overrides_runpath=yes
12243  hardcode_into_libs=yes
12244  ;;
12245
12246newsos6)
12247  version_type=linux # correct to gnu/linux during the next big refactor
12248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249  shlibpath_var=LD_LIBRARY_PATH
12250  shlibpath_overrides_runpath=yes
12251  ;;
12252
12253*nto* | *qnx*)
12254  version_type=qnx
12255  need_lib_prefix=no
12256  need_version=no
12257  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258  soname_spec='$libname$release$shared_ext$major'
12259  shlibpath_var=LD_LIBRARY_PATH
12260  shlibpath_overrides_runpath=no
12261  hardcode_into_libs=yes
12262  dynamic_linker='ldqnx.so'
12263  ;;
12264
12265openbsd* | bitrig*)
12266  version_type=sunos
12267  sys_lib_dlsearch_path_spec=/usr/lib
12268  need_lib_prefix=no
12269  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12270    need_version=no
12271  else
12272    need_version=yes
12273  fi
12274  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12275  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12276  shlibpath_var=LD_LIBRARY_PATH
12277  shlibpath_overrides_runpath=yes
12278  ;;
12279
12280os2*)
12281  libname_spec='$name'
12282  version_type=windows
12283  shrext_cmds=.dll
12284  need_version=no
12285  need_lib_prefix=no
12286  # OS/2 can only load a DLL with a base name of 8 characters or less.
12287  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12288    v=$($ECHO $release$versuffix | tr -d .-);
12289    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12290    $ECHO $n$v`$shared_ext'
12291  library_names_spec='${libname}_dll.$libext'
12292  dynamic_linker='OS/2 ld.exe'
12293  shlibpath_var=BEGINLIBPATH
12294  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12295  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12296  postinstall_cmds='base_file=`basename \$file`~
12297    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12298    dldir=$destdir/`dirname \$dlpath`~
12299    test -d \$dldir || mkdir -p \$dldir~
12300    $install_prog $dir/$dlname \$dldir/$dlname~
12301    chmod a+x \$dldir/$dlname~
12302    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12303      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12304    fi'
12305  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12306    dlpath=$dir/\$dldll~
12307    $RM \$dlpath'
12308  ;;
12309
12310osf3* | osf4* | osf5*)
12311  version_type=osf
12312  need_lib_prefix=no
12313  need_version=no
12314  soname_spec='$libname$release$shared_ext$major'
12315  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12316  shlibpath_var=LD_LIBRARY_PATH
12317  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12318  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12319  ;;
12320
12321rdos*)
12322  dynamic_linker=no
12323  ;;
12324
12325solaris*)
12326  version_type=linux # correct to gnu/linux during the next big refactor
12327  need_lib_prefix=no
12328  need_version=no
12329  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12330  soname_spec='$libname$release$shared_ext$major'
12331  shlibpath_var=LD_LIBRARY_PATH
12332  shlibpath_overrides_runpath=yes
12333  hardcode_into_libs=yes
12334  # ldd complains unless libraries are executable
12335  postinstall_cmds='chmod +x $lib'
12336  ;;
12337
12338sunos4*)
12339  version_type=sunos
12340  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12341  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12342  shlibpath_var=LD_LIBRARY_PATH
12343  shlibpath_overrides_runpath=yes
12344  if test yes = "$with_gnu_ld"; then
12345    need_lib_prefix=no
12346  fi
12347  need_version=yes
12348  ;;
12349
12350sysv4 | sysv4.3*)
12351  version_type=linux # correct to gnu/linux during the next big refactor
12352  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12353  soname_spec='$libname$release$shared_ext$major'
12354  shlibpath_var=LD_LIBRARY_PATH
12355  case $host_vendor in
12356    sni)
12357      shlibpath_overrides_runpath=no
12358      need_lib_prefix=no
12359      runpath_var=LD_RUN_PATH
12360      ;;
12361    siemens)
12362      need_lib_prefix=no
12363      ;;
12364    motorola)
12365      need_lib_prefix=no
12366      need_version=no
12367      shlibpath_overrides_runpath=no
12368      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12369      ;;
12370  esac
12371  ;;
12372
12373sysv4*MP*)
12374  if test -d /usr/nec; then
12375    version_type=linux # correct to gnu/linux during the next big refactor
12376    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12377    soname_spec='$libname$shared_ext.$major'
12378    shlibpath_var=LD_LIBRARY_PATH
12379  fi
12380  ;;
12381
12382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12383  version_type=sco
12384  need_lib_prefix=no
12385  need_version=no
12386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12387  soname_spec='$libname$release$shared_ext$major'
12388  shlibpath_var=LD_LIBRARY_PATH
12389  shlibpath_overrides_runpath=yes
12390  hardcode_into_libs=yes
12391  if test yes = "$with_gnu_ld"; then
12392    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12393  else
12394    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12395    case $host_os in
12396      sco3.2v5*)
12397        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12398	;;
12399    esac
12400  fi
12401  sys_lib_dlsearch_path_spec='/usr/lib'
12402  ;;
12403
12404tpf*)
12405  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12406  version_type=linux # correct to gnu/linux during the next big refactor
12407  need_lib_prefix=no
12408  need_version=no
12409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12410  shlibpath_var=LD_LIBRARY_PATH
12411  shlibpath_overrides_runpath=no
12412  hardcode_into_libs=yes
12413  ;;
12414
12415uts4*)
12416  version_type=linux # correct to gnu/linux during the next big refactor
12417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12418  soname_spec='$libname$release$shared_ext$major'
12419  shlibpath_var=LD_LIBRARY_PATH
12420  ;;
12421
12422*)
12423  dynamic_linker=no
12424  ;;
12425esac
12426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12427printf "%s\n" "$dynamic_linker" >&6; }
12428test no = "$dynamic_linker" && can_build_shared=no
12429
12430variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12431if test yes = "$GCC"; then
12432  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12433fi
12434
12435if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12436  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12437fi
12438
12439if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12440  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12441fi
12442
12443# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12444configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12445
12446# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12447func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12448
12449# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12450configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12549printf %s "checking how to hardcode library paths into programs... " >&6; }
12550hardcode_action=
12551if test -n "$hardcode_libdir_flag_spec" ||
12552   test -n "$runpath_var" ||
12553   test yes = "$hardcode_automatic"; then
12554
12555  # We can hardcode non-existent directories.
12556  if test no != "$hardcode_direct" &&
12557     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12558     # have to relink, otherwise we might link with an installed library
12559     # when we should be linking with a yet-to-be-installed one
12560     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12561     test no != "$hardcode_minus_L"; then
12562    # Linking always hardcodes the temporary library directory.
12563    hardcode_action=relink
12564  else
12565    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12566    hardcode_action=immediate
12567  fi
12568else
12569  # We cannot hardcode anything, or else we can only hardcode existing
12570  # directories.
12571  hardcode_action=unsupported
12572fi
12573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12574printf "%s\n" "$hardcode_action" >&6; }
12575
12576if test relink = "$hardcode_action" ||
12577   test yes = "$inherit_rpath"; then
12578  # Fast installation is not supported
12579  enable_fast_install=no
12580elif test yes = "$shlibpath_overrides_runpath" ||
12581     test no = "$enable_shared"; then
12582  # Fast installation is not necessary
12583  enable_fast_install=needless
12584fi
12585
12586
12587
12588
12589
12590
12591  if test yes != "$enable_dlopen"; then
12592  enable_dlopen=unknown
12593  enable_dlopen_self=unknown
12594  enable_dlopen_self_static=unknown
12595else
12596  lt_cv_dlopen=no
12597  lt_cv_dlopen_libs=
12598
12599  case $host_os in
12600  beos*)
12601    lt_cv_dlopen=load_add_on
12602    lt_cv_dlopen_libs=
12603    lt_cv_dlopen_self=yes
12604    ;;
12605
12606  mingw* | pw32* | cegcc*)
12607    lt_cv_dlopen=LoadLibrary
12608    lt_cv_dlopen_libs=
12609    ;;
12610
12611  cygwin*)
12612    lt_cv_dlopen=dlopen
12613    lt_cv_dlopen_libs=
12614    ;;
12615
12616  darwin*)
12617    # if libdl is installed we need to link against it
12618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12619printf %s "checking for dlopen in -ldl... " >&6; }
12620if test ${ac_cv_lib_dl_dlopen+y}
12621then :
12622  printf %s "(cached) " >&6
12623else $as_nop
12624  ac_check_lib_save_LIBS=$LIBS
12625LIBS="-ldl  $LIBS"
12626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h.  */
12628
12629/* Override any GCC internal prototype to avoid an error.
12630   Use char because int might match the return type of a GCC
12631   builtin and then its argument prototype would still apply.  */
12632char dlopen ();
12633int
12634main (void)
12635{
12636return dlopen ();
12637  ;
12638  return 0;
12639}
12640_ACEOF
12641if ac_fn_c_try_link "$LINENO"
12642then :
12643  ac_cv_lib_dl_dlopen=yes
12644else $as_nop
12645  ac_cv_lib_dl_dlopen=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.beam \
12648    conftest$ac_exeext conftest.$ac_ext
12649LIBS=$ac_check_lib_save_LIBS
12650fi
12651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12652printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12653if test "x$ac_cv_lib_dl_dlopen" = xyes
12654then :
12655  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12656else $as_nop
12657
12658    lt_cv_dlopen=dyld
12659    lt_cv_dlopen_libs=
12660    lt_cv_dlopen_self=yes
12661
12662fi
12663
12664    ;;
12665
12666  tpf*)
12667    # Don't try to run any link tests for TPF.  We know it's impossible
12668    # because TPF is a cross-compiler, and we know how we open DSOs.
12669    lt_cv_dlopen=dlopen
12670    lt_cv_dlopen_libs=
12671    lt_cv_dlopen_self=no
12672    ;;
12673
12674  *)
12675    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12676if test "x$ac_cv_func_shl_load" = xyes
12677then :
12678  lt_cv_dlopen=shl_load
12679else $as_nop
12680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12681printf %s "checking for shl_load in -ldld... " >&6; }
12682if test ${ac_cv_lib_dld_shl_load+y}
12683then :
12684  printf %s "(cached) " >&6
12685else $as_nop
12686  ac_check_lib_save_LIBS=$LIBS
12687LIBS="-ldld  $LIBS"
12688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h.  */
12690
12691/* Override any GCC internal prototype to avoid an error.
12692   Use char because int might match the return type of a GCC
12693   builtin and then its argument prototype would still apply.  */
12694char shl_load ();
12695int
12696main (void)
12697{
12698return shl_load ();
12699  ;
12700  return 0;
12701}
12702_ACEOF
12703if ac_fn_c_try_link "$LINENO"
12704then :
12705  ac_cv_lib_dld_shl_load=yes
12706else $as_nop
12707  ac_cv_lib_dld_shl_load=no
12708fi
12709rm -f core conftest.err conftest.$ac_objext conftest.beam \
12710    conftest$ac_exeext conftest.$ac_ext
12711LIBS=$ac_check_lib_save_LIBS
12712fi
12713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12714printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12715if test "x$ac_cv_lib_dld_shl_load" = xyes
12716then :
12717  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12718else $as_nop
12719  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12720if test "x$ac_cv_func_dlopen" = xyes
12721then :
12722  lt_cv_dlopen=dlopen
12723else $as_nop
12724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12725printf %s "checking for dlopen in -ldl... " >&6; }
12726if test ${ac_cv_lib_dl_dlopen+y}
12727then :
12728  printf %s "(cached) " >&6
12729else $as_nop
12730  ac_check_lib_save_LIBS=$LIBS
12731LIBS="-ldl  $LIBS"
12732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733/* end confdefs.h.  */
12734
12735/* Override any GCC internal prototype to avoid an error.
12736   Use char because int might match the return type of a GCC
12737   builtin and then its argument prototype would still apply.  */
12738char dlopen ();
12739int
12740main (void)
12741{
12742return dlopen ();
12743  ;
12744  return 0;
12745}
12746_ACEOF
12747if ac_fn_c_try_link "$LINENO"
12748then :
12749  ac_cv_lib_dl_dlopen=yes
12750else $as_nop
12751  ac_cv_lib_dl_dlopen=no
12752fi
12753rm -f core conftest.err conftest.$ac_objext conftest.beam \
12754    conftest$ac_exeext conftest.$ac_ext
12755LIBS=$ac_check_lib_save_LIBS
12756fi
12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12758printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12759if test "x$ac_cv_lib_dl_dlopen" = xyes
12760then :
12761  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12762else $as_nop
12763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12764printf %s "checking for dlopen in -lsvld... " >&6; }
12765if test ${ac_cv_lib_svld_dlopen+y}
12766then :
12767  printf %s "(cached) " >&6
12768else $as_nop
12769  ac_check_lib_save_LIBS=$LIBS
12770LIBS="-lsvld  $LIBS"
12771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h.  */
12773
12774/* Override any GCC internal prototype to avoid an error.
12775   Use char because int might match the return type of a GCC
12776   builtin and then its argument prototype would still apply.  */
12777char dlopen ();
12778int
12779main (void)
12780{
12781return dlopen ();
12782  ;
12783  return 0;
12784}
12785_ACEOF
12786if ac_fn_c_try_link "$LINENO"
12787then :
12788  ac_cv_lib_svld_dlopen=yes
12789else $as_nop
12790  ac_cv_lib_svld_dlopen=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext conftest.beam \
12793    conftest$ac_exeext conftest.$ac_ext
12794LIBS=$ac_check_lib_save_LIBS
12795fi
12796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12797printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12798if test "x$ac_cv_lib_svld_dlopen" = xyes
12799then :
12800  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12801else $as_nop
12802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12803printf %s "checking for dld_link in -ldld... " >&6; }
12804if test ${ac_cv_lib_dld_dld_link+y}
12805then :
12806  printf %s "(cached) " >&6
12807else $as_nop
12808  ac_check_lib_save_LIBS=$LIBS
12809LIBS="-ldld  $LIBS"
12810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812
12813/* Override any GCC internal prototype to avoid an error.
12814   Use char because int might match the return type of a GCC
12815   builtin and then its argument prototype would still apply.  */
12816char dld_link ();
12817int
12818main (void)
12819{
12820return dld_link ();
12821  ;
12822  return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_link "$LINENO"
12826then :
12827  ac_cv_lib_dld_dld_link=yes
12828else $as_nop
12829  ac_cv_lib_dld_dld_link=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.beam \
12832    conftest$ac_exeext conftest.$ac_ext
12833LIBS=$ac_check_lib_save_LIBS
12834fi
12835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12836printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12837if test "x$ac_cv_lib_dld_dld_link" = xyes
12838then :
12839  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12840fi
12841
12842
12843fi
12844
12845
12846fi
12847
12848
12849fi
12850
12851
12852fi
12853
12854
12855fi
12856
12857    ;;
12858  esac
12859
12860  if test no = "$lt_cv_dlopen"; then
12861    enable_dlopen=no
12862  else
12863    enable_dlopen=yes
12864  fi
12865
12866  case $lt_cv_dlopen in
12867  dlopen)
12868    save_CPPFLAGS=$CPPFLAGS
12869    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12870
12871    save_LDFLAGS=$LDFLAGS
12872    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12873
12874    save_LIBS=$LIBS
12875    LIBS="$lt_cv_dlopen_libs $LIBS"
12876
12877    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12878printf %s "checking whether a program can dlopen itself... " >&6; }
12879if test ${lt_cv_dlopen_self+y}
12880then :
12881  printf %s "(cached) " >&6
12882else $as_nop
12883  	  if test yes = "$cross_compiling"; then :
12884  lt_cv_dlopen_self=cross
12885else
12886  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12887  lt_status=$lt_dlunknown
12888  cat > conftest.$ac_ext <<_LT_EOF
12889#line $LINENO "configure"
12890#include "confdefs.h"
12891
12892#if HAVE_DLFCN_H
12893#include <dlfcn.h>
12894#endif
12895
12896#include <stdio.h>
12897
12898#ifdef RTLD_GLOBAL
12899#  define LT_DLGLOBAL		RTLD_GLOBAL
12900#else
12901#  ifdef DL_GLOBAL
12902#    define LT_DLGLOBAL		DL_GLOBAL
12903#  else
12904#    define LT_DLGLOBAL		0
12905#  endif
12906#endif
12907
12908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12909   find out it does not work in some platform. */
12910#ifndef LT_DLLAZY_OR_NOW
12911#  ifdef RTLD_LAZY
12912#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12913#  else
12914#    ifdef DL_LAZY
12915#      define LT_DLLAZY_OR_NOW		DL_LAZY
12916#    else
12917#      ifdef RTLD_NOW
12918#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12919#      else
12920#        ifdef DL_NOW
12921#          define LT_DLLAZY_OR_NOW	DL_NOW
12922#        else
12923#          define LT_DLLAZY_OR_NOW	0
12924#        endif
12925#      endif
12926#    endif
12927#  endif
12928#endif
12929
12930/* When -fvisibility=hidden is used, assume the code has been annotated
12931   correspondingly for the symbols needed.  */
12932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12933int fnord () __attribute__((visibility("default")));
12934#endif
12935
12936int fnord () { return 42; }
12937int main ()
12938{
12939  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12940  int status = $lt_dlunknown;
12941
12942  if (self)
12943    {
12944      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12945      else
12946        {
12947	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12948          else puts (dlerror ());
12949	}
12950      /* dlclose (self); */
12951    }
12952  else
12953    puts (dlerror ());
12954
12955  return status;
12956}
12957_LT_EOF
12958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12959  (eval $ac_link) 2>&5
12960  ac_status=$?
12961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12962  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12963    (./conftest; exit; ) >&5 2>/dev/null
12964    lt_status=$?
12965    case x$lt_status in
12966      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12967      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12968      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12969    esac
12970  else :
12971    # compilation failed
12972    lt_cv_dlopen_self=no
12973  fi
12974fi
12975rm -fr conftest*
12976
12977
12978fi
12979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12980printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12981
12982    if test yes = "$lt_cv_dlopen_self"; then
12983      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12984      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12985printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12986if test ${lt_cv_dlopen_self_static+y}
12987then :
12988  printf %s "(cached) " >&6
12989else $as_nop
12990  	  if test yes = "$cross_compiling"; then :
12991  lt_cv_dlopen_self_static=cross
12992else
12993  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12994  lt_status=$lt_dlunknown
12995  cat > conftest.$ac_ext <<_LT_EOF
12996#line $LINENO "configure"
12997#include "confdefs.h"
12998
12999#if HAVE_DLFCN_H
13000#include <dlfcn.h>
13001#endif
13002
13003#include <stdio.h>
13004
13005#ifdef RTLD_GLOBAL
13006#  define LT_DLGLOBAL		RTLD_GLOBAL
13007#else
13008#  ifdef DL_GLOBAL
13009#    define LT_DLGLOBAL		DL_GLOBAL
13010#  else
13011#    define LT_DLGLOBAL		0
13012#  endif
13013#endif
13014
13015/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13016   find out it does not work in some platform. */
13017#ifndef LT_DLLAZY_OR_NOW
13018#  ifdef RTLD_LAZY
13019#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13020#  else
13021#    ifdef DL_LAZY
13022#      define LT_DLLAZY_OR_NOW		DL_LAZY
13023#    else
13024#      ifdef RTLD_NOW
13025#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13026#      else
13027#        ifdef DL_NOW
13028#          define LT_DLLAZY_OR_NOW	DL_NOW
13029#        else
13030#          define LT_DLLAZY_OR_NOW	0
13031#        endif
13032#      endif
13033#    endif
13034#  endif
13035#endif
13036
13037/* When -fvisibility=hidden is used, assume the code has been annotated
13038   correspondingly for the symbols needed.  */
13039#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13040int fnord () __attribute__((visibility("default")));
13041#endif
13042
13043int fnord () { return 42; }
13044int main ()
13045{
13046  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13047  int status = $lt_dlunknown;
13048
13049  if (self)
13050    {
13051      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13052      else
13053        {
13054	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13055          else puts (dlerror ());
13056	}
13057      /* dlclose (self); */
13058    }
13059  else
13060    puts (dlerror ());
13061
13062  return status;
13063}
13064_LT_EOF
13065  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13066  (eval $ac_link) 2>&5
13067  ac_status=$?
13068  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13070    (./conftest; exit; ) >&5 2>/dev/null
13071    lt_status=$?
13072    case x$lt_status in
13073      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13074      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13075      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13076    esac
13077  else :
13078    # compilation failed
13079    lt_cv_dlopen_self_static=no
13080  fi
13081fi
13082rm -fr conftest*
13083
13084
13085fi
13086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13087printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13088    fi
13089
13090    CPPFLAGS=$save_CPPFLAGS
13091    LDFLAGS=$save_LDFLAGS
13092    LIBS=$save_LIBS
13093    ;;
13094  esac
13095
13096  case $lt_cv_dlopen_self in
13097  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13098  *) enable_dlopen_self=unknown ;;
13099  esac
13100
13101  case $lt_cv_dlopen_self_static in
13102  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13103  *) enable_dlopen_self_static=unknown ;;
13104  esac
13105fi
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123striplib=
13124old_striplib=
13125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13126printf %s "checking whether stripping libraries is possible... " >&6; }
13127if test -z "$STRIP"; then
13128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129printf "%s\n" "no" >&6; }
13130else
13131  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13132    old_striplib="$STRIP --strip-debug"
13133    striplib="$STRIP --strip-unneeded"
13134    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135printf "%s\n" "yes" >&6; }
13136  else
13137    case $host_os in
13138    darwin*)
13139      # FIXME - insert some real tests, host_os isn't really good enough
13140      striplib="$STRIP -x"
13141      old_striplib="$STRIP -S"
13142      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143printf "%s\n" "yes" >&6; }
13144      ;;
13145    freebsd*)
13146      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13147        old_striplib="$STRIP --strip-debug"
13148        striplib="$STRIP --strip-unneeded"
13149        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150printf "%s\n" "yes" >&6; }
13151      else
13152        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153printf "%s\n" "no" >&6; }
13154      fi
13155      ;;
13156    *)
13157      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158printf "%s\n" "no" >&6; }
13159      ;;
13160    esac
13161  fi
13162fi
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175  # Report what library types will actually be built
13176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13177printf %s "checking if libtool supports shared libraries... " >&6; }
13178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13179printf "%s\n" "$can_build_shared" >&6; }
13180
13181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13182printf %s "checking whether to build shared libraries... " >&6; }
13183  test no = "$can_build_shared" && enable_shared=no
13184
13185  # On AIX, shared libraries and static libraries use the same namespace, and
13186  # are all built from PIC.
13187  case $host_os in
13188  aix3*)
13189    test yes = "$enable_shared" && enable_static=no
13190    if test -n "$RANLIB"; then
13191      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13192      postinstall_cmds='$RANLIB $lib'
13193    fi
13194    ;;
13195
13196  aix[4-9]*)
13197    if test ia64 != "$host_cpu"; then
13198      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13199      yes,aix,yes) ;;			# shared object as lib.so file only
13200      yes,svr4,*) ;;			# shared object as lib.so archive member only
13201      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13202      esac
13203    fi
13204    ;;
13205  esac
13206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13207printf "%s\n" "$enable_shared" >&6; }
13208
13209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13210printf %s "checking whether to build static libraries... " >&6; }
13211  # Make sure either enable_shared or enable_static is yes.
13212  test yes = "$enable_shared" || enable_static=yes
13213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13214printf "%s\n" "$enable_static" >&6; }
13215
13216
13217
13218
13219fi
13220ac_ext=c
13221ac_cpp='$CPP $CPPFLAGS'
13222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13224ac_compiler_gnu=$ac_cv_c_compiler_gnu
13225
13226CC=$lt_save_CC
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242        ac_config_commands="$ac_config_commands libtool"
13243
13244
13245
13246
13247# Only expand once:
13248
13249
13250
13251# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13265printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13266if test ${ac_cv_c_undeclared_builtin_options+y}
13267then :
13268  printf %s "(cached) " >&6
13269else $as_nop
13270  ac_save_CFLAGS=$CFLAGS
13271   ac_cv_c_undeclared_builtin_options='cannot detect'
13272   for ac_arg in '' -fno-builtin; do
13273     CFLAGS="$ac_save_CFLAGS $ac_arg"
13274     # This test program should *not* compile successfully.
13275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h.  */
13277
13278int
13279main (void)
13280{
13281(void) strchr;
13282  ;
13283  return 0;
13284}
13285_ACEOF
13286if ac_fn_c_try_compile "$LINENO"
13287then :
13288
13289else $as_nop
13290  # This test program should compile successfully.
13291        # No library function is consistently available on
13292        # freestanding implementations, so test against a dummy
13293        # declaration.  Include always-available headers on the
13294        # off chance that they somehow elicit warnings.
13295        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h.  */
13297#include <float.h>
13298#include <limits.h>
13299#include <stdarg.h>
13300#include <stddef.h>
13301extern void ac_decl (int, char *);
13302
13303int
13304main (void)
13305{
13306(void) ac_decl (0, (char *) 0);
13307  (void) ac_decl;
13308
13309  ;
13310  return 0;
13311}
13312_ACEOF
13313if ac_fn_c_try_compile "$LINENO"
13314then :
13315  if test x"$ac_arg" = x
13316then :
13317  ac_cv_c_undeclared_builtin_options='none needed'
13318else $as_nop
13319  ac_cv_c_undeclared_builtin_options=$ac_arg
13320fi
13321          break
13322fi
13323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13324fi
13325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13326    done
13327    CFLAGS=$ac_save_CFLAGS
13328
13329fi
13330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13331printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13332  case $ac_cv_c_undeclared_builtin_options in #(
13333  'cannot detect') :
13334    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13335printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13336as_fn_error $? "cannot make $CC report undeclared builtins
13337See \`config.log' for more details" "$LINENO" 5; } ;; #(
13338  'none needed') :
13339    ac_c_undeclared_builtin_options='' ;; #(
13340  *) :
13341    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13342esac
13343
13344
13345
13346
13347
13348ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13349if test "x$ac_cv_have_decl___clang__" = xyes
13350then :
13351  CLANGCC="yes"
13352else $as_nop
13353  CLANGCC="no"
13354fi
13355ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13356if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13357then :
13358  INTELCC="yes"
13359else $as_nop
13360  INTELCC="no"
13361fi
13362ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13363if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13364then :
13365  SUNCC="yes"
13366else $as_nop
13367  SUNCC="no"
13368fi
13369
13370
13371
13372
13373
13374
13375
13376
13377if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13378	if test -n "$ac_tool_prefix"; then
13379  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13380set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382printf %s "checking for $ac_word... " >&6; }
13383if test ${ac_cv_path_PKG_CONFIG+y}
13384then :
13385  printf %s "(cached) " >&6
13386else $as_nop
13387  case $PKG_CONFIG in
13388  [\\/]* | ?:[\\/]*)
13389  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13390  ;;
13391  *)
13392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $PATH
13394do
13395  IFS=$as_save_IFS
13396  case $as_dir in #(((
13397    '') as_dir=./ ;;
13398    */) ;;
13399    *) as_dir=$as_dir/ ;;
13400  esac
13401    for ac_exec_ext in '' $ac_executable_extensions; do
13402  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13403    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13404    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13405    break 2
13406  fi
13407done
13408  done
13409IFS=$as_save_IFS
13410
13411  ;;
13412esac
13413fi
13414PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13415if test -n "$PKG_CONFIG"; then
13416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13417printf "%s\n" "$PKG_CONFIG" >&6; }
13418else
13419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420printf "%s\n" "no" >&6; }
13421fi
13422
13423
13424fi
13425if test -z "$ac_cv_path_PKG_CONFIG"; then
13426  ac_pt_PKG_CONFIG=$PKG_CONFIG
13427  # Extract the first word of "pkg-config", so it can be a program name with args.
13428set dummy pkg-config; ac_word=$2
13429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430printf %s "checking for $ac_word... " >&6; }
13431if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13432then :
13433  printf %s "(cached) " >&6
13434else $as_nop
13435  case $ac_pt_PKG_CONFIG in
13436  [\\/]* | ?:[\\/]*)
13437  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13438  ;;
13439  *)
13440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441for as_dir in $PATH
13442do
13443  IFS=$as_save_IFS
13444  case $as_dir in #(((
13445    '') as_dir=./ ;;
13446    */) ;;
13447    *) as_dir=$as_dir/ ;;
13448  esac
13449    for ac_exec_ext in '' $ac_executable_extensions; do
13450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13451    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13452    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13453    break 2
13454  fi
13455done
13456  done
13457IFS=$as_save_IFS
13458
13459  ;;
13460esac
13461fi
13462ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13463if test -n "$ac_pt_PKG_CONFIG"; then
13464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13465printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13466else
13467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468printf "%s\n" "no" >&6; }
13469fi
13470
13471  if test "x$ac_pt_PKG_CONFIG" = x; then
13472    PKG_CONFIG=""
13473  else
13474    case $cross_compiling:$ac_tool_warned in
13475yes:)
13476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13478ac_tool_warned=yes ;;
13479esac
13480    PKG_CONFIG=$ac_pt_PKG_CONFIG
13481  fi
13482else
13483  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13484fi
13485
13486fi
13487if test -n "$PKG_CONFIG"; then
13488	_pkg_min_version=0.9.0
13489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13490printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13491	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493printf "%s\n" "yes" >&6; }
13494	else
13495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496printf "%s\n" "no" >&6; }
13497		PKG_CONFIG=""
13498	fi
13499fi
13500
13501
13502
13503
13504
13505# Check whether --enable-selective-werror was given.
13506if test ${enable_selective_werror+y}
13507then :
13508  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13509else $as_nop
13510  SELECTIVE_WERROR=yes
13511fi
13512
13513
13514
13515
13516
13517# -v is too short to test reliably with XORG_TESTSET_CFLAG
13518if test "x$SUNCC" = "xyes"; then
13519    BASE_CFLAGS="-v"
13520else
13521    BASE_CFLAGS=""
13522fi
13523
13524# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538xorg_testset_save_CFLAGS="$CFLAGS"
13539
13540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13545then :
13546  printf %s "(cached) " >&6
13547else $as_nop
13548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h.  */
13550int i;
13551_ACEOF
13552if ac_fn_c_try_compile "$LINENO"
13553then :
13554  xorg_cv_cc_flag_unknown_warning_option=yes
13555else $as_nop
13556  xorg_cv_cc_flag_unknown_warning_option=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13559fi
13560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13563	CFLAGS="$xorg_testset_save_CFLAGS"
13564fi
13565
13566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13569	fi
13570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13574then :
13575  printf %s "(cached) " >&6
13576else $as_nop
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579int i;
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"
13582then :
13583  xorg_cv_cc_flag_unused_command_line_argument=yes
13584else $as_nop
13585  xorg_cv_cc_flag_unused_command_line_argument=no
13586fi
13587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13588fi
13589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13592	CFLAGS="$xorg_testset_save_CFLAGS"
13593fi
13594
13595found="no"
13596
13597	if test $found = "no" ; then
13598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13600		fi
13601
13602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13604		fi
13605
13606		CFLAGS="$CFLAGS -Wall"
13607
13608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13609printf %s "checking if $CC supports -Wall... " >&6; }
13610		cacheid=xorg_cv_cc_flag__Wall
13611		if eval test \${$cacheid+y}
13612then :
13613  printf %s "(cached) " >&6
13614else $as_nop
13615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617int i;
13618int
13619main (void)
13620{
13621
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"
13627then :
13628  eval $cacheid=yes
13629else $as_nop
13630  eval $cacheid=no
13631fi
13632rm -f core conftest.err conftest.$ac_objext conftest.beam \
13633    conftest$ac_exeext conftest.$ac_ext
13634fi
13635
13636
13637		CFLAGS="$xorg_testset_save_CFLAGS"
13638
13639		eval supported=\$$cacheid
13640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641printf "%s\n" "$supported" >&6; }
13642		if test "$supported" = "yes" ; then
13643			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13644			found="yes"
13645		fi
13646	fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662xorg_testset_save_CFLAGS="$CFLAGS"
13663
13664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13669then :
13670  printf %s "(cached) " >&6
13671else $as_nop
13672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674int i;
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"
13677then :
13678  xorg_cv_cc_flag_unknown_warning_option=yes
13679else $as_nop
13680  xorg_cv_cc_flag_unknown_warning_option=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13683fi
13684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687	CFLAGS="$xorg_testset_save_CFLAGS"
13688fi
13689
13690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693	fi
13694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13698then :
13699  printf %s "(cached) " >&6
13700else $as_nop
13701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702/* end confdefs.h.  */
13703int i;
13704_ACEOF
13705if ac_fn_c_try_compile "$LINENO"
13706then :
13707  xorg_cv_cc_flag_unused_command_line_argument=yes
13708else $as_nop
13709  xorg_cv_cc_flag_unused_command_line_argument=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13712fi
13713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13716	CFLAGS="$xorg_testset_save_CFLAGS"
13717fi
13718
13719found="no"
13720
13721	if test $found = "no" ; then
13722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724		fi
13725
13726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728		fi
13729
13730		CFLAGS="$CFLAGS -Wpointer-arith"
13731
13732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13733printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13734		cacheid=xorg_cv_cc_flag__Wpointer_arith
13735		if eval test \${$cacheid+y}
13736then :
13737  printf %s "(cached) " >&6
13738else $as_nop
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742int
13743main (void)
13744{
13745
13746  ;
13747  return 0;
13748}
13749_ACEOF
13750if ac_fn_c_try_link "$LINENO"
13751then :
13752  eval $cacheid=yes
13753else $as_nop
13754  eval $cacheid=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757    conftest$ac_exeext conftest.$ac_ext
13758fi
13759
13760
13761		CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763		eval supported=\$$cacheid
13764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765printf "%s\n" "$supported" >&6; }
13766		if test "$supported" = "yes" ; then
13767			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13768			found="yes"
13769		fi
13770	fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786xorg_testset_save_CFLAGS="$CFLAGS"
13787
13788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13793then :
13794  printf %s "(cached) " >&6
13795else $as_nop
13796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h.  */
13798int i;
13799_ACEOF
13800if ac_fn_c_try_compile "$LINENO"
13801then :
13802  xorg_cv_cc_flag_unknown_warning_option=yes
13803else $as_nop
13804  xorg_cv_cc_flag_unknown_warning_option=no
13805fi
13806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13807fi
13808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13811	CFLAGS="$xorg_testset_save_CFLAGS"
13812fi
13813
13814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817	fi
13818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13822then :
13823  printf %s "(cached) " >&6
13824else $as_nop
13825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826/* end confdefs.h.  */
13827int i;
13828_ACEOF
13829if ac_fn_c_try_compile "$LINENO"
13830then :
13831  xorg_cv_cc_flag_unused_command_line_argument=yes
13832else $as_nop
13833  xorg_cv_cc_flag_unused_command_line_argument=no
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836fi
13837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13840	CFLAGS="$xorg_testset_save_CFLAGS"
13841fi
13842
13843found="no"
13844
13845	if test $found = "no" ; then
13846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848		fi
13849
13850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852		fi
13853
13854		CFLAGS="$CFLAGS -Wmissing-declarations"
13855
13856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13857printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13858		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13859		if eval test \${$cacheid+y}
13860then :
13861  printf %s "(cached) " >&6
13862else $as_nop
13863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865int i;
13866int
13867main (void)
13868{
13869
13870  ;
13871  return 0;
13872}
13873_ACEOF
13874if ac_fn_c_try_link "$LINENO"
13875then :
13876  eval $cacheid=yes
13877else $as_nop
13878  eval $cacheid=no
13879fi
13880rm -f core conftest.err conftest.$ac_objext conftest.beam \
13881    conftest$ac_exeext conftest.$ac_ext
13882fi
13883
13884
13885		CFLAGS="$xorg_testset_save_CFLAGS"
13886
13887		eval supported=\$$cacheid
13888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13889printf "%s\n" "$supported" >&6; }
13890		if test "$supported" = "yes" ; then
13891			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13892			found="yes"
13893		fi
13894	fi
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910xorg_testset_save_CFLAGS="$CFLAGS"
13911
13912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13917then :
13918  printf %s "(cached) " >&6
13919else $as_nop
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922int i;
13923_ACEOF
13924if ac_fn_c_try_compile "$LINENO"
13925then :
13926  xorg_cv_cc_flag_unknown_warning_option=yes
13927else $as_nop
13928  xorg_cv_cc_flag_unknown_warning_option=no
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13931fi
13932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935	CFLAGS="$xorg_testset_save_CFLAGS"
13936fi
13937
13938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941	fi
13942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13946then :
13947  printf %s "(cached) " >&6
13948else $as_nop
13949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951int i;
13952_ACEOF
13953if ac_fn_c_try_compile "$LINENO"
13954then :
13955  xorg_cv_cc_flag_unused_command_line_argument=yes
13956else $as_nop
13957  xorg_cv_cc_flag_unused_command_line_argument=no
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13960fi
13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13964	CFLAGS="$xorg_testset_save_CFLAGS"
13965fi
13966
13967found="no"
13968
13969	if test $found = "no" ; then
13970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972		fi
13973
13974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976		fi
13977
13978		CFLAGS="$CFLAGS -Wformat=2"
13979
13980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13981printf %s "checking if $CC supports -Wformat=2... " >&6; }
13982		cacheid=xorg_cv_cc_flag__Wformat_2
13983		if eval test \${$cacheid+y}
13984then :
13985  printf %s "(cached) " >&6
13986else $as_nop
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990int
13991main (void)
13992{
13993
13994  ;
13995  return 0;
13996}
13997_ACEOF
13998if ac_fn_c_try_link "$LINENO"
13999then :
14000  eval $cacheid=yes
14001else $as_nop
14002  eval $cacheid=no
14003fi
14004rm -f core conftest.err conftest.$ac_objext conftest.beam \
14005    conftest$ac_exeext conftest.$ac_ext
14006fi
14007
14008
14009		CFLAGS="$xorg_testset_save_CFLAGS"
14010
14011		eval supported=\$$cacheid
14012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14013printf "%s\n" "$supported" >&6; }
14014		if test "$supported" = "yes" ; then
14015			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14016			found="yes"
14017		fi
14018	fi
14019
14020	if test $found = "no" ; then
14021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023		fi
14024
14025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14027		fi
14028
14029		CFLAGS="$CFLAGS -Wformat"
14030
14031		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14032printf %s "checking if $CC supports -Wformat... " >&6; }
14033		cacheid=xorg_cv_cc_flag__Wformat
14034		if eval test \${$cacheid+y}
14035then :
14036  printf %s "(cached) " >&6
14037else $as_nop
14038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040int i;
14041int
14042main (void)
14043{
14044
14045  ;
14046  return 0;
14047}
14048_ACEOF
14049if ac_fn_c_try_link "$LINENO"
14050then :
14051  eval $cacheid=yes
14052else $as_nop
14053  eval $cacheid=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext conftest.beam \
14056    conftest$ac_exeext conftest.$ac_ext
14057fi
14058
14059
14060		CFLAGS="$xorg_testset_save_CFLAGS"
14061
14062		eval supported=\$$cacheid
14063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14064printf "%s\n" "$supported" >&6; }
14065		if test "$supported" = "yes" ; then
14066			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14067			found="yes"
14068		fi
14069	fi
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087xorg_testset_save_CFLAGS="$CFLAGS"
14088
14089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14094then :
14095  printf %s "(cached) " >&6
14096else $as_nop
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"
14102then :
14103  xorg_cv_cc_flag_unknown_warning_option=yes
14104else $as_nop
14105  xorg_cv_cc_flag_unknown_warning_option=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14108fi
14109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14112	CFLAGS="$xorg_testset_save_CFLAGS"
14113fi
14114
14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118	fi
14119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14123then :
14124  printf %s "(cached) " >&6
14125else $as_nop
14126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h.  */
14128int i;
14129_ACEOF
14130if ac_fn_c_try_compile "$LINENO"
14131then :
14132  xorg_cv_cc_flag_unused_command_line_argument=yes
14133else $as_nop
14134  xorg_cv_cc_flag_unused_command_line_argument=no
14135fi
14136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14137fi
14138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14141	CFLAGS="$xorg_testset_save_CFLAGS"
14142fi
14143
14144found="no"
14145
14146	if test $found = "no" ; then
14147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149		fi
14150
14151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14153		fi
14154
14155		CFLAGS="$CFLAGS -Wstrict-prototypes"
14156
14157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14158printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14159		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14160		if eval test \${$cacheid+y}
14161then :
14162  printf %s "(cached) " >&6
14163else $as_nop
14164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166int i;
14167int
14168main (void)
14169{
14170
14171  ;
14172  return 0;
14173}
14174_ACEOF
14175if ac_fn_c_try_link "$LINENO"
14176then :
14177  eval $cacheid=yes
14178else $as_nop
14179  eval $cacheid=no
14180fi
14181rm -f core conftest.err conftest.$ac_objext conftest.beam \
14182    conftest$ac_exeext conftest.$ac_ext
14183fi
14184
14185
14186		CFLAGS="$xorg_testset_save_CFLAGS"
14187
14188		eval supported=\$$cacheid
14189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14190printf "%s\n" "$supported" >&6; }
14191		if test "$supported" = "yes" ; then
14192			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14193			found="yes"
14194		fi
14195	fi
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211xorg_testset_save_CFLAGS="$CFLAGS"
14212
14213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14218then :
14219  printf %s "(cached) " >&6
14220else $as_nop
14221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223int i;
14224_ACEOF
14225if ac_fn_c_try_compile "$LINENO"
14226then :
14227  xorg_cv_cc_flag_unknown_warning_option=yes
14228else $as_nop
14229  xorg_cv_cc_flag_unknown_warning_option=no
14230fi
14231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14232fi
14233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14236	CFLAGS="$xorg_testset_save_CFLAGS"
14237fi
14238
14239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14242	fi
14243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14247then :
14248  printf %s "(cached) " >&6
14249else $as_nop
14250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251/* end confdefs.h.  */
14252int i;
14253_ACEOF
14254if ac_fn_c_try_compile "$LINENO"
14255then :
14256  xorg_cv_cc_flag_unused_command_line_argument=yes
14257else $as_nop
14258  xorg_cv_cc_flag_unused_command_line_argument=no
14259fi
14260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14261fi
14262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14265	CFLAGS="$xorg_testset_save_CFLAGS"
14266fi
14267
14268found="no"
14269
14270	if test $found = "no" ; then
14271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273		fi
14274
14275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14277		fi
14278
14279		CFLAGS="$CFLAGS -Wmissing-prototypes"
14280
14281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14282printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14283		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14284		if eval test \${$cacheid+y}
14285then :
14286  printf %s "(cached) " >&6
14287else $as_nop
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290int i;
14291int
14292main (void)
14293{
14294
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"
14300then :
14301  eval $cacheid=yes
14302else $as_nop
14303  eval $cacheid=no
14304fi
14305rm -f core conftest.err conftest.$ac_objext conftest.beam \
14306    conftest$ac_exeext conftest.$ac_ext
14307fi
14308
14309
14310		CFLAGS="$xorg_testset_save_CFLAGS"
14311
14312		eval supported=\$$cacheid
14313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14314printf "%s\n" "$supported" >&6; }
14315		if test "$supported" = "yes" ; then
14316			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14317			found="yes"
14318		fi
14319	fi
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335xorg_testset_save_CFLAGS="$CFLAGS"
14336
14337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14342then :
14343  printf %s "(cached) " >&6
14344else $as_nop
14345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346/* end confdefs.h.  */
14347int i;
14348_ACEOF
14349if ac_fn_c_try_compile "$LINENO"
14350then :
14351  xorg_cv_cc_flag_unknown_warning_option=yes
14352else $as_nop
14353  xorg_cv_cc_flag_unknown_warning_option=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14356fi
14357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14360	CFLAGS="$xorg_testset_save_CFLAGS"
14361fi
14362
14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366	fi
14367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14371then :
14372  printf %s "(cached) " >&6
14373else $as_nop
14374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375/* end confdefs.h.  */
14376int i;
14377_ACEOF
14378if ac_fn_c_try_compile "$LINENO"
14379then :
14380  xorg_cv_cc_flag_unused_command_line_argument=yes
14381else $as_nop
14382  xorg_cv_cc_flag_unused_command_line_argument=no
14383fi
14384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14385fi
14386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14389	CFLAGS="$xorg_testset_save_CFLAGS"
14390fi
14391
14392found="no"
14393
14394	if test $found = "no" ; then
14395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397		fi
14398
14399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401		fi
14402
14403		CFLAGS="$CFLAGS -Wnested-externs"
14404
14405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14406printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14407		cacheid=xorg_cv_cc_flag__Wnested_externs
14408		if eval test \${$cacheid+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414int i;
14415int
14416main (void)
14417{
14418
14419  ;
14420  return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_link "$LINENO"
14424then :
14425  eval $cacheid=yes
14426else $as_nop
14427  eval $cacheid=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430    conftest$ac_exeext conftest.$ac_ext
14431fi
14432
14433
14434		CFLAGS="$xorg_testset_save_CFLAGS"
14435
14436		eval supported=\$$cacheid
14437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14438printf "%s\n" "$supported" >&6; }
14439		if test "$supported" = "yes" ; then
14440			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14441			found="yes"
14442		fi
14443	fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459xorg_testset_save_CFLAGS="$CFLAGS"
14460
14461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14466then :
14467  printf %s "(cached) " >&6
14468else $as_nop
14469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470/* end confdefs.h.  */
14471int i;
14472_ACEOF
14473if ac_fn_c_try_compile "$LINENO"
14474then :
14475  xorg_cv_cc_flag_unknown_warning_option=yes
14476else $as_nop
14477  xorg_cv_cc_flag_unknown_warning_option=no
14478fi
14479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14480fi
14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14484	CFLAGS="$xorg_testset_save_CFLAGS"
14485fi
14486
14487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	fi
14491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14495then :
14496  printf %s "(cached) " >&6
14497else $as_nop
14498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499/* end confdefs.h.  */
14500int i;
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"
14503then :
14504  xorg_cv_cc_flag_unused_command_line_argument=yes
14505else $as_nop
14506  xorg_cv_cc_flag_unused_command_line_argument=no
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14509fi
14510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14513	CFLAGS="$xorg_testset_save_CFLAGS"
14514fi
14515
14516found="no"
14517
14518	if test $found = "no" ; then
14519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521		fi
14522
14523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14525		fi
14526
14527		CFLAGS="$CFLAGS -Wbad-function-cast"
14528
14529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14530printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14531		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14532		if eval test \${$cacheid+y}
14533then :
14534  printf %s "(cached) " >&6
14535else $as_nop
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539int
14540main (void)
14541{
14542
14543  ;
14544  return 0;
14545}
14546_ACEOF
14547if ac_fn_c_try_link "$LINENO"
14548then :
14549  eval $cacheid=yes
14550else $as_nop
14551  eval $cacheid=no
14552fi
14553rm -f core conftest.err conftest.$ac_objext conftest.beam \
14554    conftest$ac_exeext conftest.$ac_ext
14555fi
14556
14557
14558		CFLAGS="$xorg_testset_save_CFLAGS"
14559
14560		eval supported=\$$cacheid
14561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14562printf "%s\n" "$supported" >&6; }
14563		if test "$supported" = "yes" ; then
14564			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14565			found="yes"
14566		fi
14567	fi
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583xorg_testset_save_CFLAGS="$CFLAGS"
14584
14585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14590then :
14591  printf %s "(cached) " >&6
14592else $as_nop
14593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h.  */
14595int i;
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"
14598then :
14599  xorg_cv_cc_flag_unknown_warning_option=yes
14600else $as_nop
14601  xorg_cv_cc_flag_unknown_warning_option=no
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14604fi
14605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14608	CFLAGS="$xorg_testset_save_CFLAGS"
14609fi
14610
14611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14614	fi
14615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14619then :
14620  printf %s "(cached) " >&6
14621else $as_nop
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624int i;
14625_ACEOF
14626if ac_fn_c_try_compile "$LINENO"
14627then :
14628  xorg_cv_cc_flag_unused_command_line_argument=yes
14629else $as_nop
14630  xorg_cv_cc_flag_unused_command_line_argument=no
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14633fi
14634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14637	CFLAGS="$xorg_testset_save_CFLAGS"
14638fi
14639
14640found="no"
14641
14642	if test $found = "no" ; then
14643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14645		fi
14646
14647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14649		fi
14650
14651		CFLAGS="$CFLAGS -Wold-style-definition"
14652
14653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14654printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14655		cacheid=xorg_cv_cc_flag__Wold_style_definition
14656		if eval test \${$cacheid+y}
14657then :
14658  printf %s "(cached) " >&6
14659else $as_nop
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662int i;
14663int
14664main (void)
14665{
14666
14667  ;
14668  return 0;
14669}
14670_ACEOF
14671if ac_fn_c_try_link "$LINENO"
14672then :
14673  eval $cacheid=yes
14674else $as_nop
14675  eval $cacheid=no
14676fi
14677rm -f core conftest.err conftest.$ac_objext conftest.beam \
14678    conftest$ac_exeext conftest.$ac_ext
14679fi
14680
14681
14682		CFLAGS="$xorg_testset_save_CFLAGS"
14683
14684		eval supported=\$$cacheid
14685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14686printf "%s\n" "$supported" >&6; }
14687		if test "$supported" = "yes" ; then
14688			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14689			found="yes"
14690		fi
14691	fi
14692
14693	if test $found = "no" ; then
14694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14696		fi
14697
14698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14700		fi
14701
14702		CFLAGS="$CFLAGS -fd"
14703
14704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14705printf %s "checking if $CC supports -fd... " >&6; }
14706		cacheid=xorg_cv_cc_flag__fd
14707		if eval test \${$cacheid+y}
14708then :
14709  printf %s "(cached) " >&6
14710else $as_nop
14711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713int i;
14714int
14715main (void)
14716{
14717
14718  ;
14719  return 0;
14720}
14721_ACEOF
14722if ac_fn_c_try_link "$LINENO"
14723then :
14724  eval $cacheid=yes
14725else $as_nop
14726  eval $cacheid=no
14727fi
14728rm -f core conftest.err conftest.$ac_objext conftest.beam \
14729    conftest$ac_exeext conftest.$ac_ext
14730fi
14731
14732
14733		CFLAGS="$xorg_testset_save_CFLAGS"
14734
14735		eval supported=\$$cacheid
14736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14737printf "%s\n" "$supported" >&6; }
14738		if test "$supported" = "yes" ; then
14739			BASE_CFLAGS="$BASE_CFLAGS -fd"
14740			found="yes"
14741		fi
14742	fi
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758xorg_testset_save_CFLAGS="$CFLAGS"
14759
14760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14764if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14765then :
14766  printf %s "(cached) " >&6
14767else $as_nop
14768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769/* end confdefs.h.  */
14770int i;
14771_ACEOF
14772if ac_fn_c_try_compile "$LINENO"
14773then :
14774  xorg_cv_cc_flag_unknown_warning_option=yes
14775else $as_nop
14776  xorg_cv_cc_flag_unknown_warning_option=no
14777fi
14778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14779fi
14780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14783	CFLAGS="$xorg_testset_save_CFLAGS"
14784fi
14785
14786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789	fi
14790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14793if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14794then :
14795  printf %s "(cached) " >&6
14796else $as_nop
14797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799int i;
14800_ACEOF
14801if ac_fn_c_try_compile "$LINENO"
14802then :
14803  xorg_cv_cc_flag_unused_command_line_argument=yes
14804else $as_nop
14805  xorg_cv_cc_flag_unused_command_line_argument=no
14806fi
14807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14808fi
14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14812	CFLAGS="$xorg_testset_save_CFLAGS"
14813fi
14814
14815found="no"
14816
14817	if test $found = "no" ; then
14818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14820		fi
14821
14822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14824		fi
14825
14826		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14827
14828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14829printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14830		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14831		if eval test \${$cacheid+y}
14832then :
14833  printf %s "(cached) " >&6
14834else $as_nop
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837int i;
14838int
14839main (void)
14840{
14841
14842  ;
14843  return 0;
14844}
14845_ACEOF
14846if ac_fn_c_try_link "$LINENO"
14847then :
14848  eval $cacheid=yes
14849else $as_nop
14850  eval $cacheid=no
14851fi
14852rm -f core conftest.err conftest.$ac_objext conftest.beam \
14853    conftest$ac_exeext conftest.$ac_ext
14854fi
14855
14856
14857		CFLAGS="$xorg_testset_save_CFLAGS"
14858
14859		eval supported=\$$cacheid
14860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14861printf "%s\n" "$supported" >&6; }
14862		if test "$supported" = "yes" ; then
14863			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14864			found="yes"
14865		fi
14866	fi
14867
14868
14869
14870
14871
14872# This chunk adds additional warnings that could catch undesired effects.
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886xorg_testset_save_CFLAGS="$CFLAGS"
14887
14888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14893then :
14894  printf %s "(cached) " >&6
14895else $as_nop
14896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897/* end confdefs.h.  */
14898int i;
14899_ACEOF
14900if ac_fn_c_try_compile "$LINENO"
14901then :
14902  xorg_cv_cc_flag_unknown_warning_option=yes
14903else $as_nop
14904  xorg_cv_cc_flag_unknown_warning_option=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14907fi
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14911	CFLAGS="$xorg_testset_save_CFLAGS"
14912fi
14913
14914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14917	fi
14918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14922then :
14923  printf %s "(cached) " >&6
14924else $as_nop
14925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h.  */
14927int i;
14928_ACEOF
14929if ac_fn_c_try_compile "$LINENO"
14930then :
14931  xorg_cv_cc_flag_unused_command_line_argument=yes
14932else $as_nop
14933  xorg_cv_cc_flag_unused_command_line_argument=no
14934fi
14935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14936fi
14937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14940	CFLAGS="$xorg_testset_save_CFLAGS"
14941fi
14942
14943found="no"
14944
14945	if test $found = "no" ; then
14946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948		fi
14949
14950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952		fi
14953
14954		CFLAGS="$CFLAGS -Wunused"
14955
14956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14957printf %s "checking if $CC supports -Wunused... " >&6; }
14958		cacheid=xorg_cv_cc_flag__Wunused
14959		if eval test \${$cacheid+y}
14960then :
14961  printf %s "(cached) " >&6
14962else $as_nop
14963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965int i;
14966int
14967main (void)
14968{
14969
14970  ;
14971  return 0;
14972}
14973_ACEOF
14974if ac_fn_c_try_link "$LINENO"
14975then :
14976  eval $cacheid=yes
14977else $as_nop
14978  eval $cacheid=no
14979fi
14980rm -f core conftest.err conftest.$ac_objext conftest.beam \
14981    conftest$ac_exeext conftest.$ac_ext
14982fi
14983
14984
14985		CFLAGS="$xorg_testset_save_CFLAGS"
14986
14987		eval supported=\$$cacheid
14988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989printf "%s\n" "$supported" >&6; }
14990		if test "$supported" = "yes" ; then
14991			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14992			found="yes"
14993		fi
14994	fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010xorg_testset_save_CFLAGS="$CFLAGS"
15011
15012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15017then :
15018  printf %s "(cached) " >&6
15019else $as_nop
15020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022int i;
15023_ACEOF
15024if ac_fn_c_try_compile "$LINENO"
15025then :
15026  xorg_cv_cc_flag_unknown_warning_option=yes
15027else $as_nop
15028  xorg_cv_cc_flag_unknown_warning_option=no
15029fi
15030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15031fi
15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15035	CFLAGS="$xorg_testset_save_CFLAGS"
15036fi
15037
15038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041	fi
15042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15046then :
15047  printf %s "(cached) " >&6
15048else $as_nop
15049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h.  */
15051int i;
15052_ACEOF
15053if ac_fn_c_try_compile "$LINENO"
15054then :
15055  xorg_cv_cc_flag_unused_command_line_argument=yes
15056else $as_nop
15057  xorg_cv_cc_flag_unused_command_line_argument=no
15058fi
15059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15060fi
15061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15064	CFLAGS="$xorg_testset_save_CFLAGS"
15065fi
15066
15067found="no"
15068
15069	if test $found = "no" ; then
15070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072		fi
15073
15074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076		fi
15077
15078		CFLAGS="$CFLAGS -Wuninitialized"
15079
15080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15081printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15082		cacheid=xorg_cv_cc_flag__Wuninitialized
15083		if eval test \${$cacheid+y}
15084then :
15085  printf %s "(cached) " >&6
15086else $as_nop
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089int i;
15090int
15091main (void)
15092{
15093
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098if ac_fn_c_try_link "$LINENO"
15099then :
15100  eval $cacheid=yes
15101else $as_nop
15102  eval $cacheid=no
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.beam \
15105    conftest$ac_exeext conftest.$ac_ext
15106fi
15107
15108
15109		CFLAGS="$xorg_testset_save_CFLAGS"
15110
15111		eval supported=\$$cacheid
15112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15113printf "%s\n" "$supported" >&6; }
15114		if test "$supported" = "yes" ; then
15115			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15116			found="yes"
15117		fi
15118	fi
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134xorg_testset_save_CFLAGS="$CFLAGS"
15135
15136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15140if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15141then :
15142  printf %s "(cached) " >&6
15143else $as_nop
15144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h.  */
15146int i;
15147_ACEOF
15148if ac_fn_c_try_compile "$LINENO"
15149then :
15150  xorg_cv_cc_flag_unknown_warning_option=yes
15151else $as_nop
15152  xorg_cv_cc_flag_unknown_warning_option=no
15153fi
15154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15155fi
15156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15159	CFLAGS="$xorg_testset_save_CFLAGS"
15160fi
15161
15162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165	fi
15166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15169if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15170then :
15171  printf %s "(cached) " >&6
15172else $as_nop
15173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174/* end confdefs.h.  */
15175int i;
15176_ACEOF
15177if ac_fn_c_try_compile "$LINENO"
15178then :
15179  xorg_cv_cc_flag_unused_command_line_argument=yes
15180else $as_nop
15181  xorg_cv_cc_flag_unused_command_line_argument=no
15182fi
15183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15184fi
15185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15188	CFLAGS="$xorg_testset_save_CFLAGS"
15189fi
15190
15191found="no"
15192
15193	if test $found = "no" ; then
15194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196		fi
15197
15198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15200		fi
15201
15202		CFLAGS="$CFLAGS -Wshadow"
15203
15204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15205printf %s "checking if $CC supports -Wshadow... " >&6; }
15206		cacheid=xorg_cv_cc_flag__Wshadow
15207		if eval test \${$cacheid+y}
15208then :
15209  printf %s "(cached) " >&6
15210else $as_nop
15211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h.  */
15213int i;
15214int
15215main (void)
15216{
15217
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_link "$LINENO"
15223then :
15224  eval $cacheid=yes
15225else $as_nop
15226  eval $cacheid=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext conftest.beam \
15229    conftest$ac_exeext conftest.$ac_ext
15230fi
15231
15232
15233		CFLAGS="$xorg_testset_save_CFLAGS"
15234
15235		eval supported=\$$cacheid
15236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15237printf "%s\n" "$supported" >&6; }
15238		if test "$supported" = "yes" ; then
15239			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15240			found="yes"
15241		fi
15242	fi
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258xorg_testset_save_CFLAGS="$CFLAGS"
15259
15260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15264if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15265then :
15266  printf %s "(cached) " >&6
15267else $as_nop
15268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270int i;
15271_ACEOF
15272if ac_fn_c_try_compile "$LINENO"
15273then :
15274  xorg_cv_cc_flag_unknown_warning_option=yes
15275else $as_nop
15276  xorg_cv_cc_flag_unknown_warning_option=no
15277fi
15278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15279fi
15280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15283	CFLAGS="$xorg_testset_save_CFLAGS"
15284fi
15285
15286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289	fi
15290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15293if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15294then :
15295  printf %s "(cached) " >&6
15296else $as_nop
15297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298/* end confdefs.h.  */
15299int i;
15300_ACEOF
15301if ac_fn_c_try_compile "$LINENO"
15302then :
15303  xorg_cv_cc_flag_unused_command_line_argument=yes
15304else $as_nop
15305  xorg_cv_cc_flag_unused_command_line_argument=no
15306fi
15307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15308fi
15309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15312	CFLAGS="$xorg_testset_save_CFLAGS"
15313fi
15314
15315found="no"
15316
15317	if test $found = "no" ; then
15318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15320		fi
15321
15322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15324		fi
15325
15326		CFLAGS="$CFLAGS -Wmissing-noreturn"
15327
15328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15329printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15330		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15331		if eval test \${$cacheid+y}
15332then :
15333  printf %s "(cached) " >&6
15334else $as_nop
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337int i;
15338int
15339main (void)
15340{
15341
15342  ;
15343  return 0;
15344}
15345_ACEOF
15346if ac_fn_c_try_link "$LINENO"
15347then :
15348  eval $cacheid=yes
15349else $as_nop
15350  eval $cacheid=no
15351fi
15352rm -f core conftest.err conftest.$ac_objext conftest.beam \
15353    conftest$ac_exeext conftest.$ac_ext
15354fi
15355
15356
15357		CFLAGS="$xorg_testset_save_CFLAGS"
15358
15359		eval supported=\$$cacheid
15360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15361printf "%s\n" "$supported" >&6; }
15362		if test "$supported" = "yes" ; then
15363			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15364			found="yes"
15365		fi
15366	fi
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382xorg_testset_save_CFLAGS="$CFLAGS"
15383
15384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15388if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15389then :
15390  printf %s "(cached) " >&6
15391else $as_nop
15392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393/* end confdefs.h.  */
15394int i;
15395_ACEOF
15396if ac_fn_c_try_compile "$LINENO"
15397then :
15398  xorg_cv_cc_flag_unknown_warning_option=yes
15399else $as_nop
15400  xorg_cv_cc_flag_unknown_warning_option=no
15401fi
15402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15403fi
15404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15407	CFLAGS="$xorg_testset_save_CFLAGS"
15408fi
15409
15410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15413	fi
15414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15417if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15418then :
15419  printf %s "(cached) " >&6
15420else $as_nop
15421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422/* end confdefs.h.  */
15423int i;
15424_ACEOF
15425if ac_fn_c_try_compile "$LINENO"
15426then :
15427  xorg_cv_cc_flag_unused_command_line_argument=yes
15428else $as_nop
15429  xorg_cv_cc_flag_unused_command_line_argument=no
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15432fi
15433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15436	CFLAGS="$xorg_testset_save_CFLAGS"
15437fi
15438
15439found="no"
15440
15441	if test $found = "no" ; then
15442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15444		fi
15445
15446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15448		fi
15449
15450		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15451
15452		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15453printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15454		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15455		if eval test \${$cacheid+y}
15456then :
15457  printf %s "(cached) " >&6
15458else $as_nop
15459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461int i;
15462int
15463main (void)
15464{
15465
15466  ;
15467  return 0;
15468}
15469_ACEOF
15470if ac_fn_c_try_link "$LINENO"
15471then :
15472  eval $cacheid=yes
15473else $as_nop
15474  eval $cacheid=no
15475fi
15476rm -f core conftest.err conftest.$ac_objext conftest.beam \
15477    conftest$ac_exeext conftest.$ac_ext
15478fi
15479
15480
15481		CFLAGS="$xorg_testset_save_CFLAGS"
15482
15483		eval supported=\$$cacheid
15484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15485printf "%s\n" "$supported" >&6; }
15486		if test "$supported" = "yes" ; then
15487			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15488			found="yes"
15489		fi
15490	fi
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506xorg_testset_save_CFLAGS="$CFLAGS"
15507
15508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15513then :
15514  printf %s "(cached) " >&6
15515else $as_nop
15516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517/* end confdefs.h.  */
15518int i;
15519_ACEOF
15520if ac_fn_c_try_compile "$LINENO"
15521then :
15522  xorg_cv_cc_flag_unknown_warning_option=yes
15523else $as_nop
15524  xorg_cv_cc_flag_unknown_warning_option=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15527fi
15528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15531	CFLAGS="$xorg_testset_save_CFLAGS"
15532fi
15533
15534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537	fi
15538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15541if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15542then :
15543  printf %s "(cached) " >&6
15544else $as_nop
15545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h.  */
15547int i;
15548_ACEOF
15549if ac_fn_c_try_compile "$LINENO"
15550then :
15551  xorg_cv_cc_flag_unused_command_line_argument=yes
15552else $as_nop
15553  xorg_cv_cc_flag_unused_command_line_argument=no
15554fi
15555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15556fi
15557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15559	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15560	CFLAGS="$xorg_testset_save_CFLAGS"
15561fi
15562
15563found="no"
15564
15565	if test $found = "no" ; then
15566		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15567			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15568		fi
15569
15570		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15571			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15572		fi
15573
15574		CFLAGS="$CFLAGS -Wredundant-decls"
15575
15576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15577printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15578		cacheid=xorg_cv_cc_flag__Wredundant_decls
15579		if eval test \${$cacheid+y}
15580then :
15581  printf %s "(cached) " >&6
15582else $as_nop
15583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585int i;
15586int
15587main (void)
15588{
15589
15590  ;
15591  return 0;
15592}
15593_ACEOF
15594if ac_fn_c_try_link "$LINENO"
15595then :
15596  eval $cacheid=yes
15597else $as_nop
15598  eval $cacheid=no
15599fi
15600rm -f core conftest.err conftest.$ac_objext conftest.beam \
15601    conftest$ac_exeext conftest.$ac_ext
15602fi
15603
15604
15605		CFLAGS="$xorg_testset_save_CFLAGS"
15606
15607		eval supported=\$$cacheid
15608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15609printf "%s\n" "$supported" >&6; }
15610		if test "$supported" = "yes" ; then
15611			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15612			found="yes"
15613		fi
15614	fi
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630xorg_testset_save_CFLAGS="$CFLAGS"
15631
15632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15633	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15636if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15637then :
15638  printf %s "(cached) " >&6
15639else $as_nop
15640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641/* end confdefs.h.  */
15642int i;
15643_ACEOF
15644if ac_fn_c_try_compile "$LINENO"
15645then :
15646  xorg_cv_cc_flag_unknown_warning_option=yes
15647else $as_nop
15648  xorg_cv_cc_flag_unknown_warning_option=no
15649fi
15650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15651fi
15652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15655	CFLAGS="$xorg_testset_save_CFLAGS"
15656fi
15657
15658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15661	fi
15662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15665if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15666then :
15667  printf %s "(cached) " >&6
15668else $as_nop
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671int i;
15672_ACEOF
15673if ac_fn_c_try_compile "$LINENO"
15674then :
15675  xorg_cv_cc_flag_unused_command_line_argument=yes
15676else $as_nop
15677  xorg_cv_cc_flag_unused_command_line_argument=no
15678fi
15679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15680fi
15681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15684	CFLAGS="$xorg_testset_save_CFLAGS"
15685fi
15686
15687found="no"
15688
15689	if test $found = "no" ; then
15690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15692		fi
15693
15694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15696		fi
15697
15698		CFLAGS="$CFLAGS -Wlogical-op"
15699
15700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15701printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15702		cacheid=xorg_cv_cc_flag__Wlogical_op
15703		if eval test \${$cacheid+y}
15704then :
15705  printf %s "(cached) " >&6
15706else $as_nop
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709int i;
15710int
15711main (void)
15712{
15713
15714  ;
15715  return 0;
15716}
15717_ACEOF
15718if ac_fn_c_try_link "$LINENO"
15719then :
15720  eval $cacheid=yes
15721else $as_nop
15722  eval $cacheid=no
15723fi
15724rm -f core conftest.err conftest.$ac_objext conftest.beam \
15725    conftest$ac_exeext conftest.$ac_ext
15726fi
15727
15728
15729		CFLAGS="$xorg_testset_save_CFLAGS"
15730
15731		eval supported=\$$cacheid
15732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15733printf "%s\n" "$supported" >&6; }
15734		if test "$supported" = "yes" ; then
15735			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15736			found="yes"
15737		fi
15738	fi
15739
15740
15741
15742# These are currently disabled because they are noisy.  They will be enabled
15743# in the future once the codebase is sufficiently modernized to silence
15744# them.  For now, I don't want them to drown out the other warnings.
15745# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15746# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15747# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15748
15749# Turn some warnings into errors, so we don't accidently get successful builds
15750# when there are problems that should be fixed.
15751
15752if test "x$SELECTIVE_WERROR" = "xyes" ; then
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15773then :
15774  printf %s "(cached) " >&6
15775else $as_nop
15776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777/* end confdefs.h.  */
15778int i;
15779_ACEOF
15780if ac_fn_c_try_compile "$LINENO"
15781then :
15782  xorg_cv_cc_flag_unknown_warning_option=yes
15783else $as_nop
15784  xorg_cv_cc_flag_unknown_warning_option=no
15785fi
15786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15787fi
15788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15791	CFLAGS="$xorg_testset_save_CFLAGS"
15792fi
15793
15794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797	fi
15798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15802then :
15803  printf %s "(cached) " >&6
15804else $as_nop
15805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807int i;
15808_ACEOF
15809if ac_fn_c_try_compile "$LINENO"
15810then :
15811  xorg_cv_cc_flag_unused_command_line_argument=yes
15812else $as_nop
15813  xorg_cv_cc_flag_unused_command_line_argument=no
15814fi
15815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15816fi
15817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15820	CFLAGS="$xorg_testset_save_CFLAGS"
15821fi
15822
15823found="no"
15824
15825	if test $found = "no" ; then
15826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828		fi
15829
15830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15832		fi
15833
15834		CFLAGS="$CFLAGS -Werror=implicit"
15835
15836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15837printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15838		cacheid=xorg_cv_cc_flag__Werror_implicit
15839		if eval test \${$cacheid+y}
15840then :
15841  printf %s "(cached) " >&6
15842else $as_nop
15843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h.  */
15845int i;
15846int
15847main (void)
15848{
15849
15850  ;
15851  return 0;
15852}
15853_ACEOF
15854if ac_fn_c_try_link "$LINENO"
15855then :
15856  eval $cacheid=yes
15857else $as_nop
15858  eval $cacheid=no
15859fi
15860rm -f core conftest.err conftest.$ac_objext conftest.beam \
15861    conftest$ac_exeext conftest.$ac_ext
15862fi
15863
15864
15865		CFLAGS="$xorg_testset_save_CFLAGS"
15866
15867		eval supported=\$$cacheid
15868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869printf "%s\n" "$supported" >&6; }
15870		if test "$supported" = "yes" ; then
15871			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15872			found="yes"
15873		fi
15874	fi
15875
15876	if test $found = "no" ; then
15877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879		fi
15880
15881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15883		fi
15884
15885		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15886
15887		{ 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
15888printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15889		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15890		if eval test \${$cacheid+y}
15891then :
15892  printf %s "(cached) " >&6
15893else $as_nop
15894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896int i;
15897int
15898main (void)
15899{
15900
15901  ;
15902  return 0;
15903}
15904_ACEOF
15905if ac_fn_c_try_link "$LINENO"
15906then :
15907  eval $cacheid=yes
15908else $as_nop
15909  eval $cacheid=no
15910fi
15911rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912    conftest$ac_exeext conftest.$ac_ext
15913fi
15914
15915
15916		CFLAGS="$xorg_testset_save_CFLAGS"
15917
15918		eval supported=\$$cacheid
15919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15920printf "%s\n" "$supported" >&6; }
15921		if test "$supported" = "yes" ; then
15922			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15923			found="yes"
15924		fi
15925	fi
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941xorg_testset_save_CFLAGS="$CFLAGS"
15942
15943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15947if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15948then :
15949  printf %s "(cached) " >&6
15950else $as_nop
15951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952/* end confdefs.h.  */
15953int i;
15954_ACEOF
15955if ac_fn_c_try_compile "$LINENO"
15956then :
15957  xorg_cv_cc_flag_unknown_warning_option=yes
15958else $as_nop
15959  xorg_cv_cc_flag_unknown_warning_option=no
15960fi
15961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15962fi
15963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15966	CFLAGS="$xorg_testset_save_CFLAGS"
15967fi
15968
15969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15972	fi
15973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15976if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15977then :
15978  printf %s "(cached) " >&6
15979else $as_nop
15980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982int i;
15983_ACEOF
15984if ac_fn_c_try_compile "$LINENO"
15985then :
15986  xorg_cv_cc_flag_unused_command_line_argument=yes
15987else $as_nop
15988  xorg_cv_cc_flag_unused_command_line_argument=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15991fi
15992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15995	CFLAGS="$xorg_testset_save_CFLAGS"
15996fi
15997
15998found="no"
15999
16000	if test $found = "no" ; then
16001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003		fi
16004
16005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16007		fi
16008
16009		CFLAGS="$CFLAGS -Werror=nonnull"
16010
16011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16012printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16013		cacheid=xorg_cv_cc_flag__Werror_nonnull
16014		if eval test \${$cacheid+y}
16015then :
16016  printf %s "(cached) " >&6
16017else $as_nop
16018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019/* end confdefs.h.  */
16020int i;
16021int
16022main (void)
16023{
16024
16025  ;
16026  return 0;
16027}
16028_ACEOF
16029if ac_fn_c_try_link "$LINENO"
16030then :
16031  eval $cacheid=yes
16032else $as_nop
16033  eval $cacheid=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.beam \
16036    conftest$ac_exeext conftest.$ac_ext
16037fi
16038
16039
16040		CFLAGS="$xorg_testset_save_CFLAGS"
16041
16042		eval supported=\$$cacheid
16043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16044printf "%s\n" "$supported" >&6; }
16045		if test "$supported" = "yes" ; then
16046			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16047			found="yes"
16048		fi
16049	fi
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065xorg_testset_save_CFLAGS="$CFLAGS"
16066
16067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16071if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16072then :
16073  printf %s "(cached) " >&6
16074else $as_nop
16075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077int i;
16078_ACEOF
16079if ac_fn_c_try_compile "$LINENO"
16080then :
16081  xorg_cv_cc_flag_unknown_warning_option=yes
16082else $as_nop
16083  xorg_cv_cc_flag_unknown_warning_option=no
16084fi
16085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16086fi
16087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16090	CFLAGS="$xorg_testset_save_CFLAGS"
16091fi
16092
16093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16096	fi
16097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16100if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16101then :
16102  printf %s "(cached) " >&6
16103else $as_nop
16104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105/* end confdefs.h.  */
16106int i;
16107_ACEOF
16108if ac_fn_c_try_compile "$LINENO"
16109then :
16110  xorg_cv_cc_flag_unused_command_line_argument=yes
16111else $as_nop
16112  xorg_cv_cc_flag_unused_command_line_argument=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16115fi
16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16119	CFLAGS="$xorg_testset_save_CFLAGS"
16120fi
16121
16122found="no"
16123
16124	if test $found = "no" ; then
16125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127		fi
16128
16129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131		fi
16132
16133		CFLAGS="$CFLAGS -Werror=init-self"
16134
16135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16136printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16137		cacheid=xorg_cv_cc_flag__Werror_init_self
16138		if eval test \${$cacheid+y}
16139then :
16140  printf %s "(cached) " >&6
16141else $as_nop
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144int i;
16145int
16146main (void)
16147{
16148
16149  ;
16150  return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"
16154then :
16155  eval $cacheid=yes
16156else $as_nop
16157  eval $cacheid=no
16158fi
16159rm -f core conftest.err conftest.$ac_objext conftest.beam \
16160    conftest$ac_exeext conftest.$ac_ext
16161fi
16162
16163
16164		CFLAGS="$xorg_testset_save_CFLAGS"
16165
16166		eval supported=\$$cacheid
16167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16168printf "%s\n" "$supported" >&6; }
16169		if test "$supported" = "yes" ; then
16170			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16171			found="yes"
16172		fi
16173	fi
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189xorg_testset_save_CFLAGS="$CFLAGS"
16190
16191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16195if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16196then :
16197  printf %s "(cached) " >&6
16198else $as_nop
16199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201int i;
16202_ACEOF
16203if ac_fn_c_try_compile "$LINENO"
16204then :
16205  xorg_cv_cc_flag_unknown_warning_option=yes
16206else $as_nop
16207  xorg_cv_cc_flag_unknown_warning_option=no
16208fi
16209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16210fi
16211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16214	CFLAGS="$xorg_testset_save_CFLAGS"
16215fi
16216
16217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16220	fi
16221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16224if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16225then :
16226  printf %s "(cached) " >&6
16227else $as_nop
16228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h.  */
16230int i;
16231_ACEOF
16232if ac_fn_c_try_compile "$LINENO"
16233then :
16234  xorg_cv_cc_flag_unused_command_line_argument=yes
16235else $as_nop
16236  xorg_cv_cc_flag_unused_command_line_argument=no
16237fi
16238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16239fi
16240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16243	CFLAGS="$xorg_testset_save_CFLAGS"
16244fi
16245
16246found="no"
16247
16248	if test $found = "no" ; then
16249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251		fi
16252
16253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16255		fi
16256
16257		CFLAGS="$CFLAGS -Werror=main"
16258
16259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16260printf %s "checking if $CC supports -Werror=main... " >&6; }
16261		cacheid=xorg_cv_cc_flag__Werror_main
16262		if eval test \${$cacheid+y}
16263then :
16264  printf %s "(cached) " >&6
16265else $as_nop
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269int
16270main (void)
16271{
16272
16273  ;
16274  return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_link "$LINENO"
16278then :
16279  eval $cacheid=yes
16280else $as_nop
16281  eval $cacheid=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.beam \
16284    conftest$ac_exeext conftest.$ac_ext
16285fi
16286
16287
16288		CFLAGS="$xorg_testset_save_CFLAGS"
16289
16290		eval supported=\$$cacheid
16291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16292printf "%s\n" "$supported" >&6; }
16293		if test "$supported" = "yes" ; then
16294			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16295			found="yes"
16296		fi
16297	fi
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313xorg_testset_save_CFLAGS="$CFLAGS"
16314
16315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16320then :
16321  printf %s "(cached) " >&6
16322else $as_nop
16323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h.  */
16325int i;
16326_ACEOF
16327if ac_fn_c_try_compile "$LINENO"
16328then :
16329  xorg_cv_cc_flag_unknown_warning_option=yes
16330else $as_nop
16331  xorg_cv_cc_flag_unknown_warning_option=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16334fi
16335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338	CFLAGS="$xorg_testset_save_CFLAGS"
16339fi
16340
16341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344	fi
16345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16349then :
16350  printf %s "(cached) " >&6
16351else $as_nop
16352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354int i;
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"
16357then :
16358  xorg_cv_cc_flag_unused_command_line_argument=yes
16359else $as_nop
16360  xorg_cv_cc_flag_unused_command_line_argument=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16363fi
16364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16367	CFLAGS="$xorg_testset_save_CFLAGS"
16368fi
16369
16370found="no"
16371
16372	if test $found = "no" ; then
16373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375		fi
16376
16377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379		fi
16380
16381		CFLAGS="$CFLAGS -Werror=missing-braces"
16382
16383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16384printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16385		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16386		if eval test \${$cacheid+y}
16387then :
16388  printf %s "(cached) " >&6
16389else $as_nop
16390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392int i;
16393int
16394main (void)
16395{
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401if ac_fn_c_try_link "$LINENO"
16402then :
16403  eval $cacheid=yes
16404else $as_nop
16405  eval $cacheid=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext conftest.beam \
16408    conftest$ac_exeext conftest.$ac_ext
16409fi
16410
16411
16412		CFLAGS="$xorg_testset_save_CFLAGS"
16413
16414		eval supported=\$$cacheid
16415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16416printf "%s\n" "$supported" >&6; }
16417		if test "$supported" = "yes" ; then
16418			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16419			found="yes"
16420		fi
16421	fi
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437xorg_testset_save_CFLAGS="$CFLAGS"
16438
16439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16444then :
16445  printf %s "(cached) " >&6
16446else $as_nop
16447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448/* end confdefs.h.  */
16449int i;
16450_ACEOF
16451if ac_fn_c_try_compile "$LINENO"
16452then :
16453  xorg_cv_cc_flag_unknown_warning_option=yes
16454else $as_nop
16455  xorg_cv_cc_flag_unknown_warning_option=no
16456fi
16457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16458fi
16459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16462	CFLAGS="$xorg_testset_save_CFLAGS"
16463fi
16464
16465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468	fi
16469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16473then :
16474  printf %s "(cached) " >&6
16475else $as_nop
16476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h.  */
16478int i;
16479_ACEOF
16480if ac_fn_c_try_compile "$LINENO"
16481then :
16482  xorg_cv_cc_flag_unused_command_line_argument=yes
16483else $as_nop
16484  xorg_cv_cc_flag_unused_command_line_argument=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16487fi
16488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16491	CFLAGS="$xorg_testset_save_CFLAGS"
16492fi
16493
16494found="no"
16495
16496	if test $found = "no" ; then
16497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499		fi
16500
16501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503		fi
16504
16505		CFLAGS="$CFLAGS -Werror=sequence-point"
16506
16507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16508printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16509		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16510		if eval test \${$cacheid+y}
16511then :
16512  printf %s "(cached) " >&6
16513else $as_nop
16514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516int i;
16517int
16518main (void)
16519{
16520
16521  ;
16522  return 0;
16523}
16524_ACEOF
16525if ac_fn_c_try_link "$LINENO"
16526then :
16527  eval $cacheid=yes
16528else $as_nop
16529  eval $cacheid=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.beam \
16532    conftest$ac_exeext conftest.$ac_ext
16533fi
16534
16535
16536		CFLAGS="$xorg_testset_save_CFLAGS"
16537
16538		eval supported=\$$cacheid
16539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16540printf "%s\n" "$supported" >&6; }
16541		if test "$supported" = "yes" ; then
16542			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16543			found="yes"
16544		fi
16545	fi
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561xorg_testset_save_CFLAGS="$CFLAGS"
16562
16563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16564	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16567if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16568then :
16569  printf %s "(cached) " >&6
16570else $as_nop
16571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572/* end confdefs.h.  */
16573int i;
16574_ACEOF
16575if ac_fn_c_try_compile "$LINENO"
16576then :
16577  xorg_cv_cc_flag_unknown_warning_option=yes
16578else $as_nop
16579  xorg_cv_cc_flag_unknown_warning_option=no
16580fi
16581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16582fi
16583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16584printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16586	CFLAGS="$xorg_testset_save_CFLAGS"
16587fi
16588
16589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16592	fi
16593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16595printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16596if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16597then :
16598  printf %s "(cached) " >&6
16599else $as_nop
16600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h.  */
16602int i;
16603_ACEOF
16604if ac_fn_c_try_compile "$LINENO"
16605then :
16606  xorg_cv_cc_flag_unused_command_line_argument=yes
16607else $as_nop
16608  xorg_cv_cc_flag_unused_command_line_argument=no
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16611fi
16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16615	CFLAGS="$xorg_testset_save_CFLAGS"
16616fi
16617
16618found="no"
16619
16620	if test $found = "no" ; then
16621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623		fi
16624
16625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627		fi
16628
16629		CFLAGS="$CFLAGS -Werror=return-type"
16630
16631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16632printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16633		cacheid=xorg_cv_cc_flag__Werror_return_type
16634		if eval test \${$cacheid+y}
16635then :
16636  printf %s "(cached) " >&6
16637else $as_nop
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641int
16642main (void)
16643{
16644
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649if ac_fn_c_try_link "$LINENO"
16650then :
16651  eval $cacheid=yes
16652else $as_nop
16653  eval $cacheid=no
16654fi
16655rm -f core conftest.err conftest.$ac_objext conftest.beam \
16656    conftest$ac_exeext conftest.$ac_ext
16657fi
16658
16659
16660		CFLAGS="$xorg_testset_save_CFLAGS"
16661
16662		eval supported=\$$cacheid
16663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16664printf "%s\n" "$supported" >&6; }
16665		if test "$supported" = "yes" ; then
16666			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16667			found="yes"
16668		fi
16669	fi
16670
16671	if test $found = "no" ; then
16672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674		fi
16675
16676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16678		fi
16679
16680		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16681
16682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16683printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16684		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16685		if eval test \${$cacheid+y}
16686then :
16687  printf %s "(cached) " >&6
16688else $as_nop
16689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h.  */
16691int i;
16692int
16693main (void)
16694{
16695
16696  ;
16697  return 0;
16698}
16699_ACEOF
16700if ac_fn_c_try_link "$LINENO"
16701then :
16702  eval $cacheid=yes
16703else $as_nop
16704  eval $cacheid=no
16705fi
16706rm -f core conftest.err conftest.$ac_objext conftest.beam \
16707    conftest$ac_exeext conftest.$ac_ext
16708fi
16709
16710
16711		CFLAGS="$xorg_testset_save_CFLAGS"
16712
16713		eval supported=\$$cacheid
16714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16715printf "%s\n" "$supported" >&6; }
16716		if test "$supported" = "yes" ; then
16717			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16718			found="yes"
16719		fi
16720	fi
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736xorg_testset_save_CFLAGS="$CFLAGS"
16737
16738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16742if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16743then :
16744  printf %s "(cached) " >&6
16745else $as_nop
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748int i;
16749_ACEOF
16750if ac_fn_c_try_compile "$LINENO"
16751then :
16752  xorg_cv_cc_flag_unknown_warning_option=yes
16753else $as_nop
16754  xorg_cv_cc_flag_unknown_warning_option=no
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16757fi
16758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16761	CFLAGS="$xorg_testset_save_CFLAGS"
16762fi
16763
16764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767	fi
16768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16771if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16772then :
16773  printf %s "(cached) " >&6
16774else $as_nop
16775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h.  */
16777int i;
16778_ACEOF
16779if ac_fn_c_try_compile "$LINENO"
16780then :
16781  xorg_cv_cc_flag_unused_command_line_argument=yes
16782else $as_nop
16783  xorg_cv_cc_flag_unused_command_line_argument=no
16784fi
16785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16786fi
16787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16790	CFLAGS="$xorg_testset_save_CFLAGS"
16791fi
16792
16793found="no"
16794
16795	if test $found = "no" ; then
16796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16798		fi
16799
16800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16802		fi
16803
16804		CFLAGS="$CFLAGS -Werror=trigraphs"
16805
16806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16807printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16808		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16809		if eval test \${$cacheid+y}
16810then :
16811  printf %s "(cached) " >&6
16812else $as_nop
16813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h.  */
16815int i;
16816int
16817main (void)
16818{
16819
16820  ;
16821  return 0;
16822}
16823_ACEOF
16824if ac_fn_c_try_link "$LINENO"
16825then :
16826  eval $cacheid=yes
16827else $as_nop
16828  eval $cacheid=no
16829fi
16830rm -f core conftest.err conftest.$ac_objext conftest.beam \
16831    conftest$ac_exeext conftest.$ac_ext
16832fi
16833
16834
16835		CFLAGS="$xorg_testset_save_CFLAGS"
16836
16837		eval supported=\$$cacheid
16838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16839printf "%s\n" "$supported" >&6; }
16840		if test "$supported" = "yes" ; then
16841			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16842			found="yes"
16843		fi
16844	fi
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860xorg_testset_save_CFLAGS="$CFLAGS"
16861
16862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16866if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16867then :
16868  printf %s "(cached) " >&6
16869else $as_nop
16870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872int i;
16873_ACEOF
16874if ac_fn_c_try_compile "$LINENO"
16875then :
16876  xorg_cv_cc_flag_unknown_warning_option=yes
16877else $as_nop
16878  xorg_cv_cc_flag_unknown_warning_option=no
16879fi
16880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16881fi
16882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16885	CFLAGS="$xorg_testset_save_CFLAGS"
16886fi
16887
16888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16891	fi
16892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16895if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16896then :
16897  printf %s "(cached) " >&6
16898else $as_nop
16899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900/* end confdefs.h.  */
16901int i;
16902_ACEOF
16903if ac_fn_c_try_compile "$LINENO"
16904then :
16905  xorg_cv_cc_flag_unused_command_line_argument=yes
16906else $as_nop
16907  xorg_cv_cc_flag_unused_command_line_argument=no
16908fi
16909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16910fi
16911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16914	CFLAGS="$xorg_testset_save_CFLAGS"
16915fi
16916
16917found="no"
16918
16919	if test $found = "no" ; then
16920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16922		fi
16923
16924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16926		fi
16927
16928		CFLAGS="$CFLAGS -Werror=array-bounds"
16929
16930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16931printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16932		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16933		if eval test \${$cacheid+y}
16934then :
16935  printf %s "(cached) " >&6
16936else $as_nop
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939int i;
16940int
16941main (void)
16942{
16943
16944  ;
16945  return 0;
16946}
16947_ACEOF
16948if ac_fn_c_try_link "$LINENO"
16949then :
16950  eval $cacheid=yes
16951else $as_nop
16952  eval $cacheid=no
16953fi
16954rm -f core conftest.err conftest.$ac_objext conftest.beam \
16955    conftest$ac_exeext conftest.$ac_ext
16956fi
16957
16958
16959		CFLAGS="$xorg_testset_save_CFLAGS"
16960
16961		eval supported=\$$cacheid
16962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16963printf "%s\n" "$supported" >&6; }
16964		if test "$supported" = "yes" ; then
16965			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16966			found="yes"
16967		fi
16968	fi
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984xorg_testset_save_CFLAGS="$CFLAGS"
16985
16986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16990if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16991then :
16992  printf %s "(cached) " >&6
16993else $as_nop
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996int i;
16997_ACEOF
16998if ac_fn_c_try_compile "$LINENO"
16999then :
17000  xorg_cv_cc_flag_unknown_warning_option=yes
17001else $as_nop
17002  xorg_cv_cc_flag_unknown_warning_option=no
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17005fi
17006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17009	CFLAGS="$xorg_testset_save_CFLAGS"
17010fi
17011
17012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015	fi
17016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17019if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17020then :
17021  printf %s "(cached) " >&6
17022else $as_nop
17023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024/* end confdefs.h.  */
17025int i;
17026_ACEOF
17027if ac_fn_c_try_compile "$LINENO"
17028then :
17029  xorg_cv_cc_flag_unused_command_line_argument=yes
17030else $as_nop
17031  xorg_cv_cc_flag_unused_command_line_argument=no
17032fi
17033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17034fi
17035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17038	CFLAGS="$xorg_testset_save_CFLAGS"
17039fi
17040
17041found="no"
17042
17043	if test $found = "no" ; then
17044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046		fi
17047
17048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050		fi
17051
17052		CFLAGS="$CFLAGS -Werror=write-strings"
17053
17054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17055printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17056		cacheid=xorg_cv_cc_flag__Werror_write_strings
17057		if eval test \${$cacheid+y}
17058then :
17059  printf %s "(cached) " >&6
17060else $as_nop
17061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h.  */
17063int i;
17064int
17065main (void)
17066{
17067
17068  ;
17069  return 0;
17070}
17071_ACEOF
17072if ac_fn_c_try_link "$LINENO"
17073then :
17074  eval $cacheid=yes
17075else $as_nop
17076  eval $cacheid=no
17077fi
17078rm -f core conftest.err conftest.$ac_objext conftest.beam \
17079    conftest$ac_exeext conftest.$ac_ext
17080fi
17081
17082
17083		CFLAGS="$xorg_testset_save_CFLAGS"
17084
17085		eval supported=\$$cacheid
17086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17087printf "%s\n" "$supported" >&6; }
17088		if test "$supported" = "yes" ; then
17089			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17090			found="yes"
17091		fi
17092	fi
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108xorg_testset_save_CFLAGS="$CFLAGS"
17109
17110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17115then :
17116  printf %s "(cached) " >&6
17117else $as_nop
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120int i;
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"
17123then :
17124  xorg_cv_cc_flag_unknown_warning_option=yes
17125else $as_nop
17126  xorg_cv_cc_flag_unknown_warning_option=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17129fi
17130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17133	CFLAGS="$xorg_testset_save_CFLAGS"
17134fi
17135
17136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17139	fi
17140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17144then :
17145  printf %s "(cached) " >&6
17146else $as_nop
17147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h.  */
17149int i;
17150_ACEOF
17151if ac_fn_c_try_compile "$LINENO"
17152then :
17153  xorg_cv_cc_flag_unused_command_line_argument=yes
17154else $as_nop
17155  xorg_cv_cc_flag_unused_command_line_argument=no
17156fi
17157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17158fi
17159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17162	CFLAGS="$xorg_testset_save_CFLAGS"
17163fi
17164
17165found="no"
17166
17167	if test $found = "no" ; then
17168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170		fi
17171
17172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17174		fi
17175
17176		CFLAGS="$CFLAGS -Werror=address"
17177
17178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17179printf %s "checking if $CC supports -Werror=address... " >&6; }
17180		cacheid=xorg_cv_cc_flag__Werror_address
17181		if eval test \${$cacheid+y}
17182then :
17183  printf %s "(cached) " >&6
17184else $as_nop
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188int
17189main (void)
17190{
17191
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_link "$LINENO"
17197then :
17198  eval $cacheid=yes
17199else $as_nop
17200  eval $cacheid=no
17201fi
17202rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203    conftest$ac_exeext conftest.$ac_ext
17204fi
17205
17206
17207		CFLAGS="$xorg_testset_save_CFLAGS"
17208
17209		eval supported=\$$cacheid
17210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17211printf "%s\n" "$supported" >&6; }
17212		if test "$supported" = "yes" ; then
17213			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17214			found="yes"
17215		fi
17216	fi
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232xorg_testset_save_CFLAGS="$CFLAGS"
17233
17234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17238if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17239then :
17240  printf %s "(cached) " >&6
17241else $as_nop
17242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h.  */
17244int i;
17245_ACEOF
17246if ac_fn_c_try_compile "$LINENO"
17247then :
17248  xorg_cv_cc_flag_unknown_warning_option=yes
17249else $as_nop
17250  xorg_cv_cc_flag_unknown_warning_option=no
17251fi
17252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17253fi
17254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17257	CFLAGS="$xorg_testset_save_CFLAGS"
17258fi
17259
17260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263	fi
17264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17267if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17268then :
17269  printf %s "(cached) " >&6
17270else $as_nop
17271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h.  */
17273int i;
17274_ACEOF
17275if ac_fn_c_try_compile "$LINENO"
17276then :
17277  xorg_cv_cc_flag_unused_command_line_argument=yes
17278else $as_nop
17279  xorg_cv_cc_flag_unused_command_line_argument=no
17280fi
17281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17282fi
17283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17286	CFLAGS="$xorg_testset_save_CFLAGS"
17287fi
17288
17289found="no"
17290
17291	if test $found = "no" ; then
17292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17294		fi
17295
17296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17298		fi
17299
17300		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17301
17302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17303printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17304		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17305		if eval test \${$cacheid+y}
17306then :
17307  printf %s "(cached) " >&6
17308else $as_nop
17309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311int i;
17312int
17313main (void)
17314{
17315
17316  ;
17317  return 0;
17318}
17319_ACEOF
17320if ac_fn_c_try_link "$LINENO"
17321then :
17322  eval $cacheid=yes
17323else $as_nop
17324  eval $cacheid=no
17325fi
17326rm -f core conftest.err conftest.$ac_objext conftest.beam \
17327    conftest$ac_exeext conftest.$ac_ext
17328fi
17329
17330
17331		CFLAGS="$xorg_testset_save_CFLAGS"
17332
17333		eval supported=\$$cacheid
17334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17335printf "%s\n" "$supported" >&6; }
17336		if test "$supported" = "yes" ; then
17337			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17338			found="yes"
17339		fi
17340	fi
17341
17342	if test $found = "no" ; then
17343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17345		fi
17346
17347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17349		fi
17350
17351		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17352
17353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17354printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17355		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17356		if eval test \${$cacheid+y}
17357then :
17358  printf %s "(cached) " >&6
17359else $as_nop
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363int
17364main (void)
17365{
17366
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371if ac_fn_c_try_link "$LINENO"
17372then :
17373  eval $cacheid=yes
17374else $as_nop
17375  eval $cacheid=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext conftest.beam \
17378    conftest$ac_exeext conftest.$ac_ext
17379fi
17380
17381
17382		CFLAGS="$xorg_testset_save_CFLAGS"
17383
17384		eval supported=\$$cacheid
17385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17386printf "%s\n" "$supported" >&6; }
17387		if test "$supported" = "yes" ; then
17388			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17389			found="yes"
17390		fi
17391	fi
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407xorg_testset_save_CFLAGS="$CFLAGS"
17408
17409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17410	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17413if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17414then :
17415  printf %s "(cached) " >&6
17416else $as_nop
17417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418/* end confdefs.h.  */
17419int i;
17420_ACEOF
17421if ac_fn_c_try_compile "$LINENO"
17422then :
17423  xorg_cv_cc_flag_unknown_warning_option=yes
17424else $as_nop
17425  xorg_cv_cc_flag_unknown_warning_option=no
17426fi
17427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17428fi
17429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17432	CFLAGS="$xorg_testset_save_CFLAGS"
17433fi
17434
17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438	fi
17439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17442if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17443then :
17444  printf %s "(cached) " >&6
17445else $as_nop
17446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447/* end confdefs.h.  */
17448int i;
17449_ACEOF
17450if ac_fn_c_try_compile "$LINENO"
17451then :
17452  xorg_cv_cc_flag_unused_command_line_argument=yes
17453else $as_nop
17454  xorg_cv_cc_flag_unused_command_line_argument=no
17455fi
17456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17457fi
17458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17461	CFLAGS="$xorg_testset_save_CFLAGS"
17462fi
17463
17464found="no"
17465
17466	if test $found = "no" ; then
17467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17469		fi
17470
17471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17473		fi
17474
17475		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17476
17477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17478printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17479		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17480		if eval test \${$cacheid+y}
17481then :
17482  printf %s "(cached) " >&6
17483else $as_nop
17484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h.  */
17486int i;
17487int
17488main (void)
17489{
17490
17491  ;
17492  return 0;
17493}
17494_ACEOF
17495if ac_fn_c_try_link "$LINENO"
17496then :
17497  eval $cacheid=yes
17498else $as_nop
17499  eval $cacheid=no
17500fi
17501rm -f core conftest.err conftest.$ac_objext conftest.beam \
17502    conftest$ac_exeext conftest.$ac_ext
17503fi
17504
17505
17506		CFLAGS="$xorg_testset_save_CFLAGS"
17507
17508		eval supported=\$$cacheid
17509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17510printf "%s\n" "$supported" >&6; }
17511		if test "$supported" = "yes" ; then
17512			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17513			found="yes"
17514		fi
17515	fi
17516
17517 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17518else
17519{ 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
17520printf "%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;}
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534xorg_testset_save_CFLAGS="$CFLAGS"
17535
17536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17539printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17540if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17541then :
17542  printf %s "(cached) " >&6
17543else $as_nop
17544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545/* end confdefs.h.  */
17546int i;
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"
17549then :
17550  xorg_cv_cc_flag_unknown_warning_option=yes
17551else $as_nop
17552  xorg_cv_cc_flag_unknown_warning_option=no
17553fi
17554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17555fi
17556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17559	CFLAGS="$xorg_testset_save_CFLAGS"
17560fi
17561
17562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565	fi
17566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17569if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17570then :
17571  printf %s "(cached) " >&6
17572else $as_nop
17573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h.  */
17575int i;
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"
17578then :
17579  xorg_cv_cc_flag_unused_command_line_argument=yes
17580else $as_nop
17581  xorg_cv_cc_flag_unused_command_line_argument=no
17582fi
17583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17584fi
17585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17588	CFLAGS="$xorg_testset_save_CFLAGS"
17589fi
17590
17591found="no"
17592
17593	if test $found = "no" ; then
17594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596		fi
17597
17598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17600		fi
17601
17602		CFLAGS="$CFLAGS -Wimplicit"
17603
17604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17605printf %s "checking if $CC supports -Wimplicit... " >&6; }
17606		cacheid=xorg_cv_cc_flag__Wimplicit
17607		if eval test \${$cacheid+y}
17608then :
17609  printf %s "(cached) " >&6
17610else $as_nop
17611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h.  */
17613int i;
17614int
17615main (void)
17616{
17617
17618  ;
17619  return 0;
17620}
17621_ACEOF
17622if ac_fn_c_try_link "$LINENO"
17623then :
17624  eval $cacheid=yes
17625else $as_nop
17626  eval $cacheid=no
17627fi
17628rm -f core conftest.err conftest.$ac_objext conftest.beam \
17629    conftest$ac_exeext conftest.$ac_ext
17630fi
17631
17632
17633		CFLAGS="$xorg_testset_save_CFLAGS"
17634
17635		eval supported=\$$cacheid
17636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17637printf "%s\n" "$supported" >&6; }
17638		if test "$supported" = "yes" ; then
17639			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17640			found="yes"
17641		fi
17642	fi
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658xorg_testset_save_CFLAGS="$CFLAGS"
17659
17660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17664if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17665then :
17666  printf %s "(cached) " >&6
17667else $as_nop
17668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h.  */
17670int i;
17671_ACEOF
17672if ac_fn_c_try_compile "$LINENO"
17673then :
17674  xorg_cv_cc_flag_unknown_warning_option=yes
17675else $as_nop
17676  xorg_cv_cc_flag_unknown_warning_option=no
17677fi
17678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17679fi
17680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17683	CFLAGS="$xorg_testset_save_CFLAGS"
17684fi
17685
17686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17689	fi
17690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17693if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17694then :
17695  printf %s "(cached) " >&6
17696else $as_nop
17697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h.  */
17699int i;
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"
17702then :
17703  xorg_cv_cc_flag_unused_command_line_argument=yes
17704else $as_nop
17705  xorg_cv_cc_flag_unused_command_line_argument=no
17706fi
17707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17708fi
17709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17712	CFLAGS="$xorg_testset_save_CFLAGS"
17713fi
17714
17715found="no"
17716
17717	if test $found = "no" ; then
17718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17720		fi
17721
17722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17724		fi
17725
17726		CFLAGS="$CFLAGS -Wnonnull"
17727
17728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17729printf %s "checking if $CC supports -Wnonnull... " >&6; }
17730		cacheid=xorg_cv_cc_flag__Wnonnull
17731		if eval test \${$cacheid+y}
17732then :
17733  printf %s "(cached) " >&6
17734else $as_nop
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737int i;
17738int
17739main (void)
17740{
17741
17742  ;
17743  return 0;
17744}
17745_ACEOF
17746if ac_fn_c_try_link "$LINENO"
17747then :
17748  eval $cacheid=yes
17749else $as_nop
17750  eval $cacheid=no
17751fi
17752rm -f core conftest.err conftest.$ac_objext conftest.beam \
17753    conftest$ac_exeext conftest.$ac_ext
17754fi
17755
17756
17757		CFLAGS="$xorg_testset_save_CFLAGS"
17758
17759		eval supported=\$$cacheid
17760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17761printf "%s\n" "$supported" >&6; }
17762		if test "$supported" = "yes" ; then
17763			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17764			found="yes"
17765		fi
17766	fi
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782xorg_testset_save_CFLAGS="$CFLAGS"
17783
17784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17788if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17789then :
17790  printf %s "(cached) " >&6
17791else $as_nop
17792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h.  */
17794int i;
17795_ACEOF
17796if ac_fn_c_try_compile "$LINENO"
17797then :
17798  xorg_cv_cc_flag_unknown_warning_option=yes
17799else $as_nop
17800  xorg_cv_cc_flag_unknown_warning_option=no
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17803fi
17804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17807	CFLAGS="$xorg_testset_save_CFLAGS"
17808fi
17809
17810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17813	fi
17814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17818then :
17819  printf %s "(cached) " >&6
17820else $as_nop
17821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822/* end confdefs.h.  */
17823int i;
17824_ACEOF
17825if ac_fn_c_try_compile "$LINENO"
17826then :
17827  xorg_cv_cc_flag_unused_command_line_argument=yes
17828else $as_nop
17829  xorg_cv_cc_flag_unused_command_line_argument=no
17830fi
17831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17832fi
17833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17836	CFLAGS="$xorg_testset_save_CFLAGS"
17837fi
17838
17839found="no"
17840
17841	if test $found = "no" ; then
17842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844		fi
17845
17846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17848		fi
17849
17850		CFLAGS="$CFLAGS -Winit-self"
17851
17852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17853printf %s "checking if $CC supports -Winit-self... " >&6; }
17854		cacheid=xorg_cv_cc_flag__Winit_self
17855		if eval test \${$cacheid+y}
17856then :
17857  printf %s "(cached) " >&6
17858else $as_nop
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861int i;
17862int
17863main (void)
17864{
17865
17866  ;
17867  return 0;
17868}
17869_ACEOF
17870if ac_fn_c_try_link "$LINENO"
17871then :
17872  eval $cacheid=yes
17873else $as_nop
17874  eval $cacheid=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext conftest.beam \
17877    conftest$ac_exeext conftest.$ac_ext
17878fi
17879
17880
17881		CFLAGS="$xorg_testset_save_CFLAGS"
17882
17883		eval supported=\$$cacheid
17884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17885printf "%s\n" "$supported" >&6; }
17886		if test "$supported" = "yes" ; then
17887			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17888			found="yes"
17889		fi
17890	fi
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906xorg_testset_save_CFLAGS="$CFLAGS"
17907
17908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17912if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17913then :
17914  printf %s "(cached) " >&6
17915else $as_nop
17916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917/* end confdefs.h.  */
17918int i;
17919_ACEOF
17920if ac_fn_c_try_compile "$LINENO"
17921then :
17922  xorg_cv_cc_flag_unknown_warning_option=yes
17923else $as_nop
17924  xorg_cv_cc_flag_unknown_warning_option=no
17925fi
17926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17927fi
17928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17931	CFLAGS="$xorg_testset_save_CFLAGS"
17932fi
17933
17934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17937	fi
17938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17941if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17942then :
17943  printf %s "(cached) " >&6
17944else $as_nop
17945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946/* end confdefs.h.  */
17947int i;
17948_ACEOF
17949if ac_fn_c_try_compile "$LINENO"
17950then :
17951  xorg_cv_cc_flag_unused_command_line_argument=yes
17952else $as_nop
17953  xorg_cv_cc_flag_unused_command_line_argument=no
17954fi
17955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17956fi
17957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17960	CFLAGS="$xorg_testset_save_CFLAGS"
17961fi
17962
17963found="no"
17964
17965	if test $found = "no" ; then
17966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17968		fi
17969
17970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17972		fi
17973
17974		CFLAGS="$CFLAGS -Wmain"
17975
17976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17977printf %s "checking if $CC supports -Wmain... " >&6; }
17978		cacheid=xorg_cv_cc_flag__Wmain
17979		if eval test \${$cacheid+y}
17980then :
17981  printf %s "(cached) " >&6
17982else $as_nop
17983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985int i;
17986int
17987main (void)
17988{
17989
17990  ;
17991  return 0;
17992}
17993_ACEOF
17994if ac_fn_c_try_link "$LINENO"
17995then :
17996  eval $cacheid=yes
17997else $as_nop
17998  eval $cacheid=no
17999fi
18000rm -f core conftest.err conftest.$ac_objext conftest.beam \
18001    conftest$ac_exeext conftest.$ac_ext
18002fi
18003
18004
18005		CFLAGS="$xorg_testset_save_CFLAGS"
18006
18007		eval supported=\$$cacheid
18008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18009printf "%s\n" "$supported" >&6; }
18010		if test "$supported" = "yes" ; then
18011			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18012			found="yes"
18013		fi
18014	fi
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030xorg_testset_save_CFLAGS="$CFLAGS"
18031
18032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18037then :
18038  printf %s "(cached) " >&6
18039else $as_nop
18040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041/* end confdefs.h.  */
18042int i;
18043_ACEOF
18044if ac_fn_c_try_compile "$LINENO"
18045then :
18046  xorg_cv_cc_flag_unknown_warning_option=yes
18047else $as_nop
18048  xorg_cv_cc_flag_unknown_warning_option=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18051fi
18052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18055	CFLAGS="$xorg_testset_save_CFLAGS"
18056fi
18057
18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18061	fi
18062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18066then :
18067  printf %s "(cached) " >&6
18068else $as_nop
18069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070/* end confdefs.h.  */
18071int i;
18072_ACEOF
18073if ac_fn_c_try_compile "$LINENO"
18074then :
18075  xorg_cv_cc_flag_unused_command_line_argument=yes
18076else $as_nop
18077  xorg_cv_cc_flag_unused_command_line_argument=no
18078fi
18079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18080fi
18081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18084	CFLAGS="$xorg_testset_save_CFLAGS"
18085fi
18086
18087found="no"
18088
18089	if test $found = "no" ; then
18090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18092		fi
18093
18094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18096		fi
18097
18098		CFLAGS="$CFLAGS -Wmissing-braces"
18099
18100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18101printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18102		cacheid=xorg_cv_cc_flag__Wmissing_braces
18103		if eval test \${$cacheid+y}
18104then :
18105  printf %s "(cached) " >&6
18106else $as_nop
18107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h.  */
18109int i;
18110int
18111main (void)
18112{
18113
18114  ;
18115  return 0;
18116}
18117_ACEOF
18118if ac_fn_c_try_link "$LINENO"
18119then :
18120  eval $cacheid=yes
18121else $as_nop
18122  eval $cacheid=no
18123fi
18124rm -f core conftest.err conftest.$ac_objext conftest.beam \
18125    conftest$ac_exeext conftest.$ac_ext
18126fi
18127
18128
18129		CFLAGS="$xorg_testset_save_CFLAGS"
18130
18131		eval supported=\$$cacheid
18132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18133printf "%s\n" "$supported" >&6; }
18134		if test "$supported" = "yes" ; then
18135			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18136			found="yes"
18137		fi
18138	fi
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154xorg_testset_save_CFLAGS="$CFLAGS"
18155
18156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18160if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18161then :
18162  printf %s "(cached) " >&6
18163else $as_nop
18164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h.  */
18166int i;
18167_ACEOF
18168if ac_fn_c_try_compile "$LINENO"
18169then :
18170  xorg_cv_cc_flag_unknown_warning_option=yes
18171else $as_nop
18172  xorg_cv_cc_flag_unknown_warning_option=no
18173fi
18174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18175fi
18176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18179	CFLAGS="$xorg_testset_save_CFLAGS"
18180fi
18181
18182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18185	fi
18186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18189if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18190then :
18191  printf %s "(cached) " >&6
18192else $as_nop
18193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h.  */
18195int i;
18196_ACEOF
18197if ac_fn_c_try_compile "$LINENO"
18198then :
18199  xorg_cv_cc_flag_unused_command_line_argument=yes
18200else $as_nop
18201  xorg_cv_cc_flag_unused_command_line_argument=no
18202fi
18203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18204fi
18205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18208	CFLAGS="$xorg_testset_save_CFLAGS"
18209fi
18210
18211found="no"
18212
18213	if test $found = "no" ; then
18214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216		fi
18217
18218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18220		fi
18221
18222		CFLAGS="$CFLAGS -Wsequence-point"
18223
18224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18225printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18226		cacheid=xorg_cv_cc_flag__Wsequence_point
18227		if eval test \${$cacheid+y}
18228then :
18229  printf %s "(cached) " >&6
18230else $as_nop
18231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233int i;
18234int
18235main (void)
18236{
18237
18238  ;
18239  return 0;
18240}
18241_ACEOF
18242if ac_fn_c_try_link "$LINENO"
18243then :
18244  eval $cacheid=yes
18245else $as_nop
18246  eval $cacheid=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext conftest.beam \
18249    conftest$ac_exeext conftest.$ac_ext
18250fi
18251
18252
18253		CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255		eval supported=\$$cacheid
18256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257printf "%s\n" "$supported" >&6; }
18258		if test "$supported" = "yes" ; then
18259			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18260			found="yes"
18261		fi
18262	fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18285then :
18286  printf %s "(cached) " >&6
18287else $as_nop
18288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289/* end confdefs.h.  */
18290int i;
18291_ACEOF
18292if ac_fn_c_try_compile "$LINENO"
18293then :
18294  xorg_cv_cc_flag_unknown_warning_option=yes
18295else $as_nop
18296  xorg_cv_cc_flag_unknown_warning_option=no
18297fi
18298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18299fi
18300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18303	CFLAGS="$xorg_testset_save_CFLAGS"
18304fi
18305
18306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18309	fi
18310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18313if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18314then :
18315  printf %s "(cached) " >&6
18316else $as_nop
18317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318/* end confdefs.h.  */
18319int i;
18320_ACEOF
18321if ac_fn_c_try_compile "$LINENO"
18322then :
18323  xorg_cv_cc_flag_unused_command_line_argument=yes
18324else $as_nop
18325  xorg_cv_cc_flag_unused_command_line_argument=no
18326fi
18327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18328fi
18329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18332	CFLAGS="$xorg_testset_save_CFLAGS"
18333fi
18334
18335found="no"
18336
18337	if test $found = "no" ; then
18338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18340		fi
18341
18342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18344		fi
18345
18346		CFLAGS="$CFLAGS -Wreturn-type"
18347
18348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18349printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18350		cacheid=xorg_cv_cc_flag__Wreturn_type
18351		if eval test \${$cacheid+y}
18352then :
18353  printf %s "(cached) " >&6
18354else $as_nop
18355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357int i;
18358int
18359main (void)
18360{
18361
18362  ;
18363  return 0;
18364}
18365_ACEOF
18366if ac_fn_c_try_link "$LINENO"
18367then :
18368  eval $cacheid=yes
18369else $as_nop
18370  eval $cacheid=no
18371fi
18372rm -f core conftest.err conftest.$ac_objext conftest.beam \
18373    conftest$ac_exeext conftest.$ac_ext
18374fi
18375
18376
18377		CFLAGS="$xorg_testset_save_CFLAGS"
18378
18379		eval supported=\$$cacheid
18380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18381printf "%s\n" "$supported" >&6; }
18382		if test "$supported" = "yes" ; then
18383			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18384			found="yes"
18385		fi
18386	fi
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402xorg_testset_save_CFLAGS="$CFLAGS"
18403
18404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18408if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18409then :
18410  printf %s "(cached) " >&6
18411else $as_nop
18412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413/* end confdefs.h.  */
18414int i;
18415_ACEOF
18416if ac_fn_c_try_compile "$LINENO"
18417then :
18418  xorg_cv_cc_flag_unknown_warning_option=yes
18419else $as_nop
18420  xorg_cv_cc_flag_unknown_warning_option=no
18421fi
18422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18423fi
18424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18427	CFLAGS="$xorg_testset_save_CFLAGS"
18428fi
18429
18430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18433	fi
18434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18438then :
18439  printf %s "(cached) " >&6
18440else $as_nop
18441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442/* end confdefs.h.  */
18443int i;
18444_ACEOF
18445if ac_fn_c_try_compile "$LINENO"
18446then :
18447  xorg_cv_cc_flag_unused_command_line_argument=yes
18448else $as_nop
18449  xorg_cv_cc_flag_unused_command_line_argument=no
18450fi
18451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18452fi
18453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18456	CFLAGS="$xorg_testset_save_CFLAGS"
18457fi
18458
18459found="no"
18460
18461	if test $found = "no" ; then
18462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464		fi
18465
18466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18468		fi
18469
18470		CFLAGS="$CFLAGS -Wtrigraphs"
18471
18472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18473printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18474		cacheid=xorg_cv_cc_flag__Wtrigraphs
18475		if eval test \${$cacheid+y}
18476then :
18477  printf %s "(cached) " >&6
18478else $as_nop
18479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h.  */
18481int i;
18482int
18483main (void)
18484{
18485
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"
18491then :
18492  eval $cacheid=yes
18493else $as_nop
18494  eval $cacheid=no
18495fi
18496rm -f core conftest.err conftest.$ac_objext conftest.beam \
18497    conftest$ac_exeext conftest.$ac_ext
18498fi
18499
18500
18501		CFLAGS="$xorg_testset_save_CFLAGS"
18502
18503		eval supported=\$$cacheid
18504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18505printf "%s\n" "$supported" >&6; }
18506		if test "$supported" = "yes" ; then
18507			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18508			found="yes"
18509		fi
18510	fi
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526xorg_testset_save_CFLAGS="$CFLAGS"
18527
18528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18533then :
18534  printf %s "(cached) " >&6
18535else $as_nop
18536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537/* end confdefs.h.  */
18538int i;
18539_ACEOF
18540if ac_fn_c_try_compile "$LINENO"
18541then :
18542  xorg_cv_cc_flag_unknown_warning_option=yes
18543else $as_nop
18544  xorg_cv_cc_flag_unknown_warning_option=no
18545fi
18546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18547fi
18548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18551	CFLAGS="$xorg_testset_save_CFLAGS"
18552fi
18553
18554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18557	fi
18558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18561if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18562then :
18563  printf %s "(cached) " >&6
18564else $as_nop
18565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566/* end confdefs.h.  */
18567int i;
18568_ACEOF
18569if ac_fn_c_try_compile "$LINENO"
18570then :
18571  xorg_cv_cc_flag_unused_command_line_argument=yes
18572else $as_nop
18573  xorg_cv_cc_flag_unused_command_line_argument=no
18574fi
18575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18576fi
18577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18580	CFLAGS="$xorg_testset_save_CFLAGS"
18581fi
18582
18583found="no"
18584
18585	if test $found = "no" ; then
18586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18588		fi
18589
18590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18592		fi
18593
18594		CFLAGS="$CFLAGS -Warray-bounds"
18595
18596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18597printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18598		cacheid=xorg_cv_cc_flag__Warray_bounds
18599		if eval test \${$cacheid+y}
18600then :
18601  printf %s "(cached) " >&6
18602else $as_nop
18603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604/* end confdefs.h.  */
18605int i;
18606int
18607main (void)
18608{
18609
18610  ;
18611  return 0;
18612}
18613_ACEOF
18614if ac_fn_c_try_link "$LINENO"
18615then :
18616  eval $cacheid=yes
18617else $as_nop
18618  eval $cacheid=no
18619fi
18620rm -f core conftest.err conftest.$ac_objext conftest.beam \
18621    conftest$ac_exeext conftest.$ac_ext
18622fi
18623
18624
18625		CFLAGS="$xorg_testset_save_CFLAGS"
18626
18627		eval supported=\$$cacheid
18628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18629printf "%s\n" "$supported" >&6; }
18630		if test "$supported" = "yes" ; then
18631			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18632			found="yes"
18633		fi
18634	fi
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650xorg_testset_save_CFLAGS="$CFLAGS"
18651
18652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18657then :
18658  printf %s "(cached) " >&6
18659else $as_nop
18660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661/* end confdefs.h.  */
18662int i;
18663_ACEOF
18664if ac_fn_c_try_compile "$LINENO"
18665then :
18666  xorg_cv_cc_flag_unknown_warning_option=yes
18667else $as_nop
18668  xorg_cv_cc_flag_unknown_warning_option=no
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18671fi
18672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18675	CFLAGS="$xorg_testset_save_CFLAGS"
18676fi
18677
18678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18681	fi
18682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18685if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18686then :
18687  printf %s "(cached) " >&6
18688else $as_nop
18689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690/* end confdefs.h.  */
18691int i;
18692_ACEOF
18693if ac_fn_c_try_compile "$LINENO"
18694then :
18695  xorg_cv_cc_flag_unused_command_line_argument=yes
18696else $as_nop
18697  xorg_cv_cc_flag_unused_command_line_argument=no
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18700fi
18701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18704	CFLAGS="$xorg_testset_save_CFLAGS"
18705fi
18706
18707found="no"
18708
18709	if test $found = "no" ; then
18710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18712		fi
18713
18714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18716		fi
18717
18718		CFLAGS="$CFLAGS -Wwrite-strings"
18719
18720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18721printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18722		cacheid=xorg_cv_cc_flag__Wwrite_strings
18723		if eval test \${$cacheid+y}
18724then :
18725  printf %s "(cached) " >&6
18726else $as_nop
18727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729int i;
18730int
18731main (void)
18732{
18733
18734  ;
18735  return 0;
18736}
18737_ACEOF
18738if ac_fn_c_try_link "$LINENO"
18739then :
18740  eval $cacheid=yes
18741else $as_nop
18742  eval $cacheid=no
18743fi
18744rm -f core conftest.err conftest.$ac_objext conftest.beam \
18745    conftest$ac_exeext conftest.$ac_ext
18746fi
18747
18748
18749		CFLAGS="$xorg_testset_save_CFLAGS"
18750
18751		eval supported=\$$cacheid
18752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18753printf "%s\n" "$supported" >&6; }
18754		if test "$supported" = "yes" ; then
18755			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18756			found="yes"
18757		fi
18758	fi
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774xorg_testset_save_CFLAGS="$CFLAGS"
18775
18776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18780if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18781then :
18782  printf %s "(cached) " >&6
18783else $as_nop
18784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785/* end confdefs.h.  */
18786int i;
18787_ACEOF
18788if ac_fn_c_try_compile "$LINENO"
18789then :
18790  xorg_cv_cc_flag_unknown_warning_option=yes
18791else $as_nop
18792  xorg_cv_cc_flag_unknown_warning_option=no
18793fi
18794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18795fi
18796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18799	CFLAGS="$xorg_testset_save_CFLAGS"
18800fi
18801
18802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18805	fi
18806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18810then :
18811  printf %s "(cached) " >&6
18812else $as_nop
18813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814/* end confdefs.h.  */
18815int i;
18816_ACEOF
18817if ac_fn_c_try_compile "$LINENO"
18818then :
18819  xorg_cv_cc_flag_unused_command_line_argument=yes
18820else $as_nop
18821  xorg_cv_cc_flag_unused_command_line_argument=no
18822fi
18823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18824fi
18825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18828	CFLAGS="$xorg_testset_save_CFLAGS"
18829fi
18830
18831found="no"
18832
18833	if test $found = "no" ; then
18834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18836		fi
18837
18838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18840		fi
18841
18842		CFLAGS="$CFLAGS -Waddress"
18843
18844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18845printf %s "checking if $CC supports -Waddress... " >&6; }
18846		cacheid=xorg_cv_cc_flag__Waddress
18847		if eval test \${$cacheid+y}
18848then :
18849  printf %s "(cached) " >&6
18850else $as_nop
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853int i;
18854int
18855main (void)
18856{
18857
18858  ;
18859  return 0;
18860}
18861_ACEOF
18862if ac_fn_c_try_link "$LINENO"
18863then :
18864  eval $cacheid=yes
18865else $as_nop
18866  eval $cacheid=no
18867fi
18868rm -f core conftest.err conftest.$ac_objext conftest.beam \
18869    conftest$ac_exeext conftest.$ac_ext
18870fi
18871
18872
18873		CFLAGS="$xorg_testset_save_CFLAGS"
18874
18875		eval supported=\$$cacheid
18876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18877printf "%s\n" "$supported" >&6; }
18878		if test "$supported" = "yes" ; then
18879			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18880			found="yes"
18881		fi
18882	fi
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898xorg_testset_save_CFLAGS="$CFLAGS"
18899
18900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18905then :
18906  printf %s "(cached) " >&6
18907else $as_nop
18908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909/* end confdefs.h.  */
18910int i;
18911_ACEOF
18912if ac_fn_c_try_compile "$LINENO"
18913then :
18914  xorg_cv_cc_flag_unknown_warning_option=yes
18915else $as_nop
18916  xorg_cv_cc_flag_unknown_warning_option=no
18917fi
18918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18919fi
18920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18923	CFLAGS="$xorg_testset_save_CFLAGS"
18924fi
18925
18926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18929	fi
18930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18934then :
18935  printf %s "(cached) " >&6
18936else $as_nop
18937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938/* end confdefs.h.  */
18939int i;
18940_ACEOF
18941if ac_fn_c_try_compile "$LINENO"
18942then :
18943  xorg_cv_cc_flag_unused_command_line_argument=yes
18944else $as_nop
18945  xorg_cv_cc_flag_unused_command_line_argument=no
18946fi
18947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18948fi
18949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18952	CFLAGS="$xorg_testset_save_CFLAGS"
18953fi
18954
18955found="no"
18956
18957	if test $found = "no" ; then
18958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18960		fi
18961
18962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18964		fi
18965
18966		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18967
18968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18969printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18970		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18971		if eval test \${$cacheid+y}
18972then :
18973  printf %s "(cached) " >&6
18974else $as_nop
18975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976/* end confdefs.h.  */
18977int i;
18978int
18979main (void)
18980{
18981
18982  ;
18983  return 0;
18984}
18985_ACEOF
18986if ac_fn_c_try_link "$LINENO"
18987then :
18988  eval $cacheid=yes
18989else $as_nop
18990  eval $cacheid=no
18991fi
18992rm -f core conftest.err conftest.$ac_objext conftest.beam \
18993    conftest$ac_exeext conftest.$ac_ext
18994fi
18995
18996
18997		CFLAGS="$xorg_testset_save_CFLAGS"
18998
18999		eval supported=\$$cacheid
19000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19001printf "%s\n" "$supported" >&6; }
19002		if test "$supported" = "yes" ; then
19003			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19004			found="yes"
19005		fi
19006	fi
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022xorg_testset_save_CFLAGS="$CFLAGS"
19023
19024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19029then :
19030  printf %s "(cached) " >&6
19031else $as_nop
19032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033/* end confdefs.h.  */
19034int i;
19035_ACEOF
19036if ac_fn_c_try_compile "$LINENO"
19037then :
19038  xorg_cv_cc_flag_unknown_warning_option=yes
19039else $as_nop
19040  xorg_cv_cc_flag_unknown_warning_option=no
19041fi
19042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19043fi
19044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19047	CFLAGS="$xorg_testset_save_CFLAGS"
19048fi
19049
19050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19053	fi
19054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19058then :
19059  printf %s "(cached) " >&6
19060else $as_nop
19061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063int i;
19064_ACEOF
19065if ac_fn_c_try_compile "$LINENO"
19066then :
19067  xorg_cv_cc_flag_unused_command_line_argument=yes
19068else $as_nop
19069  xorg_cv_cc_flag_unused_command_line_argument=no
19070fi
19071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19072fi
19073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19076	CFLAGS="$xorg_testset_save_CFLAGS"
19077fi
19078
19079found="no"
19080
19081	if test $found = "no" ; then
19082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19084		fi
19085
19086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19088		fi
19089
19090		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19091
19092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19093printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19094		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19095		if eval test \${$cacheid+y}
19096then :
19097  printf %s "(cached) " >&6
19098else $as_nop
19099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100/* end confdefs.h.  */
19101int i;
19102int
19103main (void)
19104{
19105
19106  ;
19107  return 0;
19108}
19109_ACEOF
19110if ac_fn_c_try_link "$LINENO"
19111then :
19112  eval $cacheid=yes
19113else $as_nop
19114  eval $cacheid=no
19115fi
19116rm -f core conftest.err conftest.$ac_objext conftest.beam \
19117    conftest$ac_exeext conftest.$ac_ext
19118fi
19119
19120
19121		CFLAGS="$xorg_testset_save_CFLAGS"
19122
19123		eval supported=\$$cacheid
19124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19125printf "%s\n" "$supported" >&6; }
19126		if test "$supported" = "yes" ; then
19127			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19128			found="yes"
19129		fi
19130	fi
19131
19132
19133fi
19134
19135
19136
19137
19138
19139
19140
19141		CWARNFLAGS="$BASE_CFLAGS"
19142		if  test "x$GCC" = xyes ; then
19143		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19144		fi
19145
19146
19147
19148
19149
19150
19151
19152
19153# Check whether --enable-strict-compilation was given.
19154if test ${enable_strict_compilation+y}
19155then :
19156  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19157else $as_nop
19158  STRICT_COMPILE=no
19159fi
19160
19161
19162
19163
19164
19165
19166STRICT_CFLAGS=""
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180xorg_testset_save_CFLAGS="$CFLAGS"
19181
19182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19187then :
19188  printf %s "(cached) " >&6
19189else $as_nop
19190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192int i;
19193_ACEOF
19194if ac_fn_c_try_compile "$LINENO"
19195then :
19196  xorg_cv_cc_flag_unknown_warning_option=yes
19197else $as_nop
19198  xorg_cv_cc_flag_unknown_warning_option=no
19199fi
19200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19201fi
19202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19205	CFLAGS="$xorg_testset_save_CFLAGS"
19206fi
19207
19208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19211	fi
19212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19216then :
19217  printf %s "(cached) " >&6
19218else $as_nop
19219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h.  */
19221int i;
19222_ACEOF
19223if ac_fn_c_try_compile "$LINENO"
19224then :
19225  xorg_cv_cc_flag_unused_command_line_argument=yes
19226else $as_nop
19227  xorg_cv_cc_flag_unused_command_line_argument=no
19228fi
19229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19230fi
19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19234	CFLAGS="$xorg_testset_save_CFLAGS"
19235fi
19236
19237found="no"
19238
19239	if test $found = "no" ; then
19240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19242		fi
19243
19244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19246		fi
19247
19248		CFLAGS="$CFLAGS -pedantic"
19249
19250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19251printf %s "checking if $CC supports -pedantic... " >&6; }
19252		cacheid=xorg_cv_cc_flag__pedantic
19253		if eval test \${$cacheid+y}
19254then :
19255  printf %s "(cached) " >&6
19256else $as_nop
19257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258/* end confdefs.h.  */
19259int i;
19260int
19261main (void)
19262{
19263
19264  ;
19265  return 0;
19266}
19267_ACEOF
19268if ac_fn_c_try_link "$LINENO"
19269then :
19270  eval $cacheid=yes
19271else $as_nop
19272  eval $cacheid=no
19273fi
19274rm -f core conftest.err conftest.$ac_objext conftest.beam \
19275    conftest$ac_exeext conftest.$ac_ext
19276fi
19277
19278
19279		CFLAGS="$xorg_testset_save_CFLAGS"
19280
19281		eval supported=\$$cacheid
19282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19283printf "%s\n" "$supported" >&6; }
19284		if test "$supported" = "yes" ; then
19285			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19286			found="yes"
19287		fi
19288	fi
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304xorg_testset_save_CFLAGS="$CFLAGS"
19305
19306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19310if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19311then :
19312  printf %s "(cached) " >&6
19313else $as_nop
19314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315/* end confdefs.h.  */
19316int i;
19317_ACEOF
19318if ac_fn_c_try_compile "$LINENO"
19319then :
19320  xorg_cv_cc_flag_unknown_warning_option=yes
19321else $as_nop
19322  xorg_cv_cc_flag_unknown_warning_option=no
19323fi
19324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19325fi
19326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19329	CFLAGS="$xorg_testset_save_CFLAGS"
19330fi
19331
19332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19335	fi
19336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19340then :
19341  printf %s "(cached) " >&6
19342else $as_nop
19343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344/* end confdefs.h.  */
19345int i;
19346_ACEOF
19347if ac_fn_c_try_compile "$LINENO"
19348then :
19349  xorg_cv_cc_flag_unused_command_line_argument=yes
19350else $as_nop
19351  xorg_cv_cc_flag_unused_command_line_argument=no
19352fi
19353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19354fi
19355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19358	CFLAGS="$xorg_testset_save_CFLAGS"
19359fi
19360
19361found="no"
19362
19363	if test $found = "no" ; then
19364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19366		fi
19367
19368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19370		fi
19371
19372		CFLAGS="$CFLAGS -Werror"
19373
19374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19375printf %s "checking if $CC supports -Werror... " >&6; }
19376		cacheid=xorg_cv_cc_flag__Werror
19377		if eval test \${$cacheid+y}
19378then :
19379  printf %s "(cached) " >&6
19380else $as_nop
19381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382/* end confdefs.h.  */
19383int i;
19384int
19385main (void)
19386{
19387
19388  ;
19389  return 0;
19390}
19391_ACEOF
19392if ac_fn_c_try_link "$LINENO"
19393then :
19394  eval $cacheid=yes
19395else $as_nop
19396  eval $cacheid=no
19397fi
19398rm -f core conftest.err conftest.$ac_objext conftest.beam \
19399    conftest$ac_exeext conftest.$ac_ext
19400fi
19401
19402
19403		CFLAGS="$xorg_testset_save_CFLAGS"
19404
19405		eval supported=\$$cacheid
19406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19407printf "%s\n" "$supported" >&6; }
19408		if test "$supported" = "yes" ; then
19409			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19410			found="yes"
19411		fi
19412	fi
19413
19414	if test $found = "no" ; then
19415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19417		fi
19418
19419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19421		fi
19422
19423		CFLAGS="$CFLAGS -errwarn"
19424
19425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19426printf %s "checking if $CC supports -errwarn... " >&6; }
19427		cacheid=xorg_cv_cc_flag__errwarn
19428		if eval test \${$cacheid+y}
19429then :
19430  printf %s "(cached) " >&6
19431else $as_nop
19432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433/* end confdefs.h.  */
19434int i;
19435int
19436main (void)
19437{
19438
19439  ;
19440  return 0;
19441}
19442_ACEOF
19443if ac_fn_c_try_link "$LINENO"
19444then :
19445  eval $cacheid=yes
19446else $as_nop
19447  eval $cacheid=no
19448fi
19449rm -f core conftest.err conftest.$ac_objext conftest.beam \
19450    conftest$ac_exeext conftest.$ac_ext
19451fi
19452
19453
19454		CFLAGS="$xorg_testset_save_CFLAGS"
19455
19456		eval supported=\$$cacheid
19457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19458printf "%s\n" "$supported" >&6; }
19459		if test "$supported" = "yes" ; then
19460			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19461			found="yes"
19462		fi
19463	fi
19464
19465
19466
19467# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19468# activate it with -Werror, so we add it here explicitly.
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482xorg_testset_save_CFLAGS="$CFLAGS"
19483
19484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19485	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19486	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19488if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19489then :
19490  printf %s "(cached) " >&6
19491else $as_nop
19492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493/* end confdefs.h.  */
19494int i;
19495_ACEOF
19496if ac_fn_c_try_compile "$LINENO"
19497then :
19498  xorg_cv_cc_flag_unknown_warning_option=yes
19499else $as_nop
19500  xorg_cv_cc_flag_unknown_warning_option=no
19501fi
19502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19503fi
19504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19505printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19507	CFLAGS="$xorg_testset_save_CFLAGS"
19508fi
19509
19510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19513	fi
19514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19515	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19516printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19517if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19518then :
19519  printf %s "(cached) " >&6
19520else $as_nop
19521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522/* end confdefs.h.  */
19523int i;
19524_ACEOF
19525if ac_fn_c_try_compile "$LINENO"
19526then :
19527  xorg_cv_cc_flag_unused_command_line_argument=yes
19528else $as_nop
19529  xorg_cv_cc_flag_unused_command_line_argument=no
19530fi
19531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19532fi
19533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19536	CFLAGS="$xorg_testset_save_CFLAGS"
19537fi
19538
19539found="no"
19540
19541	if test $found = "no" ; then
19542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19544		fi
19545
19546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19548		fi
19549
19550		CFLAGS="$CFLAGS -Werror=attributes"
19551
19552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19553printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19554		cacheid=xorg_cv_cc_flag__Werror_attributes
19555		if eval test \${$cacheid+y}
19556then :
19557  printf %s "(cached) " >&6
19558else $as_nop
19559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560/* end confdefs.h.  */
19561int i;
19562int
19563main (void)
19564{
19565
19566  ;
19567  return 0;
19568}
19569_ACEOF
19570if ac_fn_c_try_link "$LINENO"
19571then :
19572  eval $cacheid=yes
19573else $as_nop
19574  eval $cacheid=no
19575fi
19576rm -f core conftest.err conftest.$ac_objext conftest.beam \
19577    conftest$ac_exeext conftest.$ac_ext
19578fi
19579
19580
19581		CFLAGS="$xorg_testset_save_CFLAGS"
19582
19583		eval supported=\$$cacheid
19584		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19585printf "%s\n" "$supported" >&6; }
19586		if test "$supported" = "yes" ; then
19587			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19588			found="yes"
19589		fi
19590	fi
19591
19592
19593
19594if test "x$STRICT_COMPILE" = "xyes"; then
19595    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19596    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19597fi
19598
19599
19600
19601
19602
19603
19604cat >>confdefs.h <<_ACEOF
19605#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19606_ACEOF
19607
19608	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19609	if test "x$PVM" = "x"; then
19610		PVM="0"
19611	fi
19612
19613printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19614
19615	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19616	if test "x$PVP" = "x"; then
19617		PVP="0"
19618	fi
19619
19620printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19621
19622
19623
19624CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19625mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19626|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19627touch \$(top_srcdir)/ChangeLog; \
19628echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19629
19630
19631
19632
19633macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19634INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19635mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19636|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19637touch \$(top_srcdir)/INSTALL; \
19638echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19639
19640
19641
19642
19643
19644
19645case $host_os in
19646    solaris*)
19647        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19648        # check for a man page file found in later versions that use
19649        # traditional section numbers instead
19650        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19651printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19652if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19653then :
19654  printf %s "(cached) " >&6
19655else $as_nop
19656  test "$cross_compiling" = yes &&
19657  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19658if test -r "/usr/share/man/man7/attributes.7"; then
19659  ac_cv_file__usr_share_man_man7_attributes_7=yes
19660else
19661  ac_cv_file__usr_share_man_man7_attributes_7=no
19662fi
19663fi
19664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19665printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19666if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19667then :
19668  SYSV_MAN_SECTIONS=false
19669else $as_nop
19670  SYSV_MAN_SECTIONS=true
19671fi
19672
19673        ;;
19674    *) SYSV_MAN_SECTIONS=false ;;
19675esac
19676
19677if test x$APP_MAN_SUFFIX = x    ; then
19678    APP_MAN_SUFFIX=1
19679fi
19680if test x$APP_MAN_DIR = x    ; then
19681    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19682fi
19683
19684if test x$LIB_MAN_SUFFIX = x    ; then
19685    LIB_MAN_SUFFIX=3
19686fi
19687if test x$LIB_MAN_DIR = x    ; then
19688    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19689fi
19690
19691if test x$FILE_MAN_SUFFIX = x    ; then
19692    case $SYSV_MAN_SECTIONS in
19693	true)				FILE_MAN_SUFFIX=4  ;;
19694	*)				FILE_MAN_SUFFIX=5  ;;
19695    esac
19696fi
19697if test x$FILE_MAN_DIR = x    ; then
19698    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19699fi
19700
19701if test x$MISC_MAN_SUFFIX = x    ; then
19702    case $SYSV_MAN_SECTIONS in
19703	true)				MISC_MAN_SUFFIX=5  ;;
19704	*)				MISC_MAN_SUFFIX=7  ;;
19705    esac
19706fi
19707if test x$MISC_MAN_DIR = x    ; then
19708    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19709fi
19710
19711if test x$DRIVER_MAN_SUFFIX = x    ; then
19712    case $SYSV_MAN_SECTIONS in
19713	true)				DRIVER_MAN_SUFFIX=7  ;;
19714	*)				DRIVER_MAN_SUFFIX=4  ;;
19715    esac
19716fi
19717if test x$DRIVER_MAN_DIR = x    ; then
19718    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19719fi
19720
19721if test x$ADMIN_MAN_SUFFIX = x    ; then
19722    case $SYSV_MAN_SECTIONS in
19723	true)				ADMIN_MAN_SUFFIX=1m ;;
19724	*)				ADMIN_MAN_SUFFIX=8  ;;
19725    esac
19726fi
19727if test x$ADMIN_MAN_DIR = x    ; then
19728    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19729fi
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745XORG_MAN_PAGE="X Version 11"
19746
19747MAN_SUBSTS="\
19748	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19749	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19750	-e 's|__xservername__|Xorg|g' \
19751	-e 's|__xconfigfile__|xorg.conf|g' \
19752	-e 's|__projectroot__|\$(prefix)|g' \
19753	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19754	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19755	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19756	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19757	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19758	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19759	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19760
19761
19762
19763# Check whether --enable-silent-rules was given.
19764if test ${enable_silent_rules+y}
19765then :
19766  enableval=$enable_silent_rules;
19767fi
19768
19769case $enable_silent_rules in # (((
19770  yes) AM_DEFAULT_VERBOSITY=0;;
19771   no) AM_DEFAULT_VERBOSITY=1;;
19772    *) AM_DEFAULT_VERBOSITY=0;;
19773esac
19774am_make=${MAKE-make}
19775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19776printf %s "checking whether $am_make supports nested variables... " >&6; }
19777if test ${am_cv_make_support_nested_variables+y}
19778then :
19779  printf %s "(cached) " >&6
19780else $as_nop
19781  if printf "%s\n" 'TRUE=$(BAR$(V))
19782BAR0=false
19783BAR1=true
19784V=1
19785am__doit:
19786	@$(TRUE)
19787.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19788  am_cv_make_support_nested_variables=yes
19789else
19790  am_cv_make_support_nested_variables=no
19791fi
19792fi
19793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19794printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19795if test $am_cv_make_support_nested_variables = yes; then
19796    AM_V='$(V)'
19797  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19798else
19799  AM_V=$AM_DEFAULT_VERBOSITY
19800  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19801fi
19802AM_BACKSLASH='\'
19803
19804
19805ac_ext=c
19806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19811printf %s "checking how to run the C preprocessor... " >&6; }
19812# On Suns, sometimes $CPP names a directory.
19813if test -n "$CPP" && test -d "$CPP"; then
19814  CPP=
19815fi
19816if test -z "$CPP"; then
19817  if test ${ac_cv_prog_CPP+y}
19818then :
19819  printf %s "(cached) " >&6
19820else $as_nop
19821      # Double quotes because $CC needs to be expanded
19822    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
19823    do
19824      ac_preproc_ok=false
19825for ac_c_preproc_warn_flag in '' yes
19826do
19827  # Use a header file that comes with gcc, so configuring glibc
19828  # with a fresh cross-compiler works.
19829  # On the NeXT, cc -E runs the code through the compiler's parser,
19830  # not just through cpp. "Syntax error" is here to catch this case.
19831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833#include <limits.h>
19834		     Syntax error
19835_ACEOF
19836if ac_fn_c_try_cpp "$LINENO"
19837then :
19838
19839else $as_nop
19840  # Broken: fails on valid input.
19841continue
19842fi
19843rm -f conftest.err conftest.i conftest.$ac_ext
19844
19845  # OK, works on sane cases.  Now check whether nonexistent headers
19846  # can be detected and how.
19847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848/* end confdefs.h.  */
19849#include <ac_nonexistent.h>
19850_ACEOF
19851if ac_fn_c_try_cpp "$LINENO"
19852then :
19853  # Broken: success on invalid input.
19854continue
19855else $as_nop
19856  # Passes both tests.
19857ac_preproc_ok=:
19858break
19859fi
19860rm -f conftest.err conftest.i conftest.$ac_ext
19861
19862done
19863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19864rm -f conftest.i conftest.err conftest.$ac_ext
19865if $ac_preproc_ok
19866then :
19867  break
19868fi
19869
19870    done
19871    ac_cv_prog_CPP=$CPP
19872
19873fi
19874  CPP=$ac_cv_prog_CPP
19875else
19876  ac_cv_prog_CPP=$CPP
19877fi
19878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
19879printf "%s\n" "$CPP" >&6; }
19880ac_preproc_ok=false
19881for ac_c_preproc_warn_flag in '' yes
19882do
19883  # Use a header file that comes with gcc, so configuring glibc
19884  # with a fresh cross-compiler works.
19885  # On the NeXT, cc -E runs the code through the compiler's parser,
19886  # not just through cpp. "Syntax error" is here to catch this case.
19887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888/* end confdefs.h.  */
19889#include <limits.h>
19890		     Syntax error
19891_ACEOF
19892if ac_fn_c_try_cpp "$LINENO"
19893then :
19894
19895else $as_nop
19896  # Broken: fails on valid input.
19897continue
19898fi
19899rm -f conftest.err conftest.i conftest.$ac_ext
19900
19901  # OK, works on sane cases.  Now check whether nonexistent headers
19902  # can be detected and how.
19903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904/* end confdefs.h.  */
19905#include <ac_nonexistent.h>
19906_ACEOF
19907if ac_fn_c_try_cpp "$LINENO"
19908then :
19909  # Broken: success on invalid input.
19910continue
19911else $as_nop
19912  # Passes both tests.
19913ac_preproc_ok=:
19914break
19915fi
19916rm -f conftest.err conftest.i conftest.$ac_ext
19917
19918done
19919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19920rm -f conftest.i conftest.err conftest.$ac_ext
19921if $ac_preproc_ok
19922then :
19923
19924else $as_nop
19925  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19926printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19927as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
19928See \`config.log' for more details" "$LINENO" 5; }
19929fi
19930
19931ac_ext=c
19932ac_cpp='$CPP $CPPFLAGS'
19933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935ac_compiler_gnu=$ac_cv_c_compiler_gnu
19936
19937
19938
19939if test -n "$ac_tool_prefix"; then
19940  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
19941set dummy ${ac_tool_prefix}cpp; ac_word=$2
19942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19943printf %s "checking for $ac_word... " >&6; }
19944if test ${ac_cv_path_RAWCPP+y}
19945then :
19946  printf %s "(cached) " >&6
19947else $as_nop
19948  case $RAWCPP in
19949  [\\/]* | ?:[\\/]*)
19950  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19951  ;;
19952  *)
19953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19954as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19955for as_dir in $as_dummy
19956do
19957  IFS=$as_save_IFS
19958  case $as_dir in #(((
19959    '') as_dir=./ ;;
19960    */) ;;
19961    *) as_dir=$as_dir/ ;;
19962  esac
19963    for ac_exec_ext in '' $ac_executable_extensions; do
19964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19965    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
19966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19967    break 2
19968  fi
19969done
19970  done
19971IFS=$as_save_IFS
19972
19973  ;;
19974esac
19975fi
19976RAWCPP=$ac_cv_path_RAWCPP
19977if test -n "$RAWCPP"; then
19978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19979printf "%s\n" "$RAWCPP" >&6; }
19980else
19981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19982printf "%s\n" "no" >&6; }
19983fi
19984
19985
19986fi
19987if test -z "$ac_cv_path_RAWCPP"; then
19988  ac_pt_RAWCPP=$RAWCPP
19989  # Extract the first word of "cpp", so it can be a program name with args.
19990set dummy cpp; ac_word=$2
19991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19992printf %s "checking for $ac_word... " >&6; }
19993if test ${ac_cv_path_ac_pt_RAWCPP+y}
19994then :
19995  printf %s "(cached) " >&6
19996else $as_nop
19997  case $ac_pt_RAWCPP in
19998  [\\/]* | ?:[\\/]*)
19999  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20000  ;;
20001  *)
20002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20003as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20004for as_dir in $as_dummy
20005do
20006  IFS=$as_save_IFS
20007  case $as_dir in #(((
20008    '') as_dir=./ ;;
20009    */) ;;
20010    *) as_dir=$as_dir/ ;;
20011  esac
20012    for ac_exec_ext in '' $ac_executable_extensions; do
20013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20014    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20016    break 2
20017  fi
20018done
20019  done
20020IFS=$as_save_IFS
20021
20022  ;;
20023esac
20024fi
20025ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20026if test -n "$ac_pt_RAWCPP"; then
20027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20028printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20029else
20030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20031printf "%s\n" "no" >&6; }
20032fi
20033
20034  if test "x$ac_pt_RAWCPP" = x; then
20035    RAWCPP="${CPP}"
20036  else
20037    case $cross_compiling:$ac_tool_warned in
20038yes:)
20039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20041ac_tool_warned=yes ;;
20042esac
20043    RAWCPP=$ac_pt_RAWCPP
20044  fi
20045else
20046  RAWCPP="$ac_cv_path_RAWCPP"
20047fi
20048
20049
20050# Check for flag to avoid builtin definitions - assumes unix is predefined,
20051# which is not the best choice for supporting other OS'es, but covers most
20052# of the ones we need for now.
20053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20054printf %s "checking if $RAWCPP requires -undef... " >&6; }
20055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056/* end confdefs.h.  */
20057Does cpp redefine unix ?
20058_ACEOF
20059if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20061printf "%s\n" "no" >&6; }
20062else
20063	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20064		RAWCPPFLAGS=-undef
20065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066printf "%s\n" "yes" >&6; }
20067	# under Cygwin unix is still defined even with -undef
20068	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20069		RAWCPPFLAGS="-undef -ansi"
20070		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20071printf "%s\n" "yes, with -ansi" >&6; }
20072	else
20073		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20074	fi
20075fi
20076rm -f conftest.$ac_ext
20077
20078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20079printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081/* end confdefs.h.  */
20082Does cpp preserve   "whitespace"?
20083_ACEOF
20084if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20086printf "%s\n" "no" >&6; }
20087else
20088	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20089		TRADITIONALCPPFLAGS="-traditional"
20090		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20092printf "%s\n" "yes" >&6; }
20093	else
20094		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20095	fi
20096fi
20097rm -f conftest.$ac_ext
20098
20099
20100
20101
20102
20103
20104
20105
20106# Check whether --with-lint was given.
20107if test ${with_lint+y}
20108then :
20109  withval=$with_lint; use_lint=$withval
20110else $as_nop
20111  use_lint=no
20112fi
20113
20114
20115# Obtain platform specific info like program name and options
20116# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20117case $host_os in
20118  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20119	lint_name=splint
20120	lint_options="-badflag"
20121	;;
20122  *freebsd* | *netbsd*)
20123	lint_name=lint
20124	lint_options="-u -b"
20125	;;
20126  *solaris*)
20127	lint_name=lint
20128	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20129	;;
20130esac
20131
20132# Test for the presence of the program (either guessed by the code or spelled out by the user)
20133if test "x$use_lint" = x"yes" ; then
20134   # Extract the first word of "$lint_name", so it can be a program name with args.
20135set dummy $lint_name; ac_word=$2
20136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20137printf %s "checking for $ac_word... " >&6; }
20138if test ${ac_cv_path_LINT+y}
20139then :
20140  printf %s "(cached) " >&6
20141else $as_nop
20142  case $LINT in
20143  [\\/]* | ?:[\\/]*)
20144  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20145  ;;
20146  *)
20147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20148for as_dir in $PATH
20149do
20150  IFS=$as_save_IFS
20151  case $as_dir in #(((
20152    '') as_dir=./ ;;
20153    */) ;;
20154    *) as_dir=$as_dir/ ;;
20155  esac
20156    for ac_exec_ext in '' $ac_executable_extensions; do
20157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20158    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20160    break 2
20161  fi
20162done
20163  done
20164IFS=$as_save_IFS
20165
20166  ;;
20167esac
20168fi
20169LINT=$ac_cv_path_LINT
20170if test -n "$LINT"; then
20171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20172printf "%s\n" "$LINT" >&6; }
20173else
20174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20175printf "%s\n" "no" >&6; }
20176fi
20177
20178
20179   if test "x$LINT" = "x"; then
20180        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20181   fi
20182elif test "x$use_lint" = x"no" ; then
20183   if test "x$LINT" != "x"; then
20184      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20185printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20186   fi
20187else
20188   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20189fi
20190
20191# User supplied flags override default flags
20192if test "x$LINT_FLAGS" != "x"; then
20193   lint_options=$LINT_FLAGS
20194fi
20195
20196LINT_FLAGS=$lint_options
20197
20198 if test "x$LINT" != x; then
20199  LINT_TRUE=
20200  LINT_FALSE='#'
20201else
20202  LINT_TRUE='#'
20203  LINT_FALSE=
20204fi
20205
20206
20207
20208
20209# Checks for programs.
20210# Check for mktemp to prevent security issue noted in Xorg bug #5898
20211# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
20212# Extract the first word of "mktemp", so it can be a program name with args.
20213set dummy mktemp; ac_word=$2
20214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20215printf %s "checking for $ac_word... " >&6; }
20216if test ${ac_cv_path_MKTEMP_COMMAND+y}
20217then :
20218  printf %s "(cached) " >&6
20219else $as_nop
20220  case $MKTEMP_COMMAND in
20221  [\\/]* | ?:[\\/]*)
20222  ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
20223  ;;
20224  *)
20225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226for as_dir in $PATH
20227do
20228  IFS=$as_save_IFS
20229  case $as_dir in #(((
20230    '') as_dir=./ ;;
20231    */) ;;
20232    *) as_dir=$as_dir/ ;;
20233  esac
20234    for ac_exec_ext in '' $ac_executable_extensions; do
20235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20236    ac_cv_path_MKTEMP_COMMAND="$as_dir$ac_word$ac_exec_ext"
20237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20238    break 2
20239  fi
20240done
20241  done
20242IFS=$as_save_IFS
20243
20244  ;;
20245esac
20246fi
20247MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
20248if test -n "$MKTEMP_COMMAND"; then
20249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5
20250printf "%s\n" "$MKTEMP_COMMAND" >&6; }
20251else
20252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253printf "%s\n" "no" >&6; }
20254fi
20255
20256
20257 if test x$MKTEMP_COMMAND != x; then
20258  HAVE_MKTEMP_COMMAND_TRUE=
20259  HAVE_MKTEMP_COMMAND_FALSE='#'
20260else
20261  HAVE_MKTEMP_COMMAND_TRUE='#'
20262  HAVE_MKTEMP_COMMAND_FALSE=
20263fi
20264
20265
20266#------------------------------------------------------------------------------
20267#			Check for system libraries
20268#
20269# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library.
20270#                 pre-pends the found library to $LIBS.
20271#
20272#------------------------------------------------------------------------------
20273
20274
20275pkg_failed=no
20276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5
20277printf %s "checking for XDM... " >&6; }
20278
20279if test -n "$XDM_CFLAGS"; then
20280    pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
20281 elif test -n "$PKG_CONFIG"; then
20282    if test -n "$PKG_CONFIG" && \
20283    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
20284  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
20285  ac_status=$?
20286  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287  test $ac_status = 0; }; then
20288  pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
20289		      test "x$?" != "x0" && pkg_failed=yes
20290else
20291  pkg_failed=yes
20292fi
20293 else
20294    pkg_failed=untried
20295fi
20296if test -n "$XDM_LIBS"; then
20297    pkg_cv_XDM_LIBS="$XDM_LIBS"
20298 elif test -n "$PKG_CONFIG"; then
20299    if test -n "$PKG_CONFIG" && \
20300    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
20301  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
20302  ac_status=$?
20303  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20304  test $ac_status = 0; }; then
20305  pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
20306		      test "x$?" != "x0" && pkg_failed=yes
20307else
20308  pkg_failed=yes
20309fi
20310 else
20311    pkg_failed=untried
20312fi
20313
20314
20315
20316if test $pkg_failed = yes; then
20317   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318printf "%s\n" "no" >&6; }
20319
20320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20321        _pkg_short_errors_supported=yes
20322else
20323        _pkg_short_errors_supported=no
20324fi
20325        if test $_pkg_short_errors_supported = yes; then
20326	        XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
20327        else
20328	        XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
20329        fi
20330	# Put the nasty error message in config.log where it belongs
20331	echo "$XDM_PKG_ERRORS" >&5
20332
20333	as_fn_error $? "Package requirements (xmu x11 xau xproto >= 7.0.17) were not met:
20334
20335$XDM_PKG_ERRORS
20336
20337Consider adjusting the PKG_CONFIG_PATH environment variable if you
20338installed software in a non-standard prefix.
20339
20340Alternatively, you may set the environment variables XDM_CFLAGS
20341and XDM_LIBS to avoid the need to call pkg-config.
20342See the pkg-config man page for more details." "$LINENO" 5
20343elif test $pkg_failed = untried; then
20344     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20345printf "%s\n" "no" >&6; }
20346	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20347printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20348as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20349is in your PATH or set the PKG_CONFIG environment variable to the full
20350path to pkg-config.
20351
20352Alternatively, you may set the environment variables XDM_CFLAGS
20353and XDM_LIBS to avoid the need to call pkg-config.
20354See the pkg-config man page for more details.
20355
20356To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20357See \`config.log' for more details" "$LINENO" 5; }
20358else
20359	XDM_CFLAGS=$pkg_cv_XDM_CFLAGS
20360	XDM_LIBS=$pkg_cv_XDM_LIBS
20361        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20362printf "%s\n" "yes" >&6; }
20363
20364fi
20365
20366pkg_failed=no
20367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
20368printf %s "checking for LIBBSD... " >&6; }
20369
20370if test -n "$LIBBSD_CFLAGS"; then
20371    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
20372 elif test -n "$PKG_CONFIG"; then
20373    if test -n "$PKG_CONFIG" && \
20374    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20375  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20376  ac_status=$?
20377  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20378  test $ac_status = 0; }; then
20379  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
20380		      test "x$?" != "x0" && pkg_failed=yes
20381else
20382  pkg_failed=yes
20383fi
20384 else
20385    pkg_failed=untried
20386fi
20387if test -n "$LIBBSD_LIBS"; then
20388    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
20389 elif test -n "$PKG_CONFIG"; then
20390    if test -n "$PKG_CONFIG" && \
20391    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20392  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20393  ac_status=$?
20394  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395  test $ac_status = 0; }; then
20396  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
20397		      test "x$?" != "x0" && pkg_failed=yes
20398else
20399  pkg_failed=yes
20400fi
20401 else
20402    pkg_failed=untried
20403fi
20404
20405
20406
20407if test $pkg_failed = yes; then
20408   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409printf "%s\n" "no" >&6; }
20410
20411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20412        _pkg_short_errors_supported=yes
20413else
20414        _pkg_short_errors_supported=no
20415fi
20416        if test $_pkg_short_errors_supported = yes; then
20417	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20418        else
20419	        LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20420        fi
20421	# Put the nasty error message in config.log where it belongs
20422	echo "$LIBBSD_PKG_ERRORS" >&5
20423
20424	:
20425elif test $pkg_failed = untried; then
20426     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20427printf "%s\n" "no" >&6; }
20428	:
20429else
20430	LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
20431	LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
20432        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20433printf "%s\n" "yes" >&6; }
20434	:
20435fi
20436
20437
20438
20439# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or
20440# the -lnsl name service library
20441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
20442printf %s "checking for library containing getifaddrs... " >&6; }
20443if test ${ac_cv_search_getifaddrs+y}
20444then :
20445  printf %s "(cached) " >&6
20446else $as_nop
20447  ac_func_search_save_LIBS=$LIBS
20448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20449/* end confdefs.h.  */
20450
20451/* Override any GCC internal prototype to avoid an error.
20452   Use char because int might match the return type of a GCC
20453   builtin and then its argument prototype would still apply.  */
20454char getifaddrs ();
20455int
20456main (void)
20457{
20458return getifaddrs ();
20459  ;
20460  return 0;
20461}
20462_ACEOF
20463for ac_lib in '' socket nsl
20464do
20465  if test -z "$ac_lib"; then
20466    ac_res="none required"
20467  else
20468    ac_res=-l$ac_lib
20469    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20470  fi
20471  if ac_fn_c_try_link "$LINENO"
20472then :
20473  ac_cv_search_getifaddrs=$ac_res
20474fi
20475rm -f core conftest.err conftest.$ac_objext conftest.beam \
20476    conftest$ac_exeext
20477  if test ${ac_cv_search_getifaddrs+y}
20478then :
20479  break
20480fi
20481done
20482if test ${ac_cv_search_getifaddrs+y}
20483then :
20484
20485else $as_nop
20486  ac_cv_search_getifaddrs=no
20487fi
20488rm conftest.$ac_ext
20489LIBS=$ac_func_search_save_LIBS
20490fi
20491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
20492printf "%s\n" "$ac_cv_search_getifaddrs" >&6; }
20493ac_res=$ac_cv_search_getifaddrs
20494if test "$ac_res" != no
20495then :
20496  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20497
20498fi
20499
20500
20501# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen
20502# or Old Linux versions -lshadow
20503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
20504printf %s "checking for library containing getspnam... " >&6; }
20505if test ${ac_cv_search_getspnam+y}
20506then :
20507  printf %s "(cached) " >&6
20508else $as_nop
20509  ac_func_search_save_LIBS=$LIBS
20510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511/* end confdefs.h.  */
20512
20513/* Override any GCC internal prototype to avoid an error.
20514   Use char because int might match the return type of a GCC
20515   builtin and then its argument prototype would still apply.  */
20516char getspnam ();
20517int
20518main (void)
20519{
20520return getspnam ();
20521  ;
20522  return 0;
20523}
20524_ACEOF
20525for ac_lib in '' sec gen shadow
20526do
20527  if test -z "$ac_lib"; then
20528    ac_res="none required"
20529  else
20530    ac_res=-l$ac_lib
20531    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20532  fi
20533  if ac_fn_c_try_link "$LINENO"
20534then :
20535  ac_cv_search_getspnam=$ac_res
20536fi
20537rm -f core conftest.err conftest.$ac_objext conftest.beam \
20538    conftest$ac_exeext
20539  if test ${ac_cv_search_getspnam+y}
20540then :
20541  break
20542fi
20543done
20544if test ${ac_cv_search_getspnam+y}
20545then :
20546
20547else $as_nop
20548  ac_cv_search_getspnam=no
20549fi
20550rm conftest.$ac_ext
20551LIBS=$ac_func_search_save_LIBS
20552fi
20553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
20554printf "%s\n" "$ac_cv_search_getspnam" >&6; }
20555ac_res=$ac_cv_search_getspnam
20556if test "$ac_res" != no
20557then :
20558  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20559
20560fi
20561
20562
20563# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris
20564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
20565printf %s "checking for library containing setproctitle... " >&6; }
20566if test ${ac_cv_search_setproctitle+y}
20567then :
20568  printf %s "(cached) " >&6
20569else $as_nop
20570  ac_func_search_save_LIBS=$LIBS
20571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572/* end confdefs.h.  */
20573
20574/* Override any GCC internal prototype to avoid an error.
20575   Use char because int might match the return type of a GCC
20576   builtin and then its argument prototype would still apply.  */
20577char setproctitle ();
20578int
20579main (void)
20580{
20581return setproctitle ();
20582  ;
20583  return 0;
20584}
20585_ACEOF
20586for ac_lib in '' util
20587do
20588  if test -z "$ac_lib"; then
20589    ac_res="none required"
20590  else
20591    ac_res=-l$ac_lib
20592    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20593  fi
20594  if ac_fn_c_try_link "$LINENO"
20595then :
20596  ac_cv_search_setproctitle=$ac_res
20597fi
20598rm -f core conftest.err conftest.$ac_objext conftest.beam \
20599    conftest$ac_exeext
20600  if test ${ac_cv_search_setproctitle+y}
20601then :
20602  break
20603fi
20604done
20605if test ${ac_cv_search_setproctitle+y}
20606then :
20607
20608else $as_nop
20609  ac_cv_search_setproctitle=no
20610fi
20611rm conftest.$ac_ext
20612LIBS=$ac_func_search_save_LIBS
20613fi
20614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
20615printf "%s\n" "$ac_cv_search_setproctitle" >&6; }
20616ac_res=$ac_cv_search_setproctitle
20617if test "$ac_res" != no
20618then :
20619  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20620
20621fi
20622
20623
20624if test "x$ac_cv_search_setproctitle" = "xno"; then
20625    if test "x$LIBBSD_LIBS" != "x"; then
20626        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproctitle in libbsd" >&5
20627printf %s "checking for setproctitle in libbsd... " >&6; }
20628        xdm_save_LIBS="$LIBS"
20629        LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS"
20630        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631/* end confdefs.h.  */
20632
20633/* Override any GCC internal prototype to avoid an error.
20634   Use char because int might match the return type of a GCC
20635   builtin and then its argument prototype would still apply.  */
20636char setproctitle ();
20637int
20638main (void)
20639{
20640return setproctitle ();
20641  ;
20642  return 0;
20643}
20644_ACEOF
20645if ac_fn_c_try_link "$LINENO"
20646then :
20647  xdm_res="yes"
20648else $as_nop
20649  xdm_res="no"
20650fi
20651rm -f core conftest.err conftest.$ac_objext conftest.beam \
20652    conftest$ac_exeext conftest.$ac_ext
20653        LIBS="$xdm_save_LIBS"
20654        if test "x$xdm_res" = "xyes"
20655then :
20656
20657            XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS"
20658            XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS"
20659
20660fi
20661        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5
20662printf "%s\n" "$xdm_res" >&6; }
20663    fi
20664fi
20665
20666# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
20667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20668printf %s "checking for library containing setusercontext... " >&6; }
20669if test ${ac_cv_search_setusercontext+y}
20670then :
20671  printf %s "(cached) " >&6
20672else $as_nop
20673  ac_func_search_save_LIBS=$LIBS
20674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675/* end confdefs.h.  */
20676
20677/* Override any GCC internal prototype to avoid an error.
20678   Use char because int might match the return type of a GCC
20679   builtin and then its argument prototype would still apply.  */
20680char setusercontext ();
20681int
20682main (void)
20683{
20684return setusercontext ();
20685  ;
20686  return 0;
20687}
20688_ACEOF
20689for ac_lib in '' util
20690do
20691  if test -z "$ac_lib"; then
20692    ac_res="none required"
20693  else
20694    ac_res=-l$ac_lib
20695    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20696  fi
20697  if ac_fn_c_try_link "$LINENO"
20698then :
20699  ac_cv_search_setusercontext=$ac_res
20700fi
20701rm -f core conftest.err conftest.$ac_objext conftest.beam \
20702    conftest$ac_exeext
20703  if test ${ac_cv_search_setusercontext+y}
20704then :
20705  break
20706fi
20707done
20708if test ${ac_cv_search_setusercontext+y}
20709then :
20710
20711else $as_nop
20712  ac_cv_search_setusercontext=no
20713fi
20714rm conftest.$ac_ext
20715LIBS=$ac_func_search_save_LIBS
20716fi
20717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20718printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
20719ac_res=$ac_cv_search_setusercontext
20720if test "$ac_res" != no
20721then :
20722  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20723
20724fi
20725
20726
20727# Function arc4random() is in BSD standard C, glibc 2.36+, or GNU systems -lbsd
20728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
20729printf %s "checking for library containing arc4random... " >&6; }
20730if test ${ac_cv_search_arc4random+y}
20731then :
20732  printf %s "(cached) " >&6
20733else $as_nop
20734  ac_func_search_save_LIBS=$LIBS
20735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736/* end confdefs.h.  */
20737
20738/* Override any GCC internal prototype to avoid an error.
20739   Use char because int might match the return type of a GCC
20740   builtin and then its argument prototype would still apply.  */
20741char arc4random ();
20742int
20743main (void)
20744{
20745return arc4random ();
20746  ;
20747  return 0;
20748}
20749_ACEOF
20750for ac_lib in ''
20751do
20752  if test -z "$ac_lib"; then
20753    ac_res="none required"
20754  else
20755    ac_res=-l$ac_lib
20756    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20757  fi
20758  if ac_fn_c_try_link "$LINENO"
20759then :
20760  ac_cv_search_arc4random=$ac_res
20761fi
20762rm -f core conftest.err conftest.$ac_objext conftest.beam \
20763    conftest$ac_exeext
20764  if test ${ac_cv_search_arc4random+y}
20765then :
20766  break
20767fi
20768done
20769if test ${ac_cv_search_arc4random+y}
20770then :
20771
20772else $as_nop
20773  ac_cv_search_arc4random=no
20774fi
20775rm conftest.$ac_ext
20776LIBS=$ac_func_search_save_LIBS
20777fi
20778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
20779printf "%s\n" "$ac_cv_search_arc4random" >&6; }
20780ac_res=$ac_cv_search_arc4random
20781if test "$ac_res" != no
20782then :
20783  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20784  HAVE_ARC4RANDOM="yes"
20785fi
20786
20787
20788if test "x$ac_cv_search_arc4random" = "xno"; then
20789    if test "x$LIBBSD_LIBS" != "x"; then
20790        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random in libbsd" >&5
20791printf %s "checking for arc4random in libbsd... " >&6; }
20792        xdm_save_LIBS="$LIBS"
20793        LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS"
20794        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795/* end confdefs.h.  */
20796
20797/* Override any GCC internal prototype to avoid an error.
20798   Use char because int might match the return type of a GCC
20799   builtin and then its argument prototype would still apply.  */
20800char arc4random ();
20801int
20802main (void)
20803{
20804return arc4random ();
20805  ;
20806  return 0;
20807}
20808_ACEOF
20809if ac_fn_c_try_link "$LINENO"
20810then :
20811  xdm_res="yes"
20812else $as_nop
20813  xdm_res="no"
20814fi
20815rm -f core conftest.err conftest.$ac_objext conftest.beam \
20816    conftest$ac_exeext conftest.$ac_ext
20817        LIBS="$xdm_save_LIBS"
20818        if test "x$xdm_res" = "xyes"
20819then :
20820
20821            XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS"
20822            XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS"
20823            HAVE_ARC4RANDOM="yes"
20824fi
20825        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5
20826printf "%s\n" "$xdm_res" >&6; }
20827    fi
20828fi
20829
20830 if test x$HAVE_ARC4RANDOM = xyes; then
20831  HAVE_ARC4RANDOM_TRUE=
20832  HAVE_ARC4RANDOM_FALSE='#'
20833else
20834  HAVE_ARC4RANDOM_TRUE='#'
20835  HAVE_ARC4RANDOM_FALSE=
20836fi
20837
20838
20839# Function crypt() comes from the C library or the -lcrypt data encryption library
20840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20841printf %s "checking for library containing crypt... " >&6; }
20842if test ${ac_cv_search_crypt+y}
20843then :
20844  printf %s "(cached) " >&6
20845else $as_nop
20846  ac_func_search_save_LIBS=$LIBS
20847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848/* end confdefs.h.  */
20849
20850/* Override any GCC internal prototype to avoid an error.
20851   Use char because int might match the return type of a GCC
20852   builtin and then its argument prototype would still apply.  */
20853char crypt ();
20854int
20855main (void)
20856{
20857return crypt ();
20858  ;
20859  return 0;
20860}
20861_ACEOF
20862for ac_lib in '' crypt
20863do
20864  if test -z "$ac_lib"; then
20865    ac_res="none required"
20866  else
20867    ac_res=-l$ac_lib
20868    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20869  fi
20870  if ac_fn_c_try_link "$LINENO"
20871then :
20872  ac_cv_search_crypt=$ac_res
20873fi
20874rm -f core conftest.err conftest.$ac_objext conftest.beam \
20875    conftest$ac_exeext
20876  if test ${ac_cv_search_crypt+y}
20877then :
20878  break
20879fi
20880done
20881if test ${ac_cv_search_crypt+y}
20882then :
20883
20884else $as_nop
20885  ac_cv_search_crypt=no
20886fi
20887rm conftest.$ac_ext
20888LIBS=$ac_func_search_save_LIBS
20889fi
20890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20891printf "%s\n" "$ac_cv_search_crypt" >&6; }
20892ac_res=$ac_cv_search_crypt
20893if test "$ac_res" != no
20894then :
20895  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20896
20897fi
20898
20899
20900# Function dl() comes from the C library or -ldl
20901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20902printf %s "checking for library containing dlopen... " >&6; }
20903if test ${ac_cv_search_dlopen+y}
20904then :
20905  printf %s "(cached) " >&6
20906else $as_nop
20907  ac_func_search_save_LIBS=$LIBS
20908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h.  */
20910
20911/* Override any GCC internal prototype to avoid an error.
20912   Use char because int might match the return type of a GCC
20913   builtin and then its argument prototype would still apply.  */
20914char dlopen ();
20915int
20916main (void)
20917{
20918return dlopen ();
20919  ;
20920  return 0;
20921}
20922_ACEOF
20923for ac_lib in '' dl
20924do
20925  if test -z "$ac_lib"; then
20926    ac_res="none required"
20927  else
20928    ac_res=-l$ac_lib
20929    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20930  fi
20931  if ac_fn_c_try_link "$LINENO"
20932then :
20933  ac_cv_search_dlopen=$ac_res
20934fi
20935rm -f core conftest.err conftest.$ac_objext conftest.beam \
20936    conftest$ac_exeext
20937  if test ${ac_cv_search_dlopen+y}
20938then :
20939  break
20940fi
20941done
20942if test ${ac_cv_search_dlopen+y}
20943then :
20944
20945else $as_nop
20946  ac_cv_search_dlopen=no
20947fi
20948rm conftest.$ac_ext
20949LIBS=$ac_func_search_save_LIBS
20950fi
20951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20952printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20953ac_res=$ac_cv_search_dlopen
20954if test "$ac_res" != no
20955then :
20956  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20957
20958fi
20959
20960#------------------------------------------------------------------------------
20961
20962# Checks for header files.
20963ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
20964if test "x$ac_cv_header_grp_h" = xyes
20965then :
20966  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
20967
20968fi
20969ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
20970if test "x$ac_cv_header_syslog_h" = xyes
20971then :
20972  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
20973
20974fi
20975ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
20976if test "x$ac_cv_header_sys_param_h" = xyes
20977then :
20978  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
20979
20980fi
20981
20982ac_fn_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" "
20983#include <rpc/rpc.h>
20984#include <rpc/key_prot.h>
20985
20986" "$ac_c_undeclared_builtin_options" "CFLAGS"
20987if test "x$ac_cv_have_decl_key_setnet" = xyes
20988then :
20989
20990printf "%s\n" "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h
20991
20992fi
20993
20994# Check for system library functions
20995# Required system libraries have been searched for and are listed in $LIBS
20996
20997  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
20998"
20999if test "x$ac_cv_type_pid_t" = xyes
21000then :
21001
21002else $as_nop
21003                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004/* end confdefs.h.  */
21005
21006          #if defined _WIN64 && !defined __CYGWIN__
21007          LLP64
21008          #endif
21009
21010int
21011main (void)
21012{
21013
21014  ;
21015  return 0;
21016}
21017
21018_ACEOF
21019if ac_fn_c_try_compile "$LINENO"
21020then :
21021  ac_pid_type='int'
21022else $as_nop
21023  ac_pid_type='__int64'
21024fi
21025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21026
21027printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
21028
21029
21030fi
21031
21032
21033
21034ac_func=
21035for ac_item in $ac_func_c_list
21036do
21037  if test $ac_func; then
21038    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
21039    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
21040      echo "#define $ac_item 1" >> confdefs.h
21041    fi
21042    ac_func=
21043  else
21044    ac_func=$ac_item
21045  fi
21046done
21047
21048
21049
21050if test "x$ac_cv_func_fork" = xyes; then
21051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21052printf %s "checking for working fork... " >&6; }
21053if test ${ac_cv_func_fork_works+y}
21054then :
21055  printf %s "(cached) " >&6
21056else $as_nop
21057  if test "$cross_compiling" = yes
21058then :
21059  ac_cv_func_fork_works=cross
21060else $as_nop
21061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062/* end confdefs.h.  */
21063$ac_includes_default
21064int
21065main (void)
21066{
21067
21068	  /* By Ruediger Kuhlmann. */
21069	  return fork () < 0;
21070
21071  ;
21072  return 0;
21073}
21074_ACEOF
21075if ac_fn_c_try_run "$LINENO"
21076then :
21077  ac_cv_func_fork_works=yes
21078else $as_nop
21079  ac_cv_func_fork_works=no
21080fi
21081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21082  conftest.$ac_objext conftest.beam conftest.$ac_ext
21083fi
21084
21085fi
21086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21087printf "%s\n" "$ac_cv_func_fork_works" >&6; }
21088
21089else
21090  ac_cv_func_fork_works=$ac_cv_func_fork
21091fi
21092if test "x$ac_cv_func_fork_works" = xcross; then
21093  case $host in
21094    *-*-amigaos* | *-*-msdosdjgpp*)
21095      # Override, as these systems have only a dummy fork() stub
21096      ac_cv_func_fork_works=no
21097      ;;
21098    *)
21099      ac_cv_func_fork_works=yes
21100      ;;
21101  esac
21102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21103printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21104fi
21105ac_cv_func_vfork_works=$ac_cv_func_vfork
21106if test "x$ac_cv_func_vfork" = xyes; then
21107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21108printf %s "checking for working vfork... " >&6; }
21109if test ${ac_cv_func_vfork_works+y}
21110then :
21111  printf %s "(cached) " >&6
21112else $as_nop
21113  if test "$cross_compiling" = yes
21114then :
21115  ac_cv_func_vfork_works=cross
21116else $as_nop
21117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118/* end confdefs.h.  */
21119/* Thanks to Paul Eggert for this test.  */
21120$ac_includes_default
21121#include <signal.h>
21122#include <sys/wait.h>
21123#ifdef HAVE_VFORK_H
21124# include <vfork.h>
21125#endif
21126
21127static void
21128do_nothing (int sig)
21129{
21130  (void) sig;
21131}
21132
21133/* On some sparc systems, changes by the child to local and incoming
21134   argument registers are propagated back to the parent.  The compiler
21135   is told about this with #include <vfork.h>, but some compilers
21136   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21137   static variable whose address is put into a register that is
21138   clobbered by the vfork.  */
21139static void
21140sparc_address_test (int arg)
21141{
21142  static pid_t child;
21143  if (!child) {
21144    child = vfork ();
21145    if (child < 0) {
21146      perror ("vfork");
21147      _exit(2);
21148    }
21149    if (!child) {
21150      arg = getpid();
21151      write(-1, "", 0);
21152      _exit (arg);
21153    }
21154  }
21155}
21156
21157int
21158main (void)
21159{
21160  pid_t parent = getpid ();
21161  pid_t child;
21162
21163  sparc_address_test (0);
21164
21165  /* On Solaris 2.4, changes by the child to the signal handler
21166     also munge signal handlers in the parent.  To detect this,
21167     start by putting the parent's handler in a known state.  */
21168  signal (SIGTERM, SIG_DFL);
21169
21170  child = vfork ();
21171
21172  if (child == 0) {
21173    /* Here is another test for sparc vfork register problems.  This
21174       test uses lots of local variables, at least as many local
21175       variables as main has allocated so far including compiler
21176       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21177       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21178       reuse the register of parent for one of the local variables,
21179       since it will think that parent can't possibly be used any more
21180       in this routine.  Assigning to the local variable will thus
21181       munge parent in the parent process.  */
21182    pid_t
21183      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21184      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21185    /* Convince the compiler that p..p7 are live; otherwise, it might
21186       use the same hardware register for all 8 local variables.  */
21187    if (p != p1 || p != p2 || p != p3 || p != p4
21188	|| p != p5 || p != p6 || p != p7)
21189      _exit(1);
21190
21191    /* Alter the child's signal handler.  */
21192    if (signal (SIGTERM, do_nothing) != SIG_DFL)
21193      _exit(1);
21194
21195    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21196       from child file descriptors.  If the child closes a descriptor
21197       before it execs or exits, this munges the parent's descriptor
21198       as well.  Test for this by closing stdout in the child.  */
21199    _exit(close(fileno(stdout)) != 0);
21200  } else {
21201    int status;
21202    struct stat st;
21203
21204    while (wait(&status) != child)
21205      ;
21206    return (
21207	 /* Was there some problem with vforking?  */
21208	 child < 0
21209
21210	 /* Did the child munge the parent's signal handler?  */
21211	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
21212
21213	 /* Did the child fail?  (This shouldn't happen.)  */
21214	 || status
21215
21216	 /* Did the vfork/compiler bug occur?  */
21217	 || parent != getpid()
21218
21219	 /* Did the file descriptor bug occur?  */
21220	 || fstat(fileno(stdout), &st) != 0
21221	 );
21222  }
21223}
21224_ACEOF
21225if ac_fn_c_try_run "$LINENO"
21226then :
21227  ac_cv_func_vfork_works=yes
21228else $as_nop
21229  ac_cv_func_vfork_works=no
21230fi
21231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21232  conftest.$ac_objext conftest.beam conftest.$ac_ext
21233fi
21234
21235fi
21236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21237printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
21238
21239fi;
21240if test "x$ac_cv_func_fork_works" = xcross; then
21241  ac_cv_func_vfork_works=$ac_cv_func_vfork
21242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21243printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21244fi
21245
21246if test "x$ac_cv_func_vfork_works" = xyes; then
21247
21248printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21249
21250else
21251
21252printf "%s\n" "#define vfork fork" >>confdefs.h
21253
21254fi
21255if test "x$ac_cv_func_fork_works" = xyes; then
21256
21257printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
21258
21259fi
21260
21261xdm_save_LIBS="$LIBS"
21262LIBS="$LIBS $XDM_LIBS"
21263ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
21264if test "x$ac_cv_func_daemon" = xyes
21265then :
21266  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
21267
21268fi
21269ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
21270if test "x$ac_cv_func_sigaction" = xyes
21271then :
21272  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
21273
21274fi
21275ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21276if test "x$ac_cv_func_openlog" = xyes
21277then :
21278  printf "%s\n" "#define HAVE_OPENLOG 1" >>confdefs.h
21279
21280fi
21281ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
21282if test "x$ac_cv_func_asprintf" = xyes
21283then :
21284  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
21285
21286fi
21287ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
21288if test "x$ac_cv_func_setproctitle" = xyes
21289then :
21290  printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
21291
21292fi
21293ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
21294if test "x$ac_cv_func_setusercontext" = xyes
21295then :
21296  printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h
21297
21298fi
21299ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
21300if test "x$ac_cv_func_mkstemp" = xyes
21301then :
21302  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
21303
21304fi
21305ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21306if test "x$ac_cv_func_getifaddrs" = xyes
21307then :
21308  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
21309
21310fi
21311ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
21312if test "x$ac_cv_func_getspnam" = xyes
21313then :
21314  printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
21315
21316fi
21317ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21318if test "x$ac_cv_func_arc4random" = xyes
21319then :
21320  printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21321
21322fi
21323
21324LIBS="$xdm_save_LIBS"
21325
21326# Find needed libraries for TCP sockets (pre-pended in $LIBS)
21327
21328
21329 case $host_os in
21330	mingw*)	unixdef="no"   ;;
21331	*)	unixdef="yes"  ;;
21332 esac
21333 # Check whether --enable-unix-transport was given.
21334if test ${enable_unix_transport+y}
21335then :
21336  enableval=$enable_unix_transport; UNIXCONN=$enableval
21337else $as_nop
21338  UNIXCONN=$unixdef
21339fi
21340
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21342printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21343 if test "$UNIXCONN" = "yes"; then
21344
21345printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21346
21347 fi
21348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21349printf "%s\n" "$UNIXCONN" >&6; }
21350 # Check whether --enable-tcp-transport was given.
21351if test ${enable_tcp_transport+y}
21352then :
21353  enableval=$enable_tcp_transport; TCPCONN=$enableval
21354else $as_nop
21355  TCPCONN=yes
21356fi
21357
21358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21359printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21361printf "%s\n" "$TCPCONN" >&6; }
21362 if test "$TCPCONN" = "yes"; then
21363
21364printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21365
21366
21367 # SVR4 hides these in libraries other than libc
21368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21369printf %s "checking for library containing socket... " >&6; }
21370if test ${ac_cv_search_socket+y}
21371then :
21372  printf %s "(cached) " >&6
21373else $as_nop
21374  ac_func_search_save_LIBS=$LIBS
21375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376/* end confdefs.h.  */
21377
21378/* Override any GCC internal prototype to avoid an error.
21379   Use char because int might match the return type of a GCC
21380   builtin and then its argument prototype would still apply.  */
21381char socket ();
21382int
21383main (void)
21384{
21385return socket ();
21386  ;
21387  return 0;
21388}
21389_ACEOF
21390for ac_lib in '' socket
21391do
21392  if test -z "$ac_lib"; then
21393    ac_res="none required"
21394  else
21395    ac_res=-l$ac_lib
21396    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21397  fi
21398  if ac_fn_c_try_link "$LINENO"
21399then :
21400  ac_cv_search_socket=$ac_res
21401fi
21402rm -f core conftest.err conftest.$ac_objext conftest.beam \
21403    conftest$ac_exeext
21404  if test ${ac_cv_search_socket+y}
21405then :
21406  break
21407fi
21408done
21409if test ${ac_cv_search_socket+y}
21410then :
21411
21412else $as_nop
21413  ac_cv_search_socket=no
21414fi
21415rm conftest.$ac_ext
21416LIBS=$ac_func_search_save_LIBS
21417fi
21418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21419printf "%s\n" "$ac_cv_search_socket" >&6; }
21420ac_res=$ac_cv_search_socket
21421if test "$ac_res" != no
21422then :
21423  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21424
21425fi
21426
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21428printf %s "checking for library containing gethostbyname... " >&6; }
21429if test ${ac_cv_search_gethostbyname+y}
21430then :
21431  printf %s "(cached) " >&6
21432else $as_nop
21433  ac_func_search_save_LIBS=$LIBS
21434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435/* end confdefs.h.  */
21436
21437/* Override any GCC internal prototype to avoid an error.
21438   Use char because int might match the return type of a GCC
21439   builtin and then its argument prototype would still apply.  */
21440char gethostbyname ();
21441int
21442main (void)
21443{
21444return gethostbyname ();
21445  ;
21446  return 0;
21447}
21448_ACEOF
21449for ac_lib in '' nsl
21450do
21451  if test -z "$ac_lib"; then
21452    ac_res="none required"
21453  else
21454    ac_res=-l$ac_lib
21455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21456  fi
21457  if ac_fn_c_try_link "$LINENO"
21458then :
21459  ac_cv_search_gethostbyname=$ac_res
21460fi
21461rm -f core conftest.err conftest.$ac_objext conftest.beam \
21462    conftest$ac_exeext
21463  if test ${ac_cv_search_gethostbyname+y}
21464then :
21465  break
21466fi
21467done
21468if test ${ac_cv_search_gethostbyname+y}
21469then :
21470
21471else $as_nop
21472  ac_cv_search_gethostbyname=no
21473fi
21474rm conftest.$ac_ext
21475LIBS=$ac_func_search_save_LIBS
21476fi
21477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21478printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21479ac_res=$ac_cv_search_gethostbyname
21480if test "$ac_res" != no
21481then :
21482  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21483
21484fi
21485
21486 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21488printf %s "checking for main in -lws2_32... " >&6; }
21489if test ${ac_cv_lib_ws2_32_main+y}
21490then :
21491  printf %s "(cached) " >&6
21492else $as_nop
21493  ac_check_lib_save_LIBS=$LIBS
21494LIBS="-lws2_32  $LIBS"
21495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496/* end confdefs.h.  */
21497
21498
21499int
21500main (void)
21501{
21502return main ();
21503  ;
21504  return 0;
21505}
21506_ACEOF
21507if ac_fn_c_try_link "$LINENO"
21508then :
21509  ac_cv_lib_ws2_32_main=yes
21510else $as_nop
21511  ac_cv_lib_ws2_32_main=no
21512fi
21513rm -f core conftest.err conftest.$ac_objext conftest.beam \
21514    conftest$ac_exeext conftest.$ac_ext
21515LIBS=$ac_check_lib_save_LIBS
21516fi
21517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21518printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21519if test "x$ac_cv_lib_ws2_32_main" = xyes
21520then :
21521  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21522
21523  LIBS="-lws2_32 $LIBS"
21524
21525fi
21526
21527 fi
21528
21529 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21530 # Check whether --enable-ipv6 was given.
21531if test ${enable_ipv6+y}
21532then :
21533  enableval=$enable_ipv6; IPV6CONN=$enableval
21534else $as_nop
21535  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21536if test "x$ac_cv_func_getaddrinfo" = xyes
21537then :
21538  IPV6CONN=yes
21539else $as_nop
21540  IPV6CONN=no
21541fi
21542
21543fi
21544
21545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21546printf %s "checking if IPv6 support should be built... " >&6; }
21547 if test "$IPV6CONN" = "yes"; then
21548
21549printf "%s\n" "#define IPv6 1" >>confdefs.h
21550
21551 fi
21552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21553printf "%s\n" "$IPV6CONN" >&6; }
21554
21555 # 4.3BSD-Reno added a new member to struct sockaddr_in
21556 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21557#include <sys/types.h>
21558#include <sys/socket.h>
21559#include <netinet/in.h>
21560
21561"
21562if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21563then :
21564
21565printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21566
21567fi
21568
21569
21570 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21571 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21572$ac_includes_default
21573#include <sys/socket.h>
21574"
21575if test "x$ac_cv_type_socklen_t" = xyes
21576then :
21577
21578printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21579
21580
21581fi
21582
21583
21584 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21585 # _XOPEN_SOURCE to get it (such as on Solaris)
21586 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21587$ac_includes_default
21588#include <sys/socket.h>
21589
21590"
21591if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21592then :
21593
21594fi
21595
21596 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21597 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21598     unset ac_cv_member_struct_msghdr_msg_control
21599     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21600printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21601     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21602#define _XOPEN_SOURCE 600
21603$ac_includes_default
21604#include <sys/socket.h>
21605
21606"
21607if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21608then :
21609
21610printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21611
21612
21613fi
21614
21615 fi
21616 # If that didn't work, fall back to XPG5/UNIX98 with C89
21617 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21618     unset ac_cv_member_struct_msghdr_msg_control
21619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21620printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21621     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21622#define _XOPEN_SOURCE 500
21623$ac_includes_default
21624#include <sys/socket.h>
21625
21626"
21627if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21628then :
21629
21630printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21631
21632
21633fi
21634
21635 fi
21636
21637
21638
21639 fi
21640 case $host_os in
21641	solaris*)		localdef="yes" ;;
21642	*)			localdef="no"  ;;
21643 esac
21644 # Check whether --enable-local-transport was given.
21645if test ${enable_local_transport+y}
21646then :
21647  enableval=$enable_local_transport; LOCALCONN=$enableval
21648else $as_nop
21649  LOCALCONN=$localdef
21650fi
21651
21652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21653printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21655printf "%s\n" "$LOCALCONN" >&6; }
21656 if test "$LOCALCONN" = "yes"; then
21657
21658printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21659
21660 fi
21661
21662 # Other functions Xtrans may need
21663 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21664if test "x$ac_cv_func_strcasecmp" = xyes
21665then :
21666  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21667
21668fi
21669ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21670if test "x$ac_cv_func_strlcpy" = xyes
21671then :
21672  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21673
21674fi
21675
21676
21677
21678
21679# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS
21680
21681 # Check whether --enable-secure-rpc was given.
21682if test ${enable_secure_rpc+y}
21683then :
21684  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
21685else $as_nop
21686  SECURE_RPC="try"
21687fi
21688
21689
21690 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
21691	FOUND_SECURE_RPC="no"
21692
21693  for ac_func in authdes_seccreate authdes_create
21694do :
21695  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
21696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21697if eval test \"x\$"$as_ac_var"\" = x"yes"
21698then :
21699  cat >>confdefs.h <<_ACEOF
21700#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
21701_ACEOF
21702 FOUND_SECURE_RPC="yes"
21703fi
21704
21705done
21706	if test "x$FOUND_SECURE_RPC" = "xno" ; then
21707		if test "x$SECURE_RPC" = "xyes" ; then
21708	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
21709		fi
21710		SECURE_RPC="no"
21711	else
21712				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
21713printf %s "checking for library containing getsecretkey... " >&6; }
21714if test ${ac_cv_search_getsecretkey+y}
21715then :
21716  printf %s "(cached) " >&6
21717else $as_nop
21718  ac_func_search_save_LIBS=$LIBS
21719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720/* end confdefs.h.  */
21721
21722/* Override any GCC internal prototype to avoid an error.
21723   Use char because int might match the return type of a GCC
21724   builtin and then its argument prototype would still apply.  */
21725char getsecretkey ();
21726int
21727main (void)
21728{
21729return getsecretkey ();
21730  ;
21731  return 0;
21732}
21733_ACEOF
21734for ac_lib in '' rpcsvc
21735do
21736  if test -z "$ac_lib"; then
21737    ac_res="none required"
21738  else
21739    ac_res=-l$ac_lib
21740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21741  fi
21742  if ac_fn_c_try_link "$LINENO"
21743then :
21744  ac_cv_search_getsecretkey=$ac_res
21745fi
21746rm -f core conftest.err conftest.$ac_objext conftest.beam \
21747    conftest$ac_exeext
21748  if test ${ac_cv_search_getsecretkey+y}
21749then :
21750  break
21751fi
21752done
21753if test ${ac_cv_search_getsecretkey+y}
21754then :
21755
21756else $as_nop
21757  ac_cv_search_getsecretkey=no
21758fi
21759rm conftest.$ac_ext
21760LIBS=$ac_func_search_save_LIBS
21761fi
21762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
21763printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
21764ac_res=$ac_cv_search_getsecretkey
21765if test "$ac_res" != no
21766then :
21767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21768
21769fi
21770
21771		SECURE_RPC="yes"
21772	fi
21773 fi
21774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
21775printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
21776 if test "x$SECURE_RPC" = "xyes" ; then
21777
21778printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
21779
21780 fi
21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
21782printf "%s\n" "$SECURE_RPC" >&6; }
21783
21784 if test x$SECURE_RPC = xyes; then
21785  HAS_SECURE_RPC_TRUE=
21786  HAS_SECURE_RPC_FALSE='#'
21787else
21788  HAS_SECURE_RPC_TRUE='#'
21789  HAS_SECURE_RPC_FALSE=
21790fi
21791
21792
21793# Check for pluggable authentication modules (PAM) support
21794
21795# Check whether --with-pam was given.
21796if test ${with_pam+y}
21797then :
21798  withval=$with_pam; USE_PAM=$withval
21799else $as_nop
21800  USE_PAM=auto
21801fi
21802
21803if test "x$USE_PAM" != "xno" ; then
21804           for ac_header in security/pam_appl.h pam/pam_appl.h
21805do :
21806  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21808if eval test \"x\$"$as_ac_Header"\" = x"yes"
21809then :
21810  cat >>confdefs.h <<_ACEOF
21811#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21812_ACEOF
21813 found=yes ; break ;
21814else $as_nop
21815  found=no
21816fi
21817
21818done
21819    if test "x$USE_PAM" = "xyes" -a  "x$found" = "xno"
21820then :
21821  as_fn_error $? "PAM support requested, but we could not find the pam headers." "$LINENO" 5
21822fi
21823    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5
21824printf %s "checking for library containing pam_open_session... " >&6; }
21825if test ${ac_cv_search_pam_open_session+y}
21826then :
21827  printf %s "(cached) " >&6
21828else $as_nop
21829  ac_func_search_save_LIBS=$LIBS
21830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831/* end confdefs.h.  */
21832
21833/* Override any GCC internal prototype to avoid an error.
21834   Use char because int might match the return type of a GCC
21835   builtin and then its argument prototype would still apply.  */
21836char pam_open_session ();
21837int
21838main (void)
21839{
21840return pam_open_session ();
21841  ;
21842  return 0;
21843}
21844_ACEOF
21845for ac_lib in '' pam
21846do
21847  if test -z "$ac_lib"; then
21848    ac_res="none required"
21849  else
21850    ac_res=-l$ac_lib
21851    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21852  fi
21853  if ac_fn_c_try_link "$LINENO"
21854then :
21855  ac_cv_search_pam_open_session=$ac_res
21856fi
21857rm -f core conftest.err conftest.$ac_objext conftest.beam \
21858    conftest$ac_exeext
21859  if test ${ac_cv_search_pam_open_session+y}
21860then :
21861  break
21862fi
21863done
21864if test ${ac_cv_search_pam_open_session+y}
21865then :
21866
21867else $as_nop
21868  ac_cv_search_pam_open_session=no
21869fi
21870rm conftest.$ac_ext
21871LIBS=$ac_func_search_save_LIBS
21872fi
21873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5
21874printf "%s\n" "$ac_cv_search_pam_open_session" >&6; }
21875ac_res=$ac_cv_search_pam_open_session
21876if test "$ac_res" != no
21877then :
21878  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21879  ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session"
21880if test "x$ac_cv_func_pam_open_session" = xyes
21881then :
21882
21883printf "%s\n" "#define USE_PAM 1" >>confdefs.h
21884
21885
21886fi
21887
21888else $as_nop
21889  if test "x$USE_PAM" = "xyes"
21890then :
21891  as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5
21892
21893fi
21894
21895fi
21896
21897fi
21898
21899# Check for Security-Enhanced Linux (SELinux) support
21900
21901# Check whether --with-selinux was given.
21902if test ${with_selinux+y}
21903then :
21904  withval=$with_selinux; USE_SELINUX=$withval
21905else $as_nop
21906  USE_SELINUX=no
21907fi
21908
21909if test "x$USE_SELINUX" != "xno" ; then
21910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5
21911printf %s "checking for library containing is_selinux_enabled... " >&6; }
21912if test ${ac_cv_search_is_selinux_enabled+y}
21913then :
21914  printf %s "(cached) " >&6
21915else $as_nop
21916  ac_func_search_save_LIBS=$LIBS
21917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918/* end confdefs.h.  */
21919
21920/* Override any GCC internal prototype to avoid an error.
21921   Use char because int might match the return type of a GCC
21922   builtin and then its argument prototype would still apply.  */
21923char is_selinux_enabled ();
21924int
21925main (void)
21926{
21927return is_selinux_enabled ();
21928  ;
21929  return 0;
21930}
21931_ACEOF
21932for ac_lib in '' selinux
21933do
21934  if test -z "$ac_lib"; then
21935    ac_res="none required"
21936  else
21937    ac_res=-l$ac_lib
21938    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21939  fi
21940  if ac_fn_c_try_link "$LINENO"
21941then :
21942  ac_cv_search_is_selinux_enabled=$ac_res
21943fi
21944rm -f core conftest.err conftest.$ac_objext conftest.beam \
21945    conftest$ac_exeext
21946  if test ${ac_cv_search_is_selinux_enabled+y}
21947then :
21948  break
21949fi
21950done
21951if test ${ac_cv_search_is_selinux_enabled+y}
21952then :
21953
21954else $as_nop
21955  ac_cv_search_is_selinux_enabled=no
21956fi
21957rm conftest.$ac_ext
21958LIBS=$ac_func_search_save_LIBS
21959fi
21960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5
21961printf "%s\n" "$ac_cv_search_is_selinux_enabled" >&6; }
21962ac_res=$ac_cv_search_is_selinux_enabled
21963if test "$ac_res" != no
21964then :
21965  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21966  ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled"
21967if test "x$ac_cv_func_is_selinux_enabled" = xyes
21968then :
21969
21970printf "%s\n" "#define USE_SELINUX 1" >>confdefs.h
21971
21972
21973fi
21974
21975else $as_nop
21976  if test "x$USE_SELINUX" = "xyes"
21977then :
21978  as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5
21979
21980fi
21981
21982fi
21983
21984fi
21985
21986# Check whether to install systemd unit files, as suggested in daemon(7).
21987# When a full path is specified, this does not require systemd installed.
21988
21989# Check whether --with-systemdsystemunitdir was given.
21990if test ${with_systemdsystemunitdir+y}
21991then :
21992  withval=$with_systemdsystemunitdir;
21993else $as_nop
21994  with_systemdsystemunitdir=auto
21995fi
21996
21997if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"
21998then :
21999
22000    def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
22001
22002    if test "x$def_systemdsystemunitdir" = "x"
22003then :
22004
22005	if test "x$with_systemdsystemunitdir" = "xyes"
22006then :
22007
22008	    as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
22009
22010fi
22011	with_systemdsystemunitdir=no
22012
22013else $as_nop
22014
22015	with_systemdsystemunitdir=$def_systemdsystemunitdir
22016
22017fi
22018
22019fi
22020if test "x$with_systemdsystemunitdir" != "xno"
22021then :
22022
22023	systemdsystemunitdir=$with_systemdsystemunitdir
22024
22025
22026fi
22027 if test "x$with_systemdsystemunitdir" != "xno"; then
22028  HAVE_SYSTEMD_TRUE=
22029  HAVE_SYSTEMD_FALSE='#'
22030else
22031  HAVE_SYSTEMD_TRUE='#'
22032  HAVE_SYSTEMD_FALSE=
22033fi
22034
22035
22036# Check whether to enable systemd startup notification.
22037# This requires libsystemd.
22038
22039# Check whether --with-systemd-daemon was given.
22040if test ${with_systemd_daemon+y}
22041then :
22042  withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval
22043else $as_nop
22044  USE_SYSTEMD_DAEMON=auto
22045fi
22046
22047if test "x$USE_SYSTEMD_DAEMON" != "xno"
22048then :
22049
22050
22051pkg_failed=no
22052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
22053printf %s "checking for SYSTEMD_DAEMON... " >&6; }
22054
22055if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
22056    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
22057 elif test -n "$PKG_CONFIG"; then
22058    if test -n "$PKG_CONFIG" && \
22059    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
22060  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
22061  ac_status=$?
22062  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22063  test $ac_status = 0; }; then
22064  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
22065		      test "x$?" != "x0" && pkg_failed=yes
22066else
22067  pkg_failed=yes
22068fi
22069 else
22070    pkg_failed=untried
22071fi
22072if test -n "$SYSTEMD_DAEMON_LIBS"; then
22073    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
22074 elif test -n "$PKG_CONFIG"; then
22075    if test -n "$PKG_CONFIG" && \
22076    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
22077  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
22078  ac_status=$?
22079  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080  test $ac_status = 0; }; then
22081  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
22082		      test "x$?" != "x0" && pkg_failed=yes
22083else
22084  pkg_failed=yes
22085fi
22086 else
22087    pkg_failed=untried
22088fi
22089
22090
22091
22092if test $pkg_failed = yes; then
22093   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22094printf "%s\n" "no" >&6; }
22095
22096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22097        _pkg_short_errors_supported=yes
22098else
22099        _pkg_short_errors_supported=no
22100fi
22101        if test $_pkg_short_errors_supported = yes; then
22102	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
22103        else
22104	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
22105        fi
22106	# Put the nasty error message in config.log where it belongs
22107	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
22108
22109	if test "x$USE_SYSTEMD_DAEMON" = "xyes"
22110then :
22111  as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5
22112
22113fi
22114
22115elif test $pkg_failed = untried; then
22116     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22117printf "%s\n" "no" >&6; }
22118	if test "x$USE_SYSTEMD_DAEMON" = "xyes"
22119then :
22120  as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5
22121
22122fi
22123
22124else
22125	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
22126	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
22127        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22128printf "%s\n" "yes" >&6; }
22129
22130printf "%s\n" "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
22131
22132fi
22133
22134fi
22135 if test "x$USE_SYSTEMD_DAEMON" != "xno"; then
22136  USE_SYSTEMD_DAEMON_TRUE=
22137  USE_SYSTEMD_DAEMON_FALSE='#'
22138else
22139  USE_SYSTEMD_DAEMON_TRUE='#'
22140  USE_SYSTEMD_DAEMON_FALSE=
22141fi
22142
22143
22144# FIXME: Find better test for which OS'es use su -m  - for now, just try to
22145# mirror the Imakefile setting of:
22146# if  defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
22147
22148
22149case $host_os in
22150    linux*|gnu*|*-gnu)
22151	SU="su"
22152        ;;
22153    darwin*)
22154	SU="su -m"
22155        ;;
22156    *bsd*|dragonfly*)
22157	SU="su -m"
22158        ;;
22159    solaris*|sysv4*)
22160	SU="su"
22161	;;
22162    *)
22163	SU="su"
22164        ;;
22165esac
22166
22167
22168# Define a configure option to locate a special file (/dev/random or /dev/urandom)
22169# that serves as a random or a pseudorandom number generator
22170
22171# Check whether --with-random-device was given.
22172if test ${with_random_device+y}
22173then :
22174  withval=$with_random_device; USE_DEVICE="$withval"
22175else $as_nop
22176  USE_DEVICE="auto"
22177fi
22178
22179if test x$USE_DEVICE != xno ; then
22180    if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then
22181	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
22182printf %s "checking for /dev/urandom... " >&6; }
22183if test ${ac_cv_file__dev_urandom+y}
22184then :
22185  printf %s "(cached) " >&6
22186else $as_nop
22187  test "$cross_compiling" = yes &&
22188  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22189if test -r "/dev/urandom"; then
22190  ac_cv_file__dev_urandom=yes
22191else
22192  ac_cv_file__dev_urandom=no
22193fi
22194fi
22195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
22196printf "%s\n" "$ac_cv_file__dev_urandom" >&6; }
22197if test "x$ac_cv_file__dev_urandom" = xyes
22198then :
22199  DEV_RANDOM=/dev/urandom
22200else $as_nop
22201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
22202printf %s "checking for /dev/random... " >&6; }
22203if test ${ac_cv_file__dev_random+y}
22204then :
22205  printf %s "(cached) " >&6
22206else $as_nop
22207  test "$cross_compiling" = yes &&
22208  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22209if test -r "/dev/random"; then
22210  ac_cv_file__dev_random=yes
22211else
22212  ac_cv_file__dev_random=no
22213fi
22214fi
22215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
22216printf "%s\n" "$ac_cv_file__dev_random" >&6; }
22217if test "x$ac_cv_file__dev_random" = xyes
22218then :
22219  DEV_RANDOM=/dev/random
22220else $as_nop
22221  if test "x$USE_DEVICE" = "xyes"
22222then :
22223  as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5
22224
22225fi
22226
22227fi
22228
22229
22230fi
22231
22232    else
22233	# assume the user input is a valid path to a random number generator
22234	DEV_RANDOM=$USE_DEVICE
22235    fi
22236    if test x$DEV_RANDOM != x ; then
22237
22238printf "%s\n" "#define DEV_RANDOM \"$DEV_RANDOM\"" >>confdefs.h
22239
22240    fi
22241fi
22242
22243
22244# FIXME: find out how to check for these things. Note that Kerberos was
22245# turned off everywhere but on OpenBSD.
22246 if false; then
22247  HAS_KERBEROS_FIVE_TRUE=
22248  HAS_KERBEROS_FIVE_FALSE='#'
22249else
22250  HAS_KERBEROS_FIVE_TRUE='#'
22251  HAS_KERBEROS_FIVE_FALSE=
22252fi
22253
22254
22255
22256# Figure out where everything goes in the filesystem
22257
22258
22259# Check whether --with-xdmlibdir was given.
22260if test ${with_xdmlibdir+y}
22261then :
22262  withval=$with_xdmlibdir; XDMLIBDIR="$withval"
22263else $as_nop
22264  XDMLIBDIR="${libdir}/X11/xdm"
22265fi
22266
22267
22268
22269
22270# Check whether --with-xdmconfigdir was given.
22271if test ${with_xdmconfigdir+y}
22272then :
22273  withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval"
22274else $as_nop
22275  XDMCONFIGDIR="${XDMLIBDIR}"
22276fi
22277
22278
22279
22280
22281# Check whether --with-xdmscriptdir was given.
22282if test ${with_xdmscriptdir+y}
22283then :
22284  withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval"
22285else $as_nop
22286  XDMSCRIPTDIR="${XDMLIBDIR}"
22287fi
22288
22289
22290
22291
22292# Check whether --with-logdir was given.
22293if test ${with_logdir+y}
22294then :
22295  withval=$with_logdir; XDMLOGDIR="$withval"
22296else $as_nop
22297  XDMLOGDIR="/var/log"
22298fi
22299
22300
22301
22302
22303# Check whether --with-piddir was given.
22304if test ${with_piddir+y}
22305then :
22306  withval=$with_piddir; XDMPIDDIR="$withval"
22307else $as_nop
22308  XDMPIDDIR="/var/run"
22309fi
22310
22311
22312
22313
22314# Check whether --with-default-vt was given.
22315if test ${with_default_vt+y}
22316then :
22317  withval=$with_default_vt; DEFAULTVT="$withval"
22318else $as_nop
22319  DEFAULTVT=""
22320fi
22321
22322
22323
22324
22325# Check whether --with-config-type was given.
22326if test ${with_config_type+y}
22327then :
22328  withval=$with_config_type; SERVERSTYPE="$withval"
22329else $as_nop
22330  SERVERSTYPE="ws"
22331fi
22332
22333
22334
22335
22336# Check whether --with-utmp_file was given.
22337if test ${with_utmp_file+y}
22338then :
22339  withval=$with_utmp_file; UTMP_FILE="$withval"
22340fi
22341
22342if test "x$UTMP_FILE" = "xyes" ; then
22343	UTMP_FILE=""
22344elif test "x$UTMP_FILE" = "xno" ; then
22345	UTMP_FILE="none"
22346fi
22347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5
22348printf %s "checking for path to file listing current logins for sessreg... " >&6; }
22349if test "x$UTMP_FILE" = "x" ; then
22350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
22351printf "%s\n" "use sessreg default" >&6; }
22352else
22353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5
22354printf "%s\n" "$UTMP_FILE" >&6; }
22355fi
22356 if test x$UTMP_FILE != x; then
22357  SET_UTMP_FILE_TRUE=
22358  SET_UTMP_FILE_FALSE='#'
22359else
22360  SET_UTMP_FILE_TRUE='#'
22361  SET_UTMP_FILE_FALSE=
22362fi
22363
22364
22365
22366
22367# Check whether --with-wtmp_file was given.
22368if test ${with_wtmp_file+y}
22369then :
22370  withval=$with_wtmp_file; WTMP_FILE="$withval"
22371fi
22372
22373if test "x$WTMP_FILE" = "xyes" ; then
22374	WTMP_FILE=""
22375elif test "x$WTMP_FILE" = "xno" ; then
22376	WTMP_FILE="none"
22377fi
22378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5
22379printf %s "checking for path to file listing login history for sessreg... " >&6; }
22380if test "x$WTMP_FILE" = "x" ; then
22381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
22382printf "%s\n" "use sessreg default" >&6; }
22383else
22384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5
22385printf "%s\n" "$WTMP_FILE" >&6; }
22386fi
22387 if test x$WTMP_FILE != x; then
22388  SET_WTMP_FILE_TRUE=
22389  SET_WTMP_FILE_FALSE='#'
22390else
22391  SET_WTMP_FILE_TRUE='#'
22392  SET_WTMP_FILE_FALSE=
22393fi
22394
22395
22396
22397case $host_os in
22398    *sco*|*solaris*)
22399		SHELL_CMD="/bin/ksh"	;;
22400    *)		SHELL_CMD="/bin/sh"	;;
22401esac
22402
22403
22404# Checks for pkg-config packages
22405
22406
22407# Check whether --with-xinerama was given.
22408if test ${with_xinerama+y}
22409then :
22410  withval=$with_xinerama; USE_XINERAMA="$withval"
22411else $as_nop
22412  if test -n "$PKG_CONFIG" && \
22413    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22414  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22415  ac_status=$?
22416  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22417  test $ac_status = 0; }; then
22418  USE_XINERAMA="yes"
22419else
22420  USE_XINERAMA="no"
22421fi
22422fi
22423
22424
22425if test "x$USE_XINERAMA" = "xyes" ; then
22426
22427printf "%s\n" "#define USE_XINERAMA 1" >>confdefs.h
22428
22429
22430pkg_failed=no
22431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
22432printf %s "checking for XINERAMA... " >&6; }
22433
22434if test -n "$XINERAMA_CFLAGS"; then
22435    pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
22436 elif test -n "$PKG_CONFIG"; then
22437    if test -n "$PKG_CONFIG" && \
22438    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22439  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22440  ac_status=$?
22441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442  test $ac_status = 0; }; then
22443  pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
22444		      test "x$?" != "x0" && pkg_failed=yes
22445else
22446  pkg_failed=yes
22447fi
22448 else
22449    pkg_failed=untried
22450fi
22451if test -n "$XINERAMA_LIBS"; then
22452    pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
22453 elif test -n "$PKG_CONFIG"; then
22454    if test -n "$PKG_CONFIG" && \
22455    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22456  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22457  ac_status=$?
22458  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22459  test $ac_status = 0; }; then
22460  pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
22461		      test "x$?" != "x0" && pkg_failed=yes
22462else
22463  pkg_failed=yes
22464fi
22465 else
22466    pkg_failed=untried
22467fi
22468
22469
22470
22471if test $pkg_failed = yes; then
22472   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22473printf "%s\n" "no" >&6; }
22474
22475if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22476        _pkg_short_errors_supported=yes
22477else
22478        _pkg_short_errors_supported=no
22479fi
22480        if test $_pkg_short_errors_supported = yes; then
22481	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
22482        else
22483	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
22484        fi
22485	# Put the nasty error message in config.log where it belongs
22486	echo "$XINERAMA_PKG_ERRORS" >&5
22487
22488	as_fn_error $? "Package requirements (xinerama) were not met:
22489
22490$XINERAMA_PKG_ERRORS
22491
22492Consider adjusting the PKG_CONFIG_PATH environment variable if you
22493installed software in a non-standard prefix.
22494
22495Alternatively, you may set the environment variables XINERAMA_CFLAGS
22496and XINERAMA_LIBS to avoid the need to call pkg-config.
22497See the pkg-config man page for more details." "$LINENO" 5
22498elif test $pkg_failed = untried; then
22499     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22500printf "%s\n" "no" >&6; }
22501	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22503as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22504is in your PATH or set the PKG_CONFIG environment variable to the full
22505path to pkg-config.
22506
22507Alternatively, you may set the environment variables XINERAMA_CFLAGS
22508and XINERAMA_LIBS to avoid the need to call pkg-config.
22509See the pkg-config man page for more details.
22510
22511To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22512See \`config.log' for more details" "$LINENO" 5; }
22513else
22514	XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
22515	XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
22516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22517printf "%s\n" "yes" >&6; }
22518
22519fi
22520	CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
22521	CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
22522	GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS"
22523	GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS"
22524fi
22525
22526# Xft text drawing for the greeter screen
22527
22528# Check whether --with-xft was given.
22529if test ${with_xft+y}
22530then :
22531  withval=$with_xft; USE_XFT="$withval"
22532else $as_nop
22533  if test -n "$PKG_CONFIG" && \
22534    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22535  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22536  ac_status=$?
22537  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22538  test $ac_status = 0; }; then
22539  USE_XFT="yes"
22540else
22541  USE_XFT="no"
22542fi
22543fi
22544
22545
22546if test "x$USE_XFT" = "xyes" ; then
22547
22548pkg_failed=no
22549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
22550printf %s "checking for XFT... " >&6; }
22551
22552if test -n "$XFT_CFLAGS"; then
22553    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
22554 elif test -n "$PKG_CONFIG"; then
22555    if test -n "$PKG_CONFIG" && \
22556    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22557  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22558  ac_status=$?
22559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22560  test $ac_status = 0; }; then
22561  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender" 2>/dev/null`
22562		      test "x$?" != "x0" && pkg_failed=yes
22563else
22564  pkg_failed=yes
22565fi
22566 else
22567    pkg_failed=untried
22568fi
22569if test -n "$XFT_LIBS"; then
22570    pkg_cv_XFT_LIBS="$XFT_LIBS"
22571 elif test -n "$PKG_CONFIG"; then
22572    if test -n "$PKG_CONFIG" && \
22573    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22574  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22575  ac_status=$?
22576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577  test $ac_status = 0; }; then
22578  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender" 2>/dev/null`
22579		      test "x$?" != "x0" && pkg_failed=yes
22580else
22581  pkg_failed=yes
22582fi
22583 else
22584    pkg_failed=untried
22585fi
22586
22587
22588
22589if test $pkg_failed = yes; then
22590   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591printf "%s\n" "no" >&6; }
22592
22593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22594        _pkg_short_errors_supported=yes
22595else
22596        _pkg_short_errors_supported=no
22597fi
22598        if test $_pkg_short_errors_supported = yes; then
22599	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender" 2>&1`
22600        else
22601	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender" 2>&1`
22602        fi
22603	# Put the nasty error message in config.log where it belongs
22604	echo "$XFT_PKG_ERRORS" >&5
22605
22606	as_fn_error $? "Package requirements (xft xrender) were not met:
22607
22608$XFT_PKG_ERRORS
22609
22610Consider adjusting the PKG_CONFIG_PATH environment variable if you
22611installed software in a non-standard prefix.
22612
22613Alternatively, you may set the environment variables XFT_CFLAGS
22614and XFT_LIBS to avoid the need to call pkg-config.
22615See the pkg-config man page for more details." "$LINENO" 5
22616elif test $pkg_failed = untried; then
22617     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22618printf "%s\n" "no" >&6; }
22619	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22620printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22621as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22622is in your PATH or set the PKG_CONFIG environment variable to the full
22623path to pkg-config.
22624
22625Alternatively, you may set the environment variables XFT_CFLAGS
22626and XFT_LIBS to avoid the need to call pkg-config.
22627See the pkg-config man page for more details.
22628
22629To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22630See \`config.log' for more details" "$LINENO" 5; }
22631else
22632	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
22633	XFT_LIBS=$pkg_cv_XFT_LIBS
22634        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22635printf "%s\n" "yes" >&6; }
22636
22637fi
22638	GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
22639	GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
22640
22641printf "%s\n" "#define USE_XFT 1" >>confdefs.h
22642
22643fi
22644
22645# XPM logos for the greeter screen
22646# Check whether --enable-xpm-logos was given.
22647if test ${enable_xpm_logos+y}
22648then :
22649  enableval=$enable_xpm_logos; USE_XPM="$enableval"
22650else $as_nop
22651  if test -n "$PKG_CONFIG" && \
22652    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22653  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22654  ac_status=$?
22655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656  test $ac_status = 0; }; then
22657  USE_XPM="yes"
22658else
22659  USE_XPM="no"
22660fi
22661fi
22662
22663if test "x$USE_XPM" = "xyes" ; then
22664
22665pkg_failed=no
22666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
22667printf %s "checking for XPM... " >&6; }
22668
22669if test -n "$XPM_CFLAGS"; then
22670    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
22671 elif test -n "$PKG_CONFIG"; then
22672    if test -n "$PKG_CONFIG" && \
22673    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22674  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22675  ac_status=$?
22676  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677  test $ac_status = 0; }; then
22678  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
22679		      test "x$?" != "x0" && pkg_failed=yes
22680else
22681  pkg_failed=yes
22682fi
22683 else
22684    pkg_failed=untried
22685fi
22686if test -n "$XPM_LIBS"; then
22687    pkg_cv_XPM_LIBS="$XPM_LIBS"
22688 elif test -n "$PKG_CONFIG"; then
22689    if test -n "$PKG_CONFIG" && \
22690    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22691  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22692  ac_status=$?
22693  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694  test $ac_status = 0; }; then
22695  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
22696		      test "x$?" != "x0" && pkg_failed=yes
22697else
22698  pkg_failed=yes
22699fi
22700 else
22701    pkg_failed=untried
22702fi
22703
22704
22705
22706if test $pkg_failed = yes; then
22707   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22708printf "%s\n" "no" >&6; }
22709
22710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22711        _pkg_short_errors_supported=yes
22712else
22713        _pkg_short_errors_supported=no
22714fi
22715        if test $_pkg_short_errors_supported = yes; then
22716	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
22717        else
22718	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
22719        fi
22720	# Put the nasty error message in config.log where it belongs
22721	echo "$XPM_PKG_ERRORS" >&5
22722
22723	as_fn_error $? "Package requirements (xpm) were not met:
22724
22725$XPM_PKG_ERRORS
22726
22727Consider adjusting the PKG_CONFIG_PATH environment variable if you
22728installed software in a non-standard prefix.
22729
22730Alternatively, you may set the environment variables XPM_CFLAGS
22731and XPM_LIBS to avoid the need to call pkg-config.
22732See the pkg-config man page for more details." "$LINENO" 5
22733elif test $pkg_failed = untried; then
22734     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22735printf "%s\n" "no" >&6; }
22736	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22737printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22738as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22739is in your PATH or set the PKG_CONFIG environment variable to the full
22740path to pkg-config.
22741
22742Alternatively, you may set the environment variables XPM_CFLAGS
22743and XPM_LIBS to avoid the need to call pkg-config.
22744See the pkg-config man page for more details.
22745
22746To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22747See \`config.log' for more details" "$LINENO" 5; }
22748else
22749	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
22750	XPM_LIBS=$pkg_cv_XPM_LIBS
22751        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22752printf "%s\n" "yes" >&6; }
22753
22754fi
22755	GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS"
22756	GREETER_LIBS="$GREETER_LIBS $XPM_LIBS"
22757
22758printf "%s\n" "#define XPM 1" >>confdefs.h
22759
22760fi
22761 if test "x$USE_XPM" = "xyes"; then
22762  USE_XPM_TRUE=
22763  USE_XPM_FALSE='#'
22764else
22765  USE_XPM_TRUE='#'
22766  USE_XPM_FALSE=
22767fi
22768
22769
22770
22771# Check whether --with-color-pixmap was given.
22772if test ${with_color_pixmap+y}
22773then :
22774  withval=$with_color_pixmap; XDM_PIXMAP="$withval"
22775else $as_nop
22776  XDM_PIXMAP="xorg.xpm"
22777fi
22778
22779
22780# Check whether --with-bw-pixmap was given.
22781if test ${with_bw_pixmap+y}
22782then :
22783  withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval"
22784else $as_nop
22785  XDM_BWPIXMAP="xorg-bw.xpm"
22786fi
22787
22788
22789# Check whether --with-pixmapdir was given.
22790if test ${with_pixmapdir+y}
22791then :
22792  withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval"
22793else $as_nop
22794  XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps'
22795fi
22796
22797
22798
22799
22800
22801
22802# Packages used by multiple programs
22803
22804
22805pkg_failed=no
22806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5
22807printf %s "checking for XDM_TOOLKIT... " >&6; }
22808
22809if test -n "$XDM_TOOLKIT_CFLAGS"; then
22810    pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS"
22811 elif test -n "$PKG_CONFIG"; then
22812    if test -n "$PKG_CONFIG" && \
22813    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
22814  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
22815  ac_status=$?
22816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817  test $ac_status = 0; }; then
22818  pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
22819		      test "x$?" != "x0" && pkg_failed=yes
22820else
22821  pkg_failed=yes
22822fi
22823 else
22824    pkg_failed=untried
22825fi
22826if test -n "$XDM_TOOLKIT_LIBS"; then
22827    pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS"
22828 elif test -n "$PKG_CONFIG"; then
22829    if test -n "$PKG_CONFIG" && \
22830    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
22831  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
22832  ac_status=$?
22833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834  test $ac_status = 0; }; then
22835  pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
22836		      test "x$?" != "x0" && pkg_failed=yes
22837else
22838  pkg_failed=yes
22839fi
22840 else
22841    pkg_failed=untried
22842fi
22843
22844
22845
22846if test $pkg_failed = yes; then
22847   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22848printf "%s\n" "no" >&6; }
22849
22850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22851        _pkg_short_errors_supported=yes
22852else
22853        _pkg_short_errors_supported=no
22854fi
22855        if test $_pkg_short_errors_supported = yes; then
22856	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
22857        else
22858	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
22859        fi
22860	# Put the nasty error message in config.log where it belongs
22861	echo "$XDM_TOOLKIT_PKG_ERRORS" >&5
22862
22863	as_fn_error $? "Package requirements (xaw7) were not met:
22864
22865$XDM_TOOLKIT_PKG_ERRORS
22866
22867Consider adjusting the PKG_CONFIG_PATH environment variable if you
22868installed software in a non-standard prefix.
22869
22870Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
22871and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
22872See the pkg-config man page for more details." "$LINENO" 5
22873elif test $pkg_failed = untried; then
22874     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875printf "%s\n" "no" >&6; }
22876	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22878as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22879is in your PATH or set the PKG_CONFIG environment variable to the full
22880path to pkg-config.
22881
22882Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
22883and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
22884See the pkg-config man page for more details.
22885
22886To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22887See \`config.log' for more details" "$LINENO" 5; }
22888else
22889	XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS
22890	XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS
22891        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22892printf "%s\n" "yes" >&6; }
22893
22894fi
22895
22896pkg_failed=no
22897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5
22898printf %s "checking for DMCP... " >&6; }
22899
22900if test -n "$DMCP_CFLAGS"; then
22901    pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
22902 elif test -n "$PKG_CONFIG"; then
22903    if test -n "$PKG_CONFIG" && \
22904    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
22905  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
22906  ac_status=$?
22907  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22908  test $ac_status = 0; }; then
22909  pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
22910		      test "x$?" != "x0" && pkg_failed=yes
22911else
22912  pkg_failed=yes
22913fi
22914 else
22915    pkg_failed=untried
22916fi
22917if test -n "$DMCP_LIBS"; then
22918    pkg_cv_DMCP_LIBS="$DMCP_LIBS"
22919 elif test -n "$PKG_CONFIG"; then
22920    if test -n "$PKG_CONFIG" && \
22921    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
22922  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
22923  ac_status=$?
22924  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22925  test $ac_status = 0; }; then
22926  pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
22927		      test "x$?" != "x0" && pkg_failed=yes
22928else
22929  pkg_failed=yes
22930fi
22931 else
22932    pkg_failed=untried
22933fi
22934
22935
22936
22937if test $pkg_failed = yes; then
22938   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22939printf "%s\n" "no" >&6; }
22940
22941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22942        _pkg_short_errors_supported=yes
22943else
22944        _pkg_short_errors_supported=no
22945fi
22946        if test $_pkg_short_errors_supported = yes; then
22947	        DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
22948        else
22949	        DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
22950        fi
22951	# Put the nasty error message in config.log where it belongs
22952	echo "$DMCP_PKG_ERRORS" >&5
22953
22954	as_fn_error $? "Package requirements (xdmcp) were not met:
22955
22956$DMCP_PKG_ERRORS
22957
22958Consider adjusting the PKG_CONFIG_PATH environment variable if you
22959installed software in a non-standard prefix.
22960
22961Alternatively, you may set the environment variables DMCP_CFLAGS
22962and DMCP_LIBS to avoid the need to call pkg-config.
22963See the pkg-config man page for more details." "$LINENO" 5
22964elif test $pkg_failed = untried; then
22965     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966printf "%s\n" "no" >&6; }
22967	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22968printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22969as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22970is in your PATH or set the PKG_CONFIG environment variable to the full
22971path to pkg-config.
22972
22973Alternatively, you may set the environment variables DMCP_CFLAGS
22974and DMCP_LIBS to avoid the need to call pkg-config.
22975See the pkg-config man page for more details.
22976
22977To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22978See \`config.log' for more details" "$LINENO" 5; }
22979else
22980	DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS
22981	DMCP_LIBS=$pkg_cv_DMCP_LIBS
22982        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22983printf "%s\n" "yes" >&6; }
22984
22985fi
22986
22987pkg_failed=no
22988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
22989printf %s "checking for XLIB... " >&6; }
22990
22991if test -n "$XLIB_CFLAGS"; then
22992    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
22993 elif test -n "$PKG_CONFIG"; then
22994    if test -n "$PKG_CONFIG" && \
22995    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
22996  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
22997  ac_status=$?
22998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999  test $ac_status = 0; }; then
23000  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
23001		      test "x$?" != "x0" && pkg_failed=yes
23002else
23003  pkg_failed=yes
23004fi
23005 else
23006    pkg_failed=untried
23007fi
23008if test -n "$XLIB_LIBS"; then
23009    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
23010 elif test -n "$PKG_CONFIG"; then
23011    if test -n "$PKG_CONFIG" && \
23012    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
23013  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
23014  ac_status=$?
23015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23016  test $ac_status = 0; }; then
23017  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
23018		      test "x$?" != "x0" && pkg_failed=yes
23019else
23020  pkg_failed=yes
23021fi
23022 else
23023    pkg_failed=untried
23024fi
23025
23026
23027
23028if test $pkg_failed = yes; then
23029   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030printf "%s\n" "no" >&6; }
23031
23032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23033        _pkg_short_errors_supported=yes
23034else
23035        _pkg_short_errors_supported=no
23036fi
23037        if test $_pkg_short_errors_supported = yes; then
23038	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
23039        else
23040	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
23041        fi
23042	# Put the nasty error message in config.log where it belongs
23043	echo "$XLIB_PKG_ERRORS" >&5
23044
23045	as_fn_error $? "Package requirements (x11) were not met:
23046
23047$XLIB_PKG_ERRORS
23048
23049Consider adjusting the PKG_CONFIG_PATH environment variable if you
23050installed software in a non-standard prefix.
23051
23052Alternatively, you may set the environment variables XLIB_CFLAGS
23053and XLIB_LIBS to avoid the need to call pkg-config.
23054See the pkg-config man page for more details." "$LINENO" 5
23055elif test $pkg_failed = untried; then
23056     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23057printf "%s\n" "no" >&6; }
23058	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23059printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23060as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23061is in your PATH or set the PKG_CONFIG environment variable to the full
23062path to pkg-config.
23063
23064Alternatively, you may set the environment variables XLIB_CFLAGS
23065and XLIB_LIBS to avoid the need to call pkg-config.
23066See the pkg-config man page for more details.
23067
23068To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23069See \`config.log' for more details" "$LINENO" 5; }
23070else
23071	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
23072	XLIB_LIBS=$pkg_cv_XLIB_LIBS
23073        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23074printf "%s\n" "yes" >&6; }
23075
23076fi
23077
23078pkg_failed=no
23079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5
23080printf %s "checking for AUTH... " >&6; }
23081
23082if test -n "$AUTH_CFLAGS"; then
23083    pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
23084 elif test -n "$PKG_CONFIG"; then
23085    if test -n "$PKG_CONFIG" && \
23086    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
23087  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
23088  ac_status=$?
23089  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090  test $ac_status = 0; }; then
23091  pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
23092		      test "x$?" != "x0" && pkg_failed=yes
23093else
23094  pkg_failed=yes
23095fi
23096 else
23097    pkg_failed=untried
23098fi
23099if test -n "$AUTH_LIBS"; then
23100    pkg_cv_AUTH_LIBS="$AUTH_LIBS"
23101 elif test -n "$PKG_CONFIG"; then
23102    if test -n "$PKG_CONFIG" && \
23103    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
23104  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
23105  ac_status=$?
23106  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23107  test $ac_status = 0; }; then
23108  pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
23109		      test "x$?" != "x0" && pkg_failed=yes
23110else
23111  pkg_failed=yes
23112fi
23113 else
23114    pkg_failed=untried
23115fi
23116
23117
23118
23119if test $pkg_failed = yes; then
23120   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23121printf "%s\n" "no" >&6; }
23122
23123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23124        _pkg_short_errors_supported=yes
23125else
23126        _pkg_short_errors_supported=no
23127fi
23128        if test $_pkg_short_errors_supported = yes; then
23129	        AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
23130        else
23131	        AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
23132        fi
23133	# Put the nasty error message in config.log where it belongs
23134	echo "$AUTH_PKG_ERRORS" >&5
23135
23136	as_fn_error $? "Package requirements (xau) were not met:
23137
23138$AUTH_PKG_ERRORS
23139
23140Consider adjusting the PKG_CONFIG_PATH environment variable if you
23141installed software in a non-standard prefix.
23142
23143Alternatively, you may set the environment variables AUTH_CFLAGS
23144and AUTH_LIBS to avoid the need to call pkg-config.
23145See the pkg-config man page for more details." "$LINENO" 5
23146elif test $pkg_failed = untried; then
23147     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23148printf "%s\n" "no" >&6; }
23149	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23150printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23151as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23152is in your PATH or set the PKG_CONFIG environment variable to the full
23153path to pkg-config.
23154
23155Alternatively, you may set the environment variables AUTH_CFLAGS
23156and AUTH_LIBS to avoid the need to call pkg-config.
23157See the pkg-config man page for more details.
23158
23159To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23160See \`config.log' for more details" "$LINENO" 5; }
23161else
23162	AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS
23163	AUTH_LIBS=$pkg_cv_AUTH_LIBS
23164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23165printf "%s\n" "yes" >&6; }
23166
23167fi
23168
23169#
23170# Greeter
23171#
23172
23173
23174pkg_failed=no
23175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5
23176printf %s "checking for XDMGREET... " >&6; }
23177
23178if test -n "$XDMGREET_CFLAGS"; then
23179    pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
23180 elif test -n "$PKG_CONFIG"; then
23181    if test -n "$PKG_CONFIG" && \
23182    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
23183  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
23184  ac_status=$?
23185  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186  test $ac_status = 0; }; then
23187  pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.0 x11 xext" 2>/dev/null`
23188		      test "x$?" != "x0" && pkg_failed=yes
23189else
23190  pkg_failed=yes
23191fi
23192 else
23193    pkg_failed=untried
23194fi
23195if test -n "$XDMGREET_LIBS"; then
23196    pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
23197 elif test -n "$PKG_CONFIG"; then
23198    if test -n "$PKG_CONFIG" && \
23199    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
23200  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
23201  ac_status=$?
23202  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23203  test $ac_status = 0; }; then
23204  pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt >= 1.0 x11 xext" 2>/dev/null`
23205		      test "x$?" != "x0" && pkg_failed=yes
23206else
23207  pkg_failed=yes
23208fi
23209 else
23210    pkg_failed=untried
23211fi
23212
23213
23214
23215if test $pkg_failed = yes; then
23216   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23217printf "%s\n" "no" >&6; }
23218
23219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23220        _pkg_short_errors_supported=yes
23221else
23222        _pkg_short_errors_supported=no
23223fi
23224        if test $_pkg_short_errors_supported = yes; then
23225	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
23226        else
23227	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
23228        fi
23229	# Put the nasty error message in config.log where it belongs
23230	echo "$XDMGREET_PKG_ERRORS" >&5
23231
23232	as_fn_error $? "Package requirements (xt >= 1.0 x11 xext) were not met:
23233
23234$XDMGREET_PKG_ERRORS
23235
23236Consider adjusting the PKG_CONFIG_PATH environment variable if you
23237installed software in a non-standard prefix.
23238
23239Alternatively, you may set the environment variables XDMGREET_CFLAGS
23240and XDMGREET_LIBS to avoid the need to call pkg-config.
23241See the pkg-config man page for more details." "$LINENO" 5
23242elif test $pkg_failed = untried; then
23243     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23244printf "%s\n" "no" >&6; }
23245	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23247as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23248is in your PATH or set the PKG_CONFIG environment variable to the full
23249path to pkg-config.
23250
23251Alternatively, you may set the environment variables XDMGREET_CFLAGS
23252and XDMGREET_LIBS to avoid the need to call pkg-config.
23253See the pkg-config man page for more details.
23254
23255To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23256See \`config.log' for more details" "$LINENO" 5; }
23257else
23258	XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS
23259	XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS
23260        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23261printf "%s\n" "yes" >&6; }
23262
23263fi
23264
23265GREETERLIB="${XDMLIBDIR}/libXdmGreet.so"
23266
23267  prefix_NONE=
23268  exec_prefix_NONE=
23269  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23270  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23271  eval ax_define_dir="\"$GREETERLIB\""
23272  eval ax_define_dir="\"$ax_define_dir\""
23273  DEF_GREETER_LIB="$ax_define_dir"
23274
23275
23276printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h
23277
23278  test "$prefix_NONE" && prefix=NONE
23279  test "$exec_prefix_NONE" && exec_prefix=NONE
23280
23281
23282XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS"
23283XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS"
23284
23285#
23286#  XDM
23287#
23288
23289XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS"
23290XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
23291
23292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
23293printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; }
23294if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y}
23295then :
23296  printf %s "(cached) " >&6
23297else $as_nop
23298  ac_check_lib_save_LIBS=$LIBS
23299LIBS="-lXdmcp $DMCP_LIBS $LIBS"
23300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301/* end confdefs.h.  */
23302
23303/* Override any GCC internal prototype to avoid an error.
23304   Use char because int might match the return type of a GCC
23305   builtin and then its argument prototype would still apply.  */
23306char XdmcpWrap ();
23307int
23308main (void)
23309{
23310return XdmcpWrap ();
23311  ;
23312  return 0;
23313}
23314_ACEOF
23315if ac_fn_c_try_link "$LINENO"
23316then :
23317  ac_cv_lib_Xdmcp_XdmcpWrap=yes
23318else $as_nop
23319  ac_cv_lib_Xdmcp_XdmcpWrap=no
23320fi
23321rm -f core conftest.err conftest.$ac_objext conftest.beam \
23322    conftest$ac_exeext conftest.$ac_ext
23323LIBS=$ac_check_lib_save_LIBS
23324fi
23325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
23326printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
23327if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes
23328then :
23329  xdmauth="yes"
23330else $as_nop
23331  xdmauth="no"
23332fi
23333
23334
23335# Check whether --enable-xdm-auth was given.
23336if test ${enable_xdm_auth+y}
23337then :
23338  enableval=$enable_xdm_auth; xdmauth_enable="$enableval"
23339else $as_nop
23340  xdmauth_enable="auto"
23341fi
23342
23343if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then
23344	as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5
23345fi
23346
23347 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then
23348  HAS_XDM_AUTH_TRUE=
23349  HAS_XDM_AUTH_FALSE='#'
23350else
23351  HAS_XDM_AUTH_TRUE='#'
23352  HAS_XDM_AUTH_FALSE=
23353fi
23354
23355
23356
23357
23358
23359#
23360# xdmshell
23361#
23362
23363# Check whether --enable-xdmshell was given.
23364if test ${enable_xdmshell+y}
23365then :
23366  enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval"
23367else $as_nop
23368  INSTALL_XDMSHELL="no"
23369fi
23370
23371 if test x$INSTALL_XDMSHELL = xyes; then
23372  INSTALL_XDMSHELL_TRUE=
23373  INSTALL_XDMSHELL_FALSE='#'
23374else
23375  INSTALL_XDMSHELL_TRUE='#'
23376  INSTALL_XDMSHELL_FALSE=
23377fi
23378
23379
23380
23381pkg_failed=no
23382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
23383printf %s "checking for XT... " >&6; }
23384
23385if test -n "$XT_CFLAGS"; then
23386    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
23387 elif test -n "$PKG_CONFIG"; then
23388    if test -n "$PKG_CONFIG" && \
23389    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23390  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23391  ac_status=$?
23392  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23393  test $ac_status = 0; }; then
23394  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
23395		      test "x$?" != "x0" && pkg_failed=yes
23396else
23397  pkg_failed=yes
23398fi
23399 else
23400    pkg_failed=untried
23401fi
23402if test -n "$XT_LIBS"; then
23403    pkg_cv_XT_LIBS="$XT_LIBS"
23404 elif test -n "$PKG_CONFIG"; then
23405    if test -n "$PKG_CONFIG" && \
23406    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23407  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23408  ac_status=$?
23409  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23410  test $ac_status = 0; }; then
23411  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
23412		      test "x$?" != "x0" && pkg_failed=yes
23413else
23414  pkg_failed=yes
23415fi
23416 else
23417    pkg_failed=untried
23418fi
23419
23420
23421
23422if test $pkg_failed = yes; then
23423   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23424printf "%s\n" "no" >&6; }
23425
23426if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23427        _pkg_short_errors_supported=yes
23428else
23429        _pkg_short_errors_supported=no
23430fi
23431        if test $_pkg_short_errors_supported = yes; then
23432	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
23433        else
23434	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
23435        fi
23436	# Put the nasty error message in config.log where it belongs
23437	echo "$XT_PKG_ERRORS" >&5
23438
23439	as_fn_error $? "Package requirements (xt) were not met:
23440
23441$XT_PKG_ERRORS
23442
23443Consider adjusting the PKG_CONFIG_PATH environment variable if you
23444installed software in a non-standard prefix.
23445
23446Alternatively, you may set the environment variables XT_CFLAGS
23447and XT_LIBS to avoid the need to call pkg-config.
23448See the pkg-config man page for more details." "$LINENO" 5
23449elif test $pkg_failed = untried; then
23450     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23451printf "%s\n" "no" >&6; }
23452	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23453printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23454as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23455is in your PATH or set the PKG_CONFIG environment variable to the full
23456path to pkg-config.
23457
23458Alternatively, you may set the environment variables XT_CFLAGS
23459and XT_LIBS to avoid the need to call pkg-config.
23460See the pkg-config man page for more details.
23461
23462To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23463See \`config.log' for more details" "$LINENO" 5; }
23464else
23465	XT_CFLAGS=$pkg_cv_XT_CFLAGS
23466	XT_LIBS=$pkg_cv_XT_LIBS
23467        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23468printf "%s\n" "yes" >&6; }
23469
23470fi
23471XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS"
23472XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
23473
23474
23475
23476
23477#
23478# Chooser
23479#
23480
23481CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS"
23482CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
23483
23484
23485
23486
23487# Defaults for X session - should probably be configure --with-* flags
23488# Currently just trying to mirror what defaults were set in Imake
23489
23490# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"
23491if test -z "$DEF_SERVER" ; then
23492	DEF_SERVER="${bindir}/X"
23493fi
23494if test -z "$DEF_SERVER_LINE" ; then
23495	DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0"
23496fi
23497
23498  prefix_NONE=
23499  exec_prefix_NONE=
23500  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23501  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23502  eval ax_define_dir="\"$DEF_SERVER_LINE\""
23503  eval ax_define_dir="\"$ax_define_dir\""
23504  DEF_SERVER_LINE="$ax_define_dir"
23505
23506
23507printf "%s\n" "#define DEF_SERVER_LINE \"$ax_define_dir\"" >>confdefs.h
23508
23509  test "$prefix_NONE" && prefix=NONE
23510  test "$exec_prefix_NONE" && exec_prefix=NONE
23511
23512
23513# -DXRDB_PROGRAM="$(BINDIR)/xrdb"
23514
23515# Check whether --with-xrdb was given.
23516if test ${with_xrdb+y}
23517then :
23518  withval=$with_xrdb; XRDB=$withval
23519else $as_nop
23520  XRDB=${bindir}/xrdb
23521fi
23522
23523
23524  prefix_NONE=
23525  exec_prefix_NONE=
23526  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23527  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23528  eval ax_define_dir="\"$XRDB\""
23529  eval ax_define_dir="\"$ax_define_dir\""
23530  XRDB_PROGRAM="$ax_define_dir"
23531
23532
23533printf "%s\n" "#define XRDB_PROGRAM \"$ax_define_dir\"" >>confdefs.h
23534
23535  test "$prefix_NONE" && prefix=NONE
23536  test "$exec_prefix_NONE" && exec_prefix=NONE
23537
23538
23539# -DDEF_SESSION="$(BINDIR)/xterm -ls"
23540
23541# Check whether --with-default-session was given.
23542if test ${with_default_session+y}
23543then :
23544  withval=$with_default_session; DEF_SESSION=$withval
23545else $as_nop
23546  DEF_SESSION="${bindir}/xterm -ls"
23547fi
23548
23549
23550  prefix_NONE=
23551  exec_prefix_NONE=
23552  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23553  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23554  eval ax_define_dir="\"$DEF_SESSION\""
23555  eval ax_define_dir="\"$ax_define_dir\""
23556  DEF_SESSION="$ax_define_dir"
23557
23558
23559printf "%s\n" "#define DEF_SESSION \"$ax_define_dir\"" >>confdefs.h
23560
23561  test "$prefix_NONE" && prefix=NONE
23562  test "$exec_prefix_NONE" && exec_prefix=NONE
23563
23564
23565# -DDEF_USER_PATH="$(DEF_USER_PATH)"
23566# Default values taken from DefaultUserPath setting in the
23567# old Imake *.cf files for each platform
23568if test -z "$DEF_USER_PATH" ; then
23569	case $host_os in
23570	    dragonfly*)
23571		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin"
23572		;;
23573	    freebsd*)
23574		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin"
23575		;;
23576	    netbsd*)
23577		DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
23578		;;
23579	    openbsd*|bsdi*)
23580		DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
23581		;;
23582	    solaris*)
23583		DEF_USER_PATH="/usr/bin:${bindir}"
23584		;;
23585	    *)
23586		DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
23587		;;
23588	esac
23589fi
23590
23591  prefix_NONE=
23592  exec_prefix_NONE=
23593  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23594  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23595  eval ax_define_dir="\"$DEF_USER_PATH\""
23596  eval ax_define_dir="\"$ax_define_dir\""
23597  DEF_USER_PATH="$ax_define_dir"
23598
23599
23600printf "%s\n" "#define DEF_USER_PATH \"$ax_define_dir\"" >>confdefs.h
23601
23602  test "$prefix_NONE" && prefix=NONE
23603  test "$exec_prefix_NONE" && exec_prefix=NONE
23604
23605
23606# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"
23607# Default values taken from DefaultSystemPath setting in the
23608# old Imake *.cf files for each platform
23609if test -z "$DEF_SYSTEM_PATH" ; then
23610	case $host_os in
23611	    freebsd*|dragonfly*)
23612		DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}"
23613		;;
23614	    netbsd*|openbsd*|bsdi*)
23615		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}"
23616		;;
23617	    solaris*)
23618		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}"
23619		;;
23620	    *)
23621		DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb"
23622		;;
23623	esac
23624fi
23625
23626  prefix_NONE=
23627  exec_prefix_NONE=
23628  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23629  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23630  eval ax_define_dir="\"$DEF_SYSTEM_PATH\""
23631  eval ax_define_dir="\"$ax_define_dir\""
23632  DEF_SYSTEM_PATH="$ax_define_dir"
23633
23634
23635printf "%s\n" "#define DEF_SYSTEM_PATH \"$ax_define_dir\"" >>confdefs.h
23636
23637  test "$prefix_NONE" && prefix=NONE
23638  test "$exec_prefix_NONE" && exec_prefix=NONE
23639
23640
23641# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"
23642if test -z "$BOURNE_SHELL" ; then
23643	BOURNE_SHELL=/bin/sh
23644fi
23645
23646  prefix_NONE=
23647  exec_prefix_NONE=
23648  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23649  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23650  eval ax_define_dir="\"$BOURNE_SHELL\""
23651  eval ax_define_dir="\"$ax_define_dir\""
23652  DEF_SYSTEM_SHELL="$ax_define_dir"
23653
23654
23655printf "%s\n" "#define DEF_SYSTEM_SHELL \"$ax_define_dir\"" >>confdefs.h
23656
23657  test "$prefix_NONE" && prefix=NONE
23658  test "$exec_prefix_NONE" && exec_prefix=NONE
23659
23660
23661# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"
23662
23663
23664  prefix_NONE=
23665  exec_prefix_NONE=
23666  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23667  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23668  eval ax_define_dir="\"$bindir/xterm\""
23669  eval ax_define_dir="\"$ax_define_dir\""
23670  DEF_FAILSAFE_CLIENT="$ax_define_dir"
23671
23672
23673printf "%s\n" "#define DEF_FAILSAFE_CLIENT \"$ax_define_dir\"" >>confdefs.h
23674
23675  test "$prefix_NONE" && prefix=NONE
23676  test "$exec_prefix_NONE" && exec_prefix=NONE
23677
23678
23679# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"
23680
23681
23682  prefix_NONE=
23683  exec_prefix_NONE=
23684  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23685  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23686  eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\""
23687  eval ax_define_dir="\"$ax_define_dir\""
23688  DEF_XDM_CONFIG="$ax_define_dir"
23689
23690
23691printf "%s\n" "#define DEF_XDM_CONFIG \"$ax_define_dir\"" >>confdefs.h
23692
23693  test "$prefix_NONE" && prefix=NONE
23694  test "$exec_prefix_NONE" && exec_prefix=NONE
23695
23696
23697# -DDEF_CHOOSER="$(CHOOSERPATH)"
23698
23699
23700  prefix_NONE=
23701  exec_prefix_NONE=
23702  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23703  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23704  eval ax_define_dir="\"$XDMLIBDIR/chooser\""
23705  eval ax_define_dir="\"$ax_define_dir\""
23706  DEF_CHOOSER="$ax_define_dir"
23707
23708
23709printf "%s\n" "#define DEF_CHOOSER \"$ax_define_dir\"" >>confdefs.h
23710
23711  test "$prefix_NONE" && prefix=NONE
23712  test "$exec_prefix_NONE" && exec_prefix=NONE
23713
23714
23715# -DDEF_AUTH_DIR="$(XDMDIR)"
23716
23717
23718# Check whether --with-authdir was given.
23719if test ${with_authdir+y}
23720then :
23721  withval=$with_authdir; XDMXAUTHDIR="$withval"
23722else $as_nop
23723  XDMXAUTHDIR="/var/lib/xdm"
23724fi
23725
23726
23727
23728
23729  prefix_NONE=
23730  exec_prefix_NONE=
23731  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23732  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23733  eval ax_define_dir="\"$XDMXAUTHDIR\""
23734  eval ax_define_dir="\"$ax_define_dir\""
23735  DEF_AUTH_DIR="$ax_define_dir"
23736
23737
23738printf "%s\n" "#define DEF_AUTH_DIR \"$ax_define_dir\"" >>confdefs.h
23739
23740  test "$prefix_NONE" && prefix=NONE
23741  test "$exec_prefix_NONE" && exec_prefix=NONE
23742
23743
23744# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so"
23745
23746
23747  prefix_NONE=
23748  exec_prefix_NONE=
23749  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23750  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23751  eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\""
23752  eval ax_define_dir="\"$ax_define_dir\""
23753  DEF_GREETER_LIB="$ax_define_dir"
23754
23755
23756printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h
23757
23758  test "$prefix_NONE" && prefix=NONE
23759  test "$exec_prefix_NONE" && exec_prefix=NONE
23760
23761
23762
23763pkg_failed=no
23764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
23765printf %s "checking for APPDEFS... " >&6; }
23766
23767if test -n "$APPDEFS_CFLAGS"; then
23768    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
23769 elif test -n "$PKG_CONFIG"; then
23770    if test -n "$PKG_CONFIG" && \
23771    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23772  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23773  ac_status=$?
23774  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775  test $ac_status = 0; }; then
23776  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
23777		      test "x$?" != "x0" && pkg_failed=yes
23778else
23779  pkg_failed=yes
23780fi
23781 else
23782    pkg_failed=untried
23783fi
23784if test -n "$APPDEFS_LIBS"; then
23785    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
23786 elif test -n "$PKG_CONFIG"; then
23787    if test -n "$PKG_CONFIG" && \
23788    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23789  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23790  ac_status=$?
23791  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23792  test $ac_status = 0; }; then
23793  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
23794		      test "x$?" != "x0" && pkg_failed=yes
23795else
23796  pkg_failed=yes
23797fi
23798 else
23799    pkg_failed=untried
23800fi
23801
23802
23803
23804if test $pkg_failed = yes; then
23805   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23806printf "%s\n" "no" >&6; }
23807
23808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23809        _pkg_short_errors_supported=yes
23810else
23811        _pkg_short_errors_supported=no
23812fi
23813        if test $_pkg_short_errors_supported = yes; then
23814	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
23815        else
23816	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
23817        fi
23818	# Put the nasty error message in config.log where it belongs
23819	echo "$APPDEFS_PKG_ERRORS" >&5
23820
23821	as_fn_error $? "Package requirements (xt) were not met:
23822
23823$APPDEFS_PKG_ERRORS
23824
23825Consider adjusting the PKG_CONFIG_PATH environment variable if you
23826installed software in a non-standard prefix.
23827
23828Alternatively, you may set the environment variables APPDEFS_CFLAGS
23829and APPDEFS_LIBS to avoid the need to call pkg-config.
23830See the pkg-config man page for more details." "$LINENO" 5
23831elif test $pkg_failed = untried; then
23832     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23833printf "%s\n" "no" >&6; }
23834	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23835printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23836as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23837is in your PATH or set the PKG_CONFIG environment variable to the full
23838path to pkg-config.
23839
23840Alternatively, you may set the environment variables APPDEFS_CFLAGS
23841and APPDEFS_LIBS to avoid the need to call pkg-config.
23842See the pkg-config man page for more details.
23843
23844To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23845See \`config.log' for more details" "$LINENO" 5; }
23846else
23847	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
23848	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
23849        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23850printf "%s\n" "yes" >&6; }
23851
23852fi
23853xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
23854
23855# Check whether --with-appdefaultdir was given.
23856if test ${with_appdefaultdir+y}
23857then :
23858  withval=$with_appdefaultdir; appdefaultdir="$withval"
23859else $as_nop
23860  appdefaultdir="${xt_appdefaultdir}"
23861fi
23862
23863
23864
23865
23866
23867ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile"
23868
23869cat >confcache <<\_ACEOF
23870# This file is a shell script that caches the results of configure
23871# tests run on this system so they can be shared between configure
23872# scripts and configure runs, see configure's option --config-cache.
23873# It is not useful on other systems.  If it contains results you don't
23874# want to keep, you may remove or edit it.
23875#
23876# config.status only pays attention to the cache file if you give it
23877# the --recheck option to rerun configure.
23878#
23879# `ac_cv_env_foo' variables (set or unset) will be overridden when
23880# loading this file, other *unset* `ac_cv_foo' will be assigned the
23881# following values.
23882
23883_ACEOF
23884
23885# The following way of writing the cache mishandles newlines in values,
23886# but we know of no workaround that is simple, portable, and efficient.
23887# So, we kill variables containing newlines.
23888# Ultrix sh set writes to stderr and can't be redirected directly,
23889# and sets the high bit in the cache file unless we assign to the vars.
23890(
23891  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23892    eval ac_val=\$$ac_var
23893    case $ac_val in #(
23894    *${as_nl}*)
23895      case $ac_var in #(
23896      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23897printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23898      esac
23899      case $ac_var in #(
23900      _ | IFS | as_nl) ;; #(
23901      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23902      *) { eval $ac_var=; unset $ac_var;} ;;
23903      esac ;;
23904    esac
23905  done
23906
23907  (set) 2>&1 |
23908    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23909    *${as_nl}ac_space=\ *)
23910      # `set' does not quote correctly, so add quotes: double-quote
23911      # substitution turns \\\\ into \\, and sed turns \\ into \.
23912      sed -n \
23913	"s/'/'\\\\''/g;
23914	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23915      ;; #(
23916    *)
23917      # `set' quotes correctly as required by POSIX, so do not add quotes.
23918      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23919      ;;
23920    esac |
23921    sort
23922) |
23923  sed '
23924     /^ac_cv_env_/b end
23925     t clear
23926     :clear
23927     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23928     t end
23929     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23930     :end' >>confcache
23931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23932  if test -w "$cache_file"; then
23933    if test "x$cache_file" != "x/dev/null"; then
23934      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23935printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23936      if test ! -f "$cache_file" || test -h "$cache_file"; then
23937	cat confcache >"$cache_file"
23938      else
23939        case $cache_file in #(
23940        */* | ?:*)
23941	  mv -f confcache "$cache_file"$$ &&
23942	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23943        *)
23944	  mv -f confcache "$cache_file" ;;
23945	esac
23946      fi
23947    fi
23948  else
23949    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23950printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23951  fi
23952fi
23953rm -f confcache
23954
23955test "x$prefix" = xNONE && prefix=$ac_default_prefix
23956# Let make expand exec_prefix.
23957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23958
23959DEFS=-DHAVE_CONFIG_H
23960
23961ac_libobjs=
23962ac_ltlibobjs=
23963U=
23964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23965  # 1. Remove the extension, and $U if already installed.
23966  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23967  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23968  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23969  #    will be set to the directory where LIBOBJS objects are built.
23970  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23971  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23972done
23973LIBOBJS=$ac_libobjs
23974
23975LTLIBOBJS=$ac_ltlibobjs
23976
23977
23978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23979printf %s "checking that generated files are newer than configure... " >&6; }
23980   if test -n "$am_sleep_pid"; then
23981     # Hide warnings about reused PIDs.
23982     wait $am_sleep_pid 2>/dev/null
23983   fi
23984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23985printf "%s\n" "done" >&6; }
23986if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23987  as_fn_error $? "conditional \"AMDEP\" was never defined.
23988Usually this means the macro was only invoked conditionally." "$LINENO" 5
23989fi
23990if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23991  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23992Usually this means the macro was only invoked conditionally." "$LINENO" 5
23993fi
23994 if test -n "$EXEEXT"; then
23995  am__EXEEXT_TRUE=
23996  am__EXEEXT_FALSE='#'
23997else
23998  am__EXEEXT_TRUE='#'
23999  am__EXEEXT_FALSE=
24000fi
24001
24002if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
24003  as_fn_error $? "conditional \"LINT\" was never defined.
24004Usually this means the macro was only invoked conditionally." "$LINENO" 5
24005fi
24006if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
24007  as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
24008Usually this means the macro was only invoked conditionally." "$LINENO" 5
24009fi
24010if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
24011  as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
24012Usually this means the macro was only invoked conditionally." "$LINENO" 5
24013fi
24014if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
24015  as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined.
24016Usually this means the macro was only invoked conditionally." "$LINENO" 5
24017fi
24018if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
24019  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
24020Usually this means the macro was only invoked conditionally." "$LINENO" 5
24021fi
24022if test -z "${USE_SYSTEMD_DAEMON_TRUE}" && test -z "${USE_SYSTEMD_DAEMON_FALSE}"; then
24023  as_fn_error $? "conditional \"USE_SYSTEMD_DAEMON\" was never defined.
24024Usually this means the macro was only invoked conditionally." "$LINENO" 5
24025fi
24026if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then
24027  as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined.
24028Usually this means the macro was only invoked conditionally." "$LINENO" 5
24029fi
24030if test -z "${SET_UTMP_FILE_TRUE}" && test -z "${SET_UTMP_FILE_FALSE}"; then
24031  as_fn_error $? "conditional \"SET_UTMP_FILE\" was never defined.
24032Usually this means the macro was only invoked conditionally." "$LINENO" 5
24033fi
24034if test -z "${SET_WTMP_FILE_TRUE}" && test -z "${SET_WTMP_FILE_FALSE}"; then
24035  as_fn_error $? "conditional \"SET_WTMP_FILE\" was never defined.
24036Usually this means the macro was only invoked conditionally." "$LINENO" 5
24037fi
24038if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then
24039  as_fn_error $? "conditional \"USE_XPM\" was never defined.
24040Usually this means the macro was only invoked conditionally." "$LINENO" 5
24041fi
24042if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then
24043  as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined.
24044Usually this means the macro was only invoked conditionally." "$LINENO" 5
24045fi
24046if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then
24047  as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined.
24048Usually this means the macro was only invoked conditionally." "$LINENO" 5
24049fi
24050
24051: "${CONFIG_STATUS=./config.status}"
24052ac_write_fail=0
24053ac_clean_files_save=$ac_clean_files
24054ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24056printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24057as_write_fail=0
24058cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24059#! $SHELL
24060# Generated by $as_me.
24061# Run this file to recreate the current configuration.
24062# Compiler output produced by configure, useful for debugging
24063# configure, is in config.log if it exists.
24064
24065debug=false
24066ac_cs_recheck=false
24067ac_cs_silent=false
24068
24069SHELL=\${CONFIG_SHELL-$SHELL}
24070export SHELL
24071_ASEOF
24072cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24073## -------------------- ##
24074## M4sh Initialization. ##
24075## -------------------- ##
24076
24077# Be more Bourne compatible
24078DUALCASE=1; export DUALCASE # for MKS sh
24079as_nop=:
24080if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24081then :
24082  emulate sh
24083  NULLCMD=:
24084  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24085  # is contrary to our usage.  Disable this feature.
24086  alias -g '${1+"$@"}'='"$@"'
24087  setopt NO_GLOB_SUBST
24088else $as_nop
24089  case `(set -o) 2>/dev/null` in #(
24090  *posix*) :
24091    set -o posix ;; #(
24092  *) :
24093     ;;
24094esac
24095fi
24096
24097
24098
24099# Reset variables that may have inherited troublesome values from
24100# the environment.
24101
24102# IFS needs to be set, to space, tab, and newline, in precisely that order.
24103# (If _AS_PATH_WALK were called with IFS unset, it would have the
24104# side effect of setting IFS to empty, thus disabling word splitting.)
24105# Quoting is to prevent editors from complaining about space-tab.
24106as_nl='
24107'
24108export as_nl
24109IFS=" ""	$as_nl"
24110
24111PS1='$ '
24112PS2='> '
24113PS4='+ '
24114
24115# Ensure predictable behavior from utilities with locale-dependent output.
24116LC_ALL=C
24117export LC_ALL
24118LANGUAGE=C
24119export LANGUAGE
24120
24121# We cannot yet rely on "unset" to work, but we need these variables
24122# to be unset--not just set to an empty or harmless value--now, to
24123# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
24124# also avoids known problems related to "unset" and subshell syntax
24125# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24126for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24127do eval test \${$as_var+y} \
24128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24129done
24130
24131# Ensure that fds 0, 1, and 2 are open.
24132if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24133if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24134if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
24135
24136# The user is always right.
24137if ${PATH_SEPARATOR+false} :; then
24138  PATH_SEPARATOR=:
24139  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24140    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24141      PATH_SEPARATOR=';'
24142  }
24143fi
24144
24145
24146# Find who we are.  Look in the path if we contain no directory separator.
24147as_myself=
24148case $0 in #((
24149  *[\\/]* ) as_myself=$0 ;;
24150  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24151for as_dir in $PATH
24152do
24153  IFS=$as_save_IFS
24154  case $as_dir in #(((
24155    '') as_dir=./ ;;
24156    */) ;;
24157    *) as_dir=$as_dir/ ;;
24158  esac
24159    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24160  done
24161IFS=$as_save_IFS
24162
24163     ;;
24164esac
24165# We did not find ourselves, most probably we were run as `sh COMMAND'
24166# in which case we are not to be found in the path.
24167if test "x$as_myself" = x; then
24168  as_myself=$0
24169fi
24170if test ! -f "$as_myself"; then
24171  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24172  exit 1
24173fi
24174
24175
24176
24177# as_fn_error STATUS ERROR [LINENO LOG_FD]
24178# ----------------------------------------
24179# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24180# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24181# script with STATUS, using 1 if that was 0.
24182as_fn_error ()
24183{
24184  as_status=$1; test $as_status -eq 0 && as_status=1
24185  if test "$4"; then
24186    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24187    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24188  fi
24189  printf "%s\n" "$as_me: error: $2" >&2
24190  as_fn_exit $as_status
24191} # as_fn_error
24192
24193
24194
24195# as_fn_set_status STATUS
24196# -----------------------
24197# Set $? to STATUS, without forking.
24198as_fn_set_status ()
24199{
24200  return $1
24201} # as_fn_set_status
24202
24203# as_fn_exit STATUS
24204# -----------------
24205# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24206as_fn_exit ()
24207{
24208  set +e
24209  as_fn_set_status $1
24210  exit $1
24211} # as_fn_exit
24212
24213# as_fn_unset VAR
24214# ---------------
24215# Portably unset VAR.
24216as_fn_unset ()
24217{
24218  { eval $1=; unset $1;}
24219}
24220as_unset=as_fn_unset
24221
24222# as_fn_append VAR VALUE
24223# ----------------------
24224# Append the text in VALUE to the end of the definition contained in VAR. Take
24225# advantage of any shell optimizations that allow amortized linear growth over
24226# repeated appends, instead of the typical quadratic growth present in naive
24227# implementations.
24228if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24229then :
24230  eval 'as_fn_append ()
24231  {
24232    eval $1+=\$2
24233  }'
24234else $as_nop
24235  as_fn_append ()
24236  {
24237    eval $1=\$$1\$2
24238  }
24239fi # as_fn_append
24240
24241# as_fn_arith ARG...
24242# ------------------
24243# Perform arithmetic evaluation on the ARGs, and store the result in the
24244# global $as_val. Take advantage of shells that can avoid forks. The arguments
24245# must be portable across $(()) and expr.
24246if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24247then :
24248  eval 'as_fn_arith ()
24249  {
24250    as_val=$(( $* ))
24251  }'
24252else $as_nop
24253  as_fn_arith ()
24254  {
24255    as_val=`expr "$@" || test $? -eq 1`
24256  }
24257fi # as_fn_arith
24258
24259
24260if expr a : '\(a\)' >/dev/null 2>&1 &&
24261   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24262  as_expr=expr
24263else
24264  as_expr=false
24265fi
24266
24267if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24268  as_basename=basename
24269else
24270  as_basename=false
24271fi
24272
24273if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24274  as_dirname=dirname
24275else
24276  as_dirname=false
24277fi
24278
24279as_me=`$as_basename -- "$0" ||
24280$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24281	 X"$0" : 'X\(//\)$' \| \
24282	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24283printf "%s\n" X/"$0" |
24284    sed '/^.*\/\([^/][^/]*\)\/*$/{
24285	    s//\1/
24286	    q
24287	  }
24288	  /^X\/\(\/\/\)$/{
24289	    s//\1/
24290	    q
24291	  }
24292	  /^X\/\(\/\).*/{
24293	    s//\1/
24294	    q
24295	  }
24296	  s/.*/./; q'`
24297
24298# Avoid depending upon Character Ranges.
24299as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24300as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24301as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24302as_cr_digits='0123456789'
24303as_cr_alnum=$as_cr_Letters$as_cr_digits
24304
24305
24306# Determine whether it's possible to make 'echo' print without a newline.
24307# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24308# for compatibility with existing Makefiles.
24309ECHO_C= ECHO_N= ECHO_T=
24310case `echo -n x` in #(((((
24311-n*)
24312  case `echo 'xy\c'` in
24313  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24314  xy)  ECHO_C='\c';;
24315  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24316       ECHO_T='	';;
24317  esac;;
24318*)
24319  ECHO_N='-n';;
24320esac
24321
24322# For backward compatibility with old third-party macros, we provide
24323# the shell variables $as_echo and $as_echo_n.  New code should use
24324# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24325as_echo='printf %s\n'
24326as_echo_n='printf %s'
24327
24328rm -f conf$$ conf$$.exe conf$$.file
24329if test -d conf$$.dir; then
24330  rm -f conf$$.dir/conf$$.file
24331else
24332  rm -f conf$$.dir
24333  mkdir conf$$.dir 2>/dev/null
24334fi
24335if (echo >conf$$.file) 2>/dev/null; then
24336  if ln -s conf$$.file conf$$ 2>/dev/null; then
24337    as_ln_s='ln -s'
24338    # ... but there are two gotchas:
24339    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24340    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24341    # In both cases, we have to default to `cp -pR'.
24342    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24343      as_ln_s='cp -pR'
24344  elif ln conf$$.file conf$$ 2>/dev/null; then
24345    as_ln_s=ln
24346  else
24347    as_ln_s='cp -pR'
24348  fi
24349else
24350  as_ln_s='cp -pR'
24351fi
24352rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24353rmdir conf$$.dir 2>/dev/null
24354
24355
24356# as_fn_mkdir_p
24357# -------------
24358# Create "$as_dir" as a directory, including parents if necessary.
24359as_fn_mkdir_p ()
24360{
24361
24362  case $as_dir in #(
24363  -*) as_dir=./$as_dir;;
24364  esac
24365  test -d "$as_dir" || eval $as_mkdir_p || {
24366    as_dirs=
24367    while :; do
24368      case $as_dir in #(
24369      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24370      *) as_qdir=$as_dir;;
24371      esac
24372      as_dirs="'$as_qdir' $as_dirs"
24373      as_dir=`$as_dirname -- "$as_dir" ||
24374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24375	 X"$as_dir" : 'X\(//\)[^/]' \| \
24376	 X"$as_dir" : 'X\(//\)$' \| \
24377	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24378printf "%s\n" X"$as_dir" |
24379    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24380	    s//\1/
24381	    q
24382	  }
24383	  /^X\(\/\/\)[^/].*/{
24384	    s//\1/
24385	    q
24386	  }
24387	  /^X\(\/\/\)$/{
24388	    s//\1/
24389	    q
24390	  }
24391	  /^X\(\/\).*/{
24392	    s//\1/
24393	    q
24394	  }
24395	  s/.*/./; q'`
24396      test -d "$as_dir" && break
24397    done
24398    test -z "$as_dirs" || eval "mkdir $as_dirs"
24399  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24400
24401
24402} # as_fn_mkdir_p
24403if mkdir -p . 2>/dev/null; then
24404  as_mkdir_p='mkdir -p "$as_dir"'
24405else
24406  test -d ./-p && rmdir ./-p
24407  as_mkdir_p=false
24408fi
24409
24410
24411# as_fn_executable_p FILE
24412# -----------------------
24413# Test if FILE is an executable regular file.
24414as_fn_executable_p ()
24415{
24416  test -f "$1" && test -x "$1"
24417} # as_fn_executable_p
24418as_test_x='test -x'
24419as_executable_p=as_fn_executable_p
24420
24421# Sed expression to map a string onto a valid CPP name.
24422as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24423
24424# Sed expression to map a string onto a valid variable name.
24425as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24426
24427
24428exec 6>&1
24429## ----------------------------------- ##
24430## Main body of $CONFIG_STATUS script. ##
24431## ----------------------------------- ##
24432_ASEOF
24433test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24434
24435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24436# Save the log message, to keep $0 and so on meaningful, and to
24437# report actual input values of CONFIG_FILES etc. instead of their
24438# values after options handling.
24439ac_log="
24440This file was extended by xdm $as_me 1.1.14, which was
24441generated by GNU Autoconf 2.71.  Invocation command line was
24442
24443  CONFIG_FILES    = $CONFIG_FILES
24444  CONFIG_HEADERS  = $CONFIG_HEADERS
24445  CONFIG_LINKS    = $CONFIG_LINKS
24446  CONFIG_COMMANDS = $CONFIG_COMMANDS
24447  $ $0 $@
24448
24449on `(hostname || uname -n) 2>/dev/null | sed 1q`
24450"
24451
24452_ACEOF
24453
24454case $ac_config_files in *"
24455"*) set x $ac_config_files; shift; ac_config_files=$*;;
24456esac
24457
24458case $ac_config_headers in *"
24459"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24460esac
24461
24462
24463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24464# Files that config.status was made for.
24465config_files="$ac_config_files"
24466config_headers="$ac_config_headers"
24467config_commands="$ac_config_commands"
24468
24469_ACEOF
24470
24471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24472ac_cs_usage="\
24473\`$as_me' instantiates files and other configuration actions
24474from templates according to the current configuration.  Unless the files
24475and actions are specified as TAGs, all are instantiated by default.
24476
24477Usage: $0 [OPTION]... [TAG]...
24478
24479  -h, --help       print this help, then exit
24480  -V, --version    print version number and configuration settings, then exit
24481      --config     print configuration, then exit
24482  -q, --quiet, --silent
24483                   do not print progress messages
24484  -d, --debug      don't remove temporary files
24485      --recheck    update $as_me by reconfiguring in the same conditions
24486      --file=FILE[:TEMPLATE]
24487                   instantiate the configuration file FILE
24488      --header=FILE[:TEMPLATE]
24489                   instantiate the configuration header FILE
24490
24491Configuration files:
24492$config_files
24493
24494Configuration headers:
24495$config_headers
24496
24497Configuration commands:
24498$config_commands
24499
24500Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>."
24501
24502_ACEOF
24503ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24504ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24506ac_cs_config='$ac_cs_config_escaped'
24507ac_cs_version="\\
24508xdm config.status 1.1.14
24509configured by $0, generated by GNU Autoconf 2.71,
24510  with options \\"\$ac_cs_config\\"
24511
24512Copyright (C) 2021 Free Software Foundation, Inc.
24513This config.status script is free software; the Free Software Foundation
24514gives unlimited permission to copy, distribute and modify it."
24515
24516ac_pwd='$ac_pwd'
24517srcdir='$srcdir'
24518INSTALL='$INSTALL'
24519MKDIR_P='$MKDIR_P'
24520AWK='$AWK'
24521test -n "\$AWK" || AWK=awk
24522_ACEOF
24523
24524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24525# The default lists apply if the user does not specify any file.
24526ac_need_defaults=:
24527while test $# != 0
24528do
24529  case $1 in
24530  --*=?*)
24531    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24532    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24533    ac_shift=:
24534    ;;
24535  --*=)
24536    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24537    ac_optarg=
24538    ac_shift=:
24539    ;;
24540  *)
24541    ac_option=$1
24542    ac_optarg=$2
24543    ac_shift=shift
24544    ;;
24545  esac
24546
24547  case $ac_option in
24548  # Handling of the options.
24549  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24550    ac_cs_recheck=: ;;
24551  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24552    printf "%s\n" "$ac_cs_version"; exit ;;
24553  --config | --confi | --conf | --con | --co | --c )
24554    printf "%s\n" "$ac_cs_config"; exit ;;
24555  --debug | --debu | --deb | --de | --d | -d )
24556    debug=: ;;
24557  --file | --fil | --fi | --f )
24558    $ac_shift
24559    case $ac_optarg in
24560    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24561    '') as_fn_error $? "missing file argument" ;;
24562    esac
24563    as_fn_append CONFIG_FILES " '$ac_optarg'"
24564    ac_need_defaults=false;;
24565  --header | --heade | --head | --hea )
24566    $ac_shift
24567    case $ac_optarg in
24568    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24569    esac
24570    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24571    ac_need_defaults=false;;
24572  --he | --h)
24573    # Conflict between --help and --header
24574    as_fn_error $? "ambiguous option: \`$1'
24575Try \`$0 --help' for more information.";;
24576  --help | --hel | -h )
24577    printf "%s\n" "$ac_cs_usage"; exit ;;
24578  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24579  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24580    ac_cs_silent=: ;;
24581
24582  # This is an error.
24583  -*) as_fn_error $? "unrecognized option: \`$1'
24584Try \`$0 --help' for more information." ;;
24585
24586  *) as_fn_append ac_config_targets " $1"
24587     ac_need_defaults=false ;;
24588
24589  esac
24590  shift
24591done
24592
24593ac_configure_extra_args=
24594
24595if $ac_cs_silent; then
24596  exec 6>/dev/null
24597  ac_configure_extra_args="$ac_configure_extra_args --silent"
24598fi
24599
24600_ACEOF
24601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24602if \$ac_cs_recheck; then
24603  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24604  shift
24605  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24606  CONFIG_SHELL='$SHELL'
24607  export CONFIG_SHELL
24608  exec "\$@"
24609fi
24610
24611_ACEOF
24612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24613exec 5>>config.log
24614{
24615  echo
24616  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24617## Running $as_me. ##
24618_ASBOX
24619  printf "%s\n" "$ac_log"
24620} >&5
24621
24622_ACEOF
24623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24624#
24625# INIT-COMMANDS
24626#
24627AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24628
24629
24630# The HP-UX ksh and POSIX shell print the target directory to stdout
24631# if CDPATH is set.
24632(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24633
24634sed_quote_subst='$sed_quote_subst'
24635double_quote_subst='$double_quote_subst'
24636delay_variable_subst='$delay_variable_subst'
24637enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24638macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24639macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24640enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24641pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24642enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24643shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24644SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24645ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24646PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24647host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24648host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24649host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24650build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24651build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24652build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24653SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24654Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24655GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24656EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24657FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24658LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24659NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24660LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24661max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24662ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24663exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24664lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24665lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24666lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24667lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24668lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24669reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24670reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24671FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
24672OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24673deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24674file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24675file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24676want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24677DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24678sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24679AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24680lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
24681AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24682archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24683STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24684RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24685old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24686old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24687old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24688lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24689CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24690CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24691compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24692GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24693lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24694lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24695lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24696lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24697lt_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"`'
24698lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24699nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24700lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24701lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24702objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24703MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24704lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24705lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24706lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24707lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24708lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24709need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24710MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24711DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24712NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24713LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24714OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24715OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24716libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24717shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24718extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24719archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24720enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24721export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24722whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24723compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24724old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24725old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24726archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24727archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24728module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24729module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24730with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24731allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24732no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24733hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24734hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24735hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24736hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24737hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24738hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24739hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24740inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24741link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24742always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24743export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24744exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24745include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24746prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24747postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24748file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24749variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24750need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24751need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24752version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24753runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24754shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24755shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24756libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24757library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24758soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24759install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24760postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24761postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24762finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24763finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24764hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24765sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24766configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24767configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24768hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24769enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24770enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24771enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24772old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24773striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24774
24775LTCC='$LTCC'
24776LTCFLAGS='$LTCFLAGS'
24777compiler='$compiler_DEFAULT'
24778
24779# A function that is used when there is no print builtin or printf.
24780func_fallback_echo ()
24781{
24782  eval 'cat <<_LTECHO_EOF
24783\$1
24784_LTECHO_EOF'
24785}
24786
24787# Quote evaled strings.
24788for var in SHELL \
24789ECHO \
24790PATH_SEPARATOR \
24791SED \
24792GREP \
24793EGREP \
24794FGREP \
24795LD \
24796NM \
24797LN_S \
24798lt_SP2NL \
24799lt_NL2SP \
24800reload_flag \
24801FILECMD \
24802OBJDUMP \
24803deplibs_check_method \
24804file_magic_cmd \
24805file_magic_glob \
24806want_nocaseglob \
24807DLLTOOL \
24808sharedlib_from_linklib_cmd \
24809AR \
24810archiver_list_spec \
24811STRIP \
24812RANLIB \
24813CC \
24814CFLAGS \
24815compiler \
24816lt_cv_sys_global_symbol_pipe \
24817lt_cv_sys_global_symbol_to_cdecl \
24818lt_cv_sys_global_symbol_to_import \
24819lt_cv_sys_global_symbol_to_c_name_address \
24820lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24821lt_cv_nm_interface \
24822nm_file_list_spec \
24823lt_cv_truncate_bin \
24824lt_prog_compiler_no_builtin_flag \
24825lt_prog_compiler_pic \
24826lt_prog_compiler_wl \
24827lt_prog_compiler_static \
24828lt_cv_prog_compiler_c_o \
24829need_locks \
24830MANIFEST_TOOL \
24831DSYMUTIL \
24832NMEDIT \
24833LIPO \
24834OTOOL \
24835OTOOL64 \
24836shrext_cmds \
24837export_dynamic_flag_spec \
24838whole_archive_flag_spec \
24839compiler_needs_object \
24840with_gnu_ld \
24841allow_undefined_flag \
24842no_undefined_flag \
24843hardcode_libdir_flag_spec \
24844hardcode_libdir_separator \
24845exclude_expsyms \
24846include_expsyms \
24847file_list_spec \
24848variables_saved_for_relink \
24849libname_spec \
24850library_names_spec \
24851soname_spec \
24852install_override_mode \
24853finish_eval \
24854old_striplib \
24855striplib; do
24856    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24857    *[\\\\\\\`\\"\\\$]*)
24858      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24859      ;;
24860    *)
24861      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24862      ;;
24863    esac
24864done
24865
24866# Double-quote double-evaled strings.
24867for var in reload_cmds \
24868old_postinstall_cmds \
24869old_postuninstall_cmds \
24870old_archive_cmds \
24871extract_expsyms_cmds \
24872old_archive_from_new_cmds \
24873old_archive_from_expsyms_cmds \
24874archive_cmds \
24875archive_expsym_cmds \
24876module_cmds \
24877module_expsym_cmds \
24878export_symbols_cmds \
24879prelink_cmds \
24880postlink_cmds \
24881postinstall_cmds \
24882postuninstall_cmds \
24883finish_cmds \
24884sys_lib_search_path_spec \
24885configure_time_dlsearch_path \
24886configure_time_lt_sys_library_path; do
24887    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24888    *[\\\\\\\`\\"\\\$]*)
24889      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24890      ;;
24891    *)
24892      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24893      ;;
24894    esac
24895done
24896
24897ac_aux_dir='$ac_aux_dir'
24898
24899# See if we are running on zsh, and set the options that allow our
24900# commands through without removal of \ escapes INIT.
24901if test -n "\${ZSH_VERSION+set}"; then
24902   setopt NO_GLOB_SUBST
24903fi
24904
24905
24906    PACKAGE='$PACKAGE'
24907    VERSION='$VERSION'
24908    RM='$RM'
24909    ofile='$ofile'
24910
24911
24912
24913
24914_ACEOF
24915
24916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24917
24918# Handling of arguments.
24919for ac_config_target in $ac_config_targets
24920do
24921  case $ac_config_target in
24922    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24923    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24924    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24925    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24926    "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;;
24927    "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;;
24928    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
24929    "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;;
24930    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24931    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24932    "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;;
24933    "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;;
24934
24935  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24936  esac
24937done
24938
24939
24940# If the user did not use the arguments to specify the items to instantiate,
24941# then the envvar interface is used.  Set only those that are not.
24942# We use the long form for the default assignment because of an extremely
24943# bizarre bug on SunOS 4.1.3.
24944if $ac_need_defaults; then
24945  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24946  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24947  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24948fi
24949
24950# Have a temporary directory for convenience.  Make it in the build tree
24951# simply because there is no reason against having it here, and in addition,
24952# creating and moving files from /tmp can sometimes cause problems.
24953# Hook for its removal unless debugging.
24954# Note that there is a small window in which the directory will not be cleaned:
24955# after its creation but before its name has been assigned to `$tmp'.
24956$debug ||
24957{
24958  tmp= ac_tmp=
24959  trap 'exit_status=$?
24960  : "${ac_tmp:=$tmp}"
24961  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24962' 0
24963  trap 'as_fn_exit 1' 1 2 13 15
24964}
24965# Create a (secure) tmp directory for tmp files.
24966
24967{
24968  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24969  test -d "$tmp"
24970}  ||
24971{
24972  tmp=./conf$$-$RANDOM
24973  (umask 077 && mkdir "$tmp")
24974} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24975ac_tmp=$tmp
24976
24977# Set up the scripts for CONFIG_FILES section.
24978# No need to generate them if there are no CONFIG_FILES.
24979# This happens for instance with `./config.status config.h'.
24980if test -n "$CONFIG_FILES"; then
24981
24982
24983ac_cr=`echo X | tr X '\015'`
24984# On cygwin, bash can eat \r inside `` if the user requested igncr.
24985# But we know of no other shell where ac_cr would be empty at this
24986# point, so we can use a bashism as a fallback.
24987if test "x$ac_cr" = x; then
24988  eval ac_cr=\$\'\\r\'
24989fi
24990ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24991if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24992  ac_cs_awk_cr='\\r'
24993else
24994  ac_cs_awk_cr=$ac_cr
24995fi
24996
24997echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24998_ACEOF
24999
25000
25001{
25002  echo "cat >conf$$subs.awk <<_ACEOF" &&
25003  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25004  echo "_ACEOF"
25005} >conf$$subs.sh ||
25006  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25007ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25008ac_delim='%!_!# '
25009for ac_last_try in false false false false false :; do
25010  . ./conf$$subs.sh ||
25011    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25012
25013  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25014  if test $ac_delim_n = $ac_delim_num; then
25015    break
25016  elif $ac_last_try; then
25017    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25018  else
25019    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25020  fi
25021done
25022rm -f conf$$subs.sh
25023
25024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25025cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25026_ACEOF
25027sed -n '
25028h
25029s/^/S["/; s/!.*/"]=/
25030p
25031g
25032s/^[^!]*!//
25033:repl
25034t repl
25035s/'"$ac_delim"'$//
25036t delim
25037:nl
25038h
25039s/\(.\{148\}\)..*/\1/
25040t more1
25041s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25042p
25043n
25044b repl
25045:more1
25046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25047p
25048g
25049s/.\{148\}//
25050t nl
25051:delim
25052h
25053s/\(.\{148\}\)..*/\1/
25054t more2
25055s/["\\]/\\&/g; s/^/"/; s/$/"/
25056p
25057b
25058:more2
25059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25060p
25061g
25062s/.\{148\}//
25063t delim
25064' <conf$$subs.awk | sed '
25065/^[^""]/{
25066  N
25067  s/\n//
25068}
25069' >>$CONFIG_STATUS || ac_write_fail=1
25070rm -f conf$$subs.awk
25071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25072_ACAWK
25073cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25074  for (key in S) S_is_set[key] = 1
25075  FS = ""
25076
25077}
25078{
25079  line = $ 0
25080  nfields = split(line, field, "@")
25081  substed = 0
25082  len = length(field[1])
25083  for (i = 2; i < nfields; i++) {
25084    key = field[i]
25085    keylen = length(key)
25086    if (S_is_set[key]) {
25087      value = S[key]
25088      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25089      len += length(value) + length(field[++i])
25090      substed = 1
25091    } else
25092      len += 1 + keylen
25093  }
25094
25095  print line
25096}
25097
25098_ACAWK
25099_ACEOF
25100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25101if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25102  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25103else
25104  cat
25105fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25106  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25107_ACEOF
25108
25109# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25110# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25111# trailing colons and then remove the whole line if VPATH becomes empty
25112# (actually we leave an empty line to preserve line numbers).
25113if test "x$srcdir" = x.; then
25114  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25115h
25116s///
25117s/^/:/
25118s/[	 ]*$/:/
25119s/:\$(srcdir):/:/g
25120s/:\${srcdir}:/:/g
25121s/:@srcdir@:/:/g
25122s/^:*//
25123s/:*$//
25124x
25125s/\(=[	 ]*\).*/\1/
25126G
25127s/\n//
25128s/^[^=]*=[	 ]*$//
25129}'
25130fi
25131
25132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25133fi # test -n "$CONFIG_FILES"
25134
25135# Set up the scripts for CONFIG_HEADERS section.
25136# No need to generate them if there are no CONFIG_HEADERS.
25137# This happens for instance with `./config.status Makefile'.
25138if test -n "$CONFIG_HEADERS"; then
25139cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25140BEGIN {
25141_ACEOF
25142
25143# Transform confdefs.h into an awk script `defines.awk', embedded as
25144# here-document in config.status, that substitutes the proper values into
25145# config.h.in to produce config.h.
25146
25147# Create a delimiter string that does not exist in confdefs.h, to ease
25148# handling of long lines.
25149ac_delim='%!_!# '
25150for ac_last_try in false false :; do
25151  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25152  if test -z "$ac_tt"; then
25153    break
25154  elif $ac_last_try; then
25155    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25156  else
25157    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25158  fi
25159done
25160
25161# For the awk script, D is an array of macro values keyed by name,
25162# likewise P contains macro parameters if any.  Preserve backslash
25163# newline sequences.
25164
25165ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25166sed -n '
25167s/.\{148\}/&'"$ac_delim"'/g
25168t rset
25169:rset
25170s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25171t def
25172d
25173:def
25174s/\\$//
25175t bsnl
25176s/["\\]/\\&/g
25177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25178D["\1"]=" \3"/p
25179s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25180d
25181:bsnl
25182s/["\\]/\\&/g
25183s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25184D["\1"]=" \3\\\\\\n"\\/p
25185t cont
25186s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25187t cont
25188d
25189:cont
25190n
25191s/.\{148\}/&'"$ac_delim"'/g
25192t clear
25193:clear
25194s/\\$//
25195t bsnlc
25196s/["\\]/\\&/g; s/^/"/; s/$/"/p
25197d
25198:bsnlc
25199s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25200b cont
25201' <confdefs.h | sed '
25202s/'"$ac_delim"'/"\\\
25203"/g' >>$CONFIG_STATUS || ac_write_fail=1
25204
25205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25206  for (key in D) D_is_set[key] = 1
25207  FS = ""
25208}
25209/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25210  line = \$ 0
25211  split(line, arg, " ")
25212  if (arg[1] == "#") {
25213    defundef = arg[2]
25214    mac1 = arg[3]
25215  } else {
25216    defundef = substr(arg[1], 2)
25217    mac1 = arg[2]
25218  }
25219  split(mac1, mac2, "(") #)
25220  macro = mac2[1]
25221  prefix = substr(line, 1, index(line, defundef) - 1)
25222  if (D_is_set[macro]) {
25223    # Preserve the white space surrounding the "#".
25224    print prefix "define", macro P[macro] D[macro]
25225    next
25226  } else {
25227    # Replace #undef with comments.  This is necessary, for example,
25228    # in the case of _POSIX_SOURCE, which is predefined and required
25229    # on some systems where configure will not decide to define it.
25230    if (defundef == "undef") {
25231      print "/*", prefix defundef, macro, "*/"
25232      next
25233    }
25234  }
25235}
25236{ print }
25237_ACAWK
25238_ACEOF
25239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25240  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25241fi # test -n "$CONFIG_HEADERS"
25242
25243
25244eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25245shift
25246for ac_tag
25247do
25248  case $ac_tag in
25249  :[FHLC]) ac_mode=$ac_tag; continue;;
25250  esac
25251  case $ac_mode$ac_tag in
25252  :[FHL]*:*);;
25253  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25254  :[FH]-) ac_tag=-:-;;
25255  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25256  esac
25257  ac_save_IFS=$IFS
25258  IFS=:
25259  set x $ac_tag
25260  IFS=$ac_save_IFS
25261  shift
25262  ac_file=$1
25263  shift
25264
25265  case $ac_mode in
25266  :L) ac_source=$1;;
25267  :[FH])
25268    ac_file_inputs=
25269    for ac_f
25270    do
25271      case $ac_f in
25272      -) ac_f="$ac_tmp/stdin";;
25273      *) # Look for the file first in the build tree, then in the source tree
25274	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25275	 # because $ac_f cannot contain `:'.
25276	 test -f "$ac_f" ||
25277	   case $ac_f in
25278	   [\\/$]*) false;;
25279	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25280	   esac ||
25281	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25282      esac
25283      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25284      as_fn_append ac_file_inputs " '$ac_f'"
25285    done
25286
25287    # Let's still pretend it is `configure' which instantiates (i.e., don't
25288    # use $as_me), people would be surprised to read:
25289    #    /* config.h.  Generated by config.status.  */
25290    configure_input='Generated from '`
25291	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25292	`' by configure.'
25293    if test x"$ac_file" != x-; then
25294      configure_input="$ac_file.  $configure_input"
25295      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25296printf "%s\n" "$as_me: creating $ac_file" >&6;}
25297    fi
25298    # Neutralize special characters interpreted by sed in replacement strings.
25299    case $configure_input in #(
25300    *\&* | *\|* | *\\* )
25301       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25302       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25303    *) ac_sed_conf_input=$configure_input;;
25304    esac
25305
25306    case $ac_tag in
25307    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25308      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25309    esac
25310    ;;
25311  esac
25312
25313  ac_dir=`$as_dirname -- "$ac_file" ||
25314$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25315	 X"$ac_file" : 'X\(//\)[^/]' \| \
25316	 X"$ac_file" : 'X\(//\)$' \| \
25317	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25318printf "%s\n" X"$ac_file" |
25319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25320	    s//\1/
25321	    q
25322	  }
25323	  /^X\(\/\/\)[^/].*/{
25324	    s//\1/
25325	    q
25326	  }
25327	  /^X\(\/\/\)$/{
25328	    s//\1/
25329	    q
25330	  }
25331	  /^X\(\/\).*/{
25332	    s//\1/
25333	    q
25334	  }
25335	  s/.*/./; q'`
25336  as_dir="$ac_dir"; as_fn_mkdir_p
25337  ac_builddir=.
25338
25339case "$ac_dir" in
25340.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25341*)
25342  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25343  # A ".." for each directory in $ac_dir_suffix.
25344  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25345  case $ac_top_builddir_sub in
25346  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25347  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25348  esac ;;
25349esac
25350ac_abs_top_builddir=$ac_pwd
25351ac_abs_builddir=$ac_pwd$ac_dir_suffix
25352# for backward compatibility:
25353ac_top_builddir=$ac_top_build_prefix
25354
25355case $srcdir in
25356  .)  # We are building in place.
25357    ac_srcdir=.
25358    ac_top_srcdir=$ac_top_builddir_sub
25359    ac_abs_top_srcdir=$ac_pwd ;;
25360  [\\/]* | ?:[\\/]* )  # Absolute name.
25361    ac_srcdir=$srcdir$ac_dir_suffix;
25362    ac_top_srcdir=$srcdir
25363    ac_abs_top_srcdir=$srcdir ;;
25364  *) # Relative name.
25365    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25366    ac_top_srcdir=$ac_top_build_prefix$srcdir
25367    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25368esac
25369ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25370
25371
25372  case $ac_mode in
25373  :F)
25374  #
25375  # CONFIG_FILE
25376  #
25377
25378  case $INSTALL in
25379  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25380  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25381  esac
25382  ac_MKDIR_P=$MKDIR_P
25383  case $MKDIR_P in
25384  [\\/$]* | ?:[\\/]* ) ;;
25385  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25386  esac
25387_ACEOF
25388
25389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25390# If the template does not know about datarootdir, expand it.
25391# FIXME: This hack should be removed a few years after 2.60.
25392ac_datarootdir_hack=; ac_datarootdir_seen=
25393ac_sed_dataroot='
25394/datarootdir/ {
25395  p
25396  q
25397}
25398/@datadir@/p
25399/@docdir@/p
25400/@infodir@/p
25401/@localedir@/p
25402/@mandir@/p'
25403case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25404*datarootdir*) ac_datarootdir_seen=yes;;
25405*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25407printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25408_ACEOF
25409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25410  ac_datarootdir_hack='
25411  s&@datadir@&$datadir&g
25412  s&@docdir@&$docdir&g
25413  s&@infodir@&$infodir&g
25414  s&@localedir@&$localedir&g
25415  s&@mandir@&$mandir&g
25416  s&\\\${datarootdir}&$datarootdir&g' ;;
25417esac
25418_ACEOF
25419
25420# Neutralize VPATH when `$srcdir' = `.'.
25421# Shell code in configure.ac might set extrasub.
25422# FIXME: do we really want to maintain this feature?
25423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25424ac_sed_extra="$ac_vpsub
25425$extrasub
25426_ACEOF
25427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25428:t
25429/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25430s|@configure_input@|$ac_sed_conf_input|;t t
25431s&@top_builddir@&$ac_top_builddir_sub&;t t
25432s&@top_build_prefix@&$ac_top_build_prefix&;t t
25433s&@srcdir@&$ac_srcdir&;t t
25434s&@abs_srcdir@&$ac_abs_srcdir&;t t
25435s&@top_srcdir@&$ac_top_srcdir&;t t
25436s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25437s&@builddir@&$ac_builddir&;t t
25438s&@abs_builddir@&$ac_abs_builddir&;t t
25439s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25440s&@INSTALL@&$ac_INSTALL&;t t
25441s&@MKDIR_P@&$ac_MKDIR_P&;t t
25442$ac_datarootdir_hack
25443"
25444eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25445  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25446
25447test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25448  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25449  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25450      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25452which seems to be undefined.  Please make sure it is defined" >&5
25453printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25454which seems to be undefined.  Please make sure it is defined" >&2;}
25455
25456  rm -f "$ac_tmp/stdin"
25457  case $ac_file in
25458  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25459  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25460  esac \
25461  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25462 ;;
25463  :H)
25464  #
25465  # CONFIG_HEADER
25466  #
25467  if test x"$ac_file" != x-; then
25468    {
25469      printf "%s\n" "/* $configure_input  */" >&1 \
25470      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25471    } >"$ac_tmp/config.h" \
25472      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25473    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25474      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25475printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25476    else
25477      rm -f "$ac_file"
25478      mv "$ac_tmp/config.h" "$ac_file" \
25479	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25480    fi
25481  else
25482    printf "%s\n" "/* $configure_input  */" >&1 \
25483      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25484      || as_fn_error $? "could not create -" "$LINENO" 5
25485  fi
25486# Compute "$ac_file"'s index in $config_headers.
25487_am_arg="$ac_file"
25488_am_stamp_count=1
25489for _am_header in $config_headers :; do
25490  case $_am_header in
25491    $_am_arg | $_am_arg:* )
25492      break ;;
25493    * )
25494      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25495  esac
25496done
25497echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25498$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25499	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25500	 X"$_am_arg" : 'X\(//\)$' \| \
25501	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25502printf "%s\n" X"$_am_arg" |
25503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25504	    s//\1/
25505	    q
25506	  }
25507	  /^X\(\/\/\)[^/].*/{
25508	    s//\1/
25509	    q
25510	  }
25511	  /^X\(\/\/\)$/{
25512	    s//\1/
25513	    q
25514	  }
25515	  /^X\(\/\).*/{
25516	    s//\1/
25517	    q
25518	  }
25519	  s/.*/./; q'`/stamp-h$_am_stamp_count
25520 ;;
25521
25522  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25523printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25524 ;;
25525  esac
25526
25527
25528  case $ac_file$ac_mode in
25529    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25530  # Older Autoconf quotes --file arguments for eval, but not when files
25531  # are listed without --file.  Let's play safe and only enable the eval
25532  # if we detect the quoting.
25533  # TODO: see whether this extra hack can be removed once we start
25534  # requiring Autoconf 2.70 or later.
25535  case $CONFIG_FILES in #(
25536  *\'*) :
25537    eval set x "$CONFIG_FILES" ;; #(
25538  *) :
25539    set x $CONFIG_FILES ;; #(
25540  *) :
25541     ;;
25542esac
25543  shift
25544  # Used to flag and report bootstrapping failures.
25545  am_rc=0
25546  for am_mf
25547  do
25548    # Strip MF so we end up with the name of the file.
25549    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25550    # Check whether this is an Automake generated Makefile which includes
25551    # dependency-tracking related rules and includes.
25552    # Grep'ing the whole file directly is not great: AIX grep has a line
25553    # limit of 2048, but all sed's we know have understand at least 4000.
25554    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25555      || continue
25556    am_dirpart=`$as_dirname -- "$am_mf" ||
25557$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25558	 X"$am_mf" : 'X\(//\)[^/]' \| \
25559	 X"$am_mf" : 'X\(//\)$' \| \
25560	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25561printf "%s\n" X"$am_mf" |
25562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25563	    s//\1/
25564	    q
25565	  }
25566	  /^X\(\/\/\)[^/].*/{
25567	    s//\1/
25568	    q
25569	  }
25570	  /^X\(\/\/\)$/{
25571	    s//\1/
25572	    q
25573	  }
25574	  /^X\(\/\).*/{
25575	    s//\1/
25576	    q
25577	  }
25578	  s/.*/./; q'`
25579    am_filepart=`$as_basename -- "$am_mf" ||
25580$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25581	 X"$am_mf" : 'X\(//\)$' \| \
25582	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25583printf "%s\n" X/"$am_mf" |
25584    sed '/^.*\/\([^/][^/]*\)\/*$/{
25585	    s//\1/
25586	    q
25587	  }
25588	  /^X\/\(\/\/\)$/{
25589	    s//\1/
25590	    q
25591	  }
25592	  /^X\/\(\/\).*/{
25593	    s//\1/
25594	    q
25595	  }
25596	  s/.*/./; q'`
25597    { echo "$as_me:$LINENO: cd "$am_dirpart" \
25598      && sed -e '/# am--include-marker/d' "$am_filepart" \
25599        | $MAKE -f - am--depfiles" >&5
25600   (cd "$am_dirpart" \
25601      && sed -e '/# am--include-marker/d' "$am_filepart" \
25602        | $MAKE -f - am--depfiles) >&5 2>&5
25603   ac_status=$?
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } || am_rc=$?
25606  done
25607  if test $am_rc -ne 0; then
25608    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25609printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25610as_fn_error $? "Something went wrong bootstrapping makefile fragments
25611    for automatic dependency tracking.  If GNU make was not used, consider
25612    re-running the configure script with MAKE=\"gmake\" (or whatever is
25613    necessary).  You can also try re-running configure with the
25614    '--disable-dependency-tracking' option to at least be able to build
25615    the package (albeit without support for automatic dependency tracking).
25616See \`config.log' for more details" "$LINENO" 5; }
25617  fi
25618  { am_dirpart=; unset am_dirpart;}
25619  { am_filepart=; unset am_filepart;}
25620  { am_mf=; unset am_mf;}
25621  { am_rc=; unset am_rc;}
25622  rm -f conftest-deps.mk
25623}
25624 ;;
25625    "libtool":C)
25626
25627    # See if we are running on zsh, and set the options that allow our
25628    # commands through without removal of \ escapes.
25629    if test -n "${ZSH_VERSION+set}"; then
25630      setopt NO_GLOB_SUBST
25631    fi
25632
25633    cfgfile=${ofile}T
25634    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25635    $RM "$cfgfile"
25636
25637    cat <<_LT_EOF >> "$cfgfile"
25638#! $SHELL
25639# Generated automatically by $as_me ($PACKAGE) $VERSION
25640# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25641# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25642
25643# Provide generalized library-building support services.
25644# Written by Gordon Matzigkeit, 1996
25645
25646# Copyright (C) 2014 Free Software Foundation, Inc.
25647# This is free software; see the source for copying conditions.  There is NO
25648# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25649
25650# GNU Libtool is free software; you can redistribute it and/or modify
25651# it under the terms of the GNU General Public License as published by
25652# the Free Software Foundation; either version 2 of of the License, or
25653# (at your option) any later version.
25654#
25655# As a special exception to the GNU General Public License, if you
25656# distribute this file as part of a program or library that is built
25657# using GNU Libtool, you may include this file under the  same
25658# distribution terms that you use for the rest of that program.
25659#
25660# GNU Libtool is distributed in the hope that it will be useful, but
25661# WITHOUT ANY WARRANTY; without even the implied warranty of
25662# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25663# GNU General Public License for more details.
25664#
25665# You should have received a copy of the GNU General Public License
25666# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25667
25668
25669# The names of the tagged configurations supported by this script.
25670available_tags=''
25671
25672# Configured defaults for sys_lib_dlsearch_path munging.
25673: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25674
25675# ### BEGIN LIBTOOL CONFIG
25676
25677# Whether or not to build static libraries.
25678build_old_libs=$enable_static
25679
25680# Which release of libtool.m4 was used?
25681macro_version=$macro_version
25682macro_revision=$macro_revision
25683
25684# Whether or not to build shared libraries.
25685build_libtool_libs=$enable_shared
25686
25687# What type of objects to build.
25688pic_mode=$pic_mode
25689
25690# Whether or not to optimize for fast installation.
25691fast_install=$enable_fast_install
25692
25693# Shared archive member basename,for filename based shared library versioning on AIX.
25694shared_archive_member_spec=$shared_archive_member_spec
25695
25696# Shell to use when invoking shell scripts.
25697SHELL=$lt_SHELL
25698
25699# An echo program that protects backslashes.
25700ECHO=$lt_ECHO
25701
25702# The PATH separator for the build system.
25703PATH_SEPARATOR=$lt_PATH_SEPARATOR
25704
25705# The host system.
25706host_alias=$host_alias
25707host=$host
25708host_os=$host_os
25709
25710# The build system.
25711build_alias=$build_alias
25712build=$build
25713build_os=$build_os
25714
25715# A sed program that does not truncate output.
25716SED=$lt_SED
25717
25718# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25719Xsed="\$SED -e 1s/^X//"
25720
25721# A grep program that handles long lines.
25722GREP=$lt_GREP
25723
25724# An ERE matcher.
25725EGREP=$lt_EGREP
25726
25727# A literal string matcher.
25728FGREP=$lt_FGREP
25729
25730# A BSD- or MS-compatible name lister.
25731NM=$lt_NM
25732
25733# Whether we need soft or hard links.
25734LN_S=$lt_LN_S
25735
25736# What is the maximum length of a command?
25737max_cmd_len=$max_cmd_len
25738
25739# Object file suffix (normally "o").
25740objext=$ac_objext
25741
25742# Executable file suffix (normally "").
25743exeext=$exeext
25744
25745# whether the shell understands "unset".
25746lt_unset=$lt_unset
25747
25748# turn spaces into newlines.
25749SP2NL=$lt_lt_SP2NL
25750
25751# turn newlines into spaces.
25752NL2SP=$lt_lt_NL2SP
25753
25754# convert \$build file names to \$host format.
25755to_host_file_cmd=$lt_cv_to_host_file_cmd
25756
25757# convert \$build files to toolchain format.
25758to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25759
25760# A file(cmd) program that detects file types.
25761FILECMD=$lt_FILECMD
25762
25763# An object symbol dumper.
25764OBJDUMP=$lt_OBJDUMP
25765
25766# Method to check whether dependent libraries are shared objects.
25767deplibs_check_method=$lt_deplibs_check_method
25768
25769# Command to use when deplibs_check_method = "file_magic".
25770file_magic_cmd=$lt_file_magic_cmd
25771
25772# How to find potential files when deplibs_check_method = "file_magic".
25773file_magic_glob=$lt_file_magic_glob
25774
25775# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25776want_nocaseglob=$lt_want_nocaseglob
25777
25778# DLL creation program.
25779DLLTOOL=$lt_DLLTOOL
25780
25781# Command to associate shared and link libraries.
25782sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25783
25784# The archiver.
25785AR=$lt_AR
25786
25787# Flags to create an archive (by configure).
25788lt_ar_flags=$lt_ar_flags
25789
25790# Flags to create an archive.
25791AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25792
25793# How to feed a file listing to the archiver.
25794archiver_list_spec=$lt_archiver_list_spec
25795
25796# A symbol stripping program.
25797STRIP=$lt_STRIP
25798
25799# Commands used to install an old-style archive.
25800RANLIB=$lt_RANLIB
25801old_postinstall_cmds=$lt_old_postinstall_cmds
25802old_postuninstall_cmds=$lt_old_postuninstall_cmds
25803
25804# Whether to use a lock for old archive extraction.
25805lock_old_archive_extraction=$lock_old_archive_extraction
25806
25807# A C compiler.
25808LTCC=$lt_CC
25809
25810# LTCC compiler flags.
25811LTCFLAGS=$lt_CFLAGS
25812
25813# Take the output of nm and produce a listing of raw symbols and C names.
25814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25815
25816# Transform the output of nm in a proper C declaration.
25817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25818
25819# Transform the output of nm into a list of symbols to manually relocate.
25820global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25821
25822# Transform the output of nm in a C name address pair.
25823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25824
25825# Transform the output of nm in a C name address pair when lib prefix is needed.
25826global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25827
25828# The name lister interface.
25829nm_interface=$lt_lt_cv_nm_interface
25830
25831# Specify filename containing input files for \$NM.
25832nm_file_list_spec=$lt_nm_file_list_spec
25833
25834# The root where to search for dependent libraries,and where our libraries should be installed.
25835lt_sysroot=$lt_sysroot
25836
25837# Command to truncate a binary pipe.
25838lt_truncate_bin=$lt_lt_cv_truncate_bin
25839
25840# The name of the directory that contains temporary libtool files.
25841objdir=$objdir
25842
25843# Used to examine libraries when file_magic_cmd begins with "file".
25844MAGIC_CMD=$MAGIC_CMD
25845
25846# Must we lock files when doing compilation?
25847need_locks=$lt_need_locks
25848
25849# Manifest tool.
25850MANIFEST_TOOL=$lt_MANIFEST_TOOL
25851
25852# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25853DSYMUTIL=$lt_DSYMUTIL
25854
25855# Tool to change global to local symbols on Mac OS X.
25856NMEDIT=$lt_NMEDIT
25857
25858# Tool to manipulate fat objects and archives on Mac OS X.
25859LIPO=$lt_LIPO
25860
25861# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25862OTOOL=$lt_OTOOL
25863
25864# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25865OTOOL64=$lt_OTOOL64
25866
25867# Old archive suffix (normally "a").
25868libext=$libext
25869
25870# Shared library suffix (normally ".so").
25871shrext_cmds=$lt_shrext_cmds
25872
25873# The commands to extract the exported symbol list from a shared archive.
25874extract_expsyms_cmds=$lt_extract_expsyms_cmds
25875
25876# Variables whose values should be saved in libtool wrapper scripts and
25877# restored at link time.
25878variables_saved_for_relink=$lt_variables_saved_for_relink
25879
25880# Do we need the "lib" prefix for modules?
25881need_lib_prefix=$need_lib_prefix
25882
25883# Do we need a version for libraries?
25884need_version=$need_version
25885
25886# Library versioning type.
25887version_type=$version_type
25888
25889# Shared library runtime path variable.
25890runpath_var=$runpath_var
25891
25892# Shared library path variable.
25893shlibpath_var=$shlibpath_var
25894
25895# Is shlibpath searched before the hard-coded library search path?
25896shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25897
25898# Format of library name prefix.
25899libname_spec=$lt_libname_spec
25900
25901# List of archive names.  First name is the real one, the rest are links.
25902# The last name is the one that the linker finds with -lNAME
25903library_names_spec=$lt_library_names_spec
25904
25905# The coded name of the library, if different from the real name.
25906soname_spec=$lt_soname_spec
25907
25908# Permission mode override for installation of shared libraries.
25909install_override_mode=$lt_install_override_mode
25910
25911# Command to use after installation of a shared archive.
25912postinstall_cmds=$lt_postinstall_cmds
25913
25914# Command to use after uninstallation of a shared archive.
25915postuninstall_cmds=$lt_postuninstall_cmds
25916
25917# Commands used to finish a libtool library installation in a directory.
25918finish_cmds=$lt_finish_cmds
25919
25920# As "finish_cmds", except a single script fragment to be evaled but
25921# not shown.
25922finish_eval=$lt_finish_eval
25923
25924# Whether we should hardcode library paths into libraries.
25925hardcode_into_libs=$hardcode_into_libs
25926
25927# Compile-time system search path for libraries.
25928sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25929
25930# Detected run-time system search path for libraries.
25931sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25932
25933# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25934configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25935
25936# Whether dlopen is supported.
25937dlopen_support=$enable_dlopen
25938
25939# Whether dlopen of programs is supported.
25940dlopen_self=$enable_dlopen_self
25941
25942# Whether dlopen of statically linked programs is supported.
25943dlopen_self_static=$enable_dlopen_self_static
25944
25945# Commands to strip libraries.
25946old_striplib=$lt_old_striplib
25947striplib=$lt_striplib
25948
25949
25950# The linker used to build libraries.
25951LD=$lt_LD
25952
25953# How to create reloadable object files.
25954reload_flag=$lt_reload_flag
25955reload_cmds=$lt_reload_cmds
25956
25957# Commands used to build an old-style archive.
25958old_archive_cmds=$lt_old_archive_cmds
25959
25960# A language specific compiler.
25961CC=$lt_compiler
25962
25963# Is the compiler the GNU compiler?
25964with_gcc=$GCC
25965
25966# Compiler flag to turn off builtin functions.
25967no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25968
25969# Additional compiler flags for building library objects.
25970pic_flag=$lt_lt_prog_compiler_pic
25971
25972# How to pass a linker flag through the compiler.
25973wl=$lt_lt_prog_compiler_wl
25974
25975# Compiler flag to prevent dynamic linking.
25976link_static_flag=$lt_lt_prog_compiler_static
25977
25978# Does compiler simultaneously support -c and -o options?
25979compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25980
25981# Whether or not to add -lc for building shared libraries.
25982build_libtool_need_lc=$archive_cmds_need_lc
25983
25984# Whether or not to disallow shared libs when runtime libs are static.
25985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25986
25987# Compiler flag to allow reflexive dlopens.
25988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25989
25990# Compiler flag to generate shared objects directly from archives.
25991whole_archive_flag_spec=$lt_whole_archive_flag_spec
25992
25993# Whether the compiler copes with passing no objects directly.
25994compiler_needs_object=$lt_compiler_needs_object
25995
25996# Create an old-style archive from a shared archive.
25997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25998
25999# Create a temporary old-style archive to link instead of a shared archive.
26000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26001
26002# Commands used to build a shared archive.
26003archive_cmds=$lt_archive_cmds
26004archive_expsym_cmds=$lt_archive_expsym_cmds
26005
26006# Commands used to build a loadable module if different from building
26007# a shared archive.
26008module_cmds=$lt_module_cmds
26009module_expsym_cmds=$lt_module_expsym_cmds
26010
26011# Whether we are building with GNU ld or not.
26012with_gnu_ld=$lt_with_gnu_ld
26013
26014# Flag that allows shared libraries with undefined symbols to be built.
26015allow_undefined_flag=$lt_allow_undefined_flag
26016
26017# Flag that enforces no undefined symbols.
26018no_undefined_flag=$lt_no_undefined_flag
26019
26020# Flag to hardcode \$libdir into a binary during linking.
26021# This must work even if \$libdir does not exist
26022hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26023
26024# Whether we need a single "-rpath" flag with a separated argument.
26025hardcode_libdir_separator=$lt_hardcode_libdir_separator
26026
26027# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26028# DIR into the resulting binary.
26029hardcode_direct=$hardcode_direct
26030
26031# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26032# DIR into the resulting binary and the resulting library dependency is
26033# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26034# library is relocated.
26035hardcode_direct_absolute=$hardcode_direct_absolute
26036
26037# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26038# into the resulting binary.
26039hardcode_minus_L=$hardcode_minus_L
26040
26041# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26042# into the resulting binary.
26043hardcode_shlibpath_var=$hardcode_shlibpath_var
26044
26045# Set to "yes" if building a shared library automatically hardcodes DIR
26046# into the library and all subsequent libraries and executables linked
26047# against it.
26048hardcode_automatic=$hardcode_automatic
26049
26050# Set to yes if linker adds runtime paths of dependent libraries
26051# to runtime path list.
26052inherit_rpath=$inherit_rpath
26053
26054# Whether libtool must link a program against all its dependency libraries.
26055link_all_deplibs=$link_all_deplibs
26056
26057# Set to "yes" if exported symbols are required.
26058always_export_symbols=$always_export_symbols
26059
26060# The commands to list exported symbols.
26061export_symbols_cmds=$lt_export_symbols_cmds
26062
26063# Symbols that should not be listed in the preloaded symbols.
26064exclude_expsyms=$lt_exclude_expsyms
26065
26066# Symbols that must always be exported.
26067include_expsyms=$lt_include_expsyms
26068
26069# Commands necessary for linking programs (against libraries) with templates.
26070prelink_cmds=$lt_prelink_cmds
26071
26072# Commands necessary for finishing linking programs.
26073postlink_cmds=$lt_postlink_cmds
26074
26075# Specify filename containing input files.
26076file_list_spec=$lt_file_list_spec
26077
26078# How to hardcode a shared library path into an executable.
26079hardcode_action=$hardcode_action
26080
26081# ### END LIBTOOL CONFIG
26082
26083_LT_EOF
26084
26085    cat <<'_LT_EOF' >> "$cfgfile"
26086
26087# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26088
26089# func_munge_path_list VARIABLE PATH
26090# -----------------------------------
26091# VARIABLE is name of variable containing _space_ separated list of
26092# directories to be munged by the contents of PATH, which is string
26093# having a format:
26094# "DIR[:DIR]:"
26095#       string "DIR[ DIR]" will be prepended to VARIABLE
26096# ":DIR[:DIR]"
26097#       string "DIR[ DIR]" will be appended to VARIABLE
26098# "DIRP[:DIRP]::[DIRA:]DIRA"
26099#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26100#       "DIRA[ DIRA]" will be appended to VARIABLE
26101# "DIR[:DIR]"
26102#       VARIABLE will be replaced by "DIR[ DIR]"
26103func_munge_path_list ()
26104{
26105    case x$2 in
26106    x)
26107        ;;
26108    *:)
26109        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26110        ;;
26111    x:*)
26112        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26113        ;;
26114    *::*)
26115        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26116        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26117        ;;
26118    *)
26119        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26120        ;;
26121    esac
26122}
26123
26124
26125# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26126func_cc_basename ()
26127{
26128    for cc_temp in $*""; do
26129      case $cc_temp in
26130        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26131        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26132        \-*) ;;
26133        *) break;;
26134      esac
26135    done
26136    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26137}
26138
26139
26140# ### END FUNCTIONS SHARED WITH CONFIGURE
26141
26142_LT_EOF
26143
26144  case $host_os in
26145  aix3*)
26146    cat <<\_LT_EOF >> "$cfgfile"
26147# AIX sometimes has problems with the GCC collect2 program.  For some
26148# reason, if we set the COLLECT_NAMES environment variable, the problems
26149# vanish in a puff of smoke.
26150if test set != "${COLLECT_NAMES+set}"; then
26151  COLLECT_NAMES=
26152  export COLLECT_NAMES
26153fi
26154_LT_EOF
26155    ;;
26156  esac
26157
26158
26159
26160ltmain=$ac_aux_dir/ltmain.sh
26161
26162
26163  # We use sed instead of cat because bash on DJGPP gets confused if
26164  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26165  # text mode, it properly converts lines to CR/LF.  This bash problem
26166  # is reportedly fixed, but why not run on old versions too?
26167  $SED '$q' "$ltmain" >> "$cfgfile" \
26168     || (rm -f "$cfgfile"; exit 1)
26169
26170   mv -f "$cfgfile" "$ofile" ||
26171    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26172  chmod +x "$ofile"
26173
26174 ;;
26175
26176  esac
26177done # for ac_tag
26178
26179
26180as_fn_exit 0
26181_ACEOF
26182ac_clean_files=$ac_clean_files_save
26183
26184test $ac_write_fail = 0 ||
26185  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26186
26187
26188# configure is writing to config.log, and then calls config.status.
26189# config.status does its own redirection, appending to config.log.
26190# Unfortunately, on DOS this fails, as config.log is still kept open
26191# by configure, so config.status won't be able to write to it; its
26192# output is simply discarded.  So we exec the FD to /dev/null,
26193# effectively closing config.log, so it can be properly (re)opened and
26194# appended to by config.status.  When coming back to configure, we
26195# need to make the FD available again.
26196if test "$no_create" != yes; then
26197  ac_cs_success=:
26198  ac_config_status_args=
26199  test "$silent" = yes &&
26200    ac_config_status_args="$ac_config_status_args --quiet"
26201  exec 5>/dev/null
26202  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26203  exec 5>>config.log
26204  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26205  # would make configure fail if this is the last instruction.
26206  $ac_cs_success || as_fn_exit 1
26207fi
26208if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26210printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26211fi
26212
26213
26214